2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="main.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 enable_option_checking
=no
592 ac_subst_vars
='LTLIBOBJS
601 HAVE_NATIVE_GCORE_HOST
690 READLINE_TEXI_INCFLAG
713 HAVE_NATIVE_GCORE_TARGET
741 INSTALL_STRIP_PROGRAM
770 MAINTAINER_MODE_FALSE
799 program_transform_name
810 ac_subst_files
='nat_makefile_frag'
812 enable_option_checking
813 enable_maintainer_mode
816 with_separate_debug_dir
818 with_relocated_sources
820 with_auto_load_safe_path
850 enable_build_warnings
851 enable_gdb_build_warnings
861 with_libbabeltrace_prefix
863 ac_precious_vars
='build_alias
880 ac_subdirs_all
='testsuite
885 # Initialize some variables set by options.
887 ac_init_version
=false
888 ac_unrecognized_opts
=
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
899 program_transform_name
=s
,x
,x
,
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir
='${exec_prefix}/bin'
914 sbindir
='${exec_prefix}/sbin'
915 libexecdir
='${exec_prefix}/libexec'
916 datarootdir
='${prefix}/share'
917 datadir
='${datarootdir}'
918 sysconfdir
='${prefix}/etc'
919 sharedstatedir
='${prefix}/com'
920 localstatedir
='${prefix}/var'
921 includedir
='${prefix}/include'
922 oldincludedir
='/usr/include'
923 docdir
='${datarootdir}/doc/${PACKAGE}'
924 infodir
='${datarootdir}/info'
929 libdir
='${exec_prefix}/lib'
930 localedir
='${datarootdir}/locale'
931 mandir
='${datarootdir}/man'
937 # If the previous option needs an argument, assign it.
938 if test -n "$ac_prev"; then
939 eval $ac_prev=\
$ac_option
945 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 # Accept the important Cygnus configure options, so we can diagnose typos.
951 case $ac_dashdash$ac_option in
955 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
957 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
960 -build |
--build |
--buil |
--bui |
--bu)
961 ac_prev
=build_alias
;;
962 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
963 build_alias
=$ac_optarg ;;
965 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
966 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
967 ac_prev
=cache_file
;;
968 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
969 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
970 cache_file
=$ac_optarg ;;
973 cache_file
=config.cache
;;
975 -datadir |
--datadir |
--datadi |
--datad)
977 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
978 datadir
=$ac_optarg ;;
980 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
981 |
--dataroo |
--dataro |
--datar)
982 ac_prev
=datarootdir
;;
983 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
984 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
985 datarootdir
=$ac_optarg ;;
987 -disable-* |
--disable-*)
988 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
991 as_fn_error
"invalid feature name: $ac_useropt"
992 ac_useropt_orig
=$ac_useropt
993 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
998 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999 ac_unrecognized_sep
=', ';;
1001 eval enable_
$ac_useropt=no
;;
1003 -docdir |
--docdir |
--docdi |
--doc |
--do)
1005 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1006 docdir
=$ac_optarg ;;
1008 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1010 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1011 dvidir
=$ac_optarg ;;
1013 -enable-* |
--enable-*)
1014 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1017 as_fn_error
"invalid feature name: $ac_useropt"
1018 ac_useropt_orig
=$ac_useropt
1019 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1022 "enable_
$ac_useropt"
1024 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025 ac_unrecognized_sep
=', ';;
1027 eval enable_
$ac_useropt=\
$ac_optarg ;;
1029 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1030 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1031 |
--exec |
--exe |
--ex)
1032 ac_prev
=exec_prefix
;;
1033 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1034 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1035 |
--exec=* |
--exe=* |
--ex=*)
1036 exec_prefix
=$ac_optarg ;;
1038 -gas |
--gas |
--ga |
--g)
1039 # Obsolete; use --with-gas.
1042 -help |
--help |
--hel |
--he |
-h)
1043 ac_init_help
=long
;;
1044 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1045 ac_init_help
=recursive
;;
1046 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1047 ac_init_help
=short
;;
1049 -host |
--host |
--hos |
--ho)
1050 ac_prev
=host_alias
;;
1051 -host=* |
--host=* |
--hos=* |
--ho=*)
1052 host_alias
=$ac_optarg ;;
1054 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1056 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1058 htmldir
=$ac_optarg ;;
1060 -includedir |
--includedir |
--includedi |
--included |
--include \
1061 |
--includ |
--inclu |
--incl |
--inc)
1062 ac_prev
=includedir
;;
1063 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1064 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1065 includedir
=$ac_optarg ;;
1067 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1069 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1070 infodir
=$ac_optarg ;;
1072 -libdir |
--libdir |
--libdi |
--libd)
1074 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1075 libdir
=$ac_optarg ;;
1077 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1078 |
--libexe |
--libex |
--libe)
1079 ac_prev
=libexecdir
;;
1080 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1081 |
--libexe=* |
--libex=* |
--libe=*)
1082 libexecdir
=$ac_optarg ;;
1084 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1085 ac_prev
=localedir
;;
1086 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1087 localedir
=$ac_optarg ;;
1089 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1090 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1091 ac_prev
=localstatedir
;;
1092 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1093 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1094 localstatedir
=$ac_optarg ;;
1096 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1098 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1099 mandir
=$ac_optarg ;;
1101 -nfp |
--nfp |
--nf)
1102 # Obsolete; use --without-fp.
1105 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1106 |
--no-cr |
--no-c |
-n)
1109 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1110 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1113 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1114 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1115 |
--oldin |
--oldi |
--old |
--ol |
--o)
1116 ac_prev
=oldincludedir
;;
1117 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1118 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1119 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1120 oldincludedir
=$ac_optarg ;;
1122 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1124 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1125 prefix
=$ac_optarg ;;
1127 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1128 |
--program-pre |
--program-pr |
--program-p)
1129 ac_prev
=program_prefix
;;
1130 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1131 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1132 program_prefix
=$ac_optarg ;;
1134 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1135 |
--program-suf |
--program-su |
--program-s)
1136 ac_prev
=program_suffix
;;
1137 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1138 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1139 program_suffix
=$ac_optarg ;;
1141 -program-transform-name |
--program-transform-name \
1142 |
--program-transform-nam |
--program-transform-na \
1143 |
--program-transform-n |
--program-transform- \
1144 |
--program-transform |
--program-transfor \
1145 |
--program-transfo |
--program-transf \
1146 |
--program-trans |
--program-tran \
1147 |
--progr-tra |
--program-tr |
--program-t)
1148 ac_prev
=program_transform_name
;;
1149 -program-transform-name=* |
--program-transform-name=* \
1150 |
--program-transform-nam=* |
--program-transform-na=* \
1151 |
--program-transform-n=* |
--program-transform-=* \
1152 |
--program-transform=* |
--program-transfor=* \
1153 |
--program-transfo=* |
--program-transf=* \
1154 |
--program-trans=* |
--program-tran=* \
1155 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1156 program_transform_name
=$ac_optarg ;;
1158 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1160 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1161 pdfdir
=$ac_optarg ;;
1163 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1165 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1168 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1169 |
-silent |
--silent |
--silen |
--sile |
--sil)
1172 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1174 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1176 sbindir
=$ac_optarg ;;
1178 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1179 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1180 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1182 ac_prev
=sharedstatedir
;;
1183 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1184 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1185 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1187 sharedstatedir
=$ac_optarg ;;
1189 -site |
--site |
--sit)
1191 -site=* |
--site=* |
--sit=*)
1194 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1196 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1197 srcdir
=$ac_optarg ;;
1199 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1200 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1201 ac_prev
=sysconfdir
;;
1202 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1203 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1204 sysconfdir
=$ac_optarg ;;
1206 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1207 ac_prev
=target_alias
;;
1208 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1209 target_alias
=$ac_optarg ;;
1211 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1214 -version |
--version |
--versio |
--versi |
--vers |
-V)
1215 ac_init_version
=: ;;
1218 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1221 as_fn_error
"invalid package name: $ac_useropt"
1222 ac_useropt_orig
=$ac_useropt
1223 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1228 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229 ac_unrecognized_sep
=', ';;
1231 eval with_
$ac_useropt=\
$ac_optarg ;;
1233 -without-* |
--without-*)
1234 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1237 as_fn_error
"invalid package name: $ac_useropt"
1238 ac_useropt_orig
=$ac_useropt
1239 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1244 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245 ac_unrecognized_sep
=', ';;
1247 eval with_
$ac_useropt=no
;;
1250 # Obsolete; use --with-x.
1253 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1254 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1255 ac_prev
=x_includes
;;
1256 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1257 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1258 x_includes
=$ac_optarg ;;
1260 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1261 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1262 ac_prev
=x_libraries
;;
1263 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1264 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1265 x_libraries
=$ac_optarg ;;
1267 -*) as_fn_error
"unrecognized option: \`$ac_option'
1268 Try \`$0 --help' for more information."
1272 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 case $ac_envvar in #(
1275 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1276 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1278 eval $ac_envvar=\
$ac_optarg
1279 export $ac_envvar ;;
1282 # FIXME: should be removed in autoconf 3.0.
1283 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1285 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1292 if test -n "$ac_prev"; then
1293 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1294 as_fn_error
"missing argument to $ac_option"
1297 if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1300 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1301 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305 # Check all directory arguments for consistency.
1306 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
1311 eval ac_val
=\$
$ac_var
1312 # Remove trailing slashes.
1315 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316 eval $ac_var=\
$ac_val;;
1318 # Be sure to have absolute directory names.
1320 [\\/$
]* | ?
:[\\/]* ) continue;;
1321 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1323 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1326 # There might be people who depend on the old broken behavior: `$host'
1327 # used to hold the argument of --host etc.
1328 # FIXME: To remove some day.
1331 target
=$target_alias
1333 # FIXME: To remove some day.
1334 if test "x$host_alias" != x
; then
1335 if test "x$build_alias" = x
; then
1336 cross_compiling
=maybe
1337 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1338 If a cross compiler is detected then cross compile mode will be used." >&2
1339 elif test "x$build_alias" != "x$host_alias"; then
1345 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1347 test "$silent" = yes && exec 6>/dev
/null
1350 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di
=`ls -di .` &&
1352 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1353 as_fn_error
"working directory cannot be determined"
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 as_fn_error
"pwd does not report name of working directory"
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360 ac_srcdir_defaulted
=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir
=`$as_dirname -- "$as_myself" ||
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367 $as_echo X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1390 ac_srcdir_defaulted
=no
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1394 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1396 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1408 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 for ac_var
in $ac_precious_vars; do
1411 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1413 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1418 # Report the --help message.
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1424 \`configure' configures this package to adapt to many kinds of systems.
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1431 Defaults for the options are specified in brackets.
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1455 For better control, use the options below.
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1487 --x-includes=DIR X include files are
in DIR
1488 --x-libraries=DIR X library files are
in DIR
1491 --build=BUILD configure
for building on BUILD
[guessed
]
1492 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1493 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1497 if test -n "$ac_init_help"; then
1502 --disable-option-checking ignore unrecognized
--enable/--with options
1503 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1504 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1505 --enable-maintainer-mode enable make rules and dependencies not useful
1506 (and sometimes confusing
) to the casual installer
1507 --enable-plugins Enable support
for plugins
1508 --disable-largefile omit support
for large files
1509 --enable-targets=TARGETS
1510 alternative target configurations
1511 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1512 --disable-gdbcli disable command-line interface
(CLI
)
1513 --disable-gdbmi disable machine-interface
(MI
)
1514 --enable-tui enable full-screen terminal user interface
(TUI
)
1515 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1516 --enable-profiling enable profiling of GDB
1517 --disable-rpath do not hardcode runtime library paths
1518 --enable-libmcheck Try linking with
-lmcheck if available
1519 --enable-werror treat compile warnings as errors
1520 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1521 --enable-gdb-build-warnings
1522 enable GDB specific build-time compiler warnings
if
1524 --enable-sim link gdb with simulator
1525 --enable-multi-ice build the multi-ice-gdb-server
1526 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1530 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1531 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1532 --with-separate-debug-dir=PATH
1533 look for global separate debug info
in this path
1535 --with-gdb-datadir=PATH
look for global separate data files
in this path
1537 --with-relocated-sources=PATH
1538 automatically relocate this path
for source files
1539 --with-auto-load-dir=PATH
1540 directories from
which to load auto-loaded scripts
1541 [$debugdir:$datadir/auto-load
]
1542 --with-auto-load-safe-path=PATH
1543 directories safe to hold auto-loaded files
1544 [--with-auto-load-dir]
1545 --without-auto-load-safe-path
1546 do not restrict auto-loaded files locations
1547 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1548 --with-curses use the curses library instead of the termcap
1550 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1551 --with-bugurl=URL Direct users to URL to report a bug
1552 --with-system-zlib use installed libz
1553 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1554 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1555 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1556 --with-iconv-bin=PATH specify where to find the iconv program
1557 --with-system-readline use installed readline library
1558 --with-jit-reader-dir=PATH
1559 directory to load the JIT readers from
1560 --with-expat include expat support (auto/yes/no)
1561 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1562 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1563 --with-python[=PYTHON
] include python support
1564 (auto
/yes
/no
/<python-program
>)
1565 --with-guile[=GUILE
] include guile support
1566 (auto
/yes
/no
/<guile-version
>/<pkg-config-program
>)
1567 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1568 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1569 --without-libipt-prefix don
't search for libipt in includedir and libdir
1570 --without-included-regex
1571 don't use included regex
; this is the default on
1572 systems with version
2 of the GNU C library
(use
1573 with caution on other system
)
1574 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1575 --with-system-gdbinit=PATH
1576 automatically load a system-wide gdbinit
file
1577 --with-lzma support lzma compression
(auto
/yes
/no
)
1578 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1579 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1580 --with-tcl directory containing tcl configuration (tclConfig.sh)
1581 --with-tk directory containing tk configuration (tkConfig.sh)
1582 --with-x use the X Window System
1583 --with-babeltrace include babeltrace support (auto/yes/no)
1584 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1585 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1587 Some influential environment variables
:
1588 CC C compiler
command
1589 CFLAGS C compiler flags
1590 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1591 nonstandard directory
<lib dir
>
1592 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1593 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1594 you have headers
in a nonstandard directory
<include dir
>
1595 CXX C
++ compiler
command
1596 CXXFLAGS C
++ compiler flags
1598 MAKEINFO Parent configure detects
if it is of sufficient version.
1600 Parameters
for MAKEINFO.
1601 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1602 the first program found out of: `bison
-y', `byacc', `yacc'.
1603 YFLAGS The list of arguments that will be passed by default to $YACC.
1604 This script will default YFLAGS to the empty string to avoid a
1605 default value of `-d' given by some make applications.
1606 XMKMF Path to xmkmf, Makefile generator for X Window System
1608 Use these variables to override the choices made by `configure' or to
help
1609 it to
find libraries and programs with nonstandard names
/locations.
1611 Report bugs to the package provider.
1616 if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1625 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1627 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1632 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1635 ac_abs_top_builddir
=$ac_pwd
1636 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir
=$ac_top_build_prefix
1641 .
) # We are building in place.
1643 ac_top_srcdir
=$ac_top_builddir_sub
1644 ac_abs_top_srcdir
=$ac_pwd ;;
1645 [\\/]* | ?
:[\\/]* ) # Absolute name.
1646 ac_srcdir
=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir
=$srcdir
1648 ac_abs_top_srcdir
=$srcdir ;;
1650 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1654 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1656 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1675 generated by GNU Autoconf
2.64
1677 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1678 This configure
script is free software
; the Free Software Foundation
1679 gives unlimited permission to copy
, distribute and modify it.
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile
()
1693 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1694 rm -f conftest.
$ac_objext
1695 if { { ac_try
="$ac_compile"
1697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext; then :
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724 } # ac_fn_c_try_compile
1726 # ac_fn_cxx_try_compile LINENO
1727 # ----------------------------
1728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_cxx_try_compile ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext
1733 if { { ac_try="$ac_compile"
1735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1736 *) ac_try_echo
=$ac_try;;
1738 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_compile") 2>conftest.err
1742 if test -s conftest.err
; then
1743 grep -v '^ *+' conftest.err
>conftest.er1
1744 cat conftest.er1
>&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_cxx_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest.
$ac_objext; then :
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.
$ac_ext >&5
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1762 } # ac_fn_cxx_try_compile
1764 # ac_fn_c_try_cpp LINENO
1765 # ----------------------
1766 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1769 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1770 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } >/dev/null && {
1786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1804 # the include files in INCLUDES and setting the cache variable VAR
1806 ac_fn_c_check_header_mongrel ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1813 $as_echo_n "(cached) " >&6
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1819 # Is the header compilable?
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1821 $as_echo_n "checking $2 usability... " >&6; }
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828 ac_header_compiler=yes
1830 ac_header_compiler=no
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1834 $as_echo "$ac_header_compiler" >&6; }
1836 # Is the header present?
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1838 $as_echo_n "checking $2 presence... " >&6; }
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1843 if ac_fn_c_try_cpp "$LINENO"; then :
1844 ac_header_preproc=yes
1846 ac_header_preproc=no
1848 rm -f conftest.err conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1850 $as_echo "$ac_header_preproc" >&6; }
1852 # So? What about this header?
1853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1856 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1862 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1864 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1866 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1868 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1876 $as_echo_n "(cached) " >&6
1878 eval "$3=\$ac_header_compiler"
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886 } # ac_fn_c_check_header_mongrel
1888 # ac_fn_c_try_run LINENO
1889 # ----------------------
1890 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1891 # that executables *can* be run.
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { { ac_try="$ac_link"
1897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1898 *) ac_try_echo
=$ac_try;;
1900 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_link") 2>&5
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1906 { { case "(($ac_try" in
1907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_try") 2>&5
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; }; }; then :
1918 $as_echo "$as_me: program exited with status $ac_status" >&5
1919 $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 ac_retval=$ac_status
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists and can be compiled using the include files in
1933 # INCLUDES, setting the cache variable VAR accordingly.
1934 ac_fn_c_check_header_compile ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1947 if ac_fn_c_try_compile "$LINENO"; then :
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 } # ac_fn_c_check_header_compile
1961 # ac_fn_c_try_link LINENO
1962 # -----------------------
1963 # Try to link conftest.$ac_ext, and return whether this succeeded.
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 rm -f conftest.$ac_objext conftest$ac_exeext
1968 if { { ac_try="$ac_link"
1970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1971 *) ac_try_echo
=$ac_try;;
1973 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>conftest.err
1977 if test -s conftest.err
; then
1978 grep -v '^ *+' conftest.err
>conftest.er1
1979 cat conftest.er1
>&5
1980 mv -f conftest.er1 conftest.err
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && {
1984 test -z "$ac_c_werror_flag" ||
1985 test ! -s conftest.err
1986 } && test -s conftest
$ac_exeext && {
1987 test "$cross_compiling" = yes ||
1988 $as_test_x conftest
$ac_exeext
1992 $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.
$ac_ext >&5
1997 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1998 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1999 # interfere with the next link command; also delete a directory that is
2000 # left behind by Apple's compiler. We do this before executing the actions.
2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2005 } # ac_fn_c_try_link
2007 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2008 # --------------------------------------------
2009 # Tries to find the compile-time value of EXPR in a program that includes
2010 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2012 ac_fn_c_compute_int
()
2014 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2015 if test "$cross_compiling" = yes; then
2016 # Depending upon the size, compute the lo and hi bounds.
2017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2023 static int test_array [1 - 2 * !(($2) >= 0)];
2030 if ac_fn_c_try_compile
"$LINENO"; then :
2033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2039 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2046 if ac_fn_c_try_compile
"$LINENO"; then :
2047 ac_hi
=$ac_mid; break
2049 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2050 if test $ac_lo -le $ac_mid; then
2054 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2065 static int test_array [1 - 2 * !(($2) < 0)];
2072 if ac_fn_c_try_compile
"$LINENO"; then :
2075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2081 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2088 if ac_fn_c_try_compile
"$LINENO"; then :
2089 ac_lo
=$ac_mid; break
2091 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2092 if test $ac_mid -le $ac_hi; then
2096 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2106 # Binary search between lo and hi bounds.
2107 while test "x$ac_lo" != "x$ac_hi"; do
2108 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2115 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2122 if ac_fn_c_try_compile
"$LINENO"; then :
2125 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2130 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2137 static long int longval () { return $2; }
2138 static unsigned long int ulongval () { return $2; }
2145 FILE *f = fopen ("conftest.val", "w");
2150 long int i = longval ();
2153 fprintf (f, "%ld", i);
2157 unsigned long int i = ulongval ();
2160 fprintf (f, "%lu", i);
2162 /* Do not output a trailing newline, as this causes \r\n confusion
2163 on some platforms. */
2164 return ferror (f) || fclose (f) != 0;
2170 if ac_fn_c_try_run
"$LINENO"; then :
2171 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2175 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2176 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2180 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2183 } # ac_fn_c_compute_int
2185 # ac_fn_c_check_func LINENO FUNC VAR
2186 # ----------------------------------
2187 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2188 ac_fn_c_check_func
()
2190 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2194 $as_echo_n "(cached) " >&6
2196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2198 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2200 #define $2 innocuous_$2
2202 /* System header to define __stub macros and hopefully few prototypes,
2203 which can conflict with char $2 (); below.
2204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2205 <limits.h> exists even on freestanding compilers. */
2208 # include <limits.h>
2210 # include <assert.h>
2215 /* Override any GCC internal prototype to avoid an error.
2216 Use char because int might match the return type of a GCC
2217 builtin and then its argument prototype would still apply. */
2222 /* The GNU C library defines this for functions which it implements
2223 to always fail with ENOSYS. Some functions are actually named
2224 something starting with __ and the normal name is an alias. */
2225 #if defined __stub_$2 || defined __stub___$2
2237 if ac_fn_c_try_link
"$LINENO"; then :
2242 rm -f core conftest.err conftest.
$ac_objext \
2243 conftest
$ac_exeext conftest.
$ac_ext
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2250 } # ac_fn_c_check_func
2252 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2253 # ----------------------------------------------------
2254 # Tries to find if the field MEMBER exists in type AGGR, after including
2255 # INCLUDES, setting cache variable VAR accordingly.
2256 ac_fn_c_check_member
()
2258 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2260 $as_echo_n "checking for $2.$3... " >&6; }
2261 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2262 $as_echo_n "(cached) " >&6
2264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2277 if ac_fn_c_try_compile
"$LINENO"; then :
2280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2287 if (sizeof ac_aggr.$3)
2293 if ac_fn_c_try_compile
"$LINENO"; then :
2298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2307 } # ac_fn_c_check_member
2309 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2310 # -------------------------------------------
2311 # Tests whether TYPE exists after having included INCLUDES, setting cache
2312 # variable VAR accordingly.
2313 ac_fn_c_check_type
()
2315 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317 $as_echo_n "checking for $2... " >&6; }
2318 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2319 $as_echo_n "(cached) " >&6
2322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2334 if ac_fn_c_try_compile
"$LINENO"; then :
2335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2347 if ac_fn_c_try_compile
"$LINENO"; then :
2352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358 $as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2361 } # ac_fn_c_check_type
2363 # ac_fn_c_check_decl LINENO SYMBOL VAR
2364 # ------------------------------------
2365 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2366 ac_fn_c_check_decl
()
2368 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2369 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2370 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2372 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2373 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2374 $as_echo_n "(cached) " >&6
2376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2382 #ifndef $as_decl_name
2384 (void) $as_decl_use;
2386 (void) $as_decl_name;
2394 if ac_fn_c_try_compile
"$LINENO"; then :
2399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403 $as_echo "$ac_res" >&6; }
2404 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2406 } # ac_fn_c_check_decl
2407 cat >config.log
<<_ACEOF
2408 This file contains any messages produced by compilers while
2409 running configure, to aid debugging if configure makes a mistake.
2411 It was created by $as_me, which was
2412 generated by GNU Autoconf 2.64. Invocation command line was
2424 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2425 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2426 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2427 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2428 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2430 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2431 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2433 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2434 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2435 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2436 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2437 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2438 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2439 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2447 test -z "$as_dir" && as_dir
=.
2448 $as_echo "PATH: $as_dir"
2464 # Keep a trace of the command line.
2465 # Strip out --no-create and --no-recursion so they do not pile up.
2466 # Strip out --silent because we don't want to record it for future runs.
2467 # Also quote any args containing shell meta-characters.
2468 # Make two passes to allow for proper duplicate-argument suppression.
2472 ac_must_keep_next
=false
2478 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2479 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2480 |
-silent |
--silent |
--silen |
--sile |
--sil)
2483 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2486 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2488 as_fn_append ac_configure_args1
" '$ac_arg'"
2489 if test $ac_must_keep_next = true
; then
2490 ac_must_keep_next
=false
# Got value, back to normal.
2493 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2494 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2495 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2496 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2497 case "$ac_configure_args0 " in
2498 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2501 -* ) ac_must_keep_next
=true
;;
2504 as_fn_append ac_configure_args
" '$ac_arg'"
2509 { ac_configure_args0
=; unset ac_configure_args0
;}
2510 { ac_configure_args1
=; unset ac_configure_args1
;}
2512 # When interrupted or exit'd, cleanup temporary files, and complete
2513 # config.log. We remove comments because anyway the quotes in there
2514 # would cause problems or look ugly.
2515 # WARNING: Use '\'' to represent an apostrophe within the trap.
2516 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2517 trap 'exit_status=$?
2518 # Save into config.log some information that might help in debugging.
2523 ## ---------------- ##
2524 ## Cache variables. ##
2525 ## ---------------- ##
2528 # The following way of writing the cache mishandles newlines in values,
2530 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2531 eval ac_val=\$$ac_var
2535 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2536 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2539 _ | IFS | as_nl) ;; #(
2540 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2541 *) { eval $ac_var=; unset $ac_var;} ;;
2546 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2547 *${as_nl}ac_space=\ *)
2549 "s/'\''/'\''\\\\'\'''\''/g;
2550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2561 ## ----------------- ##
2562 ## Output variables. ##
2563 ## ----------------- ##
2566 for ac_var in $ac_subst_vars
2568 eval ac_val=\$$ac_var
2570 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2572 $as_echo "$ac_var='\''$ac_val'\''"
2576 if test -n "$ac_subst_files"; then
2578 ## ------------------- ##
2579 ## File substitutions. ##
2580 ## ------------------- ##
2583 for ac_var
in $ac_subst_files
2585 eval ac_val
=\$
$ac_var
2587 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2589 $as_echo "$ac_var='\''$ac_val'\''"
2594 if test -s confdefs.h; then
2604 test "$ac_signal" != 0 &&
2605 $as_echo "$as_me: caught signal $ac_signal"
2606 $as_echo "$as_me: exit $exit_status"
2608 rm -f core *.core core.conftest.* &&
2609 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2612 for ac_signal
in 1 2 13 15; do
2613 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2617 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2618 rm -f -r conftest
* confdefs.h
2620 $as_echo "/* confdefs.h */" > confdefs.h
2622 # Predefined preprocessor variables.
2624 cat >>confdefs.h
<<_ACEOF
2625 #define PACKAGE_NAME "$PACKAGE_NAME"
2628 cat >>confdefs.h
<<_ACEOF
2629 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2632 cat >>confdefs.h
<<_ACEOF
2633 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2636 cat >>confdefs.h
<<_ACEOF
2637 #define PACKAGE_STRING "$PACKAGE_STRING"
2640 cat >>confdefs.h
<<_ACEOF
2641 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2644 cat >>confdefs.h
<<_ACEOF
2645 #define PACKAGE_URL "$PACKAGE_URL"
2649 # Let the site file select an alternate cache file if it wants to.
2650 # Prefer an explicitly selected file to automatically selected ones.
2653 if test -n "$CONFIG_SITE"; then
2654 ac_site_file1
=$CONFIG_SITE
2655 elif test "x$prefix" != xNONE
; then
2656 ac_site_file1
=$prefix/share
/config.site
2657 ac_site_file2
=$prefix/etc
/config.site
2659 ac_site_file1
=$ac_default_prefix/share
/config.site
2660 ac_site_file2
=$ac_default_prefix/etc
/config.site
2662 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2664 test "x$ac_site_file" = xNONE
&& continue
2665 if test -r "$ac_site_file"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2667 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2668 sed 's/^/| /' "$ac_site_file" >&5
2673 if test -r "$cache_file"; then
2674 # Some versions of bash will fail to source /dev/null (special
2675 # files actually), so we avoid doing that.
2676 if test -f "$cache_file"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2678 $as_echo "$as_me: loading cache $cache_file" >&6;}
2680 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2681 *) .
"./$cache_file";;
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2686 $as_echo "$as_me: creating cache $cache_file" >&6;}
2690 # Check that the precious variables saved in the cache have kept the same
2692 ac_cache_corrupted
=false
2693 for ac_var
in $ac_precious_vars; do
2694 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2695 eval ac_new_set
=\
$ac_env_${ac_var}_set
2696 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2697 eval ac_new_val
=\
$ac_env_${ac_var}_value
2698 case $ac_old_set,$ac_new_set in
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2701 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2702 ac_cache_corrupted
=: ;;
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2705 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2706 ac_cache_corrupted
=: ;;
2709 if test "x$ac_old_val" != "x$ac_new_val"; then
2710 # differences in whitespace do not lead to failure.
2711 ac_old_val_w
=`echo x $ac_old_val`
2712 ac_new_val_w
=`echo x $ac_new_val`
2713 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2715 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2716 ac_cache_corrupted
=:
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2719 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2720 eval $ac_var=\
$ac_old_val
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2723 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2725 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2728 # Pass precious variables to config.status.
2729 if test "$ac_new_set" = set; then
2731 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2732 *) ac_arg
=$ac_var=$ac_new_val ;;
2734 case " $ac_configure_args " in
2735 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2736 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2740 if $ac_cache_corrupted; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2744 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2745 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2747 ## -------------------- ##
2748 ## Main body of script. ##
2749 ## -------------------- ##
2752 ac_cpp
='$CPP $CPPFLAGS'
2753 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2761 ac_config_headers
="$ac_config_headers config.h:config.in"
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2765 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2766 # Check whether --enable-maintainer-mode was given.
2767 if test "${enable_maintainer_mode+set}" = set; then :
2768 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2770 USE_MAINTAINER_MODE
=no
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2774 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2775 if test $USE_MAINTAINER_MODE = yes; then
2776 MAINTAINER_MODE_TRUE
=
2777 MAINTAINER_MODE_FALSE
='#'
2779 MAINTAINER_MODE_TRUE
='#'
2780 MAINTAINER_MODE_FALSE
=
2783 MAINT
=$MAINTAINER_MODE_TRUE
2787 # Set the 'development' global.
2788 .
$srcdir/..
/bfd
/development.sh
2791 ac_cpp
='$CPP $CPPFLAGS'
2792 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2795 if test -n "$ac_tool_prefix"; then
2796 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2797 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if test "${ac_cv_prog_CC+set}" = set; then :
2801 $as_echo_n "(cached) " >&6
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC
="$CC" # Let the user override the test.
2806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2810 test -z "$as_dir" && as_dir
=.
2811 for ac_exec_ext
in '' $ac_executable_extensions; do
2812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2813 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 if test -n "$CC"; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2826 $as_echo "$CC" >&6; }
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 $as_echo "no" >&6; }
2834 if test -z "$ac_cv_prog_CC"; then
2836 # Extract the first word of "gcc", so it can be a program name with args.
2837 set dummy gcc
; ac_word
=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2841 $as_echo_n "(cached) " >&6
2843 if test -n "$ac_ct_CC"; then
2844 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir
=.
2851 for ac_exec_ext
in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_ac_ct_CC
="gcc"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2866 $as_echo "$ac_ct_CC" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2872 if test "x$ac_ct_CC" = x
; then
2875 case $cross_compiling:$ac_tool_warned in
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2879 ac_tool_warned
=yes ;;
2887 if test -z "$CC"; then
2888 if test -n "$ac_tool_prefix"; then
2889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2890 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if test "${ac_cv_prog_CC+set}" = set; then :
2894 $as_echo_n "(cached) " >&6
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC
="$CC" # Let the user override the test.
2899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir
=.
2904 for ac_exec_ext
in '' $ac_executable_extensions; do
2905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 if test -n "$CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919 $as_echo "$CC" >&6; }
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2928 if test -z "$CC"; then
2929 # Extract the first word of "cc", so it can be a program name with args.
2930 set dummy cc
; ac_word
=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if test "${ac_cv_prog_CC+set}" = set; then :
2934 $as_echo_n "(cached) " >&6
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC
="$CC" # Let the user override the test.
2940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir
=.
2945 for ac_exec_ext
in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2948 ac_prog_rejected
=yes
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 if test $ac_prog_rejected = yes; then
2960 # We found a bogon in the path, so make sure we never use it.
2961 set dummy
$ac_cv_prog_CC
2963 if test $# != 0; then
2964 # We chose a different compiler from the bogus one.
2965 # However, it has the same basename, so the bogon will be chosen
2966 # first if we set CC to just the basename; use the full file name.
2968 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2974 if test -n "$CC"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2976 $as_echo "$CC" >&6; }
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2984 if test -z "$CC"; then
2985 if test -n "$ac_tool_prefix"; then
2986 for ac_prog
in cl.exe
2988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2989 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if test "${ac_cv_prog_CC+set}" = set; then :
2993 $as_echo_n "(cached) " >&6
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC
="$CC" # Let the user override the test.
2998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3002 test -z "$as_dir" && as_dir
=.
3003 for ac_exec_ext
in '' $ac_executable_extensions; do
3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 if test -n "$CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3025 test -n "$CC" && break
3028 if test -z "$CC"; then
3030 for ac_prog
in cl.exe
3032 # Extract the first word of "$ac_prog", so it can be a program name with args.
3033 set dummy
$ac_prog; ac_word
=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3039 if test -n "$ac_ct_CC"; then
3040 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir
=.
3047 for ac_exec_ext
in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_ac_ct_CC
="$ac_prog"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3060 if test -n "$ac_ct_CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3062 $as_echo "$ac_ct_CC" >&6; }
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3069 test -n "$ac_ct_CC" && break
3072 if test "x$ac_ct_CC" = x
; then
3075 case $cross_compiling:$ac_tool_warned in
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3079 ac_tool_warned
=yes ;;
3088 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090 as_fn_error
"no acceptable C compiler found in \$PATH
3091 See \`config.log' for more details." "$LINENO" 5; }
3093 # Provide some information about the compiler.
3094 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3097 for ac_option
in --version -v -V -qversion; do
3098 { { ac_try
="$ac_compiler $ac_option >&5"
3100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3107 if test -s conftest.err; then
3109 ... rest of stderr output deleted ...
3110 10q' conftest.err >conftest.er1
3111 cat conftest.er1 >&5
3112 rm -f conftest.er1 conftest.err
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h. */
3129 ac_clean_files_save=$ac_clean_files
3130 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3131 # Try to create an executable without -o first, disregard a.out.
3132 # It will help us diagnose broken compilers, and finding out an intuition
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3135 $as_echo_n "checking for C compiler default output file name... " >&6; }
3136 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3138 # The possible output files:
3139 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3142 for ac_file in $ac_files
3145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3151 if { { ac_try="$ac_link_default"
3153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3154 *) ac_try_echo
=$ac_try;;
3156 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_link_default") 2>&5
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; then :
3162 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3163 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3164 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3165 # so that the user can short-circuit this test for compilers unknown to
3167 for ac_file
in $ac_files ''
3169 test -f "$ac_file" ||
continue
3171 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3174 # We found the default executable, but exeext='' is most
3178 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3180 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3182 # We set ac_cv_exeext here because the later test for it is not
3183 # safe: cross compilers may not add the suffix if given an `-o'
3184 # argument, so we may need to know it at that point already.
3185 # Even if this section looks crufty: it has the advantage of
3192 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3198 $as_echo "$ac_file" >&6; }
3199 if test -z "$ac_file"; then :
3200 $as_echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.
$ac_ext >&5
3203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 { as_fn_set_status
77
3206 as_fn_error
"C compiler cannot create executables
3207 See \`config.log' for more details." "$LINENO" 5; }; }
3209 ac_exeext
=$ac_cv_exeext
3211 # Check that the compiler produces executables we can run. If not, either
3212 # the compiler is broken, or we cross compile.
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3214 $as_echo_n "checking whether the C compiler works... " >&6; }
3215 # If not cross compiling, check that we can run a simple program.
3216 if test "$cross_compiling" != yes; then
3217 if { ac_try
='./$ac_file'
3218 { { case "(($ac_try" in
3219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_try") 2>&5
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }; }; then
3230 if test "$cross_compiling" = maybe; then
3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error "cannot run C compiled programs.
3236 If you meant to cross compile
, use \
`--host'.
3237 See \`config.log
' for more details." "$LINENO" 5; }
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3242 $as_echo "yes" >&6; }
3244 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3245 ac_clean_files=$ac_clean_files_save
3246 # Check that the compiler produces executables we can run. If not, either
3247 # the compiler is broken, or we cross compile.
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3249 $as_echo_n "checking whether we are cross compiling... " >&6; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3251 $as_echo "$cross_compiling" >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3254 $as_echo_n "checking for suffix of executables... " >&6; }
3255 if { { ac_try="$ac_link"
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262 (eval "$ac_link") 2>&5
3264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265 test $ac_status = 0; }; then :
3266 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3267 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3268 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3270 for ac_file
in conftest.exe conftest conftest.
*; do
3271 test -f "$ac_file" ||
continue
3273 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3274 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3283 See \`config.log' for more details." "$LINENO" 5; }
3285 rm -f conftest
$ac_cv_exeext
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3287 $as_echo "$ac_cv_exeext" >&6; }
3289 rm -f conftest.
$ac_ext
3290 EXEEXT
=$ac_cv_exeext
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3293 $as_echo_n "checking for suffix of object files... " >&6; }
3294 if test "${ac_cv_objext+set}" = set; then :
3295 $as_echo_n "(cached) " >&6
3297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3308 rm -f conftest.o conftest.obj
3309 if { { ac_try
="$ac_compile"
3311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315 $as_echo "$ac_try_echo"; } >&5
3316 (eval "$ac_compile") 2>&5
3318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }; then :
3320 for ac_file in conftest.o conftest.obj conftest.*; do
3321 test -f "$ac_file" || continue;
3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3329 $as_echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error "cannot compute suffix of object files
: cannot compile
3335 See \
`config.log' for more details." "$LINENO" 5; }
3337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3340 $as_echo "$ac_cv_objext" >&6; }
3341 OBJEXT=$ac_cv_objext
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3344 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3345 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3346 $as_echo_n "(cached) " >&6
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3362 if ac_fn_c_try_compile "$LINENO"; then :
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3372 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3373 if test $ac_compiler_gnu = yes; then
3378 ac_test_CFLAGS=${CFLAGS+set}
3379 ac_save_CFLAGS=$CFLAGS
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3381 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3382 if test "${ac_cv_prog_cc_g+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
3385 ac_save_c_werror_flag=$ac_c_werror_flag
3386 ac_c_werror_flag=yes
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3400 if ac_fn_c_try_compile "$LINENO"; then :
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3415 if ac_fn_c_try_compile "$LINENO"; then :
3418 ac_c_werror_flag=$ac_save_c_werror_flag
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3431 if ac_fn_c_try_compile "$LINENO"; then :
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 ac_c_werror_flag=$ac_save_c_werror_flag
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3442 $as_echo "$ac_cv_prog_cc_g" >&6; }
3443 if test "$ac_test_CFLAGS" = set; then
3444 CFLAGS=$ac_save_CFLAGS
3445 elif test $ac_cv_prog_cc_g = yes; then
3446 if test "$GCC" = yes; then
3452 if test "$GCC" = yes; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3459 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3460 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3463 ac_cv_prog_cc_c89=no
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3469 #include <sys/types.h>
3470 #include <sys/stat.h>
3471 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3472 struct buf { int x; };
3473 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3474 static char *e (p, i)
3480 static char *f (char * (*g) (char **, int), char **p, ...)
3485 s = g (p, va_arg (v,int));
3490 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3491 function prototypes and stuff, but not '\xHH' hex character constants.
3492 These don't provoke an error unfortunately, instead are silently treated
3493 as 'x'. The following induces an error, until -std is added to get
3494 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3495 array size at least. It's necessary to write '\x00'==0 to get something
3496 that's true only with -std. */
3497 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3499 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3500 inside strings and character constants. */
3502 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3504 int test (int i, double x);
3505 struct s1 {int (*f) (int a);};
3506 struct s2 {int (*f) (double a);};
3507 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3513 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3518 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3519 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3521 CC="$ac_save_CC $ac_arg"
3522 if ac_fn_c_try_compile "$LINENO"; then :
3523 ac_cv_prog_cc_c89=$ac_arg
3525 rm -f core conftest.err conftest.$ac_objext
3526 test "x$ac_cv_prog_cc_c89" != "xno" && break
3528 rm -f conftest.$ac_ext
3533 case "x$ac_cv_prog_cc_c89" in
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3536 $as_echo "none needed" >&6; } ;;
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3539 $as_echo "unsupported" >&6; } ;;
3541 CC="$CC $ac_cv_prog_cc_c89"
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3543 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3545 if test "x$ac_cv_prog_cc_c89" != xno; then :
3550 ac_cpp='$CPP $CPPFLAGS'
3551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3556 ac_cpp='$CXXCPP $CPPFLAGS'
3557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3560 if test -z "$CXX"; then
3561 if test -n "$CCC"; then
3564 if test -n "$ac_tool_prefix"; then
3565 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if test "${ac_cv_prog_CXX+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3574 if test -n "$CXX"; then
3575 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 if test -n "$CXX"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3597 $as_echo "$CXX" >&6; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3604 test -n "$CXX" && break
3607 if test -z "$CXX"; then
3609 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3611 # Extract the first word of "$ac_prog", so it can be a program name with args.
3612 set dummy $ac_prog; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3618 if test -n "$ac_ct_CXX"; then
3619 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_ac_ct_CXX="$ac_prog"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3639 if test -n "$ac_ct_CXX"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3641 $as_echo "$ac_ct_CXX" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3648 test -n "$ac_ct_CXX" && break
3651 if test "x$ac_ct_CXX" = x; then
3654 case $cross_compiling:$ac_tool_warned in
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3666 # Provide some information about the compiler.
3667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3670 for ac_option in --version -v -V -qversion; do
3671 { { ac_try="$ac_compiler $ac_option >&5"
3673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3674 *) ac_try_echo
=$ac_try;;
3676 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677 $as_echo "$ac_try_echo"; } >&5
3678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3680 if test -s conftest.err
; then
3682 ... rest of stderr output deleted ...
3683 10q' conftest.err
>conftest.er1
3684 cat conftest.er1
>&5
3685 rm -f conftest.er1 conftest.err
3687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688 test $ac_status = 0; }
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3692 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3693 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3710 if ac_fn_cxx_try_compile
"$LINENO"; then :
3715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3716 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3720 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3721 if test $ac_compiler_gnu = yes; then
3726 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3727 ac_save_CXXFLAGS
=$CXXFLAGS
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3729 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3730 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3731 $as_echo_n "(cached) " >&6
3733 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3734 ac_cxx_werror_flag
=yes
3737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3748 if ac_fn_cxx_try_compile
"$LINENO"; then :
3749 ac_cv_prog_cxx_g
=yes
3752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3763 if ac_fn_cxx_try_compile
"$LINENO"; then :
3766 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3779 if ac_fn_cxx_try_compile
"$LINENO"; then :
3780 ac_cv_prog_cxx_g
=yes
3782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3787 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3790 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3791 if test "$ac_test_CXXFLAGS" = set; then
3792 CXXFLAGS
=$ac_save_CXXFLAGS
3793 elif test $ac_cv_prog_cxx_g = yes; then
3794 if test "$GXX" = yes; then
3800 if test "$GXX" = yes; then
3807 ac_cpp
='$CPP $CPPFLAGS'
3808 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3815 ac_cpp
='$CPP $CPPFLAGS'
3816 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3820 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3821 # On Suns, sometimes $CPP names a directory.
3822 if test -n "$CPP" && test -d "$CPP"; then
3825 if test -z "$CPP"; then
3826 if test "${ac_cv_prog_CPP+set}" = set; then :
3827 $as_echo_n "(cached) " >&6
3829 # Double quotes because CPP needs to be expanded
3830 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3833 for ac_c_preproc_warn_flag
in '' yes
3835 # Use a header file that comes with gcc, so configuring glibc
3836 # with a fresh cross-compiler works.
3837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3838 # <limits.h> exists even on freestanding compilers.
3839 # On the NeXT, cc -E runs the code through the compiler's parser,
3840 # not just through cpp. "Syntax error" is here to catch this case.
3841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3844 # include <limits.h>
3846 # include <assert.h>
3850 if ac_fn_c_try_cpp
"$LINENO"; then :
3853 # Broken: fails on valid input.
3856 rm -f conftest.err conftest.
$ac_ext
3858 # OK, works on sane cases. Now check whether nonexistent headers
3859 # can be detected and how.
3860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862 #include <ac_nonexistent.h>
3864 if ac_fn_c_try_cpp
"$LINENO"; then :
3865 # Broken: success on invalid input.
3868 # Passes both tests.
3872 rm -f conftest.err conftest.
$ac_ext
3875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3876 rm -f conftest.err conftest.
$ac_ext
3877 if $ac_preproc_ok; then :
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3890 $as_echo "$CPP" >&6; }
3892 for ac_c_preproc_warn_flag
in '' yes
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
3896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
3898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error" is here to catch this case.
3900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3903 # include <limits.h>
3905 # include <assert.h>
3909 if ac_fn_c_try_cpp
"$LINENO"; then :
3912 # Broken: fails on valid input.
3915 rm -f conftest.err conftest.
$ac_ext
3917 # OK, works on sane cases. Now check whether nonexistent headers
3918 # can be detected and how.
3919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921 #include <ac_nonexistent.h>
3923 if ac_fn_c_try_cpp
"$LINENO"; then :
3924 # Broken: success on invalid input.
3927 # Passes both tests.
3931 rm -f conftest.err conftest.
$ac_ext
3934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3935 rm -f conftest.err conftest.
$ac_ext
3936 if $ac_preproc_ok; then :
3939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3942 See \`config.log' for more details." "$LINENO" 5; }
3946 ac_cpp
='$CPP $CPPFLAGS'
3947 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3953 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3954 if test "${ac_cv_path_GREP+set}" = set; then :
3955 $as_echo_n "(cached) " >&6
3957 if test -z "$GREP"; then
3958 ac_path_GREP_found
=false
3959 # Loop through the user's path and test for each of PROGNAME-LIST
3960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3961 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3964 test -z "$as_dir" && as_dir
=.
3965 for ac_prog
in grep ggrep
; do
3966 for ac_exec_ext
in '' $ac_executable_extensions; do
3967 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3968 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3969 # Check for GNU ac_path_GREP and select it if it is found.
3970 # Check for GNU $ac_path_GREP
3971 case `"$ac_path_GREP" --version 2>&1` in
3973 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3976 $as_echo_n 0123456789 >"conftest.in"
3979 cat "conftest.in" "conftest.in" >"conftest.tmp"
3980 mv "conftest.tmp" "conftest.in"
3981 cp "conftest.in" "conftest.nl"
3982 $as_echo 'GREP' >> "conftest.nl"
3983 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3984 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3985 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3986 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3987 # Best one so far, save it but keep looking for a better one
3988 ac_cv_path_GREP
="$ac_path_GREP"
3989 ac_path_GREP_max
=$ac_count
3991 # 10*(2^10) chars as input seems more than enough
3992 test $ac_count -gt 10 && break
3994 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3997 $ac_path_GREP_found && break 3
4002 if test -z "$ac_cv_path_GREP"; then
4003 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4006 ac_cv_path_GREP
=$GREP
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4011 $as_echo "$ac_cv_path_GREP" >&6; }
4012 GREP
="$ac_cv_path_GREP"
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4016 $as_echo_n "checking for egrep... " >&6; }
4017 if test "${ac_cv_path_EGREP+set}" = set; then :
4018 $as_echo_n "(cached) " >&6
4020 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4021 then ac_cv_path_EGREP
="$GREP -E"
4023 if test -z "$EGREP"; then
4024 ac_path_EGREP_found
=false
4025 # Loop through the user's path and test for each of PROGNAME-LIST
4026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4027 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4030 test -z "$as_dir" && as_dir
=.
4031 for ac_prog
in egrep; do
4032 for ac_exec_ext
in '' $ac_executable_extensions; do
4033 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4034 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4035 # Check for GNU ac_path_EGREP and select it if it is found.
4036 # Check for GNU $ac_path_EGREP
4037 case `"$ac_path_EGREP" --version 2>&1` in
4039 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4042 $as_echo_n 0123456789 >"conftest.in"
4045 cat "conftest.in" "conftest.in" >"conftest.tmp"
4046 mv "conftest.tmp" "conftest.in"
4047 cp "conftest.in" "conftest.nl"
4048 $as_echo 'EGREP' >> "conftest.nl"
4049 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4050 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4051 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4053 # Best one so far, save it but keep looking for a better one
4054 ac_cv_path_EGREP
="$ac_path_EGREP"
4055 ac_path_EGREP_max
=$ac_count
4057 # 10*(2^10) chars as input seems more than enough
4058 test $ac_count -gt 10 && break
4060 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4063 $ac_path_EGREP_found && break 3
4068 if test -z "$ac_cv_path_EGREP"; then
4069 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4072 ac_cv_path_EGREP
=$EGREP
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4078 $as_echo "$ac_cv_path_EGREP" >&6; }
4079 EGREP
="$ac_cv_path_EGREP"
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4083 $as_echo_n "checking for ANSI C header files... " >&6; }
4084 if test "${ac_cv_header_stdc+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4102 if ac_fn_c_try_compile
"$LINENO"; then :
4103 ac_cv_header_stdc
=yes
4105 ac_cv_header_stdc
=no
4107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4109 if test $ac_cv_header_stdc = yes; then
4110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 $EGREP "memchr" >/dev
/null
2>&1; then :
4120 ac_cv_header_stdc
=no
4126 if test $ac_cv_header_stdc = yes; then
4127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4134 $EGREP "free" >/dev
/null
2>&1; then :
4137 ac_cv_header_stdc
=no
4143 if test $ac_cv_header_stdc = yes; then
4144 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4145 if test "$cross_compiling" = yes; then :
4148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4152 #if ((' ' & 0x0FF) == 0x020)
4153 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4154 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4156 # define ISLOWER(c) \
4157 (('a' <= (c) && (c) <= 'i') \
4158 || ('j' <= (c) && (c) <= 'r') \
4159 || ('s' <= (c) && (c) <= 'z'))
4160 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4168 for (i = 0; i < 256; i++)
4169 if (XOR (islower (i), ISLOWER (i))
4170 || toupper (i) != TOUPPER (i))
4175 if ac_fn_c_try_run
"$LINENO"; then :
4178 ac_cv_header_stdc
=no
4180 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4181 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4187 $as_echo "$ac_cv_header_stdc" >&6; }
4188 if test $ac_cv_header_stdc = yes; then
4190 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4194 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4195 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4196 inttypes.h stdint.h unistd.h
4198 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4199 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4201 eval as_val
=\$
$as_ac_Header
4202 if test "x$as_val" = x
""yes; then :
4203 cat >>confdefs.h
<<_ACEOF
4204 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4213 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4214 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4221 if test "$MINIX" = yes; then
4223 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4226 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4229 $as_echo "#define _MINIX 1" >>confdefs.h
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4235 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4236 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
4239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4242 # define __EXTENSIONS__ 1
4243 $ac_includes_default
4252 if ac_fn_c_try_compile
"$LINENO"; then :
4253 ac_cv_safe_to_define___extensions__
=yes
4255 ac_cv_safe_to_define___extensions__
=no
4257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4260 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4261 test $ac_cv_safe_to_define___extensions__ = yes &&
4262 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4264 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4266 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4268 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4270 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4274 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4275 for ac_t
in install-sh
install.sh shtool
; do
4276 if test -f "$ac_dir/$ac_t"; then
4278 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4283 if test -z "$ac_aux_dir"; then
4284 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4287 # These three variables are undocumented and unsupported,
4288 # and are intended to be withdrawn in a future Autoconf release.
4289 # They can cause serious problems if a builder's source tree is in a directory
4290 # whose full name contains unusual characters.
4291 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4292 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4293 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4296 # Make sure we can run config.sub.
4297 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4298 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4301 $as_echo_n "checking build system type... " >&6; }
4302 if test "${ac_cv_build+set}" = set; then :
4303 $as_echo_n "(cached) " >&6
4305 ac_build_alias
=$build_alias
4306 test "x$ac_build_alias" = x
&&
4307 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4308 test "x$ac_build_alias" = x
&&
4309 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4310 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4311 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4315 $as_echo "$ac_cv_build" >&6; }
4316 case $ac_cv_build in
4318 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4321 ac_save_IFS
=$IFS; IFS
='-'
4327 # Remember, the first character of IFS is used to create $*,
4328 # except with old shells:
4331 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4335 $as_echo_n "checking host system type... " >&6; }
4336 if test "${ac_cv_host+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4339 if test "x$host_alias" = x
; then
4340 ac_cv_host
=$ac_cv_build
4342 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4343 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4348 $as_echo "$ac_cv_host" >&6; }
4351 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4354 ac_save_IFS
=$IFS; IFS
='-'
4360 # Remember, the first character of IFS is used to create $*,
4361 # except with old shells:
4364 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4368 $as_echo_n "checking target system type... " >&6; }
4369 if test "${ac_cv_target+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
4372 if test "x$target_alias" = x
; then
4373 ac_cv_target
=$ac_cv_host
4375 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4376 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4381 $as_echo "$ac_cv_target" >&6; }
4382 case $ac_cv_target in
4384 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4386 target
=$ac_cv_target
4387 ac_save_IFS
=$IFS; IFS
='-'
4393 # Remember, the first character of IFS is used to create $*,
4394 # except with old shells:
4397 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4400 # The aliases save the names the user supplied, while $host etc.
4401 # will get canonicalized.
4402 test -n "$target_alias" &&
4403 test "$program_prefix$program_suffix$program_transform_name" = \
4405 program_prefix
=${target_alias}-
4407 # The tests for host and target for $enable_largefile require
4412 # As the $enable_largefile decision depends on --enable-plugins we must set it
4413 # even in directories otherwise not depending on the $plugins option.
4417 for ac_header
in dlfcn.h
4419 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4421 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
4422 cat >>confdefs.h
<<_ACEOF
4423 #define HAVE_DLFCN_H 1
4430 for ac_header
in windows.h
4432 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4434 if test "x$ac_cv_header_windows_h" = x
""yes; then :
4435 cat >>confdefs.h
<<_ACEOF
4436 #define HAVE_WINDOWS_H 1
4444 # Check whether --enable-plugins was given.
4445 if test "${enable_plugins+set}" = set; then :
4446 enableval
=$enable_plugins; case "${enableval}" in
4449 if test "$maybe_plugins" != "yes" ; then
4450 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4454 plugins
=$maybe_plugins
4458 if test "$plugins" = "yes"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4460 $as_echo_n "checking for library containing dlopen... " >&6; }
4461 if test "${ac_cv_search_dlopen+set}" = set; then :
4462 $as_echo_n "(cached) " >&6
4464 ac_func_search_save_LIBS
=$LIBS
4465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4468 /* Override any GCC internal prototype to avoid an error.
4469 Use char because int might match the return type of a GCC
4470 builtin and then its argument prototype would still apply. */
4483 for ac_lib
in '' dl
; do
4484 if test -z "$ac_lib"; then
4485 ac_res
="none required"
4488 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4490 if ac_fn_c_try_link
"$LINENO"; then :
4491 ac_cv_search_dlopen
=$ac_res
4493 rm -f core conftest.err conftest.
$ac_objext \
4495 if test "${ac_cv_search_dlopen+set}" = set; then :
4499 if test "${ac_cv_search_dlopen+set}" = set; then :
4502 ac_cv_search_dlopen
=no
4505 LIBS
=$ac_func_search_save_LIBS
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4508 $as_echo "$ac_cv_search_dlopen" >&6; }
4509 ac_res
=$ac_cv_search_dlopen
4510 if test "$ac_res" != no
; then :
4511 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4519 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4520 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4521 # are mutually exclusive; and without procfs support, the bfd/ elf module
4522 # cannot provide certain routines such as elfcore_write_prpsinfo
4523 # or elfcore_write_prstatus. So unless the user explicitly requested
4524 # large-file support through the --enable-largefile switch, disable
4525 # large-file support in favor of procfs support.
4526 test "${target}" = "${host}" -a "x$plugins" = xno \
4527 && : ${enable_largefile="no"}
4531 # Check whether --enable-largefile was given.
4532 if test "${enable_largefile+set}" = set; then :
4533 enableval
=$enable_largefile;
4536 if test "$enable_largefile" != no
; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4539 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4540 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4543 ac_cv_sys_largefile_CC
=no
4544 if test "$GCC" != yes; then
4547 # IRIX 6.2 and later do not support large files by default,
4548 # so use the C compiler's -n32 option if that helps.
4549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4551 #include <sys/types.h>
4552 /* Check that off_t can represent 2**63 - 1 correctly.
4553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4554 since some C++ compilers masquerading as C compilers
4555 incorrectly reject 9223372036854775807. */
4556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4558 && LARGE_OFF_T % 2147483647 == 1)
4568 if ac_fn_c_try_compile
"$LINENO"; then :
4571 rm -f core conftest.err conftest.
$ac_objext
4573 if ac_fn_c_try_compile
"$LINENO"; then :
4574 ac_cv_sys_largefile_CC
=' -n32'; break
4576 rm -f core conftest.err conftest.
$ac_objext
4580 rm -f conftest.
$ac_ext
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4584 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4585 if test "$ac_cv_sys_largefile_CC" != no
; then
4586 CC
=$CC$ac_cv_sys_largefile_CC
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4590 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4591 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4592 $as_echo_n "(cached) " >&6
4595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597 #include <sys/types.h>
4598 /* Check that off_t can represent 2**63 - 1 correctly.
4599 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4600 since some C++ compilers masquerading as C compilers
4601 incorrectly reject 9223372036854775807. */
4602 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4603 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4604 && LARGE_OFF_T % 2147483647 == 1)
4614 if ac_fn_c_try_compile
"$LINENO"; then :
4615 ac_cv_sys_file_offset_bits
=no
; break
4617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4620 #define _FILE_OFFSET_BITS 64
4621 #include <sys/types.h>
4622 /* Check that off_t can represent 2**63 - 1 correctly.
4623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4624 since some C++ compilers masquerading as C compilers
4625 incorrectly reject 9223372036854775807. */
4626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4628 && LARGE_OFF_T % 2147483647 == 1)
4638 if ac_fn_c_try_compile
"$LINENO"; then :
4639 ac_cv_sys_file_offset_bits
=64; break
4641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4642 ac_cv_sys_file_offset_bits
=unknown
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4647 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4648 case $ac_cv_sys_file_offset_bits in #(
4651 cat >>confdefs.h
<<_ACEOF
4652 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4657 if test $ac_cv_sys_file_offset_bits = unknown
; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4659 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4660 if test "${ac_cv_sys_large_files+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 #include <sys/types.h>
4667 /* Check that off_t can represent 2**63 - 1 correctly.
4668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4669 since some C++ compilers masquerading as C compilers
4670 incorrectly reject 9223372036854775807. */
4671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4673 && LARGE_OFF_T % 2147483647 == 1)
4683 if ac_fn_c_try_compile
"$LINENO"; then :
4684 ac_cv_sys_large_files
=no
; break
4686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 #define _LARGE_FILES 1
4690 #include <sys/types.h>
4691 /* Check that off_t can represent 2**63 - 1 correctly.
4692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4693 since some C++ compilers masquerading as C compilers
4694 incorrectly reject 9223372036854775807. */
4695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4697 && LARGE_OFF_T % 2147483647 == 1)
4707 if ac_fn_c_try_compile
"$LINENO"; then :
4708 ac_cv_sys_large_files
=1; break
4710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4711 ac_cv_sys_large_files
=unknown
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4716 $as_echo "$ac_cv_sys_large_files" >&6; }
4717 case $ac_cv_sys_large_files in #(
4720 cat >>confdefs.h
<<_ACEOF
4721 #define _LARGE_FILES $ac_cv_sys_large_files
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4734 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4735 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4738 am_cv_prog_cc_stdc
=no
4740 # Don't try gcc -ansi; that turns off useful extensions and
4741 # breaks some systems' header files.
4742 # AIX -qlanglvl=ansi
4743 # Ultrix and OSF/1 -std1
4744 # HP-UX 10.20 and later -Ae
4745 # HP-UX older versions -Aa -D_HPUX_SOURCE
4746 # SVR4 -Xc -D__EXTENSIONS__
4747 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4749 CC
="$ac_save_CC $ac_arg"
4750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4754 #include <sys/types.h>
4755 #include <sys/stat.h>
4756 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4757 struct buf { int x; };
4758 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4759 static char *e (p, i)
4765 static char *f (char * (*g) (char **, int), char **p, ...)
4770 s = g (p, va_arg (v,int));
4774 int test (int i, double x);
4775 struct s1 {int (*f) (int a);};
4776 struct s2 {int (*f) (double a);};
4777 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4785 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4791 if ac_fn_c_try_compile
"$LINENO"; then :
4792 am_cv_prog_cc_stdc
="$ac_arg"; break
4794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4800 if test -z "$am_cv_prog_cc_stdc"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4802 $as_echo "none needed" >&6; }
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4805 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4807 case "x$am_cv_prog_cc_stdc" in
4809 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4812 # expand $ac_aux_dir to an absolute path
4813 am_aux_dir
=`cd $ac_aux_dir && pwd`
4815 if test x
"${install_sh}" != xset
; then
4818 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4820 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4824 # Installed binaries are usually stripped using `strip' when the user
4825 # run `make install-strip'. However `strip' might not be the right
4826 # tool to use in cross-compilation environments, therefore Automake
4827 # will honor the `STRIP' environment variable to overrule this program.
4828 if test "$cross_compiling" != no
; then
4829 if test -n "$ac_tool_prefix"; then
4830 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4831 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if test "${ac_cv_prog_STRIP+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
4837 if test -n "$STRIP"; then
4838 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4844 test -z "$as_dir" && as_dir
=.
4845 for ac_exec_ext
in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 STRIP
=$ac_cv_prog_STRIP
4858 if test -n "$STRIP"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4860 $as_echo "$STRIP" >&6; }
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4868 if test -z "$ac_cv_prog_STRIP"; then
4870 # Extract the first word of "strip", so it can be a program name with args.
4871 set dummy strip
; ac_word
=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4877 if test -n "$ac_ct_STRIP"; then
4878 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4884 test -z "$as_dir" && as_dir
=.
4885 for ac_exec_ext
in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_ac_ct_STRIP
="strip"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4898 if test -n "$ac_ct_STRIP"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4900 $as_echo "$ac_ct_STRIP" >&6; }
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4906 if test "x$ac_ct_STRIP" = x
; then
4909 case $cross_compiling:$ac_tool_warned in
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4913 ac_tool_warned
=yes ;;
4918 STRIP
="$ac_cv_prog_STRIP"
4922 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4926 for ac_dir
in ..
"$srcdir"/..
; do
4927 for ac_t
in install-sh
install.sh shtool
; do
4928 if test -f "$ac_dir/$ac_t"; then
4930 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4935 if test -z "$ac_aux_dir"; then
4936 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4939 # These three variables are undocumented and unsupported,
4940 # and are intended to be withdrawn in a future Autoconf release.
4941 # They can cause serious problems if a builder's source tree is in a directory
4942 # whose full name contains unusual characters.
4943 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4944 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4945 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4949 test "$program_prefix" != NONE
&&
4950 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4951 # Use a double $ so make ignores it.
4952 test "$program_suffix" != NONE
&&
4953 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4954 # Double any \ or $.
4955 # By default was `s,x,x', remove it if useless.
4956 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4957 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4960 # We require a C++11 compiler. Check if one is available, and if
4961 # necessary, set CXX_DIALECT to some -std=xxx switch.
4963 ax_cxx_compile_cxx11_required
=true
4965 ac_cpp
='$CXXCPP $CPPFLAGS'
4966 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4972 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4973 if test "${ax_cv_cxx_compile_cxx11+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4980 // If the compiler admits that it is not ready for C++11, why torture it?
4981 // Hopefully, this will speed up the test.
4985 #error "This is not a C++ compiler"
4987 #elif __cplusplus < 201103L
4989 #error "This is not a C++11 compiler"
4996 namespace test_static_assert
4999 template <typename T>
5002 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5007 namespace test_final_override
5015 struct Derived : public Base
5017 virtual void f() override {}
5022 namespace test_double_right_angle_brackets
5025 template < typename T >
5028 typedef check<void> single_type;
5029 typedef check<check<void>> double_type;
5030 typedef check<check<check<void>>> triple_type;
5031 typedef check<check<check<check<void>>>> quadruple_type;
5035 namespace test_decltype
5048 namespace test_type_deduction
5051 template < typename T1, typename T2 >
5054 static const bool value = false;
5057 template < typename T >
5058 struct is_same<T, T>
5060 static const bool value = true;
5063 template < typename T1, typename T2 >
5065 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5071 test(const int c, volatile int v)
5073 static_assert(is_same<int, decltype(0)>::value == true, "");
5074 static_assert(is_same<int, decltype(c)>::value == false, "");
5075 static_assert(is_same<int, decltype(v)>::value == false, "");
5078 auto sumi = ac + av + 'x';
5079 auto sumf = ac + av + 1.0;
5080 static_assert(is_same<int, decltype(ac)>::value == true, "");
5081 static_assert(is_same<int, decltype(av)>::value == true, "");
5082 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5083 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5084 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5085 return (sumf > 0.0) ? sumi : add(c, v);
5090 namespace test_noexcept
5093 int f() { return 0; }
5094 int g() noexcept { return 0; }
5096 static_assert(noexcept(f()) == false, "");
5097 static_assert(noexcept(g()) == true, "");
5101 namespace test_constexpr
5104 template < typename CharT >
5105 unsigned long constexpr
5106 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5108 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5111 template < typename CharT >
5112 unsigned long constexpr
5113 strlen_c(const CharT *const s) noexcept
5115 return strlen_c_r(s, 0UL);
5118 static_assert(strlen_c("") == 0UL, "");
5119 static_assert(strlen_c("1") == 1UL, "");
5120 static_assert(strlen_c("example") == 7UL, "");
5121 static_assert(strlen_c("another\0example") == 7UL, "");
5125 namespace test_rvalue_references
5131 static constexpr int value = N;
5134 answer<1> f(int&) { return answer<1>(); }
5135 answer<2> f(const int&) { return answer<2>(); }
5136 answer<3> f(int&&) { return answer<3>(); }
5143 static_assert(decltype(f(i))::value == 1, "");
5144 static_assert(decltype(f(c))::value == 2, "");
5145 static_assert(decltype(f(0))::value == 3, "");
5150 namespace test_uniform_initialization
5155 static const int zero {};
5156 static const int one {1};
5159 static_assert(test::zero == 0, "");
5160 static_assert(test::one == 1, "");
5164 namespace test_lambdas
5170 auto lambda1 = [](){};
5171 auto lambda2 = lambda1;
5179 auto a = [](int i, int j){ return i + j; }(1, 2);
5180 auto b = []() -> int { return '0'; }();
5181 auto c = [=](){ return a + b; }();
5182 auto d = [&](){ return c; }();
5183 auto e = [a, &b](int x) mutable {
5184 const auto identity = [](int y){ return y; };
5185 for (auto i = 0; i < a; ++i)
5187 return x + identity(a + b);
5189 return a + b + c + d + e;
5195 const auto nullary = [](){ return 0; };
5196 const auto unary = [](int x){ return x; };
5197 using nullary_t = decltype(nullary);
5198 using unary_t = decltype(unary);
5199 const auto higher1st = [](nullary_t f){ return f(); };
5200 const auto higher2nd = [unary](nullary_t f1){
5201 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5203 return higher1st(nullary) + higher2nd(nullary)(unary);
5208 namespace test_variadic_templates
5214 template <int N0, int... N1toN>
5215 struct sum<N0, N1toN...>
5217 static constexpr auto value = N0 + sum<N1toN...>::value;
5223 static constexpr auto value = 0;
5226 static_assert(sum<>::value == 0, "");
5227 static_assert(sum<1>::value == 1, "");
5228 static_assert(sum<23>::value == 23, "");
5229 static_assert(sum<1, 2>::value == 3, "");
5230 static_assert(sum<5, 5, 11>::value == 21, "");
5231 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5235 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5236 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5238 namespace test_template_alias_sfinae
5243 template<typename T>
5244 using member = typename T::member_type;
5246 template<typename T>
5249 template<typename T>
5250 void func(member<T>*) {}
5254 void test() { func<foo>(0); }
5258 } // namespace cxx11
5260 #endif // __cplusplus >= 201103L
5265 if ac_fn_cxx_try_compile
"$LINENO"; then :
5266 ax_cv_cxx_compile_cxx11
=yes
5268 ax_cv_cxx_compile_cxx11
=no
5270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5273 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5274 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5278 if test x
$ac_success = xno
; then
5279 for switch
in -std=gnu
++11 -std=gnu
++0x
; do
5280 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5282 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5283 if { as_var
=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
5284 $as_echo_n "(cached) " >&6
5288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5292 // If the compiler admits that it is not ready for C++11, why torture it?
5293 // Hopefully, this will speed up the test.
5297 #error "This is not a C++ compiler"
5299 #elif __cplusplus < 201103L
5301 #error "This is not a C++11 compiler"
5308 namespace test_static_assert
5311 template <typename T>
5314 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5319 namespace test_final_override
5327 struct Derived : public Base
5329 virtual void f() override {}
5334 namespace test_double_right_angle_brackets
5337 template < typename T >
5340 typedef check<void> single_type;
5341 typedef check<check<void>> double_type;
5342 typedef check<check<check<void>>> triple_type;
5343 typedef check<check<check<check<void>>>> quadruple_type;
5347 namespace test_decltype
5360 namespace test_type_deduction
5363 template < typename T1, typename T2 >
5366 static const bool value = false;
5369 template < typename T >
5370 struct is_same<T, T>
5372 static const bool value = true;
5375 template < typename T1, typename T2 >
5377 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5383 test(const int c, volatile int v)
5385 static_assert(is_same<int, decltype(0)>::value == true, "");
5386 static_assert(is_same<int, decltype(c)>::value == false, "");
5387 static_assert(is_same<int, decltype(v)>::value == false, "");
5390 auto sumi = ac + av + 'x';
5391 auto sumf = ac + av + 1.0;
5392 static_assert(is_same<int, decltype(ac)>::value == true, "");
5393 static_assert(is_same<int, decltype(av)>::value == true, "");
5394 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5395 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5396 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5397 return (sumf > 0.0) ? sumi : add(c, v);
5402 namespace test_noexcept
5405 int f() { return 0; }
5406 int g() noexcept { return 0; }
5408 static_assert(noexcept(f()) == false, "");
5409 static_assert(noexcept(g()) == true, "");
5413 namespace test_constexpr
5416 template < typename CharT >
5417 unsigned long constexpr
5418 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5420 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5423 template < typename CharT >
5424 unsigned long constexpr
5425 strlen_c(const CharT *const s) noexcept
5427 return strlen_c_r(s, 0UL);
5430 static_assert(strlen_c("") == 0UL, "");
5431 static_assert(strlen_c("1") == 1UL, "");
5432 static_assert(strlen_c("example") == 7UL, "");
5433 static_assert(strlen_c("another\0example") == 7UL, "");
5437 namespace test_rvalue_references
5443 static constexpr int value = N;
5446 answer<1> f(int&) { return answer<1>(); }
5447 answer<2> f(const int&) { return answer<2>(); }
5448 answer<3> f(int&&) { return answer<3>(); }
5455 static_assert(decltype(f(i))::value == 1, "");
5456 static_assert(decltype(f(c))::value == 2, "");
5457 static_assert(decltype(f(0))::value == 3, "");
5462 namespace test_uniform_initialization
5467 static const int zero {};
5468 static const int one {1};
5471 static_assert(test::zero == 0, "");
5472 static_assert(test::one == 1, "");
5476 namespace test_lambdas
5482 auto lambda1 = [](){};
5483 auto lambda2 = lambda1;
5491 auto a = [](int i, int j){ return i + j; }(1, 2);
5492 auto b = []() -> int { return '0'; }();
5493 auto c = [=](){ return a + b; }();
5494 auto d = [&](){ return c; }();
5495 auto e = [a, &b](int x) mutable {
5496 const auto identity = [](int y){ return y; };
5497 for (auto i = 0; i < a; ++i)
5499 return x + identity(a + b);
5501 return a + b + c + d + e;
5507 const auto nullary = [](){ return 0; };
5508 const auto unary = [](int x){ return x; };
5509 using nullary_t = decltype(nullary);
5510 using unary_t = decltype(unary);
5511 const auto higher1st = [](nullary_t f){ return f(); };
5512 const auto higher2nd = [unary](nullary_t f1){
5513 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5515 return higher1st(nullary) + higher2nd(nullary)(unary);
5520 namespace test_variadic_templates
5526 template <int N0, int... N1toN>
5527 struct sum<N0, N1toN...>
5529 static constexpr auto value = N0 + sum<N1toN...>::value;
5535 static constexpr auto value = 0;
5538 static_assert(sum<>::value == 0, "");
5539 static_assert(sum<1>::value == 1, "");
5540 static_assert(sum<23>::value == 23, "");
5541 static_assert(sum<1, 2>::value == 3, "");
5542 static_assert(sum<5, 5, 11>::value == 21, "");
5543 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5547 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5548 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5550 namespace test_template_alias_sfinae
5555 template<typename T>
5556 using member = typename T::member_type;
5558 template<typename T>
5561 template<typename T>
5562 void func(member<T>*) {}
5566 void test() { func<foo>(0); }
5570 } // namespace cxx11
5572 #endif // __cplusplus >= 201103L
5577 if ac_fn_cxx_try_compile
"$LINENO"; then :
5582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5585 eval ac_res
=\$
$cachevar
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5587 $as_echo "$ac_res" >&6; }
5588 if eval test x\$
$cachevar = xyes
; then
5589 CXX_DIALECT
="$switch"
5596 if test x
$ac_success = xno
; then
5597 for switch
in -std=c
++11 -std=c
++0x
+std
=c
++11 "-h std=c++11"; do
5598 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5600 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5601 if { as_var
=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
5602 $as_echo_n "(cached) " >&6
5606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5610 // If the compiler admits that it is not ready for C++11, why torture it?
5611 // Hopefully, this will speed up the test.
5615 #error "This is not a C++ compiler"
5617 #elif __cplusplus < 201103L
5619 #error "This is not a C++11 compiler"
5626 namespace test_static_assert
5629 template <typename T>
5632 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5637 namespace test_final_override
5645 struct Derived : public Base
5647 virtual void f() override {}
5652 namespace test_double_right_angle_brackets
5655 template < typename T >
5658 typedef check<void> single_type;
5659 typedef check<check<void>> double_type;
5660 typedef check<check<check<void>>> triple_type;
5661 typedef check<check<check<check<void>>>> quadruple_type;
5665 namespace test_decltype
5678 namespace test_type_deduction
5681 template < typename T1, typename T2 >
5684 static const bool value = false;
5687 template < typename T >
5688 struct is_same<T, T>
5690 static const bool value = true;
5693 template < typename T1, typename T2 >
5695 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5701 test(const int c, volatile int v)
5703 static_assert(is_same<int, decltype(0)>::value == true, "");
5704 static_assert(is_same<int, decltype(c)>::value == false, "");
5705 static_assert(is_same<int, decltype(v)>::value == false, "");
5708 auto sumi = ac + av + 'x';
5709 auto sumf = ac + av + 1.0;
5710 static_assert(is_same<int, decltype(ac)>::value == true, "");
5711 static_assert(is_same<int, decltype(av)>::value == true, "");
5712 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5713 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5714 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5715 return (sumf > 0.0) ? sumi : add(c, v);
5720 namespace test_noexcept
5723 int f() { return 0; }
5724 int g() noexcept { return 0; }
5726 static_assert(noexcept(f()) == false, "");
5727 static_assert(noexcept(g()) == true, "");
5731 namespace test_constexpr
5734 template < typename CharT >
5735 unsigned long constexpr
5736 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5738 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5741 template < typename CharT >
5742 unsigned long constexpr
5743 strlen_c(const CharT *const s) noexcept
5745 return strlen_c_r(s, 0UL);
5748 static_assert(strlen_c("") == 0UL, "");
5749 static_assert(strlen_c("1") == 1UL, "");
5750 static_assert(strlen_c("example") == 7UL, "");
5751 static_assert(strlen_c("another\0example") == 7UL, "");
5755 namespace test_rvalue_references
5761 static constexpr int value = N;
5764 answer<1> f(int&) { return answer<1>(); }
5765 answer<2> f(const int&) { return answer<2>(); }
5766 answer<3> f(int&&) { return answer<3>(); }
5773 static_assert(decltype(f(i))::value == 1, "");
5774 static_assert(decltype(f(c))::value == 2, "");
5775 static_assert(decltype(f(0))::value == 3, "");
5780 namespace test_uniform_initialization
5785 static const int zero {};
5786 static const int one {1};
5789 static_assert(test::zero == 0, "");
5790 static_assert(test::one == 1, "");
5794 namespace test_lambdas
5800 auto lambda1 = [](){};
5801 auto lambda2 = lambda1;
5809 auto a = [](int i, int j){ return i + j; }(1, 2);
5810 auto b = []() -> int { return '0'; }();
5811 auto c = [=](){ return a + b; }();
5812 auto d = [&](){ return c; }();
5813 auto e = [a, &b](int x) mutable {
5814 const auto identity = [](int y){ return y; };
5815 for (auto i = 0; i < a; ++i)
5817 return x + identity(a + b);
5819 return a + b + c + d + e;
5825 const auto nullary = [](){ return 0; };
5826 const auto unary = [](int x){ return x; };
5827 using nullary_t = decltype(nullary);
5828 using unary_t = decltype(unary);
5829 const auto higher1st = [](nullary_t f){ return f(); };
5830 const auto higher2nd = [unary](nullary_t f1){
5831 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5833 return higher1st(nullary) + higher2nd(nullary)(unary);
5838 namespace test_variadic_templates
5844 template <int N0, int... N1toN>
5845 struct sum<N0, N1toN...>
5847 static constexpr auto value = N0 + sum<N1toN...>::value;
5853 static constexpr auto value = 0;
5856 static_assert(sum<>::value == 0, "");
5857 static_assert(sum<1>::value == 1, "");
5858 static_assert(sum<23>::value == 23, "");
5859 static_assert(sum<1, 2>::value == 3, "");
5860 static_assert(sum<5, 5, 11>::value == 21, "");
5861 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5865 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5866 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5868 namespace test_template_alias_sfinae
5873 template<typename T>
5874 using member = typename T::member_type;
5876 template<typename T>
5879 template<typename T>
5880 void func(member<T>*) {}
5884 void test() { func<foo>(0); }
5888 } // namespace cxx11
5890 #endif // __cplusplus >= 201103L
5895 if ac_fn_cxx_try_compile
"$LINENO"; then :
5900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5903 eval ac_res
=\$
$cachevar
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5905 $as_echo "$ac_res" >&6; }
5906 if eval test x\$
$cachevar = xyes
; then
5907 CXX_DIALECT
="$switch"
5914 ac_cpp
='$CPP $CPPFLAGS'
5915 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5916 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5917 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5919 if test x
$ax_cxx_compile_cxx11_required = xtrue
; then
5920 if test x
$ac_success = xno
; then
5921 as_fn_error
"*** A compiler with support for C++11 language features is required." "$LINENO" 5
5924 if test x
$ac_success = xno
; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5927 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5931 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5938 # Dependency checking.
5939 rm -rf .tst
2>/dev
/null
5940 mkdir .tst
2>/dev
/null
5941 if test -d .tst
; then
5946 rmdir .tst
2>/dev
/null
5948 DEPDIR
="${am__leading_dot}deps"
5950 ac_config_commands
="$ac_config_commands depdir"
5953 # Create sub-directories for objects and dependencies.
5954 CONFIG_SRC_SUBDIR
="arch"
5957 ac_config_commands
="$ac_config_commands gdbdepdir"
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
9646 # --------------------- #
9647 # Check for libpython. #
9648 # --------------------- #
9655 # Check whether --with-python was given.
9656 if test "${with_python+set}" = set; then :
9657 withval
=$with_python;
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
9663 $as_echo_n "checking whether to use python... " >&6; }
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
9665 $as_echo "$with_python" >&6; }
9667 if test "${with_python}" = no
; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
9669 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
9672 case "${with_python}" in
9674 if test -d ${with_python}; then
9675 # Assume the python binary is ${with_python}/bin/python.
9676 python_prog
="${with_python}/bin/python"
9678 # If python does not exit ${with_python}/bin, then try in
9679 # ${with_python}. On Windows/MinGW, this is where the Python
9681 if test ! -x "${python_prog}"; then
9682 python_prog
="${with_python}/python"
9685 if test ! -x "${python_prog}"; then
9686 # Fall back to gdb 7.0/7.1 behaviour.
9688 python_prefix
=${with_python}
9690 elif test -x "${with_python}"; then
9691 # While we can't run python compiled for $host (unless host == build),
9692 # the user could write a script that provides the needed information,
9693 # so we support that.
9694 python_prog
=${with_python}
9697 as_fn_error
"invalid value for --with-python" "$LINENO" 5
9701 # Disallow --with-python=foo/bar.
9702 as_fn_error
"invalid value for --with-python" "$LINENO" 5
9705 # The user has either specified auto, yes, or the name of the python
9706 # program assumed to be in $PATH.
9708 case "${with_python}" in
9710 if test ${build} = ${host}; then
9711 # Extract the first word of "python", so it can be a program name with args.
9712 set dummy python
; ac_word
=$2
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714 $as_echo_n "checking for $ac_word... " >&6; }
9715 if test "${ac_cv_path_python_prog_path+set}" = set; then :
9716 $as_echo_n "(cached) " >&6
9718 case $python_prog_path in
9720 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
9723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9727 test -z "$as_dir" && as_dir
=.
9728 for ac_exec_ext
in '' $ac_executable_extensions; do
9729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9730 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
9742 python_prog_path
=$ac_cv_path_python_prog_path
9743 if test -n "$python_prog_path"; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
9745 $as_echo "$python_prog_path" >&6; }
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748 $as_echo "no" >&6; }
9752 if test "${python_prog_path}" = missing
; then
9755 python_prog
=${python_prog_path}
9758 # Not much we can do except assume the cross-compiler will find the
9764 # While we can't run python compiled for $host (unless host == build),
9765 # the user could write a script that provides the needed information,
9766 # so we support that.
9767 python_prog
="${with_python}"
9768 # Extract the first word of "${python_prog}", so it can be a program name with args.
9769 set dummy
${python_prog}; ac_word
=$2
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9771 $as_echo_n "checking for $ac_word... " >&6; }
9772 if test "${ac_cv_path_python_prog_path+set}" = set; then :
9773 $as_echo_n "(cached) " >&6
9775 case $python_prog_path in
9777 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
9780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9784 test -z "$as_dir" && as_dir
=.
9785 for ac_exec_ext
in '' $ac_executable_extensions; do
9786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9787 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
9788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9795 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
9799 python_prog_path
=$ac_cv_path_python_prog_path
9800 if test -n "$python_prog_path"; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
9802 $as_echo "$python_prog_path" >&6; }
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805 $as_echo "no" >&6; }
9809 if test "${python_prog_path}" = missing
; then
9810 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
9816 if test "${python_prog}" != missing
; then
9817 # We have a python program to use, but it may be too old.
9818 # Don't flag an error for --with-python=auto (the default).
9819 have_python_config
=yes
9820 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
9821 if test $?
!= 0; then
9822 have_python_config
=failed
9823 if test "${with_python}" != auto
; then
9824 as_fn_error
"failure running python-config --includes" "$LINENO" 5
9827 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
9828 if test $?
!= 0; then
9829 have_python_config
=failed
9830 if test "${with_python}" != auto
; then
9831 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
9834 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
9835 if test $?
!= 0; then
9836 have_python_config
=failed
9837 if test "${with_python}" != auto
; then
9838 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
9842 # We do not have a python executable we can use to determine where
9843 # to find the Python headers and libs. We cannot guess the include
9844 # path from the python_prefix either, because that include path
9845 # depends on the Python version. So, there is nothing much we can
9846 # do except assume that the compiler will be able to find those files.
9849 have_python_config
=no
9852 # If we have python-config, only try the configuration it provides.
9853 # Otherwise fallback on the old way of trying different versions of
9857 if test "${have_python_config}" = yes; then
9858 # Determine the Python version by extracting "-lpython<version>"
9859 # part of the python_libs. <version> is usually X.Y with X and Y
9860 # being decimal numbers, but can also be XY (seen on Windows).
9862 # The extraction is performed using sed with a regular expression.
9863 # Initially, the regexp used was using the '?' quantifier to make
9864 # the dot in the version number optional. Unfortunately, this
9865 # does not work with non-GNU versions of sed because, because of
9866 # what looks like a limitation (the '?' quantifier does not work
9867 # with back-references). We work around this limitation by using
9868 # the '*' quantifier instead. It means that, in theory, we might
9869 # match unexpected version strings such as "-lpython2..7", but
9870 # this seems unlikely in practice. And even if that happens,
9871 # an error will be triggered later on, when checking that version
9873 python_version
=`echo " ${python_libs} " \
9874 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
9875 case "${python_version}" in
9878 version
=${python_version}
9880 new_CPPFLAGS
=${python_includes}
9881 new_LIBS
=${python_libs}
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9883 $as_echo_n "checking for ${version}... " >&6; }
9884 save_CPPFLAGS
=$CPPFLAGS
9886 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9887 LIBS
="$LIBS $new_LIBS"
9888 found_usable_python
=no
9889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9900 if ac_fn_c_try_link
"$LINENO"; then :
9901 have_libpython
=${version}
9902 found_usable_python
=yes
9903 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9904 PYTHON_LIBS
=$new_LIBS
9906 rm -f core conftest.err conftest.
$ac_objext \
9907 conftest
$ac_exeext conftest.
$ac_ext
9908 CPPFLAGS
=$save_CPPFLAGS
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9911 $as_echo "${found_usable_python}" >&6; }
9915 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
9918 elif test "${have_python_config}" != failed
; then
9919 if test "${have_libpython}" = no
; then
9923 new_CPPFLAGS
=${python_includes}
9924 new_LIBS
="${python_libs} -lpython2.7"
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9926 $as_echo_n "checking for ${version}... " >&6; }
9927 save_CPPFLAGS
=$CPPFLAGS
9929 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9930 LIBS
="$LIBS $new_LIBS"
9931 found_usable_python
=no
9932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9943 if ac_fn_c_try_link
"$LINENO"; then :
9944 have_libpython
=${version}
9945 found_usable_python
=yes
9946 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9947 PYTHON_LIBS
=$new_LIBS
9949 rm -f core conftest.err conftest.
$ac_objext \
9950 conftest
$ac_exeext conftest.
$ac_ext
9951 CPPFLAGS
=$save_CPPFLAGS
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9954 $as_echo "${found_usable_python}" >&6; }
9957 if test "${have_libpython}" = no
; then
9961 new_CPPFLAGS
=${python_includes}
9962 new_LIBS
="${python_libs} -lpython2.6"
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9964 $as_echo_n "checking for ${version}... " >&6; }
9965 save_CPPFLAGS
=$CPPFLAGS
9967 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9968 LIBS
="$LIBS $new_LIBS"
9969 found_usable_python
=no
9970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9981 if ac_fn_c_try_link
"$LINENO"; then :
9982 have_libpython
=${version}
9983 found_usable_python
=yes
9984 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9985 PYTHON_LIBS
=$new_LIBS
9987 rm -f core conftest.err conftest.
$ac_objext \
9988 conftest
$ac_exeext conftest.
$ac_ext
9989 CPPFLAGS
=$save_CPPFLAGS
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9992 $as_echo "${found_usable_python}" >&6; }
9995 if test ${have_libpython} = no
; then
9999 new_CPPFLAGS
=${python_includes}
10000 new_LIBS
="${python_libs} -lpython2.5"
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10002 $as_echo_n "checking for ${version}... " >&6; }
10003 save_CPPFLAGS
=$CPPFLAGS
10005 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10006 LIBS
="$LIBS $new_LIBS"
10007 found_usable_python
=no
10008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10010 #include "Python.h"
10019 if ac_fn_c_try_link
"$LINENO"; then :
10020 have_libpython
=${version}
10021 found_usable_python
=yes
10022 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10023 PYTHON_LIBS
=$new_LIBS
10025 rm -f core conftest.err conftest.
$ac_objext \
10026 conftest
$ac_exeext conftest.
$ac_ext
10027 CPPFLAGS
=$save_CPPFLAGS
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10030 $as_echo "${found_usable_python}" >&6; }
10033 if test ${have_libpython} = no
; then
10037 new_CPPFLAGS
=${python_includes}
10038 new_LIBS
="${python_libs} -lpython2.4"
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10040 $as_echo_n "checking for ${version}... " >&6; }
10041 save_CPPFLAGS
=$CPPFLAGS
10043 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10044 LIBS
="$LIBS $new_LIBS"
10045 found_usable_python
=no
10046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10048 #include "Python.h"
10057 if ac_fn_c_try_link
"$LINENO"; then :
10058 have_libpython
=${version}
10059 found_usable_python
=yes
10060 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10061 PYTHON_LIBS
=$new_LIBS
10063 rm -f core conftest.err conftest.
$ac_objext \
10064 conftest
$ac_exeext conftest.
$ac_ext
10065 CPPFLAGS
=$save_CPPFLAGS
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10068 $as_echo "${found_usable_python}" >&6; }
10072 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
10074 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10076 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
10078 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10080 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
10082 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10084 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
10086 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10090 if test "${have_libpython}" = no
; then
10091 case "${with_python}" in
10093 as_fn_error
"python is missing or unusable" "$LINENO" 5
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10097 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10100 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
10104 if test -n "${python_prefix}"; then
10106 cat >>confdefs.h
<<_ACEOF
10107 #define WITH_PYTHON_PATH "${python_prefix}"
10111 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10112 if test "x$prefix" = xNONE
; then
10113 test_prefix
=/usr
/local
10115 test_prefix
=$prefix
10118 test_prefix
=$exec_prefix
10121 case ${python_prefix} in
10122 "${test_prefix}"|
"${test_prefix}/"*|\
10123 '${exec_prefix}'|
'${exec_prefix}/'*)
10128 cat >>confdefs.h
<<_ACEOF
10129 #define PYTHON_PATH_RELOCATABLE $value
10137 if test "${have_libpython}" != no
; then
10139 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10141 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10142 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10143 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10144 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10145 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10147 # Flags needed to compile Python code (taken from python-config --cflags).
10148 # We cannot call python-config directly because it will output whatever was
10149 # used when compiling the Python interpreter itself, including flags which
10150 # would make the python-related objects be compiled differently from the
10151 # rest of GDB (e.g., -O2 and -fPIC).
10152 if test "${GCC}" = yes; then
10153 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
10156 if test "x${tentative_python_cflags}" != x
; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10158 $as_echo_n "checking compiler flags for python code... " >&6; }
10159 for flag
in ${tentative_python_cflags}; do
10160 # Check that the compiler accepts it
10161 saved_CFLAGS
="$CFLAGS"
10162 CFLAGS
="$CFLAGS $flag"
10163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10174 if ac_fn_c_try_compile
"$LINENO"; then :
10175 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10178 CFLAGS
="$saved_CFLAGS"
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10181 $as_echo "${PYTHON_CFLAGS}" >&6; }
10184 # On x64 Windows, Python's include headers, and pyconfig.h in
10185 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10186 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10187 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10188 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10189 # The issue was reported to the Python community, but still isn't
10190 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10192 case "$gdb_host" in
10194 if test "${GCC}" = yes; then
10195 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10200 # Note that "python -m threading" cannot be used to check for
10201 # threading support due to a bug in Python 2.7.3
10202 # (http://bugs.python.org/issue15567).
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10204 $as_echo_n "checking whether python supports threads... " >&6; }
10205 saved_CPPFLAGS
="${CPPFLAGS}"
10206 CPPFLAGS
="${PYTHON_CPPFLAGS}"
10207 # Note that the test is reversed so that python_has_threads=yes on
10208 # unexpected failures.
10209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10210 /* end confdefs.h. */
10212 #include <Python.h>
10218 if ac_fn_c_try_cpp
"$LINENO"; then :
10219 python_has_threads
=no
10221 python_has_threads
=yes
10223 rm -f conftest.err conftest.
$ac_ext
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10225 $as_echo "${python_has_threads}" >&6; }
10226 CPPFLAGS
="${saved_CPPFLAGS}"
10228 # Even if Python support is not compiled in, we need to have this file
10229 # included so that the "python" command, et.al., still exists.
10230 CONFIG_OBS
="$CONFIG_OBS python.o"
10231 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10234 # Work around Python http://bugs.python.org/issue10112. See also
10235 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10236 # no effect. Note that the only test after this that uses Python is
10237 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10238 # run without -export-dynamic too.
10239 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10244 if test "${have_libpython}" != no
; then
10246 HAVE_PYTHON_FALSE
='#'
10248 HAVE_PYTHON_TRUE
='#'
10253 # -------------------- #
10254 # Check for libguile. #
10255 # -------------------- #
10262 # Check whether --with-guile was given.
10263 if test "${with_guile+set}" = set; then :
10264 withval
=$with_guile;
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10270 $as_echo_n "checking whether to use guile... " >&6; }
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10272 $as_echo "$with_guile" >&6; }
10274 # Extract the first word of "pkg-config", so it can be a program name with args.
10275 set dummy pkg-config
; ac_word
=$2
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10277 $as_echo_n "checking for $ac_word... " >&6; }
10278 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
10279 $as_echo_n "(cached) " >&6
10281 case $pkg_config_prog_path in
10283 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10287 for as_dir
in $PATH
10290 test -z "$as_dir" && as_dir
=.
10291 for ac_exec_ext
in '' $ac_executable_extensions; do
10292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10293 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10301 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10305 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10306 if test -n "$pkg_config_prog_path"; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10308 $as_echo "$pkg_config_prog_path" >&6; }
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311 $as_echo "no" >&6; }
10316 try_guile_versions
="guile-2.0"
10318 case "${with_guile}" in
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10321 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10324 if test "${pkg_config_prog_path}" = "missing"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10326 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10329 pkg_config
=${pkg_config_prog_path}
10330 guile_version_list
=${try_guile_versions}
10333 found_usable_guile
=checking
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10335 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10336 for guile_version
in ${guile_version_list}; do
10337 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10338 if test $?
!= 0; then
10341 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10342 if test $?
!= 0; then
10343 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10345 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10346 if test $?
!= 0; then
10347 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10349 found_usable_guile
=${guile_version}
10352 if test "${found_usable_guile}" = "checking"; then
10353 if test "${flag_errors}" = "yes"; then
10354 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10356 found_usable_guile
=no
10359 if test "${found_usable_guile}" != no
; then
10360 save_CPPFLAGS
=$CPPFLAGS
10362 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10363 LIBS
="$LIBS $new_LIBS"
10364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366 #include "libguile.h"
10375 if ac_fn_c_try_link
"$LINENO"; then :
10377 GUILE_CPPFLAGS
=$new_CPPFLAGS
10378 GUILE_LIBS
=$new_LIBS
10380 found_usable_guile
=no
10382 rm -f core conftest.err conftest.
$ac_objext \
10383 conftest
$ac_exeext conftest.
$ac_ext
10384 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10385 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
10387 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10392 CPPFLAGS
=$save_CPPFLAGS
10394 if test "${found_usable_guile}" = no
; then
10395 if test "${flag_errors}" = yes; then
10396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10398 as_fn_error
"linking guile version ${guile_version} test program failed
10399 See \`config.log' for more details." "$LINENO" 5; }
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10404 $as_echo "${found_usable_guile}" >&6; }
10409 if test "${pkg_config_prog_path}" = "missing"; then
10410 as_fn_error
"pkg-config not found" "$LINENO" 5
10413 pkg_config
=${pkg_config_prog_path}
10414 guile_version_list
=${try_guile_versions}
10417 found_usable_guile
=checking
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10419 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10420 for guile_version
in ${guile_version_list}; do
10421 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10422 if test $?
!= 0; then
10425 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10426 if test $?
!= 0; then
10427 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10429 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10430 if test $?
!= 0; then
10431 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10433 found_usable_guile
=${guile_version}
10436 if test "${found_usable_guile}" = "checking"; then
10437 if test "${flag_errors}" = "yes"; then
10438 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10440 found_usable_guile
=no
10443 if test "${found_usable_guile}" != no
; then
10444 save_CPPFLAGS
=$CPPFLAGS
10446 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10447 LIBS
="$LIBS $new_LIBS"
10448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450 #include "libguile.h"
10459 if ac_fn_c_try_link
"$LINENO"; then :
10461 GUILE_CPPFLAGS
=$new_CPPFLAGS
10462 GUILE_LIBS
=$new_LIBS
10464 found_usable_guile
=no
10466 rm -f core conftest.err conftest.
$ac_objext \
10467 conftest
$ac_exeext conftest.
$ac_ext
10468 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10469 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
10471 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10476 CPPFLAGS
=$save_CPPFLAGS
10478 if test "${found_usable_guile}" = no
; then
10479 if test "${flag_errors}" = yes; then
10480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10482 as_fn_error
"linking guile version ${guile_version} test program failed
10483 See \`config.log' for more details." "$LINENO" 5; }
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10488 $as_echo "${found_usable_guile}" >&6; }
10492 if test -x "${with_guile}"; then
10494 pkg_config
=${with_guile}
10495 guile_version_list
=${try_guile_versions}
10498 found_usable_guile
=checking
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10500 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10501 for guile_version
in ${guile_version_list}; do
10502 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10503 if test $?
!= 0; then
10506 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10507 if test $?
!= 0; then
10508 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10510 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10511 if test $?
!= 0; then
10512 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10514 found_usable_guile
=${guile_version}
10517 if test "${found_usable_guile}" = "checking"; then
10518 if test "${flag_errors}" = "yes"; then
10519 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10521 found_usable_guile
=no
10524 if test "${found_usable_guile}" != no
; then
10525 save_CPPFLAGS
=$CPPFLAGS
10527 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10528 LIBS
="$LIBS $new_LIBS"
10529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h. */
10531 #include "libguile.h"
10540 if ac_fn_c_try_link
"$LINENO"; then :
10542 GUILE_CPPFLAGS
=$new_CPPFLAGS
10543 GUILE_LIBS
=$new_LIBS
10545 found_usable_guile
=no
10547 rm -f core conftest.err conftest.
$ac_objext \
10548 conftest
$ac_exeext conftest.
$ac_ext
10549 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10550 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
10552 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10557 CPPFLAGS
=$save_CPPFLAGS
10559 if test "${found_usable_guile}" = no
; then
10560 if test "${flag_errors}" = yes; then
10561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10563 as_fn_error
"linking guile version ${guile_version} test program failed
10564 See \`config.log' for more details." "$LINENO" 5; }
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10569 $as_echo "${found_usable_guile}" >&6; }
10572 as_fn_error
"Guile config program not executable: ${with_guile}" "$LINENO" 5
10576 # Disallow --with=guile="" and --with-guile=foo/bar.
10577 as_fn_error
"invalid value for --with-guile" "$LINENO" 5
10580 # A space separate list of guile versions to try, in order.
10581 if test "${pkg_config_prog_path}" = "missing"; then
10582 as_fn_error
"pkg-config not found" "$LINENO" 5
10585 pkg_config
=${pkg_config_prog_path}
10586 guile_version_list
=${with_guile}
10589 found_usable_guile
=checking
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10591 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10592 for guile_version
in ${guile_version_list}; do
10593 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10594 if test $?
!= 0; then
10597 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10598 if test $?
!= 0; then
10599 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10601 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10602 if test $?
!= 0; then
10603 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10605 found_usable_guile
=${guile_version}
10608 if test "${found_usable_guile}" = "checking"; then
10609 if test "${flag_errors}" = "yes"; then
10610 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10612 found_usable_guile
=no
10615 if test "${found_usable_guile}" != no
; then
10616 save_CPPFLAGS
=$CPPFLAGS
10618 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10619 LIBS
="$LIBS $new_LIBS"
10620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10622 #include "libguile.h"
10631 if ac_fn_c_try_link
"$LINENO"; then :
10633 GUILE_CPPFLAGS
=$new_CPPFLAGS
10634 GUILE_LIBS
=$new_LIBS
10636 found_usable_guile
=no
10638 rm -f core conftest.err conftest.
$ac_objext \
10639 conftest
$ac_exeext conftest.
$ac_ext
10640 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10641 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
10643 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10648 CPPFLAGS
=$save_CPPFLAGS
10650 if test "${found_usable_guile}" = no
; then
10651 if test "${flag_errors}" = yes; then
10652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10654 as_fn_error
"linking guile version ${guile_version} test program failed
10655 See \`config.log' for more details." "$LINENO" 5; }
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10660 $as_echo "${found_usable_guile}" >&6; }
10665 if test "${have_libguile}" != no
; then
10666 case "${with_guile}" in
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
10670 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
10671 if test "${ac_cv_guild_program_name+set}" = set; then :
10672 $as_echo_n "(cached) " >&6
10674 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
10676 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
10677 # the 'guild' and 'bindir' variables. In that case, try to guess
10678 # what the program name is, at the risk of getting it wrong if
10679 # Guile was configured with '--program-suffix' or similar.
10680 if test "x$ac_cv_guild_program_name" = "x"; then
10681 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
10682 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
10687 $as_echo "$ac_cv_guild_program_name" >&6; }
10689 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
10690 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
10693 GUILD
="$ac_cv_guild_program_name"
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
10700 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
10701 if test "${ac_cv_guild_program_name+set}" = set; then :
10702 $as_echo_n "(cached) " >&6
10704 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
10706 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
10707 # the 'guild' and 'bindir' variables. In that case, try to guess
10708 # what the program name is, at the risk of getting it wrong if
10709 # Guile was configured with '--program-suffix' or similar.
10710 if test "x$ac_cv_guild_program_name" = "x"; then
10711 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
10712 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
10717 $as_echo "$ac_cv_guild_program_name" >&6; }
10719 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
10720 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
10723 GUILD
="$ac_cv_guild_program_name"
10730 if test "$cross_compiling" = no
; then
10733 GUILD_TARGET_FLAG
="--target=$host"
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
10740 $as_echo_n "checking whether guild supports this host... " >&6; }
10741 if test "${ac_cv_guild_ok+set}" = set; then :
10742 $as_echo_n "(cached) " >&6
10744 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
10745 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
10752 $as_echo "$ac_cv_guild_ok" >&6; }
10754 if test "$ac_cv_guild_ok" = no
; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
10757 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
10761 if test "${have_libguile}" != no
; then
10763 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
10765 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
10766 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
10767 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
10768 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
10769 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
10772 save_CPPFLAGS
="$CPPFLAGS"
10774 CPPFLAGS
="$GUILE_CPPFLAGS"
10775 for ac_func
in scm_new_smob
10777 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
10778 if test "x$ac_cv_func_scm_new_smob" = x
""yes; then :
10779 cat >>confdefs.h
<<_ACEOF
10780 #define HAVE_SCM_NEW_SMOB 1
10787 CPPFLAGS
="$save_CPPFLAGS"
10789 # Even if Guile support is not compiled in, we need to have these files
10791 CONFIG_OBS
="$CONFIG_OBS guile.o"
10792 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
10796 if test "${have_libguile}" != no
; then
10798 HAVE_GUILE_FALSE
='#'
10800 HAVE_GUILE_TRUE
='#'
10805 # --------------------- #
10806 # Check for libmcheck. #
10807 # --------------------- #
10809 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
10810 # but turn it off if Python is enabled with threads, since -lmcheck is
10811 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
10812 # and for releases.
10813 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
10814 && $development; then
10815 libmcheck_default
=yes
10817 libmcheck_default
=no
10820 # Check whether --enable-libmcheck was given.
10821 if test "${enable_libmcheck+set}" = set; then :
10822 enableval
=$enable_libmcheck; case "${enableval}" in
10823 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
10824 no | n
) ENABLE_LIBMCHECK
="no" ;;
10825 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
10830 if test -z "${ENABLE_LIBMCHECK}"; then
10831 ENABLE_LIBMCHECK
=${libmcheck_default}
10834 if test "$ENABLE_LIBMCHECK" = "yes" ; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
10836 $as_echo_n "checking for main in -lmcheck... " >&6; }
10837 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
10838 $as_echo_n "(cached) " >&6
10840 ac_check_lib_save_LIBS
=$LIBS
10841 LIBS
="-lmcheck $LIBS"
10842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10854 if ac_fn_c_try_link
"$LINENO"; then :
10855 ac_cv_lib_mcheck_main
=yes
10857 ac_cv_lib_mcheck_main
=no
10859 rm -f core conftest.err conftest.
$ac_objext \
10860 conftest
$ac_exeext conftest.
$ac_ext
10861 LIBS
=$ac_check_lib_save_LIBS
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
10864 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
10865 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
10866 cat >>confdefs.h
<<_ACEOF
10867 #define HAVE_LIBMCHECK 1
10870 LIBS
="-lmcheck $LIBS"
10877 if test "$ENABLE_LIBMCHECK" = "yes" \
10878 -a "${have_libpython}" != "no" \
10879 -a "${python_has_threads}" = "yes" ; then
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
10881 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
10885 # Check whether --with-intel_pt was given.
10886 if test "${with_intel_pt+set}" = set; then :
10887 withval
=$with_intel_pt;
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
10893 $as_echo_n "checking whether to use intel pt... " >&6; }
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
10895 $as_echo "$with_intel_pt" >&6; }
10897 if test "${with_intel_pt}" = no
; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
10899 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
10902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10905 #include <linux/perf_event.h>
10906 #ifndef PERF_ATTR_SIZE_VER5
10911 if ac_fn_c_try_cpp
"$LINENO"; then :
10916 rm -f conftest.err conftest.
$ac_ext
10917 if test "$perf_event" != yes; then
10918 if test "$with_intel_pt" = yes; then
10919 as_fn_error
"linux/perf_event.h missing or too old" "$LINENO" 5
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
10922 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
10936 acl_save_prefix
="$prefix"
10937 prefix
="$acl_final_prefix"
10938 acl_save_exec_prefix
="$exec_prefix"
10939 exec_prefix
="$acl_final_exec_prefix"
10941 eval additional_includedir
=\"$includedir\"
10942 eval additional_libdir
=\"$libdir\"
10944 exec_prefix
="$acl_save_exec_prefix"
10945 prefix
="$acl_save_prefix"
10948 # Check whether --with-libipt-prefix was given.
10949 if test "${with_libipt_prefix+set}" = set; then :
10950 withval
=$with_libipt_prefix;
10951 if test "X$withval" = "Xno"; then
10954 if test "X$withval" = "X"; then
10956 acl_save_prefix
="$prefix"
10957 prefix
="$acl_final_prefix"
10958 acl_save_exec_prefix
="$exec_prefix"
10959 exec_prefix
="$acl_final_exec_prefix"
10961 eval additional_includedir
=\"$includedir\"
10962 eval additional_libdir
=\"$libdir\"
10964 exec_prefix
="$acl_save_exec_prefix"
10965 prefix
="$acl_save_prefix"
10968 additional_includedir
="$withval/include"
10969 additional_libdir
="$withval/lib"
10980 names_already_handled
=
10981 names_next_round
='ipt '
10982 while test -n "$names_next_round"; do
10983 names_this_round
="$names_next_round"
10985 for name
in $names_this_round; do
10987 for n
in $names_already_handled; do
10988 if test "$n" = "$name"; then
10989 already_handled
=yes
10993 if test -z "$already_handled"; then
10994 names_already_handled
="$names_already_handled $name"
10995 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10996 eval value
=\"\
$HAVE_LIB$uppername\"
10997 if test -n "$value"; then
10998 if test "$value" = yes; then
10999 eval value
=\"\
$LIB$uppername\"
11000 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
11001 eval value
=\"\
$LTLIB$uppername\"
11002 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
11011 if test $use_additional = yes; then
11012 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11013 found_dir
="$additional_libdir"
11014 found_so
="$additional_libdir/lib$name.$shlibext"
11015 if test -f "$additional_libdir/lib$name.la"; then
11016 found_la
="$additional_libdir/lib$name.la"
11019 if test -f "$additional_libdir/lib$name.$libext"; then
11020 found_dir
="$additional_libdir"
11021 found_a
="$additional_libdir/lib$name.$libext"
11022 if test -f "$additional_libdir/lib$name.la"; then
11023 found_la
="$additional_libdir/lib$name.la"
11028 if test "X$found_dir" = "X"; then
11029 for x
in $LDFLAGS $LTLIBIPT; do
11031 acl_save_prefix
="$prefix"
11032 prefix
="$acl_final_prefix"
11033 acl_save_exec_prefix
="$exec_prefix"
11034 exec_prefix
="$acl_final_exec_prefix"
11036 exec_prefix
="$acl_save_exec_prefix"
11037 prefix
="$acl_save_prefix"
11041 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11042 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11044 found_so
="$dir/lib$name.$shlibext"
11045 if test -f "$dir/lib$name.la"; then
11046 found_la
="$dir/lib$name.la"
11049 if test -f "$dir/lib$name.$libext"; then
11051 found_a
="$dir/lib$name.$libext"
11052 if test -f "$dir/lib$name.la"; then
11053 found_la
="$dir/lib$name.la"
11059 if test "X$found_dir" != "X"; then
11064 if test "X$found_dir" != "X"; then
11065 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11066 if test "X$found_so" != "X"; then
11067 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11068 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11071 for x
in $ltrpathdirs; do
11072 if test "X$x" = "X$found_dir"; then
11077 if test -z "$haveit"; then
11078 ltrpathdirs
="$ltrpathdirs $found_dir"
11080 if test "$hardcode_direct" = yes; then
11081 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11083 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11084 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11086 for x
in $rpathdirs; do
11087 if test "X$x" = "X$found_dir"; then
11092 if test -z "$haveit"; then
11093 rpathdirs
="$rpathdirs $found_dir"
11097 for x
in $LDFLAGS $LIBIPT; do
11099 acl_save_prefix
="$prefix"
11100 prefix
="$acl_final_prefix"
11101 acl_save_exec_prefix
="$exec_prefix"
11102 exec_prefix
="$acl_final_exec_prefix"
11104 exec_prefix
="$acl_save_exec_prefix"
11105 prefix
="$acl_save_prefix"
11107 if test "X$x" = "X-L$found_dir"; then
11112 if test -z "$haveit"; then
11113 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11115 if test "$hardcode_minus_L" != no
; then
11116 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11118 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11124 if test "X$found_a" != "X"; then
11125 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
11127 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11130 additional_includedir
=
11131 case "$found_dir" in
11133 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11134 additional_includedir
="$basedir/include"
11137 if test "X$additional_includedir" != "X"; then
11138 if test "X$additional_includedir" != "X/usr/include"; then
11140 if test "X$additional_includedir" = "X/usr/local/include"; then
11141 if test -n "$GCC"; then
11143 linux
*) haveit
=yes;;
11147 if test -z "$haveit"; then
11148 for x
in $CPPFLAGS $INCIPT; do
11150 acl_save_prefix
="$prefix"
11151 prefix
="$acl_final_prefix"
11152 acl_save_exec_prefix
="$exec_prefix"
11153 exec_prefix
="$acl_final_exec_prefix"
11155 exec_prefix
="$acl_save_exec_prefix"
11156 prefix
="$acl_save_prefix"
11158 if test "X$x" = "X-I$additional_includedir"; then
11163 if test -z "$haveit"; then
11164 if test -d "$additional_includedir"; then
11165 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11171 if test -n "$found_la"; then
11172 save_libdir
="$libdir"
11173 case "$found_la" in
11174 */* |
*\\*) .
"$found_la" ;;
11175 *) .
"./$found_la" ;;
11177 libdir
="$save_libdir"
11178 for dep
in $dependency_libs; do
11181 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11182 if test "X$additional_libdir" != "X/usr/lib"; then
11184 if test "X$additional_libdir" = "X/usr/local/lib"; then
11185 if test -n "$GCC"; then
11187 linux
*) haveit
=yes;;
11191 if test -z "$haveit"; then
11193 for x
in $LDFLAGS $LIBIPT; do
11195 acl_save_prefix
="$prefix"
11196 prefix
="$acl_final_prefix"
11197 acl_save_exec_prefix
="$exec_prefix"
11198 exec_prefix
="$acl_final_exec_prefix"
11200 exec_prefix
="$acl_save_exec_prefix"
11201 prefix
="$acl_save_prefix"
11203 if test "X$x" = "X-L$additional_libdir"; then
11208 if test -z "$haveit"; then
11209 if test -d "$additional_libdir"; then
11210 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11214 for x
in $LDFLAGS $LTLIBIPT; do
11216 acl_save_prefix
="$prefix"
11217 prefix
="$acl_final_prefix"
11218 acl_save_exec_prefix
="$exec_prefix"
11219 exec_prefix
="$acl_final_exec_prefix"
11221 exec_prefix
="$acl_save_exec_prefix"
11222 prefix
="$acl_save_prefix"
11224 if test "X$x" = "X-L$additional_libdir"; then
11229 if test -z "$haveit"; then
11230 if test -d "$additional_libdir"; then
11231 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11238 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11239 if test "$enable_rpath" != no
; then
11241 for x
in $rpathdirs; do
11242 if test "X$x" = "X$dir"; then
11247 if test -z "$haveit"; then
11248 rpathdirs
="$rpathdirs $dir"
11251 for x
in $ltrpathdirs; do
11252 if test "X$x" = "X$dir"; then
11257 if test -z "$haveit"; then
11258 ltrpathdirs
="$ltrpathdirs $dir"
11263 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11266 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11269 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11270 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11276 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11277 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11283 if test "X$rpathdirs" != "X"; then
11284 if test -n "$hardcode_libdir_separator"; then
11286 for found_dir
in $rpathdirs; do
11287 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11289 acl_save_libdir
="$libdir"
11291 eval flag
=\"$hardcode_libdir_flag_spec\"
11292 libdir
="$acl_save_libdir"
11293 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11295 for found_dir
in $rpathdirs; do
11296 acl_save_libdir
="$libdir"
11297 libdir
="$found_dir"
11298 eval flag
=\"$hardcode_libdir_flag_spec\"
11299 libdir
="$acl_save_libdir"
11300 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11304 if test "X$ltrpathdirs" != "X"; then
11305 for found_dir
in $ltrpathdirs; do
11306 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11311 ac_save_CPPFLAGS
="$CPPFLAGS"
11313 for element
in $INCIPT; do
11315 for x
in $CPPFLAGS; do
11317 acl_save_prefix
="$prefix"
11318 prefix
="$acl_final_prefix"
11319 acl_save_exec_prefix
="$exec_prefix"
11320 exec_prefix
="$acl_final_exec_prefix"
11322 exec_prefix
="$acl_save_exec_prefix"
11323 prefix
="$acl_save_prefix"
11325 if test "X$x" = "X$element"; then
11330 if test -z "$haveit"; then
11331 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11337 $as_echo_n "checking for libipt... " >&6; }
11338 if test "${ac_cv_libipt+set}" = set; then :
11339 $as_echo_n "(cached) " >&6
11342 ac_save_LIBS
="$LIBS"
11343 LIBS
="$LIBS $LIBIPT"
11344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11346 #include "intel-pt.h"
11350 pt_insn_alloc_decoder (0);
11355 if ac_fn_c_try_link
"$LINENO"; then :
11360 rm -f core conftest.err conftest.
$ac_objext \
11361 conftest
$ac_exeext conftest.
$ac_ext
11362 LIBS
="$ac_save_LIBS"
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11366 $as_echo "$ac_cv_libipt" >&6; }
11367 if test "$ac_cv_libipt" = yes; then
11370 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11373 $as_echo_n "checking how to link with libipt... " >&6; }
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11375 $as_echo "$LIBIPT" >&6; }
11378 CPPFLAGS
="$ac_save_CPPFLAGS"
11388 if test "$HAVE_LIBIPT" != yes; then
11389 if test "$with_intel_pt" = yes; then
11390 as_fn_error
"libipt is missing or unusable" "$LINENO" 5
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
11393 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
11397 LIBS
="$LIBS $LIBIPT"
11398 for ac_func
in pt_insn_event
11400 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
11401 if test "x$ac_cv_func_pt_insn_event" = x
""yes; then :
11402 cat >>confdefs.h
<<_ACEOF
11403 #define HAVE_PT_INSN_EVENT 1
11409 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
11411 if test "x$ac_cv_member_struct_pt_insn_enabled" = x
""yes; then :
11413 cat >>confdefs.h
<<_ACEOF
11414 #define HAVE_STRUCT_PT_INSN_ENABLED 1
11419 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
11421 if test "x$ac_cv_member_struct_pt_insn_resynced" = x
""yes; then :
11423 cat >>confdefs.h
<<_ACEOF
11424 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
11434 # ------------------------- #
11435 # Checks for header files. #
11436 # ------------------------- #
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11439 $as_echo_n "checking for ANSI C header files... " >&6; }
11440 if test "${ac_cv_header_stdc+set}" = set; then :
11441 $as_echo_n "(cached) " >&6
11443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11445 #include <stdlib.h>
11446 #include <stdarg.h>
11447 #include <string.h>
11458 if ac_fn_c_try_compile
"$LINENO"; then :
11459 ac_cv_header_stdc
=yes
11461 ac_cv_header_stdc
=no
11463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11465 if test $ac_cv_header_stdc = yes; then
11466 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11469 #include <string.h>
11472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11473 $EGREP "memchr" >/dev
/null
2>&1; then :
11476 ac_cv_header_stdc
=no
11482 if test $ac_cv_header_stdc = yes; then
11483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11486 #include <stdlib.h>
11489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11490 $EGREP "free" >/dev
/null
2>&1; then :
11493 ac_cv_header_stdc
=no
11499 if test $ac_cv_header_stdc = yes; then
11500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11501 if test "$cross_compiling" = yes; then :
11504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11507 #include <stdlib.h>
11508 #if ((' ' & 0x0FF) == 0x020)
11509 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11510 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11512 # define ISLOWER(c) \
11513 (('a' <= (c) && (c) <= 'i') \
11514 || ('j' <= (c) && (c) <= 'r') \
11515 || ('s' <= (c) && (c) <= 'z'))
11516 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11519 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11524 for (i = 0; i < 256; i++)
11525 if (XOR (islower (i), ISLOWER (i))
11526 || toupper (i) != TOUPPER (i))
11531 if ac_fn_c_try_run
"$LINENO"; then :
11534 ac_cv_header_stdc
=no
11536 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11537 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11543 $as_echo "$ac_cv_header_stdc" >&6; }
11544 if test $ac_cv_header_stdc = yes; then
11546 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11550 # elf_hp.h is for HP/UX 64-bit shared library support.
11551 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
11554 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11555 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
11556 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
11557 termios.h elf_hp.h \
11560 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11561 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11562 eval as_val
=\$
$as_ac_Header
11563 if test "x$as_val" = x
""yes; then :
11564 cat >>confdefs.h
<<_ACEOF
11565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11572 for ac_header
in sys
/proc.h
11574 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11575 # include <sys/param.h>
11579 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
11580 cat >>confdefs.h
<<_ACEOF
11581 #define HAVE_SYS_PROC_H 1
11588 for ac_header
in sys
/user.h
11590 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11591 # include <sys/param.h>
11595 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
11596 cat >>confdefs.h
<<_ACEOF
11597 #define HAVE_SYS_USER_H 1
11605 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
11607 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11608 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11609 eval as_val
=\$
$as_ac_Header
11610 if test "x$as_val" = x
""yes; then :
11611 cat >>confdefs.h
<<_ACEOF
11612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11619 for ac_header
in term.h
11621 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11622 # include <curses.h>
11626 if test "x$ac_cv_header_term_h" = x
""yes; then :
11627 cat >>confdefs.h
<<_ACEOF
11628 #define HAVE_TERM_H 1
11636 # ------------------------- #
11637 # Checks for declarations. #
11638 # ------------------------- #
11641 # Check for presence and size of long long.
11642 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11643 if test "x$ac_cv_type_long_long" = x
""yes; then :
11645 cat >>confdefs.h
<<_ACEOF
11646 #define HAVE_LONG_LONG 1
11649 # The cast to long int works around a bug in the HP C Compiler
11650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11652 # This bug is HP SR number 8606223364.
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11654 $as_echo_n "checking size of long long... " >&6; }
11655 if test "${ac_cv_sizeof_long_long+set}" = set; then :
11656 $as_echo_n "(cached) " >&6
11658 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
11661 if test "$ac_cv_type_long_long" = yes; then
11662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11664 { as_fn_set_status
77
11665 as_fn_error
"cannot compute sizeof (long long)
11666 See \`config.log' for more details." "$LINENO" 5; }; }
11668 ac_cv_sizeof_long_long
=0
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11674 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11678 cat >>confdefs.h
<<_ACEOF
11679 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11686 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
11687 if test "x$ac_cv_have_decl_basename_char_p_" = x
""yes; then :
11693 cat >>confdefs.h
<<_ACEOF
11694 #define HAVE_DECL_BASENAME $ac_have_decl
11696 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
11697 if test "x$ac_cv_have_decl_ffs" = x
""yes; then :
11703 cat >>confdefs.h
<<_ACEOF
11704 #define HAVE_DECL_FFS $ac_have_decl
11706 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
11707 if test "x$ac_cv_have_decl_asprintf" = x
""yes; then :
11713 cat >>confdefs.h
<<_ACEOF
11714 #define HAVE_DECL_ASPRINTF $ac_have_decl
11716 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
11717 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
11723 cat >>confdefs.h
<<_ACEOF
11724 #define HAVE_DECL_VASPRINTF $ac_have_decl
11726 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11727 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
11733 cat >>confdefs.h
<<_ACEOF
11734 #define HAVE_DECL_SNPRINTF $ac_have_decl
11736 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11737 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
11743 cat >>confdefs.h
<<_ACEOF
11744 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11747 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
11748 if test "x$ac_cv_have_decl_strtol" = x
""yes; then :
11754 cat >>confdefs.h
<<_ACEOF
11755 #define HAVE_DECL_STRTOL $ac_have_decl
11757 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
11758 if test "x$ac_cv_have_decl_strtoul" = x
""yes; then :
11764 cat >>confdefs.h
<<_ACEOF
11765 #define HAVE_DECL_STRTOUL $ac_have_decl
11767 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
11768 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
11774 cat >>confdefs.h
<<_ACEOF
11775 #define HAVE_DECL_STRTOLL $ac_have_decl
11777 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
11778 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
11784 cat >>confdefs.h
<<_ACEOF
11785 #define HAVE_DECL_STRTOULL $ac_have_decl
11788 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
11789 if test "x$ac_cv_have_decl_strverscmp" = x
""yes; then :
11795 cat >>confdefs.h
<<_ACEOF
11796 #define HAVE_DECL_STRVERSCMP $ac_have_decl
11801 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11802 if test "x$ac_cv_have_decl_free" = x
""yes; then :
11808 cat >>confdefs.h
<<_ACEOF
11809 #define HAVE_DECL_FREE $ac_have_decl
11811 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11812 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
11818 cat >>confdefs.h
<<_ACEOF
11819 #define HAVE_DECL_MALLOC $ac_have_decl
11821 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11822 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
11828 cat >>confdefs.h
<<_ACEOF
11829 #define HAVE_DECL_REALLOC $ac_have_decl
11831 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11832 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
11838 cat >>confdefs.h
<<_ACEOF
11839 #define HAVE_DECL_SNPRINTF $ac_have_decl
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11844 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11845 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11846 $as_echo_n "(cached) " >&6
11848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11850 #include <locale.h>
11859 if ac_fn_c_try_link
"$LINENO"; then :
11860 am_cv_val_LC_MESSAGES
=yes
11862 am_cv_val_LC_MESSAGES
=no
11864 rm -f core conftest.err conftest.
$ac_objext \
11865 conftest
$ac_exeext conftest.
$ac_ext
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11868 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11869 if test $am_cv_val_LC_MESSAGES = yes; then
11871 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11876 # ----------------------- #
11877 # Checks for structures. #
11878 # ----------------------- #
11880 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11881 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
11883 cat >>confdefs.h
<<_ACEOF
11884 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11889 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11890 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
11892 cat >>confdefs.h
<<_ACEOF
11893 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11900 # ------------------ #
11901 # Checks for types. #
11902 # ------------------ #
11904 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11905 #include <sys/socket.h>
11908 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
11910 cat >>confdefs.h
<<_ACEOF
11911 #define HAVE_SOCKLEN_T 1
11918 # ------------------------------------- #
11919 # Checks for compiler characteristics. #
11920 # ------------------------------------- #
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11923 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11924 if test "${ac_cv_c_const+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11933 /* FIXME: Include the comments suggested by Paul. */
11934 #ifndef __cplusplus
11935 /* Ultrix mips cc rejects this. */
11936 typedef int charset[2];
11938 /* SunOS 4.1.1 cc rejects this. */
11939 char const *const *pcpcc;
11941 /* NEC SVR4.0.2 mips cc rejects this. */
11942 struct point {int x, y;};
11943 static struct point const zero = {0,0};
11944 /* AIX XL C 1.02.0.0 rejects this.
11945 It does not let you subtract one const X* pointer from another in
11946 an arm of an if-expression whose if-part is not a constant
11948 const char *g = "string";
11949 pcpcc = &g + (g ? g-g : 0);
11950 /* HPUX 7.0 cc rejects these. */
11952 ppc = (char**) pcpcc;
11953 pcpcc = (char const *const *) ppc;
11954 { /* SCO 3.2v4 cc rejects this. */
11956 char const *s = 0 ? (char *) 0 : (char const *) 0;
11961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11962 int x[] = {25, 17};
11963 const int *foo = &x[0];
11966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11967 typedef const int *iptr;
11971 { /* AIX XL C 1.02.0.0 rejects this saying
11972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11973 struct s { int j; const int *ap[3]; };
11974 struct s *b; b->j = 5;
11976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11977 const int foo = 10;
11978 if (!foo) return 0;
11980 return !cs[0] && !zero.x;
11987 if ac_fn_c_try_compile
"$LINENO"; then :
11992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11995 $as_echo "$ac_cv_c_const" >&6; }
11996 if test $ac_cv_c_const = no
; then
11998 $as_echo "#define const /**/" >>confdefs.h
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12003 $as_echo_n "checking for inline... " >&6; }
12004 if test "${ac_cv_c_inline+set}" = set; then :
12005 $as_echo_n "(cached) " >&6
12008 for ac_kw
in inline __inline__ __inline
; do
12009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011 #ifndef __cplusplus
12013 static $ac_kw foo_t static_foo () {return 0; }
12014 $ac_kw foo_t foo () {return 0; }
12018 if ac_fn_c_try_compile
"$LINENO"; then :
12019 ac_cv_c_inline
=$ac_kw
12021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12022 test "$ac_cv_c_inline" != no
&& break
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12027 $as_echo "$ac_cv_c_inline" >&6; }
12029 case $ac_cv_c_inline in
12032 case $ac_cv_c_inline in
12034 *) ac_val
=$ac_cv_c_inline;;
12036 cat >>confdefs.h
<<_ACEOF
12037 #ifndef __cplusplus
12038 #define inline $ac_val
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12045 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12046 if test "${ac_cv_c_bigendian+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
12049 ac_cv_c_bigendian
=unknown
12050 # See if we're dealing with a universal compiler.
12051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12053 #ifndef __APPLE_CC__
12054 not a universal capable compiler
12059 if ac_fn_c_try_compile
"$LINENO"; then :
12061 # Check for potential -arch flags. It is not universal unless
12062 # there are at least two -arch flags with different values.
12065 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12066 if test -n "$ac_prev"; then
12068 i?
86 | x86_64 | ppc | ppc64
)
12069 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12072 ac_cv_c_bigendian
=universal
12078 elif test "x$ac_word" = "x-arch"; then
12083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12084 if test $ac_cv_c_bigendian = unknown
; then
12085 # See if sys/param.h defines the BYTE_ORDER macro.
12086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12088 #include <sys/types.h>
12089 #include <sys/param.h>
12094 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12095 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12097 bogus endian macros
12104 if ac_fn_c_try_compile
"$LINENO"; then :
12105 # It does; now see whether it defined to BIG_ENDIAN or not.
12106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12108 #include <sys/types.h>
12109 #include <sys/param.h>
12114 #if BYTE_ORDER != BIG_ENDIAN
12122 if ac_fn_c_try_compile
"$LINENO"; then :
12123 ac_cv_c_bigendian
=yes
12125 ac_cv_c_bigendian
=no
12127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12131 if test $ac_cv_c_bigendian = unknown
; then
12132 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135 #include <limits.h>
12140 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12141 bogus endian macros
12148 if ac_fn_c_try_compile
"$LINENO"; then :
12149 # It does; now see whether it defined to _BIG_ENDIAN or not.
12150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152 #include <limits.h>
12157 #ifndef _BIG_ENDIAN
12165 if ac_fn_c_try_compile
"$LINENO"; then :
12166 ac_cv_c_bigendian
=yes
12168 ac_cv_c_bigendian
=no
12170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12174 if test $ac_cv_c_bigendian = unknown
; then
12175 # Compile a test program.
12176 if test "$cross_compiling" = yes; then :
12177 # Try to guess by grepping values from an object file.
12178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12180 short int ascii_mm[] =
12181 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12182 short int ascii_ii[] =
12183 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12184 int use_ascii (int i) {
12185 return ascii_mm[i] + ascii_ii[i];
12187 short int ebcdic_ii[] =
12188 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12189 short int ebcdic_mm[] =
12190 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12191 int use_ebcdic (int i) {
12192 return ebcdic_mm[i] + ebcdic_ii[i];
12199 return use_ascii (foo) == use_ebcdic (foo);
12204 if ac_fn_c_try_compile
"$LINENO"; then :
12205 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12206 ac_cv_c_bigendian
=yes
12208 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12209 if test "$ac_cv_c_bigendian" = unknown
; then
12210 ac_cv_c_bigendian
=no
12212 # finding both strings is unlikely to happen, but who knows?
12213 ac_cv_c_bigendian
=unknown
12217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12220 /* end confdefs.h. */
12221 $ac_includes_default
12226 /* Are we little or big endian? From Harbison&Steele. */
12230 char c[sizeof (long int)];
12233 return u.c[sizeof (long int) - 1] == 1;
12239 if ac_fn_c_try_run
"$LINENO"; then :
12240 ac_cv_c_bigendian
=no
12242 ac_cv_c_bigendian
=yes
12244 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12245 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12251 $as_echo "$ac_cv_c_bigendian" >&6; }
12252 case $ac_cv_c_bigendian in #(
12254 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12260 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12264 as_fn_error
"unknown endianness
12265 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12269 # ------------------------------ #
12270 # Checks for library functions. #
12271 # ------------------------------ #
12273 for ac_header
in stdlib.h unistd.h
12275 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12276 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12277 eval as_val
=\$
$as_ac_Header
12278 if test "x$as_val" = x
""yes; then :
12279 cat >>confdefs.h
<<_ACEOF
12280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12287 for ac_func
in getpagesize
12289 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12290 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12291 cat >>confdefs.h
<<_ACEOF
12292 #define HAVE_GETPAGESIZE 1
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12299 $as_echo_n "checking for working mmap... " >&6; }
12300 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12303 if test "$cross_compiling" = yes; then :
12304 ac_cv_func_mmap_fixed_mapped
=no
12306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308 $ac_includes_default
12309 /* malloc might have been renamed as rpl_malloc. */
12312 /* Thanks to Mike Haertel and Jim Avera for this test.
12313 Here is a matrix of mmap possibilities:
12314 mmap private not fixed
12315 mmap private fixed at somewhere currently unmapped
12316 mmap private fixed at somewhere already mapped
12317 mmap shared not fixed
12318 mmap shared fixed at somewhere currently unmapped
12319 mmap shared fixed at somewhere already mapped
12320 For private mappings, we should verify that changes cannot be read()
12321 back from the file, nor mmap's back from the file at a different
12322 address. (There have been systems where private was not correctly
12323 implemented like the infamous i386 svr4.0, and systems where the
12324 VM page cache was not coherent with the file system buffer cache
12325 like early versions of FreeBSD and possibly contemporary NetBSD.)
12326 For shared mappings, we should conversely verify that changes get
12327 propagated back to all the places they're supposed to be.
12329 Grep wants private fixed already mapped.
12330 The main things grep needs to know about mmap are:
12331 * does it exist and is it safe to write into the mmap'd area
12332 * how to use it (BSD variants) */
12335 #include <sys/mman.h>
12337 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12341 /* This mess was copied from the GNU getpagesize.h. */
12342 #ifndef HAVE_GETPAGESIZE
12343 /* Assume that all systems that can run configure have sys/param.h. */
12344 # ifndef HAVE_SYS_PARAM_H
12345 # define HAVE_SYS_PARAM_H 1
12348 # ifdef _SC_PAGESIZE
12349 # define getpagesize() sysconf(_SC_PAGESIZE)
12350 # else /* no _SC_PAGESIZE */
12351 # ifdef HAVE_SYS_PARAM_H
12352 # include <sys/param.h>
12353 # ifdef EXEC_PAGESIZE
12354 # define getpagesize() EXEC_PAGESIZE
12355 # else /* no EXEC_PAGESIZE */
12357 # define getpagesize() NBPG * CLSIZE
12360 # endif /* no CLSIZE */
12361 # else /* no NBPG */
12363 # define getpagesize() NBPC
12364 # else /* no NBPC */
12366 # define getpagesize() PAGESIZE
12367 # endif /* PAGESIZE */
12368 # endif /* no NBPC */
12369 # endif /* no NBPG */
12370 # endif /* no EXEC_PAGESIZE */
12371 # else /* no HAVE_SYS_PARAM_H */
12372 # define getpagesize() 8192 /* punt totally */
12373 # endif /* no HAVE_SYS_PARAM_H */
12374 # endif /* no _SC_PAGESIZE */
12376 #endif /* no HAVE_GETPAGESIZE */
12381 char *data, *data2, *data3;
12385 pagesize = getpagesize ();
12387 /* First, make a file with some known garbage in it. */
12388 data = (char *) malloc (pagesize);
12391 for (i = 0; i < pagesize; ++i)
12392 *(data + i) = rand ();
12394 fd = creat ("conftest.mmap", 0600);
12397 if (write (fd, data, pagesize) != pagesize)
12401 /* Next, try to mmap the file at a fixed address which already has
12402 something else allocated at it. If we can, also make sure that
12403 we see the same garbage. */
12404 fd = open ("conftest.mmap", O_RDWR);
12407 data2 = (char *) malloc (2 * pagesize);
12410 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12411 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12412 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12414 for (i = 0; i < pagesize; ++i)
12415 if (*(data + i) != *(data2 + i))
12418 /* Finally, make sure that changes to the mapped area do not
12419 percolate back to the file as seen by read(). (This is a bug on
12420 some variants of i386 svr4.0.) */
12421 for (i = 0; i < pagesize; ++i)
12422 *(data2 + i) = *(data2 + i) + 1;
12423 data3 = (char *) malloc (pagesize);
12426 if (read (fd, data3, pagesize) != pagesize)
12428 for (i = 0; i < pagesize; ++i)
12429 if (*(data + i) != *(data3 + i))
12435 if ac_fn_c_try_run
"$LINENO"; then :
12436 ac_cv_func_mmap_fixed_mapped
=yes
12438 ac_cv_func_mmap_fixed_mapped
=no
12440 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12441 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12446 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12447 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12449 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12452 rm -f conftest.mmap
12454 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12455 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12459 cat >>confdefs.h
<<_ACEOF
12465 for ac_header
in vfork.h
12467 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12468 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12469 cat >>confdefs.h
<<_ACEOF
12470 #define HAVE_VFORK_H 1
12477 for ac_func
in fork vfork
12479 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12480 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12481 eval as_val
=\$
$as_ac_var
12482 if test "x$as_val" = x
""yes; then :
12483 cat >>confdefs.h
<<_ACEOF
12484 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12490 if test "x$ac_cv_func_fork" = xyes
; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12492 $as_echo_n "checking for working fork... " >&6; }
12493 if test "${ac_cv_func_fork_works+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12496 if test "$cross_compiling" = yes; then :
12497 ac_cv_func_fork_works
=cross
12499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501 $ac_includes_default
12506 /* By Ruediger Kuhlmann. */
12507 return fork () < 0;
12513 if ac_fn_c_try_run
"$LINENO"; then :
12514 ac_cv_func_fork_works
=yes
12516 ac_cv_func_fork_works
=no
12518 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12519 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12524 $as_echo "$ac_cv_func_fork_works" >&6; }
12527 ac_cv_func_fork_works
=$ac_cv_func_fork
12529 if test "x$ac_cv_func_fork_works" = xcross
; then
12531 *-*-amigaos* |
*-*-msdosdjgpp*)
12532 # Override, as these systems have only a dummy fork() stub
12533 ac_cv_func_fork_works
=no
12536 ac_cv_func_fork_works
=yes
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12540 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12542 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12543 if test "x$ac_cv_func_vfork" = xyes
; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12545 $as_echo_n "checking for working vfork... " >&6; }
12546 if test "${ac_cv_func_vfork_works+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12549 if test "$cross_compiling" = yes; then :
12550 ac_cv_func_vfork_works
=cross
12552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12554 /* Thanks to Paul Eggert for this test. */
12555 $ac_includes_default
12556 #include <sys/wait.h>
12557 #ifdef HAVE_VFORK_H
12558 # include <vfork.h>
12560 /* On some sparc systems, changes by the child to local and incoming
12561 argument registers are propagated back to the parent. The compiler
12562 is told about this with #include <vfork.h>, but some compilers
12563 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12564 static variable whose address is put into a register that is
12565 clobbered by the vfork. */
12568 sparc_address_test (int arg)
12570 sparc_address_test (arg) int arg;
12573 static pid_t child;
12591 pid_t parent = getpid ();
12594 sparc_address_test (0);
12599 /* Here is another test for sparc vfork register problems. This
12600 test uses lots of local variables, at least as many local
12601 variables as main has allocated so far including compiler
12602 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12603 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12604 reuse the register of parent for one of the local variables,
12605 since it will think that parent can't possibly be used any more
12606 in this routine. Assigning to the local variable will thus
12607 munge parent in the parent process. */
12609 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12610 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12611 /* Convince the compiler that p..p7 are live; otherwise, it might
12612 use the same hardware register for all 8 local variables. */
12613 if (p != p1 || p != p2 || p != p3 || p != p4
12614 || p != p5 || p != p6 || p != p7)
12617 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12618 from child file descriptors. If the child closes a descriptor
12619 before it execs or exits, this munges the parent's descriptor
12620 as well. Test for this by closing stdout in the child. */
12621 _exit(close(fileno(stdout)) != 0);
12626 while (wait(&status) != child)
12629 /* Was there some problem with vforking? */
12632 /* Did the child fail? (This shouldn't happen.) */
12635 /* Did the vfork/compiler bug occur? */
12636 || parent != getpid()
12638 /* Did the file descriptor bug occur? */
12639 || fstat(fileno(stdout), &st) != 0
12644 if ac_fn_c_try_run
"$LINENO"; then :
12645 ac_cv_func_vfork_works
=yes
12647 ac_cv_func_vfork_works
=no
12649 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12650 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12655 $as_echo "$ac_cv_func_vfork_works" >&6; }
12658 if test "x$ac_cv_func_fork_works" = xcross
; then
12659 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12661 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12664 if test "x$ac_cv_func_vfork_works" = xyes
; then
12666 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12670 $as_echo "#define vfork fork" >>confdefs.h
12673 if test "x$ac_cv_func_fork_works" = xyes
; then
12675 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12679 for ac_func
in getauxval getrusage getuid getgid \
12680 pipe poll pread pread64 pwrite resize_term \
12681 sbrk setpgid setpgrp setsid \
12682 sigaction sigprocmask sigsetmask socketpair \
12683 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12684 setrlimit getrlimit posix_madvise waitpid \
12685 ptrace64 sigaltstack mkdtemp setns
12687 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12688 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12689 eval as_val
=\$
$as_ac_var
12690 if test "x$as_val" = x
""yes; then :
12691 cat >>confdefs.h
<<_ACEOF
12692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12700 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12701 if test "${am_cv_langinfo_codeset+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
12704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12706 #include <langinfo.h>
12710 char* cs = nl_langinfo(CODESET);
12715 if ac_fn_c_try_link
"$LINENO"; then :
12716 am_cv_langinfo_codeset
=yes
12718 am_cv_langinfo_codeset
=no
12720 rm -f core conftest.err conftest.
$ac_objext \
12721 conftest
$ac_exeext conftest.
$ac_ext
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12725 $as_echo "$am_cv_langinfo_codeset" >&6; }
12726 if test $am_cv_langinfo_codeset = yes; then
12728 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12734 $as_echo_n "checking for ANSI C header files... " >&6; }
12735 if test "${ac_cv_header_stdc+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
12738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h. */
12740 #include <stdlib.h>
12741 #include <stdarg.h>
12742 #include <string.h>
12753 if ac_fn_c_try_compile
"$LINENO"; then :
12754 ac_cv_header_stdc
=yes
12756 ac_cv_header_stdc
=no
12758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12760 if test $ac_cv_header_stdc = yes; then
12761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12764 #include <string.h>
12767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12768 $EGREP "memchr" >/dev
/null
2>&1; then :
12771 ac_cv_header_stdc
=no
12777 if test $ac_cv_header_stdc = yes; then
12778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12780 /* end confdefs.h. */
12781 #include <stdlib.h>
12784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12785 $EGREP "free" >/dev
/null
2>&1; then :
12788 ac_cv_header_stdc
=no
12794 if test $ac_cv_header_stdc = yes; then
12795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12796 if test "$cross_compiling" = yes; then :
12799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12802 #include <stdlib.h>
12803 #if ((' ' & 0x0FF) == 0x020)
12804 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12805 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12807 # define ISLOWER(c) \
12808 (('a' <= (c) && (c) <= 'i') \
12809 || ('j' <= (c) && (c) <= 'r') \
12810 || ('s' <= (c) && (c) <= 'z'))
12811 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12814 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12819 for (i = 0; i < 256; i++)
12820 if (XOR (islower (i), ISLOWER (i))
12821 || toupper (i) != TOUPPER (i))
12826 if ac_fn_c_try_run
"$LINENO"; then :
12829 ac_cv_header_stdc
=no
12831 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12832 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12838 $as_echo "$ac_cv_header_stdc" >&6; }
12839 if test $ac_cv_header_stdc = yes; then
12841 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12845 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12846 # for constant arguments. Useless!
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12848 $as_echo_n "checking for working alloca.h... " >&6; }
12849 if test "${ac_cv_working_alloca_h+set}" = set; then :
12850 $as_echo_n "(cached) " >&6
12852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h. */
12854 #include <alloca.h>
12858 char *p = (char *) alloca (2 * sizeof (int));
12864 if ac_fn_c_try_link
"$LINENO"; then :
12865 ac_cv_working_alloca_h
=yes
12867 ac_cv_working_alloca_h
=no
12869 rm -f core conftest.err conftest.
$ac_objext \
12870 conftest
$ac_exeext conftest.
$ac_ext
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12873 $as_echo "$ac_cv_working_alloca_h" >&6; }
12874 if test $ac_cv_working_alloca_h = yes; then
12876 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12881 $as_echo_n "checking for alloca... " >&6; }
12882 if test "${ac_cv_func_alloca_works+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
12885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12888 # define alloca __builtin_alloca
12891 # include <malloc.h>
12892 # define alloca _alloca
12894 # ifdef HAVE_ALLOCA_H
12895 # include <alloca.h>
12900 # ifndef alloca /* predefined by HP cc +Olibcalls */
12911 char *p = (char *) alloca (1);
12917 if ac_fn_c_try_link
"$LINENO"; then :
12918 ac_cv_func_alloca_works
=yes
12920 ac_cv_func_alloca_works
=no
12922 rm -f core conftest.err conftest.
$ac_objext \
12923 conftest
$ac_exeext conftest.
$ac_ext
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12926 $as_echo "$ac_cv_func_alloca_works" >&6; }
12928 if test $ac_cv_func_alloca_works = yes; then
12930 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12933 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12934 # that cause trouble. Some versions do not even contain alloca or
12935 # contain a buggy version. If you still want to use their alloca,
12936 # use ar to extract alloca.o from them instead of compiling alloca.c.
12938 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12940 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12944 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12945 if test "${ac_cv_os_cray+set}" = set; then :
12946 $as_echo_n "(cached) " >&6
12948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h. */
12950 #if defined CRAY && ! defined CRAY2
12957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12958 $EGREP "webecray" >/dev
/null
2>&1; then :
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12967 $as_echo "$ac_cv_os_cray" >&6; }
12968 if test $ac_cv_os_cray = yes; then
12969 for ac_func
in _getb67 GETB67 getb67
; do
12970 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12971 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12972 eval as_val
=\$
$as_ac_var
12973 if test "x$as_val" = x
""yes; then :
12975 cat >>confdefs.h
<<_ACEOF
12976 #define CRAY_STACKSEG_END $ac_func
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12986 $as_echo_n "checking stack direction for C alloca... " >&6; }
12987 if test "${ac_cv_c_stack_direction+set}" = set; then :
12988 $as_echo_n "(cached) " >&6
12990 if test "$cross_compiling" = yes; then :
12991 ac_cv_c_stack_direction
=0
12993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h. */
12995 $ac_includes_default
12997 find_stack_direction ()
12999 static char *addr = 0;
13004 return find_stack_direction ();
13007 return (&dummy > addr) ? 1 : -1;
13013 return find_stack_direction () < 0;
13016 if ac_fn_c_try_run
"$LINENO"; then :
13017 ac_cv_c_stack_direction
=1
13019 ac_cv_c_stack_direction
=-1
13021 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13022 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13027 $as_echo "$ac_cv_c_stack_direction" >&6; }
13028 cat >>confdefs.h
<<_ACEOF
13029 #define STACK_DIRECTION $ac_cv_c_stack_direction
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13038 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13039 if test "${am_cv_langinfo_codeset+set}" = set; then :
13040 $as_echo_n "(cached) " >&6
13042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13044 #include <langinfo.h>
13048 char* cs = nl_langinfo(CODESET);
13053 if ac_fn_c_try_link
"$LINENO"; then :
13054 am_cv_langinfo_codeset
=yes
13056 am_cv_langinfo_codeset
=no
13058 rm -f core conftest.err conftest.
$ac_objext \
13059 conftest
$ac_exeext conftest.
$ac_ext
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13063 $as_echo "$am_cv_langinfo_codeset" >&6; }
13064 if test $am_cv_langinfo_codeset = yes; then
13066 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13071 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/syscall.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h
13073 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13074 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13075 eval as_val
=\$
$as_ac_Header
13076 if test "x$as_val" = x
""yes; then :
13077 cat >>confdefs.h
<<_ACEOF
13078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13086 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
13088 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13089 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13090 eval as_val
=\$
$as_ac_var
13091 if test "x$as_val" = x
""yes; then :
13092 cat >>confdefs.h
<<_ACEOF
13093 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13100 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13101 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
13107 cat >>confdefs.h
<<_ACEOF
13108 #define HAVE_DECL_STRERROR $ac_have_decl
13110 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13111 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
13117 cat >>confdefs.h
<<_ACEOF
13118 #define HAVE_DECL_STRSTR $ac_have_decl
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13123 $as_echo_n "checking for sigsetjmp... " >&6; }
13124 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
13125 $as_echo_n "(cached) " >&6
13127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13130 #include <setjmp.h>
13135 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13140 if ac_fn_c_try_compile
"$LINENO"; then :
13141 gdb_cv_func_sigsetjmp
=yes
13143 gdb_cv_func_sigsetjmp
=no
13145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13148 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13149 if test $gdb_cv_func_sigsetjmp = yes; then
13151 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13156 # Check the return and argument types of ptrace.
13159 for ac_header
in sys
/ptrace.h ptrace.h
13161 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13162 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13163 eval as_val
=\$
$as_ac_Header
13164 if test "x$as_val" = x
""yes; then :
13165 cat >>confdefs.h
<<_ACEOF
13166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13174 gdb_ptrace_headers
='
13175 #include <sys/types.h>
13176 #if HAVE_SYS_PTRACE_H
13177 # include <sys/ptrace.h>
13180 # include <unistd.h>
13183 # There is no point in checking if we don't have a prototype.
13184 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13186 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
13192 cat >>confdefs.h
<<_ACEOF
13193 #define HAVE_DECL_PTRACE $ac_have_decl
13195 if test $ac_have_decl = 1; then :
13199 : ${gdb_cv_func_ptrace_ret='int'}
13200 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13204 # Check return type. Varargs (used on GNU/Linux) conflict with the
13205 # empty argument list, so check for that explicitly.
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13207 $as_echo_n "checking return type of ptrace... " >&6; }
13208 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
13209 $as_echo_n "(cached) " >&6
13211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13213 $gdb_ptrace_headers
13217 extern long ptrace (enum __ptrace_request, ...);
13222 if ac_fn_c_try_compile
"$LINENO"; then :
13223 gdb_cv_func_ptrace_ret
='long'
13225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13227 $gdb_ptrace_headers
13231 extern int ptrace ();
13236 if ac_fn_c_try_compile
"$LINENO"; then :
13237 gdb_cv_func_ptrace_ret
='int'
13239 gdb_cv_func_ptrace_ret
='long'
13241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13246 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13248 cat >>confdefs.h
<<_ACEOF
13249 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13252 # Check argument types.
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13254 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13255 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
13256 $as_echo_n "(cached) " >&6
13259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13261 $gdb_ptrace_headers
13265 extern long ptrace (enum __ptrace_request, ...);
13270 if ac_fn_c_try_compile
"$LINENO"; then :
13271 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
13274 for gdb_arg1
in 'int' 'long'; do
13275 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13276 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13277 for gdb_arg4
in 'int' 'long' 'void *'; do
13278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280 $gdb_ptrace_headers
13285 extern $gdb_cv_func_ptrace_ret
13286 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13292 if ac_fn_c_try_compile
"$LINENO"; then :
13293 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13297 for gdb_arg5
in 'int *' 'int' 'long'; do
13298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300 $gdb_ptrace_headers
13305 extern $gdb_cv_func_ptrace_ret
13306 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13312 if ac_fn_c_try_compile
"$LINENO"; then :
13314 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13323 # Provide a safe default value.
13324 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13330 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13331 ac_save_IFS
=$IFS; IFS
=','
13332 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13336 cat >>confdefs.h
<<_ACEOF
13337 #define PTRACE_TYPE_ARG1 $1
13341 cat >>confdefs.h
<<_ACEOF
13342 #define PTRACE_TYPE_ARG3 $3
13346 cat >>confdefs.h
<<_ACEOF
13347 #define PTRACE_TYPE_ARG4 $4
13350 if test -n "$5"; then
13352 cat >>confdefs.h
<<_ACEOF
13353 #define PTRACE_TYPE_ARG5 $5
13359 if test "$cross_compiling" = no
; then
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13361 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13362 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13363 $as_echo_n "(cached) " >&6
13365 if test "$cross_compiling" = yes; then :
13366 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
13368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h. */
13370 $ac_includes_default
13374 /* If this system has a BSD-style setpgrp which takes arguments,
13375 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13376 exit successfully. */
13377 return setpgrp (1,1) != -1;
13382 if ac_fn_c_try_run
"$LINENO"; then :
13383 ac_cv_func_setpgrp_void
=no
13385 ac_cv_func_setpgrp_void
=yes
13387 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13388 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13393 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13394 if test $ac_cv_func_setpgrp_void = yes; then
13396 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13402 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13403 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13404 $as_echo_n "(cached) " >&6
13406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h. */
13409 #include <unistd.h>
13415 if (setpgrp(1,1) == -1)
13424 if ac_fn_c_try_compile
"$LINENO"; then :
13425 ac_cv_func_setpgrp_void
=no
13427 ac_cv_func_setpgrp_void
=yes
13429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13432 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13433 if test $ac_cv_func_setpgrp_void = yes; then
13434 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13439 # Assume we'll default to using the included libiberty regex.
13440 gdb_use_included_regex
=yes
13442 # However, if the system regex is GNU regex, then default to *not*
13443 # using the included regex.
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13445 $as_echo_n "checking for GNU regex... " >&6; }
13446 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
13447 $as_echo_n "(cached) " >&6
13449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13451 #include <gnu-versions.h>
13455 #define REGEX_INTERFACE_VERSION 1
13456 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13457 # error "Version mismatch"
13463 if ac_fn_c_try_compile
"$LINENO"; then :
13464 gdb_cv_have_gnu_regex
=yes
13466 gdb_cv_have_gnu_regex
=no
13468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13471 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13472 if test $gdb_cv_have_gnu_regex = yes; then
13473 gdb_use_included_regex
=no
13477 # Check whether --with-included-regex was given.
13478 if test "${with_included_regex+set}" = set; then :
13479 withval
=$with_included_regex; gdb_with_regex
=$withval
13481 gdb_with_regex
=$gdb_use_included_regex
13484 if test "$gdb_with_regex" = yes; then
13486 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13490 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13491 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13492 #include <sys/proc.h>
13495 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
13497 cat >>confdefs.h
<<_ACEOF
13498 #define HAVE_STRUCT_THREAD_TD_PCB 1
13505 # See if <sys/lwp.h> defines `struct lwp`.
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13507 $as_echo_n "checking for struct lwp... " >&6; }
13508 if test "${gdb_cv_struct_lwp+set}" = set; then :
13509 $as_echo_n "(cached) " >&6
13511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513 #include <sys/param.h>
13515 #include <sys/lwp.h>
13524 if ac_fn_c_try_compile
"$LINENO"; then :
13525 gdb_cv_struct_lwp
=yes
13527 gdb_cv_struct_lwp
=no
13529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13532 $as_echo "$gdb_cv_struct_lwp" >&6; }
13533 if test $gdb_cv_struct_lwp = yes; then
13535 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13539 # See if <machine/reg.h> degines `struct reg'.
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13541 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13542 if test "${gdb_cv_struct_reg+set}" = set; then :
13543 $as_echo_n "(cached) " >&6
13545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13547 #include <sys/types.h>
13548 #include <machine/reg.h>
13557 if ac_fn_c_try_compile
"$LINENO"; then :
13558 gdb_cv_struct_reg
=yes
13560 gdb_cv_struct_reg
=no
13562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13565 $as_echo "$gdb_cv_struct_reg" >&6; }
13566 if test $gdb_cv_struct_reg = yes; then
13568 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13572 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13573 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13574 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
13575 #include <machine/reg.h>
13577 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
13579 cat >>confdefs.h
<<_ACEOF
13580 #define HAVE_STRUCT_REG_R_FS 1
13585 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
13586 #include <machine/reg.h>
13588 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
13590 cat >>confdefs.h
<<_ACEOF
13591 #define HAVE_STRUCT_REG_R_GS 1
13598 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
13599 # Older amd64 Linux's don't have the fs_base and gs_base members of
13600 # `struct user_regs_struct'.
13601 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>
13603 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
13605 cat >>confdefs.h
<<_ACEOF
13606 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
13611 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>
13613 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
13615 cat >>confdefs.h
<<_ACEOF
13616 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
13623 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13625 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13626 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13627 $as_echo_n "(cached) " >&6
13629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13631 #include <sys/ptrace.h>
13640 if ac_fn_c_try_compile
"$LINENO"; then :
13641 gdb_cv_have_ptrace_getregs
=yes
13643 gdb_cv_have_ptrace_getregs
=no
13645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13649 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13650 if test $gdb_cv_have_ptrace_getregs = yes; then
13652 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13656 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13658 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13659 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13660 $as_echo_n "(cached) " >&6
13662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13664 #include <sys/ptrace.h>
13673 if ac_fn_c_try_compile
"$LINENO"; then :
13674 gdb_cv_have_ptrace_getfpxregs
=yes
13676 gdb_cv_have_ptrace_getfpxregs
=no
13678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13682 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13683 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13685 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13689 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13691 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13692 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13693 $as_echo_n "(cached) " >&6
13695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13697 #include <sys/types.h>
13698 #include <sys/ptrace.h>
13707 if ac_fn_c_try_compile
"$LINENO"; then :
13708 gdb_cv_have_pt_getdbregs
=yes
13710 gdb_cv_have_pt_getdbregs
=no
13712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13716 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13717 if test $gdb_cv_have_pt_getdbregs = yes; then
13719 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13723 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13725 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13726 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13731 #include <sys/types.h>
13732 #include <sys/ptrace.h>
13741 if ac_fn_c_try_compile
"$LINENO"; then :
13742 gdb_cv_have_pt_getxmmregs
=yes
13744 gdb_cv_have_pt_getxmmregs
=no
13746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13750 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13751 if test $gdb_cv_have_pt_getxmmregs = yes; then
13753 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13757 # See if <sys/ptrace.h> supports LWP names on FreeBSD
13758 # Older FreeBSD versions don't have the pl_tdname member of
13759 # `struct ptrace_lwpinfo'.
13760 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
13762 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = x
""yes; then :
13764 cat >>confdefs.h
<<_ACEOF
13765 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
13772 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
13773 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
13775 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>
13777 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = x
""yes; then :
13779 cat >>confdefs.h
<<_ACEOF
13780 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
13787 # Detect which type of /proc is in use, such as for Solaris.
13789 if test "${target}" = "${host}"; then
13791 *-*-sysv4.2
* |
*-*-sysv5* )
13793 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13796 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
13798 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13804 if test "$ac_cv_header_sys_procfs_h" = yes; then
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13806 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13807 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13808 $as_echo_n "(cached) " >&6
13810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13814 /* Needed for new procfs interface on sparc-solaris. */
13815 #define _STRUCTURED_PROC 1
13816 #include <sys/procfs.h>
13825 if ac_fn_c_try_compile
"$LINENO"; then :
13826 bfd_cv_have_sys_procfs_type_gregset_t
=yes
13828 bfd_cv_have_sys_procfs_type_gregset_t
=no
13831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13834 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13836 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13840 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13843 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13844 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13845 $as_echo_n "(cached) " >&6
13847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13851 /* Needed for new procfs interface on sparc-solaris. */
13852 #define _STRUCTURED_PROC 1
13853 #include <sys/procfs.h>
13862 if ac_fn_c_try_compile
"$LINENO"; then :
13863 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
13865 bfd_cv_have_sys_procfs_type_fpregset_t
=no
13868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13871 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13873 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13877 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13880 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13881 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13882 $as_echo_n "(cached) " >&6
13884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13885 /* end confdefs.h. */
13888 /* Needed for new procfs interface on sparc-solaris. */
13889 #define _STRUCTURED_PROC 1
13890 #include <sys/procfs.h>
13899 if ac_fn_c_try_compile
"$LINENO"; then :
13900 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
13902 bfd_cv_have_sys_procfs_type_prgregset_t
=no
13905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13908 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13910 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13914 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13917 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13918 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13919 $as_echo_n "(cached) " >&6
13921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h. */
13925 /* Needed for new procfs interface on sparc-solaris. */
13926 #define _STRUCTURED_PROC 1
13927 #include <sys/procfs.h>
13936 if ac_fn_c_try_compile
"$LINENO"; then :
13937 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
13939 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
13942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13945 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13947 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13951 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13954 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13955 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13956 $as_echo_n "(cached) " >&6
13958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13962 /* Needed for new procfs interface on sparc-solaris. */
13963 #define _STRUCTURED_PROC 1
13964 #include <sys/procfs.h>
13973 if ac_fn_c_try_compile
"$LINENO"; then :
13974 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
13976 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
13979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13982 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13984 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13988 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13991 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13992 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13993 $as_echo_n "(cached) " >&6
13995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13999 /* Needed for new procfs interface on sparc-solaris. */
14000 #define _STRUCTURED_PROC 1
14001 #include <sys/procfs.h>
14010 if ac_fn_c_try_compile
"$LINENO"; then :
14011 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14013 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14019 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14021 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14025 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14028 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14029 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
14030 $as_echo_n "(cached) " >&6
14032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14036 /* Needed for new procfs interface on sparc-solaris. */
14037 #define _STRUCTURED_PROC 1
14038 #include <sys/procfs.h>
14047 if ac_fn_c_try_compile
"$LINENO"; then :
14048 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14050 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14056 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14058 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14062 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
14065 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
14066 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
14067 $as_echo_n "(cached) " >&6
14069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14073 /* Needed for new procfs interface on sparc-solaris. */
14074 #define _STRUCTURED_PROC 1
14075 #include <sys/procfs.h>
14084 if ac_fn_c_try_compile
"$LINENO"; then :
14085 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
14087 bfd_cv_have_sys_procfs_type_prsysent_t
=no
14090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14093 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
14095 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
14099 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
14102 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
14103 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
14104 $as_echo_n "(cached) " >&6
14106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h. */
14110 /* Needed for new procfs interface on sparc-solaris. */
14111 #define _STRUCTURED_PROC 1
14112 #include <sys/procfs.h>
14121 if ac_fn_c_try_compile
"$LINENO"; then :
14122 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
14124 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
14127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14130 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
14132 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
14136 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
14139 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
14140 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
14141 $as_echo_n "(cached) " >&6
14143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14147 /* Needed for new procfs interface on sparc-solaris. */
14148 #define _STRUCTURED_PROC 1
14149 #include <sys/procfs.h>
14153 pr_sigaction64_t avar
14158 if ac_fn_c_try_compile
"$LINENO"; then :
14159 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
14161 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
14164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14167 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
14169 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
14173 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
14176 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
14177 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
14178 $as_echo_n "(cached) " >&6
14180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14184 /* Needed for new procfs interface on sparc-solaris. */
14185 #define _STRUCTURED_PROC 1
14186 #include <sys/procfs.h>
14190 pr_siginfo64_t avar
14195 if ac_fn_c_try_compile
"$LINENO"; then :
14196 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
14198 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
14201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14204 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
14206 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
14210 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
14216 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
14218 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
14219 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
14220 $as_echo_n "(cached) " >&6
14222 if test "$cross_compiling" = yes; then :
14223 gdb_cv_prfpregset_t_broken
=yes
14225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14227 #include <sys/procfs.h>
14230 if (sizeof (prfpregset_t) == sizeof (void *))
14235 if ac_fn_c_try_run
"$LINENO"; then :
14236 gdb_cv_prfpregset_t_broken
=no
14238 gdb_cv_prfpregset_t_broken
=yes
14240 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14241 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14247 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14248 if test $gdb_cv_prfpregset_t_broken = yes; then
14250 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14256 # Check if the compiler supports the `long long' type.
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14259 $as_echo_n "checking for long long support in compiler... " >&6; }
14260 if test "${gdb_cv_c_long_long+set}" = set; then :
14261 $as_echo_n "(cached) " >&6
14263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14265 extern long long foo;
14269 switch (foo & 2) { case 0: return 1; }
14274 if ac_fn_c_try_compile
"$LINENO"; then :
14275 gdb_cv_c_long_long
=yes
14277 gdb_cv_c_long_long
=no
14279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14282 $as_echo "$gdb_cv_c_long_long" >&6; }
14283 if test $gdb_cv_c_long_long != yes; then
14284 # libdecnumber requires long long.
14285 as_fn_error
"Compiler must support long long for GDB." "$LINENO" 5
14288 # Check if the compiler and runtime support printing long longs.
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14291 $as_echo_n "checking for long long support in printf... " >&6; }
14292 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14293 $as_echo_n "(cached) " >&6
14295 if test "$cross_compiling" = yes; then :
14296 gdb_cv_printf_has_long_long
=no
14298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14300 $ac_includes_default
14306 l = (l << 16) + 0x0123;
14307 l = (l << 16) + 0x4567;
14308 l = (l << 16) + 0x89ab;
14309 l = (l << 16) + 0xcdef;
14310 sprintf (buf, "0x%016llx", l);
14311 return (strcmp ("0x0123456789abcdef", buf));
14316 if ac_fn_c_try_run
"$LINENO"; then :
14317 gdb_cv_printf_has_long_long
=yes
14319 gdb_cv_printf_has_long_long
=no
14321 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14322 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14327 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14328 if test $gdb_cv_printf_has_long_long = yes; then
14330 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14334 # Check if the compiler and runtime support printing decfloats.
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14337 $as_echo_n "checking for decfloat support in printf... " >&6; }
14338 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14339 $as_echo_n "(cached) " >&6
14341 if test "$cross_compiling" = yes; then :
14342 gdb_cv_printf_has_decfloat
=no
14344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14346 $ac_includes_default
14351 _Decimal32 d32 = 1.2345df;
14352 _Decimal64 d64 = 1.2345dd;
14353 _Decimal128 d128 = 1.2345dl;
14354 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14355 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14360 if ac_fn_c_try_run
"$LINENO"; then :
14361 gdb_cv_printf_has_decfloat
=yes
14363 gdb_cv_printf_has_decfloat
=no
14365 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14366 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14371 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14372 if test $gdb_cv_printf_has_decfloat = yes; then
14374 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14378 # Check if the compiler supports the `long double' type. We can't use
14379 # AC_C_LONG_DOUBLE because that one does additional checks on the
14380 # constants defined in <float.h> that fail on some systems,
14381 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14384 $as_echo_n "checking for long double support in compiler... " >&6; }
14385 if test "${gdb_cv_c_long_double+set}" = set; then :
14386 $as_echo_n "(cached) " >&6
14388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14392 if ac_fn_c_try_compile
"$LINENO"; then :
14393 gdb_cv_c_long_double
=yes
14395 gdb_cv_c_long_double
=no
14397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14400 $as_echo "$gdb_cv_c_long_double" >&6; }
14401 if test $gdb_cv_c_long_double = yes; then
14403 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14407 # Check if the compiler and runtime support printing long doubles.
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14410 $as_echo_n "checking for long double support in printf... " >&6; }
14411 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14412 $as_echo_n "(cached) " >&6
14414 if test "$cross_compiling" = yes; then :
14415 gdb_cv_printf_has_long_double
=no
14417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14419 $ac_includes_default
14424 long double f = 3.141592653;
14425 sprintf (buf, "%Lg", f);
14426 return (strncmp ("3.14159", buf, 7));
14431 if ac_fn_c_try_run
"$LINENO"; then :
14432 gdb_cv_printf_has_long_double
=yes
14434 gdb_cv_printf_has_long_double
=no
14436 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14437 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14442 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14443 if test $gdb_cv_printf_has_long_double = yes; then
14445 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14449 # Check if the compiler and runtime support scanning long doubles.
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14452 $as_echo_n "checking for long double support in scanf... " >&6; }
14453 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14454 $as_echo_n "(cached) " >&6
14456 if test "$cross_compiling" = yes; then :
14457 gdb_cv_scanf_has_long_double
=no
14459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14465 char *buf = "3.141592653";
14467 sscanf (buf, "%Lg", &f);
14468 return !(f > 3.14159 && f < 3.14160);
14473 if ac_fn_c_try_run
"$LINENO"; then :
14474 gdb_cv_scanf_has_long_double
=yes
14476 gdb_cv_scanf_has_long_double
=no
14478 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14479 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14484 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14485 if test $gdb_cv_scanf_has_long_double = yes; then
14487 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14494 $as_echo_n "checking for -bbigtoc option... " >&6; }
14495 if test "${gdb_cv_bigtoc+set}" = set; then :
14496 $as_echo_n "(cached) " >&6
14499 SAVE_LDFLAGS
=$LDFLAGS
14502 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14503 *) gdb_cv_bigtoc
=-bbigtoc ;;
14506 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14518 if ac_fn_c_try_link
"$LINENO"; then :
14523 rm -f core conftest.err conftest.
$ac_objext \
14524 conftest
$ac_exeext conftest.
$ac_ext
14525 LDFLAGS
="${SAVE_LDFLAGS}"
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14529 $as_echo "$gdb_cv_bigtoc" >&6; }
14530 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14535 $as_echo_n "checking for the dynamic export flag... " >&6; }
14537 if test "${gdb_native}" = yes; then
14538 # The dynamically loaded libthread_db needs access to symbols in the gdb
14539 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14540 # may not be supported there.
14541 old_LDFLAGS
="$LDFLAGS"
14542 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14543 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14544 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14545 if test "${have_libpython}" = no
; then
14546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14547 /* end confdefs.h. */
14557 if ac_fn_c_try_link
"$LINENO"; then :
14560 rm -f core conftest.err conftest.
$ac_objext \
14561 conftest
$ac_exeext conftest.
$ac_ext
14563 # Workaround http://bugs.python.org/issue4434 where static
14564 # libpythonX.Y.a would get its symbols required for
14565 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14566 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14568 # Note the workaround for Python
14569 # http://bugs.python.org/issue10112 earlier has removed
14570 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
14571 # here too, as otherwise it'd make this -Wl,--dynamic-list test
14573 old_CFLAGS
="$CFLAGS"
14574 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
14576 LIBS
="$LIBS $PYTHON_LIBS"
14577 old_CPPFLAGS
="$CPPFLAGS"
14578 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
14579 if test "$cross_compiling" = yes; then :
14582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 #include "Python.h"
14590 err = PyRun_SimpleString ("import itertools\n");
14592 return err == 0 ? 0 : 1;
14597 if ac_fn_c_try_run
"$LINENO"; then :
14600 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14601 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14605 CFLAGS
="$old_CFLAGS"
14606 CPPFLAGS
="$old_CPPFLAGS"
14608 LDFLAGS
="$old_LDFLAGS"
14610 if $dynamic_list; then
14611 found
="-Wl,--dynamic-list"
14612 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14615 RDYNAMIC
="-rdynamic"
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14619 $as_echo "$found" >&6; }
14622 if test ${build} = ${host} -a ${host} = ${target} ; then
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14626 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14627 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14628 $as_echo_n "(cached) " >&6
14630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14632 #include <sys/pthdebug.h>
14636 #ifndef PTHDB_VERSION_3
14643 if ac_fn_c_try_compile
"$LINENO"; then :
14644 gdb_cv_have_aix_thread_debug
=yes
14646 gdb_cv_have_aix_thread_debug
=no
14648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14652 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14653 if test $gdb_cv_have_aix_thread_debug = yes; then
14654 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
14655 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
14656 LIBS
="$LIBS -lpthdebug"
14658 # Older versions of AIX do not provide the declaration for
14659 # the getthrds function (it appears that it was introduced
14661 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14663 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
14669 cat >>confdefs.h
<<_ACEOF
14670 #define HAVE_DECL_GETTHRDS $ac_have_decl
14679 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14681 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14682 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14683 $as_echo_n "(cached) " >&6
14685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14687 #include <thread_db.h>
14691 int i = TD_NOTALLOC;
14696 if ac_fn_c_try_compile
"$LINENO"; then :
14697 gdb_cv_thread_db_h_has_td_notalloc
=yes
14699 gdb_cv_thread_db_h_has_td_notalloc
=no
14702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14706 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14708 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14709 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14710 $as_echo_n "(cached) " >&6
14712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14713 /* end confdefs.h. */
14714 #include <thread_db.h>
14718 int i = TD_VERSION;
14723 if ac_fn_c_try_compile
"$LINENO"; then :
14724 gdb_cv_thread_db_h_has_td_version
=yes
14726 gdb_cv_thread_db_h_has_td_version
=no
14729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14733 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14735 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14736 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14737 $as_echo_n "(cached) " >&6
14739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14741 #include <thread_db.h>
14750 if ac_fn_c_try_compile
"$LINENO"; then :
14751 gdb_cv_thread_db_h_has_td_notls
=yes
14753 gdb_cv_thread_db_h_has_td_notls
=no
14756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14760 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14762 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14764 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14767 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14769 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14772 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14774 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14778 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14780 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
14786 cat >>confdefs.h
<<_ACEOF
14787 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14791 if test "$cross_compiling" = yes; then :
14792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14794 #include <sys/personality.h>
14799 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14800 # define ADDR_NO_RANDOMIZE 0x0040000
14802 /* Test the flag could be set and stays set. */
14803 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14804 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14810 if ac_fn_c_try_link
"$LINENO"; then :
14811 have_personality
=true
14813 have_personality
=false
14815 rm -f core conftest.err conftest.
$ac_objext \
14816 conftest
$ac_exeext conftest.
$ac_ext
14818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14820 #include <sys/personality.h>
14825 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14826 # define ADDR_NO_RANDOMIZE 0x0040000
14828 /* Test the flag could be set and stays set. */
14829 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14830 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14836 if ac_fn_c_try_run
"$LINENO"; then :
14837 have_personality
=true
14839 have_personality
=false
14841 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14842 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14845 if $have_personality
14848 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14861 cat >>confdefs.h
<<_ACEOF
14862 #define GDBINIT "$gdbinit"
14867 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
14868 # except that the argument to --with-sysroot is optional.
14869 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
14870 if test "x$with_sysroot" = xyes
; then
14871 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
14874 # Check whether --with-sysroot was given.
14875 if test "${with_sysroot+set}" = set; then :
14876 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
14878 TARGET_SYSTEM_ROOT
=
14882 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14883 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14884 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
14885 ac_define_dir
=`eval echo $ac_define_dir`
14887 cat >>confdefs.h
<<_ACEOF
14888 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
14894 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14895 if test "x$prefix" = xNONE
; then
14896 test_prefix
=/usr
/local
14898 test_prefix
=$prefix
14901 test_prefix
=$exec_prefix
14904 case ${ac_define_dir} in
14905 "${test_prefix}"|
"${test_prefix}/"*|\
14906 '${exec_prefix}'|
'${exec_prefix}/'*)
14911 cat >>confdefs.h
<<_ACEOF
14912 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
14919 # Check whether --with-system-gdbinit was given.
14920 if test "${with_system_gdbinit+set}" = set; then :
14921 withval
=$with_system_gdbinit;
14922 SYSTEM_GDBINIT
=$withval
14928 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14929 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14930 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
14931 ac_define_dir
=`eval echo $ac_define_dir`
14933 cat >>confdefs.h
<<_ACEOF
14934 #define SYSTEM_GDBINIT "$ac_define_dir"
14940 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14941 if test "x$prefix" = xNONE
; then
14942 test_prefix
=/usr
/local
14944 test_prefix
=$prefix
14947 test_prefix
=$exec_prefix
14950 case ${ac_define_dir} in
14951 "${test_prefix}"|
"${test_prefix}/"*|\
14952 '${exec_prefix}'|
'${exec_prefix}/'*)
14957 cat >>confdefs.h
<<_ACEOF
14958 #define SYSTEM_GDBINIT_RELOCATABLE $value
14965 # Check whether --enable-werror was given.
14966 if test "${enable_werror+set}" = set; then :
14967 enableval
=$enable_werror; case "${enableval}" in
14968 yes | y
) ERROR_ON_WARNING
="yes" ;;
14969 no | n
) ERROR_ON_WARNING
="no" ;;
14970 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14975 # Enable -Werror by default when using gcc. Turn it off for releases.
14976 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
14977 ERROR_ON_WARNING
=yes
14981 if test "${ERROR_ON_WARNING}" = yes ; then
14982 WERROR_CFLAGS
="-Werror"
14985 # The options we'll try to enable.
14986 build_warnings
="-Wall -Wpointer-arith \
14987 -Wno-unused -Wunused-value -Wunused-function \
14988 -Wno-switch -Wno-char-subscripts \
14989 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
14990 -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \
14991 -Wno-mismatched-tags"
14995 # Enable -Wno-format by default when using gcc on mingw since many
14996 # GCC versions complain about %I64.
14997 build_warnings
="$build_warnings -Wno-format" ;;
14999 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15000 # doesn't understand.
15001 build_warnings
="$build_warnings -Wno-unknown-pragmas"
15002 # Solaris 11 <unistd.h> marks vfork deprecated.
15003 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
15004 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
15007 # Check whether --enable-build-warnings was given.
15008 if test "${enable_build_warnings+set}" = set; then :
15009 enableval
=$enable_build_warnings; case "${enableval}" in
15011 no
) build_warnings
="-w";;
15012 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15013 build_warnings
="${build_warnings} ${t}";;
15014 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15015 build_warnings
="${t} ${build_warnings}";;
15016 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15018 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15019 echo "Setting compiler warning flags = $build_warnings" 6>&1
15022 # Check whether --enable-gdb-build-warnings was given.
15023 if test "${enable_gdb_build_warnings+set}" = set; then :
15024 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15026 no
) build_warnings
="-w";;
15027 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15028 build_warnings
="${build_warnings} ${t}";;
15029 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15030 build_warnings
="${t} ${build_warnings}";;
15031 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15033 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15034 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15038 # The set of warnings supported by a C++ compiler is not the same as
15039 # of the C compiler.
15041 ac_cpp
='$CXXCPP $CPPFLAGS'
15042 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15043 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15044 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15048 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15051 $as_echo_n "checking compiler warning flags... " >&6; }
15052 # Separate out the -Werror flag as some files just cannot be
15053 # compiled with it enabled.
15054 for w
in ${build_warnings}; do
15055 # GCC does not complain about -Wno-unknown-warning. Invert
15056 # and test -Wunknown-warning instead.
15059 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
15065 -Werr*) WERROR_CFLAGS
=-Werror ;;
15067 # Check whether GCC accepts it.
15068 saved_CFLAGS
="$CFLAGS"
15069 CFLAGS
="$CFLAGS -Werror $wtest"
15070 saved_CXXFLAGS
="$CXXFLAGS"
15071 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
15072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15083 if ac_fn_cxx_try_compile
"$LINENO"; then :
15084 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15087 CFLAGS
="$saved_CFLAGS"
15088 CXXFLAGS
="$saved_CXXFLAGS"
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15092 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15098 ac_cpp='$CPP $CPPFLAGS'
15099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15105 # In the Cygwin environment, we need some additional flags.
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15107 $as_echo_n "checking
for cygwin...
" >&6; }
15108 if test "${gdb_cv_os_cygwin+set}" = set; then :
15109 $as_echo_n "(cached
) " >&6
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15114 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15118 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15119 $EGREP "^lose$
" >/dev/null 2>&1; then :
15120 gdb_cv_os_cygwin=yes
15122 gdb_cv_os_cygwin=no
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15128 $as_echo "$gdb_cv_os_cygwin" >&6; }
15131 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15133 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15134 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15135 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15139 # libreadline needs libuser32.a in a cygwin environment
15141 if test x$gdb_cv_os_cygwin = xyes; then
15142 WIN32LIBS="-luser32"
15143 case "${target}" in
15144 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15149 # The ser-tcp.c module requires sockets.
15153 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15155 WIN32LIBS
="$WIN32LIBS -lws2_32"
15160 # Add ELF support to GDB, but only if BFD includes ELF support.
15163 OLD_LDFLAGS
=$LDFLAGS
15165 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15166 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15167 # always want our bfd.
15168 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15169 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15170 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15171 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15172 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15174 $as_echo_n "checking for ELF support in BFD... " >&6; }
15175 if test "${gdb_cv_var_elf+set}" = set; then :
15176 $as_echo_n "(cached) " >&6
15178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15180 #include <stdlib.h>
15182 #include "elf-bfd.h"
15187 return bfd_get_elf_phdr_upper_bound (NULL);
15192 if ac_fn_c_try_link
"$LINENO"; then :
15197 rm -f core conftest.err conftest.
$ac_objext \
15198 conftest
$ac_exeext conftest.
$ac_ext
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15201 $as_echo "$gdb_cv_var_elf" >&6; }
15203 LDFLAGS
=$OLD_LDFLAGS
15205 if test $gdb_cv_var_elf = yes; then
15206 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15208 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15210 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15211 if test "$plugins" = "yes"; then
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15213 $as_echo_n "checking for library containing dlopen... " >&6; }
15214 if test "${ac_cv_search_dlopen+set}" = set; then :
15215 $as_echo_n "(cached) " >&6
15217 ac_func_search_save_LIBS
=$LIBS
15218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15221 /* Override any GCC internal prototype to avoid an error.
15222 Use char because int might match the return type of a GCC
15223 builtin and then its argument prototype would still apply. */
15236 for ac_lib
in '' dl
; do
15237 if test -z "$ac_lib"; then
15238 ac_res
="none required"
15241 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15243 if ac_fn_c_try_link
"$LINENO"; then :
15244 ac_cv_search_dlopen
=$ac_res
15246 rm -f core conftest.err conftest.
$ac_objext \
15248 if test "${ac_cv_search_dlopen+set}" = set; then :
15252 if test "${ac_cv_search_dlopen+set}" = set; then :
15255 ac_cv_search_dlopen
=no
15257 rm conftest.
$ac_ext
15258 LIBS
=$ac_func_search_save_LIBS
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15261 $as_echo "$ac_cv_search_dlopen" >&6; }
15262 ac_res
=$ac_cv_search_dlopen
15263 if test "$ac_res" != no
; then :
15264 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15271 # Add macho support to GDB, but only if BFD includes it.
15274 OLD_LDFLAGS
=$LDFLAGS
15276 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15277 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15278 # always want our bfd.
15279 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15280 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15281 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15282 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15283 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15285 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15286 if test "${gdb_cv_var_macho+set}" = set; then :
15287 $as_echo_n "(cached) " >&6
15289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15290 /* end confdefs.h. */
15291 #include <stdlib.h>
15293 #include "mach-o.h"
15298 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15303 if ac_fn_c_try_link
"$LINENO"; then :
15304 gdb_cv_var_macho
=yes
15306 gdb_cv_var_macho
=no
15308 rm -f core conftest.err conftest.
$ac_objext \
15309 conftest
$ac_exeext conftest.
$ac_ext
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15312 $as_echo "$gdb_cv_var_macho" >&6; }
15314 LDFLAGS
=$OLD_LDFLAGS
15316 if test $gdb_cv_var_macho = yes; then
15317 CONFIG_OBS
="$CONFIG_OBS machoread.o"
15320 # Add any host-specific objects to GDB.
15321 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15323 # If building on ELF, look for lzma support for embedded compressed debug info.
15324 if test $gdb_cv_var_elf = yes; then
15326 # Check whether --with-lzma was given.
15327 if test "${with_lzma+set}" = set; then :
15328 withval
=$with_lzma;
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15334 $as_echo_n "checking whether to use lzma... " >&6; }
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15336 $as_echo "$with_lzma" >&6; }
15338 if test "${with_lzma}" != no
; then
15349 acl_save_prefix
="$prefix"
15350 prefix
="$acl_final_prefix"
15351 acl_save_exec_prefix
="$exec_prefix"
15352 exec_prefix
="$acl_final_exec_prefix"
15354 eval additional_includedir
=\"$includedir\"
15355 eval additional_libdir
=\"$libdir\"
15357 exec_prefix
="$acl_save_exec_prefix"
15358 prefix
="$acl_save_prefix"
15361 # Check whether --with-liblzma-prefix was given.
15362 if test "${with_liblzma_prefix+set}" = set; then :
15363 withval
=$with_liblzma_prefix;
15364 if test "X$withval" = "Xno"; then
15367 if test "X$withval" = "X"; then
15369 acl_save_prefix
="$prefix"
15370 prefix
="$acl_final_prefix"
15371 acl_save_exec_prefix
="$exec_prefix"
15372 exec_prefix
="$acl_final_exec_prefix"
15374 eval additional_includedir
=\"$includedir\"
15375 eval additional_libdir
=\"$libdir\"
15377 exec_prefix
="$acl_save_exec_prefix"
15378 prefix
="$acl_save_prefix"
15381 additional_includedir
="$withval/include"
15382 additional_libdir
="$withval/lib"
15393 names_already_handled
=
15394 names_next_round
='lzma '
15395 while test -n "$names_next_round"; do
15396 names_this_round
="$names_next_round"
15398 for name
in $names_this_round; do
15400 for n
in $names_already_handled; do
15401 if test "$n" = "$name"; then
15402 already_handled
=yes
15406 if test -z "$already_handled"; then
15407 names_already_handled
="$names_already_handled $name"
15408 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15409 eval value
=\"\
$HAVE_LIB$uppername\"
15410 if test -n "$value"; then
15411 if test "$value" = yes; then
15412 eval value
=\"\
$LIB$uppername\"
15413 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
15414 eval value
=\"\
$LTLIB$uppername\"
15415 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15424 if test $use_additional = yes; then
15425 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15426 found_dir
="$additional_libdir"
15427 found_so
="$additional_libdir/lib$name.$shlibext"
15428 if test -f "$additional_libdir/lib$name.la"; then
15429 found_la
="$additional_libdir/lib$name.la"
15432 if test -f "$additional_libdir/lib$name.$libext"; then
15433 found_dir
="$additional_libdir"
15434 found_a
="$additional_libdir/lib$name.$libext"
15435 if test -f "$additional_libdir/lib$name.la"; then
15436 found_la
="$additional_libdir/lib$name.la"
15441 if test "X$found_dir" = "X"; then
15442 for x
in $LDFLAGS $LTLIBLZMA; do
15444 acl_save_prefix
="$prefix"
15445 prefix
="$acl_final_prefix"
15446 acl_save_exec_prefix
="$exec_prefix"
15447 exec_prefix
="$acl_final_exec_prefix"
15449 exec_prefix
="$acl_save_exec_prefix"
15450 prefix
="$acl_save_prefix"
15454 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15455 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15457 found_so
="$dir/lib$name.$shlibext"
15458 if test -f "$dir/lib$name.la"; then
15459 found_la
="$dir/lib$name.la"
15462 if test -f "$dir/lib$name.$libext"; then
15464 found_a
="$dir/lib$name.$libext"
15465 if test -f "$dir/lib$name.la"; then
15466 found_la
="$dir/lib$name.la"
15472 if test "X$found_dir" != "X"; then
15477 if test "X$found_dir" != "X"; then
15478 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
15479 if test "X$found_so" != "X"; then
15480 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15481 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15484 for x
in $ltrpathdirs; do
15485 if test "X$x" = "X$found_dir"; then
15490 if test -z "$haveit"; then
15491 ltrpathdirs
="$ltrpathdirs $found_dir"
15493 if test "$hardcode_direct" = yes; then
15494 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15496 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15497 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15499 for x
in $rpathdirs; do
15500 if test "X$x" = "X$found_dir"; then
15505 if test -z "$haveit"; then
15506 rpathdirs
="$rpathdirs $found_dir"
15510 for x
in $LDFLAGS $LIBLZMA; do
15512 acl_save_prefix
="$prefix"
15513 prefix
="$acl_final_prefix"
15514 acl_save_exec_prefix
="$exec_prefix"
15515 exec_prefix
="$acl_final_exec_prefix"
15517 exec_prefix
="$acl_save_exec_prefix"
15518 prefix
="$acl_save_prefix"
15520 if test "X$x" = "X-L$found_dir"; then
15525 if test -z "$haveit"; then
15526 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
15528 if test "$hardcode_minus_L" != no
; then
15529 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15531 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
15537 if test "X$found_a" != "X"; then
15538 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
15540 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
15543 additional_includedir
=
15544 case "$found_dir" in
15546 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15547 additional_includedir
="$basedir/include"
15550 if test "X$additional_includedir" != "X"; then
15551 if test "X$additional_includedir" != "X/usr/include"; then
15553 if test "X$additional_includedir" = "X/usr/local/include"; then
15554 if test -n "$GCC"; then
15556 linux
*) haveit
=yes;;
15560 if test -z "$haveit"; then
15561 for x
in $CPPFLAGS $INCLZMA; do
15563 acl_save_prefix
="$prefix"
15564 prefix
="$acl_final_prefix"
15565 acl_save_exec_prefix
="$exec_prefix"
15566 exec_prefix
="$acl_final_exec_prefix"
15568 exec_prefix
="$acl_save_exec_prefix"
15569 prefix
="$acl_save_prefix"
15571 if test "X$x" = "X-I$additional_includedir"; then
15576 if test -z "$haveit"; then
15577 if test -d "$additional_includedir"; then
15578 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
15584 if test -n "$found_la"; then
15585 save_libdir
="$libdir"
15586 case "$found_la" in
15587 */* |
*\\*) .
"$found_la" ;;
15588 *) .
"./$found_la" ;;
15590 libdir
="$save_libdir"
15591 for dep
in $dependency_libs; do
15594 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15595 if test "X$additional_libdir" != "X/usr/lib"; then
15597 if test "X$additional_libdir" = "X/usr/local/lib"; then
15598 if test -n "$GCC"; then
15600 linux
*) haveit
=yes;;
15604 if test -z "$haveit"; then
15606 for x
in $LDFLAGS $LIBLZMA; do
15608 acl_save_prefix
="$prefix"
15609 prefix
="$acl_final_prefix"
15610 acl_save_exec_prefix
="$exec_prefix"
15611 exec_prefix
="$acl_final_exec_prefix"
15613 exec_prefix
="$acl_save_exec_prefix"
15614 prefix
="$acl_save_prefix"
15616 if test "X$x" = "X-L$additional_libdir"; then
15621 if test -z "$haveit"; then
15622 if test -d "$additional_libdir"; then
15623 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
15627 for x
in $LDFLAGS $LTLIBLZMA; do
15629 acl_save_prefix
="$prefix"
15630 prefix
="$acl_final_prefix"
15631 acl_save_exec_prefix
="$exec_prefix"
15632 exec_prefix
="$acl_final_exec_prefix"
15634 exec_prefix
="$acl_save_exec_prefix"
15635 prefix
="$acl_save_prefix"
15637 if test "X$x" = "X-L$additional_libdir"; then
15642 if test -z "$haveit"; then
15643 if test -d "$additional_libdir"; then
15644 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
15651 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15652 if test "$enable_rpath" != no
; then
15654 for x
in $rpathdirs; do
15655 if test "X$x" = "X$dir"; then
15660 if test -z "$haveit"; then
15661 rpathdirs
="$rpathdirs $dir"
15664 for x
in $ltrpathdirs; do
15665 if test "X$x" = "X$dir"; then
15670 if test -z "$haveit"; then
15671 ltrpathdirs
="$ltrpathdirs $dir"
15676 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15679 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15682 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
15683 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
15689 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
15690 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
15696 if test "X$rpathdirs" != "X"; then
15697 if test -n "$hardcode_libdir_separator"; then
15699 for found_dir
in $rpathdirs; do
15700 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15702 acl_save_libdir
="$libdir"
15704 eval flag
=\"$hardcode_libdir_flag_spec\"
15705 libdir
="$acl_save_libdir"
15706 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
15708 for found_dir
in $rpathdirs; do
15709 acl_save_libdir
="$libdir"
15710 libdir
="$found_dir"
15711 eval flag
=\"$hardcode_libdir_flag_spec\"
15712 libdir
="$acl_save_libdir"
15713 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
15717 if test "X$ltrpathdirs" != "X"; then
15718 for found_dir
in $ltrpathdirs; do
15719 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
15724 ac_save_CPPFLAGS
="$CPPFLAGS"
15726 for element
in $INCLZMA; do
15728 for x
in $CPPFLAGS; do
15730 acl_save_prefix
="$prefix"
15731 prefix
="$acl_final_prefix"
15732 acl_save_exec_prefix
="$exec_prefix"
15733 exec_prefix
="$acl_final_exec_prefix"
15735 exec_prefix
="$acl_save_exec_prefix"
15736 prefix
="$acl_save_prefix"
15738 if test "X$x" = "X$element"; then
15743 if test -z "$haveit"; then
15744 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
15750 $as_echo_n "checking for liblzma... " >&6; }
15751 if test "${ac_cv_liblzma+set}" = set; then :
15752 $as_echo_n "(cached) " >&6
15755 ac_save_LIBS
="$LIBS"
15756 LIBS
="$LIBS $LIBLZMA"
15757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h. */
15763 lzma_index_iter iter;
15764 lzma_index_iter_init (&iter, 0);
15765 lzma_mf_is_supported (LZMA_MF_HC3);
15770 if ac_fn_c_try_link
"$LINENO"; then :
15775 rm -f core conftest.err conftest.
$ac_objext \
15776 conftest
$ac_exeext conftest.
$ac_ext
15777 LIBS
="$ac_save_LIBS"
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
15781 $as_echo "$ac_cv_liblzma" >&6; }
15782 if test "$ac_cv_liblzma" = yes; then
15785 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
15788 $as_echo_n "checking how to link with liblzma... " >&6; }
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
15790 $as_echo "$LIBLZMA" >&6; }
15793 CPPFLAGS
="$ac_save_CPPFLAGS"
15803 if test "$HAVE_LIBLZMA" != yes; then
15804 if test "$with_lzma" = yes; then
15805 as_fn_error
"missing liblzma for --with-lzma" "$LINENO" 5
15811 LIBGUI
="../libgui/src/libgui.a"
15812 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
15821 *-*-cygwin* |
*-*-mingw* )
15830 if test "${enable_gdbtk}" = "yes"; then
15832 # Gdbtk must have an absolute path to srcdir in order to run
15833 # properly when not installed.
15836 GDBTK_SRC_DIR
=`pwd`
15841 # Ok, lets find the tcl configuration
15842 # First, look for one uninstalled.
15843 # the alternative search directory is invoked by --with-tcl
15846 if test x
"${no_tcl}" = x
; then
15847 # we reset no_tcl in case something fails here
15850 # Check whether --with-tcl was given.
15851 if test "${with_tcl+set}" = set; then :
15852 withval
=$with_tcl; with_tclconfig
=${withval}
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15856 $as_echo_n "checking for Tcl configuration... " >&6; }
15857 if test "${ac_cv_c_tclconfig+set}" = set; then :
15858 $as_echo_n "(cached) " >&6
15862 # First check to see if --with-tcl was specified.
15864 *-*-cygwin*) platDir
="win" ;;
15865 *) platDir
="unix" ;;
15867 if test x
"${with_tclconfig}" != x
; then
15868 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15869 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
15871 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15875 # then check for a private Tcl installation
15876 if test x
"${ac_cv_c_tclconfig}" = x
; then
15879 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15880 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15881 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15883 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15884 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15885 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15887 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15888 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15889 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15890 if test -f "$i/$platDir/tclConfig.sh" ; then
15891 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15897 # on Darwin, check in Framework installation locations
15898 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
15899 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15900 `ls -d /Library/Frameworks 2>/dev/null` \
15901 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15902 `ls -d /System/Library/Frameworks 2>/dev/null` \
15904 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15905 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
15911 # check in a few common install locations
15912 if test x
"${ac_cv_c_tclconfig}" = x
; then
15913 for i
in `ls -d ${libdir} 2>/dev/null` \
15914 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15915 `ls -d ${prefix}/lib 2>/dev/null` \
15916 `ls -d /usr/local/lib 2>/dev/null` \
15917 `ls -d /usr/contrib/lib 2>/dev/null` \
15918 `ls -d /usr/lib 2>/dev/null` \
15920 if test -f "$i/tclConfig.sh" ; then
15921 ac_cv_c_tclconfig
=`(cd $i; pwd)`
15927 # check in a few other private locations
15928 if test x
"${ac_cv_c_tclconfig}" = x
; then
15931 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15932 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15933 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15934 if test -f "$i/$platDir/tclConfig.sh" ; then
15935 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15944 if test x
"${ac_cv_c_tclconfig}" = x
; then
15945 TCL_BIN_DIR
="# no Tcl configs found"
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15947 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15950 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15952 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15957 # If $no_tk is nonempty, then we can't do Tk, and there is no
15958 # point to doing Tcl.
15961 # Ok, lets find the tk configuration
15962 # First, look for one uninstalled.
15963 # the alternative search directory is invoked by --with-tk
15966 if test x
"${no_tk}" = x
; then
15967 # we reset no_tk in case something fails here
15970 # Check whether --with-tk was given.
15971 if test "${with_tk+set}" = set; then :
15972 withval
=$with_tk; with_tkconfig
=${withval}
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15976 $as_echo_n "checking for Tk configuration... " >&6; }
15977 if test "${ac_cv_c_tkconfig+set}" = set; then :
15978 $as_echo_n "(cached) " >&6
15982 # First check to see if --with-tkconfig was specified.
15983 if test x
"${with_tkconfig}" != x
; then
15984 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15985 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
15987 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15991 # then check for a private Tk library
15993 *-*-cygwin*) platDir
="win" ;;
15994 *) platDir
="unix" ;;
15996 if test x
"${ac_cv_c_tkconfig}" = x
; then
15999 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16000 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16001 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16003 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16004 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16005 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16007 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16008 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16009 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16010 if test -f "$i/$platDir/tkConfig.sh" ; then
16011 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16017 # on Darwin, check in Framework installation locations
16018 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16019 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16020 `ls -d /Library/Frameworks 2>/dev/null` \
16021 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16022 `ls -d /System/Library/Frameworks 2>/dev/null` \
16024 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16025 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16031 # check in a few common install locations
16032 if test x
"${ac_cv_c_tkconfig}" = x
; then
16033 for i
in `ls -d ${libdir} 2>/dev/null` \
16034 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16035 `ls -d ${prefix}/lib 2>/dev/null` \
16036 `ls -d /usr/local/lib 2>/dev/null` \
16037 `ls -d /usr/contrib/lib 2>/dev/null` \
16038 `ls -d /usr/lib 2>/dev/null` \
16040 if test -f "$i/tkConfig.sh" ; then
16041 ac_cv_c_tkconfig
=`(cd $i; pwd)`
16046 # check in a few other private locations
16047 if test x
"${ac_cv_c_tkconfig}" = x
; then
16050 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16051 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16052 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16053 if test -f "$i/$platDir/tkConfig.sh" ; then
16054 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16063 if test x
"${ac_cv_c_tkconfig}" = x
; then
16064 TK_BIN_DIR
="# no Tk configs found"
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16066 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16069 TK_BIN_DIR
=${ac_cv_c_tkconfig}
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16071 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16076 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16079 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16081 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16083 $as_echo "loading" >&6; }
16084 .
${TCL_BIN_DIR}/tclConfig.sh
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16087 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16090 # eval is required to do the TCL_DBGX substitution
16091 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16092 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16094 # If the TCL_BIN_DIR is the build directory (not the install directory),
16095 # then set the common variable name to the value of the build variables.
16096 # For example, the variable TCL_LIB_SPEC will be set to the value
16097 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16098 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16099 # installed and uninstalled version of Tcl.
16100 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16101 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
16102 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
16103 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
16104 elif test "`uname -s`" = "Darwin"; then
16105 # If Tcl was built as a framework, attempt to use the libraries
16106 # from the framework at the given location so that linking works
16107 # against Tcl.framework installed in an arbitrary location.
16108 case ${TCL_DEFS} in
16110 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16111 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
16112 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16113 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16114 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16119 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16120 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16121 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16127 # eval is required to do the TCL_DBGX substitution
16128 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16129 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16130 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16131 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16147 # Check for in-tree tcl
16154 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16158 # Find Tcl private headers
16159 if test x
"${intree}" = xno
; then
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16162 $as_echo_n "checking for Tcl private headers... " >&6; }
16164 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16165 if test -f ${dir}/tclInt.h
; then
16169 if test x
"${private_dir}" = x
; then
16170 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
16172 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16174 $as_echo "${private_dir}" >&6; }
16177 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16178 TCL_LIBRARY
="${TCL_LIB_SPEC}"
16181 # If building tcl in the same src tree, private headers
16182 # are not needed, but we need to be sure to use the right
16184 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
16185 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
16186 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16194 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16196 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16198 $as_echo "loading" >&6; }
16199 .
${TK_BIN_DIR}/tkConfig.sh
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16202 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16205 # eval is required to do the TK_DBGX substitution
16206 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16207 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16209 # If the TK_BIN_DIR is the build directory (not the install directory),
16210 # then set the common variable name to the value of the build variables.
16211 # For example, the variable TK_LIB_SPEC will be set to the value
16212 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16213 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16214 # installed and uninstalled version of Tcl.
16215 if test -f "${TK_BIN_DIR}/Makefile" ; then
16216 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
16217 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
16218 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
16219 elif test "`uname -s`" = "Darwin"; then
16220 # If Tk was built as a framework, attempt to use the libraries
16221 # from the framework at the given location so that linking works
16222 # against Tk.framework installed in an arbitrary location.
16225 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16226 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
16227 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16228 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16229 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16234 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16235 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16236 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16242 # eval is required to do the TK_DBGX substitution
16243 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16244 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16245 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16246 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16261 # Check for in-tree Tk
16263 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16267 # Find Tk private headers
16268 if test x
"${intree}" = xno
; then
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16271 $as_echo_n "checking for Tk private headers... " >&6; }
16273 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16274 if test -f ${dir}/tkInt.h
; then
16278 if test x
"${private_dir}" = x
; then
16279 as_fn_error
"could not find Tk private headers" "$LINENO" 5
16281 TK_PRIVATE_INCLUDE
="-I${private_dir}"
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16283 $as_echo "${private_dir}" >&6; }
16286 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16287 TK_LIBRARY
=${TK_LIB_SPEC}
16290 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
16291 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
16292 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
16299 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16301 # Include some libraries that Tcl and Tk want.
16302 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16303 # Yes, the ordering seems wrong here. But it isn't.
16304 # TK_LIBS is the list of libraries that need to be linked
16305 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16306 # were in LIBS then any link tests after this point would
16307 # try to include things like `$(LIBGUI)', which wouldn't work.
16308 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
16310 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16311 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16312 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16313 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
16314 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
16315 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
16316 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
16318 if test x
$gdb_cv_os_cygwin = xyes
; then
16319 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16320 WIN32LDAPP
="-Wl,--subsystem,console"
16321 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
16324 subdirs
="$subdirs gdbtk"
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16337 $as_echo_n "checking for X... " >&6; }
16340 # Check whether --with-x was given.
16341 if test "${with_x+set}" = set; then :
16345 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16346 if test "x$with_x" = xno
; then
16347 # The user explicitly disabled X.
16350 case $x_includes,$x_libraries in #(
16351 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
16352 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
16353 $as_echo_n "(cached) " >&6
16355 # One or both of the vars are not set, and there is no cached value.
16356 ac_x_includes
=no ac_x_libraries
=no
16357 rm -f -r conftest.dir
16358 if mkdir conftest.dir
; then
16360 cat >Imakefile
<<'_ACEOF'
16362 @echo incroot='${INCROOT}'
16364 @echo usrlibdir='${USRLIBDIR}'
16366 @echo libdir='${LIBDIR}'
16368 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
16369 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16370 for ac_var
in incroot usrlibdir libdir
; do
16371 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16373 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16374 for ac_extension
in a so sl dylib la dll
; do
16375 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16376 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16377 ac_im_usrlibdir
=$ac_im_libdir; break
16380 # Screen out bogus values from the imake configuration. They are
16381 # bogus both because they are the default anyway, and because
16382 # using them would break gcc on systems where it needs fixed includes.
16383 case $ac_im_incroot in
16384 /usr
/include
) ac_x_includes
= ;;
16385 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
16387 case $ac_im_usrlibdir in
16388 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
16389 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
16393 rm -f -r conftest.dir
16396 # Standard set of common directories for X headers.
16397 # Check X11 before X11Rn because it is often a symlink to the current release.
16411 /usr/local/X11/include
16412 /usr/local/X11R7/include
16413 /usr/local/X11R6/include
16414 /usr/local/X11R5/include
16415 /usr/local/X11R4/include
16417 /usr/local/include/X11
16418 /usr/local/include/X11R7
16419 /usr/local/include/X11R6
16420 /usr/local/include/X11R5
16421 /usr/local/include/X11R4
16425 /usr/XFree86/include/X11
16429 /usr/unsupported/include
16430 /usr/athena/include
16431 /usr/local/x11r5/include
16432 /usr/lpp/Xamples/include
16434 /usr/openwin/include
16435 /usr/openwin/share/include'
16437 if test "$ac_x_includes" = no
; then
16438 # Guess where to find include files, by looking for Xlib.h.
16439 # First, try using that file with no special directory specified.
16440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16441 /* end confdefs.h. */
16442 #include <X11/Xlib.h>
16444 if ac_fn_c_try_cpp
"$LINENO"; then :
16445 # We can compile using X headers with no special include directory.
16448 for ac_dir
in $ac_x_header_dirs; do
16449 if test -r "$ac_dir/X11/Xlib.h"; then
16450 ac_x_includes
=$ac_dir
16455 rm -f conftest.err conftest.
$ac_ext
16456 fi # $ac_x_includes = no
16458 if test "$ac_x_libraries" = no
; then
16459 # Check for the libraries.
16460 # See if we find them without any special options.
16461 # Don't add to $LIBS permanently.
16464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16466 #include <X11/Xlib.h>
16475 if ac_fn_c_try_link
"$LINENO"; then :
16477 # We can link X programs with no special library path.
16481 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16483 # Don't even attempt the hair of trying to link an X program!
16484 for ac_extension
in a so sl dylib la dll
; do
16485 if test -r "$ac_dir/libX11.$ac_extension"; then
16486 ac_x_libraries
=$ac_dir
16492 rm -f core conftest.err conftest.
$ac_objext \
16493 conftest
$ac_exeext conftest.
$ac_ext
16494 fi # $ac_x_libraries = no
16496 case $ac_x_includes,$ac_x_libraries in #(
16497 no
,* |
*,no |
*\'*)
16498 # Didn't find X, or a directory has "'" in its name.
16499 ac_cv_have_x
="have_x=no";; #(
16501 # Record where we found X for the cache.
16502 ac_cv_have_x
="have_x=yes\
16503 ac_x_includes='$ac_x_includes'\
16504 ac_x_libraries='$ac_x_libraries'"
16510 eval "$ac_cv_have_x"
16513 if test "$have_x" != yes; then
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16515 $as_echo "$have_x" >&6; }
16518 # If each of the values was on the command line, it overrides each guess.
16519 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
16520 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
16521 # Update the cache value to reflect the command line values.
16522 ac_cv_have_x
="have_x=yes\
16523 ac_x_includes='$x_includes'\
16524 ac_x_libraries='$x_libraries'"
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16526 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16530 # Unlike the sim directory, whether a simulator is linked is controlled by
16531 # presence of a gdb_sim definition in the target configure.tgt entry.
16532 # This code just checks for a few cases where we'd like to ignore those
16533 # definitions, even when they're present in the '.mt' file. These cases
16534 # are when --disable-sim is specified, or if the simulator directory is
16535 # not part of the source tree.
16537 # Check whether --enable-sim was given.
16538 if test "${enable_sim+set}" = set; then :
16539 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
16540 echo "enableval = ${enableval}";
16541 case "${enableval}" in
16542 yes) ignore_sim
=false
;;
16543 no
) ignore_sim
=true
;;
16544 *) ignore_sim
=false
;;
16551 if test ! -d "${srcdir}/../sim"; then
16557 if test "${ignore_sim}" = "false"; then
16558 if test x
"${gdb_sim}" != x
; then
16560 SIM_OBS
="remote-sim.o"
16562 $as_echo "#define WITH_SIM 1" >>confdefs.h
16565 # Some tdep code should only be compiled in when the ppc sim is
16566 # built. PR sim/13418.
16570 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
16590 # List of host floatformats.
16592 cat >>confdefs.h
<<_ACEOF
16593 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
16597 cat >>confdefs.h
<<_ACEOF
16598 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
16602 cat >>confdefs.h
<<_ACEOF
16603 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
16607 # target_subdir is used by the testsuite to find the target libraries.
16609 if test "${host}" != "${target}"; then
16610 target_subdir
="${target_alias}/"
16614 # Import nat definitions.
16615 nat_makefile_frag
=/dev
/null
16616 if test "${gdb_native}" = "yes"; then
16617 .
${srcdir}/configure.nat
16618 nativefile
=$NAT_FILE
16631 if test x
"${gdb_osabi}" != x
; then
16633 cat >>confdefs.h
<<_ACEOF
16634 #define GDB_OSABI_DEFAULT $gdb_osabi
16639 # Enable multi-ice-gdb-server.
16640 # Check whether --enable-multi-ice was given.
16641 if test "${enable_multi_ice+set}" = set; then :
16642 enableval
=$enable_multi_ice; case $enableval in
16645 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
16649 if test "x$enable_multi_ice" = xyes
; then
16650 subdirs
="$subdirs multi-ice"
16654 # Check whether --enable-gdbserver was given.
16655 if test "${enable_gdbserver+set}" = set; then :
16656 enableval
=$enable_gdbserver; case "${enableval}" in
16658 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
16661 enable_gdbserver
=auto
16665 # We only build gdbserver automatically in a native configuration, and
16666 # only if the user did not explicitly disable its build.
16667 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
16669 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
16670 if test "x$build_gdbserver" = xyes
; then
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16672 $as_echo "yes" >&6; }
16673 subdirs
="$subdirs gdbserver"
16675 gdbserver_build_enabled
=yes
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16678 $as_echo "no" >&6; }
16682 # If the user explicitly request the gdbserver to be built, verify that
16683 # we were in fact able to enable it.
16684 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
16685 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
16688 # Check for babeltrace and babeltrace-ctf
16690 # Check whether --with-babeltrace was given.
16691 if test "${with_babeltrace+set}" = set; then :
16692 withval
=$with_babeltrace;
16694 with_babeltrace
=auto
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
16698 $as_echo_n "checking whether to use babeltrace... " >&6; }
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
16700 $as_echo "$with_babeltrace" >&6; }
16702 if test "x$with_babeltrace" = "xno"; then
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
16704 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
16706 # Append -Werror to CFLAGS so that configure can catch the warning
16707 # "assignment from incompatible pointer type", which is related to
16708 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
16709 # in GDB, while babeltrace 1.0.3 is broken.
16710 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
16711 # safe to save and restore CFLAGS here.
16712 saved_CFLAGS
=$CFLAGS
16713 CFLAGS
="$CFLAGS -Werror"
16724 acl_save_prefix
="$prefix"
16725 prefix
="$acl_final_prefix"
16726 acl_save_exec_prefix
="$exec_prefix"
16727 exec_prefix
="$acl_final_exec_prefix"
16729 eval additional_includedir
=\"$includedir\"
16730 eval additional_libdir
=\"$libdir\"
16732 exec_prefix
="$acl_save_exec_prefix"
16733 prefix
="$acl_save_prefix"
16736 # Check whether --with-libbabeltrace-prefix was given.
16737 if test "${with_libbabeltrace_prefix+set}" = set; then :
16738 withval
=$with_libbabeltrace_prefix;
16739 if test "X$withval" = "Xno"; then
16742 if test "X$withval" = "X"; then
16744 acl_save_prefix
="$prefix"
16745 prefix
="$acl_final_prefix"
16746 acl_save_exec_prefix
="$exec_prefix"
16747 exec_prefix
="$acl_final_exec_prefix"
16749 eval additional_includedir
=\"$includedir\"
16750 eval additional_libdir
=\"$libdir\"
16752 exec_prefix
="$acl_save_exec_prefix"
16753 prefix
="$acl_save_prefix"
16756 additional_includedir
="$withval/include"
16757 additional_libdir
="$withval/lib"
16768 names_already_handled
=
16769 names_next_round
='babeltrace babeltrace-ctf'
16770 while test -n "$names_next_round"; do
16771 names_this_round
="$names_next_round"
16773 for name
in $names_this_round; do
16775 for n
in $names_already_handled; do
16776 if test "$n" = "$name"; then
16777 already_handled
=yes
16781 if test -z "$already_handled"; then
16782 names_already_handled
="$names_already_handled $name"
16783 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16784 eval value
=\"\
$HAVE_LIB$uppername\"
16785 if test -n "$value"; then
16786 if test "$value" = yes; then
16787 eval value
=\"\
$LIB$uppername\"
16788 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
16789 eval value
=\"\
$LTLIB$uppername\"
16790 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
16799 if test $use_additional = yes; then
16800 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16801 found_dir
="$additional_libdir"
16802 found_so
="$additional_libdir/lib$name.$shlibext"
16803 if test -f "$additional_libdir/lib$name.la"; then
16804 found_la
="$additional_libdir/lib$name.la"
16807 if test -f "$additional_libdir/lib$name.$libext"; then
16808 found_dir
="$additional_libdir"
16809 found_a
="$additional_libdir/lib$name.$libext"
16810 if test -f "$additional_libdir/lib$name.la"; then
16811 found_la
="$additional_libdir/lib$name.la"
16816 if test "X$found_dir" = "X"; then
16817 for x
in $LDFLAGS $LTLIBBABELTRACE; do
16819 acl_save_prefix
="$prefix"
16820 prefix
="$acl_final_prefix"
16821 acl_save_exec_prefix
="$exec_prefix"
16822 exec_prefix
="$acl_final_exec_prefix"
16824 exec_prefix
="$acl_save_exec_prefix"
16825 prefix
="$acl_save_prefix"
16829 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16830 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16832 found_so
="$dir/lib$name.$shlibext"
16833 if test -f "$dir/lib$name.la"; then
16834 found_la
="$dir/lib$name.la"
16837 if test -f "$dir/lib$name.$libext"; then
16839 found_a
="$dir/lib$name.$libext"
16840 if test -f "$dir/lib$name.la"; then
16841 found_la
="$dir/lib$name.la"
16847 if test "X$found_dir" != "X"; then
16852 if test "X$found_dir" != "X"; then
16853 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
16854 if test "X$found_so" != "X"; then
16855 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16856 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16859 for x
in $ltrpathdirs; do
16860 if test "X$x" = "X$found_dir"; then
16865 if test -z "$haveit"; then
16866 ltrpathdirs
="$ltrpathdirs $found_dir"
16868 if test "$hardcode_direct" = yes; then
16869 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16871 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16872 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16874 for x
in $rpathdirs; do
16875 if test "X$x" = "X$found_dir"; then
16880 if test -z "$haveit"; then
16881 rpathdirs
="$rpathdirs $found_dir"
16885 for x
in $LDFLAGS $LIBBABELTRACE; do
16887 acl_save_prefix
="$prefix"
16888 prefix
="$acl_final_prefix"
16889 acl_save_exec_prefix
="$exec_prefix"
16890 exec_prefix
="$acl_final_exec_prefix"
16892 exec_prefix
="$acl_save_exec_prefix"
16893 prefix
="$acl_save_prefix"
16895 if test "X$x" = "X-L$found_dir"; then
16900 if test -z "$haveit"; then
16901 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
16903 if test "$hardcode_minus_L" != no
; then
16904 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16906 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16912 if test "X$found_a" != "X"; then
16913 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
16915 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
16918 additional_includedir
=
16919 case "$found_dir" in
16921 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16922 additional_includedir
="$basedir/include"
16925 if test "X$additional_includedir" != "X"; then
16926 if test "X$additional_includedir" != "X/usr/include"; then
16928 if test "X$additional_includedir" = "X/usr/local/include"; then
16929 if test -n "$GCC"; then
16931 linux
*) haveit
=yes;;
16935 if test -z "$haveit"; then
16936 for x
in $CPPFLAGS $INCBABELTRACE; do
16938 acl_save_prefix
="$prefix"
16939 prefix
="$acl_final_prefix"
16940 acl_save_exec_prefix
="$exec_prefix"
16941 exec_prefix
="$acl_final_exec_prefix"
16943 exec_prefix
="$acl_save_exec_prefix"
16944 prefix
="$acl_save_prefix"
16946 if test "X$x" = "X-I$additional_includedir"; then
16951 if test -z "$haveit"; then
16952 if test -d "$additional_includedir"; then
16953 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
16959 if test -n "$found_la"; then
16960 save_libdir
="$libdir"
16961 case "$found_la" in
16962 */* |
*\\*) .
"$found_la" ;;
16963 *) .
"./$found_la" ;;
16965 libdir
="$save_libdir"
16966 for dep
in $dependency_libs; do
16969 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16970 if test "X$additional_libdir" != "X/usr/lib"; then
16972 if test "X$additional_libdir" = "X/usr/local/lib"; then
16973 if test -n "$GCC"; then
16975 linux
*) haveit
=yes;;
16979 if test -z "$haveit"; then
16981 for x
in $LDFLAGS $LIBBABELTRACE; do
16983 acl_save_prefix
="$prefix"
16984 prefix
="$acl_final_prefix"
16985 acl_save_exec_prefix
="$exec_prefix"
16986 exec_prefix
="$acl_final_exec_prefix"
16988 exec_prefix
="$acl_save_exec_prefix"
16989 prefix
="$acl_save_prefix"
16991 if test "X$x" = "X-L$additional_libdir"; then
16996 if test -z "$haveit"; then
16997 if test -d "$additional_libdir"; then
16998 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17002 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17004 acl_save_prefix
="$prefix"
17005 prefix
="$acl_final_prefix"
17006 acl_save_exec_prefix
="$exec_prefix"
17007 exec_prefix
="$acl_final_exec_prefix"
17009 exec_prefix
="$acl_save_exec_prefix"
17010 prefix
="$acl_save_prefix"
17012 if test "X$x" = "X-L$additional_libdir"; then
17017 if test -z "$haveit"; then
17018 if test -d "$additional_libdir"; then
17019 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17026 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17027 if test "$enable_rpath" != no
; then
17029 for x
in $rpathdirs; do
17030 if test "X$x" = "X$dir"; then
17035 if test -z "$haveit"; then
17036 rpathdirs
="$rpathdirs $dir"
17039 for x
in $ltrpathdirs; do
17040 if test "X$x" = "X$dir"; then
17045 if test -z "$haveit"; then
17046 ltrpathdirs
="$ltrpathdirs $dir"
17051 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17054 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17057 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17058 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17064 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17065 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17071 if test "X$rpathdirs" != "X"; then
17072 if test -n "$hardcode_libdir_separator"; then
17074 for found_dir
in $rpathdirs; do
17075 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17077 acl_save_libdir
="$libdir"
17079 eval flag
=\"$hardcode_libdir_flag_spec\"
17080 libdir
="$acl_save_libdir"
17081 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17083 for found_dir
in $rpathdirs; do
17084 acl_save_libdir
="$libdir"
17085 libdir
="$found_dir"
17086 eval flag
=\"$hardcode_libdir_flag_spec\"
17087 libdir
="$acl_save_libdir"
17088 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17092 if test "X$ltrpathdirs" != "X"; then
17093 for found_dir
in $ltrpathdirs; do
17094 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17099 ac_save_CPPFLAGS
="$CPPFLAGS"
17101 for element
in $INCBABELTRACE; do
17103 for x
in $CPPFLAGS; do
17105 acl_save_prefix
="$prefix"
17106 prefix
="$acl_final_prefix"
17107 acl_save_exec_prefix
="$exec_prefix"
17108 exec_prefix
="$acl_final_exec_prefix"
17110 exec_prefix
="$acl_save_exec_prefix"
17111 prefix
="$acl_save_prefix"
17113 if test "X$x" = "X$element"; then
17118 if test -z "$haveit"; then
17119 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17125 $as_echo_n "checking for libbabeltrace... " >&6; }
17126 if test "${ac_cv_libbabeltrace+set}" = set; then :
17127 $as_echo_n "(cached) " >&6
17130 ac_save_LIBS
="$LIBS"
17131 LIBS
="$LIBS $LIBBABELTRACE"
17132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17133 /* end confdefs.h. */
17134 #include <babeltrace/babeltrace.h>
17135 #include <babeltrace/ctf/events.h>
17136 #include <babeltrace/ctf/iterator.h>
17140 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17141 struct bt_ctf_event *event = NULL;
17142 const struct bt_definition *scope;
17144 pos->type = BT_SEEK_BEGIN;
17145 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17146 scope = bt_ctf_get_top_level_scope (event,
17147 BT_STREAM_EVENT_HEADER);
17148 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17154 if ac_fn_c_try_link
"$LINENO"; then :
17155 ac_cv_libbabeltrace
=yes
17157 ac_cv_libbabeltrace
=no
17159 rm -f core conftest.err conftest.
$ac_objext \
17160 conftest
$ac_exeext conftest.
$ac_ext
17161 LIBS
="$ac_save_LIBS"
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17165 $as_echo "$ac_cv_libbabeltrace" >&6; }
17166 if test "$ac_cv_libbabeltrace" = yes; then
17167 HAVE_LIBBABELTRACE
=yes
17169 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17172 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17174 $as_echo "$LIBBABELTRACE" >&6; }
17176 HAVE_LIBBABELTRACE
=no
17177 CPPFLAGS
="$ac_save_CPPFLAGS"
17187 CFLAGS
=$saved_CFLAGS
17189 if test "$HAVE_LIBBABELTRACE" != yes; then
17190 if test "$with_babeltrace" = yes; then
17191 as_fn_error
"babeltrace is missing or unusable" "$LINENO" 5
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17194 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17199 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17206 if test "${nativefile}" != ""; then
17207 case "${nativefile}" in
17208 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
17209 * ) GDB_NM_FILE
="${nativefile}"
17211 files
="${files} ${GDB_NM_FILE}"
17212 links
="${links} nm.h"
17214 cat >>confdefs.h
<<_ACEOF
17215 #define GDB_NM_FILE "${GDB_NM_FILE}"
17221 for ac_prog
in xsltproc
17223 # Extract the first word of "$ac_prog", so it can be a program name with args.
17224 set dummy
$ac_prog; ac_word
=$2
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17226 $as_echo_n "checking for $ac_word... " >&6; }
17227 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
17228 $as_echo_n "(cached) " >&6
17232 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
17235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17236 for as_dir
in $PATH
17239 test -z "$as_dir" && as_dir
=.
17240 for ac_exec_ext
in '' $ac_executable_extensions; do
17241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17242 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
17243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17253 XSLTPROC
=$ac_cv_path_XSLTPROC
17254 if test -n "$XSLTPROC"; then
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17256 $as_echo "$XSLTPROC" >&6; }
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17259 $as_echo "no" >&6; }
17263 test -n "$XSLTPROC" && break
17265 test -n "$XSLTPROC" || XSLTPROC
="missing"
17267 if test "x$USE_MAINTAINER_MODE" = xyes
; then
17268 if test "${XSLTPROC}" = missing
; then
17269 as_fn_error
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17274 ac_sources
="$files"
17276 while test -n "$ac_sources"; do
17277 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
17278 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
17279 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
17281 ac_config_links
="$ac_config_links $ac_config_links_1"
17287 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17290 if $development; then
17292 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17294 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS)"
17295 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS)"
17299 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17300 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
17301 if test "x$GDB_TRANSFORM_NAME" = x
; then
17302 GDB_TRANSFORM_NAME
=gdb
17307 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17308 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
17309 if test "x$GCORE_TRANSFORM_NAME" = x
; then
17310 GCORE_TRANSFORM_NAME
=gcore
17314 ac_config_files
="$ac_config_files gcore"
17316 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
17319 cat >confcache
<<\_ACEOF
17320 # This file is a shell script that caches the results of configure
17321 # tests run on this system so they can be shared between configure
17322 # scripts and configure runs, see configure's option --config-cache.
17323 # It is not useful on other systems. If it contains results you don't
17324 # want to keep, you may remove or edit it.
17326 # config.status only pays attention to the cache file if you give it
17327 # the --recheck option to rerun configure.
17329 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17330 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17331 # following values.
17335 # The following way of writing the cache mishandles newlines in values,
17336 # but we know of no workaround that is simple, portable, and efficient.
17337 # So, we kill variables containing newlines.
17338 # Ultrix sh set writes to stderr and can't be redirected directly,
17339 # and sets the high bit in the cache file unless we assign to the vars.
17341 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17342 eval ac_val
=\$
$ac_var
17346 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17347 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17350 _ | IFS | as_nl
) ;; #(
17351 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17352 *) { eval $ac_var=; unset $ac_var;} ;;
17358 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17359 *${as_nl}ac_space
=\
*)
17360 # `set' does not quote correctly, so add quotes: double-quote
17361 # substitution turns \\\\ into \\, and sed turns \\ into \.
17364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17367 # `set' quotes correctly as required by POSIX, so do not add quotes.
17368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17381 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17382 if test -w "$cache_file"; then
17383 test "x$cache_file" != "x/dev/null" &&
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17385 $as_echo "$as_me: updating cache $cache_file" >&6;}
17386 cat confcache
>$cache_file
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17389 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17394 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17395 # Let make expand exec_prefix.
17396 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17398 DEFS
=-DHAVE_CONFIG_H
17402 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17403 # 1. Remove the extension, and $U if already installed.
17404 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17405 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17406 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17407 # will be set to the directory where LIBOBJS objects are built.
17408 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17409 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17411 LIBOBJS
=$ac_libobjs
17413 LTLIBOBJS
=$ac_ltlibobjs
17416 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17417 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
17418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17420 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17421 as_fn_error
"conditional \"HAVE_PYTHON\" was never defined.
17422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17424 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17425 as_fn_error
"conditional \"HAVE_GUILE\" was never defined.
17426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17430 : ${CONFIG_STATUS=./config.status}
17432 ac_clean_files_save
=$ac_clean_files
17433 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17435 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17437 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17439 # Generated by $as_me.
17440 # Run this file to recreate the current configuration.
17441 # Compiler output produced by configure, useful for debugging
17442 # configure, is in config.log if it exists.
17445 ac_cs_recheck=false
17448 SHELL=\${CONFIG_SHELL-$SHELL}
17451 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17452 ## -------------------- ##
17453 ## M4sh Initialization. ##
17454 ## -------------------- ##
17456 # Be more Bourne compatible
17457 DUALCASE
=1; export DUALCASE
# for MKS sh
17458 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17461 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17462 # is contrary to our usage. Disable this feature.
17463 alias -g '${1+"$@"}'='"$@"'
17464 setopt NO_GLOB_SUBST
17466 case `(set -o) 2>/dev/null` in #(
17478 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17479 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17480 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17481 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17482 # Prefer a ksh shell builtin over an external printf program on Solaris,
17483 # but without wasting forks for bash or zsh.
17484 if test -z "$BASH_VERSION$ZSH_VERSION" \
17485 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17486 as_echo='print
-r --'
17487 as_echo_n='print
-rn --'
17488 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17489 as_echo='printf %s
\n'
17490 as_echo_n='printf %s
'
17492 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17493 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17494 as_echo_n='/usr
/ucb
/echo -n'
17496 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17497 as_echo_n_body='eval
17501 expr "X$arg" : "X\\(.*\\)$as_nl";
17502 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17504 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17506 export as_echo_n_body
17507 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17509 export as_echo_body
17510 as_echo='sh
-c $as_echo_body as_echo
'
17513 # The user is always right.
17514 if test "${PATH_SEPARATOR+set}" != set; then
17516 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17517 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17524 # We need space, tab and new line, in precisely that order. Quoting is
17525 # there to prevent editors from complaining about space-tab.
17526 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17527 # splitting by setting IFS to empty value.)
17530 # Find who we are. Look in the path if we contain no directory separator.
17532 *[\\/]* ) as_myself=$0 ;;
17533 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17534 for as_dir in $PATH
17537 test -z "$as_dir" && as_dir=.
17538 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17544 # We did not find ourselves, most probably we were run as `sh COMMAND'
17545 # in which case we are not to be found in the path.
17546 if test "x$as_myself" = x
; then
17549 if test ! -f "$as_myself"; then
17550 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17554 # Unset variables that we do not need and which cause bugs (e.g. in
17555 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17556 # suppresses any "Segmentation fault" message there. '((' could
17557 # trigger a bug in pdksh 5.2.14.
17558 for as_var
in BASH_ENV ENV MAIL MAILPATH
17559 do eval test x\
${$as_var+set} = xset \
17560 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17573 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17576 # as_fn_error ERROR [LINENO LOG_FD]
17577 # ---------------------------------
17578 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17579 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17580 # script with status $?, using 1 if that was 0.
17583 as_status
=$?
; test $as_status -eq 0 && as_status
=1
17585 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17586 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17588 $as_echo "$as_me: error: $1" >&2
17589 as_fn_exit
$as_status
17593 # as_fn_set_status STATUS
17594 # -----------------------
17595 # Set $? to STATUS, without forking.
17596 as_fn_set_status
()
17599 } # as_fn_set_status
17601 # as_fn_exit STATUS
17602 # -----------------
17603 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17607 as_fn_set_status
$1
17613 # Portably unset VAR.
17616 { eval $1=; unset $1;}
17618 as_unset
=as_fn_unset
17619 # as_fn_append VAR VALUE
17620 # ----------------------
17621 # Append the text in VALUE to the end of the definition contained in VAR. Take
17622 # advantage of any shell optimizations that allow amortized linear growth over
17623 # repeated appends, instead of the typical quadratic growth present in naive
17625 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17626 eval 'as_fn_append ()
17637 # as_fn_arith ARG...
17638 # ------------------
17639 # Perform arithmetic evaluation on the ARGs, and store the result in the
17640 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17641 # must be portable across $(()) and expr.
17642 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17643 eval 'as_fn_arith ()
17650 as_val
=`expr "$@" || test $? -eq 1`
17655 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17656 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17662 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17663 as_basename
=basename
17668 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17674 as_me
=`$as_basename -- "$0" ||
17675 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17676 X"$0" : 'X\(//\)$' \| \
17677 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17679 sed '/^.*\/\([^/][^/]*\)\/*$/{
17693 # Avoid depending upon Character Ranges.
17694 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17695 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17696 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17697 as_cr_digits
='0123456789'
17698 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17700 ECHO_C
= ECHO_N
= ECHO_T
=
17701 case `echo -n x` in #(((((
17703 case `echo 'xy\c'` in
17704 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17706 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17713 rm -f conf$$ conf$$.exe conf$$.
file
17714 if test -d conf$$.dir
; then
17715 rm -f conf$$.dir
/conf$$.
file
17718 mkdir conf$$.dir
2>/dev
/null
17720 if (echo >conf$$.
file) 2>/dev
/null
; then
17721 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17723 # ... but there are two gotchas:
17724 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17725 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17726 # In both cases, we have to default to `cp -p'.
17727 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17729 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17737 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17738 rmdir conf$$.dir
2>/dev
/null
17743 # Create "$as_dir" as a directory, including parents if necessary.
17748 -*) as_dir
=.
/$as_dir;;
17750 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17754 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17755 *) as_qdir
=$as_dir;;
17757 as_dirs
="'$as_qdir' $as_dirs"
17758 as_dir
=`$as_dirname -- "$as_dir" ||
17759 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17760 X"$as_dir" : 'X\(//\)[^/]' \| \
17761 X"$as_dir" : 'X\(//\)$' \| \
17762 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17763 $as_echo X"$as_dir" |
17764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17768 /^X\(\/\/\)[^/].*/{
17781 test -d "$as_dir" && break
17783 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17784 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
17788 if mkdir
-p .
2>/dev
/null
; then
17789 as_mkdir_p
='mkdir -p "$as_dir"'
17791 test -d .
/-p && rmdir .
/-p
17795 if test -x / >/dev
/null
2>&1; then
17796 as_test_x
='test -x'
17798 if ls -dL / >/dev
/null
2>&1; then
17805 if test -d "$1"; then
17811 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17812 ???[sx]*):;;*)false;;esac;fi
17816 as_executable_p
=$as_test_x
17818 # Sed expression to map a string onto a valid CPP name.
17819 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17821 # Sed expression to map a string onto a valid variable name.
17822 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17826 ## ----------------------------------- ##
17827 ## Main body of $CONFIG_STATUS script. ##
17828 ## ----------------------------------- ##
17830 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17833 # Save the log message, to keep $0 and so on meaningful, and to
17834 # report actual input values of CONFIG_FILES etc. instead of their
17835 # values after options handling.
17837 This file was extended by $as_me, which was
17838 generated by GNU Autoconf 2.64. Invocation command line was
17840 CONFIG_FILES = $CONFIG_FILES
17841 CONFIG_HEADERS = $CONFIG_HEADERS
17842 CONFIG_LINKS = $CONFIG_LINKS
17843 CONFIG_COMMANDS = $CONFIG_COMMANDS
17846 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17851 case $ac_config_files in *"
17852 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17855 case $ac_config_headers in *"
17856 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17861 # Files that config.status was made for.
17862 config_files="$ac_config_files"
17863 config_headers="$ac_config_headers"
17864 config_links="$ac_config_links"
17865 config_commands="$ac_config_commands"
17869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17871 \`$as_me' instantiates files and other configuration actions
17872 from templates according to the current configuration. Unless the files
17873 and actions are specified as TAGs, all are instantiated by default.
17875 Usage: $0 [OPTION]... [TAG]...
17877 -h, --help print this help, then exit
17878 -V, --version print version number and configuration settings, then exit
17879 -q, --quiet, --silent
17880 do not print progress messages
17881 -d, --debug don't remove temporary files
17882 --recheck update $as_me by reconfiguring in the same conditions
17883 --file=FILE[:TEMPLATE]
17884 instantiate the configuration file FILE
17885 --header=FILE[:TEMPLATE]
17886 instantiate the configuration header FILE
17888 Configuration files:
17891 Configuration headers:
17894 Configuration links:
17897 Configuration commands:
17900 Report bugs to the package provider."
17903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17906 configured by $0, generated by GNU Autoconf 2.64,
17907 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17909 Copyright (C) 2009 Free Software Foundation, Inc.
17910 This config.status script is free software; the Free Software Foundation
17911 gives unlimited permission to copy, distribute and modify it."
17917 test -n "\$AWK" || AWK=awk
17920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17921 # The default lists apply if the user does not specify any file.
17927 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17928 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17939 # Handling of the options.
17940 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17942 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17943 $as_echo "$ac_cs_version"; exit ;;
17944 --debug |
--debu |
--deb |
--de |
--d |
-d )
17946 --file |
--fil |
--fi |
--f )
17949 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17951 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17952 ac_need_defaults
=false
;;
17953 --header |
--heade |
--head |
--hea )
17956 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17958 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17959 ac_need_defaults
=false
;;
17961 # Conflict between --help and --header
17962 as_fn_error
"ambiguous option: \`$1'
17963 Try \`$0 --help' for more information.";;
17964 --help |
--hel |
-h )
17965 $as_echo "$ac_cs_usage"; exit ;;
17966 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17967 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17970 # This is an error.
17971 -*) as_fn_error
"unrecognized option: \`$1'
17972 Try \`$0 --help' for more information." ;;
17974 *) as_fn_append ac_config_targets
" $1"
17975 ac_need_defaults
=false
;;
17981 ac_configure_extra_args
=
17983 if $ac_cs_silent; then
17985 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17990 if \$ac_cs_recheck; then
17991 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17993 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17994 CONFIG_SHELL='$SHELL'
17995 export CONFIG_SHELL
18000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18004 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18005 ## Running $as_me. ##
18011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18015 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18016 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
18020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18022 # Handling of arguments.
18023 for ac_config_target
in $ac_config_targets
18025 case $ac_config_target in
18026 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18027 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
18028 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
18029 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18030 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
18031 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
18032 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18033 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
18034 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18035 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
18037 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18042 # If the user did not use the arguments to specify the items to instantiate,
18043 # then the envvar interface is used. Set only those that are not.
18044 # We use the long form for the default assignment because of an extremely
18045 # bizarre bug on SunOS 4.1.3.
18046 if $ac_need_defaults; then
18047 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18048 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18049 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18050 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18053 # Have a temporary directory for convenience. Make it in the build tree
18054 # simply because there is no reason against having it here, and in addition,
18055 # creating and moving files from /tmp can sometimes cause problems.
18056 # Hook for its removal unless debugging.
18057 # Note that there is a small window in which the directory will not be cleaned:
18058 # after its creation but before its name has been assigned to `$tmp'.
18062 trap 'exit_status=$?
18063 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18065 trap 'as_fn_exit 1' 1 2 13 15
18067 # Create a (secure) tmp directory for tmp files.
18070 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18071 test -n "$tmp" && test -d "$tmp"
18074 tmp
=.
/conf$$
-$RANDOM
18075 (umask 077 && mkdir
"$tmp")
18076 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
18078 # Set up the scripts for CONFIG_FILES section.
18079 # No need to generate them if there are no CONFIG_FILES.
18080 # This happens for instance with `./config.status config.h'.
18081 if test -n "$CONFIG_FILES"; then
18083 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18084 ac_cs_awk_getline
=:
18085 ac_cs_awk_pipe_init
=
18086 ac_cs_awk_read_file
='
18087 while ((getline aline < (F[key])) > 0)
18090 ac_cs_awk_pipe_fini
=
18092 ac_cs_awk_getline
=false
18093 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18094 ac_cs_awk_read_file
='
18096 print "cat " F[key] " &&"
18097 '$ac_cs_awk_pipe_init
18098 # The final `:' finishes the AND list.
18099 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18101 ac_cr
=`echo X | tr X '\015'`
18102 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18103 # But we know of no other shell where ac_cr would be empty at this
18104 # point, so we can use a bashism as a fallback.
18105 if test "x$ac_cr" = x
; then
18106 eval ac_cr
=\$
\'\\r
\'
18108 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18109 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18112 ac_cs_awk_cr
=$ac_cr
18115 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18118 # Create commands to substitute file output variables.
18120 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18121 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18122 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18125 } >conf$
$files.sh
&&
18126 . .
/conf$
$files.sh ||
18127 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
18128 rm -f conf$
$files.sh
18131 echo "cat >conf$$subs.awk <<_ACEOF" &&
18132 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18134 } >conf$$subs.sh ||
18135 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18136 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18138 for ac_last_try in false false false false false :; do
18139 . ./conf$$subs.sh ||
18140 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18142 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18143 if test $ac_delim_n = $ac_delim_num; then
18145 elif $ac_last_try; then
18146 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18148 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18151 rm -f conf$$subs.sh
18153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18154 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18158 s/^/S["/; s
/!.
*/"]=/
18168 s/\(.\{148\}\).*/\1/
18170 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18175 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18182 s/\(.\{148\}\).*/\1/
18184 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18188 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18193 ' <conf$$subs.awk | sed '
18198 ' >>$CONFIG_STATUS || ac_write_fail=1
18199 rm -f conf$$subs.awk
18200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18202 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18203 for (key in S) S_is_set[key] = 1
18205 \$ac_cs_awk_pipe_init
18209 nfields = split(line, field, "@
")
18211 len = length(field[1])
18212 for (i = 2; i < nfields; i++) {
18214 keylen = length(key)
18215 if (S_is_set[key]) {
18217 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18218 len += length(value) + length(field[++i])
18223 if (nfields == 3 && !substed) {
18225 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18226 \$ac_cs_awk_read_file
18232 \$ac_cs_awk_pipe_fini
18235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18236 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18237 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18240 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18241 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
18244 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18245 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18246 # trailing colons and then remove the whole line if VPATH becomes empty
18247 # (actually we leave an empty line to preserve line numbers).
18248 if test "x
$srcdir" = x.; then
18249 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18250 s/:*\$(srcdir):*/:/
18251 s/:*\${srcdir}:*/:/
18253 s/^\([^=]*=[ ]*\):*/\1/
18259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18260 fi # test -n "$CONFIG_FILES"
18262 # Set up the scripts for CONFIG_HEADERS section.
18263 # No need to generate them if there are no CONFIG_HEADERS.
18264 # This happens for instance with `./config.status Makefile'.
18265 if test -n "$CONFIG_HEADERS"; then
18266 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18270 # Transform confdefs.h into an awk script `defines.awk', embedded as
18271 # here-document in config.status, that substitutes the proper values into
18272 # config.h.in to produce config.h.
18274 # Create a delimiter string that does not exist in confdefs.h, to ease
18275 # handling of long lines.
18277 for ac_last_try in false false :; do
18278 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18279 if test -z "$ac_t"; then
18281 elif $ac_last_try; then
18282 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
18284 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18288 # For the awk script, D is an array of macro values keyed by name,
18289 # likewise P contains macro parameters if any. Preserve backslash
18290 # newline sequences.
18292 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18294 s/.\{148\}/&'"$ac_delim"'/g
18297 s/^[ ]*#[ ]*define[ ][ ]*/ /
18304 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18306 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18310 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18311 D["\
1"]=" \
3\\\\\\n
"\\/p
18313 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18318 s/.\{148\}/&'"$ac_delim"'/g
18323 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18326 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18328 ' <confdefs.h | sed '
18329 s/'"$ac_delim"'/"\\\
18330 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18333 for (key in D) D_is_set[key] = 1
18336 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18338 split(line, arg, " ")
18339 if (arg[1] == "#") {
18343 defundef
= substr
(arg
[1], 2)
18346 split(mac1
, mac2
, "(") #)
18348 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18349 if (D_is_set
[macro
]) {
18350 # Preserve the white space surrounding the "#".
18351 print prefix
"define", macro P
[macro
] D
[macro
]
18354 # Replace #undef with comments. This is necessary, for example,
18355 # in the case of _POSIX_SOURCE, which is predefined and required
18356 # on some systems where configure will not decide to define it.
18357 if (defundef
== "undef") {
18358 print
"/*", prefix defundef
, macro
, "*/"
18366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18367 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
18368 fi # test -n "$CONFIG_HEADERS"
18371 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18376 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18378 case $ac_mode$ac_tag in
18380 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18381 :[FH
]-) ac_tag
=-:-;;
18382 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18399 -) ac_f
="$tmp/stdin";;
18400 *) # Look for the file first in the build tree, then in the source tree
18401 # (if the path is not absolute). The absolute path cannot be DOS-style,
18402 # because $ac_f cannot contain `:'.
18406 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18408 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
18410 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18411 as_fn_append ac_file_inputs
" '$ac_f'"
18414 # Let's still pretend it is `configure' which instantiates (i.e., don't
18415 # use $as_me), people would be surprised to read:
18416 # /* config.h. Generated by config.status. */
18417 configure_input
='Generated from '`
18418 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18420 if test x
"$ac_file" != x-
; then
18421 configure_input
="$ac_file. $configure_input"
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18423 $as_echo "$as_me: creating $ac_file" >&6;}
18425 # Neutralize special characters interpreted by sed in replacement strings.
18426 case $configure_input in #(
18427 *\
&* |
*\|
* |
*\\* )
18428 ac_sed_conf_input
=`$as_echo "$configure_input" |
18429 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18430 *) ac_sed_conf_input
=$configure_input;;
18434 *:-:* |
*:-) cat >"$tmp/stdin" \
18435 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
18440 ac_dir
=`$as_dirname -- "$ac_file" ||
18441 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18442 X"$ac_file" : 'X\(//\)[^/]' \| \
18443 X"$ac_file" : 'X\(//\)$' \| \
18444 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18445 $as_echo X"$ac_file" |
18446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18450 /^X\(\/\/\)[^/].*/{
18463 as_dir
="$ac_dir"; as_fn_mkdir_p
18467 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18469 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18470 # A ".." for each directory in $ac_dir_suffix.
18471 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18472 case $ac_top_builddir_sub in
18473 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18474 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18477 ac_abs_top_builddir
=$ac_pwd
18478 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18479 # for backward compatibility:
18480 ac_top_builddir
=$ac_top_build_prefix
18483 .
) # We are building in place.
18485 ac_top_srcdir
=$ac_top_builddir_sub
18486 ac_abs_top_srcdir
=$ac_pwd ;;
18487 [\\/]* | ?
:[\\/]* ) # Absolute name.
18488 ac_srcdir
=$srcdir$ac_dir_suffix;
18489 ac_top_srcdir
=$srcdir
18490 ac_abs_top_srcdir
=$srcdir ;;
18491 *) # Relative name.
18492 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18493 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18494 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18496 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18506 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18507 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18512 # If the template does not know about datarootdir, expand it.
18513 # FIXME: This hack should be removed a few years after 2.60.
18514 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18525 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18526 *datarootdir
*) ac_datarootdir_seen
=yes;;
18527 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18529 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18532 ac_datarootdir_hack='
18533 s&@datadir@&$datadir&g
18534 s&@docdir@&$docdir&g
18535 s&@infodir@&$infodir&g
18536 s&@localedir@&$localedir&g
18537 s&@mandir@&$mandir&g
18538 s&\\\${datarootdir}&$datarootdir&g' ;;
18542 # Neutralize VPATH when `$srcdir' = `.'.
18543 # Shell code in configure.ac might set extrasub.
18544 # FIXME: do we really want to maintain this feature?
18545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18546 ac_sed_extra="$ac_vpsub
18549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18551 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18552 s|@configure_input@|
$ac_sed_conf_input|
;t t
18553 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18554 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18555 s
&@srcdir@
&$ac_srcdir&;t t
18556 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18557 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18558 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18559 s
&@builddir@
&$ac_builddir&;t t
18560 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18561 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18562 s
&@INSTALL@
&$ac_INSTALL&;t t
18563 $ac_datarootdir_hack
18565 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18566 if $ac_cs_awk_getline; then
18567 $AWK -f "$tmp/subs.
awk"
18569 $AWK -f "$tmp/subs.
awk" | $SHELL
18571 || as_fn_error "could not create
$ac_file" "$LINENO" 5
18573 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18574 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18575 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18577 which seems to be undefined. Please make sure it is defined." >&5
18578 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18579 which seems to be undefined. Please make sure it is defined." >&2;}
18583 -) cat "$tmp/out" && rm -f "$tmp/out";;
18584 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18586 || as_fn_error "could not create $ac_file" "$LINENO" 5
18592 if test x"$ac_file" != x-; then
18594 $as_echo "/* $configure_input */" \
18595 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18596 } >"$tmp/config.h" \
18597 || as_fn_error "could not create $ac_file" "$LINENO" 5
18598 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18600 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18603 mv "$tmp/config.h" "$ac_file" \
18604 || as_fn_error "could not create $ac_file" "$LINENO" 5
18607 $as_echo "/* $configure_input */" \
18608 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18609 || as_fn_error "could not create -" "$LINENO" 5
18617 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
18620 # Prefer the file from the source tree if names are identical.
18621 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18622 ac_source=$srcdir/$ac_source
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18626 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18628 if test ! -r "$ac_source"; then
18629 as_fn_error "$ac_source: file not found" "$LINENO" 5
18633 # Try a relative symlink, then a hard link, then a copy.
18635 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18636 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18638 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18639 ln "$ac_source" "$ac_file" 2>/dev/null ||
18640 cp -p "$ac_source" "$ac_file" ||
18641 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18644 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18645 $as_echo "$as_me: executing $ac_file commands" >&6;}
18650 case $ac_file$ac_mode in
18651 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
18653 for subdir in ${CONFIG_SRC_SUBDIR}
18655 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
18657 "gcore":F) chmod +x gcore ;;
18659 case x$CONFIG_HEADERS in
18660 xconfig.h:config.in)
18665 case x$CONFIG_HEADERS in
18666 xconfig.h:config.in)
18671 case x$CONFIG_HEADERS in
18672 xconfig.h:config.in)
18676 "data-directory/Makefile":F)
18677 case x$CONFIG_HEADERS in
18678 xconfig.h:config.in)
18689 ac_clean_files=$ac_clean_files_save
18691 test $ac_write_fail = 0 ||
18692 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18695 # configure is writing to config.log, and then calls config.status.
18696 # config.status does its own redirection, appending to config.log.
18697 # Unfortunately, on DOS this fails, as config.log is still kept open
18698 # by configure, so config.status won't be able to
write to it
; its
18699 # output is simply discarded. So we exec the FD to /dev/null,
18700 # effectively closing config.log, so it can be properly (re)opened and
18701 # appended to by config.status. When coming back to configure, we
18702 # need to make the FD available again.
18703 if test "$no_create" != yes; then
18705 ac_config_status_args
=
18706 test "$silent" = yes &&
18707 ac_config_status_args
="$ac_config_status_args --quiet"
18709 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18711 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18712 # would make configure fail if this is the last instruction.
18713 $ac_cs_success || as_fn_exit $?
18717 # CONFIG_SUBDIRS section.
18719 if test "$no_recursion" != yes; then
18721 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18722 # so they do not pile up.
18723 ac_sub_configure_args
=
18725 eval "set x $ac_configure_args"
18729 if test -n "$ac_prev"; then
18734 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
18735 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
18736 ac_prev
=cache_file
;;
18737 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
18738 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
18741 --config-cache |
-C)
18743 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
18745 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
18747 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
18749 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
18751 --disable-option-checking)
18755 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18757 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
18761 # Always prepend --prefix to ensure using the same prefix
18762 # in subdir configurations.
18763 ac_arg
="--prefix=$prefix"
18765 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18767 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
18770 if test "$silent" = yes; then
18771 ac_sub_configure_args
="--silent $ac_sub_configure_args"
18774 # Always prepend --disable-option-checking to silence warnings, since
18775 # different subdirs can have different --enable and --with options.
18776 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
18779 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
18781 # Do not complain, so a configure script can configure whichever
18782 # parts of a large source tree are present.
18783 test -d "$srcdir/$ac_dir" ||
continue
18785 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18786 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18787 $as_echo "$ac_msg" >&6
18788 as_dir
="$ac_dir"; as_fn_mkdir_p
18792 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18794 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18795 # A ".." for each directory in $ac_dir_suffix.
18796 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18797 case $ac_top_builddir_sub in
18798 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18799 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18802 ac_abs_top_builddir
=$ac_pwd
18803 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18804 # for backward compatibility:
18805 ac_top_builddir
=$ac_top_build_prefix
18808 .
) # We are building in place.
18810 ac_top_srcdir
=$ac_top_builddir_sub
18811 ac_abs_top_srcdir
=$ac_pwd ;;
18812 [\\/]* | ?
:[\\/]* ) # Absolute name.
18813 ac_srcdir
=$srcdir$ac_dir_suffix;
18814 ac_top_srcdir
=$srcdir
18815 ac_abs_top_srcdir
=$srcdir ;;
18816 *) # Relative name.
18817 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18818 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18819 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18821 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18826 # Check for guested configure; otherwise get Cygnus style configure.
18827 if test -f "$ac_srcdir/configure.gnu"; then
18828 ac_sub_configure
=$ac_srcdir/configure.gnu
18829 elif test -f "$ac_srcdir/configure"; then
18830 ac_sub_configure
=$ac_srcdir/configure
18831 elif test -f "$ac_srcdir/configure.in"; then
18832 # This should be Cygnus configure.
18833 ac_sub_configure
=$ac_aux_dir/configure
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18836 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18840 # The recursion is here.
18841 if test -n "$ac_sub_configure"; then
18842 # Make the cache file name correct relative to the subdirectory.
18843 case $cache_file in
18844 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
18845 *) # Relative name.
18846 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
18849 { $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
18850 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18851 # The eval makes quoting arguments work.
18852 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18853 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18854 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18860 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18862 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}