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
693 READLINE_TEXI_INCFLAG
716 HAVE_NATIVE_GCORE_TARGET
743 INSTALL_STRIP_PROGRAM
772 MAINTAINER_MODE_FALSE
801 program_transform_name
812 ac_subst_files
='nat_makefile_frag'
814 enable_option_checking
815 enable_maintainer_mode
818 with_separate_debug_dir
820 with_relocated_sources
822 with_auto_load_safe_path
854 enable_build_warnings
855 enable_gdb_build_warnings
865 with_libbabeltrace_prefix
867 ac_precious_vars
='build_alias
884 ac_subdirs_all
='testsuite
889 # Initialize some variables set by options.
891 ac_init_version
=false
892 ac_unrecognized_opts
=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
903 program_transform_name
=s
,x
,x
,
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir
='${exec_prefix}/bin'
918 sbindir
='${exec_prefix}/sbin'
919 libexecdir
='${exec_prefix}/libexec'
920 datarootdir
='${prefix}/share'
921 datadir
='${datarootdir}'
922 sysconfdir
='${prefix}/etc'
923 sharedstatedir
='${prefix}/com'
924 localstatedir
='${prefix}/var'
925 includedir
='${prefix}/include'
926 oldincludedir
='/usr/include'
927 docdir
='${datarootdir}/doc/${PACKAGE}'
928 infodir
='${datarootdir}/info'
933 libdir
='${exec_prefix}/lib'
934 localedir
='${datarootdir}/locale'
935 mandir
='${datarootdir}/man'
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\
$ac_option
949 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 # Accept the important Cygnus configure options, so we can diagnose typos.
955 case $ac_dashdash$ac_option in
959 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
961 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
964 -build |
--build |
--buil |
--bui |
--bu)
965 ac_prev
=build_alias
;;
966 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
967 build_alias
=$ac_optarg ;;
969 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
970 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
971 ac_prev
=cache_file
;;
972 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
973 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
974 cache_file
=$ac_optarg ;;
977 cache_file
=config.cache
;;
979 -datadir |
--datadir |
--datadi |
--datad)
981 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
982 datadir
=$ac_optarg ;;
984 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
985 |
--dataroo |
--dataro |
--datar)
986 ac_prev
=datarootdir
;;
987 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
988 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
989 datarootdir
=$ac_optarg ;;
991 -disable-* |
--disable-*)
992 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
995 as_fn_error
"invalid feature name: $ac_useropt"
996 ac_useropt_orig
=$ac_useropt
997 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_
$ac_useropt"
1002 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep
=', ';;
1005 eval enable_
$ac_useropt=no
;;
1007 -docdir |
--docdir |
--docdi |
--doc |
--do)
1009 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1010 docdir
=$ac_optarg ;;
1012 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1014 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1015 dvidir
=$ac_optarg ;;
1017 -enable-* |
--enable-*)
1018 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1021 as_fn_error
"invalid feature name: $ac_useropt"
1022 ac_useropt_orig
=$ac_useropt
1023 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_
$ac_useropt"
1028 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep
=', ';;
1031 eval enable_
$ac_useropt=\
$ac_optarg ;;
1033 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1034 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1035 |
--exec |
--exe |
--ex)
1036 ac_prev
=exec_prefix
;;
1037 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1038 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1039 |
--exec=* |
--exe=* |
--ex=*)
1040 exec_prefix
=$ac_optarg ;;
1042 -gas |
--gas |
--ga |
--g)
1043 # Obsolete; use --with-gas.
1046 -help |
--help |
--hel |
--he |
-h)
1047 ac_init_help
=long
;;
1048 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1049 ac_init_help
=recursive
;;
1050 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1051 ac_init_help
=short
;;
1053 -host |
--host |
--hos |
--ho)
1054 ac_prev
=host_alias
;;
1055 -host=* |
--host=* |
--hos=* |
--ho=*)
1056 host_alias
=$ac_optarg ;;
1058 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1060 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1062 htmldir
=$ac_optarg ;;
1064 -includedir |
--includedir |
--includedi |
--included |
--include \
1065 |
--includ |
--inclu |
--incl |
--inc)
1066 ac_prev
=includedir
;;
1067 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1068 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1069 includedir
=$ac_optarg ;;
1071 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1073 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1074 infodir
=$ac_optarg ;;
1076 -libdir |
--libdir |
--libdi |
--libd)
1078 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1079 libdir
=$ac_optarg ;;
1081 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1082 |
--libexe |
--libex |
--libe)
1083 ac_prev
=libexecdir
;;
1084 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1085 |
--libexe=* |
--libex=* |
--libe=*)
1086 libexecdir
=$ac_optarg ;;
1088 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1089 ac_prev
=localedir
;;
1090 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1091 localedir
=$ac_optarg ;;
1093 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1094 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1095 ac_prev
=localstatedir
;;
1096 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1097 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1098 localstatedir
=$ac_optarg ;;
1100 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1102 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1103 mandir
=$ac_optarg ;;
1105 -nfp |
--nfp |
--nf)
1106 # Obsolete; use --without-fp.
1109 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1110 |
--no-cr |
--no-c |
-n)
1113 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1114 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1117 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1118 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1119 |
--oldin |
--oldi |
--old |
--ol |
--o)
1120 ac_prev
=oldincludedir
;;
1121 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1122 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1123 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1124 oldincludedir
=$ac_optarg ;;
1126 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1128 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1129 prefix
=$ac_optarg ;;
1131 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1132 |
--program-pre |
--program-pr |
--program-p)
1133 ac_prev
=program_prefix
;;
1134 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1135 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1136 program_prefix
=$ac_optarg ;;
1138 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1139 |
--program-suf |
--program-su |
--program-s)
1140 ac_prev
=program_suffix
;;
1141 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1142 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1143 program_suffix
=$ac_optarg ;;
1145 -program-transform-name |
--program-transform-name \
1146 |
--program-transform-nam |
--program-transform-na \
1147 |
--program-transform-n |
--program-transform- \
1148 |
--program-transform |
--program-transfor \
1149 |
--program-transfo |
--program-transf \
1150 |
--program-trans |
--program-tran \
1151 |
--progr-tra |
--program-tr |
--program-t)
1152 ac_prev
=program_transform_name
;;
1153 -program-transform-name=* |
--program-transform-name=* \
1154 |
--program-transform-nam=* |
--program-transform-na=* \
1155 |
--program-transform-n=* |
--program-transform-=* \
1156 |
--program-transform=* |
--program-transfor=* \
1157 |
--program-transfo=* |
--program-transf=* \
1158 |
--program-trans=* |
--program-tran=* \
1159 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1160 program_transform_name
=$ac_optarg ;;
1162 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1164 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1165 pdfdir
=$ac_optarg ;;
1167 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1169 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1172 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1173 |
-silent |
--silent |
--silen |
--sile |
--sil)
1176 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1178 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1180 sbindir
=$ac_optarg ;;
1182 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1183 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1184 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1186 ac_prev
=sharedstatedir
;;
1187 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1188 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1189 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1191 sharedstatedir
=$ac_optarg ;;
1193 -site |
--site |
--sit)
1195 -site=* |
--site=* |
--sit=*)
1198 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1200 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1201 srcdir
=$ac_optarg ;;
1203 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1204 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1205 ac_prev
=sysconfdir
;;
1206 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1207 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1208 sysconfdir
=$ac_optarg ;;
1210 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1211 ac_prev
=target_alias
;;
1212 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1213 target_alias
=$ac_optarg ;;
1215 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1218 -version |
--version |
--versio |
--versi |
--vers |
-V)
1219 ac_init_version
=: ;;
1222 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1225 as_fn_error
"invalid package name: $ac_useropt"
1226 ac_useropt_orig
=$ac_useropt
1227 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1232 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep
=', ';;
1235 eval with_
$ac_useropt=\
$ac_optarg ;;
1237 -without-* |
--without-*)
1238 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1241 as_fn_error
"invalid package name: $ac_useropt"
1242 ac_useropt_orig
=$ac_useropt
1243 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1248 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249 ac_unrecognized_sep
=', ';;
1251 eval with_
$ac_useropt=no
;;
1254 # Obsolete; use --with-x.
1257 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1258 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1259 ac_prev
=x_includes
;;
1260 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1261 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1262 x_includes
=$ac_optarg ;;
1264 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1265 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1266 ac_prev
=x_libraries
;;
1267 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1268 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1269 x_libraries
=$ac_optarg ;;
1271 -*) as_fn_error
"unrecognized option: \`$ac_option'
1272 Try \`$0 --help' for more information."
1276 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 case $ac_envvar in #(
1279 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1280 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1282 eval $ac_envvar=\
$ac_optarg
1283 export $ac_envvar ;;
1286 # FIXME: should be removed in autoconf 3.0.
1287 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1289 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296 if test -n "$ac_prev"; then
1297 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1298 as_fn_error
"missing argument to $ac_option"
1301 if test -n "$ac_unrecognized_opts"; then
1302 case $enable_option_checking in
1304 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1305 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 # Check all directory arguments for consistency.
1310 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir
1315 eval ac_val
=\$
$ac_var
1316 # Remove trailing slashes.
1319 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320 eval $ac_var=\
$ac_val;;
1322 # Be sure to have absolute directory names.
1324 [\\/$
]* | ?
:[\\/]* ) continue;;
1325 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1327 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1335 target
=$target_alias
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x
; then
1339 if test "x$build_alias" = x
; then
1340 cross_compiling
=maybe
1341 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1342 If a cross compiler is detected then cross compile mode will be used." >&2
1343 elif test "x$build_alias" != "x$host_alias"; then
1349 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1351 test "$silent" = yes && exec 6>/dev
/null
1354 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di
=`ls -di .` &&
1356 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1357 as_fn_error
"working directory cannot be determined"
1358 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359 as_fn_error
"pwd does not report name of working directory"
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted
=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir
=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1394 ac_srcdir_defaulted
=no
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1398 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1400 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1412 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 for ac_var
in $ac_precious_vars; do
1415 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1416 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1417 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1418 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1422 # Report the --help message.
1424 if test "$ac_init_help" = "long"; then
1425 # Omit some internal or obsolete options to make the list less imposing.
1426 # This message is too long to be a string in the A/UX 3.1 sh.
1428 \`configure' configures this package to adapt to many kinds of systems.
1430 Usage: $0 [OPTION]... [VAR=VALUE]...
1432 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433 VAR=VALUE. See below for descriptions of some of the useful variables.
1435 Defaults for the options are specified in brackets.
1438 -h, --help display this help and exit
1439 --help=short display options specific to this package
1440 --help=recursive display the short help of all the included packages
1441 -V, --version display version information and exit
1442 -q, --quiet, --silent do not print \`checking...' messages
1443 --cache-file=FILE cache test results in FILE [disabled]
1444 -C, --config-cache alias for \`--cache-file=config.cache'
1445 -n, --no-create do not create output files
1446 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1448 Installation directories:
1449 --prefix=PREFIX install architecture-independent files in PREFIX
1450 [$ac_default_prefix]
1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1454 By default, \`make install' will install all the files in
1455 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457 for instance \`--prefix=\$HOME'.
1459 For better control, use the options below.
1461 Fine tuning of the installation directories:
1462 --bindir=DIR user executables [EPREFIX/bin]
1463 --sbindir=DIR system admin executables [EPREFIX/sbin]
1464 --libexecdir=DIR program executables [EPREFIX/libexec]
1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1477 --htmldir=DIR html documentation [DOCDIR]
1478 --dvidir=DIR dvi documentation [DOCDIR]
1479 --pdfdir=DIR pdf documentation [DOCDIR]
1480 --psdir=DIR ps documentation [DOCDIR]
1486 --program-prefix=PREFIX prepend PREFIX to installed program names
1487 --program-suffix=SUFFIX append SUFFIX to installed program names
1488 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1491 --x-includes=DIR X include files are
in DIR
1492 --x-libraries=DIR X library files are
in DIR
1495 --build=BUILD configure
for building on BUILD
[guessed
]
1496 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1497 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1501 if test -n "$ac_init_help"; then
1506 --disable-option-checking ignore unrecognized
--enable/--with options
1507 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1508 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1509 --enable-maintainer-mode enable make rules and dependencies not useful
1510 (and sometimes confusing
) to the casual installer
1511 --enable-plugins Enable support
for plugins
1512 --disable-largefile omit support
for large files
1513 --enable-targets=TARGETS
1514 alternative target configurations
1515 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1516 --disable-gdbcli disable command-line interface
(CLI
)
1517 --disable-gdbmi disable machine-interface
(MI
)
1518 --enable-tui enable full-screen terminal user interface
(TUI
)
1519 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1520 --enable-profiling enable profiling of GDB
1521 --disable-rpath do not hardcode runtime library paths
1522 --enable-libmcheck Try linking with
-lmcheck if available
1523 --enable-werror treat compile warnings as errors
1524 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1525 --enable-gdb-build-warnings
1526 enable GDB specific build-time compiler warnings
if
1528 --enable-sim link gdb with simulator
1529 --enable-multi-ice build the multi-ice-gdb-server
1530 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1534 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1535 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1536 --with-separate-debug-dir=PATH
1537 look for global separate debug info
in this path
1539 --with-gdb-datadir=PATH
look for global separate data files
in this path
1541 --with-relocated-sources=PATH
1542 automatically relocate this path
for source files
1543 --with-auto-load-dir=PATH
1544 directories from
which to load auto-loaded scripts
1545 [$debugdir:$datadir/auto-load
]
1546 --with-auto-load-safe-path=PATH
1547 directories safe to hold auto-loaded files
1548 [--with-auto-load-dir]
1549 --without-auto-load-safe-path
1550 do not restrict auto-loaded files locations
1551 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1552 --with-curses use the curses library instead of the termcap
1554 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1555 --with-bugurl=URL Direct users to URL to report a bug
1556 --with-system-zlib use installed libz
1557 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1558 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1559 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1560 --with-iconv-bin=PATH specify where to find the iconv program
1561 --with-system-readline use installed readline library
1562 --with-jit-reader-dir=PATH
1563 directory to load the JIT readers from
1564 --with-expat include expat support (auto/yes/no)
1565 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1566 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1567 --with-mpfr include MPFR support
(auto
/yes
/no
)
1568 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1569 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1570 --with-python[=PYTHON] include python support
1571 (auto/yes/no/<python-program>)
1572 --with-guile[=GUILE] include guile support
1573 (auto/yes/no/<guile-version>/<pkg-config-program>)
1574 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1575 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1576 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1577 --without-included-regex
1578 don
't use included regex; this is the default on
1579 systems with version 2 of the GNU C library (use
1580 with caution on other system)
1581 --with-sysroot[=DIR] search for usr/lib et al within DIR
1582 --with-system-gdbinit=PATH
1583 automatically load a system-wide gdbinit file
1584 --with-lzma support lzma compression (auto/yes/no)
1585 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1586 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1587 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1588 --with-tk directory containing tk configuration
(tkConfig.sh
)
1589 --with-x use the X Window System
1590 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1591 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1592 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1594 Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
1599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
1602 CXX C++ compiler command
1603 CXXFLAGS C++ compiler flags
1605 MAKEINFO Parent configure detects if it is of sufficient version.
1607 Parameters for MAKEINFO.
1608 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1609 the first program found out of
: `bison -y', `byacc
', `yacc'.
1610 YFLAGS The list of arguments that will be passed by default to
$YACC.
1611 This
script will default YFLAGS to the empty string to avoid a
1612 default value of
`-d' given by some make applications.
1613 XMKMF Path to xmkmf, Makefile generator for X Window System
1615 Use these variables to override the choices made by `configure
' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1618 Report bugs to the package provider.
1623 if test "$ac_init_help" = "recursive"; then
1624 # If there are subdirs, report their specific --help.
1625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1626 test -d "$ac_dir" ||
1627 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1648 .) # We are building in place.
1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
1653 ac_srcdir=$srcdir$ac_dir_suffix;
1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1672 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 cd "$ac_pwd" || { ac_status=$?; break; }
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1682 generated by GNU Autoconf 2.64
1684 Copyright (C) 2009 Free Software Foundation, Inc.
1685 This configure script is free software; the Free Software Foundation
1686 gives unlimited permission to copy, distribute and modify it.
1691 ## ------------------------ ##
1692 ## Autoconf initialization. ##
1693 ## ------------------------ ##
1695 # ac_fn_c_try_compile LINENO
1696 # --------------------------
1697 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_compile ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext
1702 if { { ac_try="$ac_compile"
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_compile") 2>conftest.err
1711 if test -s conftest.err; then
1712 grep -v '^
*+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest.$ac_objext; then :
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's
/^
/|
/' conftest.$ac_ext >&5
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 } # ac_fn_c_try_compile
1733 # ac_fn_cxx_try_compile LINENO
1734 # ----------------------------
1735 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_cxx_try_compile ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext
1740 if { { ac_try="$ac_compile"
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_compile") 2>conftest.err
1749 if test -s conftest.err; then
1750 grep -v '^
*+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_cxx_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest.$ac_objext; then :
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's
/^
/|
/' conftest.$ac_ext >&5
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 } # ac_fn_cxx_try_compile
1771 # ac_fn_c_try_cpp LINENO
1772 # ----------------------
1773 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if { { ac_try="$ac_cpp conftest.$ac_ext"
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1786 if test -s conftest.err; then
1787 grep -v '^
*+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } >/dev/null && {
1793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's
/^
/|
/' conftest.$ac_ext >&5
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1809 # -------------------------------------------------------
1810 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1811 # the include files in INCLUDES and setting the cache variable VAR
1813 ac_fn_c_check_header_mongrel ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1820 $as_echo_n "(cached) " >&6
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1826 # Is the header compilable?
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1828 $as_echo_n "checking $2 usability... " >&6; }
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1834 if ac_fn_c_try_compile "$LINENO"; then :
1835 ac_header_compiler=yes
1837 ac_header_compiler=no
1839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1841 $as_echo "$ac_header_compiler" >&6; }
1843 # Is the header present?
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1845 $as_echo_n "checking $2 presence... " >&6; }
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1850 if ac_fn_c_try_cpp "$LINENO"; then :
1851 ac_header_preproc=yes
1853 ac_header_preproc=no
1855 rm -f conftest.err conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1857 $as_echo "$ac_header_preproc" >&6; }
1859 # So? What about this header?
1860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1863 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1865 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1869 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1871 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1873 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1875 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1877 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 $as_echo_n "(cached) " >&6
1885 eval "$3=\$ac_header_compiler"
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 } # ac_fn_c_check_header_mongrel
1895 # ac_fn_c_try_run LINENO
1896 # ----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1898 # that executables *can* be run.
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if { { ac_try="$ac_link"
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>&5
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
1913 { { case "(($ac_try" in
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_try") 2>&5
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; }; }; then :
1925 $as_echo "$as_me: program exited with status $ac_status" >&5
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's
/^
/|
/' conftest.$ac_ext >&5
1929 ac_retval=$ac_status
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists and can be compiled using the include files in
1940 # INCLUDES, setting the cache variable VAR accordingly.
1941 ac_fn_c_check_header_compile ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1947 $as_echo_n "(cached) " >&6
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1954 if ac_fn_c_try_compile "$LINENO"; then :
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966 } # ac_fn_c_check_header_compile
1968 # ac_fn_c_try_link LINENO
1969 # -----------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded.
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 rm -f conftest.$ac_objext conftest$ac_exeext
1975 if { { ac_try="$ac_link"
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_link") 2>conftest.err
1984 if test -s conftest.err; then
1985 grep -v '^
*+' conftest.err >conftest.er1
1986 cat conftest.er1 >&5
1987 mv -f conftest.er1 conftest.err
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && {
1991 test -z "$ac_c_werror_flag" ||
1992 test ! -s conftest.err
1993 } && test -s conftest$ac_exeext && {
1994 test "$cross_compiling" = yes ||
1995 $as_test_x conftest$ac_exeext
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's
/^
/|
/' conftest.$ac_ext >&5
2004 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2005 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2006 # interfere with the next link command; also delete a directory that is
2007 # left behind by Apple's compiler. We
do this before executing the actions.
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2012 } # ac_fn_c_try_link
2014 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2015 # --------------------------------------------
2016 # Tries to find the compile-time value of EXPR in a program that includes
2017 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2019 ac_fn_c_compute_int
()
2021 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2022 if test "$cross_compiling" = yes; then
2023 # Depending upon the size, compute the lo and hi bounds.
2024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2030 static int test_array [1 - 2 * !(($2) >= 0)];
2037 if ac_fn_c_try_compile
"$LINENO"; then :
2040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2046 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2053 if ac_fn_c_try_compile
"$LINENO"; then :
2054 ac_hi
=$ac_mid; break
2056 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2057 if test $ac_lo -le $ac_mid; then
2061 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2072 static int test_array [1 - 2 * !(($2) < 0)];
2079 if ac_fn_c_try_compile
"$LINENO"; then :
2082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2088 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2095 if ac_fn_c_try_compile
"$LINENO"; then :
2096 ac_lo
=$ac_mid; break
2098 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2099 if test $ac_mid -le $ac_hi; then
2103 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2113 # Binary search between lo and hi bounds.
2114 while test "x$ac_lo" != "x$ac_hi"; do
2115 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2122 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2129 if ac_fn_c_try_compile
"$LINENO"; then :
2132 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2137 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2144 static long int longval () { return $2; }
2145 static unsigned long int ulongval () { return $2; }
2152 FILE *f = fopen ("conftest.val", "w");
2157 long int i = longval ();
2160 fprintf (f, "%ld", i);
2164 unsigned long int i = ulongval ();
2167 fprintf (f, "%lu", i);
2169 /* Do not output a trailing newline, as this causes \r\n confusion
2170 on some platforms. */
2171 return ferror (f) || fclose (f) != 0;
2177 if ac_fn_c_try_run
"$LINENO"; then :
2178 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2182 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2183 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2187 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2190 } # ac_fn_c_compute_int
2192 # ac_fn_c_check_func LINENO FUNC VAR
2193 # ----------------------------------
2194 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2195 ac_fn_c_check_func
()
2197 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199 $as_echo_n "checking for $2... " >&6; }
2200 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2201 $as_echo_n "(cached) " >&6
2203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2205 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2207 #define $2 innocuous_$2
2209 /* System header to define __stub macros and hopefully few prototypes,
2210 which can conflict with char $2 (); below.
2211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2212 <limits.h> exists even on freestanding compilers. */
2215 # include <limits.h>
2217 # include <assert.h>
2222 /* Override any GCC internal prototype to avoid an error.
2223 Use char because int might match the return type of a GCC
2224 builtin and then its argument prototype would still apply. */
2229 /* The GNU C library defines this for functions which it implements
2230 to always fail with ENOSYS. Some functions are actually named
2231 something starting with __ and the normal name is an alias. */
2232 #if defined __stub_$2 || defined __stub___$2
2244 if ac_fn_c_try_link
"$LINENO"; then :
2249 rm -f core conftest.err conftest.
$ac_objext \
2250 conftest
$ac_exeext conftest.
$ac_ext
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2255 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2257 } # ac_fn_c_check_func
2259 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2260 # ----------------------------------------------------
2261 # Tries to find if the field MEMBER exists in type AGGR, after including
2262 # INCLUDES, setting cache variable VAR accordingly.
2263 ac_fn_c_check_member
()
2265 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2267 $as_echo_n "checking for $2.$3... " >&6; }
2268 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2269 $as_echo_n "(cached) " >&6
2271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2284 if ac_fn_c_try_compile
"$LINENO"; then :
2287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2294 if (sizeof ac_aggr.$3)
2300 if ac_fn_c_try_compile
"$LINENO"; then :
2305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2314 } # ac_fn_c_check_member
2316 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2317 # -------------------------------------------
2318 # Tests whether TYPE exists after having included INCLUDES, setting cache
2319 # variable VAR accordingly.
2320 ac_fn_c_check_type
()
2322 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2324 $as_echo_n "checking for $2... " >&6; }
2325 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2326 $as_echo_n "(cached) " >&6
2329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2341 if ac_fn_c_try_compile
"$LINENO"; then :
2342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2354 if ac_fn_c_try_compile
"$LINENO"; then :
2359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2368 } # ac_fn_c_check_type
2370 # ac_fn_c_check_decl LINENO SYMBOL VAR
2371 # ------------------------------------
2372 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2373 ac_fn_c_check_decl
()
2375 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2376 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2377 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2379 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2380 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2381 $as_echo_n "(cached) " >&6
2383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2389 #ifndef $as_decl_name
2391 (void) $as_decl_use;
2393 (void) $as_decl_name;
2401 if ac_fn_c_try_compile
"$LINENO"; then :
2406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2411 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2413 } # ac_fn_c_check_decl
2414 cat >config.log
<<_ACEOF
2415 This file contains any messages produced by compilers while
2416 running configure, to aid debugging if configure makes a mistake.
2418 It was created by $as_me, which was
2419 generated by GNU Autoconf 2.64. Invocation command line was
2431 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2432 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2433 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2434 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2435 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2437 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2438 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2440 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2441 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2442 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2443 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2444 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2445 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2446 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2454 test -z "$as_dir" && as_dir
=.
2455 $as_echo "PATH: $as_dir"
2471 # Keep a trace of the command line.
2472 # Strip out --no-create and --no-recursion so they do not pile up.
2473 # Strip out --silent because we don't want to record it for future runs.
2474 # Also quote any args containing shell meta-characters.
2475 # Make two passes to allow for proper duplicate-argument suppression.
2479 ac_must_keep_next
=false
2485 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2486 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2487 |
-silent |
--silent |
--silen |
--sile |
--sil)
2490 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2493 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2495 as_fn_append ac_configure_args1
" '$ac_arg'"
2496 if test $ac_must_keep_next = true
; then
2497 ac_must_keep_next
=false
# Got value, back to normal.
2500 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2501 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2502 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2503 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2504 case "$ac_configure_args0 " in
2505 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2508 -* ) ac_must_keep_next
=true
;;
2511 as_fn_append ac_configure_args
" '$ac_arg'"
2516 { ac_configure_args0
=; unset ac_configure_args0
;}
2517 { ac_configure_args1
=; unset ac_configure_args1
;}
2519 # When interrupted or exit'd, cleanup temporary files, and complete
2520 # config.log. We remove comments because anyway the quotes in there
2521 # would cause problems or look ugly.
2522 # WARNING: Use '\'' to represent an apostrophe within the trap.
2523 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2524 trap 'exit_status=$?
2525 # Save into config.log some information that might help in debugging.
2530 ## ---------------- ##
2531 ## Cache variables. ##
2532 ## ---------------- ##
2535 # The following way of writing the cache mishandles newlines in values,
2537 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2538 eval ac_val=\$$ac_var
2542 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2543 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2546 _ | IFS | as_nl) ;; #(
2547 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2548 *) { eval $ac_var=; unset $ac_var;} ;;
2553 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2554 *${as_nl}ac_space=\ *)
2556 "s/'\''/'\''\\\\'\'''\''/g;
2557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2560 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2568 ## ----------------- ##
2569 ## Output variables. ##
2570 ## ----------------- ##
2573 for ac_var in $ac_subst_vars
2575 eval ac_val=\$$ac_var
2577 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2579 $as_echo "$ac_var='\''$ac_val'\''"
2583 if test -n "$ac_subst_files"; then
2585 ## ------------------- ##
2586 ## File substitutions. ##
2587 ## ------------------- ##
2590 for ac_var
in $ac_subst_files
2592 eval ac_val
=\$
$ac_var
2594 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2596 $as_echo "$ac_var='\''$ac_val'\''"
2601 if test -s confdefs.h; then
2611 test "$ac_signal" != 0 &&
2612 $as_echo "$as_me: caught signal $ac_signal"
2613 $as_echo "$as_me: exit $exit_status"
2615 rm -f core *.core core.conftest.* &&
2616 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2619 for ac_signal
in 1 2 13 15; do
2620 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2624 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2625 rm -f -r conftest
* confdefs.h
2627 $as_echo "/* confdefs.h */" > confdefs.h
2629 # Predefined preprocessor variables.
2631 cat >>confdefs.h
<<_ACEOF
2632 #define PACKAGE_NAME "$PACKAGE_NAME"
2635 cat >>confdefs.h
<<_ACEOF
2636 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2639 cat >>confdefs.h
<<_ACEOF
2640 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2643 cat >>confdefs.h
<<_ACEOF
2644 #define PACKAGE_STRING "$PACKAGE_STRING"
2647 cat >>confdefs.h
<<_ACEOF
2648 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2651 cat >>confdefs.h
<<_ACEOF
2652 #define PACKAGE_URL "$PACKAGE_URL"
2656 # Let the site file select an alternate cache file if it wants to.
2657 # Prefer an explicitly selected file to automatically selected ones.
2660 if test -n "$CONFIG_SITE"; then
2661 ac_site_file1
=$CONFIG_SITE
2662 elif test "x$prefix" != xNONE
; then
2663 ac_site_file1
=$prefix/share
/config.site
2664 ac_site_file2
=$prefix/etc
/config.site
2666 ac_site_file1
=$ac_default_prefix/share
/config.site
2667 ac_site_file2
=$ac_default_prefix/etc
/config.site
2669 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2671 test "x$ac_site_file" = xNONE
&& continue
2672 if test -r "$ac_site_file"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2674 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2675 sed 's/^/| /' "$ac_site_file" >&5
2680 if test -r "$cache_file"; then
2681 # Some versions of bash will fail to source /dev/null (special
2682 # files actually), so we avoid doing that.
2683 if test -f "$cache_file"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2685 $as_echo "$as_me: loading cache $cache_file" >&6;}
2687 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2688 *) .
"./$cache_file";;
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2693 $as_echo "$as_me: creating cache $cache_file" >&6;}
2697 # Check that the precious variables saved in the cache have kept the same
2699 ac_cache_corrupted
=false
2700 for ac_var
in $ac_precious_vars; do
2701 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2702 eval ac_new_set
=\
$ac_env_${ac_var}_set
2703 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2704 eval ac_new_val
=\
$ac_env_${ac_var}_value
2705 case $ac_old_set,$ac_new_set in
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2708 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2709 ac_cache_corrupted
=: ;;
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2712 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2713 ac_cache_corrupted
=: ;;
2716 if test "x$ac_old_val" != "x$ac_new_val"; then
2717 # differences in whitespace do not lead to failure.
2718 ac_old_val_w
=`echo x $ac_old_val`
2719 ac_new_val_w
=`echo x $ac_new_val`
2720 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2722 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2723 ac_cache_corrupted
=:
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2726 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2727 eval $ac_var=\
$ac_old_val
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2730 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2732 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2735 # Pass precious variables to config.status.
2736 if test "$ac_new_set" = set; then
2738 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2739 *) ac_arg
=$ac_var=$ac_new_val ;;
2741 case " $ac_configure_args " in
2742 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2743 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2747 if $ac_cache_corrupted; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2751 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2752 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2754 ## -------------------- ##
2755 ## Main body of script. ##
2756 ## -------------------- ##
2759 ac_cpp
='$CPP $CPPFLAGS'
2760 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2768 ac_config_headers
="$ac_config_headers config.h:config.in"
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2772 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2773 # Check whether --enable-maintainer-mode was given.
2774 if test "${enable_maintainer_mode+set}" = set; then :
2775 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2777 USE_MAINTAINER_MODE
=no
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2781 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2782 if test $USE_MAINTAINER_MODE = yes; then
2783 MAINTAINER_MODE_TRUE
=
2784 MAINTAINER_MODE_FALSE
='#'
2786 MAINTAINER_MODE_TRUE
='#'
2787 MAINTAINER_MODE_FALSE
=
2790 MAINT
=$MAINTAINER_MODE_TRUE
2794 # Set the 'development' global.
2795 .
$srcdir/..
/bfd
/development.sh
2798 ac_cpp
='$CPP $CPPFLAGS'
2799 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2802 if test -n "$ac_tool_prefix"; then
2803 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2804 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 $as_echo_n "checking for $ac_word... " >&6; }
2807 if test "${ac_cv_prog_CC+set}" = set; then :
2808 $as_echo_n "(cached) " >&6
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC
="$CC" # Let the user override the test.
2813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2817 test -z "$as_dir" && as_dir
=.
2818 for ac_exec_ext
in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 if test -n "$CC"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2833 $as_echo "$CC" >&6; }
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2841 if test -z "$ac_cv_prog_CC"; then
2843 # Extract the first word of "gcc", so it can be a program name with args.
2844 set dummy gcc
; ac_word
=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2848 $as_echo_n "(cached) " >&6
2850 if test -n "$ac_ct_CC"; then
2851 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir
=.
2858 for ac_exec_ext
in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_ac_ct_CC
="gcc"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2871 if test -n "$ac_ct_CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2873 $as_echo "$ac_ct_CC" >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2879 if test "x$ac_ct_CC" = x
; then
2882 case $cross_compiling:$ac_tool_warned in
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2886 ac_tool_warned
=yes ;;
2894 if test -z "$CC"; then
2895 if test -n "$ac_tool_prefix"; then
2896 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2897 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if test "${ac_cv_prog_CC+set}" = set; then :
2901 $as_echo_n "(cached) " >&6
2903 if test -n "$CC"; then
2904 ac_cv_prog_CC
="$CC" # Let the user override the test.
2906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir
=.
2911 for ac_exec_ext
in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 if test -n "$CC"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2926 $as_echo "$CC" >&6; }
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2935 if test -z "$CC"; then
2936 # Extract the first word of "cc", so it can be a program name with args.
2937 set dummy cc
; ac_word
=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if test "${ac_cv_prog_CC+set}" = set; then :
2941 $as_echo_n "(cached) " >&6
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC
="$CC" # Let the user override the test.
2947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir
=.
2952 for ac_exec_ext
in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2955 ac_prog_rejected
=yes
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 if test $ac_prog_rejected = yes; then
2967 # We found a bogon in the path, so make sure we never use it.
2968 set dummy
$ac_cv_prog_CC
2970 if test $# != 0; then
2971 # We chose a different compiler from the bogus one.
2972 # However, it has the same basename, so the bogon will be chosen
2973 # first if we set CC to just the basename; use the full file name.
2975 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2981 if test -n "$CC"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2983 $as_echo "$CC" >&6; }
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2991 if test -z "$CC"; then
2992 if test -n "$ac_tool_prefix"; then
2993 for ac_prog
in cl.exe
2995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2996 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if test "${ac_cv_prog_CC+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC
="$CC" # Let the user override the test.
3005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir
=.
3010 for ac_exec_ext
in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3032 test -n "$CC" && break
3035 if test -z "$CC"; then
3037 for ac_prog
in cl.exe
3039 # Extract the first word of "$ac_prog", so it can be a program name with args.
3040 set dummy
$ac_prog; ac_word
=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3044 $as_echo_n "(cached) " >&6
3046 if test -n "$ac_ct_CC"; then
3047 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir
=.
3054 for ac_exec_ext
in '' $ac_executable_extensions; do
3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056 ac_cv_prog_ac_ct_CC
="$ac_prog"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3067 if test -n "$ac_ct_CC"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3069 $as_echo "$ac_ct_CC" >&6; }
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3076 test -n "$ac_ct_CC" && break
3079 if test "x$ac_ct_CC" = x
; then
3082 case $cross_compiling:$ac_tool_warned in
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3086 ac_tool_warned
=yes ;;
3095 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error
"no acceptable C compiler found in \$PATH
3098 See \`config.log' for more details." "$LINENO" 5; }
3100 # Provide some information about the compiler.
3101 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3104 for ac_option
in --version -v -V -qversion; do
3105 { { ac_try
="$ac_compiler $ac_option >&5"
3107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3114 if test -s conftest.err; then
3116 ... rest of stderr output deleted ...
3117 10q' conftest.err >conftest.er1
3118 cat conftest.er1 >&5
3119 rm -f conftest.er1 conftest.err
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }
3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126 /* end confdefs.h. */
3136 ac_clean_files_save=$ac_clean_files
3137 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3138 # Try to create an executable without -o first, disregard a.out.
3139 # It will help us diagnose broken compilers, and finding out an intuition
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3142 $as_echo_n "checking for C compiler default output file name... " >&6; }
3143 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3145 # The possible output files:
3146 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3149 for ac_file in $ac_files
3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3153 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3158 if { { ac_try="$ac_link_default"
3160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3161 *) ac_try_echo
=$ac_try;;
3163 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_link_default") 2>&5
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }; then :
3169 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3170 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3171 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3172 # so that the user can short-circuit this test for compilers unknown to
3174 for ac_file
in $ac_files ''
3176 test -f "$ac_file" ||
continue
3178 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3181 # We found the default executable, but exeext='' is most
3185 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3187 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189 # We set ac_cv_exeext here because the later test for it is not
3190 # safe: cross compilers may not add the suffix if given an `-o'
3191 # argument, so we may need to know it at that point already.
3192 # Even if this section looks crufty: it has the advantage of
3199 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3205 $as_echo "$ac_file" >&6; }
3206 if test -z "$ac_file"; then :
3207 $as_echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.
$ac_ext >&5
3210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212 { as_fn_set_status
77
3213 as_fn_error
"C compiler cannot create executables
3214 See \`config.log' for more details." "$LINENO" 5; }; }
3216 ac_exeext
=$ac_cv_exeext
3218 # Check that the compiler produces executables we can run. If not, either
3219 # the compiler is broken, or we cross compile.
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3221 $as_echo_n "checking whether the C compiler works... " >&6; }
3222 # If not cross compiling, check that we can run a simple program.
3223 if test "$cross_compiling" != yes; then
3224 if { ac_try
='./$ac_file'
3225 { { case "(($ac_try" in
3226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_try") 2>&5
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; }; then
3237 if test "$cross_compiling" = maybe; then
3240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error "cannot run C compiled programs.
3243 If you meant to cross compile
, use \
`--host'.
3244 See \`config.log
' for more details." "$LINENO" 5; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249 $as_echo "yes" >&6; }
3251 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3252 ac_clean_files=$ac_clean_files_save
3253 # Check that the compiler produces executables we can run. If not, either
3254 # the compiler is broken, or we cross compile.
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3256 $as_echo_n "checking whether we are cross compiling... " >&6; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3258 $as_echo "$cross_compiling" >&6; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3261 $as_echo_n "checking for suffix of executables... " >&6; }
3262 if { { ac_try="$ac_link"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_link") 2>&5
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }; then :
3273 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3274 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3275 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3277 for ac_file
in conftest.exe conftest conftest.
*; do
3278 test -f "$ac_file" ||
continue
3280 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3281 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3290 See \`config.log' for more details." "$LINENO" 5; }
3292 rm -f conftest
$ac_cv_exeext
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3294 $as_echo "$ac_cv_exeext" >&6; }
3296 rm -f conftest.
$ac_ext
3297 EXEEXT
=$ac_cv_exeext
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3300 $as_echo_n "checking for suffix of object files... " >&6; }
3301 if test "${ac_cv_objext+set}" = set; then :
3302 $as_echo_n "(cached) " >&6
3304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3315 rm -f conftest.o conftest.obj
3316 if { { ac_try
="$ac_compile"
3318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_compile") 2>&5
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 for ac_file in conftest.o conftest.obj conftest.*; do
3328 test -f "$ac_file" || continue;
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3336 $as_echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error "cannot compute suffix of object files
: cannot compile
3342 See \
`config.log' for more details." "$LINENO" 5; }
3344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3347 $as_echo "$ac_cv_objext" >&6; }
3348 OBJEXT=$ac_cv_objext
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3351 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3352 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3353 $as_echo_n "(cached) " >&6
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3369 if ac_fn_c_try_compile "$LINENO"; then :
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3379 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3380 if test $ac_compiler_gnu = yes; then
3385 ac_test_CFLAGS=${CFLAGS+set}
3386 ac_save_CFLAGS=$CFLAGS
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3388 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3389 if test "${ac_cv_prog_cc_g+set}" = set; then :
3390 $as_echo_n "(cached) " >&6
3392 ac_save_c_werror_flag=$ac_c_werror_flag
3393 ac_c_werror_flag=yes
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3407 if ac_fn_c_try_compile "$LINENO"; then :
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3422 if ac_fn_c_try_compile "$LINENO"; then :
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3438 if ac_fn_c_try_compile "$LINENO"; then :
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_c_werror_flag=$ac_save_c_werror_flag
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3449 $as_echo "$ac_cv_prog_cc_g" >&6; }
3450 if test "$ac_test_CFLAGS" = set; then
3451 CFLAGS=$ac_save_CFLAGS
3452 elif test $ac_cv_prog_cc_g = yes; then
3453 if test "$GCC" = yes; then
3459 if test "$GCC" = yes; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3466 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3467 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3468 $as_echo_n "(cached) " >&6
3470 ac_cv_prog_cc_c89=no
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3476 #include <sys/types.h>
3477 #include <sys/stat.h>
3478 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3479 struct buf { int x; };
3480 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3481 static char *e (p, i)
3487 static char *f (char * (*g) (char **, int), char **p, ...)
3492 s = g (p, va_arg (v,int));
3497 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3498 function prototypes and stuff, but not '\xHH' hex character constants.
3499 These don't provoke an error unfortunately, instead are silently treated
3500 as 'x'. The following induces an error, until -std is added to get
3501 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3502 array size at least. It's necessary to write '\x00'==0 to get something
3503 that's true only with -std. */
3504 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3506 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3507 inside strings and character constants. */
3509 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3511 int test (int i, double x);
3512 struct s1 {int (*f) (int a);};
3513 struct s2 {int (*f) (double a);};
3514 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3520 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3525 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3526 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3528 CC="$ac_save_CC $ac_arg"
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_cv_prog_cc_c89=$ac_arg
3532 rm -f core conftest.err conftest.$ac_objext
3533 test "x$ac_cv_prog_cc_c89" != "xno" && break
3535 rm -f conftest.$ac_ext
3540 case "x$ac_cv_prog_cc_c89" in
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3543 $as_echo "none needed" >&6; } ;;
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3546 $as_echo "unsupported" >&6; } ;;
3548 CC="$CC $ac_cv_prog_cc_c89"
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3550 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3552 if test "x$ac_cv_prog_cc_c89" != xno; then :
3557 ac_cpp='$CPP $CPPFLAGS'
3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563 ac_cpp='$CXXCPP $CPPFLAGS'
3564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3567 if test -z "$CXX"; then
3568 if test -n "$CCC"; then
3571 if test -n "$ac_tool_prefix"; then
3572 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3574 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if test "${ac_cv_prog_CXX+set}" = set; then :
3579 $as_echo_n "(cached) " >&6
3581 if test -n "$CXX"; then
3582 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 if test -n "$CXX"; then
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3604 $as_echo "$CXX" >&6; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3611 test -n "$CXX" && break
3614 if test -z "$CXX"; then
3616 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3618 # Extract the first word of "$ac_prog", so it can be a program name with args.
3619 set dummy $ac_prog; ac_word=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3623 $as_echo_n "(cached) " >&6
3625 if test -n "$ac_ct_CXX"; then
3626 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3635 ac_cv_prog_ac_ct_CXX="$ac_prog"
3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3646 if test -n "$ac_ct_CXX"; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3648 $as_echo "$ac_ct_CXX" >&6; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3655 test -n "$ac_ct_CXX" && break
3658 if test "x$ac_ct_CXX" = x; then
3661 case $cross_compiling:$ac_tool_warned in
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3665 ac_tool_warned=yes ;;
3673 # Provide some information about the compiler.
3674 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3677 for ac_option in --version -v -V -qversion; do
3678 { { ac_try="$ac_compiler $ac_option >&5"
3680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3681 *) ac_try_echo
=$ac_try;;
3683 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3687 if test -s conftest.err
; then
3689 ... rest of stderr output deleted ...
3690 10q' conftest.err
>conftest.er1
3691 cat conftest.er1
>&5
3692 rm -f conftest.er1 conftest.err
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3699 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3700 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3717 if ac_fn_cxx_try_compile
"$LINENO"; then :
3722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3723 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3727 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3728 if test $ac_compiler_gnu = yes; then
3733 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3734 ac_save_CXXFLAGS
=$CXXFLAGS
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3736 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3737 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3740 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3741 ac_cxx_werror_flag
=yes
3744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3755 if ac_fn_cxx_try_compile
"$LINENO"; then :
3756 ac_cv_prog_cxx_g
=yes
3759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3770 if ac_fn_cxx_try_compile
"$LINENO"; then :
3773 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3786 if ac_fn_cxx_try_compile
"$LINENO"; then :
3787 ac_cv_prog_cxx_g
=yes
3789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3794 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3797 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3798 if test "$ac_test_CXXFLAGS" = set; then
3799 CXXFLAGS
=$ac_save_CXXFLAGS
3800 elif test $ac_cv_prog_cxx_g = yes; then
3801 if test "$GXX" = yes; then
3807 if test "$GXX" = yes; then
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
3822 ac_cpp
='$CPP $CPPFLAGS'
3823 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3827 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3828 # On Suns, sometimes $CPP names a directory.
3829 if test -n "$CPP" && test -d "$CPP"; then
3832 if test -z "$CPP"; then
3833 if test "${ac_cv_prog_CPP+set}" = set; then :
3834 $as_echo_n "(cached) " >&6
3836 # Double quotes because CPP needs to be expanded
3837 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3840 for ac_c_preproc_warn_flag
in '' yes
3842 # Use a header file that comes with gcc, so configuring glibc
3843 # with a fresh cross-compiler works.
3844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3845 # <limits.h> exists even on freestanding compilers.
3846 # On the NeXT, cc -E runs the code through the compiler's parser,
3847 # not just through cpp. "Syntax error" is here to catch this case.
3848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3851 # include <limits.h>
3853 # include <assert.h>
3857 if ac_fn_c_try_cpp
"$LINENO"; then :
3860 # Broken: fails on valid input.
3863 rm -f conftest.err conftest.
$ac_ext
3865 # OK, works on sane cases. Now check whether nonexistent headers
3866 # can be detected and how.
3867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3869 #include <ac_nonexistent.h>
3871 if ac_fn_c_try_cpp
"$LINENO"; then :
3872 # Broken: success on invalid input.
3875 # Passes both tests.
3879 rm -f conftest.err conftest.
$ac_ext
3882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3883 rm -f conftest.err conftest.
$ac_ext
3884 if $ac_preproc_ok; then :
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3897 $as_echo "$CPP" >&6; }
3899 for ac_c_preproc_warn_flag
in '' yes
3901 # Use a header file that comes with gcc, so configuring glibc
3902 # with a fresh cross-compiler works.
3903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3904 # <limits.h> exists even on freestanding compilers.
3905 # On the NeXT, cc -E runs the code through the compiler's parser,
3906 # not just through cpp. "Syntax error" is here to catch this case.
3907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3910 # include <limits.h>
3912 # include <assert.h>
3916 if ac_fn_c_try_cpp
"$LINENO"; then :
3919 # Broken: fails on valid input.
3922 rm -f conftest.err conftest.
$ac_ext
3924 # OK, works on sane cases. Now check whether nonexistent headers
3925 # can be detected and how.
3926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3928 #include <ac_nonexistent.h>
3930 if ac_fn_c_try_cpp
"$LINENO"; then :
3931 # Broken: success on invalid input.
3934 # Passes both tests.
3938 rm -f conftest.err conftest.
$ac_ext
3941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3942 rm -f conftest.err conftest.
$ac_ext
3943 if $ac_preproc_ok; then :
3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3949 See \`config.log' for more details." "$LINENO" 5; }
3953 ac_cpp
='$CPP $CPPFLAGS'
3954 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3960 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3961 if test "${ac_cv_path_GREP+set}" = set; then :
3962 $as_echo_n "(cached) " >&6
3964 if test -z "$GREP"; then
3965 ac_path_GREP_found
=false
3966 # Loop through the user's path and test for each of PROGNAME-LIST
3967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3968 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3971 test -z "$as_dir" && as_dir
=.
3972 for ac_prog
in grep ggrep
; do
3973 for ac_exec_ext
in '' $ac_executable_extensions; do
3974 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3975 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3976 # Check for GNU ac_path_GREP and select it if it is found.
3977 # Check for GNU $ac_path_GREP
3978 case `"$ac_path_GREP" --version 2>&1` in
3980 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3983 $as_echo_n 0123456789 >"conftest.in"
3986 cat "conftest.in" "conftest.in" >"conftest.tmp"
3987 mv "conftest.tmp" "conftest.in"
3988 cp "conftest.in" "conftest.nl"
3989 $as_echo 'GREP' >> "conftest.nl"
3990 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3991 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3992 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3993 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3994 # Best one so far, save it but keep looking for a better one
3995 ac_cv_path_GREP
="$ac_path_GREP"
3996 ac_path_GREP_max
=$ac_count
3998 # 10*(2^10) chars as input seems more than enough
3999 test $ac_count -gt 10 && break
4001 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4004 $ac_path_GREP_found && break 3
4009 if test -z "$ac_cv_path_GREP"; then
4010 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4013 ac_cv_path_GREP
=$GREP
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4018 $as_echo "$ac_cv_path_GREP" >&6; }
4019 GREP
="$ac_cv_path_GREP"
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4023 $as_echo_n "checking for egrep... " >&6; }
4024 if test "${ac_cv_path_EGREP+set}" = set; then :
4025 $as_echo_n "(cached) " >&6
4027 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4028 then ac_cv_path_EGREP
="$GREP -E"
4030 if test -z "$EGREP"; then
4031 ac_path_EGREP_found
=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4034 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4037 test -z "$as_dir" && as_dir
=.
4038 for ac_prog
in egrep; do
4039 for ac_exec_ext
in '' $ac_executable_extensions; do
4040 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4041 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4042 # Check for GNU ac_path_EGREP and select it if it is found.
4043 # Check for GNU $ac_path_EGREP
4044 case `"$ac_path_EGREP" --version 2>&1` in
4046 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4049 $as_echo_n 0123456789 >"conftest.in"
4052 cat "conftest.in" "conftest.in" >"conftest.tmp"
4053 mv "conftest.tmp" "conftest.in"
4054 cp "conftest.in" "conftest.nl"
4055 $as_echo 'EGREP' >> "conftest.nl"
4056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4057 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4058 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4060 # Best one so far, save it but keep looking for a better one
4061 ac_cv_path_EGREP
="$ac_path_EGREP"
4062 ac_path_EGREP_max
=$ac_count
4064 # 10*(2^10) chars as input seems more than enough
4065 test $ac_count -gt 10 && break
4067 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4070 $ac_path_EGREP_found && break 3
4075 if test -z "$ac_cv_path_EGREP"; then
4076 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4079 ac_cv_path_EGREP
=$EGREP
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4085 $as_echo "$ac_cv_path_EGREP" >&6; }
4086 EGREP
="$ac_cv_path_EGREP"
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4090 $as_echo_n "checking for ANSI C header files... " >&6; }
4091 if test "${ac_cv_header_stdc+set}" = set; then :
4092 $as_echo_n "(cached) " >&6
4094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4109 if ac_fn_c_try_compile
"$LINENO"; then :
4110 ac_cv_header_stdc
=yes
4112 ac_cv_header_stdc
=no
4114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4116 if test $ac_cv_header_stdc = yes; then
4117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124 $EGREP "memchr" >/dev
/null
2>&1; then :
4127 ac_cv_header_stdc
=no
4133 if test $ac_cv_header_stdc = yes; then
4134 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "free" >/dev
/null
2>&1; then :
4144 ac_cv_header_stdc
=no
4150 if test $ac_cv_header_stdc = yes; then
4151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4152 if test "$cross_compiling" = yes; then :
4155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4159 #if ((' ' & 0x0FF) == 0x020)
4160 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4161 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4163 # define ISLOWER(c) \
4164 (('a' <= (c) && (c) <= 'i') \
4165 || ('j' <= (c) && (c) <= 'r') \
4166 || ('s' <= (c) && (c) <= 'z'))
4167 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4175 for (i = 0; i < 256; i++)
4176 if (XOR (islower (i), ISLOWER (i))
4177 || toupper (i) != TOUPPER (i))
4182 if ac_fn_c_try_run
"$LINENO"; then :
4185 ac_cv_header_stdc
=no
4187 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4188 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4194 $as_echo "$ac_cv_header_stdc" >&6; }
4195 if test $ac_cv_header_stdc = yes; then
4197 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4201 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4202 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4203 inttypes.h stdint.h unistd.h
4205 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4206 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4208 eval as_val
=\$
$as_ac_Header
4209 if test "x$as_val" = x
""yes; then :
4210 cat >>confdefs.h
<<_ACEOF
4211 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4220 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4221 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4228 if test "$MINIX" = yes; then
4230 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4233 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4236 $as_echo "#define _MINIX 1" >>confdefs.h
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4242 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4243 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4249 # define __EXTENSIONS__ 1
4250 $ac_includes_default
4259 if ac_fn_c_try_compile
"$LINENO"; then :
4260 ac_cv_safe_to_define___extensions__
=yes
4262 ac_cv_safe_to_define___extensions__
=no
4264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4267 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4268 test $ac_cv_safe_to_define___extensions__ = yes &&
4269 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4271 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4273 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4275 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4277 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4281 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4282 for ac_t
in install-sh
install.sh shtool
; do
4283 if test -f "$ac_dir/$ac_t"; then
4285 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4290 if test -z "$ac_aux_dir"; then
4291 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4294 # These three variables are undocumented and unsupported,
4295 # and are intended to be withdrawn in a future Autoconf release.
4296 # They can cause serious problems if a builder's source tree is in a directory
4297 # whose full name contains unusual characters.
4298 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4299 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4300 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4303 # Make sure we can run config.sub.
4304 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4305 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4308 $as_echo_n "checking build system type... " >&6; }
4309 if test "${ac_cv_build+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4312 ac_build_alias
=$build_alias
4313 test "x$ac_build_alias" = x
&&
4314 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4315 test "x$ac_build_alias" = x
&&
4316 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4317 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4318 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4322 $as_echo "$ac_cv_build" >&6; }
4323 case $ac_cv_build in
4325 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4328 ac_save_IFS
=$IFS; IFS
='-'
4334 # Remember, the first character of IFS is used to create $*,
4335 # except with old shells:
4338 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4342 $as_echo_n "checking host system type... " >&6; }
4343 if test "${ac_cv_host+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4346 if test "x$host_alias" = x
; then
4347 ac_cv_host
=$ac_cv_build
4349 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4350 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4355 $as_echo "$ac_cv_host" >&6; }
4358 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4361 ac_save_IFS
=$IFS; IFS
='-'
4367 # Remember, the first character of IFS is used to create $*,
4368 # except with old shells:
4371 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4375 $as_echo_n "checking target system type... " >&6; }
4376 if test "${ac_cv_target+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4379 if test "x$target_alias" = x
; then
4380 ac_cv_target
=$ac_cv_host
4382 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4383 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4388 $as_echo "$ac_cv_target" >&6; }
4389 case $ac_cv_target in
4391 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4393 target
=$ac_cv_target
4394 ac_save_IFS
=$IFS; IFS
='-'
4400 # Remember, the first character of IFS is used to create $*,
4401 # except with old shells:
4404 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4407 # The aliases save the names the user supplied, while $host etc.
4408 # will get canonicalized.
4409 test -n "$target_alias" &&
4410 test "$program_prefix$program_suffix$program_transform_name" = \
4412 program_prefix
=${target_alias}-
4414 # The tests for host and target for $enable_largefile require
4419 # As the $enable_largefile decision depends on --enable-plugins we must set it
4420 # even in directories otherwise not depending on the $plugins option.
4424 for ac_header
in dlfcn.h
4426 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4428 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
4429 cat >>confdefs.h
<<_ACEOF
4430 #define HAVE_DLFCN_H 1
4437 for ac_header
in windows.h
4439 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4441 if test "x$ac_cv_header_windows_h" = x
""yes; then :
4442 cat >>confdefs.h
<<_ACEOF
4443 #define HAVE_WINDOWS_H 1
4451 # Check whether --enable-plugins was given.
4452 if test "${enable_plugins+set}" = set; then :
4453 enableval
=$enable_plugins; case "${enableval}" in
4456 if test "$maybe_plugins" != "yes" ; then
4457 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4461 plugins
=$maybe_plugins
4465 if test "$plugins" = "yes"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4467 $as_echo_n "checking for library containing dlopen... " >&6; }
4468 if test "${ac_cv_search_dlopen+set}" = set; then :
4469 $as_echo_n "(cached) " >&6
4471 ac_func_search_save_LIBS
=$LIBS
4472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4475 /* Override any GCC internal prototype to avoid an error.
4476 Use char because int might match the return type of a GCC
4477 builtin and then its argument prototype would still apply. */
4490 for ac_lib
in '' dl
; do
4491 if test -z "$ac_lib"; then
4492 ac_res
="none required"
4495 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4497 if ac_fn_c_try_link
"$LINENO"; then :
4498 ac_cv_search_dlopen
=$ac_res
4500 rm -f core conftest.err conftest.
$ac_objext \
4502 if test "${ac_cv_search_dlopen+set}" = set; then :
4506 if test "${ac_cv_search_dlopen+set}" = set; then :
4509 ac_cv_search_dlopen
=no
4512 LIBS
=$ac_func_search_save_LIBS
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4515 $as_echo "$ac_cv_search_dlopen" >&6; }
4516 ac_res
=$ac_cv_search_dlopen
4517 if test "$ac_res" != no
; then :
4518 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4526 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4527 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4528 # are mutually exclusive; and without procfs support, the bfd/ elf module
4529 # cannot provide certain routines such as elfcore_write_prpsinfo
4530 # or elfcore_write_prstatus. So unless the user explicitly requested
4531 # large-file support through the --enable-largefile switch, disable
4532 # large-file support in favor of procfs support.
4533 test "${target}" = "${host}" -a "x$plugins" = xno \
4534 && : ${enable_largefile="no"}
4538 # Check whether --enable-largefile was given.
4539 if test "${enable_largefile+set}" = set; then :
4540 enableval
=$enable_largefile;
4543 if test "$enable_largefile" != no
; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4546 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4547 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
4550 ac_cv_sys_largefile_CC
=no
4551 if test "$GCC" != yes; then
4554 # IRIX 6.2 and later do not support large files by default,
4555 # so use the C compiler's -n32 option if that helps.
4556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 #include <sys/types.h>
4559 /* Check that off_t can represent 2**63 - 1 correctly.
4560 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4561 since some C++ compilers masquerading as C compilers
4562 incorrectly reject 9223372036854775807. */
4563 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4564 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4565 && LARGE_OFF_T % 2147483647 == 1)
4575 if ac_fn_c_try_compile
"$LINENO"; then :
4578 rm -f core conftest.err conftest.
$ac_objext
4580 if ac_fn_c_try_compile
"$LINENO"; then :
4581 ac_cv_sys_largefile_CC
=' -n32'; break
4583 rm -f core conftest.err conftest.
$ac_objext
4587 rm -f conftest.
$ac_ext
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4591 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4592 if test "$ac_cv_sys_largefile_CC" != no
; then
4593 CC
=$CC$ac_cv_sys_largefile_CC
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4597 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4598 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4599 $as_echo_n "(cached) " >&6
4602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4604 #include <sys/types.h>
4605 /* Check that off_t can represent 2**63 - 1 correctly.
4606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4607 since some C++ compilers masquerading as C compilers
4608 incorrectly reject 9223372036854775807. */
4609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4611 && LARGE_OFF_T % 2147483647 == 1)
4621 if ac_fn_c_try_compile
"$LINENO"; then :
4622 ac_cv_sys_file_offset_bits
=no
; break
4624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627 #define _FILE_OFFSET_BITS 64
4628 #include <sys/types.h>
4629 /* Check that off_t can represent 2**63 - 1 correctly.
4630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4631 since some C++ compilers masquerading as C compilers
4632 incorrectly reject 9223372036854775807. */
4633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4635 && LARGE_OFF_T % 2147483647 == 1)
4645 if ac_fn_c_try_compile
"$LINENO"; then :
4646 ac_cv_sys_file_offset_bits
=64; break
4648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4649 ac_cv_sys_file_offset_bits
=unknown
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4654 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4655 case $ac_cv_sys_file_offset_bits in #(
4658 cat >>confdefs.h
<<_ACEOF
4659 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4664 if test $ac_cv_sys_file_offset_bits = unknown
; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4666 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4667 if test "${ac_cv_sys_large_files+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4673 #include <sys/types.h>
4674 /* Check that off_t can represent 2**63 - 1 correctly.
4675 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4676 since some C++ compilers masquerading as C compilers
4677 incorrectly reject 9223372036854775807. */
4678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4679 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4680 && LARGE_OFF_T % 2147483647 == 1)
4690 if ac_fn_c_try_compile
"$LINENO"; then :
4691 ac_cv_sys_large_files
=no
; break
4693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696 #define _LARGE_FILES 1
4697 #include <sys/types.h>
4698 /* Check that off_t can represent 2**63 - 1 correctly.
4699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4700 since some C++ compilers masquerading as C compilers
4701 incorrectly reject 9223372036854775807. */
4702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4704 && LARGE_OFF_T % 2147483647 == 1)
4714 if ac_fn_c_try_compile
"$LINENO"; then :
4715 ac_cv_sys_large_files
=1; break
4717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4718 ac_cv_sys_large_files
=unknown
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4723 $as_echo "$ac_cv_sys_large_files" >&6; }
4724 case $ac_cv_sys_large_files in #(
4727 cat >>confdefs.h
<<_ACEOF
4728 #define _LARGE_FILES $ac_cv_sys_large_files
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4741 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4742 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
4745 am_cv_prog_cc_stdc
=no
4747 # Don't try gcc -ansi; that turns off useful extensions and
4748 # breaks some systems' header files.
4749 # AIX -qlanglvl=ansi
4750 # Ultrix and OSF/1 -std1
4751 # HP-UX 10.20 and later -Ae
4752 # HP-UX older versions -Aa -D_HPUX_SOURCE
4753 # SVR4 -Xc -D__EXTENSIONS__
4754 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4756 CC
="$ac_save_CC $ac_arg"
4757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4761 #include <sys/types.h>
4762 #include <sys/stat.h>
4763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4764 struct buf { int x; };
4765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4766 static char *e (p, i)
4772 static char *f (char * (*g) (char **, int), char **p, ...)
4777 s = g (p, va_arg (v,int));
4781 int test (int i, double x);
4782 struct s1 {int (*f) (int a);};
4783 struct s2 {int (*f) (double a);};
4784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4798 if ac_fn_c_try_compile
"$LINENO"; then :
4799 am_cv_prog_cc_stdc
="$ac_arg"; break
4801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4807 if test -z "$am_cv_prog_cc_stdc"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4809 $as_echo "none needed" >&6; }
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4812 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4814 case "x$am_cv_prog_cc_stdc" in
4816 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4819 # expand $ac_aux_dir to an absolute path
4820 am_aux_dir
=`cd $ac_aux_dir && pwd`
4822 if test x
"${install_sh}" != xset
; then
4825 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4827 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4831 # Installed binaries are usually stripped using `strip' when the user
4832 # run `make install-strip'. However `strip' might not be the right
4833 # tool to use in cross-compilation environments, therefore Automake
4834 # will honor the `STRIP' environment variable to overrule this program.
4835 if test "$cross_compiling" != no
; then
4836 if test -n "$ac_tool_prefix"; then
4837 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4838 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 $as_echo_n "checking for $ac_word... " >&6; }
4841 if test "${ac_cv_prog_STRIP+set}" = set; then :
4842 $as_echo_n "(cached) " >&6
4844 if test -n "$STRIP"; then
4845 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4851 test -z "$as_dir" && as_dir
=.
4852 for ac_exec_ext
in '' $ac_executable_extensions; do
4853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4854 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 STRIP
=$ac_cv_prog_STRIP
4865 if test -n "$STRIP"; then
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4867 $as_echo "$STRIP" >&6; }
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 $as_echo "no" >&6; }
4875 if test -z "$ac_cv_prog_STRIP"; then
4877 # Extract the first word of "strip", so it can be a program name with args.
4878 set dummy strip
; ac_word
=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
4884 if test -n "$ac_ct_STRIP"; then
4885 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4891 test -z "$as_dir" && as_dir
=.
4892 for ac_exec_ext
in '' $ac_executable_extensions; do
4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ac_cv_prog_ac_ct_STRIP
="strip"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4905 if test -n "$ac_ct_STRIP"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4907 $as_echo "$ac_ct_STRIP" >&6; }
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4913 if test "x$ac_ct_STRIP" = x
; then
4916 case $cross_compiling:$ac_tool_warned in
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4920 ac_tool_warned
=yes ;;
4925 STRIP
="$ac_cv_prog_STRIP"
4929 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4933 for ac_dir
in ..
"$srcdir"/..
; do
4934 for ac_t
in install-sh
install.sh shtool
; do
4935 if test -f "$ac_dir/$ac_t"; then
4937 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4942 if test -z "$ac_aux_dir"; then
4943 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4946 # These three variables are undocumented and unsupported,
4947 # and are intended to be withdrawn in a future Autoconf release.
4948 # They can cause serious problems if a builder's source tree is in a directory
4949 # whose full name contains unusual characters.
4950 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4951 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4952 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4956 test "$program_prefix" != NONE
&&
4957 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4958 # Use a double $ so make ignores it.
4959 test "$program_suffix" != NONE
&&
4960 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4961 # Double any \ or $.
4962 # By default was `s,x,x', remove it if useless.
4963 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4964 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4967 # We require a C++11 compiler. Check if one is available, and if
4968 # necessary, set CXX_DIALECT to some -std=xxx switch.
4970 ax_cxx_compile_cxx11_required
=true
4972 ac_cpp
='$CXXCPP $CPPFLAGS'
4973 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4979 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4980 if test "${ax_cv_cxx_compile_cxx11+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4987 // If the compiler admits that it is not ready for C++11, why torture it?
4988 // Hopefully, this will speed up the test.
4992 #error "This is not a C++ compiler"
4994 #elif __cplusplus < 201103L
4996 #error "This is not a C++11 compiler"
5003 namespace test_static_assert
5006 template <typename T>
5009 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5014 namespace test_final_override
5022 struct Derived : public Base
5024 virtual void f() override {}
5029 namespace test_double_right_angle_brackets
5032 template < typename T >
5035 typedef check<void> single_type;
5036 typedef check<check<void>> double_type;
5037 typedef check<check<check<void>>> triple_type;
5038 typedef check<check<check<check<void>>>> quadruple_type;
5042 namespace test_decltype
5055 namespace test_type_deduction
5058 template < typename T1, typename T2 >
5061 static const bool value = false;
5064 template < typename T >
5065 struct is_same<T, T>
5067 static const bool value = true;
5070 template < typename T1, typename T2 >
5072 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5078 test(const int c, volatile int v)
5080 static_assert(is_same<int, decltype(0)>::value == true, "");
5081 static_assert(is_same<int, decltype(c)>::value == false, "");
5082 static_assert(is_same<int, decltype(v)>::value == false, "");
5085 auto sumi = ac + av + 'x';
5086 auto sumf = ac + av + 1.0;
5087 static_assert(is_same<int, decltype(ac)>::value == true, "");
5088 static_assert(is_same<int, decltype(av)>::value == true, "");
5089 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5090 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5091 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5092 return (sumf > 0.0) ? sumi : add(c, v);
5097 namespace test_noexcept
5100 int f() { return 0; }
5101 int g() noexcept { return 0; }
5103 static_assert(noexcept(f()) == false, "");
5104 static_assert(noexcept(g()) == true, "");
5108 namespace test_constexpr
5111 template < typename CharT >
5112 unsigned long constexpr
5113 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5115 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5118 template < typename CharT >
5119 unsigned long constexpr
5120 strlen_c(const CharT *const s) noexcept
5122 return strlen_c_r(s, 0UL);
5125 static_assert(strlen_c("") == 0UL, "");
5126 static_assert(strlen_c("1") == 1UL, "");
5127 static_assert(strlen_c("example") == 7UL, "");
5128 static_assert(strlen_c("another\0example") == 7UL, "");
5132 namespace test_rvalue_references
5138 static constexpr int value = N;
5141 answer<1> f(int&) { return answer<1>(); }
5142 answer<2> f(const int&) { return answer<2>(); }
5143 answer<3> f(int&&) { return answer<3>(); }
5150 static_assert(decltype(f(i))::value == 1, "");
5151 static_assert(decltype(f(c))::value == 2, "");
5152 static_assert(decltype(f(0))::value == 3, "");
5157 namespace test_uniform_initialization
5162 static const int zero {};
5163 static const int one {1};
5166 static_assert(test::zero == 0, "");
5167 static_assert(test::one == 1, "");
5171 namespace test_lambdas
5177 auto lambda1 = [](){};
5178 auto lambda2 = lambda1;
5186 auto a = [](int i, int j){ return i + j; }(1, 2);
5187 auto b = []() -> int { return '0'; }();
5188 auto c = [=](){ return a + b; }();
5189 auto d = [&](){ return c; }();
5190 auto e = [a, &b](int x) mutable {
5191 const auto identity = [](int y){ return y; };
5192 for (auto i = 0; i < a; ++i)
5194 return x + identity(a + b);
5196 return a + b + c + d + e;
5202 const auto nullary = [](){ return 0; };
5203 const auto unary = [](int x){ return x; };
5204 using nullary_t = decltype(nullary);
5205 using unary_t = decltype(unary);
5206 const auto higher1st = [](nullary_t f){ return f(); };
5207 const auto higher2nd = [unary](nullary_t f1){
5208 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5210 return higher1st(nullary) + higher2nd(nullary)(unary);
5215 namespace test_variadic_templates
5221 template <int N0, int... N1toN>
5222 struct sum<N0, N1toN...>
5224 static constexpr auto value = N0 + sum<N1toN...>::value;
5230 static constexpr auto value = 0;
5233 static_assert(sum<>::value == 0, "");
5234 static_assert(sum<1>::value == 1, "");
5235 static_assert(sum<23>::value == 23, "");
5236 static_assert(sum<1, 2>::value == 3, "");
5237 static_assert(sum<5, 5, 11>::value == 21, "");
5238 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5242 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5243 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5245 namespace test_template_alias_sfinae
5250 template<typename T>
5251 using member = typename T::member_type;
5253 template<typename T>
5256 template<typename T>
5257 void func(member<T>*) {}
5261 void test() { func<foo>(0); }
5265 } // namespace cxx11
5267 #endif // __cplusplus >= 201103L
5272 if ac_fn_cxx_try_compile
"$LINENO"; then :
5273 ax_cv_cxx_compile_cxx11
=yes
5275 ax_cv_cxx_compile_cxx11
=no
5277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5280 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5281 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5285 if test x
$ac_success = xno
; then
5286 for switch
in -std=gnu
++11 -std=gnu
++0x
; do
5287 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5289 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5290 if { as_var
=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
5291 $as_echo_n "(cached) " >&6
5295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5299 // If the compiler admits that it is not ready for C++11, why torture it?
5300 // Hopefully, this will speed up the test.
5304 #error "This is not a C++ compiler"
5306 #elif __cplusplus < 201103L
5308 #error "This is not a C++11 compiler"
5315 namespace test_static_assert
5318 template <typename T>
5321 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5326 namespace test_final_override
5334 struct Derived : public Base
5336 virtual void f() override {}
5341 namespace test_double_right_angle_brackets
5344 template < typename T >
5347 typedef check<void> single_type;
5348 typedef check<check<void>> double_type;
5349 typedef check<check<check<void>>> triple_type;
5350 typedef check<check<check<check<void>>>> quadruple_type;
5354 namespace test_decltype
5367 namespace test_type_deduction
5370 template < typename T1, typename T2 >
5373 static const bool value = false;
5376 template < typename T >
5377 struct is_same<T, T>
5379 static const bool value = true;
5382 template < typename T1, typename T2 >
5384 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5390 test(const int c, volatile int v)
5392 static_assert(is_same<int, decltype(0)>::value == true, "");
5393 static_assert(is_same<int, decltype(c)>::value == false, "");
5394 static_assert(is_same<int, decltype(v)>::value == false, "");
5397 auto sumi = ac + av + 'x';
5398 auto sumf = ac + av + 1.0;
5399 static_assert(is_same<int, decltype(ac)>::value == true, "");
5400 static_assert(is_same<int, decltype(av)>::value == true, "");
5401 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5402 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5403 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5404 return (sumf > 0.0) ? sumi : add(c, v);
5409 namespace test_noexcept
5412 int f() { return 0; }
5413 int g() noexcept { return 0; }
5415 static_assert(noexcept(f()) == false, "");
5416 static_assert(noexcept(g()) == true, "");
5420 namespace test_constexpr
5423 template < typename CharT >
5424 unsigned long constexpr
5425 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5427 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5430 template < typename CharT >
5431 unsigned long constexpr
5432 strlen_c(const CharT *const s) noexcept
5434 return strlen_c_r(s, 0UL);
5437 static_assert(strlen_c("") == 0UL, "");
5438 static_assert(strlen_c("1") == 1UL, "");
5439 static_assert(strlen_c("example") == 7UL, "");
5440 static_assert(strlen_c("another\0example") == 7UL, "");
5444 namespace test_rvalue_references
5450 static constexpr int value = N;
5453 answer<1> f(int&) { return answer<1>(); }
5454 answer<2> f(const int&) { return answer<2>(); }
5455 answer<3> f(int&&) { return answer<3>(); }
5462 static_assert(decltype(f(i))::value == 1, "");
5463 static_assert(decltype(f(c))::value == 2, "");
5464 static_assert(decltype(f(0))::value == 3, "");
5469 namespace test_uniform_initialization
5474 static const int zero {};
5475 static const int one {1};
5478 static_assert(test::zero == 0, "");
5479 static_assert(test::one == 1, "");
5483 namespace test_lambdas
5489 auto lambda1 = [](){};
5490 auto lambda2 = lambda1;
5498 auto a = [](int i, int j){ return i + j; }(1, 2);
5499 auto b = []() -> int { return '0'; }();
5500 auto c = [=](){ return a + b; }();
5501 auto d = [&](){ return c; }();
5502 auto e = [a, &b](int x) mutable {
5503 const auto identity = [](int y){ return y; };
5504 for (auto i = 0; i < a; ++i)
5506 return x + identity(a + b);
5508 return a + b + c + d + e;
5514 const auto nullary = [](){ return 0; };
5515 const auto unary = [](int x){ return x; };
5516 using nullary_t = decltype(nullary);
5517 using unary_t = decltype(unary);
5518 const auto higher1st = [](nullary_t f){ return f(); };
5519 const auto higher2nd = [unary](nullary_t f1){
5520 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5522 return higher1st(nullary) + higher2nd(nullary)(unary);
5527 namespace test_variadic_templates
5533 template <int N0, int... N1toN>
5534 struct sum<N0, N1toN...>
5536 static constexpr auto value = N0 + sum<N1toN...>::value;
5542 static constexpr auto value = 0;
5545 static_assert(sum<>::value == 0, "");
5546 static_assert(sum<1>::value == 1, "");
5547 static_assert(sum<23>::value == 23, "");
5548 static_assert(sum<1, 2>::value == 3, "");
5549 static_assert(sum<5, 5, 11>::value == 21, "");
5550 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5554 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5555 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5557 namespace test_template_alias_sfinae
5562 template<typename T>
5563 using member = typename T::member_type;
5565 template<typename T>
5568 template<typename T>
5569 void func(member<T>*) {}
5573 void test() { func<foo>(0); }
5577 } // namespace cxx11
5579 #endif // __cplusplus >= 201103L
5584 if ac_fn_cxx_try_compile
"$LINENO"; then :
5589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5592 eval ac_res
=\$
$cachevar
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5594 $as_echo "$ac_res" >&6; }
5595 if eval test x\$
$cachevar = xyes
; then
5596 CXX_DIALECT
="$switch"
5603 if test x
$ac_success = xno
; then
5604 for switch
in -std=c
++11 -std=c
++0x
+std
=c
++11 "-h std=c++11"; do
5605 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5607 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5608 if { as_var
=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
5609 $as_echo_n "(cached) " >&6
5613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5617 // If the compiler admits that it is not ready for C++11, why torture it?
5618 // Hopefully, this will speed up the test.
5622 #error "This is not a C++ compiler"
5624 #elif __cplusplus < 201103L
5626 #error "This is not a C++11 compiler"
5633 namespace test_static_assert
5636 template <typename T>
5639 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5644 namespace test_final_override
5652 struct Derived : public Base
5654 virtual void f() override {}
5659 namespace test_double_right_angle_brackets
5662 template < typename T >
5665 typedef check<void> single_type;
5666 typedef check<check<void>> double_type;
5667 typedef check<check<check<void>>> triple_type;
5668 typedef check<check<check<check<void>>>> quadruple_type;
5672 namespace test_decltype
5685 namespace test_type_deduction
5688 template < typename T1, typename T2 >
5691 static const bool value = false;
5694 template < typename T >
5695 struct is_same<T, T>
5697 static const bool value = true;
5700 template < typename T1, typename T2 >
5702 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5708 test(const int c, volatile int v)
5710 static_assert(is_same<int, decltype(0)>::value == true, "");
5711 static_assert(is_same<int, decltype(c)>::value == false, "");
5712 static_assert(is_same<int, decltype(v)>::value == false, "");
5715 auto sumi = ac + av + 'x';
5716 auto sumf = ac + av + 1.0;
5717 static_assert(is_same<int, decltype(ac)>::value == true, "");
5718 static_assert(is_same<int, decltype(av)>::value == true, "");
5719 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5720 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5721 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5722 return (sumf > 0.0) ? sumi : add(c, v);
5727 namespace test_noexcept
5730 int f() { return 0; }
5731 int g() noexcept { return 0; }
5733 static_assert(noexcept(f()) == false, "");
5734 static_assert(noexcept(g()) == true, "");
5738 namespace test_constexpr
5741 template < typename CharT >
5742 unsigned long constexpr
5743 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5745 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5748 template < typename CharT >
5749 unsigned long constexpr
5750 strlen_c(const CharT *const s) noexcept
5752 return strlen_c_r(s, 0UL);
5755 static_assert(strlen_c("") == 0UL, "");
5756 static_assert(strlen_c("1") == 1UL, "");
5757 static_assert(strlen_c("example") == 7UL, "");
5758 static_assert(strlen_c("another\0example") == 7UL, "");
5762 namespace test_rvalue_references
5768 static constexpr int value = N;
5771 answer<1> f(int&) { return answer<1>(); }
5772 answer<2> f(const int&) { return answer<2>(); }
5773 answer<3> f(int&&) { return answer<3>(); }
5780 static_assert(decltype(f(i))::value == 1, "");
5781 static_assert(decltype(f(c))::value == 2, "");
5782 static_assert(decltype(f(0))::value == 3, "");
5787 namespace test_uniform_initialization
5792 static const int zero {};
5793 static const int one {1};
5796 static_assert(test::zero == 0, "");
5797 static_assert(test::one == 1, "");
5801 namespace test_lambdas
5807 auto lambda1 = [](){};
5808 auto lambda2 = lambda1;
5816 auto a = [](int i, int j){ return i + j; }(1, 2);
5817 auto b = []() -> int { return '0'; }();
5818 auto c = [=](){ return a + b; }();
5819 auto d = [&](){ return c; }();
5820 auto e = [a, &b](int x) mutable {
5821 const auto identity = [](int y){ return y; };
5822 for (auto i = 0; i < a; ++i)
5824 return x + identity(a + b);
5826 return a + b + c + d + e;
5832 const auto nullary = [](){ return 0; };
5833 const auto unary = [](int x){ return x; };
5834 using nullary_t = decltype(nullary);
5835 using unary_t = decltype(unary);
5836 const auto higher1st = [](nullary_t f){ return f(); };
5837 const auto higher2nd = [unary](nullary_t f1){
5838 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5840 return higher1st(nullary) + higher2nd(nullary)(unary);
5845 namespace test_variadic_templates
5851 template <int N0, int... N1toN>
5852 struct sum<N0, N1toN...>
5854 static constexpr auto value = N0 + sum<N1toN...>::value;
5860 static constexpr auto value = 0;
5863 static_assert(sum<>::value == 0, "");
5864 static_assert(sum<1>::value == 1, "");
5865 static_assert(sum<23>::value == 23, "");
5866 static_assert(sum<1, 2>::value == 3, "");
5867 static_assert(sum<5, 5, 11>::value == 21, "");
5868 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5872 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5873 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5875 namespace test_template_alias_sfinae
5880 template<typename T>
5881 using member = typename T::member_type;
5883 template<typename T>
5886 template<typename T>
5887 void func(member<T>*) {}
5891 void test() { func<foo>(0); }
5895 } // namespace cxx11
5897 #endif // __cplusplus >= 201103L
5902 if ac_fn_cxx_try_compile
"$LINENO"; then :
5907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5910 eval ac_res
=\$
$cachevar
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5912 $as_echo "$ac_res" >&6; }
5913 if eval test x\$
$cachevar = xyes
; then
5914 CXX_DIALECT
="$switch"
5921 ac_cpp
='$CPP $CPPFLAGS'
5922 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5923 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5924 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5926 if test x
$ax_cxx_compile_cxx11_required = xtrue
; then
5927 if test x
$ac_success = xno
; then
5928 as_fn_error
"*** A compiler with support for C++11 language features is required." "$LINENO" 5
5931 if test x
$ac_success = xno
; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5934 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5938 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5945 # Dependency checking.
5946 rm -rf .tst
2>/dev
/null
5947 mkdir .tst
2>/dev
/null
5948 if test -d .tst
; then
5953 rmdir .tst
2>/dev
/null
5955 DEPDIR
="${am__leading_dot}deps"
5957 ac_config_commands
="$ac_config_commands depdir"
5960 depcc
="$CC" am_compiler_list
=
5962 am_depcomp
=$ac_aux_dir/depcomp
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5964 $as_echo_n "checking dependency style of $depcc... " >&6; }
5965 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5968 if test -f "$am_depcomp"; then
5969 # We make a subdir and do the tests there. Otherwise we can end up
5970 # making bogus files that we don't know about and never remove. For
5971 # instance it was reported that on HP-UX the gcc test will end up
5972 # making a dummy file named `D' -- because `-MD' means `put the output
5975 # Copy depcomp to subdir because otherwise we won't find it if we're
5976 # using a relative directory.
5977 cp "$am_depcomp" conftest.dir
5979 # We will build objects and dependencies in a subdirectory because
5980 # it helps to detect inapplicable dependency modes. For instance
5981 # both Tru64's cc and ICC support -MD to output dependencies as a
5982 # side effect of compilation, but ICC will put the dependencies in
5983 # the current directory while Tru64 will put them in the object
5987 am_cv_CC_dependencies_compiler_type
=none
5988 if test "$am_compiler_list" = ""; then
5989 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5991 for depmode
in $am_compiler_list; do
5992 if test $depmode = none
; then break; fi
5994 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5995 # Setup a source with many dependencies, because some compilers
5996 # like to wrap large dependency lists on column 80 (with \), and
5997 # we should not choose a depcomp mode which is confused by this.
5999 # We need to recreate these files for each test, as the compiler may
6000 # overwrite some of them when testing with obscure command lines.
6001 # This happens at least with the AIX C compiler.
6003 for i
in 1 2 3 4 5 6; do
6004 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6005 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6006 # Solaris 8's {/usr,}/bin/sh.
6007 touch sub
/conftst
$i.h
6009 echo "include sub/conftest.Po" > confmf
6011 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6012 # mode. It turns out that the SunPro C++ compiler does not properly
6013 # handle `-M -o', and we need to detect this.
6014 depcmd
="depmode=$depmode \
6015 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6016 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6017 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6018 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6019 if env
$depcmd > conftest.err
2>&1 &&
6020 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6021 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6022 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6023 # icc doesn't choke on unknown options, it will just issue warnings
6024 # or remarks (even with -Werror). So we grep stderr for any message
6025 # that says an option was ignored or not supported.
6026 # When given -MP, icc 7.0 and 7.1 complain thusly:
6027 # icc: Command line warning: ignoring option '-M'; no argument required
6028 # The diagnosis changed in icc 8.0:
6029 # icc: Command line remark: option '-MP' not supported
6030 if (grep 'ignoring option' conftest.err ||
6031 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6032 am_cv_CC_dependencies_compiler_type
=$depmode
6033 $as_echo "$as_me:$LINENO: success" >&5
6037 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6038 sed -e 's/^/| /' < conftest.err
>&5
6044 am_cv_CC_dependencies_compiler_type
=none
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6049 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6050 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6051 then as_fn_error
"no usable dependency style found" "$LINENO" 5
6052 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6057 gnulib_extra_configure_args
=
6058 # If large-file support is disabled, make sure gnulib does the same.
6059 if test "$enable_largefile" = no
; then
6060 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6063 # Configure gnulib. We need to build gnulib under some other
6064 # directory not "gnulib", to avoid the problem of both GDB and
6065 # GDBserver wanting to build it in the same directory, when building
6066 # in the source dir.
6069 in_build
="build-gnulib"
6070 in_extra_args
="$gnulib_extra_configure_args"
6072 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6073 # so they do not pile up.
6074 ac_sub_configure_args
=
6076 eval "set x $ac_configure_args"
6080 if test -n "$ac_prev"; then
6085 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6086 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6087 ac_prev
=cache_file
;;
6088 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6089 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6092 --config-cache |
-C)
6094 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6096 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6098 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6100 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6102 --disable-option-checking)
6106 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6108 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6112 # Always prepend --prefix to ensure using the same prefix
6113 # in subdir configurations.
6114 ac_arg
="--prefix=$prefix"
6116 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6118 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6121 if test "$silent" = yes; then
6122 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6125 # Always prepend --disable-option-checking to silence warnings, since
6126 # different subdirs can have different --enable and --with options.
6127 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6132 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6133 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6134 $as_echo "$ac_msg" >&6
6135 as_dir
="$ac_dir"; as_fn_mkdir_p
6139 ac_srcdir
=$srcdir/$in_src ;;
6141 ac_srcdir
=..
/$srcdir/$in_src ;;
6146 ac_sub_configure
=$ac_srcdir/configure
6148 # Make the cache file name correct relative to the subdirectory.
6150 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6152 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6155 if test -n "$in_extra_args"; then
6156 # Add the extra args at the end.
6157 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6160 { $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
6161 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6162 # The eval makes quoting arguments work.
6163 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6164 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6165 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6181 # If we haven't got the data from the intl directory,
6182 # assume NLS is disabled.
6191 if test -f ..
/intl
/config.intl
; then
6192 . ..
/intl
/config.intl
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6195 $as_echo_n "checking whether NLS is requested... " >&6; }
6196 if test x
"$USE_NLS" != xyes
; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6201 $as_echo "yes" >&6; }
6203 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6207 $as_echo_n "checking for catalogs to be installed... " >&6; }
6208 # Look for .po and .gmo files in the source directory.
6211 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6212 # If there aren't any .gmo files the shell will give us the
6213 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6215 case "$cat" in *\
**)
6218 # The quadruple backslash is collapsed to a double backslash
6219 # by the backticks, then collapsed again by the double quotes,
6220 # leaving us with one backslash in the sed expression (right
6221 # before the dot that mustn't act as a wildcard).
6222 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6223 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6224 # The user is allowed to set LINGUAS to a list of languages to
6225 # install catalogs for. If it's empty that means "all of them."
6226 if test "x$LINGUAS" = x
; then
6227 CATALOGS
="$CATALOGS $cat"
6228 XLINGUAS
="$XLINGUAS $lang"
6230 case "$LINGUAS" in *$lang*)
6231 CATALOGS
="$CATALOGS $cat"
6232 XLINGUAS
="$XLINGUAS $lang"
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6239 $as_echo "$LINGUAS" >&6; }
6252 localedir
='${datadir}/locale'
6255 if test x
"$USE_NLS" = xyes
; then
6256 CONFIG_ALL
="$CONFIG_ALL all-po"
6257 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6258 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6259 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6262 GNULIB
=build-gnulib
/import
6264 # For Makefile dependencies.
6266 if test x
"$STDINT_H" != x
; then
6267 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
6273 cat >>confdefs.h
<<_ACEOF
6274 #define PACKAGE "$PACKAGE"
6279 # We never need to detect it in this sub-configure.
6280 # But preserve it for config.status --recheck.
6284 MAKEINFO_EXTRA_FLAGS
=""
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6286 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6287 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
6288 $as_echo_n "(cached) " >&6
6290 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6291 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6292 gdb_cv_have_makeinfo_click
=yes
6294 gdb_cv_have_makeinfo_click
=no
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6298 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6299 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6300 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6306 # Check whether --with-separate-debug-dir was given.
6307 if test "${with_separate_debug_dir+set}" = set; then :
6308 withval
=$with_separate_debug_dir;
6311 DEBUGDIR
=${libdir}/debug
6315 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6316 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6317 ac_define_dir
=`eval echo $DEBUGDIR`
6318 ac_define_dir
=`eval echo $ac_define_dir`
6320 cat >>confdefs.h
<<_ACEOF
6321 #define DEBUGDIR "$ac_define_dir"
6327 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6328 if test "x$prefix" = xNONE
; then
6329 test_prefix
=/usr
/local
6334 test_prefix
=$exec_prefix
6337 case ${ac_define_dir} in
6338 "${test_prefix}"|
"${test_prefix}/"*|\
6339 '${exec_prefix}'|
'${exec_prefix}/'*)
6344 cat >>confdefs.h
<<_ACEOF
6345 #define DEBUGDIR_RELOCATABLE $value
6351 # We can't pass paths as command line arguments.
6352 # Mingw32 tries to be clever and will convert the paths for us.
6353 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6354 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6355 # This breaks GDB's relocatable path conversions since paths passed in
6356 # config.h would not get so translated, the path prefixes no longer match.
6358 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6359 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6360 ac_define_dir
=`eval echo $bindir`
6361 ac_define_dir
=`eval echo $ac_define_dir`
6363 cat >>confdefs.h
<<_ACEOF
6364 #define BINDIR "$ac_define_dir"
6369 # GDB's datadir relocation
6373 # Check whether --with-gdb-datadir was given.
6374 if test "${with_gdb_datadir+set}" = set; then :
6375 withval
=$with_gdb_datadir;
6376 GDB_DATADIR
=$withval
6378 GDB_DATADIR
=${datadir}/gdb
6382 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6383 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6384 ac_define_dir
=`eval echo $GDB_DATADIR`
6385 ac_define_dir
=`eval echo $ac_define_dir`
6387 cat >>confdefs.h
<<_ACEOF
6388 #define GDB_DATADIR "$ac_define_dir"
6394 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6395 if test "x$prefix" = xNONE
; then
6396 test_prefix
=/usr
/local
6401 test_prefix
=$exec_prefix
6404 case ${ac_define_dir} in
6405 "${test_prefix}"|
"${test_prefix}/"*|\
6406 '${exec_prefix}'|
'${exec_prefix}/'*)
6411 cat >>confdefs.h
<<_ACEOF
6412 #define GDB_DATADIR_RELOCATABLE $value
6419 # Check whether --with-relocated-sources was given.
6420 if test "${with_relocated_sources+set}" = set; then :
6421 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6423 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6424 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6425 ac_define_dir
=`eval echo $reloc_srcdir`
6426 ac_define_dir
=`eval echo $ac_define_dir`
6428 cat >>confdefs.h
<<_ACEOF
6429 #define RELOC_SRCDIR "$ac_define_dir"
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6438 $as_echo_n "checking for default auto-load directory... " >&6; }
6440 # Check whether --with-auto-load-dir was given.
6441 if test "${with_auto_load_dir+set}" = set; then :
6442 withval
=$with_auto_load_dir;
6444 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6447 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6449 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6450 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6451 ac_define_dir
=`eval echo $escape_dir`
6452 ac_define_dir
=`eval echo $ac_define_dir`
6454 cat >>confdefs.h
<<_ACEOF
6455 #define AUTO_LOAD_DIR "$ac_define_dir"
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6460 $as_echo "$with_auto_load_dir" >&6; }
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6463 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6465 # Check whether --with-auto-load-safe-path was given.
6466 if test "${with_auto_load_safe_path+set}" = set; then :
6467 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6468 with_auto_load_safe_path
="/"
6471 with_auto_load_safe_path
="$with_auto_load_dir"
6474 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6476 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6477 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6478 ac_define_dir
=`eval echo $escape_dir`
6479 ac_define_dir
=`eval echo $ac_define_dir`
6481 cat >>confdefs.h
<<_ACEOF
6482 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6487 $as_echo "$with_auto_load_safe_path" >&6; }
6491 subdirs
="$subdirs testsuite"
6494 # Check whether to support alternative target configurations
6495 # Check whether --enable-targets was given.
6496 if test "${enable_targets+set}" = set; then :
6497 enableval
=$enable_targets; case "${enableval}" in
6498 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6500 no
) enable_targets
= ;;
6501 *) enable_targets
=$enableval ;;
6506 # Check whether to enable 64-bit support on 32-bit hosts
6507 # Check whether --enable-64-bit-bfd was given.
6508 if test "${enable_64_bit_bfd+set}" = set; then :
6509 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6512 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6518 # Provide defaults for some variables set by the per-host and per-target
6520 gdb_host_obs
=posix-hdep.o
6522 if test "${target}" = "${host}"; then
6528 .
$srcdir/configure.
host
6530 # Add in the common host objects.
6531 .
$srcdir/common
/common.
host
6532 gdb_host_obs
="$gdb_host_obs $common_host_obs"
6534 # Accumulate some settings from configure.tgt over all enabled targets
6538 HAVE_NATIVE_GCORE_TARGET
=
6540 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6542 if test "$targ_alias" = "all"; then
6545 # Canonicalize the secondary target names.
6546 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6547 if test -n "$result"; then
6553 .
${srcdir}/configure.tgt
6555 if test -z "${gdb_target_obs}"; then :
6556 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
6559 # Target-specific object files
6560 for i
in ${gdb_target_obs}; do
6561 case " $TARGET_OBS " in
6564 TARGET_OBS
="$TARGET_OBS ${i}"
6569 # Check whether this target needs 64-bit CORE_ADDR
6570 if test x
${want64} = xfalse
; then
6571 .
${srcdir}/..
/bfd
/config.bfd
6574 # Check whether this target is native and supports gcore.
6575 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6576 && $gdb_have_gcore; then
6577 HAVE_NATIVE_GCORE_TARGET
=1
6582 if test x
${all_targets} = xtrue
; then
6584 # We want all 64-bit targets if we either:
6585 # - run on a 64-bit host or
6586 # - already require 64-bit support for some other target or
6587 # - the --enable-64-bit-bfd option was supplied
6588 # Otherwise we only support all 32-bit targets.
6590 # NOTE: This test must be in sync with the corresponding
6593 if test x
${want64} = xfalse
; then
6594 # The cast to long int works around a bug in the HP C Compiler
6595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6597 # This bug is HP SR number 8606223364.
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6599 $as_echo_n "checking size of long... " >&6; }
6600 if test "${ac_cv_sizeof_long+set}" = set; then :
6601 $as_echo_n "(cached) " >&6
6603 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6606 if test "$ac_cv_type_long" = yes; then
6607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6609 { as_fn_set_status
77
6610 as_fn_error
"cannot compute sizeof (long)
6611 See \`config.log' for more details." "$LINENO" 5; }; }
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6619 $as_echo "$ac_cv_sizeof_long" >&6; }
6623 cat >>confdefs.h
<<_ACEOF
6624 #define SIZEOF_LONG $ac_cv_sizeof_long
6628 if test "x${ac_cv_sizeof_long}" = "x8"; then
6632 if test x
${want64} = xtrue
; then
6633 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6635 TARGET_OBS
='$(ALL_TARGET_OBS)'
6642 # For other settings, only the main target counts.
6646 targ
=$target; .
${srcdir}/configure.tgt
6648 # Fetch the default architecture and default target vector from BFD.
6649 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6651 # We only want the first architecture, so strip off the others if
6652 # there is more than one.
6653 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6655 if test "x$targ_archs" != x
; then
6657 cat >>confdefs.h
<<_ACEOF
6658 #define DEFAULT_BFD_ARCH $targ_archs
6662 if test "x$targ_defvec" != x
; then
6664 cat >>confdefs.h
<<_ACEOF
6665 #define DEFAULT_BFD_VEC $targ_defvec
6670 # The CLI cannot be disabled yet, but may be in the future.
6673 # Check whether --enable-gdbcli was given.
6674 if test "${enable_gdbcli+set}" = set; then :
6675 enableval
=$enable_gdbcli; case $enableval in
6679 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
6681 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
6687 if test x
"$enable_gdbcli" = xyes
; then
6688 if test -d $srcdir/cli
; then
6689 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6690 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6691 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6692 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6697 # Check whether --enable-gdbmi was given.
6698 if test "${enable_gdbmi+set}" = set; then :
6699 enableval
=$enable_gdbmi; case $enableval in
6703 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6709 if test x
"$enable_gdbmi" = xyes
; then
6710 if test -d $srcdir/mi
; then
6711 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6712 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6713 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6714 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6719 # Check whether --enable-tui was given.
6720 if test "${enable_tui+set}" = set; then :
6721 enableval
=$enable_tui; case $enableval in
6725 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6733 # Check whether --enable-gdbtk was given.
6734 if test "${enable_gdbtk+set}" = set; then :
6735 enableval
=$enable_gdbtk; case $enableval in
6739 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6742 if test -d $srcdir/gdbtk
; then
6749 # We unconditionally disable gdbtk tests on selected platforms.
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6753 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6757 # Libunwind support for ia64.
6760 # Check whether --with-libunwind-ia64 was given.
6761 if test "${with_libunwind_ia64+set}" = set; then :
6762 withval
=$with_libunwind_ia64;
6764 with_libunwind_ia64
=auto
6768 # Backward compatibility option.
6769 if test "${with_libunwind+set}" = set; then
6770 if test x
"$with_libunwind_ia64" != xauto
; then
6771 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6774 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6775 with_libunwind_ia64
="$with_libunwind"
6778 case "$with_libunwind_ia64" in
6782 for ac_header
in libunwind-ia64.h
6784 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6785 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
6786 cat >>confdefs.h
<<_ACEOF
6787 #define HAVE_LIBUNWIND_IA64_H 1
6794 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6797 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6801 if test x
"$with_libunwind_ia64" = xyes
; then
6802 for ac_header
in libunwind-ia64.h
6804 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6805 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
6806 cat >>confdefs.h
<<_ACEOF
6807 #define HAVE_LIBUNWIND_IA64_H 1
6814 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6815 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6817 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6818 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6819 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6824 # Check whether --with-curses was given.
6825 if test "${with_curses+set}" = set; then :
6826 withval
=$with_curses; opt_curses
=$withval
6831 if test "$opt_curses" = "yes"; then
6835 # Profiling support.
6836 # Check whether --enable-profiling was given.
6837 if test "${enable_profiling+set}" = set; then :
6838 enableval
=$enable_profiling; case $enableval in
6842 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6849 for ac_func
in monstartup _mcleanup
6851 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6852 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6853 eval as_val
=\$
$as_ac_var
6854 if test "x$as_val" = x
""yes; then :
6855 cat >>confdefs.h
<<_ACEOF
6856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6863 $as_echo_n "checking for _etext... " >&6; }
6864 if test "${ac_cv_var__etext+set}" = set; then :
6865 $as_echo_n "(cached) " >&6
6867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6880 if ac_fn_c_try_link
"$LINENO"; then :
6881 ac_cv_var__etext
=yes
6885 rm -f core conftest.err conftest.
$ac_objext \
6886 conftest
$ac_exeext conftest.
$ac_ext
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6889 $as_echo "$ac_cv_var__etext" >&6; }
6890 if test $ac_cv_var__etext = yes; then
6892 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6896 $as_echo_n "checking for etext... " >&6; }
6897 if test "${ac_cv_var_etext+set}" = set; then :
6898 $as_echo_n "(cached) " >&6
6900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6913 if ac_fn_c_try_link
"$LINENO"; then :
6918 rm -f core conftest.err conftest.
$ac_objext \
6919 conftest
$ac_exeext conftest.
$ac_ext
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6922 $as_echo "$ac_cv_var_etext" >&6; }
6923 if test $ac_cv_var_etext = yes; then
6925 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6928 if test "$enable_profiling" = yes ; then
6929 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6930 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6933 OLD_CFLAGS
="$CFLAGS"
6934 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6937 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6938 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h. */
6952 if ac_fn_c_try_compile
"$LINENO"; then :
6953 ac_cv_cc_supports_pg
=yes
6955 ac_cv_cc_supports_pg
=no
6957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6960 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6962 if test $ac_cv_cc_supports_pg = no
; then
6963 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6966 CFLAGS
="$OLD_CFLAGS"
6971 # Check whether --with-pkgversion was given.
6972 if test "${with_pkgversion+set}" = set; then :
6973 withval
=$with_pkgversion; case "$withval" in
6974 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6976 *) PKGVERSION
="($withval) " ;;
6987 # Check whether --with-bugurl was given.
6988 if test "${with_bugurl+set}" = set; then :
6989 withval
=$with_bugurl; case "$withval" in
6990 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6993 *) BUGURL
="$withval"
6997 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7007 REPORT_BUGS_TO
="<$BUGURL>"
7008 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7015 cat >>confdefs.h
<<_ACEOF
7016 #define PKGVERSION "$PKGVERSION"
7020 cat >>confdefs.h
<<_ACEOF
7021 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7025 # --------------------- #
7026 # Checks for programs. #
7027 # --------------------- #
7029 for ac_prog
in gawk mawk nawk
awk
7031 # Extract the first word of "$ac_prog", so it can be a program name with args.
7032 set dummy
$ac_prog; ac_word
=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if test "${ac_cv_prog_AWK+set}" = set; then :
7036 $as_echo_n "(cached) " >&6
7038 if test -n "$AWK"; then
7039 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7045 test -z "$as_dir" && as_dir
=.
7046 for ac_exec_ext
in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_AWK
="$ac_prog"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 if test -n "$AWK"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7061 $as_echo "$AWK" >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7068 test -n "$AWK" && break
7071 # Find a good install program. We prefer a C program (faster),
7072 # so one script is as good as another. But avoid the broken or
7073 # incompatible versions:
7074 # SysV /etc/install, /usr/sbin/install
7075 # SunOS /usr/etc/install
7076 # IRIX /sbin/install
7078 # AmigaOS /C/install, which installs bootblocks on floppy discs
7079 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7080 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7081 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7082 # OS/2's system install, which has a completely different semantic
7083 # ./install, which can be erroneously created by make from ./install.sh.
7084 # Reject install programs that cannot install multiple files.
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7086 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7087 if test -z "$INSTALL"; then
7088 if test "${ac_cv_path_install+set}" = set; then :
7089 $as_echo_n "(cached) " >&6
7091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7095 test -z "$as_dir" && as_dir
=.
7096 # Account for people who put trailing slashes in PATH elements.
7097 case $as_dir/ in #((
7098 .
/ | .
// |
/[cC
]/* | \
7099 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7100 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7103 # OSF1 and SCO ODT 3.0 have their own names for install.
7104 # Don't use installbsd from OSF since it installs stuff as root
7106 for ac_prog
in ginstall scoinst
install; do
7107 for ac_exec_ext
in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7109 if test $ac_prog = install &&
7110 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7111 # AIX install. It has an incompatible calling convention.
7113 elif test $ac_prog = install &&
7114 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7115 # program-specific install script used by HP pwplus--don't use.
7118 rm -rf conftest.one conftest.two conftest.dir
7119 echo one
> conftest.one
7120 echo two
> conftest.two
7122 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7123 test -s conftest.one
&& test -s conftest.two
&&
7124 test -s conftest.dir
/conftest.one
&&
7125 test -s conftest.dir
/conftest.two
7127 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7140 rm -rf conftest.one conftest.two conftest.dir
7143 if test "${ac_cv_path_install+set}" = set; then
7144 INSTALL
=$ac_cv_path_install
7146 # As a last resort, use the slow shell script. Don't cache a
7147 # value for INSTALL within a source directory, because that will
7148 # break other packages using the cache if that directory is
7149 # removed, or if the value is a relative name.
7150 INSTALL
=$ac_install_sh
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7154 $as_echo "$INSTALL" >&6; }
7156 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7157 # It thinks the first close brace ends the variable substitution.
7158 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7160 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7162 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7165 $as_echo_n "checking whether ln -s works... " >&6; }
7167 if test "$LN_S" = "ln -s"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7169 $as_echo "yes" >&6; }
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7172 $as_echo "no, using $LN_S" >&6; }
7175 if test -n "$ac_tool_prefix"; then
7176 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7177 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179 $as_echo_n "checking for $ac_word... " >&6; }
7180 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7181 $as_echo_n "(cached) " >&6
7183 if test -n "$RANLIB"; then
7184 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7190 test -z "$as_dir" && as_dir
=.
7191 for ac_exec_ext
in '' $ac_executable_extensions; do
7192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7193 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 RANLIB
=$ac_cv_prog_RANLIB
7204 if test -n "$RANLIB"; then
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7206 $as_echo "$RANLIB" >&6; }
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7214 if test -z "$ac_cv_prog_RANLIB"; then
7215 ac_ct_RANLIB
=$RANLIB
7216 # Extract the first word of "ranlib", so it can be a program name with args.
7217 set dummy ranlib
; ac_word
=$2
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219 $as_echo_n "checking for $ac_word... " >&6; }
7220 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7221 $as_echo_n "(cached) " >&6
7223 if test -n "$ac_ct_RANLIB"; then
7224 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7230 test -z "$as_dir" && as_dir
=.
7231 for ac_exec_ext
in '' $ac_executable_extensions; do
7232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7233 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7244 if test -n "$ac_ct_RANLIB"; then
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7246 $as_echo "$ac_ct_RANLIB" >&6; }
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249 $as_echo "no" >&6; }
7252 if test "x$ac_ct_RANLIB" = x
; then
7255 case $cross_compiling:$ac_tool_warned in
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7259 ac_tool_warned
=yes ;;
7261 RANLIB
=$ac_ct_RANLIB
7264 RANLIB
="$ac_cv_prog_RANLIB"
7267 for ac_prog
in 'bison -y' byacc
7269 # Extract the first word of "$ac_prog", so it can be a program name with args.
7270 set dummy
$ac_prog; ac_word
=$2
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272 $as_echo_n "checking for $ac_word... " >&6; }
7273 if test "${ac_cv_prog_YACC+set}" = set; then :
7274 $as_echo_n "(cached) " >&6
7276 if test -n "$YACC"; then
7277 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7283 test -z "$as_dir" && as_dir
=.
7284 for ac_exec_ext
in '' $ac_executable_extensions; do
7285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7286 ac_cv_prog_YACC
="$ac_prog"
7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 YACC
=$ac_cv_prog_YACC
7297 if test -n "$YACC"; then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7299 $as_echo "$YACC" >&6; }
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7306 test -n "$YACC" && break
7308 test -n "$YACC" || YACC
="yacc"
7311 if test -n "$ac_tool_prefix"; then
7312 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7313 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if test "${ac_cv_prog_AR+set}" = set; then :
7317 $as_echo_n "(cached) " >&6
7319 if test -n "$AR"; then
7320 ac_cv_prog_AR
="$AR" # Let the user override the test.
7322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir
=.
7327 for ac_exec_ext
in '' $ac_executable_extensions; do
7328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7329 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 if test -n "$AR"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7342 $as_echo "$AR" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7350 if test -z "$ac_cv_prog_AR"; then
7352 # Extract the first word of "ar", so it can be a program name with args.
7353 set dummy
ar; ac_word
=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7357 $as_echo_n "(cached) " >&6
7359 if test -n "$ac_ct_AR"; then
7360 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7366 test -z "$as_dir" && as_dir
=.
7367 for ac_exec_ext
in '' $ac_executable_extensions; do
7368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369 ac_cv_prog_ac_ct_AR
="ar"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7380 if test -n "$ac_ct_AR"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7382 $as_echo "$ac_ct_AR" >&6; }
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7388 if test "x$ac_ct_AR" = x
; then
7391 case $cross_compiling:$ac_tool_warned in
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7395 ac_tool_warned
=yes ;;
7403 if test -n "$ac_tool_prefix"; then
7404 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7405 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7411 if test -n "$DLLTOOL"; then
7412 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7418 test -z "$as_dir" && as_dir
=.
7419 for ac_exec_ext
in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 DLLTOOL
=$ac_cv_prog_DLLTOOL
7432 if test -n "$DLLTOOL"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7434 $as_echo "$DLLTOOL" >&6; }
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7442 if test -z "$ac_cv_prog_DLLTOOL"; then
7443 ac_ct_DLLTOOL
=$DLLTOOL
7444 # Extract the first word of "dlltool", so it can be a program name with args.
7445 set dummy dlltool
; ac_word
=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7449 $as_echo_n "(cached) " >&6
7451 if test -n "$ac_ct_DLLTOOL"; then
7452 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7458 test -z "$as_dir" && as_dir
=.
7459 for ac_exec_ext
in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7472 if test -n "$ac_ct_DLLTOOL"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7474 $as_echo "$ac_ct_DLLTOOL" >&6; }
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7480 if test "x$ac_ct_DLLTOOL" = x
; then
7483 case $cross_compiling:$ac_tool_warned in
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487 ac_tool_warned
=yes ;;
7489 DLLTOOL
=$ac_ct_DLLTOOL
7492 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7495 if test -n "$ac_tool_prefix"; then
7496 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7497 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if test "${ac_cv_prog_WINDRES+set}" = set; then :
7501 $as_echo_n "(cached) " >&6
7503 if test -n "$WINDRES"; then
7504 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7510 test -z "$as_dir" && as_dir
=.
7511 for ac_exec_ext
in '' $ac_executable_extensions; do
7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7513 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 WINDRES
=$ac_cv_prog_WINDRES
7524 if test -n "$WINDRES"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7526 $as_echo "$WINDRES" >&6; }
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7534 if test -z "$ac_cv_prog_WINDRES"; then
7535 ac_ct_WINDRES
=$WINDRES
7536 # Extract the first word of "windres", so it can be a program name with args.
7537 set dummy windres
; ac_word
=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
7543 if test -n "$ac_ct_WINDRES"; then
7544 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7550 test -z "$as_dir" && as_dir
=.
7551 for ac_exec_ext
in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_prog_ac_ct_WINDRES
="windres"
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7564 if test -n "$ac_ct_WINDRES"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7566 $as_echo "$ac_ct_WINDRES" >&6; }
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7572 if test "x$ac_ct_WINDRES" = x
; then
7575 case $cross_compiling:$ac_tool_warned in
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7579 ac_tool_warned
=yes ;;
7581 WINDRES
=$ac_ct_WINDRES
7584 WINDRES
="$ac_cv_prog_WINDRES"
7590 # Needed for GNU Hurd hosts.
7591 if test -n "$ac_tool_prefix"; then
7592 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7593 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595 $as_echo_n "checking for $ac_word... " >&6; }
7596 if test "${ac_cv_prog_MIG+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7599 if test -n "$MIG"; then
7600 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7606 test -z "$as_dir" && as_dir
=.
7607 for ac_exec_ext
in '' $ac_executable_extensions; do
7608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7609 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 if test -n "$MIG"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7622 $as_echo "$MIG" >&6; }
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7630 if test -z "$ac_cv_prog_MIG"; then
7632 # Extract the first word of "mig", so it can be a program name with args.
7633 set dummy mig
; ac_word
=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7639 if test -n "$ac_ct_MIG"; then
7640 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7646 test -z "$as_dir" && as_dir
=.
7647 for ac_exec_ext
in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_prog_ac_ct_MIG
="mig"
7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7660 if test -n "$ac_ct_MIG"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7662 $as_echo "$ac_ct_MIG" >&6; }
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7668 if test "x$ac_ct_MIG" = x
; then
7671 case $cross_compiling:$ac_tool_warned in
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7675 ac_tool_warned
=yes ;;
7680 MIG
="$ac_cv_prog_MIG"
7683 if test x
"$MIG" = x
; then
7684 as_fn_error
"MIG not found but required for $host hosts" "$LINENO" 5
7689 # ---------------------- #
7690 # Checks for libraries. #
7691 # ---------------------- #
7693 # We might need to link with -lm; most simulators need it.
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7695 $as_echo_n "checking for main in -lm... " >&6; }
7696 if test "${ac_cv_lib_m_main+set}" = set; then :
7697 $as_echo_n "(cached) " >&6
7699 ac_check_lib_save_LIBS
=$LIBS
7701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7713 if ac_fn_c_try_link
"$LINENO"; then :
7714 ac_cv_lib_m_main
=yes
7718 rm -f core conftest.err conftest.
$ac_objext \
7719 conftest
$ac_exeext conftest.
$ac_ext
7720 LIBS
=$ac_check_lib_save_LIBS
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7723 $as_echo "$ac_cv_lib_m_main" >&6; }
7724 if test "x$ac_cv_lib_m_main" = x
""yes; then :
7725 cat >>confdefs.h
<<_ACEOF
7734 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7736 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7737 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7738 $as_echo_n "(cached) " >&6
7740 ac_func_search_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. */
7750 char gethostbyname ();
7754 return gethostbyname ();
7759 for ac_lib
in '' nsl
; do
7760 if test -z "$ac_lib"; then
7761 ac_res
="none required"
7764 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7766 if ac_fn_c_try_link
"$LINENO"; then :
7767 ac_cv_search_gethostbyname
=$ac_res
7769 rm -f core conftest.err conftest.
$ac_objext \
7771 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7775 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7778 ac_cv_search_gethostbyname
=no
7781 LIBS
=$ac_func_search_save_LIBS
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7784 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7785 ac_res
=$ac_cv_search_gethostbyname
7786 if test "$ac_res" != no
; then :
7787 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7792 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7794 $as_echo_n "checking for library containing socketpair... " >&6; }
7795 if test "${ac_cv_search_socketpair+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7798 ac_func_search_save_LIBS
=$LIBS
7799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7802 /* Override any GCC internal prototype to avoid an error.
7803 Use char because int might match the return type of a GCC
7804 builtin and then its argument prototype would still apply. */
7812 return socketpair ();
7817 for ac_lib
in '' socket
; do
7818 if test -z "$ac_lib"; then
7819 ac_res
="none required"
7822 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7824 if ac_fn_c_try_link
"$LINENO"; then :
7825 ac_cv_search_socketpair
=$ac_res
7827 rm -f core conftest.err conftest.
$ac_objext \
7829 if test "${ac_cv_search_socketpair+set}" = set; then :
7833 if test "${ac_cv_search_socketpair+set}" = set; then :
7836 ac_cv_search_socketpair
=no
7839 LIBS
=$ac_func_search_save_LIBS
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7842 $as_echo "$ac_cv_search_socketpair" >&6; }
7843 ac_res
=$ac_cv_search_socketpair
7844 if test "$ac_res" != no
; then :
7845 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7850 # Link in zlib if we can. This allows us to read compressed debug sections.
7852 # Use the system's zlib library.
7853 zlibdir
="-L\$(top_builddir)/../zlib"
7854 zlibinc
="-I\$(top_srcdir)/../zlib"
7856 # Check whether --with-system-zlib was given.
7857 if test "${with_system_zlib+set}" = set; then :
7858 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7869 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7870 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7872 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7873 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7874 $as_echo_n "(cached) " >&6
7876 ac_func_search_save_LIBS
=$LIBS
7877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h. */
7880 /* Override any GCC internal prototype to avoid an error.
7881 Use char because int might match the return type of a GCC
7882 builtin and then its argument prototype would still apply. */
7886 char kinfo_getvmmap ();
7890 return kinfo_getvmmap ();
7895 for ac_lib
in '' util util-freebsd
; do
7896 if test -z "$ac_lib"; then
7897 ac_res
="none required"
7900 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7902 if ac_fn_c_try_link
"$LINENO"; then :
7903 ac_cv_search_kinfo_getvmmap
=$ac_res
7905 rm -f core conftest.err conftest.
$ac_objext \
7907 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7911 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7914 ac_cv_search_kinfo_getvmmap
=no
7917 LIBS
=$ac_func_search_save_LIBS
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7920 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7921 ac_res
=$ac_cv_search_kinfo_getvmmap
7922 if test "$ac_res" != no
; then :
7923 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7925 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7931 if test "X$prefix" = "XNONE"; then
7932 acl_final_prefix
="$ac_default_prefix"
7934 acl_final_prefix
="$prefix"
7936 if test "X$exec_prefix" = "XNONE"; then
7937 acl_final_exec_prefix
='${prefix}'
7939 acl_final_exec_prefix
="$exec_prefix"
7941 acl_save_prefix
="$prefix"
7942 prefix
="$acl_final_prefix"
7943 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7944 prefix
="$acl_save_prefix"
7947 # Check whether --with-gnu-ld was given.
7948 if test "${with_gnu_ld+set}" = set; then :
7949 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7954 # Prepare PATH_SEPARATOR.
7955 # The user is always right.
7956 if test "${PATH_SEPARATOR+set}" != set; then
7957 echo "#! /bin/sh" >conf$$.sh
7958 echo "exit 0" >>conf$$.sh
7960 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7968 if test "$GCC" = yes; then
7969 # Check if gcc -print-prog-name=ld gives a path.
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7971 $as_echo_n "checking for ld used by GCC... " >&6; }
7974 # gcc leaves a trailing carriage return which upsets mingw
7975 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7977 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7980 # Accept absolute paths.
7981 [\\/]* |
[A-Za-z
]:[\\/]*)
7982 re_direlt
='/[^/][^/]*/\.\./'
7983 # Canonicalize the path of ld
7984 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7985 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7986 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7988 test -z "$LD" && LD
="$ac_prog"
7991 # If it fails, then pretend we aren't using GCC.
7995 # If it is relative, then search for the first ld in PATH.
7999 elif test "$with_gnu_ld" = yes; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8001 $as_echo_n "checking for GNU ld... " >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8004 $as_echo_n "checking for non-GNU ld... " >&6; }
8006 if test "${acl_cv_path_LD+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
8009 if test -z "$LD"; then
8010 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8011 for ac_dir
in $PATH; do
8012 test -z "$ac_dir" && ac_dir
=.
8013 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8014 acl_cv_path_LD
="$ac_dir/$ac_prog"
8015 # Check to see if the program is GNU ld. I'd rather use --version,
8016 # but apparently some GNU ld's only accept -v.
8017 # Break only if it was the GNU/non-GNU ld that we prefer.
8018 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8019 test "$with_gnu_ld" != no
&& break
8021 test "$with_gnu_ld" != yes && break
8027 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8031 LD
="$acl_cv_path_LD"
8032 if test -n "$LD"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8034 $as_echo "$LD" >&6; }
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8039 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8041 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8042 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8043 $as_echo_n "(cached) " >&6
8045 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8046 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8047 acl_cv_prog_gnu_ld
=yes
8049 acl_cv_prog_gnu_ld
=no
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8053 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8054 with_gnu_ld
=$acl_cv_prog_gnu_ld
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8059 $as_echo_n "checking for shared library run path origin... " >&6; }
8060 if test "${acl_cv_rpath+set}" = set; then :
8061 $as_echo_n "(cached) " >&6
8064 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8065 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8072 $as_echo "$acl_cv_rpath" >&6; }
8074 libext
="$acl_cv_libext"
8075 shlibext
="$acl_cv_shlibext"
8076 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8077 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8078 hardcode_direct
="$acl_cv_hardcode_direct"
8079 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8080 # Check whether --enable-rpath was given.
8081 if test "${enable_rpath+set}" = set; then :
8082 enableval
=$enable_rpath; :
8096 acl_save_prefix
="$prefix"
8097 prefix
="$acl_final_prefix"
8098 acl_save_exec_prefix
="$exec_prefix"
8099 exec_prefix
="$acl_final_exec_prefix"
8101 eval additional_includedir
=\"$includedir\"
8102 eval additional_libdir
=\"$libdir\"
8104 exec_prefix
="$acl_save_exec_prefix"
8105 prefix
="$acl_save_prefix"
8108 # Check whether --with-libiconv-prefix was given.
8109 if test "${with_libiconv_prefix+set}" = set; then :
8110 withval
=$with_libiconv_prefix;
8111 if test "X$withval" = "Xno"; then
8114 if test "X$withval" = "X"; then
8116 acl_save_prefix
="$prefix"
8117 prefix
="$acl_final_prefix"
8118 acl_save_exec_prefix
="$exec_prefix"
8119 exec_prefix
="$acl_final_exec_prefix"
8121 eval additional_includedir
=\"$includedir\"
8122 eval additional_libdir
=\"$libdir\"
8124 exec_prefix
="$acl_save_exec_prefix"
8125 prefix
="$acl_save_prefix"
8128 additional_includedir
="$withval/include"
8129 additional_libdir
="$withval/lib"
8140 names_already_handled
=
8141 names_next_round
='iconv '
8142 while test -n "$names_next_round"; do
8143 names_this_round
="$names_next_round"
8145 for name
in $names_this_round; do
8147 for n
in $names_already_handled; do
8148 if test "$n" = "$name"; then
8153 if test -z "$already_handled"; then
8154 names_already_handled
="$names_already_handled $name"
8155 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8156 eval value
=\"\
$HAVE_LIB$uppername\"
8157 if test -n "$value"; then
8158 if test "$value" = yes; then
8159 eval value
=\"\
$LIB$uppername\"
8160 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8161 eval value
=\"\
$LTLIB$uppername\"
8162 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8171 if test $use_additional = yes; then
8172 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8173 found_dir
="$additional_libdir"
8174 found_so
="$additional_libdir/lib$name.$shlibext"
8175 if test -f "$additional_libdir/lib$name.la"; then
8176 found_la
="$additional_libdir/lib$name.la"
8179 if test -f "$additional_libdir/lib$name.$libext"; then
8180 found_dir
="$additional_libdir"
8181 found_a
="$additional_libdir/lib$name.$libext"
8182 if test -f "$additional_libdir/lib$name.la"; then
8183 found_la
="$additional_libdir/lib$name.la"
8188 if test "X$found_dir" = "X"; then
8189 for x
in $LDFLAGS $LTLIBICONV; do
8191 acl_save_prefix
="$prefix"
8192 prefix
="$acl_final_prefix"
8193 acl_save_exec_prefix
="$exec_prefix"
8194 exec_prefix
="$acl_final_exec_prefix"
8196 exec_prefix
="$acl_save_exec_prefix"
8197 prefix
="$acl_save_prefix"
8201 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8202 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8204 found_so
="$dir/lib$name.$shlibext"
8205 if test -f "$dir/lib$name.la"; then
8206 found_la
="$dir/lib$name.la"
8209 if test -f "$dir/lib$name.$libext"; then
8211 found_a
="$dir/lib$name.$libext"
8212 if test -f "$dir/lib$name.la"; then
8213 found_la
="$dir/lib$name.la"
8219 if test "X$found_dir" != "X"; then
8224 if test "X$found_dir" != "X"; then
8225 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8226 if test "X$found_so" != "X"; then
8227 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8228 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8231 for x
in $ltrpathdirs; do
8232 if test "X$x" = "X$found_dir"; then
8237 if test -z "$haveit"; then
8238 ltrpathdirs
="$ltrpathdirs $found_dir"
8240 if test "$hardcode_direct" = yes; then
8241 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8243 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8244 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8246 for x
in $rpathdirs; do
8247 if test "X$x" = "X$found_dir"; then
8252 if test -z "$haveit"; then
8253 rpathdirs
="$rpathdirs $found_dir"
8257 for x
in $LDFLAGS $LIBICONV; do
8259 acl_save_prefix
="$prefix"
8260 prefix
="$acl_final_prefix"
8261 acl_save_exec_prefix
="$exec_prefix"
8262 exec_prefix
="$acl_final_exec_prefix"
8264 exec_prefix
="$acl_save_exec_prefix"
8265 prefix
="$acl_save_prefix"
8267 if test "X$x" = "X-L$found_dir"; then
8272 if test -z "$haveit"; then
8273 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8275 if test "$hardcode_minus_L" != no
; then
8276 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8278 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8284 if test "X$found_a" != "X"; then
8285 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8287 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8290 additional_includedir
=
8291 case "$found_dir" in
8293 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8294 additional_includedir
="$basedir/include"
8297 if test "X$additional_includedir" != "X"; then
8298 if test "X$additional_includedir" != "X/usr/include"; then
8300 if test "X$additional_includedir" = "X/usr/local/include"; then
8301 if test -n "$GCC"; then
8303 linux
*) haveit
=yes;;
8307 if test -z "$haveit"; then
8308 for x
in $CPPFLAGS $INCICONV; do
8310 acl_save_prefix
="$prefix"
8311 prefix
="$acl_final_prefix"
8312 acl_save_exec_prefix
="$exec_prefix"
8313 exec_prefix
="$acl_final_exec_prefix"
8315 exec_prefix
="$acl_save_exec_prefix"
8316 prefix
="$acl_save_prefix"
8318 if test "X$x" = "X-I$additional_includedir"; then
8323 if test -z "$haveit"; then
8324 if test -d "$additional_includedir"; then
8325 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8331 if test -n "$found_la"; then
8332 save_libdir
="$libdir"
8334 */* |
*\\*) .
"$found_la" ;;
8335 *) .
"./$found_la" ;;
8337 libdir
="$save_libdir"
8338 for dep
in $dependency_libs; do
8341 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8342 if test "X$additional_libdir" != "X/usr/lib"; then
8344 if test "X$additional_libdir" = "X/usr/local/lib"; then
8345 if test -n "$GCC"; then
8347 linux
*) haveit
=yes;;
8351 if test -z "$haveit"; then
8353 for x
in $LDFLAGS $LIBICONV; do
8355 acl_save_prefix
="$prefix"
8356 prefix
="$acl_final_prefix"
8357 acl_save_exec_prefix
="$exec_prefix"
8358 exec_prefix
="$acl_final_exec_prefix"
8360 exec_prefix
="$acl_save_exec_prefix"
8361 prefix
="$acl_save_prefix"
8363 if test "X$x" = "X-L$additional_libdir"; then
8368 if test -z "$haveit"; then
8369 if test -d "$additional_libdir"; then
8370 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8374 for x
in $LDFLAGS $LTLIBICONV; do
8376 acl_save_prefix
="$prefix"
8377 prefix
="$acl_final_prefix"
8378 acl_save_exec_prefix
="$exec_prefix"
8379 exec_prefix
="$acl_final_exec_prefix"
8381 exec_prefix
="$acl_save_exec_prefix"
8382 prefix
="$acl_save_prefix"
8384 if test "X$x" = "X-L$additional_libdir"; then
8389 if test -z "$haveit"; then
8390 if test -d "$additional_libdir"; then
8391 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8398 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8399 if test "$enable_rpath" != no
; then
8401 for x
in $rpathdirs; do
8402 if test "X$x" = "X$dir"; then
8407 if test -z "$haveit"; then
8408 rpathdirs
="$rpathdirs $dir"
8411 for x
in $ltrpathdirs; do
8412 if test "X$x" = "X$dir"; then
8417 if test -z "$haveit"; then
8418 ltrpathdirs
="$ltrpathdirs $dir"
8423 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8426 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8429 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8430 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8436 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8437 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8443 if test "X$rpathdirs" != "X"; then
8444 if test -n "$hardcode_libdir_separator"; then
8446 for found_dir
in $rpathdirs; do
8447 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8449 acl_save_libdir
="$libdir"
8451 eval flag
=\"$hardcode_libdir_flag_spec\"
8452 libdir
="$acl_save_libdir"
8453 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8455 for found_dir
in $rpathdirs; do
8456 acl_save_libdir
="$libdir"
8458 eval flag
=\"$hardcode_libdir_flag_spec\"
8459 libdir
="$acl_save_libdir"
8460 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8464 if test "X$ltrpathdirs" != "X"; then
8465 for found_dir
in $ltrpathdirs; do
8466 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8477 $as_echo_n "checking for iconv... " >&6; }
8478 if test "${am_cv_func_iconv+set}" = set; then :
8479 $as_echo_n "(cached) " >&6
8482 am_cv_func_iconv
="no, consider installing GNU libiconv"
8484 am_save_CPPFLAGS
="$CPPFLAGS"
8485 CPPFLAGS
="$CPPFLAGS $INCICONV"
8486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8493 iconv_t cd = iconv_open("","");
8494 iconv(cd,NULL,NULL,NULL,NULL);
8500 if ac_fn_c_try_link
"$LINENO"; then :
8501 am_cv_func_iconv
=yes
8503 rm -f core conftest.err conftest.
$ac_objext \
8504 conftest
$ac_exeext conftest.
$ac_ext
8505 CPPFLAGS
="$am_save_CPPFLAGS"
8507 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8508 for _libs
in .libs _libs
; do
8509 am_save_CPPFLAGS
="$CPPFLAGS"
8510 am_save_LIBS
="$LIBS"
8511 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8512 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8520 iconv_t cd = iconv_open("","");
8521 iconv(cd,NULL,NULL,NULL,NULL);
8527 if ac_fn_c_try_link
"$LINENO"; then :
8528 INCICONV
="-I../libiconv/include"
8529 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8530 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8532 am_cv_func_iconv
=yes
8534 rm -f core conftest.err conftest.
$ac_objext \
8535 conftest
$ac_exeext conftest.
$ac_ext
8536 CPPFLAGS
="$am_save_CPPFLAGS"
8537 LIBS
="$am_save_LIBS"
8538 if test "$am_cv_func_iconv" = "yes"; then
8544 if test "$am_cv_func_iconv" != yes; then
8545 am_save_CPPFLAGS
="$CPPFLAGS"
8546 am_save_LIBS
="$LIBS"
8547 CPPFLAGS
="$LIBS $INCICONV"
8548 LIBS
="$LIBS $LIBICONV"
8549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8556 iconv_t cd = iconv_open("","");
8557 iconv(cd,NULL,NULL,NULL,NULL);
8563 if ac_fn_c_try_link
"$LINENO"; then :
8565 am_cv_func_iconv
=yes
8567 rm -f core conftest.err conftest.
$ac_objext \
8568 conftest
$ac_exeext conftest.
$ac_ext
8569 CPPFLAGS
="$am_save_CPPFLAGS"
8570 LIBS
="$am_save_LIBS"
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8575 $as_echo "$am_cv_func_iconv" >&6; }
8576 if test "$am_cv_func_iconv" = yes; then
8578 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8581 if test "$am_cv_lib_iconv" = yes; then
8583 for element
in $INCICONV; do
8585 for x
in $CPPFLAGS; do
8587 acl_save_prefix
="$prefix"
8588 prefix
="$acl_final_prefix"
8589 acl_save_exec_prefix
="$exec_prefix"
8590 exec_prefix
="$acl_final_exec_prefix"
8592 exec_prefix
="$acl_save_exec_prefix"
8593 prefix
="$acl_save_prefix"
8595 if test "X$x" = "X$element"; then
8600 if test -z "$haveit"; then
8601 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8606 $as_echo_n "checking how to link with libiconv... " >&6; }
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8608 $as_echo "$LIBICONV" >&6; }
8616 if test "$am_cv_func_iconv" = yes; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8618 $as_echo_n "checking for iconv declaration... " >&6; }
8619 if test "${am_cv_proto_iconv+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8632 #if defined(__STDC__) || defined(__cplusplus)
8633 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8646 if ac_fn_c_try_compile
"$LINENO"; then :
8647 am_cv_proto_iconv_arg1
=""
8649 am_cv_proto_iconv_arg1
="const"
8651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8652 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);"
8655 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8657 }$am_cv_proto_iconv" >&5
8659 }$am_cv_proto_iconv" >&6; }
8661 cat >>confdefs.h
<<_ACEOF
8662 #define ICONV_CONST $am_cv_proto_iconv_arg1
8668 # GDB may fork/exec the iconv program to get the list of supported character
8669 # sets. Allow the user to specify where to find it.
8670 # There are several factors affecting the choice of option name:
8671 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8672 # the build-time location of libiconv files.
8673 # - The program we need to find is iconv, which comes with glibc. The user
8674 # doesn't necessarily have libiconv installed. Therefore naming this
8675 # --with-libiconv-foo feels wrong.
8676 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8677 # defined to work on directories not files (though it really doesn't know
8679 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8680 # with --with-libiconv-prefix.
8681 # Putting these together is why the option name is --with-iconv-bin.
8684 # Check whether --with-iconv-bin was given.
8685 if test "${with_iconv_bin+set}" = set; then :
8686 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8688 cat >>confdefs.h
<<_ACEOF
8689 #define ICONV_BIN "${iconv_bin}"
8693 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8694 if test "x$prefix" = xNONE
; then
8695 test_prefix
=/usr
/local
8700 test_prefix
=$exec_prefix
8703 case ${iconv_bin} in
8704 "${test_prefix}"|
"${test_prefix}/"*|\
8705 '${exec_prefix}'|
'${exec_prefix}/'*)
8710 cat >>confdefs.h
<<_ACEOF
8711 #define ICONV_BIN_RELOCATABLE $value
8719 # For the TUI, we need enhanced curses functionality.
8720 if test x
"$enable_tui" != xno
; then
8725 if test x
"$prefer_curses" = xyes
; then
8726 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8727 # curses library because the latter might not provide all the
8728 # functionality we need. However, this leads to problems on systems
8729 # where the linker searches /usr/local/lib, but the compiler doesn't
8730 # search /usr/local/include, if ncurses is installed in /usr/local. A
8731 # default installation of ncurses on alpha*-dec-osf* will lead to such
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8734 $as_echo_n "checking for library containing waddstr... " >&6; }
8735 if test "${ac_cv_search_waddstr+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8738 ac_func_search_save_LIBS
=$LIBS
8739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8742 /* Override any GCC internal prototype to avoid an error.
8743 Use char because int might match the return type of a GCC
8744 builtin and then its argument prototype would still apply. */
8757 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
8758 if test -z "$ac_lib"; then
8759 ac_res
="none required"
8762 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8764 if ac_fn_c_try_link
"$LINENO"; then :
8765 ac_cv_search_waddstr
=$ac_res
8767 rm -f core conftest.err conftest.
$ac_objext \
8769 if test "${ac_cv_search_waddstr+set}" = set; then :
8773 if test "${ac_cv_search_waddstr+set}" = set; then :
8776 ac_cv_search_waddstr
=no
8779 LIBS
=$ac_func_search_save_LIBS
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8782 $as_echo "$ac_cv_search_waddstr" >&6; }
8783 ac_res
=$ac_cv_search_waddstr
8784 if test "$ac_res" != no
; then :
8785 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8790 if test "$ac_cv_search_waddstr" != no
; then
8795 # Check whether we should enable the TUI, but only do so if we really
8797 if test x
"$enable_tui" != xno
; then
8798 if test -d $srcdir/tui
; then
8799 if test "$curses_found" != no
; then
8800 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8801 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8802 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8803 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8805 if test x
"$enable_tui" = xyes
; then
8806 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8809 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8815 # Since GDB uses Readline, we need termcap functionality. In many
8816 # cases this will be provided by the curses library, but some systems
8817 # have a separate termcap library, or no curses library at all.
8821 if test -d $srcdir/libtermcap
; then
8822 LIBS
="../libtermcap/libtermcap.a $LIBS"
8823 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8826 ac_cv_search_tgetent
="none required"
8830 # These are the libraries checked by Readline.
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8832 $as_echo_n "checking for library containing tgetent... " >&6; }
8833 if test "${ac_cv_search_tgetent+set}" = set; then :
8834 $as_echo_n "(cached) " >&6
8836 ac_func_search_save_LIBS
=$LIBS
8837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8840 /* Override any GCC internal prototype to avoid an error.
8841 Use char because int might match the return type of a GCC
8842 builtin and then its argument prototype would still apply. */
8855 for ac_lib
in '' termcap tinfo curses ncursesw ncurses
; do
8856 if test -z "$ac_lib"; then
8857 ac_res
="none required"
8860 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8862 if ac_fn_c_try_link
"$LINENO"; then :
8863 ac_cv_search_tgetent
=$ac_res
8865 rm -f core conftest.err conftest.
$ac_objext \
8867 if test "${ac_cv_search_tgetent+set}" = set; then :
8871 if test "${ac_cv_search_tgetent+set}" = set; then :
8874 ac_cv_search_tgetent
=no
8877 LIBS
=$ac_func_search_save_LIBS
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8880 $as_echo "$ac_cv_search_tgetent" >&6; }
8881 ac_res
=$ac_cv_search_tgetent
8882 if test "$ac_res" != no
; then :
8883 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8888 if test "$ac_cv_search_tgetent" = no
; then
8889 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
8893 # Check whether --with-system-readline was given.
8894 if test "${with_system_readline+set}" = set; then :
8895 withval
=$with_system_readline;
8899 if test "$with_system_readline" = yes; then
8903 READLINE_TEXI_INCFLAG
=
8905 READLINE
='$(READLINE_DIR)/libreadline.a'
8906 READLINE_DEPS
='$(READLINE)'
8907 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
8908 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
8915 # Generate jit-reader.h
8917 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
8920 # The cast to long int works around a bug in the HP C Compiler
8921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8922 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8923 # This bug is HP SR number 8606223364.
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
8925 $as_echo_n "checking size of unsigned long long... " >&6; }
8926 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
8927 $as_echo_n "(cached) " >&6
8929 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
8932 if test "$ac_cv_type_unsigned_long_long" = yes; then
8933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8935 { as_fn_set_status
77
8936 as_fn_error
"cannot compute sizeof (unsigned long long)
8937 See \`config.log' for more details." "$LINENO" 5; }; }
8939 ac_cv_sizeof_unsigned_long_long
=0
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
8945 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
8949 cat >>confdefs.h
<<_ACEOF
8950 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8954 # The cast to long int works around a bug in the HP C Compiler
8955 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8956 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8957 # This bug is HP SR number 8606223364.
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8959 $as_echo_n "checking size of unsigned long... " >&6; }
8960 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
8963 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8966 if test "$ac_cv_type_unsigned_long" = yes; then
8967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8969 { as_fn_set_status
77
8970 as_fn_error
"cannot compute sizeof (unsigned long)
8971 See \`config.log' for more details." "$LINENO" 5; }; }
8973 ac_cv_sizeof_unsigned_long
=0
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
8979 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8983 cat >>confdefs.h
<<_ACEOF
8984 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8988 # The cast to long int works around a bug in the HP C Compiler
8989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8991 # This bug is HP SR number 8606223364.
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
8993 $as_echo_n "checking size of unsigned __int128... " >&6; }
8994 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
8995 $as_echo_n "(cached) " >&6
8997 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9000 if test "$ac_cv_type_unsigned___int128" = yes; then
9001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9003 { as_fn_set_status
77
9004 as_fn_error
"cannot compute sizeof (unsigned __int128)
9005 See \`config.log' for more details." "$LINENO" 5; }; }
9007 ac_cv_sizeof_unsigned___int128
=0
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9013 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9017 cat >>confdefs.h
<<_ACEOF
9018 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9023 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9024 TARGET_PTR
="unsigned long"
9025 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9026 TARGET_PTR
="unsigned long long"
9027 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9028 TARGET_PTR
="unsigned __int128"
9030 TARGET_PTR
="unsigned long"
9034 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9038 $as_echo_n "checking for library containing dlopen... " >&6; }
9039 if test "${ac_cv_search_dlopen+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9042 ac_func_search_save_LIBS
=$LIBS
9043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9046 /* Override any GCC internal prototype to avoid an error.
9047 Use char because int might match the return type of a GCC
9048 builtin and then its argument prototype would still apply. */
9061 for ac_lib
in '' dl
; do
9062 if test -z "$ac_lib"; then
9063 ac_res
="none required"
9066 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9068 if ac_fn_c_try_link
"$LINENO"; then :
9069 ac_cv_search_dlopen
=$ac_res
9071 rm -f core conftest.err conftest.
$ac_objext \
9073 if test "${ac_cv_search_dlopen+set}" = set; then :
9077 if test "${ac_cv_search_dlopen+set}" = set; then :
9080 ac_cv_search_dlopen
=no
9083 LIBS
=$ac_func_search_save_LIBS
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9086 $as_echo "$ac_cv_search_dlopen" >&6; }
9087 ac_res
=$ac_cv_search_dlopen
9088 if test "$ac_res" != no
; then :
9089 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9096 # Check whether --with-jit-reader-dir was given.
9097 if test "${with_jit_reader_dir+set}" = set; then :
9098 withval
=$with_jit_reader_dir;
9099 JIT_READER_DIR
=$withval
9101 JIT_READER_DIR
=${libdir}/gdb
9105 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9106 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9107 ac_define_dir
=`eval echo $JIT_READER_DIR`
9108 ac_define_dir
=`eval echo $ac_define_dir`
9110 cat >>confdefs.h
<<_ACEOF
9111 #define JIT_READER_DIR "$ac_define_dir"
9117 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9118 if test "x$prefix" = xNONE
; then
9119 test_prefix
=/usr
/local
9124 test_prefix
=$exec_prefix
9127 case ${ac_define_dir} in
9128 "${test_prefix}"|
"${test_prefix}/"*|\
9129 '${exec_prefix}'|
'${exec_prefix}/'*)
9134 cat >>confdefs.h
<<_ACEOF
9135 #define JIT_READER_DIR_RELOCATABLE $value
9142 # Check whether --with-expat was given.
9143 if test "${with_expat+set}" = set; then :
9144 withval
=$with_expat;
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9150 $as_echo_n "checking whether to use expat... " >&6; }
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9152 $as_echo "$with_expat" >&6; }
9154 if test "${with_expat}" = no
; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9156 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9169 acl_save_prefix
="$prefix"
9170 prefix
="$acl_final_prefix"
9171 acl_save_exec_prefix
="$exec_prefix"
9172 exec_prefix
="$acl_final_exec_prefix"
9174 eval additional_includedir
=\"$includedir\"
9175 eval additional_libdir
=\"$libdir\"
9177 exec_prefix
="$acl_save_exec_prefix"
9178 prefix
="$acl_save_prefix"
9181 # Check whether --with-libexpat-prefix was given.
9182 if test "${with_libexpat_prefix+set}" = set; then :
9183 withval
=$with_libexpat_prefix;
9184 if test "X$withval" = "Xno"; then
9187 if test "X$withval" = "X"; then
9189 acl_save_prefix
="$prefix"
9190 prefix
="$acl_final_prefix"
9191 acl_save_exec_prefix
="$exec_prefix"
9192 exec_prefix
="$acl_final_exec_prefix"
9194 eval additional_includedir
=\"$includedir\"
9195 eval additional_libdir
=\"$libdir\"
9197 exec_prefix
="$acl_save_exec_prefix"
9198 prefix
="$acl_save_prefix"
9201 additional_includedir
="$withval/include"
9202 additional_libdir
="$withval/lib"
9213 names_already_handled
=
9214 names_next_round
='expat '
9215 while test -n "$names_next_round"; do
9216 names_this_round
="$names_next_round"
9218 for name
in $names_this_round; do
9220 for n
in $names_already_handled; do
9221 if test "$n" = "$name"; then
9226 if test -z "$already_handled"; then
9227 names_already_handled
="$names_already_handled $name"
9228 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9229 eval value
=\"\
$HAVE_LIB$uppername\"
9230 if test -n "$value"; then
9231 if test "$value" = yes; then
9232 eval value
=\"\
$LIB$uppername\"
9233 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9234 eval value
=\"\
$LTLIB$uppername\"
9235 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9244 if test $use_additional = yes; then
9245 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9246 found_dir
="$additional_libdir"
9247 found_so
="$additional_libdir/lib$name.$shlibext"
9248 if test -f "$additional_libdir/lib$name.la"; then
9249 found_la
="$additional_libdir/lib$name.la"
9252 if test -f "$additional_libdir/lib$name.$libext"; then
9253 found_dir
="$additional_libdir"
9254 found_a
="$additional_libdir/lib$name.$libext"
9255 if test -f "$additional_libdir/lib$name.la"; then
9256 found_la
="$additional_libdir/lib$name.la"
9261 if test "X$found_dir" = "X"; then
9262 for x
in $LDFLAGS $LTLIBEXPAT; do
9264 acl_save_prefix
="$prefix"
9265 prefix
="$acl_final_prefix"
9266 acl_save_exec_prefix
="$exec_prefix"
9267 exec_prefix
="$acl_final_exec_prefix"
9269 exec_prefix
="$acl_save_exec_prefix"
9270 prefix
="$acl_save_prefix"
9274 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9275 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9277 found_so
="$dir/lib$name.$shlibext"
9278 if test -f "$dir/lib$name.la"; then
9279 found_la
="$dir/lib$name.la"
9282 if test -f "$dir/lib$name.$libext"; then
9284 found_a
="$dir/lib$name.$libext"
9285 if test -f "$dir/lib$name.la"; then
9286 found_la
="$dir/lib$name.la"
9292 if test "X$found_dir" != "X"; then
9297 if test "X$found_dir" != "X"; then
9298 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9299 if test "X$found_so" != "X"; then
9300 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9301 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9304 for x
in $ltrpathdirs; do
9305 if test "X$x" = "X$found_dir"; then
9310 if test -z "$haveit"; then
9311 ltrpathdirs
="$ltrpathdirs $found_dir"
9313 if test "$hardcode_direct" = yes; then
9314 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9316 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9317 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9319 for x
in $rpathdirs; do
9320 if test "X$x" = "X$found_dir"; then
9325 if test -z "$haveit"; then
9326 rpathdirs
="$rpathdirs $found_dir"
9330 for x
in $LDFLAGS $LIBEXPAT; do
9332 acl_save_prefix
="$prefix"
9333 prefix
="$acl_final_prefix"
9334 acl_save_exec_prefix
="$exec_prefix"
9335 exec_prefix
="$acl_final_exec_prefix"
9337 exec_prefix
="$acl_save_exec_prefix"
9338 prefix
="$acl_save_prefix"
9340 if test "X$x" = "X-L$found_dir"; then
9345 if test -z "$haveit"; then
9346 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9348 if test "$hardcode_minus_L" != no
; then
9349 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9351 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9357 if test "X$found_a" != "X"; then
9358 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9360 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9363 additional_includedir
=
9364 case "$found_dir" in
9366 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9367 additional_includedir
="$basedir/include"
9370 if test "X$additional_includedir" != "X"; then
9371 if test "X$additional_includedir" != "X/usr/include"; then
9373 if test "X$additional_includedir" = "X/usr/local/include"; then
9374 if test -n "$GCC"; then
9376 linux
*) haveit
=yes;;
9380 if test -z "$haveit"; then
9381 for x
in $CPPFLAGS $INCEXPAT; do
9383 acl_save_prefix
="$prefix"
9384 prefix
="$acl_final_prefix"
9385 acl_save_exec_prefix
="$exec_prefix"
9386 exec_prefix
="$acl_final_exec_prefix"
9388 exec_prefix
="$acl_save_exec_prefix"
9389 prefix
="$acl_save_prefix"
9391 if test "X$x" = "X-I$additional_includedir"; then
9396 if test -z "$haveit"; then
9397 if test -d "$additional_includedir"; then
9398 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9404 if test -n "$found_la"; then
9405 save_libdir
="$libdir"
9407 */* |
*\\*) .
"$found_la" ;;
9408 *) .
"./$found_la" ;;
9410 libdir
="$save_libdir"
9411 for dep
in $dependency_libs; do
9414 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9415 if test "X$additional_libdir" != "X/usr/lib"; then
9417 if test "X$additional_libdir" = "X/usr/local/lib"; then
9418 if test -n "$GCC"; then
9420 linux
*) haveit
=yes;;
9424 if test -z "$haveit"; then
9426 for x
in $LDFLAGS $LIBEXPAT; do
9428 acl_save_prefix
="$prefix"
9429 prefix
="$acl_final_prefix"
9430 acl_save_exec_prefix
="$exec_prefix"
9431 exec_prefix
="$acl_final_exec_prefix"
9433 exec_prefix
="$acl_save_exec_prefix"
9434 prefix
="$acl_save_prefix"
9436 if test "X$x" = "X-L$additional_libdir"; then
9441 if test -z "$haveit"; then
9442 if test -d "$additional_libdir"; then
9443 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9447 for x
in $LDFLAGS $LTLIBEXPAT; do
9449 acl_save_prefix
="$prefix"
9450 prefix
="$acl_final_prefix"
9451 acl_save_exec_prefix
="$exec_prefix"
9452 exec_prefix
="$acl_final_exec_prefix"
9454 exec_prefix
="$acl_save_exec_prefix"
9455 prefix
="$acl_save_prefix"
9457 if test "X$x" = "X-L$additional_libdir"; then
9462 if test -z "$haveit"; then
9463 if test -d "$additional_libdir"; then
9464 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9471 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9472 if test "$enable_rpath" != no
; then
9474 for x
in $rpathdirs; do
9475 if test "X$x" = "X$dir"; then
9480 if test -z "$haveit"; then
9481 rpathdirs
="$rpathdirs $dir"
9484 for x
in $ltrpathdirs; do
9485 if test "X$x" = "X$dir"; then
9490 if test -z "$haveit"; then
9491 ltrpathdirs
="$ltrpathdirs $dir"
9496 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9499 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9502 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9503 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9509 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9510 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9516 if test "X$rpathdirs" != "X"; then
9517 if test -n "$hardcode_libdir_separator"; then
9519 for found_dir
in $rpathdirs; do
9520 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9522 acl_save_libdir
="$libdir"
9524 eval flag
=\"$hardcode_libdir_flag_spec\"
9525 libdir
="$acl_save_libdir"
9526 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9528 for found_dir
in $rpathdirs; do
9529 acl_save_libdir
="$libdir"
9531 eval flag
=\"$hardcode_libdir_flag_spec\"
9532 libdir
="$acl_save_libdir"
9533 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9537 if test "X$ltrpathdirs" != "X"; then
9538 for found_dir
in $ltrpathdirs; do
9539 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9544 ac_save_CPPFLAGS
="$CPPFLAGS"
9546 for element
in $INCEXPAT; do
9548 for x
in $CPPFLAGS; do
9550 acl_save_prefix
="$prefix"
9551 prefix
="$acl_final_prefix"
9552 acl_save_exec_prefix
="$exec_prefix"
9553 exec_prefix
="$acl_final_exec_prefix"
9555 exec_prefix
="$acl_save_exec_prefix"
9556 prefix
="$acl_save_prefix"
9558 if test "X$x" = "X$element"; then
9563 if test -z "$haveit"; then
9564 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9570 $as_echo_n "checking for libexpat... " >&6; }
9571 if test "${ac_cv_libexpat+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9575 ac_save_LIBS
="$LIBS"
9576 LIBS
="$LIBS $LIBEXPAT"
9577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9583 XML_Parser p = XML_ParserCreate (0);
9588 if ac_fn_c_try_link
"$LINENO"; then :
9593 rm -f core conftest.err conftest.
$ac_objext \
9594 conftest
$ac_exeext conftest.
$ac_ext
9595 LIBS
="$ac_save_LIBS"
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9599 $as_echo "$ac_cv_libexpat" >&6; }
9600 if test "$ac_cv_libexpat" = yes; then
9603 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9606 $as_echo_n "checking how to link with libexpat... " >&6; }
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9608 $as_echo "$LIBEXPAT" >&6; }
9611 CPPFLAGS
="$ac_save_CPPFLAGS"
9621 if test "$HAVE_LIBEXPAT" != yes; then
9622 if test "$with_expat" = yes; then
9623 as_fn_error
"expat is missing or unusable" "$LINENO" 5
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9626 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9630 LIBS
="$LIBS $LIBEXPAT"
9631 for ac_func
in XML_StopParser
9633 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9634 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
9635 cat >>confdefs.h
<<_ACEOF
9636 #define HAVE_XML_STOPPARSER 1
9647 # Check whether --with-mpfr was given.
9648 if test "${with_mpfr+set}" = set; then :
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9655 $as_echo_n "checking whether to use MPFR... " >&6; }
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9657 $as_echo "$with_mpfr" >&6; }
9659 if test "${with_mpfr}" = no
; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9661 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9674 acl_save_prefix
="$prefix"
9675 prefix
="$acl_final_prefix"
9676 acl_save_exec_prefix
="$exec_prefix"
9677 exec_prefix
="$acl_final_exec_prefix"
9679 eval additional_includedir
=\"$includedir\"
9680 eval additional_libdir
=\"$libdir\"
9682 exec_prefix
="$acl_save_exec_prefix"
9683 prefix
="$acl_save_prefix"
9686 # Check whether --with-libmpfr-prefix was given.
9687 if test "${with_libmpfr_prefix+set}" = set; then :
9688 withval
=$with_libmpfr_prefix;
9689 if test "X$withval" = "Xno"; then
9692 if test "X$withval" = "X"; then
9694 acl_save_prefix
="$prefix"
9695 prefix
="$acl_final_prefix"
9696 acl_save_exec_prefix
="$exec_prefix"
9697 exec_prefix
="$acl_final_exec_prefix"
9699 eval additional_includedir
=\"$includedir\"
9700 eval additional_libdir
=\"$libdir\"
9702 exec_prefix
="$acl_save_exec_prefix"
9703 prefix
="$acl_save_prefix"
9706 additional_includedir
="$withval/include"
9707 additional_libdir
="$withval/lib"
9718 names_already_handled
=
9719 names_next_round
='mpfr '
9720 while test -n "$names_next_round"; do
9721 names_this_round
="$names_next_round"
9723 for name
in $names_this_round; do
9725 for n
in $names_already_handled; do
9726 if test "$n" = "$name"; then
9731 if test -z "$already_handled"; then
9732 names_already_handled
="$names_already_handled $name"
9733 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9734 eval value
=\"\
$HAVE_LIB$uppername\"
9735 if test -n "$value"; then
9736 if test "$value" = yes; then
9737 eval value
=\"\
$LIB$uppername\"
9738 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
9739 eval value
=\"\
$LTLIB$uppername\"
9740 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9749 if test $use_additional = yes; then
9750 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9751 found_dir
="$additional_libdir"
9752 found_so
="$additional_libdir/lib$name.$shlibext"
9753 if test -f "$additional_libdir/lib$name.la"; then
9754 found_la
="$additional_libdir/lib$name.la"
9757 if test -f "$additional_libdir/lib$name.$libext"; then
9758 found_dir
="$additional_libdir"
9759 found_a
="$additional_libdir/lib$name.$libext"
9760 if test -f "$additional_libdir/lib$name.la"; then
9761 found_la
="$additional_libdir/lib$name.la"
9766 if test "X$found_dir" = "X"; then
9767 for x
in $LDFLAGS $LTLIBMPFR; do
9769 acl_save_prefix
="$prefix"
9770 prefix
="$acl_final_prefix"
9771 acl_save_exec_prefix
="$exec_prefix"
9772 exec_prefix
="$acl_final_exec_prefix"
9774 exec_prefix
="$acl_save_exec_prefix"
9775 prefix
="$acl_save_prefix"
9779 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9780 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9782 found_so
="$dir/lib$name.$shlibext"
9783 if test -f "$dir/lib$name.la"; then
9784 found_la
="$dir/lib$name.la"
9787 if test -f "$dir/lib$name.$libext"; then
9789 found_a
="$dir/lib$name.$libext"
9790 if test -f "$dir/lib$name.la"; then
9791 found_la
="$dir/lib$name.la"
9797 if test "X$found_dir" != "X"; then
9802 if test "X$found_dir" != "X"; then
9803 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9804 if test "X$found_so" != "X"; then
9805 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9806 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9809 for x
in $ltrpathdirs; do
9810 if test "X$x" = "X$found_dir"; then
9815 if test -z "$haveit"; then
9816 ltrpathdirs
="$ltrpathdirs $found_dir"
9818 if test "$hardcode_direct" = yes; then
9819 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9821 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9822 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9824 for x
in $rpathdirs; do
9825 if test "X$x" = "X$found_dir"; then
9830 if test -z "$haveit"; then
9831 rpathdirs
="$rpathdirs $found_dir"
9835 for x
in $LDFLAGS $LIBMPFR; do
9837 acl_save_prefix
="$prefix"
9838 prefix
="$acl_final_prefix"
9839 acl_save_exec_prefix
="$exec_prefix"
9840 exec_prefix
="$acl_final_exec_prefix"
9842 exec_prefix
="$acl_save_exec_prefix"
9843 prefix
="$acl_save_prefix"
9845 if test "X$x" = "X-L$found_dir"; then
9850 if test -z "$haveit"; then
9851 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
9853 if test "$hardcode_minus_L" != no
; then
9854 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9856 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
9862 if test "X$found_a" != "X"; then
9863 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
9865 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
9868 additional_includedir
=
9869 case "$found_dir" in
9871 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9872 additional_includedir
="$basedir/include"
9875 if test "X$additional_includedir" != "X"; then
9876 if test "X$additional_includedir" != "X/usr/include"; then
9878 if test "X$additional_includedir" = "X/usr/local/include"; then
9879 if test -n "$GCC"; then
9881 linux
*) haveit
=yes;;
9885 if test -z "$haveit"; then
9886 for x
in $CPPFLAGS $INCMPFR; do
9888 acl_save_prefix
="$prefix"
9889 prefix
="$acl_final_prefix"
9890 acl_save_exec_prefix
="$exec_prefix"
9891 exec_prefix
="$acl_final_exec_prefix"
9893 exec_prefix
="$acl_save_exec_prefix"
9894 prefix
="$acl_save_prefix"
9896 if test "X$x" = "X-I$additional_includedir"; then
9901 if test -z "$haveit"; then
9902 if test -d "$additional_includedir"; then
9903 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
9909 if test -n "$found_la"; then
9910 save_libdir
="$libdir"
9912 */* |
*\\*) .
"$found_la" ;;
9913 *) .
"./$found_la" ;;
9915 libdir
="$save_libdir"
9916 for dep
in $dependency_libs; do
9919 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9920 if test "X$additional_libdir" != "X/usr/lib"; then
9922 if test "X$additional_libdir" = "X/usr/local/lib"; then
9923 if test -n "$GCC"; then
9925 linux
*) haveit
=yes;;
9929 if test -z "$haveit"; then
9931 for x
in $LDFLAGS $LIBMPFR; do
9933 acl_save_prefix
="$prefix"
9934 prefix
="$acl_final_prefix"
9935 acl_save_exec_prefix
="$exec_prefix"
9936 exec_prefix
="$acl_final_exec_prefix"
9938 exec_prefix
="$acl_save_exec_prefix"
9939 prefix
="$acl_save_prefix"
9941 if test "X$x" = "X-L$additional_libdir"; then
9946 if test -z "$haveit"; then
9947 if test -d "$additional_libdir"; then
9948 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
9952 for x
in $LDFLAGS $LTLIBMPFR; do
9954 acl_save_prefix
="$prefix"
9955 prefix
="$acl_final_prefix"
9956 acl_save_exec_prefix
="$exec_prefix"
9957 exec_prefix
="$acl_final_exec_prefix"
9959 exec_prefix
="$acl_save_exec_prefix"
9960 prefix
="$acl_save_prefix"
9962 if test "X$x" = "X-L$additional_libdir"; then
9967 if test -z "$haveit"; then
9968 if test -d "$additional_libdir"; then
9969 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
9976 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9977 if test "$enable_rpath" != no
; then
9979 for x
in $rpathdirs; do
9980 if test "X$x" = "X$dir"; then
9985 if test -z "$haveit"; then
9986 rpathdirs
="$rpathdirs $dir"
9989 for x
in $ltrpathdirs; do
9990 if test "X$x" = "X$dir"; then
9995 if test -z "$haveit"; then
9996 ltrpathdirs
="$ltrpathdirs $dir"
10001 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10004 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10007 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10008 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10014 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10015 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10021 if test "X$rpathdirs" != "X"; then
10022 if test -n "$hardcode_libdir_separator"; then
10024 for found_dir
in $rpathdirs; do
10025 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10027 acl_save_libdir
="$libdir"
10029 eval flag
=\"$hardcode_libdir_flag_spec\"
10030 libdir
="$acl_save_libdir"
10031 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10033 for found_dir
in $rpathdirs; do
10034 acl_save_libdir
="$libdir"
10035 libdir
="$found_dir"
10036 eval flag
=\"$hardcode_libdir_flag_spec\"
10037 libdir
="$acl_save_libdir"
10038 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10042 if test "X$ltrpathdirs" != "X"; then
10043 for found_dir
in $ltrpathdirs; do
10044 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10049 ac_save_CPPFLAGS
="$CPPFLAGS"
10051 for element
in $INCMPFR; do
10053 for x
in $CPPFLAGS; do
10055 acl_save_prefix
="$prefix"
10056 prefix
="$acl_final_prefix"
10057 acl_save_exec_prefix
="$exec_prefix"
10058 exec_prefix
="$acl_final_exec_prefix"
10060 exec_prefix
="$acl_save_exec_prefix"
10061 prefix
="$acl_save_prefix"
10063 if test "X$x" = "X$element"; then
10068 if test -z "$haveit"; then
10069 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10075 $as_echo_n "checking for libmpfr... " >&6; }
10076 if test "${ac_cv_libmpfr+set}" = set; then :
10077 $as_echo_n "(cached) " >&6
10080 ac_save_LIBS
="$LIBS"
10081 LIBS
="$LIBS $LIBMPFR"
10082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10088 mpfr_exp_t exp; mpfr_t x;
10089 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10094 if ac_fn_c_try_link
"$LINENO"; then :
10099 rm -f core conftest.err conftest.
$ac_objext \
10100 conftest
$ac_exeext conftest.
$ac_ext
10101 LIBS
="$ac_save_LIBS"
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10105 $as_echo "$ac_cv_libmpfr" >&6; }
10106 if test "$ac_cv_libmpfr" = yes; then
10109 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10112 $as_echo_n "checking how to link with libmpfr... " >&6; }
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10114 $as_echo "$LIBMPFR" >&6; }
10117 CPPFLAGS
="$ac_save_CPPFLAGS"
10127 if test "$HAVE_LIBMPFR" != yes; then
10128 if test "$with_mpfr" = yes; then
10129 as_fn_error
"MPFR is missing or unusable" "$LINENO" 5
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10132 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10137 # --------------------- #
10138 # Check for libpython. #
10139 # --------------------- #
10146 # Check whether --with-python was given.
10147 if test "${with_python+set}" = set; then :
10148 withval
=$with_python;
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10154 $as_echo_n "checking whether to use python... " >&6; }
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10156 $as_echo "$with_python" >&6; }
10158 if test "${with_python}" = no
; then
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10160 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10163 case "${with_python}" in
10165 if test -d ${with_python}; then
10166 # Assume the python binary is ${with_python}/bin/python.
10167 python_prog
="${with_python}/bin/python"
10169 # If python does not exit ${with_python}/bin, then try in
10170 # ${with_python}. On Windows/MinGW, this is where the Python
10172 if test ! -x "${python_prog}"; then
10173 python_prog
="${with_python}/python"
10176 if test ! -x "${python_prog}"; then
10177 # Fall back to gdb 7.0/7.1 behaviour.
10178 python_prog
=missing
10179 python_prefix
=${with_python}
10181 elif test -x "${with_python}"; then
10182 # While we can't run python compiled for $host (unless host == build),
10183 # the user could write a script that provides the needed information,
10184 # so we support that.
10185 python_prog
=${with_python}
10188 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10192 # Disallow --with-python=foo/bar.
10193 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10196 # The user has either specified auto, yes, or the name of the python
10197 # program assumed to be in $PATH.
10199 case "${with_python}" in
10201 if test ${build} = ${host}; then
10202 # Extract the first word of "python", so it can be a program name with args.
10203 set dummy python
; ac_word
=$2
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10205 $as_echo_n "checking for $ac_word... " >&6; }
10206 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10207 $as_echo_n "(cached) " >&6
10209 case $python_prog_path in
10211 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10215 for as_dir
in $PATH
10218 test -z "$as_dir" && as_dir
=.
10219 for ac_exec_ext
in '' $ac_executable_extensions; do
10220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10221 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10233 python_prog_path
=$ac_cv_path_python_prog_path
10234 if test -n "$python_prog_path"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10236 $as_echo "$python_prog_path" >&6; }
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10243 if test "${python_prog_path}" = missing
; then
10244 python_prog
=missing
10246 python_prog
=${python_prog_path}
10249 # Not much we can do except assume the cross-compiler will find the
10251 python_prog
=missing
10255 # While we can't run python compiled for $host (unless host == build),
10256 # the user could write a script that provides the needed information,
10257 # so we support that.
10258 python_prog
="${with_python}"
10259 # Extract the first word of "${python_prog}", so it can be a program name with args.
10260 set dummy
${python_prog}; ac_word
=$2
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10262 $as_echo_n "checking for $ac_word... " >&6; }
10263 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10264 $as_echo_n "(cached) " >&6
10266 case $python_prog_path in
10268 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10272 for as_dir
in $PATH
10275 test -z "$as_dir" && as_dir
=.
10276 for ac_exec_ext
in '' $ac_executable_extensions; do
10277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10278 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10286 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10290 python_prog_path
=$ac_cv_path_python_prog_path
10291 if test -n "$python_prog_path"; then
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10293 $as_echo "$python_prog_path" >&6; }
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10300 if test "${python_prog_path}" = missing
; then
10301 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
10307 if test "${python_prog}" != missing
; then
10308 # We have a python program to use, but it may be too old.
10309 # Don't flag an error for --with-python=auto (the default).
10310 have_python_config
=yes
10311 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10312 if test $?
!= 0; then
10313 have_python_config
=failed
10314 if test "${with_python}" != auto
; then
10315 as_fn_error
"failure running python-config --includes" "$LINENO" 5
10318 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10319 if test $?
!= 0; then
10320 have_python_config
=failed
10321 if test "${with_python}" != auto
; then
10322 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
10325 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10326 if test $?
!= 0; then
10327 have_python_config
=failed
10328 if test "${with_python}" != auto
; then
10329 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
10333 # We do not have a python executable we can use to determine where
10334 # to find the Python headers and libs. We cannot guess the include
10335 # path from the python_prefix either, because that include path
10336 # depends on the Python version. So, there is nothing much we can
10337 # do except assume that the compiler will be able to find those files.
10340 have_python_config
=no
10343 # If we have python-config, only try the configuration it provides.
10344 # Otherwise fallback on the old way of trying different versions of
10348 if test "${have_python_config}" = yes; then
10349 # Determine the Python version by extracting "-lpython<version>"
10350 # part of the python_libs. <version> is usually X.Y with X and Y
10351 # being decimal numbers, but can also be XY (seen on Windows).
10353 # The extraction is performed using sed with a regular expression.
10354 # Initially, the regexp used was using the '?' quantifier to make
10355 # the dot in the version number optional. Unfortunately, this
10356 # does not work with non-GNU versions of sed because, because of
10357 # what looks like a limitation (the '?' quantifier does not work
10358 # with back-references). We work around this limitation by using
10359 # the '*' quantifier instead. It means that, in theory, we might
10360 # match unexpected version strings such as "-lpython2..7", but
10361 # this seems unlikely in practice. And even if that happens,
10362 # an error will be triggered later on, when checking that version
10364 python_version
=`echo " ${python_libs} " \
10365 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10366 case "${python_version}" in
10369 version
=${python_version}
10371 new_CPPFLAGS
=${python_includes}
10372 new_LIBS
=${python_libs}
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10374 $as_echo_n "checking for ${version}... " >&6; }
10375 save_CPPFLAGS
=$CPPFLAGS
10377 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10378 LIBS
="$LIBS $new_LIBS"
10379 found_usable_python
=no
10380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10382 #include "Python.h"
10391 if ac_fn_c_try_link
"$LINENO"; then :
10392 have_libpython
=${version}
10393 found_usable_python
=yes
10394 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10395 PYTHON_LIBS
=$new_LIBS
10397 rm -f core conftest.err conftest.
$ac_objext \
10398 conftest
$ac_exeext conftest.
$ac_ext
10399 CPPFLAGS
=$save_CPPFLAGS
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10402 $as_echo "${found_usable_python}" >&6; }
10406 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
10409 elif test "${have_python_config}" != failed
; then
10410 if test "${have_libpython}" = no
; then
10414 new_CPPFLAGS
=${python_includes}
10415 new_LIBS
="${python_libs} -lpython2.7"
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10417 $as_echo_n "checking for ${version}... " >&6; }
10418 save_CPPFLAGS
=$CPPFLAGS
10420 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10421 LIBS
="$LIBS $new_LIBS"
10422 found_usable_python
=no
10423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 #include "Python.h"
10434 if ac_fn_c_try_link
"$LINENO"; then :
10435 have_libpython
=${version}
10436 found_usable_python
=yes
10437 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10438 PYTHON_LIBS
=$new_LIBS
10440 rm -f core conftest.err conftest.
$ac_objext \
10441 conftest
$ac_exeext conftest.
$ac_ext
10442 CPPFLAGS
=$save_CPPFLAGS
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10445 $as_echo "${found_usable_python}" >&6; }
10448 if test "${have_libpython}" = no
; then
10452 new_CPPFLAGS
=${python_includes}
10453 new_LIBS
="${python_libs} -lpython2.6"
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10455 $as_echo_n "checking for ${version}... " >&6; }
10456 save_CPPFLAGS
=$CPPFLAGS
10458 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10459 LIBS
="$LIBS $new_LIBS"
10460 found_usable_python
=no
10461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10463 #include "Python.h"
10472 if ac_fn_c_try_link
"$LINENO"; then :
10473 have_libpython
=${version}
10474 found_usable_python
=yes
10475 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10476 PYTHON_LIBS
=$new_LIBS
10478 rm -f core conftest.err conftest.
$ac_objext \
10479 conftest
$ac_exeext conftest.
$ac_ext
10480 CPPFLAGS
=$save_CPPFLAGS
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10483 $as_echo "${found_usable_python}" >&6; }
10486 if test ${have_libpython} = no
; then
10490 new_CPPFLAGS
=${python_includes}
10491 new_LIBS
="${python_libs} -lpython2.5"
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10493 $as_echo_n "checking for ${version}... " >&6; }
10494 save_CPPFLAGS
=$CPPFLAGS
10496 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10497 LIBS
="$LIBS $new_LIBS"
10498 found_usable_python
=no
10499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10501 #include "Python.h"
10510 if ac_fn_c_try_link
"$LINENO"; then :
10511 have_libpython
=${version}
10512 found_usable_python
=yes
10513 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10514 PYTHON_LIBS
=$new_LIBS
10516 rm -f core conftest.err conftest.
$ac_objext \
10517 conftest
$ac_exeext conftest.
$ac_ext
10518 CPPFLAGS
=$save_CPPFLAGS
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10521 $as_echo "${found_usable_python}" >&6; }
10524 if test ${have_libpython} = no
; then
10528 new_CPPFLAGS
=${python_includes}
10529 new_LIBS
="${python_libs} -lpython2.4"
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10531 $as_echo_n "checking for ${version}... " >&6; }
10532 save_CPPFLAGS
=$CPPFLAGS
10534 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10535 LIBS
="$LIBS $new_LIBS"
10536 found_usable_python
=no
10537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10539 #include "Python.h"
10548 if ac_fn_c_try_link
"$LINENO"; then :
10549 have_libpython
=${version}
10550 found_usable_python
=yes
10551 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10552 PYTHON_LIBS
=$new_LIBS
10554 rm -f core conftest.err conftest.
$ac_objext \
10555 conftest
$ac_exeext conftest.
$ac_ext
10556 CPPFLAGS
=$save_CPPFLAGS
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10559 $as_echo "${found_usable_python}" >&6; }
10563 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
10565 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10567 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
10569 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10571 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
10573 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10575 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
10577 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10581 if test "${have_libpython}" = no
; then
10582 case "${with_python}" in
10584 as_fn_error
"python is missing or unusable" "$LINENO" 5
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10588 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10591 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
10595 if test -n "${python_prefix}"; then
10597 cat >>confdefs.h
<<_ACEOF
10598 #define WITH_PYTHON_PATH "${python_prefix}"
10602 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10603 if test "x$prefix" = xNONE
; then
10604 test_prefix
=/usr
/local
10606 test_prefix
=$prefix
10609 test_prefix
=$exec_prefix
10612 case ${python_prefix} in
10613 "${test_prefix}"|
"${test_prefix}/"*|\
10614 '${exec_prefix}'|
'${exec_prefix}/'*)
10619 cat >>confdefs.h
<<_ACEOF
10620 #define PYTHON_PATH_RELOCATABLE $value
10628 if test "${have_libpython}" != no
; then
10630 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10632 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10633 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10634 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10635 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10636 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10638 # Flags needed to compile Python code (taken from python-config --cflags).
10639 # We cannot call python-config directly because it will output whatever was
10640 # used when compiling the Python interpreter itself, including flags which
10641 # would make the python-related objects be compiled differently from the
10642 # rest of GDB (e.g., -O2 and -fPIC).
10643 if test "${GCC}" = yes; then
10644 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
10647 if test "x${tentative_python_cflags}" != x
; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10649 $as_echo_n "checking compiler flags for python code... " >&6; }
10650 for flag
in ${tentative_python_cflags}; do
10651 # Check that the compiler accepts it
10652 saved_CFLAGS
="$CFLAGS"
10653 CFLAGS
="$CFLAGS $flag"
10654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h. */
10665 if ac_fn_c_try_compile
"$LINENO"; then :
10666 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10669 CFLAGS
="$saved_CFLAGS"
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10672 $as_echo "${PYTHON_CFLAGS}" >&6; }
10675 # On x64 Windows, Python's include headers, and pyconfig.h in
10676 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10677 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10678 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10679 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10680 # The issue was reported to the Python community, but still isn't
10681 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10683 case "$gdb_host" in
10685 if test "${GCC}" = yes; then
10686 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10691 # Note that "python -m threading" cannot be used to check for
10692 # threading support due to a bug in Python 2.7.3
10693 # (http://bugs.python.org/issue15567).
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10695 $as_echo_n "checking whether python supports threads... " >&6; }
10696 saved_CPPFLAGS
="${CPPFLAGS}"
10697 CPPFLAGS
="${PYTHON_CPPFLAGS}"
10698 # Note that the test is reversed so that python_has_threads=yes on
10699 # unexpected failures.
10700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10703 #include <Python.h>
10709 if ac_fn_c_try_cpp
"$LINENO"; then :
10710 python_has_threads
=no
10712 python_has_threads
=yes
10714 rm -f conftest.err conftest.
$ac_ext
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10716 $as_echo "${python_has_threads}" >&6; }
10717 CPPFLAGS
="${saved_CPPFLAGS}"
10719 # Even if Python support is not compiled in, we need to have this file
10720 # included so that the "python" command, et.al., still exists.
10721 CONFIG_OBS
="$CONFIG_OBS python/python.o"
10722 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10725 # Work around Python http://bugs.python.org/issue10112. See also
10726 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10727 # no effect. Note that the only test after this that uses Python is
10728 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10729 # run without -export-dynamic too.
10730 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10735 if test "${have_libpython}" != no
; then
10737 HAVE_PYTHON_FALSE
='#'
10739 HAVE_PYTHON_TRUE
='#'
10744 # -------------------- #
10745 # Check for libguile. #
10746 # -------------------- #
10753 # Check whether --with-guile was given.
10754 if test "${with_guile+set}" = set; then :
10755 withval
=$with_guile;
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10761 $as_echo_n "checking whether to use guile... " >&6; }
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10763 $as_echo "$with_guile" >&6; }
10765 # Extract the first word of "pkg-config", so it can be a program name with args.
10766 set dummy pkg-config
; ac_word
=$2
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10768 $as_echo_n "checking for $ac_word... " >&6; }
10769 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
10770 $as_echo_n "(cached) " >&6
10772 case $pkg_config_prog_path in
10774 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10778 for as_dir
in $PATH
10781 test -z "$as_dir" && as_dir
=.
10782 for ac_exec_ext
in '' $ac_executable_extensions; do
10783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10784 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10792 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10796 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10797 if test -n "$pkg_config_prog_path"; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10799 $as_echo "$pkg_config_prog_path" >&6; }
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802 $as_echo "no" >&6; }
10807 try_guile_versions
="guile-2.0"
10809 case "${with_guile}" in
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10812 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10815 if test "${pkg_config_prog_path}" = "missing"; then
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10817 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10820 pkg_config
=${pkg_config_prog_path}
10821 guile_version_list
=${try_guile_versions}
10824 found_usable_guile
=checking
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10826 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10827 for guile_version
in ${guile_version_list}; do
10828 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10829 if test $?
!= 0; then
10832 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10833 if test $?
!= 0; then
10834 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10836 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10837 if test $?
!= 0; then
10838 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10840 found_usable_guile
=${guile_version}
10843 if test "${found_usable_guile}" = "checking"; then
10844 if test "${flag_errors}" = "yes"; then
10845 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10847 found_usable_guile
=no
10850 if test "${found_usable_guile}" != no
; then
10851 save_CPPFLAGS
=$CPPFLAGS
10853 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10854 LIBS
="$LIBS $new_LIBS"
10855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10857 #include "libguile.h"
10866 if ac_fn_c_try_link
"$LINENO"; then :
10868 GUILE_CPPFLAGS
=$new_CPPFLAGS
10869 GUILE_LIBS
=$new_LIBS
10871 found_usable_guile
=no
10873 rm -f core conftest.err conftest.
$ac_objext \
10874 conftest
$ac_exeext conftest.
$ac_ext
10875 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10876 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
10878 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10883 CPPFLAGS
=$save_CPPFLAGS
10885 if test "${found_usable_guile}" = no
; then
10886 if test "${flag_errors}" = yes; then
10887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10889 as_fn_error
"linking guile version ${guile_version} test program failed
10890 See \`config.log' for more details." "$LINENO" 5; }
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10895 $as_echo "${found_usable_guile}" >&6; }
10900 if test "${pkg_config_prog_path}" = "missing"; then
10901 as_fn_error
"pkg-config not found" "$LINENO" 5
10904 pkg_config
=${pkg_config_prog_path}
10905 guile_version_list
=${try_guile_versions}
10908 found_usable_guile
=checking
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10910 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10911 for guile_version
in ${guile_version_list}; do
10912 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10913 if test $?
!= 0; then
10916 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10917 if test $?
!= 0; then
10918 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10920 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10921 if test $?
!= 0; then
10922 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10924 found_usable_guile
=${guile_version}
10927 if test "${found_usable_guile}" = "checking"; then
10928 if test "${flag_errors}" = "yes"; then
10929 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10931 found_usable_guile
=no
10934 if test "${found_usable_guile}" != no
; then
10935 save_CPPFLAGS
=$CPPFLAGS
10937 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10938 LIBS
="$LIBS $new_LIBS"
10939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10941 #include "libguile.h"
10950 if ac_fn_c_try_link
"$LINENO"; then :
10952 GUILE_CPPFLAGS
=$new_CPPFLAGS
10953 GUILE_LIBS
=$new_LIBS
10955 found_usable_guile
=no
10957 rm -f core conftest.err conftest.
$ac_objext \
10958 conftest
$ac_exeext conftest.
$ac_ext
10959 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10960 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
10962 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10967 CPPFLAGS
=$save_CPPFLAGS
10969 if test "${found_usable_guile}" = no
; then
10970 if test "${flag_errors}" = yes; then
10971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10973 as_fn_error
"linking guile version ${guile_version} test program failed
10974 See \`config.log' for more details." "$LINENO" 5; }
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10979 $as_echo "${found_usable_guile}" >&6; }
10983 if test -x "${with_guile}"; then
10985 pkg_config
=${with_guile}
10986 guile_version_list
=${try_guile_versions}
10989 found_usable_guile
=checking
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10991 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10992 for guile_version
in ${guile_version_list}; do
10993 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10994 if test $?
!= 0; then
10997 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10998 if test $?
!= 0; then
10999 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11001 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11002 if test $?
!= 0; then
11003 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11005 found_usable_guile
=${guile_version}
11008 if test "${found_usable_guile}" = "checking"; then
11009 if test "${flag_errors}" = "yes"; then
11010 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11012 found_usable_guile
=no
11015 if test "${found_usable_guile}" != no
; then
11016 save_CPPFLAGS
=$CPPFLAGS
11018 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11019 LIBS
="$LIBS $new_LIBS"
11020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11021 /* end confdefs.h. */
11022 #include "libguile.h"
11031 if ac_fn_c_try_link
"$LINENO"; then :
11033 GUILE_CPPFLAGS
=$new_CPPFLAGS
11034 GUILE_LIBS
=$new_LIBS
11036 found_usable_guile
=no
11038 rm -f core conftest.err conftest.
$ac_objext \
11039 conftest
$ac_exeext conftest.
$ac_ext
11040 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11041 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
11043 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11048 CPPFLAGS
=$save_CPPFLAGS
11050 if test "${found_usable_guile}" = no
; then
11051 if test "${flag_errors}" = yes; then
11052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11054 as_fn_error
"linking guile version ${guile_version} test program failed
11055 See \`config.log' for more details." "$LINENO" 5; }
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11060 $as_echo "${found_usable_guile}" >&6; }
11063 as_fn_error
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11067 # Disallow --with=guile="" and --with-guile=foo/bar.
11068 as_fn_error
"invalid value for --with-guile" "$LINENO" 5
11071 # A space separate list of guile versions to try, in order.
11072 if test "${pkg_config_prog_path}" = "missing"; then
11073 as_fn_error
"pkg-config not found" "$LINENO" 5
11076 pkg_config
=${pkg_config_prog_path}
11077 guile_version_list
=${with_guile}
11080 found_usable_guile
=checking
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11082 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11083 for guile_version
in ${guile_version_list}; do
11084 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11085 if test $?
!= 0; then
11088 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11089 if test $?
!= 0; then
11090 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11092 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11093 if test $?
!= 0; then
11094 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11096 found_usable_guile
=${guile_version}
11099 if test "${found_usable_guile}" = "checking"; then
11100 if test "${flag_errors}" = "yes"; then
11101 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11103 found_usable_guile
=no
11106 if test "${found_usable_guile}" != no
; then
11107 save_CPPFLAGS
=$CPPFLAGS
11109 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11110 LIBS
="$LIBS $new_LIBS"
11111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11113 #include "libguile.h"
11122 if ac_fn_c_try_link
"$LINENO"; then :
11124 GUILE_CPPFLAGS
=$new_CPPFLAGS
11125 GUILE_LIBS
=$new_LIBS
11127 found_usable_guile
=no
11129 rm -f core conftest.err conftest.
$ac_objext \
11130 conftest
$ac_exeext conftest.
$ac_ext
11131 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11132 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
11134 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11139 CPPFLAGS
=$save_CPPFLAGS
11141 if test "${found_usable_guile}" = no
; then
11142 if test "${flag_errors}" = yes; then
11143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11145 as_fn_error
"linking guile version ${guile_version} test program failed
11146 See \`config.log' for more details." "$LINENO" 5; }
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11151 $as_echo "${found_usable_guile}" >&6; }
11156 if test "${have_libguile}" != no
; then
11157 case "${with_guile}" in
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11161 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11162 if test "${ac_cv_guild_program_name+set}" = set; then :
11163 $as_echo_n "(cached) " >&6
11165 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11167 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11168 # the 'guild' and 'bindir' variables. In that case, try to guess
11169 # what the program name is, at the risk of getting it wrong if
11170 # Guile was configured with '--program-suffix' or similar.
11171 if test "x$ac_cv_guild_program_name" = "x"; then
11172 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11173 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11178 $as_echo "$ac_cv_guild_program_name" >&6; }
11180 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11181 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11184 GUILD
="$ac_cv_guild_program_name"
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11191 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11192 if test "${ac_cv_guild_program_name+set}" = set; then :
11193 $as_echo_n "(cached) " >&6
11195 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11197 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11198 # the 'guild' and 'bindir' variables. In that case, try to guess
11199 # what the program name is, at the risk of getting it wrong if
11200 # Guile was configured with '--program-suffix' or similar.
11201 if test "x$ac_cv_guild_program_name" = "x"; then
11202 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11203 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11208 $as_echo "$ac_cv_guild_program_name" >&6; }
11210 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11211 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11214 GUILD
="$ac_cv_guild_program_name"
11221 if test "$cross_compiling" = no
; then
11224 GUILD_TARGET_FLAG
="--target=$host"
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11231 $as_echo_n "checking whether guild supports this host... " >&6; }
11232 if test "${ac_cv_guild_ok+set}" = set; then :
11233 $as_echo_n "(cached) " >&6
11235 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11236 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11243 $as_echo "$ac_cv_guild_ok" >&6; }
11245 if test "$ac_cv_guild_ok" = no
; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11248 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11252 if test "${have_libguile}" != no
; then
11254 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11256 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11257 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11258 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11259 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11260 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11263 save_CPPFLAGS
="$CPPFLAGS"
11265 CPPFLAGS
="$GUILE_CPPFLAGS"
11266 for ac_func
in scm_new_smob
11268 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11269 if test "x$ac_cv_func_scm_new_smob" = x
""yes; then :
11270 cat >>confdefs.h
<<_ACEOF
11271 #define HAVE_SCM_NEW_SMOB 1
11278 CPPFLAGS
="$save_CPPFLAGS"
11280 # Even if Guile support is not compiled in, we need to have these files
11282 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11283 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11287 if test "${have_libguile}" != no
; then
11289 HAVE_GUILE_FALSE
='#'
11291 HAVE_GUILE_TRUE
='#'
11296 # --------------------- #
11297 # Check for libmcheck. #
11298 # --------------------- #
11300 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
11301 # but turn it off if Python is enabled with threads, since -lmcheck is
11302 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
11303 # and for releases.
11304 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
11305 && $development; then
11306 libmcheck_default
=yes
11308 libmcheck_default
=no
11311 # Check whether --enable-libmcheck was given.
11312 if test "${enable_libmcheck+set}" = set; then :
11313 enableval
=$enable_libmcheck; case "${enableval}" in
11314 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
11315 no | n
) ENABLE_LIBMCHECK
="no" ;;
11316 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
11321 if test -z "${ENABLE_LIBMCHECK}"; then
11322 ENABLE_LIBMCHECK
=${libmcheck_default}
11325 if test "$ENABLE_LIBMCHECK" = "yes" ; then
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
11327 $as_echo_n "checking for main in -lmcheck... " >&6; }
11328 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
11329 $as_echo_n "(cached) " >&6
11331 ac_check_lib_save_LIBS
=$LIBS
11332 LIBS
="-lmcheck $LIBS"
11333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h. */
11345 if ac_fn_c_try_link
"$LINENO"; then :
11346 ac_cv_lib_mcheck_main
=yes
11348 ac_cv_lib_mcheck_main
=no
11350 rm -f core conftest.err conftest.
$ac_objext \
11351 conftest
$ac_exeext conftest.
$ac_ext
11352 LIBS
=$ac_check_lib_save_LIBS
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
11355 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
11356 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
11357 cat >>confdefs.h
<<_ACEOF
11358 #define HAVE_LIBMCHECK 1
11361 LIBS
="-lmcheck $LIBS"
11368 if test "$ENABLE_LIBMCHECK" = "yes" \
11369 -a "${have_libpython}" != "no" \
11370 -a "${python_has_threads}" = "yes" ; then
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
11372 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
11376 # Check whether --with-intel_pt was given.
11377 if test "${with_intel_pt+set}" = set; then :
11378 withval
=$with_intel_pt;
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11384 $as_echo_n "checking whether to use intel pt... " >&6; }
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11386 $as_echo "$with_intel_pt" >&6; }
11388 if test "${with_intel_pt}" = no
; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11390 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11396 #include <linux/perf_event.h>
11397 #ifndef PERF_ATTR_SIZE_VER5
11402 if ac_fn_c_try_cpp
"$LINENO"; then :
11407 rm -f conftest.err conftest.
$ac_ext
11408 if test "$perf_event" != yes; then
11409 if test "$with_intel_pt" = yes; then
11410 as_fn_error
"linux/perf_event.h missing or too old" "$LINENO" 5
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11413 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11427 acl_save_prefix
="$prefix"
11428 prefix
="$acl_final_prefix"
11429 acl_save_exec_prefix
="$exec_prefix"
11430 exec_prefix
="$acl_final_exec_prefix"
11432 eval additional_includedir
=\"$includedir\"
11433 eval additional_libdir
=\"$libdir\"
11435 exec_prefix
="$acl_save_exec_prefix"
11436 prefix
="$acl_save_prefix"
11439 # Check whether --with-libipt-prefix was given.
11440 if test "${with_libipt_prefix+set}" = set; then :
11441 withval
=$with_libipt_prefix;
11442 if test "X$withval" = "Xno"; then
11445 if test "X$withval" = "X"; then
11447 acl_save_prefix
="$prefix"
11448 prefix
="$acl_final_prefix"
11449 acl_save_exec_prefix
="$exec_prefix"
11450 exec_prefix
="$acl_final_exec_prefix"
11452 eval additional_includedir
=\"$includedir\"
11453 eval additional_libdir
=\"$libdir\"
11455 exec_prefix
="$acl_save_exec_prefix"
11456 prefix
="$acl_save_prefix"
11459 additional_includedir
="$withval/include"
11460 additional_libdir
="$withval/lib"
11471 names_already_handled
=
11472 names_next_round
='ipt '
11473 while test -n "$names_next_round"; do
11474 names_this_round
="$names_next_round"
11476 for name
in $names_this_round; do
11478 for n
in $names_already_handled; do
11479 if test "$n" = "$name"; then
11480 already_handled
=yes
11484 if test -z "$already_handled"; then
11485 names_already_handled
="$names_already_handled $name"
11486 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11487 eval value
=\"\
$HAVE_LIB$uppername\"
11488 if test -n "$value"; then
11489 if test "$value" = yes; then
11490 eval value
=\"\
$LIB$uppername\"
11491 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
11492 eval value
=\"\
$LTLIB$uppername\"
11493 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
11502 if test $use_additional = yes; then
11503 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11504 found_dir
="$additional_libdir"
11505 found_so
="$additional_libdir/lib$name.$shlibext"
11506 if test -f "$additional_libdir/lib$name.la"; then
11507 found_la
="$additional_libdir/lib$name.la"
11510 if test -f "$additional_libdir/lib$name.$libext"; then
11511 found_dir
="$additional_libdir"
11512 found_a
="$additional_libdir/lib$name.$libext"
11513 if test -f "$additional_libdir/lib$name.la"; then
11514 found_la
="$additional_libdir/lib$name.la"
11519 if test "X$found_dir" = "X"; then
11520 for x
in $LDFLAGS $LTLIBIPT; do
11522 acl_save_prefix
="$prefix"
11523 prefix
="$acl_final_prefix"
11524 acl_save_exec_prefix
="$exec_prefix"
11525 exec_prefix
="$acl_final_exec_prefix"
11527 exec_prefix
="$acl_save_exec_prefix"
11528 prefix
="$acl_save_prefix"
11532 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11533 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11535 found_so
="$dir/lib$name.$shlibext"
11536 if test -f "$dir/lib$name.la"; then
11537 found_la
="$dir/lib$name.la"
11540 if test -f "$dir/lib$name.$libext"; then
11542 found_a
="$dir/lib$name.$libext"
11543 if test -f "$dir/lib$name.la"; then
11544 found_la
="$dir/lib$name.la"
11550 if test "X$found_dir" != "X"; then
11555 if test "X$found_dir" != "X"; then
11556 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11557 if test "X$found_so" != "X"; then
11558 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11559 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11562 for x
in $ltrpathdirs; do
11563 if test "X$x" = "X$found_dir"; then
11568 if test -z "$haveit"; then
11569 ltrpathdirs
="$ltrpathdirs $found_dir"
11571 if test "$hardcode_direct" = yes; then
11572 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11574 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11575 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11577 for x
in $rpathdirs; do
11578 if test "X$x" = "X$found_dir"; then
11583 if test -z "$haveit"; then
11584 rpathdirs
="$rpathdirs $found_dir"
11588 for x
in $LDFLAGS $LIBIPT; do
11590 acl_save_prefix
="$prefix"
11591 prefix
="$acl_final_prefix"
11592 acl_save_exec_prefix
="$exec_prefix"
11593 exec_prefix
="$acl_final_exec_prefix"
11595 exec_prefix
="$acl_save_exec_prefix"
11596 prefix
="$acl_save_prefix"
11598 if test "X$x" = "X-L$found_dir"; then
11603 if test -z "$haveit"; then
11604 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11606 if test "$hardcode_minus_L" != no
; then
11607 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11609 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11615 if test "X$found_a" != "X"; then
11616 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
11618 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11621 additional_includedir
=
11622 case "$found_dir" in
11624 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11625 additional_includedir
="$basedir/include"
11628 if test "X$additional_includedir" != "X"; then
11629 if test "X$additional_includedir" != "X/usr/include"; then
11631 if test "X$additional_includedir" = "X/usr/local/include"; then
11632 if test -n "$GCC"; then
11634 linux
*) haveit
=yes;;
11638 if test -z "$haveit"; then
11639 for x
in $CPPFLAGS $INCIPT; do
11641 acl_save_prefix
="$prefix"
11642 prefix
="$acl_final_prefix"
11643 acl_save_exec_prefix
="$exec_prefix"
11644 exec_prefix
="$acl_final_exec_prefix"
11646 exec_prefix
="$acl_save_exec_prefix"
11647 prefix
="$acl_save_prefix"
11649 if test "X$x" = "X-I$additional_includedir"; then
11654 if test -z "$haveit"; then
11655 if test -d "$additional_includedir"; then
11656 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11662 if test -n "$found_la"; then
11663 save_libdir
="$libdir"
11664 case "$found_la" in
11665 */* |
*\\*) .
"$found_la" ;;
11666 *) .
"./$found_la" ;;
11668 libdir
="$save_libdir"
11669 for dep
in $dependency_libs; do
11672 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11673 if test "X$additional_libdir" != "X/usr/lib"; then
11675 if test "X$additional_libdir" = "X/usr/local/lib"; then
11676 if test -n "$GCC"; then
11678 linux
*) haveit
=yes;;
11682 if test -z "$haveit"; then
11684 for x
in $LDFLAGS $LIBIPT; do
11686 acl_save_prefix
="$prefix"
11687 prefix
="$acl_final_prefix"
11688 acl_save_exec_prefix
="$exec_prefix"
11689 exec_prefix
="$acl_final_exec_prefix"
11691 exec_prefix
="$acl_save_exec_prefix"
11692 prefix
="$acl_save_prefix"
11694 if test "X$x" = "X-L$additional_libdir"; then
11699 if test -z "$haveit"; then
11700 if test -d "$additional_libdir"; then
11701 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11705 for x
in $LDFLAGS $LTLIBIPT; do
11707 acl_save_prefix
="$prefix"
11708 prefix
="$acl_final_prefix"
11709 acl_save_exec_prefix
="$exec_prefix"
11710 exec_prefix
="$acl_final_exec_prefix"
11712 exec_prefix
="$acl_save_exec_prefix"
11713 prefix
="$acl_save_prefix"
11715 if test "X$x" = "X-L$additional_libdir"; then
11720 if test -z "$haveit"; then
11721 if test -d "$additional_libdir"; then
11722 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11729 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11730 if test "$enable_rpath" != no
; then
11732 for x
in $rpathdirs; do
11733 if test "X$x" = "X$dir"; then
11738 if test -z "$haveit"; then
11739 rpathdirs
="$rpathdirs $dir"
11742 for x
in $ltrpathdirs; do
11743 if test "X$x" = "X$dir"; then
11748 if test -z "$haveit"; then
11749 ltrpathdirs
="$ltrpathdirs $dir"
11754 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11757 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11760 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11761 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11767 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11768 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11774 if test "X$rpathdirs" != "X"; then
11775 if test -n "$hardcode_libdir_separator"; then
11777 for found_dir
in $rpathdirs; do
11778 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11780 acl_save_libdir
="$libdir"
11782 eval flag
=\"$hardcode_libdir_flag_spec\"
11783 libdir
="$acl_save_libdir"
11784 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11786 for found_dir
in $rpathdirs; do
11787 acl_save_libdir
="$libdir"
11788 libdir
="$found_dir"
11789 eval flag
=\"$hardcode_libdir_flag_spec\"
11790 libdir
="$acl_save_libdir"
11791 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11795 if test "X$ltrpathdirs" != "X"; then
11796 for found_dir
in $ltrpathdirs; do
11797 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11802 ac_save_CPPFLAGS
="$CPPFLAGS"
11804 for element
in $INCIPT; do
11806 for x
in $CPPFLAGS; do
11808 acl_save_prefix
="$prefix"
11809 prefix
="$acl_final_prefix"
11810 acl_save_exec_prefix
="$exec_prefix"
11811 exec_prefix
="$acl_final_exec_prefix"
11813 exec_prefix
="$acl_save_exec_prefix"
11814 prefix
="$acl_save_prefix"
11816 if test "X$x" = "X$element"; then
11821 if test -z "$haveit"; then
11822 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11828 $as_echo_n "checking for libipt... " >&6; }
11829 if test "${ac_cv_libipt+set}" = set; then :
11830 $as_echo_n "(cached) " >&6
11833 ac_save_LIBS
="$LIBS"
11834 LIBS
="$LIBS $LIBIPT"
11835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11837 #include "intel-pt.h"
11841 pt_insn_alloc_decoder (0);
11846 if ac_fn_c_try_link
"$LINENO"; then :
11851 rm -f core conftest.err conftest.
$ac_objext \
11852 conftest
$ac_exeext conftest.
$ac_ext
11853 LIBS
="$ac_save_LIBS"
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11857 $as_echo "$ac_cv_libipt" >&6; }
11858 if test "$ac_cv_libipt" = yes; then
11861 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11864 $as_echo_n "checking how to link with libipt... " >&6; }
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11866 $as_echo "$LIBIPT" >&6; }
11869 CPPFLAGS
="$ac_save_CPPFLAGS"
11879 if test "$HAVE_LIBIPT" != yes; then
11880 if test "$with_intel_pt" = yes; then
11881 as_fn_error
"libipt is missing or unusable" "$LINENO" 5
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
11884 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
11888 LIBS
="$LIBS $LIBIPT"
11889 for ac_func
in pt_insn_event
11891 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
11892 if test "x$ac_cv_func_pt_insn_event" = x
""yes; then :
11893 cat >>confdefs.h
<<_ACEOF
11894 #define HAVE_PT_INSN_EVENT 1
11900 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
11902 if test "x$ac_cv_member_struct_pt_insn_enabled" = x
""yes; then :
11904 cat >>confdefs.h
<<_ACEOF
11905 #define HAVE_STRUCT_PT_INSN_ENABLED 1
11910 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
11912 if test "x$ac_cv_member_struct_pt_insn_resynced" = x
""yes; then :
11914 cat >>confdefs.h
<<_ACEOF
11915 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
11925 # ------------------------- #
11926 # Checks for header files. #
11927 # ------------------------- #
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11930 $as_echo_n "checking for ANSI C header files... " >&6; }
11931 if test "${ac_cv_header_stdc+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11936 #include <stdlib.h>
11937 #include <stdarg.h>
11938 #include <string.h>
11949 if ac_fn_c_try_compile
"$LINENO"; then :
11950 ac_cv_header_stdc
=yes
11952 ac_cv_header_stdc
=no
11954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11956 if test $ac_cv_header_stdc = yes; then
11957 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11960 #include <string.h>
11963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11964 $EGREP "memchr" >/dev
/null
2>&1; then :
11967 ac_cv_header_stdc
=no
11973 if test $ac_cv_header_stdc = yes; then
11974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11976 /* end confdefs.h. */
11977 #include <stdlib.h>
11980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11981 $EGREP "free" >/dev
/null
2>&1; then :
11984 ac_cv_header_stdc
=no
11990 if test $ac_cv_header_stdc = yes; then
11991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11992 if test "$cross_compiling" = yes; then :
11995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11998 #include <stdlib.h>
11999 #if ((' ' & 0x0FF) == 0x020)
12000 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12001 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12003 # define ISLOWER(c) \
12004 (('a' <= (c) && (c) <= 'i') \
12005 || ('j' <= (c) && (c) <= 'r') \
12006 || ('s' <= (c) && (c) <= 'z'))
12007 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12010 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12015 for (i = 0; i < 256; i++)
12016 if (XOR (islower (i), ISLOWER (i))
12017 || toupper (i) != TOUPPER (i))
12022 if ac_fn_c_try_run
"$LINENO"; then :
12025 ac_cv_header_stdc
=no
12027 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12028 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12034 $as_echo "$ac_cv_header_stdc" >&6; }
12035 if test $ac_cv_header_stdc = yes; then
12037 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12041 # elf_hp.h is for HP/UX 64-bit shared library support.
12042 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12044 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12045 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12046 sys
/reg.h sys
/debugreg.h sys
/select.h \
12047 termios.h elf_hp.h \
12050 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12051 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12052 eval as_val
=\$
$as_ac_Header
12053 if test "x$as_val" = x
""yes; then :
12054 cat >>confdefs.h
<<_ACEOF
12055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12062 for ac_header
in sys
/user.h
12064 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12065 # include <sys/param.h>
12069 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
12070 cat >>confdefs.h
<<_ACEOF
12071 #define HAVE_SYS_USER_H 1
12079 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12081 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12082 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12083 eval as_val
=\$
$as_ac_Header
12084 if test "x$as_val" = x
""yes; then :
12085 cat >>confdefs.h
<<_ACEOF
12086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12093 for ac_header
in term.h
12095 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12096 # include <curses.h>
12100 if test "x$ac_cv_header_term_h" = x
""yes; then :
12101 cat >>confdefs.h
<<_ACEOF
12102 #define HAVE_TERM_H 1
12110 # ------------------------- #
12111 # Checks for declarations. #
12112 # ------------------------- #
12115 # Check for presence and size of long long.
12116 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12117 if test "x$ac_cv_type_long_long" = x
""yes; then :
12119 cat >>confdefs.h
<<_ACEOF
12120 #define HAVE_LONG_LONG 1
12123 # The cast to long int works around a bug in the HP C Compiler
12124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12126 # This bug is HP SR number 8606223364.
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12128 $as_echo_n "checking size of long long... " >&6; }
12129 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12130 $as_echo_n "(cached) " >&6
12132 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12135 if test "$ac_cv_type_long_long" = yes; then
12136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12138 { as_fn_set_status
77
12139 as_fn_error
"cannot compute sizeof (long long)
12140 See \`config.log' for more details." "$LINENO" 5; }; }
12142 ac_cv_sizeof_long_long
=0
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12148 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12152 cat >>confdefs.h
<<_ACEOF
12153 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12160 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
12161 if test "x$ac_cv_have_decl_basename_char_p_" = x
""yes; then :
12167 cat >>confdefs.h
<<_ACEOF
12168 #define HAVE_DECL_BASENAME $ac_have_decl
12170 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12171 if test "x$ac_cv_have_decl_ffs" = x
""yes; then :
12177 cat >>confdefs.h
<<_ACEOF
12178 #define HAVE_DECL_FFS $ac_have_decl
12180 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12181 if test "x$ac_cv_have_decl_asprintf" = x
""yes; then :
12187 cat >>confdefs.h
<<_ACEOF
12188 #define HAVE_DECL_ASPRINTF $ac_have_decl
12190 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12191 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
12197 cat >>confdefs.h
<<_ACEOF
12198 #define HAVE_DECL_VASPRINTF $ac_have_decl
12200 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12201 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
12207 cat >>confdefs.h
<<_ACEOF
12208 #define HAVE_DECL_SNPRINTF $ac_have_decl
12210 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12211 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
12217 cat >>confdefs.h
<<_ACEOF
12218 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12221 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12222 if test "x$ac_cv_have_decl_strtol" = x
""yes; then :
12228 cat >>confdefs.h
<<_ACEOF
12229 #define HAVE_DECL_STRTOL $ac_have_decl
12231 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12232 if test "x$ac_cv_have_decl_strtoul" = x
""yes; then :
12238 cat >>confdefs.h
<<_ACEOF
12239 #define HAVE_DECL_STRTOUL $ac_have_decl
12241 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12242 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
12248 cat >>confdefs.h
<<_ACEOF
12249 #define HAVE_DECL_STRTOLL $ac_have_decl
12251 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12252 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
12258 cat >>confdefs.h
<<_ACEOF
12259 #define HAVE_DECL_STRTOULL $ac_have_decl
12262 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12263 if test "x$ac_cv_have_decl_strverscmp" = x
""yes; then :
12269 cat >>confdefs.h
<<_ACEOF
12270 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12275 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
12276 if test "x$ac_cv_have_decl_free" = x
""yes; then :
12282 cat >>confdefs.h
<<_ACEOF
12283 #define HAVE_DECL_FREE $ac_have_decl
12285 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
12286 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
12292 cat >>confdefs.h
<<_ACEOF
12293 #define HAVE_DECL_MALLOC $ac_have_decl
12295 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
12296 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
12302 cat >>confdefs.h
<<_ACEOF
12303 #define HAVE_DECL_REALLOC $ac_have_decl
12305 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12306 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
12312 cat >>confdefs.h
<<_ACEOF
12313 #define HAVE_DECL_SNPRINTF $ac_have_decl
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12318 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12319 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
12322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12324 #include <locale.h>
12333 if ac_fn_c_try_link
"$LINENO"; then :
12334 am_cv_val_LC_MESSAGES
=yes
12336 am_cv_val_LC_MESSAGES
=no
12338 rm -f core conftest.err conftest.
$ac_objext \
12339 conftest
$ac_exeext conftest.
$ac_ext
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12342 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12343 if test $am_cv_val_LC_MESSAGES = yes; then
12345 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12350 # ----------------------- #
12351 # Checks for structures. #
12352 # ----------------------- #
12354 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12355 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
12357 cat >>confdefs.h
<<_ACEOF
12358 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12363 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12364 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
12366 cat >>confdefs.h
<<_ACEOF
12367 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12374 # ------------------ #
12375 # Checks for types. #
12376 # ------------------ #
12378 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12379 #include <sys/socket.h>
12382 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
12384 cat >>confdefs.h
<<_ACEOF
12385 #define HAVE_SOCKLEN_T 1
12392 # ------------------------------------- #
12393 # Checks for compiler characteristics. #
12394 # ------------------------------------- #
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12397 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12398 if test "${ac_cv_c_const+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
12401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h. */
12407 /* FIXME: Include the comments suggested by Paul. */
12408 #ifndef __cplusplus
12409 /* Ultrix mips cc rejects this. */
12410 typedef int charset[2];
12412 /* SunOS 4.1.1 cc rejects this. */
12413 char const *const *pcpcc;
12415 /* NEC SVR4.0.2 mips cc rejects this. */
12416 struct point {int x, y;};
12417 static struct point const zero = {0,0};
12418 /* AIX XL C 1.02.0.0 rejects this.
12419 It does not let you subtract one const X* pointer from another in
12420 an arm of an if-expression whose if-part is not a constant
12422 const char *g = "string";
12423 pcpcc = &g + (g ? g-g : 0);
12424 /* HPUX 7.0 cc rejects these. */
12426 ppc = (char**) pcpcc;
12427 pcpcc = (char const *const *) ppc;
12428 { /* SCO 3.2v4 cc rejects this. */
12430 char const *s = 0 ? (char *) 0 : (char const *) 0;
12435 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12436 int x[] = {25, 17};
12437 const int *foo = &x[0];
12440 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12441 typedef const int *iptr;
12445 { /* AIX XL C 1.02.0.0 rejects this saying
12446 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12447 struct s { int j; const int *ap[3]; };
12448 struct s *b; b->j = 5;
12450 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12451 const int foo = 10;
12452 if (!foo) return 0;
12454 return !cs[0] && !zero.x;
12461 if ac_fn_c_try_compile
"$LINENO"; then :
12466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12469 $as_echo "$ac_cv_c_const" >&6; }
12470 if test $ac_cv_c_const = no
; then
12472 $as_echo "#define const /**/" >>confdefs.h
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12477 $as_echo_n "checking for inline... " >&6; }
12478 if test "${ac_cv_c_inline+set}" = set; then :
12479 $as_echo_n "(cached) " >&6
12482 for ac_kw
in inline __inline__ __inline
; do
12483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12485 #ifndef __cplusplus
12487 static $ac_kw foo_t static_foo () {return 0; }
12488 $ac_kw foo_t foo () {return 0; }
12492 if ac_fn_c_try_compile
"$LINENO"; then :
12493 ac_cv_c_inline
=$ac_kw
12495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12496 test "$ac_cv_c_inline" != no
&& break
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12501 $as_echo "$ac_cv_c_inline" >&6; }
12503 case $ac_cv_c_inline in
12506 case $ac_cv_c_inline in
12508 *) ac_val
=$ac_cv_c_inline;;
12510 cat >>confdefs.h
<<_ACEOF
12511 #ifndef __cplusplus
12512 #define inline $ac_val
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12519 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12520 if test "${ac_cv_c_bigendian+set}" = set; then :
12521 $as_echo_n "(cached) " >&6
12523 ac_cv_c_bigendian
=unknown
12524 # See if we're dealing with a universal compiler.
12525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12527 #ifndef __APPLE_CC__
12528 not a universal capable compiler
12533 if ac_fn_c_try_compile
"$LINENO"; then :
12535 # Check for potential -arch flags. It is not universal unless
12536 # there are at least two -arch flags with different values.
12539 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12540 if test -n "$ac_prev"; then
12542 i?
86 | x86_64 | ppc | ppc64
)
12543 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12546 ac_cv_c_bigendian
=universal
12552 elif test "x$ac_word" = "x-arch"; then
12557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12558 if test $ac_cv_c_bigendian = unknown
; then
12559 # See if sys/param.h defines the BYTE_ORDER macro.
12560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12561 /* end confdefs.h. */
12562 #include <sys/types.h>
12563 #include <sys/param.h>
12568 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12569 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12571 bogus endian macros
12578 if ac_fn_c_try_compile
"$LINENO"; then :
12579 # It does; now see whether it defined to BIG_ENDIAN or not.
12580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12582 #include <sys/types.h>
12583 #include <sys/param.h>
12588 #if BYTE_ORDER != BIG_ENDIAN
12596 if ac_fn_c_try_compile
"$LINENO"; then :
12597 ac_cv_c_bigendian
=yes
12599 ac_cv_c_bigendian
=no
12601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12605 if test $ac_cv_c_bigendian = unknown
; then
12606 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12609 #include <limits.h>
12614 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12615 bogus endian macros
12622 if ac_fn_c_try_compile
"$LINENO"; then :
12623 # It does; now see whether it defined to _BIG_ENDIAN or not.
12624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12626 #include <limits.h>
12631 #ifndef _BIG_ENDIAN
12639 if ac_fn_c_try_compile
"$LINENO"; then :
12640 ac_cv_c_bigendian
=yes
12642 ac_cv_c_bigendian
=no
12644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12648 if test $ac_cv_c_bigendian = unknown
; then
12649 # Compile a test program.
12650 if test "$cross_compiling" = yes; then :
12651 # Try to guess by grepping values from an object file.
12652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12653 /* end confdefs.h. */
12654 short int ascii_mm[] =
12655 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12656 short int ascii_ii[] =
12657 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12658 int use_ascii (int i) {
12659 return ascii_mm[i] + ascii_ii[i];
12661 short int ebcdic_ii[] =
12662 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12663 short int ebcdic_mm[] =
12664 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12665 int use_ebcdic (int i) {
12666 return ebcdic_mm[i] + ebcdic_ii[i];
12673 return use_ascii (foo) == use_ebcdic (foo);
12678 if ac_fn_c_try_compile
"$LINENO"; then :
12679 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12680 ac_cv_c_bigendian
=yes
12682 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12683 if test "$ac_cv_c_bigendian" = unknown
; then
12684 ac_cv_c_bigendian
=no
12686 # finding both strings is unlikely to happen, but who knows?
12687 ac_cv_c_bigendian
=unknown
12691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695 $ac_includes_default
12700 /* Are we little or big endian? From Harbison&Steele. */
12704 char c[sizeof (long int)];
12707 return u.c[sizeof (long int) - 1] == 1;
12713 if ac_fn_c_try_run
"$LINENO"; then :
12714 ac_cv_c_bigendian
=no
12716 ac_cv_c_bigendian
=yes
12718 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12719 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12725 $as_echo "$ac_cv_c_bigendian" >&6; }
12726 case $ac_cv_c_bigendian in #(
12728 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12734 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12738 as_fn_error
"unknown endianness
12739 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12743 # ------------------------------ #
12744 # Checks for library functions. #
12745 # ------------------------------ #
12747 for ac_header
in stdlib.h unistd.h
12749 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12750 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12751 eval as_val
=\$
$as_ac_Header
12752 if test "x$as_val" = x
""yes; then :
12753 cat >>confdefs.h
<<_ACEOF
12754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12761 for ac_func
in getpagesize
12763 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12764 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12765 cat >>confdefs.h
<<_ACEOF
12766 #define HAVE_GETPAGESIZE 1
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12773 $as_echo_n "checking for working mmap... " >&6; }
12774 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12775 $as_echo_n "(cached) " >&6
12777 if test "$cross_compiling" = yes; then :
12778 ac_cv_func_mmap_fixed_mapped
=no
12780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12782 $ac_includes_default
12783 /* malloc might have been renamed as rpl_malloc. */
12786 /* Thanks to Mike Haertel and Jim Avera for this test.
12787 Here is a matrix of mmap possibilities:
12788 mmap private not fixed
12789 mmap private fixed at somewhere currently unmapped
12790 mmap private fixed at somewhere already mapped
12791 mmap shared not fixed
12792 mmap shared fixed at somewhere currently unmapped
12793 mmap shared fixed at somewhere already mapped
12794 For private mappings, we should verify that changes cannot be read()
12795 back from the file, nor mmap's back from the file at a different
12796 address. (There have been systems where private was not correctly
12797 implemented like the infamous i386 svr4.0, and systems where the
12798 VM page cache was not coherent with the file system buffer cache
12799 like early versions of FreeBSD and possibly contemporary NetBSD.)
12800 For shared mappings, we should conversely verify that changes get
12801 propagated back to all the places they're supposed to be.
12803 Grep wants private fixed already mapped.
12804 The main things grep needs to know about mmap are:
12805 * does it exist and is it safe to write into the mmap'd area
12806 * how to use it (BSD variants) */
12809 #include <sys/mman.h>
12811 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12815 /* This mess was copied from the GNU getpagesize.h. */
12816 #ifndef HAVE_GETPAGESIZE
12817 /* Assume that all systems that can run configure have sys/param.h. */
12818 # ifndef HAVE_SYS_PARAM_H
12819 # define HAVE_SYS_PARAM_H 1
12822 # ifdef _SC_PAGESIZE
12823 # define getpagesize() sysconf(_SC_PAGESIZE)
12824 # else /* no _SC_PAGESIZE */
12825 # ifdef HAVE_SYS_PARAM_H
12826 # include <sys/param.h>
12827 # ifdef EXEC_PAGESIZE
12828 # define getpagesize() EXEC_PAGESIZE
12829 # else /* no EXEC_PAGESIZE */
12831 # define getpagesize() NBPG * CLSIZE
12834 # endif /* no CLSIZE */
12835 # else /* no NBPG */
12837 # define getpagesize() NBPC
12838 # else /* no NBPC */
12840 # define getpagesize() PAGESIZE
12841 # endif /* PAGESIZE */
12842 # endif /* no NBPC */
12843 # endif /* no NBPG */
12844 # endif /* no EXEC_PAGESIZE */
12845 # else /* no HAVE_SYS_PARAM_H */
12846 # define getpagesize() 8192 /* punt totally */
12847 # endif /* no HAVE_SYS_PARAM_H */
12848 # endif /* no _SC_PAGESIZE */
12850 #endif /* no HAVE_GETPAGESIZE */
12855 char *data, *data2, *data3;
12859 pagesize = getpagesize ();
12861 /* First, make a file with some known garbage in it. */
12862 data = (char *) malloc (pagesize);
12865 for (i = 0; i < pagesize; ++i)
12866 *(data + i) = rand ();
12868 fd = creat ("conftest.mmap", 0600);
12871 if (write (fd, data, pagesize) != pagesize)
12875 /* Next, try to mmap the file at a fixed address which already has
12876 something else allocated at it. If we can, also make sure that
12877 we see the same garbage. */
12878 fd = open ("conftest.mmap", O_RDWR);
12881 data2 = (char *) malloc (2 * pagesize);
12884 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12885 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12886 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12888 for (i = 0; i < pagesize; ++i)
12889 if (*(data + i) != *(data2 + i))
12892 /* Finally, make sure that changes to the mapped area do not
12893 percolate back to the file as seen by read(). (This is a bug on
12894 some variants of i386 svr4.0.) */
12895 for (i = 0; i < pagesize; ++i)
12896 *(data2 + i) = *(data2 + i) + 1;
12897 data3 = (char *) malloc (pagesize);
12900 if (read (fd, data3, pagesize) != pagesize)
12902 for (i = 0; i < pagesize; ++i)
12903 if (*(data + i) != *(data3 + i))
12909 if ac_fn_c_try_run
"$LINENO"; then :
12910 ac_cv_func_mmap_fixed_mapped
=yes
12912 ac_cv_func_mmap_fixed_mapped
=no
12914 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12915 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12920 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12921 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12923 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12926 rm -f conftest.mmap
12928 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12929 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12933 cat >>confdefs.h
<<_ACEOF
12939 for ac_header
in vfork.h
12941 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12942 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12943 cat >>confdefs.h
<<_ACEOF
12944 #define HAVE_VFORK_H 1
12951 for ac_func
in fork vfork
12953 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12954 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12955 eval as_val
=\$
$as_ac_var
12956 if test "x$as_val" = x
""yes; then :
12957 cat >>confdefs.h
<<_ACEOF
12958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12964 if test "x$ac_cv_func_fork" = xyes
; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12966 $as_echo_n "checking for working fork... " >&6; }
12967 if test "${ac_cv_func_fork_works+set}" = set; then :
12968 $as_echo_n "(cached) " >&6
12970 if test "$cross_compiling" = yes; then :
12971 ac_cv_func_fork_works
=cross
12973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 $ac_includes_default
12980 /* By Ruediger Kuhlmann. */
12981 return fork () < 0;
12987 if ac_fn_c_try_run
"$LINENO"; then :
12988 ac_cv_func_fork_works
=yes
12990 ac_cv_func_fork_works
=no
12992 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12993 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12998 $as_echo "$ac_cv_func_fork_works" >&6; }
13001 ac_cv_func_fork_works
=$ac_cv_func_fork
13003 if test "x$ac_cv_func_fork_works" = xcross
; then
13005 *-*-amigaos* |
*-*-msdosdjgpp*)
13006 # Override, as these systems have only a dummy fork() stub
13007 ac_cv_func_fork_works
=no
13010 ac_cv_func_fork_works
=yes
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13014 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13016 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13017 if test "x$ac_cv_func_vfork" = xyes
; then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13019 $as_echo_n "checking for working vfork... " >&6; }
13020 if test "${ac_cv_func_vfork_works+set}" = set; then :
13021 $as_echo_n "(cached) " >&6
13023 if test "$cross_compiling" = yes; then :
13024 ac_cv_func_vfork_works
=cross
13026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13028 /* Thanks to Paul Eggert for this test. */
13029 $ac_includes_default
13030 #include <sys/wait.h>
13031 #ifdef HAVE_VFORK_H
13032 # include <vfork.h>
13034 /* On some sparc systems, changes by the child to local and incoming
13035 argument registers are propagated back to the parent. The compiler
13036 is told about this with #include <vfork.h>, but some compilers
13037 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13038 static variable whose address is put into a register that is
13039 clobbered by the vfork. */
13042 sparc_address_test (int arg)
13044 sparc_address_test (arg) int arg;
13047 static pid_t child;
13065 pid_t parent = getpid ();
13068 sparc_address_test (0);
13073 /* Here is another test for sparc vfork register problems. This
13074 test uses lots of local variables, at least as many local
13075 variables as main has allocated so far including compiler
13076 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13077 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13078 reuse the register of parent for one of the local variables,
13079 since it will think that parent can't possibly be used any more
13080 in this routine. Assigning to the local variable will thus
13081 munge parent in the parent process. */
13083 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13084 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13085 /* Convince the compiler that p..p7 are live; otherwise, it might
13086 use the same hardware register for all 8 local variables. */
13087 if (p != p1 || p != p2 || p != p3 || p != p4
13088 || p != p5 || p != p6 || p != p7)
13091 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13092 from child file descriptors. If the child closes a descriptor
13093 before it execs or exits, this munges the parent's descriptor
13094 as well. Test for this by closing stdout in the child. */
13095 _exit(close(fileno(stdout)) != 0);
13100 while (wait(&status) != child)
13103 /* Was there some problem with vforking? */
13106 /* Did the child fail? (This shouldn't happen.) */
13109 /* Did the vfork/compiler bug occur? */
13110 || parent != getpid()
13112 /* Did the file descriptor bug occur? */
13113 || fstat(fileno(stdout), &st) != 0
13118 if ac_fn_c_try_run
"$LINENO"; then :
13119 ac_cv_func_vfork_works
=yes
13121 ac_cv_func_vfork_works
=no
13123 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13124 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13129 $as_echo "$ac_cv_func_vfork_works" >&6; }
13132 if test "x$ac_cv_func_fork_works" = xcross
; then
13133 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13135 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13138 if test "x$ac_cv_func_vfork_works" = xyes
; then
13140 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13144 $as_echo "#define vfork fork" >>confdefs.h
13147 if test "x$ac_cv_func_fork_works" = xyes
; then
13149 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13153 for ac_func
in getauxval getrusage getuid getgid \
13154 pipe poll pread pread64 pwrite resize_term \
13155 sbrk setpgid setpgrp setsid \
13156 sigaction sigprocmask sigsetmask socketpair \
13157 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13158 setrlimit getrlimit posix_madvise waitpid \
13159 ptrace64 sigaltstack mkdtemp setns
13161 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13162 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13163 eval as_val
=\$
$as_ac_var
13164 if test "x$as_val" = x
""yes; then :
13165 cat >>confdefs.h
<<_ACEOF
13166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13174 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13175 if test "${am_cv_langinfo_codeset+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13180 #include <langinfo.h>
13184 char* cs = nl_langinfo(CODESET);
13189 if ac_fn_c_try_link
"$LINENO"; then :
13190 am_cv_langinfo_codeset
=yes
13192 am_cv_langinfo_codeset
=no
13194 rm -f core conftest.err conftest.
$ac_objext \
13195 conftest
$ac_exeext conftest.
$ac_ext
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13199 $as_echo "$am_cv_langinfo_codeset" >&6; }
13200 if test $am_cv_langinfo_codeset = yes; then
13202 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13208 $as_echo_n "checking for ANSI C header files... " >&6; }
13209 if test "${ac_cv_header_stdc+set}" = set; then :
13210 $as_echo_n "(cached) " >&6
13212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13214 #include <stdlib.h>
13215 #include <stdarg.h>
13216 #include <string.h>
13227 if ac_fn_c_try_compile
"$LINENO"; then :
13228 ac_cv_header_stdc
=yes
13230 ac_cv_header_stdc
=no
13232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13234 if test $ac_cv_header_stdc = yes; then
13235 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13238 #include <string.h>
13241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13242 $EGREP "memchr" >/dev
/null
2>&1; then :
13245 ac_cv_header_stdc
=no
13251 if test $ac_cv_header_stdc = yes; then
13252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13255 #include <stdlib.h>
13258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13259 $EGREP "free" >/dev
/null
2>&1; then :
13262 ac_cv_header_stdc
=no
13268 if test $ac_cv_header_stdc = yes; then
13269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13270 if test "$cross_compiling" = yes; then :
13273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h. */
13276 #include <stdlib.h>
13277 #if ((' ' & 0x0FF) == 0x020)
13278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13281 # define ISLOWER(c) \
13282 (('a' <= (c) && (c) <= 'i') \
13283 || ('j' <= (c) && (c) <= 'r') \
13284 || ('s' <= (c) && (c) <= 'z'))
13285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13293 for (i = 0; i < 256; i++)
13294 if (XOR (islower (i), ISLOWER (i))
13295 || toupper (i) != TOUPPER (i))
13300 if ac_fn_c_try_run
"$LINENO"; then :
13303 ac_cv_header_stdc
=no
13305 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13306 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13312 $as_echo "$ac_cv_header_stdc" >&6; }
13313 if test $ac_cv_header_stdc = yes; then
13315 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13319 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13320 # for constant arguments. Useless!
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13322 $as_echo_n "checking for working alloca.h... " >&6; }
13323 if test "${ac_cv_working_alloca_h+set}" = set; then :
13324 $as_echo_n "(cached) " >&6
13326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13328 #include <alloca.h>
13332 char *p = (char *) alloca (2 * sizeof (int));
13338 if ac_fn_c_try_link
"$LINENO"; then :
13339 ac_cv_working_alloca_h
=yes
13341 ac_cv_working_alloca_h
=no
13343 rm -f core conftest.err conftest.
$ac_objext \
13344 conftest
$ac_exeext conftest.
$ac_ext
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13347 $as_echo "$ac_cv_working_alloca_h" >&6; }
13348 if test $ac_cv_working_alloca_h = yes; then
13350 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13355 $as_echo_n "checking for alloca... " >&6; }
13356 if test "${ac_cv_func_alloca_works+set}" = set; then :
13357 $as_echo_n "(cached) " >&6
13359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13362 # define alloca __builtin_alloca
13365 # include <malloc.h>
13366 # define alloca _alloca
13368 # ifdef HAVE_ALLOCA_H
13369 # include <alloca.h>
13374 # ifndef alloca /* predefined by HP cc +Olibcalls */
13385 char *p = (char *) alloca (1);
13391 if ac_fn_c_try_link
"$LINENO"; then :
13392 ac_cv_func_alloca_works
=yes
13394 ac_cv_func_alloca_works
=no
13396 rm -f core conftest.err conftest.
$ac_objext \
13397 conftest
$ac_exeext conftest.
$ac_ext
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13400 $as_echo "$ac_cv_func_alloca_works" >&6; }
13402 if test $ac_cv_func_alloca_works = yes; then
13404 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13407 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13408 # that cause trouble. Some versions do not even contain alloca or
13409 # contain a buggy version. If you still want to use their alloca,
13410 # use ar to extract alloca.o from them instead of compiling alloca.c.
13412 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13414 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13418 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13419 if test "${ac_cv_os_cray+set}" = set; then :
13420 $as_echo_n "(cached) " >&6
13422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13423 /* end confdefs.h. */
13424 #if defined CRAY && ! defined CRAY2
13431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13432 $EGREP "webecray" >/dev
/null
2>&1; then :
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13441 $as_echo "$ac_cv_os_cray" >&6; }
13442 if test $ac_cv_os_cray = yes; then
13443 for ac_func
in _getb67 GETB67 getb67
; do
13444 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13445 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13446 eval as_val
=\$
$as_ac_var
13447 if test "x$as_val" = x
""yes; then :
13449 cat >>confdefs.h
<<_ACEOF
13450 #define CRAY_STACKSEG_END $ac_func
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13460 $as_echo_n "checking stack direction for C alloca... " >&6; }
13461 if test "${ac_cv_c_stack_direction+set}" = set; then :
13462 $as_echo_n "(cached) " >&6
13464 if test "$cross_compiling" = yes; then :
13465 ac_cv_c_stack_direction
=0
13467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h. */
13469 $ac_includes_default
13471 find_stack_direction ()
13473 static char *addr = 0;
13478 return find_stack_direction ();
13481 return (&dummy > addr) ? 1 : -1;
13487 return find_stack_direction () < 0;
13490 if ac_fn_c_try_run
"$LINENO"; then :
13491 ac_cv_c_stack_direction
=1
13493 ac_cv_c_stack_direction
=-1
13495 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13496 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13501 $as_echo "$ac_cv_c_stack_direction" >&6; }
13502 cat >>confdefs.h
<<_ACEOF
13503 #define STACK_DIRECTION $ac_cv_c_stack_direction
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13512 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13513 if test "${am_cv_langinfo_codeset+set}" = set; then :
13514 $as_echo_n "(cached) " >&6
13516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13517 /* end confdefs.h. */
13518 #include <langinfo.h>
13522 char* cs = nl_langinfo(CODESET);
13527 if ac_fn_c_try_link
"$LINENO"; then :
13528 am_cv_langinfo_codeset
=yes
13530 am_cv_langinfo_codeset
=no
13532 rm -f core conftest.err conftest.
$ac_objext \
13533 conftest
$ac_exeext conftest.
$ac_ext
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13537 $as_echo "$am_cv_langinfo_codeset" >&6; }
13538 if test $am_cv_langinfo_codeset = yes; then
13540 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13545 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h
13547 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13548 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13549 eval as_val
=\$
$as_ac_Header
13550 if test "x$as_val" = x
""yes; then :
13551 cat >>confdefs.h
<<_ACEOF
13552 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13560 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
13562 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13563 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13564 eval as_val
=\$
$as_ac_var
13565 if test "x$as_val" = x
""yes; then :
13566 cat >>confdefs.h
<<_ACEOF
13567 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13574 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13575 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
13581 cat >>confdefs.h
<<_ACEOF
13582 #define HAVE_DECL_STRERROR $ac_have_decl
13584 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13585 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
13591 cat >>confdefs.h
<<_ACEOF
13592 #define HAVE_DECL_STRSTR $ac_have_decl
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13597 $as_echo_n "checking for sigsetjmp... " >&6; }
13598 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
13599 $as_echo_n "(cached) " >&6
13601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13604 #include <setjmp.h>
13609 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13614 if ac_fn_c_try_compile
"$LINENO"; then :
13615 gdb_cv_func_sigsetjmp
=yes
13617 gdb_cv_func_sigsetjmp
=no
13619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13622 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13623 if test $gdb_cv_func_sigsetjmp = yes; then
13625 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13630 # Check the return and argument types of ptrace.
13633 for ac_header
in sys
/ptrace.h ptrace.h
13635 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13636 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13637 eval as_val
=\$
$as_ac_Header
13638 if test "x$as_val" = x
""yes; then :
13639 cat >>confdefs.h
<<_ACEOF
13640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13648 gdb_ptrace_headers
='
13649 #include <sys/types.h>
13650 #if HAVE_SYS_PTRACE_H
13651 # include <sys/ptrace.h>
13654 # include <unistd.h>
13657 # There is no point in checking if we don't have a prototype.
13658 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13660 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
13666 cat >>confdefs.h
<<_ACEOF
13667 #define HAVE_DECL_PTRACE $ac_have_decl
13669 if test $ac_have_decl = 1; then :
13673 : ${gdb_cv_func_ptrace_ret='int'}
13674 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13678 # Check return type. Varargs (used on GNU/Linux) conflict with the
13679 # empty argument list, so check for that explicitly.
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13681 $as_echo_n "checking return type of ptrace... " >&6; }
13682 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
13683 $as_echo_n "(cached) " >&6
13685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687 $gdb_ptrace_headers
13691 extern long ptrace (enum __ptrace_request, ...);
13696 if ac_fn_c_try_compile
"$LINENO"; then :
13697 gdb_cv_func_ptrace_ret
='long'
13699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h. */
13701 $gdb_ptrace_headers
13705 extern int ptrace ();
13710 if ac_fn_c_try_compile
"$LINENO"; then :
13711 gdb_cv_func_ptrace_ret
='int'
13713 gdb_cv_func_ptrace_ret
='long'
13715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13720 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13722 cat >>confdefs.h
<<_ACEOF
13723 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13726 # Check argument types.
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13728 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13729 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
13730 $as_echo_n "(cached) " >&6
13733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13735 $gdb_ptrace_headers
13739 extern long ptrace (enum __ptrace_request, ...);
13744 if ac_fn_c_try_compile
"$LINENO"; then :
13745 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
13748 for gdb_arg1
in 'int' 'long'; do
13749 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13750 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13751 for gdb_arg4
in 'int' 'long' 'void *'; do
13752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13754 $gdb_ptrace_headers
13759 extern $gdb_cv_func_ptrace_ret
13760 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13766 if ac_fn_c_try_compile
"$LINENO"; then :
13767 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13771 for gdb_arg5
in 'int *' 'int' 'long'; do
13772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13774 $gdb_ptrace_headers
13779 extern $gdb_cv_func_ptrace_ret
13780 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13786 if ac_fn_c_try_compile
"$LINENO"; then :
13788 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13797 # Provide a safe default value.
13798 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13804 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13805 ac_save_IFS
=$IFS; IFS
=','
13806 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13810 cat >>confdefs.h
<<_ACEOF
13811 #define PTRACE_TYPE_ARG1 $1
13815 cat >>confdefs.h
<<_ACEOF
13816 #define PTRACE_TYPE_ARG3 $3
13820 cat >>confdefs.h
<<_ACEOF
13821 #define PTRACE_TYPE_ARG4 $4
13824 if test -n "$5"; then
13826 cat >>confdefs.h
<<_ACEOF
13827 #define PTRACE_TYPE_ARG5 $5
13833 if test "$cross_compiling" = no
; then
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13835 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13836 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13837 $as_echo_n "(cached) " >&6
13839 if test "$cross_compiling" = yes; then :
13840 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
13842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13844 $ac_includes_default
13848 /* If this system has a BSD-style setpgrp which takes arguments,
13849 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13850 exit successfully. */
13851 return setpgrp (1,1) != -1;
13856 if ac_fn_c_try_run
"$LINENO"; then :
13857 ac_cv_func_setpgrp_void
=no
13859 ac_cv_func_setpgrp_void
=yes
13861 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13862 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13867 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13868 if test $ac_cv_func_setpgrp_void = yes; then
13870 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13876 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13877 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13878 $as_echo_n "(cached) " >&6
13880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13883 #include <unistd.h>
13889 if (setpgrp(1,1) == -1)
13898 if ac_fn_c_try_compile
"$LINENO"; then :
13899 ac_cv_func_setpgrp_void
=no
13901 ac_cv_func_setpgrp_void
=yes
13903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13906 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13907 if test $ac_cv_func_setpgrp_void = yes; then
13908 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13913 # Assume we'll default to using the included libiberty regex.
13914 gdb_use_included_regex
=yes
13916 # However, if the system regex is GNU regex, then default to *not*
13917 # using the included regex.
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13919 $as_echo_n "checking for GNU regex... " >&6; }
13920 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
13921 $as_echo_n "(cached) " >&6
13923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13925 #include <gnu-versions.h>
13929 #define REGEX_INTERFACE_VERSION 1
13930 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13931 # error "Version mismatch"
13937 if ac_fn_c_try_compile
"$LINENO"; then :
13938 gdb_cv_have_gnu_regex
=yes
13940 gdb_cv_have_gnu_regex
=no
13942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13945 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13946 if test $gdb_cv_have_gnu_regex = yes; then
13947 gdb_use_included_regex
=no
13951 # Check whether --with-included-regex was given.
13952 if test "${with_included_regex+set}" = set; then :
13953 withval
=$with_included_regex; gdb_with_regex
=$withval
13955 gdb_with_regex
=$gdb_use_included_regex
13958 if test "$gdb_with_regex" = yes; then
13960 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13964 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13965 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13966 #include <sys/proc.h>
13969 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
13971 cat >>confdefs.h
<<_ACEOF
13972 #define HAVE_STRUCT_THREAD_TD_PCB 1
13979 # See if <sys/lwp.h> defines `struct lwp`.
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13981 $as_echo_n "checking for struct lwp... " >&6; }
13982 if test "${gdb_cv_struct_lwp+set}" = set; then :
13983 $as_echo_n "(cached) " >&6
13985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13987 #include <sys/param.h>
13989 #include <sys/lwp.h>
13998 if ac_fn_c_try_compile
"$LINENO"; then :
13999 gdb_cv_struct_lwp
=yes
14001 gdb_cv_struct_lwp
=no
14003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14006 $as_echo "$gdb_cv_struct_lwp" >&6; }
14007 if test $gdb_cv_struct_lwp = yes; then
14009 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14013 # See if <machine/reg.h> degines `struct reg'.
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14015 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14016 if test "${gdb_cv_struct_reg+set}" = set; then :
14017 $as_echo_n "(cached) " >&6
14019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14020 /* end confdefs.h. */
14021 #include <sys/types.h>
14022 #include <machine/reg.h>
14031 if ac_fn_c_try_compile
"$LINENO"; then :
14032 gdb_cv_struct_reg
=yes
14034 gdb_cv_struct_reg
=no
14036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14039 $as_echo "$gdb_cv_struct_reg" >&6; }
14040 if test $gdb_cv_struct_reg = yes; then
14042 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14046 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14047 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14048 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14049 #include <machine/reg.h>
14051 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
14053 cat >>confdefs.h
<<_ACEOF
14054 #define HAVE_STRUCT_REG_R_FS 1
14059 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14060 #include <machine/reg.h>
14062 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
14064 cat >>confdefs.h
<<_ACEOF
14065 #define HAVE_STRUCT_REG_R_GS 1
14072 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14073 # Older amd64 Linux's don't have the fs_base and gs_base members of
14074 # `struct user_regs_struct'.
14075 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>
14077 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
14079 cat >>confdefs.h
<<_ACEOF
14080 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14085 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>
14087 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
14089 cat >>confdefs.h
<<_ACEOF
14090 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14097 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14099 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14100 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
14101 $as_echo_n "(cached) " >&6
14103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h. */
14105 #include <sys/ptrace.h>
14114 if ac_fn_c_try_compile
"$LINENO"; then :
14115 gdb_cv_have_ptrace_getregs
=yes
14117 gdb_cv_have_ptrace_getregs
=no
14119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14123 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14124 if test $gdb_cv_have_ptrace_getregs = yes; then
14126 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14130 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14132 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14133 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
14134 $as_echo_n "(cached) " >&6
14136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14137 /* end confdefs.h. */
14138 #include <sys/ptrace.h>
14147 if ac_fn_c_try_compile
"$LINENO"; then :
14148 gdb_cv_have_ptrace_getfpxregs
=yes
14150 gdb_cv_have_ptrace_getfpxregs
=no
14152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14156 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14157 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14159 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14163 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14165 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14166 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
14167 $as_echo_n "(cached) " >&6
14169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14171 #include <sys/types.h>
14172 #include <sys/ptrace.h>
14181 if ac_fn_c_try_compile
"$LINENO"; then :
14182 gdb_cv_have_pt_getdbregs
=yes
14184 gdb_cv_have_pt_getdbregs
=no
14186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14190 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14191 if test $gdb_cv_have_pt_getdbregs = yes; then
14193 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14197 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14199 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14200 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
14201 $as_echo_n "(cached) " >&6
14203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14205 #include <sys/types.h>
14206 #include <sys/ptrace.h>
14215 if ac_fn_c_try_compile
"$LINENO"; then :
14216 gdb_cv_have_pt_getxmmregs
=yes
14218 gdb_cv_have_pt_getxmmregs
=no
14220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14224 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14225 if test $gdb_cv_have_pt_getxmmregs = yes; then
14227 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14231 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14232 # Older FreeBSD versions don't have the pl_tdname member of
14233 # `struct ptrace_lwpinfo'.
14234 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14236 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = x
""yes; then :
14238 cat >>confdefs.h
<<_ACEOF
14239 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14246 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14247 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14249 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>
14251 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = x
""yes; then :
14253 cat >>confdefs.h
<<_ACEOF
14254 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14261 if test "$ac_cv_header_sys_procfs_h" = yes; then
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14263 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14264 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
14265 $as_echo_n "(cached) " >&6
14267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14271 /* Needed for new procfs interface on sparc-solaris. */
14272 #define _STRUCTURED_PROC 1
14273 #include <sys/procfs.h>
14282 if ac_fn_c_try_compile
"$LINENO"; then :
14283 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14285 bfd_cv_have_sys_procfs_type_gregset_t
=no
14288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14291 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14293 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14297 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14300 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14301 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
14302 $as_echo_n "(cached) " >&6
14304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14308 /* Needed for new procfs interface on sparc-solaris. */
14309 #define _STRUCTURED_PROC 1
14310 #include <sys/procfs.h>
14319 if ac_fn_c_try_compile
"$LINENO"; then :
14320 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14322 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14328 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14330 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14334 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14337 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14338 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
14339 $as_echo_n "(cached) " >&6
14341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14342 /* end confdefs.h. */
14345 /* Needed for new procfs interface on sparc-solaris. */
14346 #define _STRUCTURED_PROC 1
14347 #include <sys/procfs.h>
14356 if ac_fn_c_try_compile
"$LINENO"; then :
14357 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14359 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14365 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14367 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14371 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14374 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14375 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
14376 $as_echo_n "(cached) " >&6
14378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14382 /* Needed for new procfs interface on sparc-solaris. */
14383 #define _STRUCTURED_PROC 1
14384 #include <sys/procfs.h>
14393 if ac_fn_c_try_compile
"$LINENO"; then :
14394 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14396 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14402 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14404 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14408 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14411 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14412 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
14413 $as_echo_n "(cached) " >&6
14415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14419 /* Needed for new procfs interface on sparc-solaris. */
14420 #define _STRUCTURED_PROC 1
14421 #include <sys/procfs.h>
14430 if ac_fn_c_try_compile
"$LINENO"; then :
14431 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
14433 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
14436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14439 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14441 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14445 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14448 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14449 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
14450 $as_echo_n "(cached) " >&6
14452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14456 /* Needed for new procfs interface on sparc-solaris. */
14457 #define _STRUCTURED_PROC 1
14458 #include <sys/procfs.h>
14467 if ac_fn_c_try_compile
"$LINENO"; then :
14468 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14470 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14476 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14478 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14482 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14485 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14486 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
14487 $as_echo_n "(cached) " >&6
14489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14493 /* Needed for new procfs interface on sparc-solaris. */
14494 #define _STRUCTURED_PROC 1
14495 #include <sys/procfs.h>
14504 if ac_fn_c_try_compile
"$LINENO"; then :
14505 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14507 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14513 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14515 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14519 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14524 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
14526 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
14527 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
14528 $as_echo_n "(cached) " >&6
14530 if test "$cross_compiling" = yes; then :
14531 gdb_cv_prfpregset_t_broken
=yes
14533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h. */
14535 #include <sys/procfs.h>
14538 if (sizeof (prfpregset_t) == sizeof (void *))
14543 if ac_fn_c_try_run
"$LINENO"; then :
14544 gdb_cv_prfpregset_t_broken
=no
14546 gdb_cv_prfpregset_t_broken
=yes
14548 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14549 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14555 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14556 if test $gdb_cv_prfpregset_t_broken = yes; then
14558 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14564 # Check if the compiler supports the `long long' type.
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14567 $as_echo_n "checking for long long support in compiler... " >&6; }
14568 if test "${gdb_cv_c_long_long+set}" = set; then :
14569 $as_echo_n "(cached) " >&6
14571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h. */
14573 extern long long foo;
14577 switch (foo & 2) { case 0: return 1; }
14582 if ac_fn_c_try_compile
"$LINENO"; then :
14583 gdb_cv_c_long_long
=yes
14585 gdb_cv_c_long_long
=no
14587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14590 $as_echo "$gdb_cv_c_long_long" >&6; }
14591 if test $gdb_cv_c_long_long != yes; then
14592 # libdecnumber requires long long.
14593 as_fn_error
"Compiler must support long long for GDB." "$LINENO" 5
14596 # Check if the compiler and runtime support printing long longs.
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14599 $as_echo_n "checking for long long support in printf... " >&6; }
14600 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14601 $as_echo_n "(cached) " >&6
14603 if test "$cross_compiling" = yes; then :
14604 gdb_cv_printf_has_long_long
=no
14606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14608 $ac_includes_default
14614 l = (l << 16) + 0x0123;
14615 l = (l << 16) + 0x4567;
14616 l = (l << 16) + 0x89ab;
14617 l = (l << 16) + 0xcdef;
14618 sprintf (buf, "0x%016llx", l);
14619 return (strcmp ("0x0123456789abcdef", buf));
14624 if ac_fn_c_try_run
"$LINENO"; then :
14625 gdb_cv_printf_has_long_long
=yes
14627 gdb_cv_printf_has_long_long
=no
14629 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14630 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14635 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14636 if test $gdb_cv_printf_has_long_long = yes; then
14638 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14642 # Check if the compiler and runtime support printing decfloats.
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14645 $as_echo_n "checking for decfloat support in printf... " >&6; }
14646 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14647 $as_echo_n "(cached) " >&6
14649 if test "$cross_compiling" = yes; then :
14650 gdb_cv_printf_has_decfloat
=no
14652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h. */
14654 $ac_includes_default
14659 _Decimal32 d32 = 1.2345df;
14660 _Decimal64 d64 = 1.2345dd;
14661 _Decimal128 d128 = 1.2345dl;
14662 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14663 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14668 if ac_fn_c_try_run
"$LINENO"; then :
14669 gdb_cv_printf_has_decfloat
=yes
14671 gdb_cv_printf_has_decfloat
=no
14673 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14674 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14679 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14680 if test $gdb_cv_printf_has_decfloat = yes; then
14682 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14686 # Check if the compiler supports the `long double' type. We can't use
14687 # AC_C_LONG_DOUBLE because that one does additional checks on the
14688 # constants defined in <float.h> that fail on some systems,
14689 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14692 $as_echo_n "checking for long double support in compiler... " >&6; }
14693 if test "${gdb_cv_c_long_double+set}" = set; then :
14694 $as_echo_n "(cached) " >&6
14696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h. */
14700 if ac_fn_c_try_compile
"$LINENO"; then :
14701 gdb_cv_c_long_double
=yes
14703 gdb_cv_c_long_double
=no
14705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14708 $as_echo "$gdb_cv_c_long_double" >&6; }
14709 if test $gdb_cv_c_long_double = yes; then
14711 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14715 # Check if the compiler and runtime support printing long doubles.
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14718 $as_echo_n "checking for long double support in printf... " >&6; }
14719 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14720 $as_echo_n "(cached) " >&6
14722 if test "$cross_compiling" = yes; then :
14723 gdb_cv_printf_has_long_double
=no
14725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h. */
14727 $ac_includes_default
14732 long double f = 3.141592653;
14733 sprintf (buf, "%Lg", f);
14734 return (strncmp ("3.14159", buf, 7));
14739 if ac_fn_c_try_run
"$LINENO"; then :
14740 gdb_cv_printf_has_long_double
=yes
14742 gdb_cv_printf_has_long_double
=no
14744 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14745 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14750 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14751 if test $gdb_cv_printf_has_long_double = yes; then
14753 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14757 # Check if the compiler and runtime support scanning long doubles.
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14760 $as_echo_n "checking for long double support in scanf... " >&6; }
14761 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14762 $as_echo_n "(cached) " >&6
14764 if test "$cross_compiling" = yes; then :
14765 gdb_cv_scanf_has_long_double
=no
14767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14768 /* end confdefs.h. */
14773 char *buf = "3.141592653";
14775 sscanf (buf, "%Lg", &f);
14776 return !(f > 3.14159 && f < 3.14160);
14781 if ac_fn_c_try_run
"$LINENO"; then :
14782 gdb_cv_scanf_has_long_double
=yes
14784 gdb_cv_scanf_has_long_double
=no
14786 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14787 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14792 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14793 if test $gdb_cv_scanf_has_long_double = yes; then
14795 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14802 $as_echo_n "checking for -bbigtoc option... " >&6; }
14803 if test "${gdb_cv_bigtoc+set}" = set; then :
14804 $as_echo_n "(cached) " >&6
14807 SAVE_LDFLAGS
=$LDFLAGS
14810 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14811 *) gdb_cv_bigtoc
=-bbigtoc ;;
14814 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14826 if ac_fn_c_try_link
"$LINENO"; then :
14831 rm -f core conftest.err conftest.
$ac_objext \
14832 conftest
$ac_exeext conftest.
$ac_ext
14833 LDFLAGS
="${SAVE_LDFLAGS}"
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14837 $as_echo "$gdb_cv_bigtoc" >&6; }
14838 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14843 $as_echo_n "checking for the dynamic export flag... " >&6; }
14845 if test "${gdb_native}" = yes; then
14846 # The dynamically loaded libthread_db needs access to symbols in the gdb
14847 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14848 # may not be supported there.
14849 old_LDFLAGS
="$LDFLAGS"
14850 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14851 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14852 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14853 if test "${have_libpython}" = no
; then
14854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14865 if ac_fn_c_try_link
"$LINENO"; then :
14868 rm -f core conftest.err conftest.
$ac_objext \
14869 conftest
$ac_exeext conftest.
$ac_ext
14871 # Workaround http://bugs.python.org/issue4434 where static
14872 # libpythonX.Y.a would get its symbols required for
14873 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14874 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14876 # Note the workaround for Python
14877 # http://bugs.python.org/issue10112 earlier has removed
14878 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
14879 # here too, as otherwise it'd make this -Wl,--dynamic-list test
14881 old_CFLAGS
="$CFLAGS"
14882 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
14884 LIBS
="$LIBS $PYTHON_LIBS"
14885 old_CPPFLAGS
="$CPPFLAGS"
14886 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
14887 if test "$cross_compiling" = yes; then :
14890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14892 #include "Python.h"
14898 err = PyRun_SimpleString ("import itertools\n");
14900 return err == 0 ? 0 : 1;
14905 if ac_fn_c_try_run
"$LINENO"; then :
14908 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14909 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14913 CFLAGS
="$old_CFLAGS"
14914 CPPFLAGS
="$old_CPPFLAGS"
14916 LDFLAGS
="$old_LDFLAGS"
14918 if $dynamic_list; then
14919 found
="-Wl,--dynamic-list"
14920 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14923 RDYNAMIC
="-rdynamic"
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14927 $as_echo "$found" >&6; }
14930 if test ${build} = ${host} -a ${host} = ${target} ; then
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14934 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14935 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14936 $as_echo_n "(cached) " >&6
14938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14940 #include <sys/pthdebug.h>
14944 #ifndef PTHDB_VERSION_3
14951 if ac_fn_c_try_compile
"$LINENO"; then :
14952 gdb_cv_have_aix_thread_debug
=yes
14954 gdb_cv_have_aix_thread_debug
=no
14956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14960 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14961 if test $gdb_cv_have_aix_thread_debug = yes; then
14962 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
14963 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
14964 LIBS
="$LIBS -lpthdebug"
14966 # Older versions of AIX do not provide the declaration for
14967 # the getthrds function (it appears that it was introduced
14969 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14971 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
14977 cat >>confdefs.h
<<_ACEOF
14978 #define HAVE_DECL_GETTHRDS $ac_have_decl
14987 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14989 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14990 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14991 $as_echo_n "(cached) " >&6
14993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14995 #include <thread_db.h>
14999 int i = TD_NOTALLOC;
15004 if ac_fn_c_try_compile
"$LINENO"; then :
15005 gdb_cv_thread_db_h_has_td_notalloc
=yes
15007 gdb_cv_thread_db_h_has_td_notalloc
=no
15010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15014 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15016 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15017 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
15018 $as_echo_n "(cached) " >&6
15020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15022 #include <thread_db.h>
15026 int i = TD_VERSION;
15031 if ac_fn_c_try_compile
"$LINENO"; then :
15032 gdb_cv_thread_db_h_has_td_version
=yes
15034 gdb_cv_thread_db_h_has_td_version
=no
15037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15041 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15043 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15044 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
15045 $as_echo_n "(cached) " >&6
15047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15048 /* end confdefs.h. */
15049 #include <thread_db.h>
15058 if ac_fn_c_try_compile
"$LINENO"; then :
15059 gdb_cv_thread_db_h_has_td_notls
=yes
15061 gdb_cv_thread_db_h_has_td_notls
=no
15064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15068 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15070 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15072 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15075 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15077 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15080 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15082 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15086 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15088 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
15094 cat >>confdefs.h
<<_ACEOF
15095 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15099 if test "$cross_compiling" = yes; then :
15100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102 #include <sys/personality.h>
15107 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15108 # define ADDR_NO_RANDOMIZE 0x0040000
15110 /* Test the flag could be set and stays set. */
15111 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15112 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15118 if ac_fn_c_try_link
"$LINENO"; then :
15119 have_personality
=true
15121 have_personality
=false
15123 rm -f core conftest.err conftest.
$ac_objext \
15124 conftest
$ac_exeext conftest.
$ac_ext
15126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15127 /* end confdefs.h. */
15128 #include <sys/personality.h>
15133 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15134 # define ADDR_NO_RANDOMIZE 0x0040000
15136 /* Test the flag could be set and stays set. */
15137 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15138 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15144 if ac_fn_c_try_run
"$LINENO"; then :
15145 have_personality
=true
15147 have_personality
=false
15149 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15150 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15153 if $have_personality
15156 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15169 cat >>confdefs.h
<<_ACEOF
15170 #define GDBINIT "$gdbinit"
15175 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15176 # except that the argument to --with-sysroot is optional.
15177 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15178 if test "x$with_sysroot" = xyes
; then
15179 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
15182 # Check whether --with-sysroot was given.
15183 if test "${with_sysroot+set}" = set; then :
15184 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
15186 TARGET_SYSTEM_ROOT
=
15190 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15191 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15192 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
15193 ac_define_dir
=`eval echo $ac_define_dir`
15195 cat >>confdefs.h
<<_ACEOF
15196 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15202 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15203 if test "x$prefix" = xNONE
; then
15204 test_prefix
=/usr
/local
15206 test_prefix
=$prefix
15209 test_prefix
=$exec_prefix
15212 case ${ac_define_dir} in
15213 "${test_prefix}"|
"${test_prefix}/"*|\
15214 '${exec_prefix}'|
'${exec_prefix}/'*)
15219 cat >>confdefs.h
<<_ACEOF
15220 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15227 # Check whether --with-system-gdbinit was given.
15228 if test "${with_system_gdbinit+set}" = set; then :
15229 withval
=$with_system_gdbinit;
15230 SYSTEM_GDBINIT
=$withval
15236 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15237 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15238 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
15239 ac_define_dir
=`eval echo $ac_define_dir`
15241 cat >>confdefs.h
<<_ACEOF
15242 #define SYSTEM_GDBINIT "$ac_define_dir"
15248 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15249 if test "x$prefix" = xNONE
; then
15250 test_prefix
=/usr
/local
15252 test_prefix
=$prefix
15255 test_prefix
=$exec_prefix
15258 case ${ac_define_dir} in
15259 "${test_prefix}"|
"${test_prefix}/"*|\
15260 '${exec_prefix}'|
'${exec_prefix}/'*)
15265 cat >>confdefs.h
<<_ACEOF
15266 #define SYSTEM_GDBINIT_RELOCATABLE $value
15273 # Check whether --enable-werror was given.
15274 if test "${enable_werror+set}" = set; then :
15275 enableval
=$enable_werror; case "${enableval}" in
15276 yes | y
) ERROR_ON_WARNING
="yes" ;;
15277 no | n
) ERROR_ON_WARNING
="no" ;;
15278 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15283 # Enable -Werror by default when using gcc. Turn it off for releases.
15284 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15285 ERROR_ON_WARNING
=yes
15289 if test "${ERROR_ON_WARNING}" = yes ; then
15290 WERROR_CFLAGS
="-Werror"
15293 # The options we'll try to enable.
15294 build_warnings
="-Wall -Wpointer-arith \
15295 -Wno-unused -Wunused-value -Wunused-function \
15296 -Wno-switch -Wno-char-subscripts \
15297 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15298 -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \
15299 -Wno-mismatched-tags"
15303 # Enable -Wno-format by default when using gcc on mingw since many
15304 # GCC versions complain about %I64.
15305 build_warnings
="$build_warnings -Wno-format" ;;
15307 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15308 # doesn't understand.
15309 build_warnings
="$build_warnings -Wno-unknown-pragmas"
15310 # Solaris 11 <unistd.h> marks vfork deprecated.
15311 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
15312 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
15315 # Check whether --enable-build-warnings was given.
15316 if test "${enable_build_warnings+set}" = set; then :
15317 enableval
=$enable_build_warnings; case "${enableval}" in
15319 no
) build_warnings
="-w";;
15320 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15321 build_warnings
="${build_warnings} ${t}";;
15322 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15323 build_warnings
="${t} ${build_warnings}";;
15324 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15326 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15327 echo "Setting compiler warning flags = $build_warnings" 6>&1
15330 # Check whether --enable-gdb-build-warnings was given.
15331 if test "${enable_gdb_build_warnings+set}" = set; then :
15332 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15334 no
) build_warnings
="-w";;
15335 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15336 build_warnings
="${build_warnings} ${t}";;
15337 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15338 build_warnings
="${t} ${build_warnings}";;
15339 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15341 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15342 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15346 # The set of warnings supported by a C++ compiler is not the same as
15347 # of the C compiler.
15349 ac_cpp
='$CXXCPP $CPPFLAGS'
15350 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15351 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15352 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15356 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15359 $as_echo_n "checking compiler warning flags... " >&6; }
15360 # Separate out the -Werror flag as some files just cannot be
15361 # compiled with it enabled.
15362 for w
in ${build_warnings}; do
15363 # GCC does not complain about -Wno-unknown-warning. Invert
15364 # and test -Wunknown-warning instead.
15367 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
15373 -Werr*) WERROR_CFLAGS
=-Werror ;;
15375 # Check whether GCC accepts it.
15376 saved_CFLAGS
="$CFLAGS"
15377 CFLAGS
="$CFLAGS -Werror $wtest"
15378 saved_CXXFLAGS
="$CXXFLAGS"
15379 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
15380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15391 if ac_fn_cxx_try_compile
"$LINENO"; then :
15392 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15395 CFLAGS
="$saved_CFLAGS"
15396 CXXFLAGS
="$saved_CXXFLAGS"
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15400 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15406 ac_cpp='$CPP $CPPFLAGS'
15407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15413 # In the Cygwin environment, we need some additional flags.
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15415 $as_echo_n "checking
for cygwin...
" >&6; }
15416 if test "${gdb_cv_os_cygwin+set}" = set; then :
15417 $as_echo_n "(cached
) " >&6
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h. */
15422 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15426 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15427 $EGREP "^lose$
" >/dev/null 2>&1; then :
15428 gdb_cv_os_cygwin=yes
15430 gdb_cv_os_cygwin=no
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15436 $as_echo "$gdb_cv_os_cygwin" >&6; }
15439 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15441 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15442 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15443 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15447 # libreadline needs libuser32.a in a cygwin environment
15449 if test x$gdb_cv_os_cygwin = xyes; then
15450 WIN32LIBS="-luser32"
15451 case "${target}" in
15452 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15457 # The ser-tcp.c module requires sockets.
15461 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15463 WIN32LIBS
="$WIN32LIBS -lws2_32"
15468 # Add ELF support to GDB, but only if BFD includes ELF support.
15471 OLD_LDFLAGS
=$LDFLAGS
15473 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15474 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15475 # always want our bfd.
15476 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15477 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15478 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15479 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15480 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15482 $as_echo_n "checking for ELF support in BFD... " >&6; }
15483 if test "${gdb_cv_var_elf+set}" = set; then :
15484 $as_echo_n "(cached) " >&6
15486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15488 #include <stdlib.h>
15490 #include "elf-bfd.h"
15495 return bfd_get_elf_phdr_upper_bound (NULL);
15500 if ac_fn_c_try_link
"$LINENO"; then :
15505 rm -f core conftest.err conftest.
$ac_objext \
15506 conftest
$ac_exeext conftest.
$ac_ext
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15509 $as_echo "$gdb_cv_var_elf" >&6; }
15511 LDFLAGS
=$OLD_LDFLAGS
15513 if test $gdb_cv_var_elf = yes; then
15514 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15516 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15518 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15519 if test "$plugins" = "yes"; then
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15521 $as_echo_n "checking for library containing dlopen... " >&6; }
15522 if test "${ac_cv_search_dlopen+set}" = set; then :
15523 $as_echo_n "(cached) " >&6
15525 ac_func_search_save_LIBS
=$LIBS
15526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15527 /* end confdefs.h. */
15529 /* Override any GCC internal prototype to avoid an error.
15530 Use char because int might match the return type of a GCC
15531 builtin and then its argument prototype would still apply. */
15544 for ac_lib
in '' dl
; do
15545 if test -z "$ac_lib"; then
15546 ac_res
="none required"
15549 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15551 if ac_fn_c_try_link
"$LINENO"; then :
15552 ac_cv_search_dlopen
=$ac_res
15554 rm -f core conftest.err conftest.
$ac_objext \
15556 if test "${ac_cv_search_dlopen+set}" = set; then :
15560 if test "${ac_cv_search_dlopen+set}" = set; then :
15563 ac_cv_search_dlopen
=no
15565 rm conftest.
$ac_ext
15566 LIBS
=$ac_func_search_save_LIBS
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15569 $as_echo "$ac_cv_search_dlopen" >&6; }
15570 ac_res
=$ac_cv_search_dlopen
15571 if test "$ac_res" != no
; then :
15572 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15579 # Add macho support to GDB, but only if BFD includes it.
15582 OLD_LDFLAGS
=$LDFLAGS
15584 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15585 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15586 # always want our bfd.
15587 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15588 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15589 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15590 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15591 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15593 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15594 if test "${gdb_cv_var_macho+set}" = set; then :
15595 $as_echo_n "(cached) " >&6
15597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15598 /* end confdefs.h. */
15599 #include <stdlib.h>
15601 #include "mach-o.h"
15606 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15611 if ac_fn_c_try_link
"$LINENO"; then :
15612 gdb_cv_var_macho
=yes
15614 gdb_cv_var_macho
=no
15616 rm -f core conftest.err conftest.
$ac_objext \
15617 conftest
$ac_exeext conftest.
$ac_ext
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15620 $as_echo "$gdb_cv_var_macho" >&6; }
15622 LDFLAGS
=$OLD_LDFLAGS
15624 if test $gdb_cv_var_macho = yes; then
15625 CONFIG_OBS
="$CONFIG_OBS machoread.o"
15628 # Add any host-specific objects to GDB.
15629 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15631 # If building on ELF, look for lzma support for embedded compressed debug info.
15632 if test $gdb_cv_var_elf = yes; then
15634 # Check whether --with-lzma was given.
15635 if test "${with_lzma+set}" = set; then :
15636 withval
=$with_lzma;
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15642 $as_echo_n "checking whether to use lzma... " >&6; }
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15644 $as_echo "$with_lzma" >&6; }
15646 if test "${with_lzma}" != no
; then
15657 acl_save_prefix
="$prefix"
15658 prefix
="$acl_final_prefix"
15659 acl_save_exec_prefix
="$exec_prefix"
15660 exec_prefix
="$acl_final_exec_prefix"
15662 eval additional_includedir
=\"$includedir\"
15663 eval additional_libdir
=\"$libdir\"
15665 exec_prefix
="$acl_save_exec_prefix"
15666 prefix
="$acl_save_prefix"
15669 # Check whether --with-liblzma-prefix was given.
15670 if test "${with_liblzma_prefix+set}" = set; then :
15671 withval
=$with_liblzma_prefix;
15672 if test "X$withval" = "Xno"; then
15675 if test "X$withval" = "X"; then
15677 acl_save_prefix
="$prefix"
15678 prefix
="$acl_final_prefix"
15679 acl_save_exec_prefix
="$exec_prefix"
15680 exec_prefix
="$acl_final_exec_prefix"
15682 eval additional_includedir
=\"$includedir\"
15683 eval additional_libdir
=\"$libdir\"
15685 exec_prefix
="$acl_save_exec_prefix"
15686 prefix
="$acl_save_prefix"
15689 additional_includedir
="$withval/include"
15690 additional_libdir
="$withval/lib"
15701 names_already_handled
=
15702 names_next_round
='lzma '
15703 while test -n "$names_next_round"; do
15704 names_this_round
="$names_next_round"
15706 for name
in $names_this_round; do
15708 for n
in $names_already_handled; do
15709 if test "$n" = "$name"; then
15710 already_handled
=yes
15714 if test -z "$already_handled"; then
15715 names_already_handled
="$names_already_handled $name"
15716 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15717 eval value
=\"\
$HAVE_LIB$uppername\"
15718 if test -n "$value"; then
15719 if test "$value" = yes; then
15720 eval value
=\"\
$LIB$uppername\"
15721 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
15722 eval value
=\"\
$LTLIB$uppername\"
15723 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15732 if test $use_additional = yes; then
15733 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15734 found_dir
="$additional_libdir"
15735 found_so
="$additional_libdir/lib$name.$shlibext"
15736 if test -f "$additional_libdir/lib$name.la"; then
15737 found_la
="$additional_libdir/lib$name.la"
15740 if test -f "$additional_libdir/lib$name.$libext"; then
15741 found_dir
="$additional_libdir"
15742 found_a
="$additional_libdir/lib$name.$libext"
15743 if test -f "$additional_libdir/lib$name.la"; then
15744 found_la
="$additional_libdir/lib$name.la"
15749 if test "X$found_dir" = "X"; then
15750 for x
in $LDFLAGS $LTLIBLZMA; do
15752 acl_save_prefix
="$prefix"
15753 prefix
="$acl_final_prefix"
15754 acl_save_exec_prefix
="$exec_prefix"
15755 exec_prefix
="$acl_final_exec_prefix"
15757 exec_prefix
="$acl_save_exec_prefix"
15758 prefix
="$acl_save_prefix"
15762 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15763 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15765 found_so
="$dir/lib$name.$shlibext"
15766 if test -f "$dir/lib$name.la"; then
15767 found_la
="$dir/lib$name.la"
15770 if test -f "$dir/lib$name.$libext"; then
15772 found_a
="$dir/lib$name.$libext"
15773 if test -f "$dir/lib$name.la"; then
15774 found_la
="$dir/lib$name.la"
15780 if test "X$found_dir" != "X"; then
15785 if test "X$found_dir" != "X"; then
15786 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
15787 if test "X$found_so" != "X"; then
15788 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15789 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15792 for x
in $ltrpathdirs; do
15793 if test "X$x" = "X$found_dir"; then
15798 if test -z "$haveit"; then
15799 ltrpathdirs
="$ltrpathdirs $found_dir"
15801 if test "$hardcode_direct" = yes; then
15802 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15804 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15805 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15807 for x
in $rpathdirs; do
15808 if test "X$x" = "X$found_dir"; then
15813 if test -z "$haveit"; then
15814 rpathdirs
="$rpathdirs $found_dir"
15818 for x
in $LDFLAGS $LIBLZMA; do
15820 acl_save_prefix
="$prefix"
15821 prefix
="$acl_final_prefix"
15822 acl_save_exec_prefix
="$exec_prefix"
15823 exec_prefix
="$acl_final_exec_prefix"
15825 exec_prefix
="$acl_save_exec_prefix"
15826 prefix
="$acl_save_prefix"
15828 if test "X$x" = "X-L$found_dir"; then
15833 if test -z "$haveit"; then
15834 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
15836 if test "$hardcode_minus_L" != no
; then
15837 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15839 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
15845 if test "X$found_a" != "X"; then
15846 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
15848 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
15851 additional_includedir
=
15852 case "$found_dir" in
15854 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15855 additional_includedir
="$basedir/include"
15858 if test "X$additional_includedir" != "X"; then
15859 if test "X$additional_includedir" != "X/usr/include"; then
15861 if test "X$additional_includedir" = "X/usr/local/include"; then
15862 if test -n "$GCC"; then
15864 linux
*) haveit
=yes;;
15868 if test -z "$haveit"; then
15869 for x
in $CPPFLAGS $INCLZMA; do
15871 acl_save_prefix
="$prefix"
15872 prefix
="$acl_final_prefix"
15873 acl_save_exec_prefix
="$exec_prefix"
15874 exec_prefix
="$acl_final_exec_prefix"
15876 exec_prefix
="$acl_save_exec_prefix"
15877 prefix
="$acl_save_prefix"
15879 if test "X$x" = "X-I$additional_includedir"; then
15884 if test -z "$haveit"; then
15885 if test -d "$additional_includedir"; then
15886 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
15892 if test -n "$found_la"; then
15893 save_libdir
="$libdir"
15894 case "$found_la" in
15895 */* |
*\\*) .
"$found_la" ;;
15896 *) .
"./$found_la" ;;
15898 libdir
="$save_libdir"
15899 for dep
in $dependency_libs; do
15902 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15903 if test "X$additional_libdir" != "X/usr/lib"; then
15905 if test "X$additional_libdir" = "X/usr/local/lib"; then
15906 if test -n "$GCC"; then
15908 linux
*) haveit
=yes;;
15912 if test -z "$haveit"; then
15914 for x
in $LDFLAGS $LIBLZMA; do
15916 acl_save_prefix
="$prefix"
15917 prefix
="$acl_final_prefix"
15918 acl_save_exec_prefix
="$exec_prefix"
15919 exec_prefix
="$acl_final_exec_prefix"
15921 exec_prefix
="$acl_save_exec_prefix"
15922 prefix
="$acl_save_prefix"
15924 if test "X$x" = "X-L$additional_libdir"; then
15929 if test -z "$haveit"; then
15930 if test -d "$additional_libdir"; then
15931 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
15935 for x
in $LDFLAGS $LTLIBLZMA; do
15937 acl_save_prefix
="$prefix"
15938 prefix
="$acl_final_prefix"
15939 acl_save_exec_prefix
="$exec_prefix"
15940 exec_prefix
="$acl_final_exec_prefix"
15942 exec_prefix
="$acl_save_exec_prefix"
15943 prefix
="$acl_save_prefix"
15945 if test "X$x" = "X-L$additional_libdir"; then
15950 if test -z "$haveit"; then
15951 if test -d "$additional_libdir"; then
15952 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
15959 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15960 if test "$enable_rpath" != no
; then
15962 for x
in $rpathdirs; do
15963 if test "X$x" = "X$dir"; then
15968 if test -z "$haveit"; then
15969 rpathdirs
="$rpathdirs $dir"
15972 for x
in $ltrpathdirs; do
15973 if test "X$x" = "X$dir"; then
15978 if test -z "$haveit"; then
15979 ltrpathdirs
="$ltrpathdirs $dir"
15984 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15987 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15990 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
15991 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
15997 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
15998 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16004 if test "X$rpathdirs" != "X"; then
16005 if test -n "$hardcode_libdir_separator"; then
16007 for found_dir
in $rpathdirs; do
16008 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16010 acl_save_libdir
="$libdir"
16012 eval flag
=\"$hardcode_libdir_flag_spec\"
16013 libdir
="$acl_save_libdir"
16014 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16016 for found_dir
in $rpathdirs; do
16017 acl_save_libdir
="$libdir"
16018 libdir
="$found_dir"
16019 eval flag
=\"$hardcode_libdir_flag_spec\"
16020 libdir
="$acl_save_libdir"
16021 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16025 if test "X$ltrpathdirs" != "X"; then
16026 for found_dir
in $ltrpathdirs; do
16027 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16032 ac_save_CPPFLAGS
="$CPPFLAGS"
16034 for element
in $INCLZMA; do
16036 for x
in $CPPFLAGS; do
16038 acl_save_prefix
="$prefix"
16039 prefix
="$acl_final_prefix"
16040 acl_save_exec_prefix
="$exec_prefix"
16041 exec_prefix
="$acl_final_exec_prefix"
16043 exec_prefix
="$acl_save_exec_prefix"
16044 prefix
="$acl_save_prefix"
16046 if test "X$x" = "X$element"; then
16051 if test -z "$haveit"; then
16052 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16058 $as_echo_n "checking for liblzma... " >&6; }
16059 if test "${ac_cv_liblzma+set}" = set; then :
16060 $as_echo_n "(cached) " >&6
16063 ac_save_LIBS
="$LIBS"
16064 LIBS
="$LIBS $LIBLZMA"
16065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16066 /* end confdefs.h. */
16071 lzma_index_iter iter;
16072 lzma_index_iter_init (&iter, 0);
16073 lzma_mf_is_supported (LZMA_MF_HC3);
16078 if ac_fn_c_try_link
"$LINENO"; then :
16083 rm -f core conftest.err conftest.
$ac_objext \
16084 conftest
$ac_exeext conftest.
$ac_ext
16085 LIBS
="$ac_save_LIBS"
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16089 $as_echo "$ac_cv_liblzma" >&6; }
16090 if test "$ac_cv_liblzma" = yes; then
16093 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16096 $as_echo_n "checking how to link with liblzma... " >&6; }
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16098 $as_echo "$LIBLZMA" >&6; }
16101 CPPFLAGS
="$ac_save_CPPFLAGS"
16111 if test "$HAVE_LIBLZMA" != yes; then
16112 if test "$with_lzma" = yes; then
16113 as_fn_error
"missing liblzma for --with-lzma" "$LINENO" 5
16119 LIBGUI
="../libgui/src/libgui.a"
16120 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
16129 *-*-cygwin* |
*-*-mingw* )
16138 if test "${enable_gdbtk}" = "yes"; then
16140 # Gdbtk must have an absolute path to srcdir in order to run
16141 # properly when not installed.
16144 GDBTK_SRC_DIR
=`pwd`
16149 # Ok, lets find the tcl configuration
16150 # First, look for one uninstalled.
16151 # the alternative search directory is invoked by --with-tcl
16154 if test x
"${no_tcl}" = x
; then
16155 # we reset no_tcl in case something fails here
16158 # Check whether --with-tcl was given.
16159 if test "${with_tcl+set}" = set; then :
16160 withval
=$with_tcl; with_tclconfig
=${withval}
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16164 $as_echo_n "checking for Tcl configuration... " >&6; }
16165 if test "${ac_cv_c_tclconfig+set}" = set; then :
16166 $as_echo_n "(cached) " >&6
16170 # First check to see if --with-tcl was specified.
16172 *-*-cygwin*) platDir
="win" ;;
16173 *) platDir
="unix" ;;
16175 if test x
"${with_tclconfig}" != x
; then
16176 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16177 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
16179 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16183 # then check for a private Tcl installation
16184 if test x
"${ac_cv_c_tclconfig}" = x
; then
16187 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16188 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16189 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16191 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16192 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16193 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16195 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16196 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16197 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16198 if test -f "$i/$platDir/tclConfig.sh" ; then
16199 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16205 # on Darwin, check in Framework installation locations
16206 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
16207 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16208 `ls -d /Library/Frameworks 2>/dev/null` \
16209 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16210 `ls -d /System/Library/Frameworks 2>/dev/null` \
16212 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16213 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
16219 # check in a few common install locations
16220 if test x
"${ac_cv_c_tclconfig}" = x
; then
16221 for i
in `ls -d ${libdir} 2>/dev/null` \
16222 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16223 `ls -d ${prefix}/lib 2>/dev/null` \
16224 `ls -d /usr/local/lib 2>/dev/null` \
16225 `ls -d /usr/contrib/lib 2>/dev/null` \
16226 `ls -d /usr/lib 2>/dev/null` \
16228 if test -f "$i/tclConfig.sh" ; then
16229 ac_cv_c_tclconfig
=`(cd $i; pwd)`
16235 # check in a few other private locations
16236 if test x
"${ac_cv_c_tclconfig}" = x
; then
16239 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16240 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16241 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16242 if test -f "$i/$platDir/tclConfig.sh" ; then
16243 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16252 if test x
"${ac_cv_c_tclconfig}" = x
; then
16253 TCL_BIN_DIR
="# no Tcl configs found"
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16255 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16258 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16260 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16265 # If $no_tk is nonempty, then we can't do Tk, and there is no
16266 # point to doing Tcl.
16269 # Ok, lets find the tk configuration
16270 # First, look for one uninstalled.
16271 # the alternative search directory is invoked by --with-tk
16274 if test x
"${no_tk}" = x
; then
16275 # we reset no_tk in case something fails here
16278 # Check whether --with-tk was given.
16279 if test "${with_tk+set}" = set; then :
16280 withval
=$with_tk; with_tkconfig
=${withval}
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16284 $as_echo_n "checking for Tk configuration... " >&6; }
16285 if test "${ac_cv_c_tkconfig+set}" = set; then :
16286 $as_echo_n "(cached) " >&6
16290 # First check to see if --with-tkconfig was specified.
16291 if test x
"${with_tkconfig}" != x
; then
16292 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16293 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
16295 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16299 # then check for a private Tk library
16301 *-*-cygwin*) platDir
="win" ;;
16302 *) platDir
="unix" ;;
16304 if test x
"${ac_cv_c_tkconfig}" = x
; then
16307 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16308 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16309 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16311 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16312 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16313 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16315 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16316 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16317 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16318 if test -f "$i/$platDir/tkConfig.sh" ; then
16319 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16325 # on Darwin, check in Framework installation locations
16326 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16327 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16328 `ls -d /Library/Frameworks 2>/dev/null` \
16329 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16330 `ls -d /System/Library/Frameworks 2>/dev/null` \
16332 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16333 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16339 # check in a few common install locations
16340 if test x
"${ac_cv_c_tkconfig}" = x
; then
16341 for i
in `ls -d ${libdir} 2>/dev/null` \
16342 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16343 `ls -d ${prefix}/lib 2>/dev/null` \
16344 `ls -d /usr/local/lib 2>/dev/null` \
16345 `ls -d /usr/contrib/lib 2>/dev/null` \
16346 `ls -d /usr/lib 2>/dev/null` \
16348 if test -f "$i/tkConfig.sh" ; then
16349 ac_cv_c_tkconfig
=`(cd $i; pwd)`
16354 # check in a few other private locations
16355 if test x
"${ac_cv_c_tkconfig}" = x
; then
16358 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16359 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16360 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16361 if test -f "$i/$platDir/tkConfig.sh" ; then
16362 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16371 if test x
"${ac_cv_c_tkconfig}" = x
; then
16372 TK_BIN_DIR
="# no Tk configs found"
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16374 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16377 TK_BIN_DIR
=${ac_cv_c_tkconfig}
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16379 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16384 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16387 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16389 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16391 $as_echo "loading" >&6; }
16392 .
${TCL_BIN_DIR}/tclConfig.sh
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16395 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16398 # eval is required to do the TCL_DBGX substitution
16399 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16400 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16402 # If the TCL_BIN_DIR is the build directory (not the install directory),
16403 # then set the common variable name to the value of the build variables.
16404 # For example, the variable TCL_LIB_SPEC will be set to the value
16405 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16406 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16407 # installed and uninstalled version of Tcl.
16408 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16409 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
16410 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
16411 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
16412 elif test "`uname -s`" = "Darwin"; then
16413 # If Tcl was built as a framework, attempt to use the libraries
16414 # from the framework at the given location so that linking works
16415 # against Tcl.framework installed in an arbitrary location.
16416 case ${TCL_DEFS} in
16418 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16419 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
16420 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16421 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16422 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16427 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16428 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16429 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16435 # eval is required to do the TCL_DBGX substitution
16436 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16437 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16438 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16439 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16455 # Check for in-tree tcl
16462 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16466 # Find Tcl private headers
16467 if test x
"${intree}" = xno
; then
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16470 $as_echo_n "checking for Tcl private headers... " >&6; }
16472 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16473 if test -f ${dir}/tclInt.h
; then
16477 if test x
"${private_dir}" = x
; then
16478 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
16480 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16482 $as_echo "${private_dir}" >&6; }
16485 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16486 TCL_LIBRARY
="${TCL_LIB_SPEC}"
16489 # If building tcl in the same src tree, private headers
16490 # are not needed, but we need to be sure to use the right
16492 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
16493 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
16494 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16502 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16504 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16506 $as_echo "loading" >&6; }
16507 .
${TK_BIN_DIR}/tkConfig.sh
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16510 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16513 # eval is required to do the TK_DBGX substitution
16514 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16515 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16517 # If the TK_BIN_DIR is the build directory (not the install directory),
16518 # then set the common variable name to the value of the build variables.
16519 # For example, the variable TK_LIB_SPEC will be set to the value
16520 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16521 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16522 # installed and uninstalled version of Tcl.
16523 if test -f "${TK_BIN_DIR}/Makefile" ; then
16524 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
16525 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
16526 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
16527 elif test "`uname -s`" = "Darwin"; then
16528 # If Tk was built as a framework, attempt to use the libraries
16529 # from the framework at the given location so that linking works
16530 # against Tk.framework installed in an arbitrary location.
16533 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16534 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
16535 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16536 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16537 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16542 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16543 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16544 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16550 # eval is required to do the TK_DBGX substitution
16551 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16552 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16553 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16554 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16569 # Check for in-tree Tk
16571 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16575 # Find Tk private headers
16576 if test x
"${intree}" = xno
; then
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16579 $as_echo_n "checking for Tk private headers... " >&6; }
16581 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16582 if test -f ${dir}/tkInt.h
; then
16586 if test x
"${private_dir}" = x
; then
16587 as_fn_error
"could not find Tk private headers" "$LINENO" 5
16589 TK_PRIVATE_INCLUDE
="-I${private_dir}"
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16591 $as_echo "${private_dir}" >&6; }
16594 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16595 TK_LIBRARY
=${TK_LIB_SPEC}
16598 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
16599 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
16600 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
16607 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16609 # Include some libraries that Tcl and Tk want.
16610 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16611 # Yes, the ordering seems wrong here. But it isn't.
16612 # TK_LIBS is the list of libraries that need to be linked
16613 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16614 # were in LIBS then any link tests after this point would
16615 # try to include things like `$(LIBGUI)', which wouldn't work.
16616 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
16618 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16619 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16620 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16621 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
16622 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
16623 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
16624 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
16626 if test x
$gdb_cv_os_cygwin = xyes
; then
16627 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16628 WIN32LDAPP
="-Wl,--subsystem,console"
16629 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
16632 subdirs
="$subdirs gdbtk"
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16645 $as_echo_n "checking for X... " >&6; }
16648 # Check whether --with-x was given.
16649 if test "${with_x+set}" = set; then :
16653 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16654 if test "x$with_x" = xno
; then
16655 # The user explicitly disabled X.
16658 case $x_includes,$x_libraries in #(
16659 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
16660 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
16661 $as_echo_n "(cached) " >&6
16663 # One or both of the vars are not set, and there is no cached value.
16664 ac_x_includes
=no ac_x_libraries
=no
16665 rm -f -r conftest.dir
16666 if mkdir conftest.dir
; then
16668 cat >Imakefile
<<'_ACEOF'
16670 @echo incroot='${INCROOT}'
16672 @echo usrlibdir='${USRLIBDIR}'
16674 @echo libdir='${LIBDIR}'
16676 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
16677 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16678 for ac_var
in incroot usrlibdir libdir
; do
16679 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16681 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16682 for ac_extension
in a so sl dylib la dll
; do
16683 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16684 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16685 ac_im_usrlibdir
=$ac_im_libdir; break
16688 # Screen out bogus values from the imake configuration. They are
16689 # bogus both because they are the default anyway, and because
16690 # using them would break gcc on systems where it needs fixed includes.
16691 case $ac_im_incroot in
16692 /usr
/include
) ac_x_includes
= ;;
16693 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
16695 case $ac_im_usrlibdir in
16696 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
16697 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
16701 rm -f -r conftest.dir
16704 # Standard set of common directories for X headers.
16705 # Check X11 before X11Rn because it is often a symlink to the current release.
16719 /usr/local/X11/include
16720 /usr/local/X11R7/include
16721 /usr/local/X11R6/include
16722 /usr/local/X11R5/include
16723 /usr/local/X11R4/include
16725 /usr/local/include/X11
16726 /usr/local/include/X11R7
16727 /usr/local/include/X11R6
16728 /usr/local/include/X11R5
16729 /usr/local/include/X11R4
16733 /usr/XFree86/include/X11
16737 /usr/unsupported/include
16738 /usr/athena/include
16739 /usr/local/x11r5/include
16740 /usr/lpp/Xamples/include
16742 /usr/openwin/include
16743 /usr/openwin/share/include'
16745 if test "$ac_x_includes" = no
; then
16746 # Guess where to find include files, by looking for Xlib.h.
16747 # First, try using that file with no special directory specified.
16748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16749 /* end confdefs.h. */
16750 #include <X11/Xlib.h>
16752 if ac_fn_c_try_cpp
"$LINENO"; then :
16753 # We can compile using X headers with no special include directory.
16756 for ac_dir
in $ac_x_header_dirs; do
16757 if test -r "$ac_dir/X11/Xlib.h"; then
16758 ac_x_includes
=$ac_dir
16763 rm -f conftest.err conftest.
$ac_ext
16764 fi # $ac_x_includes = no
16766 if test "$ac_x_libraries" = no
; then
16767 # Check for the libraries.
16768 # See if we find them without any special options.
16769 # Don't add to $LIBS permanently.
16772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16773 /* end confdefs.h. */
16774 #include <X11/Xlib.h>
16783 if ac_fn_c_try_link
"$LINENO"; then :
16785 # We can link X programs with no special library path.
16789 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16791 # Don't even attempt the hair of trying to link an X program!
16792 for ac_extension
in a so sl dylib la dll
; do
16793 if test -r "$ac_dir/libX11.$ac_extension"; then
16794 ac_x_libraries
=$ac_dir
16800 rm -f core conftest.err conftest.
$ac_objext \
16801 conftest
$ac_exeext conftest.
$ac_ext
16802 fi # $ac_x_libraries = no
16804 case $ac_x_includes,$ac_x_libraries in #(
16805 no
,* |
*,no |
*\'*)
16806 # Didn't find X, or a directory has "'" in its name.
16807 ac_cv_have_x
="have_x=no";; #(
16809 # Record where we found X for the cache.
16810 ac_cv_have_x
="have_x=yes\
16811 ac_x_includes='$ac_x_includes'\
16812 ac_x_libraries='$ac_x_libraries'"
16818 eval "$ac_cv_have_x"
16821 if test "$have_x" != yes; then
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16823 $as_echo "$have_x" >&6; }
16826 # If each of the values was on the command line, it overrides each guess.
16827 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
16828 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
16829 # Update the cache value to reflect the command line values.
16830 ac_cv_have_x
="have_x=yes\
16831 ac_x_includes='$x_includes'\
16832 ac_x_libraries='$x_libraries'"
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16834 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16838 # Unlike the sim directory, whether a simulator is linked is controlled by
16839 # presence of a gdb_sim definition in the target configure.tgt entry.
16840 # This code just checks for a few cases where we'd like to ignore those
16841 # definitions, even when they're present in the '.mt' file. These cases
16842 # are when --disable-sim is specified, or if the simulator directory is
16843 # not part of the source tree.
16845 # Check whether --enable-sim was given.
16846 if test "${enable_sim+set}" = set; then :
16847 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
16848 echo "enableval = ${enableval}";
16849 case "${enableval}" in
16850 yes) ignore_sim
=false
;;
16851 no
) ignore_sim
=true
;;
16852 *) ignore_sim
=false
;;
16859 if test ! -d "${srcdir}/../sim"; then
16865 if test "${ignore_sim}" = "false"; then
16866 if test x
"${gdb_sim}" != x
; then
16868 SIM_OBS
="remote-sim.o"
16870 $as_echo "#define WITH_SIM 1" >>confdefs.h
16873 # Some tdep code should only be compiled in when the ppc sim is
16874 # built. PR sim/13418.
16878 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
16898 # List of host floatformats.
16900 cat >>confdefs.h
<<_ACEOF
16901 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
16905 cat >>confdefs.h
<<_ACEOF
16906 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
16910 cat >>confdefs.h
<<_ACEOF
16911 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
16915 # target_subdir is used by the testsuite to find the target libraries.
16917 if test "${host}" != "${target}"; then
16918 target_subdir
="${target_alias}/"
16922 # Import nat definitions.
16923 nat_makefile_frag
=/dev
/null
16924 if test "${gdb_native}" = "yes"; then
16925 .
${srcdir}/configure.nat
16926 nativefile
=$NAT_FILE
16939 if test x
"${gdb_osabi}" != x
; then
16941 cat >>confdefs.h
<<_ACEOF
16942 #define GDB_OSABI_DEFAULT $gdb_osabi
16947 # Enable multi-ice-gdb-server.
16948 # Check whether --enable-multi-ice was given.
16949 if test "${enable_multi_ice+set}" = set; then :
16950 enableval
=$enable_multi_ice; case $enableval in
16953 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
16957 if test "x$enable_multi_ice" = xyes
; then
16958 subdirs
="$subdirs multi-ice"
16962 # Check whether --enable-gdbserver was given.
16963 if test "${enable_gdbserver+set}" = set; then :
16964 enableval
=$enable_gdbserver; case "${enableval}" in
16966 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
16969 enable_gdbserver
=auto
16973 # We only build gdbserver automatically in a native configuration, and
16974 # only if the user did not explicitly disable its build.
16975 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
16977 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
16978 if test "x$build_gdbserver" = xyes
; then
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16980 $as_echo "yes" >&6; }
16981 subdirs
="$subdirs gdbserver"
16983 gdbserver_build_enabled
=yes
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16986 $as_echo "no" >&6; }
16990 # If the user explicitly request the gdbserver to be built, verify that
16991 # we were in fact able to enable it.
16992 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
16993 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
16996 # Check for babeltrace and babeltrace-ctf
16998 # Check whether --with-babeltrace was given.
16999 if test "${with_babeltrace+set}" = set; then :
17000 withval
=$with_babeltrace;
17002 with_babeltrace
=auto
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17006 $as_echo_n "checking whether to use babeltrace... " >&6; }
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17008 $as_echo "$with_babeltrace" >&6; }
17010 if test "x$with_babeltrace" = "xno"; then
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17012 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17014 # Append -Werror to CFLAGS so that configure can catch the warning
17015 # "assignment from incompatible pointer type", which is related to
17016 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17017 # in GDB, while babeltrace 1.0.3 is broken.
17018 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17019 # safe to save and restore CFLAGS here.
17020 saved_CFLAGS
=$CFLAGS
17021 CFLAGS
="$CFLAGS -Werror"
17032 acl_save_prefix
="$prefix"
17033 prefix
="$acl_final_prefix"
17034 acl_save_exec_prefix
="$exec_prefix"
17035 exec_prefix
="$acl_final_exec_prefix"
17037 eval additional_includedir
=\"$includedir\"
17038 eval additional_libdir
=\"$libdir\"
17040 exec_prefix
="$acl_save_exec_prefix"
17041 prefix
="$acl_save_prefix"
17044 # Check whether --with-libbabeltrace-prefix was given.
17045 if test "${with_libbabeltrace_prefix+set}" = set; then :
17046 withval
=$with_libbabeltrace_prefix;
17047 if test "X$withval" = "Xno"; then
17050 if test "X$withval" = "X"; then
17052 acl_save_prefix
="$prefix"
17053 prefix
="$acl_final_prefix"
17054 acl_save_exec_prefix
="$exec_prefix"
17055 exec_prefix
="$acl_final_exec_prefix"
17057 eval additional_includedir
=\"$includedir\"
17058 eval additional_libdir
=\"$libdir\"
17060 exec_prefix
="$acl_save_exec_prefix"
17061 prefix
="$acl_save_prefix"
17064 additional_includedir
="$withval/include"
17065 additional_libdir
="$withval/lib"
17076 names_already_handled
=
17077 names_next_round
='babeltrace babeltrace-ctf'
17078 while test -n "$names_next_round"; do
17079 names_this_round
="$names_next_round"
17081 for name
in $names_this_round; do
17083 for n
in $names_already_handled; do
17084 if test "$n" = "$name"; then
17085 already_handled
=yes
17089 if test -z "$already_handled"; then
17090 names_already_handled
="$names_already_handled $name"
17091 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17092 eval value
=\"\
$HAVE_LIB$uppername\"
17093 if test -n "$value"; then
17094 if test "$value" = yes; then
17095 eval value
=\"\
$LIB$uppername\"
17096 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17097 eval value
=\"\
$LTLIB$uppername\"
17098 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17107 if test $use_additional = yes; then
17108 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17109 found_dir
="$additional_libdir"
17110 found_so
="$additional_libdir/lib$name.$shlibext"
17111 if test -f "$additional_libdir/lib$name.la"; then
17112 found_la
="$additional_libdir/lib$name.la"
17115 if test -f "$additional_libdir/lib$name.$libext"; then
17116 found_dir
="$additional_libdir"
17117 found_a
="$additional_libdir/lib$name.$libext"
17118 if test -f "$additional_libdir/lib$name.la"; then
17119 found_la
="$additional_libdir/lib$name.la"
17124 if test "X$found_dir" = "X"; then
17125 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17127 acl_save_prefix
="$prefix"
17128 prefix
="$acl_final_prefix"
17129 acl_save_exec_prefix
="$exec_prefix"
17130 exec_prefix
="$acl_final_exec_prefix"
17132 exec_prefix
="$acl_save_exec_prefix"
17133 prefix
="$acl_save_prefix"
17137 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17138 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17140 found_so
="$dir/lib$name.$shlibext"
17141 if test -f "$dir/lib$name.la"; then
17142 found_la
="$dir/lib$name.la"
17145 if test -f "$dir/lib$name.$libext"; then
17147 found_a
="$dir/lib$name.$libext"
17148 if test -f "$dir/lib$name.la"; then
17149 found_la
="$dir/lib$name.la"
17155 if test "X$found_dir" != "X"; then
17160 if test "X$found_dir" != "X"; then
17161 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17162 if test "X$found_so" != "X"; then
17163 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17164 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17167 for x
in $ltrpathdirs; do
17168 if test "X$x" = "X$found_dir"; then
17173 if test -z "$haveit"; then
17174 ltrpathdirs
="$ltrpathdirs $found_dir"
17176 if test "$hardcode_direct" = yes; then
17177 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17179 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17180 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17182 for x
in $rpathdirs; do
17183 if test "X$x" = "X$found_dir"; then
17188 if test -z "$haveit"; then
17189 rpathdirs
="$rpathdirs $found_dir"
17193 for x
in $LDFLAGS $LIBBABELTRACE; do
17195 acl_save_prefix
="$prefix"
17196 prefix
="$acl_final_prefix"
17197 acl_save_exec_prefix
="$exec_prefix"
17198 exec_prefix
="$acl_final_exec_prefix"
17200 exec_prefix
="$acl_save_exec_prefix"
17201 prefix
="$acl_save_prefix"
17203 if test "X$x" = "X-L$found_dir"; then
17208 if test -z "$haveit"; then
17209 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17211 if test "$hardcode_minus_L" != no
; then
17212 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17214 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17220 if test "X$found_a" != "X"; then
17221 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17223 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17226 additional_includedir
=
17227 case "$found_dir" in
17229 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17230 additional_includedir
="$basedir/include"
17233 if test "X$additional_includedir" != "X"; then
17234 if test "X$additional_includedir" != "X/usr/include"; then
17236 if test "X$additional_includedir" = "X/usr/local/include"; then
17237 if test -n "$GCC"; then
17239 linux
*) haveit
=yes;;
17243 if test -z "$haveit"; then
17244 for x
in $CPPFLAGS $INCBABELTRACE; do
17246 acl_save_prefix
="$prefix"
17247 prefix
="$acl_final_prefix"
17248 acl_save_exec_prefix
="$exec_prefix"
17249 exec_prefix
="$acl_final_exec_prefix"
17251 exec_prefix
="$acl_save_exec_prefix"
17252 prefix
="$acl_save_prefix"
17254 if test "X$x" = "X-I$additional_includedir"; then
17259 if test -z "$haveit"; then
17260 if test -d "$additional_includedir"; then
17261 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17267 if test -n "$found_la"; then
17268 save_libdir
="$libdir"
17269 case "$found_la" in
17270 */* |
*\\*) .
"$found_la" ;;
17271 *) .
"./$found_la" ;;
17273 libdir
="$save_libdir"
17274 for dep
in $dependency_libs; do
17277 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17278 if test "X$additional_libdir" != "X/usr/lib"; then
17280 if test "X$additional_libdir" = "X/usr/local/lib"; then
17281 if test -n "$GCC"; then
17283 linux
*) haveit
=yes;;
17287 if test -z "$haveit"; then
17289 for x
in $LDFLAGS $LIBBABELTRACE; do
17291 acl_save_prefix
="$prefix"
17292 prefix
="$acl_final_prefix"
17293 acl_save_exec_prefix
="$exec_prefix"
17294 exec_prefix
="$acl_final_exec_prefix"
17296 exec_prefix
="$acl_save_exec_prefix"
17297 prefix
="$acl_save_prefix"
17299 if test "X$x" = "X-L$additional_libdir"; then
17304 if test -z "$haveit"; then
17305 if test -d "$additional_libdir"; then
17306 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17310 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17312 acl_save_prefix
="$prefix"
17313 prefix
="$acl_final_prefix"
17314 acl_save_exec_prefix
="$exec_prefix"
17315 exec_prefix
="$acl_final_exec_prefix"
17317 exec_prefix
="$acl_save_exec_prefix"
17318 prefix
="$acl_save_prefix"
17320 if test "X$x" = "X-L$additional_libdir"; then
17325 if test -z "$haveit"; then
17326 if test -d "$additional_libdir"; then
17327 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17334 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17335 if test "$enable_rpath" != no
; then
17337 for x
in $rpathdirs; do
17338 if test "X$x" = "X$dir"; then
17343 if test -z "$haveit"; then
17344 rpathdirs
="$rpathdirs $dir"
17347 for x
in $ltrpathdirs; do
17348 if test "X$x" = "X$dir"; then
17353 if test -z "$haveit"; then
17354 ltrpathdirs
="$ltrpathdirs $dir"
17359 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17362 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17365 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17366 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17372 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17373 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17379 if test "X$rpathdirs" != "X"; then
17380 if test -n "$hardcode_libdir_separator"; then
17382 for found_dir
in $rpathdirs; do
17383 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17385 acl_save_libdir
="$libdir"
17387 eval flag
=\"$hardcode_libdir_flag_spec\"
17388 libdir
="$acl_save_libdir"
17389 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17391 for found_dir
in $rpathdirs; do
17392 acl_save_libdir
="$libdir"
17393 libdir
="$found_dir"
17394 eval flag
=\"$hardcode_libdir_flag_spec\"
17395 libdir
="$acl_save_libdir"
17396 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17400 if test "X$ltrpathdirs" != "X"; then
17401 for found_dir
in $ltrpathdirs; do
17402 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17407 ac_save_CPPFLAGS
="$CPPFLAGS"
17409 for element
in $INCBABELTRACE; do
17411 for x
in $CPPFLAGS; do
17413 acl_save_prefix
="$prefix"
17414 prefix
="$acl_final_prefix"
17415 acl_save_exec_prefix
="$exec_prefix"
17416 exec_prefix
="$acl_final_exec_prefix"
17418 exec_prefix
="$acl_save_exec_prefix"
17419 prefix
="$acl_save_prefix"
17421 if test "X$x" = "X$element"; then
17426 if test -z "$haveit"; then
17427 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17433 $as_echo_n "checking for libbabeltrace... " >&6; }
17434 if test "${ac_cv_libbabeltrace+set}" = set; then :
17435 $as_echo_n "(cached) " >&6
17438 ac_save_LIBS
="$LIBS"
17439 LIBS
="$LIBS $LIBBABELTRACE"
17440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17441 /* end confdefs.h. */
17442 #include <babeltrace/babeltrace.h>
17443 #include <babeltrace/ctf/events.h>
17444 #include <babeltrace/ctf/iterator.h>
17448 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17449 struct bt_ctf_event *event = NULL;
17450 const struct bt_definition *scope;
17452 pos->type = BT_SEEK_BEGIN;
17453 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17454 scope = bt_ctf_get_top_level_scope (event,
17455 BT_STREAM_EVENT_HEADER);
17456 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17462 if ac_fn_c_try_link
"$LINENO"; then :
17463 ac_cv_libbabeltrace
=yes
17465 ac_cv_libbabeltrace
=no
17467 rm -f core conftest.err conftest.
$ac_objext \
17468 conftest
$ac_exeext conftest.
$ac_ext
17469 LIBS
="$ac_save_LIBS"
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17473 $as_echo "$ac_cv_libbabeltrace" >&6; }
17474 if test "$ac_cv_libbabeltrace" = yes; then
17475 HAVE_LIBBABELTRACE
=yes
17477 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17480 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17482 $as_echo "$LIBBABELTRACE" >&6; }
17484 HAVE_LIBBABELTRACE
=no
17485 CPPFLAGS
="$ac_save_CPPFLAGS"
17495 CFLAGS
=$saved_CFLAGS
17497 if test "$HAVE_LIBBABELTRACE" != yes; then
17498 if test "$with_babeltrace" = yes; then
17499 as_fn_error
"babeltrace is missing or unusable" "$LINENO" 5
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17502 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17507 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17514 if test "${nativefile}" != ""; then
17515 case "${nativefile}" in
17516 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
17517 * ) GDB_NM_FILE
="${nativefile}"
17519 files
="${files} ${GDB_NM_FILE}"
17520 links
="${links} nm.h"
17522 cat >>confdefs.h
<<_ACEOF
17523 #define GDB_NM_FILE "${GDB_NM_FILE}"
17529 for ac_prog
in xsltproc
17531 # Extract the first word of "$ac_prog", so it can be a program name with args.
17532 set dummy
$ac_prog; ac_word
=$2
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17534 $as_echo_n "checking for $ac_word... " >&6; }
17535 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
17536 $as_echo_n "(cached) " >&6
17540 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
17543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17544 for as_dir
in $PATH
17547 test -z "$as_dir" && as_dir
=.
17548 for ac_exec_ext
in '' $ac_executable_extensions; do
17549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17550 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
17551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17561 XSLTPROC
=$ac_cv_path_XSLTPROC
17562 if test -n "$XSLTPROC"; then
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17564 $as_echo "$XSLTPROC" >&6; }
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17567 $as_echo "no" >&6; }
17571 test -n "$XSLTPROC" && break
17573 test -n "$XSLTPROC" || XSLTPROC
="missing"
17575 if test "x$USE_MAINTAINER_MODE" = xyes
; then
17576 if test "${XSLTPROC}" = missing
; then
17577 as_fn_error
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17582 ac_sources
="$files"
17584 while test -n "$ac_sources"; do
17585 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
17586 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
17587 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
17589 ac_config_links
="$ac_config_links $ac_config_links_1"
17595 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17598 if $development; then
17600 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17602 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS)"
17603 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS)"
17607 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17608 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
17609 if test "x$GDB_TRANSFORM_NAME" = x
; then
17610 GDB_TRANSFORM_NAME
=gdb
17615 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17616 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
17617 if test "x$GCORE_TRANSFORM_NAME" = x
; then
17618 GCORE_TRANSFORM_NAME
=gcore
17622 ac_config_files
="$ac_config_files gcore"
17624 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
17627 cat >confcache
<<\_ACEOF
17628 # This file is a shell script that caches the results of configure
17629 # tests run on this system so they can be shared between configure
17630 # scripts and configure runs, see configure's option --config-cache.
17631 # It is not useful on other systems. If it contains results you don't
17632 # want to keep, you may remove or edit it.
17634 # config.status only pays attention to the cache file if you give it
17635 # the --recheck option to rerun configure.
17637 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17638 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17639 # following values.
17643 # The following way of writing the cache mishandles newlines in values,
17644 # but we know of no workaround that is simple, portable, and efficient.
17645 # So, we kill variables containing newlines.
17646 # Ultrix sh set writes to stderr and can't be redirected directly,
17647 # and sets the high bit in the cache file unless we assign to the vars.
17649 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17650 eval ac_val
=\$
$ac_var
17654 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17655 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17658 _ | IFS | as_nl
) ;; #(
17659 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17660 *) { eval $ac_var=; unset $ac_var;} ;;
17666 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17667 *${as_nl}ac_space
=\
*)
17668 # `set' does not quote correctly, so add quotes: double-quote
17669 # substitution turns \\\\ into \\, and sed turns \\ into \.
17672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17675 # `set' quotes correctly as required by POSIX, so do not add quotes.
17676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17687 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17689 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17690 if test -w "$cache_file"; then
17691 test "x$cache_file" != "x/dev/null" &&
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17693 $as_echo "$as_me: updating cache $cache_file" >&6;}
17694 cat confcache
>$cache_file
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17697 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17702 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17703 # Let make expand exec_prefix.
17704 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17706 DEFS
=-DHAVE_CONFIG_H
17710 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17711 # 1. Remove the extension, and $U if already installed.
17712 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17713 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17714 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17715 # will be set to the directory where LIBOBJS objects are built.
17716 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17717 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17719 LIBOBJS
=$ac_libobjs
17721 LTLIBOBJS
=$ac_ltlibobjs
17724 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17725 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
17726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17728 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17729 as_fn_error
"conditional \"HAVE_PYTHON\" was never defined.
17730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17732 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17733 as_fn_error
"conditional \"HAVE_GUILE\" was never defined.
17734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17738 : ${CONFIG_STATUS=./config.status}
17740 ac_clean_files_save
=$ac_clean_files
17741 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17743 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17745 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17747 # Generated by $as_me.
17748 # Run this file to recreate the current configuration.
17749 # Compiler output produced by configure, useful for debugging
17750 # configure, is in config.log if it exists.
17753 ac_cs_recheck=false
17756 SHELL=\${CONFIG_SHELL-$SHELL}
17759 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17760 ## -------------------- ##
17761 ## M4sh Initialization. ##
17762 ## -------------------- ##
17764 # Be more Bourne compatible
17765 DUALCASE
=1; export DUALCASE
# for MKS sh
17766 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17769 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17770 # is contrary to our usage. Disable this feature.
17771 alias -g '${1+"$@"}'='"$@"'
17772 setopt NO_GLOB_SUBST
17774 case `(set -o) 2>/dev/null` in #(
17786 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17787 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17788 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17789 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17790 # Prefer a ksh shell builtin over an external printf program on Solaris,
17791 # but without wasting forks for bash or zsh.
17792 if test -z "$BASH_VERSION$ZSH_VERSION" \
17793 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17794 as_echo='print
-r --'
17795 as_echo_n='print
-rn --'
17796 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17797 as_echo='printf %s
\n'
17798 as_echo_n='printf %s
'
17800 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17801 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17802 as_echo_n='/usr
/ucb
/echo -n'
17804 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17805 as_echo_n_body='eval
17809 expr "X$arg" : "X\\(.*\\)$as_nl";
17810 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17812 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17814 export as_echo_n_body
17815 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17817 export as_echo_body
17818 as_echo='sh
-c $as_echo_body as_echo
'
17821 # The user is always right.
17822 if test "${PATH_SEPARATOR+set}" != set; then
17824 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17825 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17832 # We need space, tab and new line, in precisely that order. Quoting is
17833 # there to prevent editors from complaining about space-tab.
17834 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17835 # splitting by setting IFS to empty value.)
17838 # Find who we are. Look in the path if we contain no directory separator.
17840 *[\\/]* ) as_myself=$0 ;;
17841 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17842 for as_dir in $PATH
17845 test -z "$as_dir" && as_dir=.
17846 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17852 # We did not find ourselves, most probably we were run as `sh COMMAND'
17853 # in which case we are not to be found in the path.
17854 if test "x$as_myself" = x
; then
17857 if test ! -f "$as_myself"; then
17858 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17862 # Unset variables that we do not need and which cause bugs (e.g. in
17863 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17864 # suppresses any "Segmentation fault" message there. '((' could
17865 # trigger a bug in pdksh 5.2.14.
17866 for as_var
in BASH_ENV ENV MAIL MAILPATH
17867 do eval test x\
${$as_var+set} = xset \
17868 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17881 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17884 # as_fn_error ERROR [LINENO LOG_FD]
17885 # ---------------------------------
17886 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17887 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17888 # script with status $?, using 1 if that was 0.
17891 as_status
=$?
; test $as_status -eq 0 && as_status
=1
17893 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17894 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17896 $as_echo "$as_me: error: $1" >&2
17897 as_fn_exit
$as_status
17901 # as_fn_set_status STATUS
17902 # -----------------------
17903 # Set $? to STATUS, without forking.
17904 as_fn_set_status
()
17907 } # as_fn_set_status
17909 # as_fn_exit STATUS
17910 # -----------------
17911 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17915 as_fn_set_status
$1
17921 # Portably unset VAR.
17924 { eval $1=; unset $1;}
17926 as_unset
=as_fn_unset
17927 # as_fn_append VAR VALUE
17928 # ----------------------
17929 # Append the text in VALUE to the end of the definition contained in VAR. Take
17930 # advantage of any shell optimizations that allow amortized linear growth over
17931 # repeated appends, instead of the typical quadratic growth present in naive
17933 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17934 eval 'as_fn_append ()
17945 # as_fn_arith ARG...
17946 # ------------------
17947 # Perform arithmetic evaluation on the ARGs, and store the result in the
17948 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17949 # must be portable across $(()) and expr.
17950 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17951 eval 'as_fn_arith ()
17958 as_val
=`expr "$@" || test $? -eq 1`
17963 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17964 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17970 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17971 as_basename
=basename
17976 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17982 as_me
=`$as_basename -- "$0" ||
17983 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17984 X"$0" : 'X\(//\)$' \| \
17985 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17987 sed '/^.*\/\([^/][^/]*\)\/*$/{
18001 # Avoid depending upon Character Ranges.
18002 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18003 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18004 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18005 as_cr_digits
='0123456789'
18006 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18008 ECHO_C
= ECHO_N
= ECHO_T
=
18009 case `echo -n x` in #(((((
18011 case `echo 'xy\c'` in
18012 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18014 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18021 rm -f conf$$ conf$$.exe conf$$.
file
18022 if test -d conf$$.dir
; then
18023 rm -f conf$$.dir
/conf$$.
file
18026 mkdir conf$$.dir
2>/dev
/null
18028 if (echo >conf$$.
file) 2>/dev
/null
; then
18029 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18031 # ... but there are two gotchas:
18032 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18033 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18034 # In both cases, we have to default to `cp -p'.
18035 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18037 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18045 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18046 rmdir conf$$.dir
2>/dev
/null
18051 # Create "$as_dir" as a directory, including parents if necessary.
18056 -*) as_dir
=.
/$as_dir;;
18058 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18062 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18063 *) as_qdir
=$as_dir;;
18065 as_dirs
="'$as_qdir' $as_dirs"
18066 as_dir
=`$as_dirname -- "$as_dir" ||
18067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18068 X"$as_dir" : 'X\(//\)[^/]' \| \
18069 X"$as_dir" : 'X\(//\)$' \| \
18070 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18071 $as_echo X"$as_dir" |
18072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18076 /^X\(\/\/\)[^/].*/{
18089 test -d "$as_dir" && break
18091 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18092 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
18096 if mkdir
-p .
2>/dev
/null
; then
18097 as_mkdir_p
='mkdir -p "$as_dir"'
18099 test -d .
/-p && rmdir .
/-p
18103 if test -x / >/dev
/null
2>&1; then
18104 as_test_x
='test -x'
18106 if ls -dL / >/dev
/null
2>&1; then
18113 if test -d "$1"; then
18119 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18120 ???[sx]*):;;*)false;;esac;fi
18124 as_executable_p
=$as_test_x
18126 # Sed expression to map a string onto a valid CPP name.
18127 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18129 # Sed expression to map a string onto a valid variable name.
18130 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18134 ## ----------------------------------- ##
18135 ## Main body of $CONFIG_STATUS script. ##
18136 ## ----------------------------------- ##
18138 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18141 # Save the log message, to keep $0 and so on meaningful, and to
18142 # report actual input values of CONFIG_FILES etc. instead of their
18143 # values after options handling.
18145 This file was extended by $as_me, which was
18146 generated by GNU Autoconf 2.64. Invocation command line was
18148 CONFIG_FILES = $CONFIG_FILES
18149 CONFIG_HEADERS = $CONFIG_HEADERS
18150 CONFIG_LINKS = $CONFIG_LINKS
18151 CONFIG_COMMANDS = $CONFIG_COMMANDS
18154 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18159 case $ac_config_files in *"
18160 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18163 case $ac_config_headers in *"
18164 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18169 # Files that config.status was made for.
18170 config_files="$ac_config_files"
18171 config_headers="$ac_config_headers"
18172 config_links="$ac_config_links"
18173 config_commands="$ac_config_commands"
18177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18179 \`$as_me' instantiates files and other configuration actions
18180 from templates according to the current configuration. Unless the files
18181 and actions are specified as TAGs, all are instantiated by default.
18183 Usage: $0 [OPTION]... [TAG]...
18185 -h, --help print this help, then exit
18186 -V, --version print version number and configuration settings, then exit
18187 -q, --quiet, --silent
18188 do not print progress messages
18189 -d, --debug don't remove temporary files
18190 --recheck update $as_me by reconfiguring in the same conditions
18191 --file=FILE[:TEMPLATE]
18192 instantiate the configuration file FILE
18193 --header=FILE[:TEMPLATE]
18194 instantiate the configuration header FILE
18196 Configuration files:
18199 Configuration headers:
18202 Configuration links:
18205 Configuration commands:
18208 Report bugs to the package provider."
18211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18214 configured by $0, generated by GNU Autoconf 2.64,
18215 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18217 Copyright (C) 2009 Free Software Foundation, Inc.
18218 This config.status script is free software; the Free Software Foundation
18219 gives unlimited permission to copy, distribute and modify it."
18225 test -n "\$AWK" || AWK=awk
18228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18229 # The default lists apply if the user does not specify any file.
18235 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18236 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18247 # Handling of the options.
18248 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18250 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18251 $as_echo "$ac_cs_version"; exit ;;
18252 --debug |
--debu |
--deb |
--de |
--d |
-d )
18254 --file |
--fil |
--fi |
--f )
18257 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18259 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18260 ac_need_defaults
=false
;;
18261 --header |
--heade |
--head |
--hea )
18264 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18266 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18267 ac_need_defaults
=false
;;
18269 # Conflict between --help and --header
18270 as_fn_error
"ambiguous option: \`$1'
18271 Try \`$0 --help' for more information.";;
18272 --help |
--hel |
-h )
18273 $as_echo "$ac_cs_usage"; exit ;;
18274 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18275 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18278 # This is an error.
18279 -*) as_fn_error
"unrecognized option: \`$1'
18280 Try \`$0 --help' for more information." ;;
18282 *) as_fn_append ac_config_targets
" $1"
18283 ac_need_defaults
=false
;;
18289 ac_configure_extra_args
=
18291 if $ac_cs_silent; then
18293 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18298 if \$ac_cs_recheck; then
18299 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18301 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18302 CONFIG_SHELL='$SHELL'
18303 export CONFIG_SHELL
18308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18312 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18313 ## Running $as_me. ##
18319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18323 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18329 # Handling of arguments.
18330 for ac_config_target
in $ac_config_targets
18332 case $ac_config_target in
18333 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18334 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
18335 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18336 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
18337 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
18338 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18339 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
18340 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18341 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
18343 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18348 # If the user did not use the arguments to specify the items to instantiate,
18349 # then the envvar interface is used. Set only those that are not.
18350 # We use the long form for the default assignment because of an extremely
18351 # bizarre bug on SunOS 4.1.3.
18352 if $ac_need_defaults; then
18353 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18354 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18355 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18356 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18359 # Have a temporary directory for convenience. Make it in the build tree
18360 # simply because there is no reason against having it here, and in addition,
18361 # creating and moving files from /tmp can sometimes cause problems.
18362 # Hook for its removal unless debugging.
18363 # Note that there is a small window in which the directory will not be cleaned:
18364 # after its creation but before its name has been assigned to `$tmp'.
18368 trap 'exit_status=$?
18369 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18371 trap 'as_fn_exit 1' 1 2 13 15
18373 # Create a (secure) tmp directory for tmp files.
18376 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18377 test -n "$tmp" && test -d "$tmp"
18380 tmp
=.
/conf$$
-$RANDOM
18381 (umask 077 && mkdir
"$tmp")
18382 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
18384 # Set up the scripts for CONFIG_FILES section.
18385 # No need to generate them if there are no CONFIG_FILES.
18386 # This happens for instance with `./config.status config.h'.
18387 if test -n "$CONFIG_FILES"; then
18389 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18390 ac_cs_awk_getline
=:
18391 ac_cs_awk_pipe_init
=
18392 ac_cs_awk_read_file
='
18393 while ((getline aline < (F[key])) > 0)
18396 ac_cs_awk_pipe_fini
=
18398 ac_cs_awk_getline
=false
18399 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18400 ac_cs_awk_read_file
='
18402 print "cat " F[key] " &&"
18403 '$ac_cs_awk_pipe_init
18404 # The final `:' finishes the AND list.
18405 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18407 ac_cr
=`echo X | tr X '\015'`
18408 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18409 # But we know of no other shell where ac_cr would be empty at this
18410 # point, so we can use a bashism as a fallback.
18411 if test "x$ac_cr" = x
; then
18412 eval ac_cr
=\$
\'\\r
\'
18414 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18415 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18418 ac_cs_awk_cr
=$ac_cr
18421 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18424 # Create commands to substitute file output variables.
18426 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18427 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18428 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18431 } >conf$
$files.sh
&&
18432 . .
/conf$
$files.sh ||
18433 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
18434 rm -f conf$
$files.sh
18437 echo "cat >conf$$subs.awk <<_ACEOF" &&
18438 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18440 } >conf$$subs.sh ||
18441 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18442 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18444 for ac_last_try in false false false false false :; do
18445 . ./conf$$subs.sh ||
18446 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18448 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18449 if test $ac_delim_n = $ac_delim_num; then
18451 elif $ac_last_try; then
18452 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18454 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18457 rm -f conf$$subs.sh
18459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18460 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18464 s/^/S["/; s
/!.
*/"]=/
18474 s/\(.\{148\}\).*/\1/
18476 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18481 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18488 s/\(.\{148\}\).*/\1/
18490 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18494 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18499 ' <conf$$subs.awk | sed '
18504 ' >>$CONFIG_STATUS || ac_write_fail=1
18505 rm -f conf$$subs.awk
18506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18508 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18509 for (key in S) S_is_set[key] = 1
18511 \$ac_cs_awk_pipe_init
18515 nfields = split(line, field, "@
")
18517 len = length(field[1])
18518 for (i = 2; i < nfields; i++) {
18520 keylen = length(key)
18521 if (S_is_set[key]) {
18523 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18524 len += length(value) + length(field[++i])
18529 if (nfields == 3 && !substed) {
18531 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18532 \$ac_cs_awk_read_file
18538 \$ac_cs_awk_pipe_fini
18541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18542 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18543 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18546 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18547 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
18550 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18551 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18552 # trailing colons and then remove the whole line if VPATH becomes empty
18553 # (actually we leave an empty line to preserve line numbers).
18554 if test "x
$srcdir" = x.; then
18555 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18556 s/:*\$(srcdir):*/:/
18557 s/:*\${srcdir}:*/:/
18559 s/^\([^=]*=[ ]*\):*/\1/
18565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18566 fi # test -n "$CONFIG_FILES"
18568 # Set up the scripts for CONFIG_HEADERS section.
18569 # No need to generate them if there are no CONFIG_HEADERS.
18570 # This happens for instance with `./config.status Makefile'.
18571 if test -n "$CONFIG_HEADERS"; then
18572 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18576 # Transform confdefs.h into an awk script `defines.awk', embedded as
18577 # here-document in config.status, that substitutes the proper values into
18578 # config.h.in to produce config.h.
18580 # Create a delimiter string that does not exist in confdefs.h, to ease
18581 # handling of long lines.
18583 for ac_last_try in false false :; do
18584 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18585 if test -z "$ac_t"; then
18587 elif $ac_last_try; then
18588 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
18590 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18594 # For the awk script, D is an array of macro values keyed by name,
18595 # likewise P contains macro parameters if any. Preserve backslash
18596 # newline sequences.
18598 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18600 s/.\{148\}/&'"$ac_delim"'/g
18603 s/^[ ]*#[ ]*define[ ][ ]*/ /
18610 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18612 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18617 D["\
1"]=" \
3\\\\\\n
"\\/p
18619 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18624 s/.\{148\}/&'"$ac_delim"'/g
18629 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18632 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18634 ' <confdefs.h | sed '
18635 s/'"$ac_delim"'/"\\\
18636 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18639 for (key in D) D_is_set[key] = 1
18642 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18644 split(line, arg, " ")
18645 if (arg[1] == "#") {
18649 defundef
= substr
(arg
[1], 2)
18652 split(mac1
, mac2
, "(") #)
18654 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18655 if (D_is_set
[macro
]) {
18656 # Preserve the white space surrounding the "#".
18657 print prefix
"define", macro P
[macro
] D
[macro
]
18660 # Replace #undef with comments. This is necessary, for example,
18661 # in the case of _POSIX_SOURCE, which is predefined and required
18662 # on some systems where configure will not decide to define it.
18663 if (defundef
== "undef") {
18664 print
"/*", prefix defundef
, macro
, "*/"
18672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18673 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
18674 fi # test -n "$CONFIG_HEADERS"
18677 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18682 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18684 case $ac_mode$ac_tag in
18686 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18687 :[FH
]-) ac_tag
=-:-;;
18688 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18705 -) ac_f
="$tmp/stdin";;
18706 *) # Look for the file first in the build tree, then in the source tree
18707 # (if the path is not absolute). The absolute path cannot be DOS-style,
18708 # because $ac_f cannot contain `:'.
18712 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18714 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
18716 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18717 as_fn_append ac_file_inputs
" '$ac_f'"
18720 # Let's still pretend it is `configure' which instantiates (i.e., don't
18721 # use $as_me), people would be surprised to read:
18722 # /* config.h. Generated by config.status. */
18723 configure_input
='Generated from '`
18724 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18726 if test x
"$ac_file" != x-
; then
18727 configure_input
="$ac_file. $configure_input"
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18729 $as_echo "$as_me: creating $ac_file" >&6;}
18731 # Neutralize special characters interpreted by sed in replacement strings.
18732 case $configure_input in #(
18733 *\
&* |
*\|
* |
*\\* )
18734 ac_sed_conf_input
=`$as_echo "$configure_input" |
18735 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18736 *) ac_sed_conf_input
=$configure_input;;
18740 *:-:* |
*:-) cat >"$tmp/stdin" \
18741 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
18746 ac_dir
=`$as_dirname -- "$ac_file" ||
18747 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18748 X"$ac_file" : 'X\(//\)[^/]' \| \
18749 X"$ac_file" : 'X\(//\)$' \| \
18750 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18751 $as_echo X"$ac_file" |
18752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18756 /^X\(\/\/\)[^/].*/{
18769 as_dir
="$ac_dir"; as_fn_mkdir_p
18773 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18775 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18776 # A ".." for each directory in $ac_dir_suffix.
18777 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18778 case $ac_top_builddir_sub in
18779 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18780 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18783 ac_abs_top_builddir
=$ac_pwd
18784 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18785 # for backward compatibility:
18786 ac_top_builddir
=$ac_top_build_prefix
18789 .
) # We are building in place.
18791 ac_top_srcdir
=$ac_top_builddir_sub
18792 ac_abs_top_srcdir
=$ac_pwd ;;
18793 [\\/]* | ?
:[\\/]* ) # Absolute name.
18794 ac_srcdir
=$srcdir$ac_dir_suffix;
18795 ac_top_srcdir
=$srcdir
18796 ac_abs_top_srcdir
=$srcdir ;;
18797 *) # Relative name.
18798 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18799 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18800 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18802 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18812 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18813 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18818 # If the template does not know about datarootdir, expand it.
18819 # FIXME: This hack should be removed a few years after 2.60.
18820 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18831 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18832 *datarootdir
*) ac_datarootdir_seen
=yes;;
18833 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18835 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18838 ac_datarootdir_hack='
18839 s&@datadir@&$datadir&g
18840 s&@docdir@&$docdir&g
18841 s&@infodir@&$infodir&g
18842 s&@localedir@&$localedir&g
18843 s&@mandir@&$mandir&g
18844 s&\\\${datarootdir}&$datarootdir&g' ;;
18848 # Neutralize VPATH when `$srcdir' = `.'.
18849 # Shell code in configure.ac might set extrasub.
18850 # FIXME: do we really want to maintain this feature?
18851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18852 ac_sed_extra="$ac_vpsub
18855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18857 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18858 s|@configure_input@|
$ac_sed_conf_input|
;t t
18859 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18860 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18861 s
&@srcdir@
&$ac_srcdir&;t t
18862 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18863 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18864 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18865 s
&@builddir@
&$ac_builddir&;t t
18866 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18867 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18868 s
&@INSTALL@
&$ac_INSTALL&;t t
18869 $ac_datarootdir_hack
18871 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18872 if $ac_cs_awk_getline; then
18873 $AWK -f "$tmp/subs.
awk"
18875 $AWK -f "$tmp/subs.
awk" | $SHELL
18877 || as_fn_error "could not create
$ac_file" "$LINENO" 5
18879 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18880 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18881 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18883 which seems to be undefined. Please make sure it is defined." >&5
18884 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18885 which seems to be undefined. Please make sure it is defined." >&2;}
18889 -) cat "$tmp/out" && rm -f "$tmp/out";;
18890 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18892 || as_fn_error "could not create $ac_file" "$LINENO" 5
18898 if test x"$ac_file" != x-; then
18900 $as_echo "/* $configure_input */" \
18901 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18902 } >"$tmp/config.h" \
18903 || as_fn_error "could not create $ac_file" "$LINENO" 5
18904 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18906 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18909 mv "$tmp/config.h" "$ac_file" \
18910 || as_fn_error "could not create $ac_file" "$LINENO" 5
18913 $as_echo "/* $configure_input */" \
18914 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18915 || as_fn_error "could not create -" "$LINENO" 5
18923 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
18926 # Prefer the file from the source tree if names are identical.
18927 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18928 ac_source=$srcdir/$ac_source
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18932 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18934 if test ! -r "$ac_source"; then
18935 as_fn_error "$ac_source: file not found" "$LINENO" 5
18939 # Try a relative symlink, then a hard link, then a copy.
18941 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18942 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18944 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18945 ln "$ac_source" "$ac_file" 2>/dev/null ||
18946 cp -p "$ac_source" "$ac_file" ||
18947 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18950 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18951 $as_echo "$as_me: executing $ac_file commands" >&6;}
18956 case $ac_file$ac_mode in
18957 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
18958 "gcore":F) chmod +x gcore ;;
18960 case x$CONFIG_HEADERS in
18961 xconfig.h:config.in)
18966 case x$CONFIG_HEADERS in
18967 xconfig.h:config.in)
18972 case x$CONFIG_HEADERS in
18973 xconfig.h:config.in)
18977 "data-directory/Makefile":F)
18978 case x$CONFIG_HEADERS in
18979 xconfig.h:config.in)
18990 ac_clean_files=$ac_clean_files_save
18992 test $ac_write_fail = 0 ||
18993 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18996 # configure is writing to config.log, and then calls config.status.
18997 # config.status does its own redirection, appending to config.log.
18998 # Unfortunately, on DOS this fails, as config.log is still kept open
18999 # by configure, so config.status won't be able to
write to it
; its
19000 # output is simply discarded. So we exec the FD to /dev/null,
19001 # effectively closing config.log, so it can be properly (re)opened and
19002 # appended to by config.status. When coming back to configure, we
19003 # need to make the FD available again.
19004 if test "$no_create" != yes; then
19006 ac_config_status_args
=
19007 test "$silent" = yes &&
19008 ac_config_status_args
="$ac_config_status_args --quiet"
19010 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19012 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19013 # would make configure fail if this is the last instruction.
19014 $ac_cs_success || as_fn_exit $?
19018 # CONFIG_SUBDIRS section.
19020 if test "$no_recursion" != yes; then
19022 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19023 # so they do not pile up.
19024 ac_sub_configure_args
=
19026 eval "set x $ac_configure_args"
19030 if test -n "$ac_prev"; then
19035 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19036 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19037 ac_prev
=cache_file
;;
19038 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19039 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19042 --config-cache |
-C)
19044 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19046 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19048 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19050 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19052 --disable-option-checking)
19056 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19058 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19062 # Always prepend --prefix to ensure using the same prefix
19063 # in subdir configurations.
19064 ac_arg
="--prefix=$prefix"
19066 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19068 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19071 if test "$silent" = yes; then
19072 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19075 # Always prepend --disable-option-checking to silence warnings, since
19076 # different subdirs can have different --enable and --with options.
19077 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19080 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19082 # Do not complain, so a configure script can configure whichever
19083 # parts of a large source tree are present.
19084 test -d "$srcdir/$ac_dir" ||
continue
19086 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19087 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19088 $as_echo "$ac_msg" >&6
19089 as_dir
="$ac_dir"; as_fn_mkdir_p
19093 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19095 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19096 # A ".." for each directory in $ac_dir_suffix.
19097 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19098 case $ac_top_builddir_sub in
19099 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19100 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19103 ac_abs_top_builddir
=$ac_pwd
19104 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19105 # for backward compatibility:
19106 ac_top_builddir
=$ac_top_build_prefix
19109 .
) # We are building in place.
19111 ac_top_srcdir
=$ac_top_builddir_sub
19112 ac_abs_top_srcdir
=$ac_pwd ;;
19113 [\\/]* | ?
:[\\/]* ) # Absolute name.
19114 ac_srcdir
=$srcdir$ac_dir_suffix;
19115 ac_top_srcdir
=$srcdir
19116 ac_abs_top_srcdir
=$srcdir ;;
19117 *) # Relative name.
19118 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19119 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19120 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19122 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19127 # Check for guested configure; otherwise get Cygnus style configure.
19128 if test -f "$ac_srcdir/configure.gnu"; then
19129 ac_sub_configure
=$ac_srcdir/configure.gnu
19130 elif test -f "$ac_srcdir/configure"; then
19131 ac_sub_configure
=$ac_srcdir/configure
19132 elif test -f "$ac_srcdir/configure.in"; then
19133 # This should be Cygnus configure.
19134 ac_sub_configure
=$ac_aux_dir/configure
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19137 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19141 # The recursion is here.
19142 if test -n "$ac_sub_configure"; then
19143 # Make the cache file name correct relative to the subdirectory.
19144 case $cache_file in
19145 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19146 *) # Relative name.
19147 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19150 { $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
19151 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19152 # The eval makes quoting arguments work.
19153 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19154 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19155 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19161 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19163 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}