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
682 READLINE_TEXI_INCFLAG
703 HAVE_NATIVE_GCORE_TARGET
733 INSTALL_STRIP_PROGRAM
762 MAINTAINER_MODE_FALSE
791 program_transform_name
802 ac_subst_files
='host_makefile_frag'
804 enable_option_checking
805 enable_maintainer_mode
808 enable_build_with_cxx
809 with_separate_debug_dir
811 with_relocated_sources
813 with_auto_load_safe_path
843 enable_build_warnings
844 enable_gdb_build_warnings
854 with_libbabeltrace_prefix
856 ac_precious_vars
='build_alias
873 ac_subdirs_all
='testsuite
878 # Initialize some variables set by options.
880 ac_init_version
=false
881 ac_unrecognized_opts
=
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
892 program_transform_name
=s
,x
,x
,
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir
='${exec_prefix}/bin'
907 sbindir
='${exec_prefix}/sbin'
908 libexecdir
='${exec_prefix}/libexec'
909 datarootdir
='${prefix}/share'
910 datadir
='${datarootdir}'
911 sysconfdir
='${prefix}/etc'
912 sharedstatedir
='${prefix}/com'
913 localstatedir
='${prefix}/var'
914 includedir
='${prefix}/include'
915 oldincludedir
='/usr/include'
916 docdir
='${datarootdir}/doc/${PACKAGE}'
917 infodir
='${datarootdir}/info'
922 libdir
='${exec_prefix}/lib'
923 localedir
='${datarootdir}/locale'
924 mandir
='${datarootdir}/man'
930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
932 eval $ac_prev=\
$ac_option
938 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 # Accept the important Cygnus configure options, so we can diagnose typos.
944 case $ac_dashdash$ac_option in
948 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
950 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
953 -build |
--build |
--buil |
--bui |
--bu)
954 ac_prev
=build_alias
;;
955 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
956 build_alias
=$ac_optarg ;;
958 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
959 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
960 ac_prev
=cache_file
;;
961 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
962 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
963 cache_file
=$ac_optarg ;;
966 cache_file
=config.cache
;;
968 -datadir |
--datadir |
--datadi |
--datad)
970 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
971 datadir
=$ac_optarg ;;
973 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
974 |
--dataroo |
--dataro |
--datar)
975 ac_prev
=datarootdir
;;
976 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
977 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
978 datarootdir
=$ac_optarg ;;
980 -disable-* |
--disable-*)
981 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
984 as_fn_error
"invalid feature name: $ac_useropt"
985 ac_useropt_orig
=$ac_useropt
986 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
991 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep
=', ';;
994 eval enable_
$ac_useropt=no
;;
996 -docdir |
--docdir |
--docdi |
--doc |
--do)
998 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1001 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1003 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1004 dvidir
=$ac_optarg ;;
1006 -enable-* |
--enable-*)
1007 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1010 as_fn_error
"invalid feature name: $ac_useropt"
1011 ac_useropt_orig
=$ac_useropt
1012 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1015 "enable_
$ac_useropt"
1017 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018 ac_unrecognized_sep
=', ';;
1020 eval enable_
$ac_useropt=\
$ac_optarg ;;
1022 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1023 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1024 |
--exec |
--exe |
--ex)
1025 ac_prev
=exec_prefix
;;
1026 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1027 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1028 |
--exec=* |
--exe=* |
--ex=*)
1029 exec_prefix
=$ac_optarg ;;
1031 -gas |
--gas |
--ga |
--g)
1032 # Obsolete; use --with-gas.
1035 -help |
--help |
--hel |
--he |
-h)
1036 ac_init_help
=long
;;
1037 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1038 ac_init_help
=recursive
;;
1039 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1040 ac_init_help
=short
;;
1042 -host |
--host |
--hos |
--ho)
1043 ac_prev
=host_alias
;;
1044 -host=* |
--host=* |
--hos=* |
--ho=*)
1045 host_alias
=$ac_optarg ;;
1047 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1049 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1051 htmldir
=$ac_optarg ;;
1053 -includedir |
--includedir |
--includedi |
--included |
--include \
1054 |
--includ |
--inclu |
--incl |
--inc)
1055 ac_prev
=includedir
;;
1056 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1057 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1058 includedir
=$ac_optarg ;;
1060 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1062 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1063 infodir
=$ac_optarg ;;
1065 -libdir |
--libdir |
--libdi |
--libd)
1067 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1068 libdir
=$ac_optarg ;;
1070 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1071 |
--libexe |
--libex |
--libe)
1072 ac_prev
=libexecdir
;;
1073 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1074 |
--libexe=* |
--libex=* |
--libe=*)
1075 libexecdir
=$ac_optarg ;;
1077 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1078 ac_prev
=localedir
;;
1079 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1080 localedir
=$ac_optarg ;;
1082 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1083 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1084 ac_prev
=localstatedir
;;
1085 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1086 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1087 localstatedir
=$ac_optarg ;;
1089 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1091 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1092 mandir
=$ac_optarg ;;
1094 -nfp |
--nfp |
--nf)
1095 # Obsolete; use --without-fp.
1098 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1099 |
--no-cr |
--no-c |
-n)
1102 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1103 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1106 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1107 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1108 |
--oldin |
--oldi |
--old |
--ol |
--o)
1109 ac_prev
=oldincludedir
;;
1110 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1111 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1112 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1113 oldincludedir
=$ac_optarg ;;
1115 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1117 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1118 prefix
=$ac_optarg ;;
1120 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1121 |
--program-pre |
--program-pr |
--program-p)
1122 ac_prev
=program_prefix
;;
1123 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1124 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1125 program_prefix
=$ac_optarg ;;
1127 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1128 |
--program-suf |
--program-su |
--program-s)
1129 ac_prev
=program_suffix
;;
1130 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1131 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1132 program_suffix
=$ac_optarg ;;
1134 -program-transform-name |
--program-transform-name \
1135 |
--program-transform-nam |
--program-transform-na \
1136 |
--program-transform-n |
--program-transform- \
1137 |
--program-transform |
--program-transfor \
1138 |
--program-transfo |
--program-transf \
1139 |
--program-trans |
--program-tran \
1140 |
--progr-tra |
--program-tr |
--program-t)
1141 ac_prev
=program_transform_name
;;
1142 -program-transform-name=* |
--program-transform-name=* \
1143 |
--program-transform-nam=* |
--program-transform-na=* \
1144 |
--program-transform-n=* |
--program-transform-=* \
1145 |
--program-transform=* |
--program-transfor=* \
1146 |
--program-transfo=* |
--program-transf=* \
1147 |
--program-trans=* |
--program-tran=* \
1148 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1149 program_transform_name
=$ac_optarg ;;
1151 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1153 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1154 pdfdir
=$ac_optarg ;;
1156 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1158 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1161 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1162 |
-silent |
--silent |
--silen |
--sile |
--sil)
1165 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1167 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1169 sbindir
=$ac_optarg ;;
1171 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1172 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1173 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1175 ac_prev
=sharedstatedir
;;
1176 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1177 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1178 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1180 sharedstatedir
=$ac_optarg ;;
1182 -site |
--site |
--sit)
1184 -site=* |
--site=* |
--sit=*)
1187 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1189 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1190 srcdir
=$ac_optarg ;;
1192 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1193 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1194 ac_prev
=sysconfdir
;;
1195 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1196 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1197 sysconfdir
=$ac_optarg ;;
1199 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1200 ac_prev
=target_alias
;;
1201 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1202 target_alias
=$ac_optarg ;;
1204 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1207 -version |
--version |
--versio |
--versi |
--vers |
-V)
1208 ac_init_version
=: ;;
1211 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1214 as_fn_error
"invalid package name: $ac_useropt"
1215 ac_useropt_orig
=$ac_useropt
1216 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1221 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222 ac_unrecognized_sep
=', ';;
1224 eval with_
$ac_useropt=\
$ac_optarg ;;
1226 -without-* |
--without-*)
1227 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1230 as_fn_error
"invalid package name: $ac_useropt"
1231 ac_useropt_orig
=$ac_useropt
1232 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1237 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238 ac_unrecognized_sep
=', ';;
1240 eval with_
$ac_useropt=no
;;
1243 # Obsolete; use --with-x.
1246 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1247 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1248 ac_prev
=x_includes
;;
1249 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1250 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1251 x_includes
=$ac_optarg ;;
1253 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1254 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1255 ac_prev
=x_libraries
;;
1256 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1257 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1258 x_libraries
=$ac_optarg ;;
1260 -*) as_fn_error
"unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information."
1265 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 case $ac_envvar in #(
1268 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1269 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1271 eval $ac_envvar=\
$ac_optarg
1272 export $ac_envvar ;;
1275 # FIXME: should be removed in autoconf 3.0.
1276 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1278 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285 if test -n "$ac_prev"; then
1286 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1287 as_fn_error
"missing argument to $ac_option"
1290 if test -n "$ac_unrecognized_opts"; then
1291 case $enable_option_checking in
1293 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1294 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 # Check all directory arguments for consistency.
1299 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1304 eval ac_val
=\$
$ac_var
1305 # Remove trailing slashes.
1308 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309 eval $ac_var=\
$ac_val;;
1311 # Be sure to have absolute directory names.
1313 [\\/$
]* | ?
:[\\/]* ) continue;;
1314 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1316 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1324 target
=$target_alias
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x
; then
1328 if test "x$build_alias" = x
; then
1329 cross_compiling
=maybe
1330 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1331 If a cross compiler is detected then cross compile mode will be used." >&2
1332 elif test "x$build_alias" != "x$host_alias"; then
1338 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1340 test "$silent" = yes && exec 6>/dev
/null
1343 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di
=`ls -di .` &&
1345 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1346 as_fn_error
"working directory cannot be determined"
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 as_fn_error
"pwd does not report name of working directory"
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted
=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir
=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1383 ac_srcdir_defaulted
=no
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1387 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1389 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1401 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 for ac_var
in $ac_precious_vars; do
1404 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1406 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1411 # Report the --help message.
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1417 \`configure' configures this package to adapt to many kinds of systems.
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1424 Defaults for the options are specified in brackets.
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1448 For better control, use the options below.
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1480 --x-includes=DIR X include files are
in DIR
1481 --x-libraries=DIR X library files are
in DIR
1484 --build=BUILD configure
for building on BUILD
[guessed
]
1485 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1486 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1490 if test -n "$ac_init_help"; then
1495 --disable-option-checking ignore unrecognized
--enable/--with options
1496 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1497 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1498 --enable-maintainer-mode enable make rules and dependencies not useful
1499 (and sometimes confusing
) to the casual installer
1500 --enable-plugins Enable support
for plugins
1501 --disable-largefile omit support
for large files
1502 --enable-build-with-cxx build with C
++ compiler instead of C compiler
1503 --enable-targets=TARGETS
1504 alternative target configurations
1505 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1506 --disable-gdbcli disable command-line interface
(CLI
)
1507 --disable-gdbmi disable machine-interface
(MI
)
1508 --enable-tui enable full-screen terminal user interface
(TUI
)
1509 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1510 --enable-profiling enable profiling of GDB
1511 --disable-rpath do not hardcode runtime library paths
1512 --enable-libmcheck Try linking with
-lmcheck if available
1513 --enable-werror treat compile warnings as errors
1514 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1515 --enable-gdb-build-warnings
1516 enable GDB specific build-time compiler warnings
if
1518 --enable-sim link gdb with simulator
1519 --enable-multi-ice build the multi-ice-gdb-server
1520 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1524 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1525 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1526 --with-separate-debug-dir=PATH
1527 look for global separate debug info
in this path
1529 --with-gdb-datadir=PATH
look for global separate data files
in this path
1531 --with-relocated-sources=PATH
1532 automatically relocate this path
for source files
1533 --with-auto-load-dir=PATH
1534 directories from
which to load auto-loaded scripts
1535 [$debugdir:$datadir/auto-load
]
1536 --with-auto-load-safe-path=PATH
1537 directories safe to hold auto-loaded files
1538 [--with-auto-load-dir]
1539 --without-auto-load-safe-path
1540 do not restrict auto-loaded files locations
1541 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1542 --with-curses use the curses library instead of the termcap
1544 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1545 --with-bugurl=URL Direct users to URL to report a bug
1546 --with-system-zlib use installed libz
1547 --with-libiconv-prefix=DIR
1548 search
for libiconv
in DIR
/include and DIR
/lib
1549 --with-iconv-bin=PATH specify where to
find the
iconv program
1550 --with-system-readline use installed readline library
1551 --with-jit-reader-dir=PATH
1552 directory to load the JIT readers from
1553 --with-expat include expat support
(auto
/yes
/no
)
1554 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1555 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1556 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1557 --with-python[=PYTHON] include python support
1558 (auto/yes/no/<python-program>)
1559 --with-guile[=GUILE] include guile support
1560 (auto/yes/no/<guile-version>/<pkg-config-program>)
1561 --with-intel-pt include Intel(R) Processor Trace support (auto/yes/no)
1562 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1563 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1564 --without-included-regex
1565 don
't use included regex; this is the default on
1566 systems with version 2 of the GNU C library (use
1567 with caution on other system)
1568 --with-sysroot[=DIR] search for usr/lib et al within DIR
1569 --with-system-gdbinit=PATH
1570 automatically load a system-wide gdbinit file
1571 --with-lzma support lzma compression (auto/yes/no)
1572 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1573 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1574 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1575 --with-tk directory containing tk configuration
(tkConfig.sh
)
1576 --with-x use the X Window System
1577 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1578 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1579 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1581 Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 LIBS libraries to pass to the linker, e.g. -l<library>
1587 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1588 you have headers in a nonstandard directory <include dir>
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1592 MAKEINFO Parent configure detects if it is of sufficient version.
1594 Parameters for MAKEINFO.
1595 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1596 the first program found out of
: `bison -y', `byacc
', `yacc'.
1597 YFLAGS The list of arguments that will be passed by default to
$YACC.
1598 This
script will default YFLAGS to the empty string to avoid a
1599 default value of
`-d' given by some make applications.
1600 XMKMF Path to xmkmf, Makefile generator for X Window System
1602 Use these variables to override the choices made by `configure
' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1605 Report bugs to the package provider.
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" ||
1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1635 .) # We are building in place.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1669 generated by GNU Autoconf 2.64
1671 Copyright (C) 2009 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1678 ## ------------------------ ##
1679 ## Autoconf initialization. ##
1680 ## ------------------------ ##
1682 # ac_fn_c_try_compile LINENO
1683 # --------------------------
1684 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_compile ()
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext
1689 if { { ac_try="$ac_compile"
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_compile") 2>conftest.err
1698 if test -s conftest.err; then
1699 grep -v '^
*+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest.$ac_objext; then :
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's
/^
/|
/' conftest.$ac_ext >&5
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 } # ac_fn_c_try_compile
1720 # ac_fn_cxx_try_compile LINENO
1721 # ----------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_cxx_try_compile ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1736 if test -s conftest.err; then
1737 grep -v '^
*+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_cxx_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's
/^
/|
/' conftest.$ac_ext >&5
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 } # ac_fn_cxx_try_compile
1758 # ac_fn_c_try_cpp LINENO
1759 # ----------------------
1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_cpp conftest.$ac_ext"
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1773 if test -s conftest.err; then
1774 grep -v '^
*+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } >/dev/null && {
1780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's
/^
/|
/' conftest.$ac_ext >&5
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798 # the include files in INCLUDES and setting the cache variable VAR
1800 ac_fn_c_check_header_mongrel ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 $as_echo_n "(cached) " >&6
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1813 # Is the header compilable?
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815 $as_echo_n "checking $2 usability... " >&6; }
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822 ac_header_compiler=yes
1824 ac_header_compiler=no
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828 $as_echo "$ac_header_compiler" >&6; }
1830 # Is the header present?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832 $as_echo_n "checking $2 presence... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1837 if ac_fn_c_try_cpp "$LINENO"; then :
1838 ac_header_preproc=yes
1840 ac_header_preproc=no
1842 rm -f conftest.err conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844 $as_echo "$ac_header_preproc" >&6; }
1846 # So? What about this header?
1847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1852 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1858 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1862 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1864 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1870 $as_echo_n "(cached) " >&6
1872 eval "$3=\$ac_header_compiler"
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 } # ac_fn_c_check_header_mongrel
1882 # ac_fn_c_try_run LINENO
1883 # ----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885 # that executables *can* be run.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_link"
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>&5
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
1900 { { case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_try") 2>&5
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; }; }; then :
1912 $as_echo "$as_me: program exited with status $ac_status" >&5
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's
/^
/|
/' conftest.$ac_ext >&5
1916 ac_retval=$ac_status
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists and can be compiled using the include files in
1927 # INCLUDES, setting the cache variable VAR accordingly.
1928 ac_fn_c_check_header_compile ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934 $as_echo_n "(cached) " >&6
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1941 if ac_fn_c_try_compile "$LINENO"; then :
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 } # ac_fn_c_check_header_compile
1955 # ac_fn_c_try_link LINENO
1956 # -----------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 rm -f conftest.$ac_objext conftest$ac_exeext
1962 if { { ac_try="$ac_link"
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_link") 2>conftest.err
1971 if test -s conftest.err; then
1972 grep -v '^
*+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && {
1978 test -z "$ac_c_werror_flag" ||
1979 test ! -s conftest.err
1980 } && test -s conftest$ac_exeext && {
1981 test "$cross_compiling" = yes ||
1982 $as_test_x conftest$ac_exeext
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's
/^
/|
/' conftest.$ac_ext >&5
1991 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993 # interfere with the next link command; also delete a directory that is
1994 # left behind by Apple's compiler. We
do this before executing the actions.
1995 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1999 } # ac_fn_c_try_link
2001 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2002 # --------------------------------------------
2003 # Tries to find the compile-time value of EXPR in a program that includes
2004 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2006 ac_fn_c_compute_int
()
2008 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2009 if test "$cross_compiling" = yes; then
2010 # Depending upon the size, compute the lo and hi bounds.
2011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2017 static int test_array [1 - 2 * !(($2) >= 0)];
2024 if ac_fn_c_try_compile
"$LINENO"; then :
2027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2040 if ac_fn_c_try_compile
"$LINENO"; then :
2041 ac_hi
=$ac_mid; break
2043 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2044 if test $ac_lo -le $ac_mid; then
2048 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2059 static int test_array [1 - 2 * !(($2) < 0)];
2066 if ac_fn_c_try_compile
"$LINENO"; then :
2069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2075 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2082 if ac_fn_c_try_compile
"$LINENO"; then :
2083 ac_lo
=$ac_mid; break
2085 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2086 if test $ac_mid -le $ac_hi; then
2090 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2100 # Binary search between lo and hi bounds.
2101 while test "x$ac_lo" != "x$ac_hi"; do
2102 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2109 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2116 if ac_fn_c_try_compile
"$LINENO"; then :
2119 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2124 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2131 static long int longval () { return $2; }
2132 static unsigned long int ulongval () { return $2; }
2139 FILE *f = fopen ("conftest.val", "w");
2144 long int i = longval ();
2147 fprintf (f, "%ld", i);
2151 unsigned long int i = ulongval ();
2154 fprintf (f, "%lu", i);
2156 /* Do not output a trailing newline, as this causes \r\n confusion
2157 on some platforms. */
2158 return ferror (f) || fclose (f) != 0;
2164 if ac_fn_c_try_run
"$LINENO"; then :
2165 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2169 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2170 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2177 } # ac_fn_c_compute_int
2179 # ac_fn_c_check_func LINENO FUNC VAR
2180 # ----------------------------------
2181 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2182 ac_fn_c_check_func
()
2184 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2188 $as_echo_n "(cached) " >&6
2190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2192 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2194 #define $2 innocuous_$2
2196 /* System header to define __stub macros and hopefully few prototypes,
2197 which can conflict with char $2 (); below.
2198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2199 <limits.h> exists even on freestanding compilers. */
2202 # include <limits.h>
2204 # include <assert.h>
2209 /* Override any GCC internal prototype to avoid an error.
2210 Use char because int might match the return type of a GCC
2211 builtin and then its argument prototype would still apply. */
2216 /* The GNU C library defines this for functions which it implements
2217 to always fail with ENOSYS. Some functions are actually named
2218 something starting with __ and the normal name is an alias. */
2219 #if defined __stub_$2 || defined __stub___$2
2231 if ac_fn_c_try_link
"$LINENO"; then :
2236 rm -f core conftest.err conftest.
$ac_objext \
2237 conftest
$ac_exeext conftest.
$ac_ext
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241 $as_echo "$ac_res" >&6; }
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2244 } # ac_fn_c_check_func
2246 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2247 # -------------------------------------------
2248 # Tests whether TYPE exists after having included INCLUDES, setting cache
2249 # variable VAR accordingly.
2250 ac_fn_c_check_type
()
2252 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2256 $as_echo_n "(cached) " >&6
2259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2271 if ac_fn_c_try_compile
"$LINENO"; then :
2272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2284 if ac_fn_c_try_compile
"$LINENO"; then :
2289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2298 } # ac_fn_c_check_type
2300 # ac_fn_c_check_decl LINENO SYMBOL VAR
2301 # ------------------------------------
2302 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2303 ac_fn_c_check_decl
()
2305 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2306 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2307 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2309 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2310 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2311 $as_echo_n "(cached) " >&6
2313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2319 #ifndef $as_decl_name
2321 (void) $as_decl_use;
2323 (void) $as_decl_name;
2331 if ac_fn_c_try_compile
"$LINENO"; then :
2336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2343 } # ac_fn_c_check_decl
2345 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2346 # ----------------------------------------------------
2347 # Tries to find if the field MEMBER exists in type AGGR, after including
2348 # INCLUDES, setting cache variable VAR accordingly.
2349 ac_fn_c_check_member
()
2351 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2353 $as_echo_n "checking for $2.$3... " >&6; }
2354 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2355 $as_echo_n "(cached) " >&6
2357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2370 if ac_fn_c_try_compile
"$LINENO"; then :
2373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2380 if (sizeof ac_aggr.$3)
2386 if ac_fn_c_try_compile
"$LINENO"; then :
2391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397 $as_echo "$ac_res" >&6; }
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2400 } # ac_fn_c_check_member
2402 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2403 # --------------------------------------
2404 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2405 ac_fn_cxx_check_decl
()
2407 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2408 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2409 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2411 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2412 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2413 $as_echo_n "(cached) " >&6
2415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2421 #ifndef $as_decl_name
2423 (void) $as_decl_use;
2425 (void) $as_decl_name;
2433 if ac_fn_cxx_try_compile
"$LINENO"; then :
2438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2445 } # ac_fn_cxx_check_decl
2446 cat >config.log
<<_ACEOF
2447 This file contains any messages produced by compilers while
2448 running configure, to aid debugging if configure makes a mistake.
2450 It was created by $as_me, which was
2451 generated by GNU Autoconf 2.64. Invocation command line was
2463 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2464 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2465 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2466 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2467 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2469 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2470 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2472 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2473 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2474 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2475 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2476 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2477 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2478 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir
=.
2487 $as_echo "PATH: $as_dir"
2503 # Keep a trace of the command line.
2504 # Strip out --no-create and --no-recursion so they do not pile up.
2505 # Strip out --silent because we don't want to record it for future runs.
2506 # Also quote any args containing shell meta-characters.
2507 # Make two passes to allow for proper duplicate-argument suppression.
2511 ac_must_keep_next
=false
2517 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2518 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2519 |
-silent |
--silent |
--silen |
--sile |
--sil)
2522 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2525 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2527 as_fn_append ac_configure_args1
" '$ac_arg'"
2528 if test $ac_must_keep_next = true
; then
2529 ac_must_keep_next
=false
# Got value, back to normal.
2532 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2533 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2534 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2535 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2536 case "$ac_configure_args0 " in
2537 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2540 -* ) ac_must_keep_next
=true
;;
2543 as_fn_append ac_configure_args
" '$ac_arg'"
2548 { ac_configure_args0
=; unset ac_configure_args0
;}
2549 { ac_configure_args1
=; unset ac_configure_args1
;}
2551 # When interrupted or exit'd, cleanup temporary files, and complete
2552 # config.log. We remove comments because anyway the quotes in there
2553 # would cause problems or look ugly.
2554 # WARNING: Use '\'' to represent an apostrophe within the trap.
2555 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2556 trap 'exit_status=$?
2557 # Save into config.log some information that might help in debugging.
2562 ## ---------------- ##
2563 ## Cache variables. ##
2564 ## ---------------- ##
2567 # The following way of writing the cache mishandles newlines in values,
2569 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2570 eval ac_val=\$$ac_var
2574 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2575 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2578 _ | IFS | as_nl) ;; #(
2579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2580 *) { eval $ac_var=; unset $ac_var;} ;;
2585 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2586 *${as_nl}ac_space=\ *)
2588 "s/'\''/'\''\\\\'\'''\''/g;
2589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2600 ## ----------------- ##
2601 ## Output variables. ##
2602 ## ----------------- ##
2605 for ac_var in $ac_subst_vars
2607 eval ac_val=\$$ac_var
2609 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2611 $as_echo "$ac_var='\''$ac_val'\''"
2615 if test -n "$ac_subst_files"; then
2617 ## ------------------- ##
2618 ## File substitutions. ##
2619 ## ------------------- ##
2622 for ac_var
in $ac_subst_files
2624 eval ac_val
=\$
$ac_var
2626 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2628 $as_echo "$ac_var='\''$ac_val'\''"
2633 if test -s confdefs.h; then
2643 test "$ac_signal" != 0 &&
2644 $as_echo "$as_me: caught signal $ac_signal"
2645 $as_echo "$as_me: exit $exit_status"
2647 rm -f core *.core core.conftest.* &&
2648 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2651 for ac_signal
in 1 2 13 15; do
2652 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2656 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2657 rm -f -r conftest
* confdefs.h
2659 $as_echo "/* confdefs.h */" > confdefs.h
2661 # Predefined preprocessor variables.
2663 cat >>confdefs.h
<<_ACEOF
2664 #define PACKAGE_NAME "$PACKAGE_NAME"
2667 cat >>confdefs.h
<<_ACEOF
2668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2671 cat >>confdefs.h
<<_ACEOF
2672 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2675 cat >>confdefs.h
<<_ACEOF
2676 #define PACKAGE_STRING "$PACKAGE_STRING"
2679 cat >>confdefs.h
<<_ACEOF
2680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2683 cat >>confdefs.h
<<_ACEOF
2684 #define PACKAGE_URL "$PACKAGE_URL"
2688 # Let the site file select an alternate cache file if it wants to.
2689 # Prefer an explicitly selected file to automatically selected ones.
2692 if test -n "$CONFIG_SITE"; then
2693 ac_site_file1
=$CONFIG_SITE
2694 elif test "x$prefix" != xNONE
; then
2695 ac_site_file1
=$prefix/share
/config.site
2696 ac_site_file2
=$prefix/etc
/config.site
2698 ac_site_file1
=$ac_default_prefix/share
/config.site
2699 ac_site_file2
=$ac_default_prefix/etc
/config.site
2701 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2703 test "x$ac_site_file" = xNONE
&& continue
2704 if test -r "$ac_site_file"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2706 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2707 sed 's/^/| /' "$ac_site_file" >&5
2712 if test -r "$cache_file"; then
2713 # Some versions of bash will fail to source /dev/null (special
2714 # files actually), so we avoid doing that.
2715 if test -f "$cache_file"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2717 $as_echo "$as_me: loading cache $cache_file" >&6;}
2719 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2720 *) .
"./$cache_file";;
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2725 $as_echo "$as_me: creating cache $cache_file" >&6;}
2729 # Check that the precious variables saved in the cache have kept the same
2731 ac_cache_corrupted
=false
2732 for ac_var
in $ac_precious_vars; do
2733 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2734 eval ac_new_set
=\
$ac_env_${ac_var}_set
2735 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2736 eval ac_new_val
=\
$ac_env_${ac_var}_value
2737 case $ac_old_set,$ac_new_set in
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2740 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2741 ac_cache_corrupted
=: ;;
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2744 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2745 ac_cache_corrupted
=: ;;
2748 if test "x$ac_old_val" != "x$ac_new_val"; then
2749 # differences in whitespace do not lead to failure.
2750 ac_old_val_w
=`echo x $ac_old_val`
2751 ac_new_val_w
=`echo x $ac_new_val`
2752 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2754 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2755 ac_cache_corrupted
=:
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2758 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2759 eval $ac_var=\
$ac_old_val
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2762 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2764 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2767 # Pass precious variables to config.status.
2768 if test "$ac_new_set" = set; then
2770 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2771 *) ac_arg
=$ac_var=$ac_new_val ;;
2773 case " $ac_configure_args " in
2774 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2775 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2779 if $ac_cache_corrupted; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2783 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2784 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2786 ## -------------------- ##
2787 ## Main body of script. ##
2788 ## -------------------- ##
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
2800 ac_config_headers
="$ac_config_headers config.h:config.in"
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2804 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2805 # Check whether --enable-maintainer-mode was given.
2806 if test "${enable_maintainer_mode+set}" = set; then :
2807 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2809 USE_MAINTAINER_MODE
=no
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2813 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2814 if test $USE_MAINTAINER_MODE = yes; then
2815 MAINTAINER_MODE_TRUE
=
2816 MAINTAINER_MODE_FALSE
='#'
2818 MAINTAINER_MODE_TRUE
='#'
2819 MAINTAINER_MODE_FALSE
=
2822 MAINT
=$MAINTAINER_MODE_TRUE
2826 # Set the 'development' global.
2827 .
$srcdir/..
/bfd
/development.sh
2830 ac_cpp
='$CPP $CPPFLAGS'
2831 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2834 if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2836 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if test "${ac_cv_prog_CC+set}" = set; then :
2840 $as_echo_n "(cached) " >&6
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC
="$CC" # Let the user override the test.
2845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir
=.
2850 for ac_exec_ext
in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 if test -n "$CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2873 if test -z "$ac_cv_prog_CC"; then
2875 # Extract the first word of "gcc", so it can be a program name with args.
2876 set dummy gcc
; ac_word
=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
2882 if test -n "$ac_ct_CC"; then
2883 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir
=.
2890 for ac_exec_ext
in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_ac_ct_CC
="gcc"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2903 if test -n "$ac_ct_CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2905 $as_echo "$ac_ct_CC" >&6; }
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2911 if test "x$ac_ct_CC" = x
; then
2914 case $cross_compiling:$ac_tool_warned in
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 ac_tool_warned
=yes ;;
2926 if test -z "$CC"; then
2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2929 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if test "${ac_cv_prog_CC+set}" = set; then :
2933 $as_echo_n "(cached) " >&6
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC
="$CC" # Let the user override the test.
2938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2942 test -z "$as_dir" && as_dir
=.
2943 for ac_exec_ext
in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958 $as_echo "$CC" >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2967 if test -z "$CC"; then
2968 # Extract the first word of "cc", so it can be a program name with args.
2969 set dummy cc
; ac_word
=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_CC+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC
="$CC" # Let the user override the test.
2979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2983 test -z "$as_dir" && as_dir
=.
2984 for ac_exec_ext
in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2987 ac_prog_rejected
=yes
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 if test $ac_prog_rejected = yes; then
2999 # We found a bogon in the path, so make sure we never use it.
3000 set dummy
$ac_cv_prog_CC
3002 if test $# != 0; then
3003 # We chose a different compiler from the bogus one.
3004 # However, it has the same basename, so the bogon will be chosen
3005 # first if we set CC to just the basename; use the full file name.
3007 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3023 if test -z "$CC"; then
3024 if test -n "$ac_tool_prefix"; then
3025 for ac_prog
in cl.exe
3027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3028 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if test "${ac_cv_prog_CC+set}" = set; then :
3032 $as_echo_n "(cached) " >&6
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC
="$CC" # Let the user override the test.
3037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3041 test -z "$as_dir" && as_dir
=.
3042 for ac_exec_ext
in '' $ac_executable_extensions; do
3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 if test -n "$CC"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3057 $as_echo "$CC" >&6; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3064 test -n "$CC" && break
3067 if test -z "$CC"; then
3069 for ac_prog
in cl.exe
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy
$ac_prog; ac_word
=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir
=.
3086 for ac_exec_ext
in '' $ac_executable_extensions; do
3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088 ac_cv_prog_ac_ct_CC
="$ac_prog"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3099 if test -n "$ac_ct_CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3101 $as_echo "$ac_ct_CC" >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3108 test -n "$ac_ct_CC" && break
3111 if test "x$ac_ct_CC" = x
; then
3114 case $cross_compiling:$ac_tool_warned in
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118 ac_tool_warned
=yes ;;
3127 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error
"no acceptable C compiler found in \$PATH
3130 See \`config.log' for more details." "$LINENO" 5; }
3132 # Provide some information about the compiler.
3133 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3136 for ac_option
in --version -v -V -qversion; do
3137 { { ac_try
="$ac_compiler $ac_option >&5"
3139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3146 if test -s conftest.err; then
3148 ... rest of stderr output deleted ...
3149 10q' conftest.err >conftest.er1
3150 cat conftest.er1 >&5
3151 rm -f conftest.er1 conftest.err
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3168 ac_clean_files_save=$ac_clean_files
3169 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3170 # Try to create an executable without -o first, disregard a.out.
3171 # It will help us diagnose broken compilers, and finding out an intuition
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3174 $as_echo_n "checking for C compiler default output file name... " >&6; }
3175 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3177 # The possible output files:
3178 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3181 for ac_file in $ac_files
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3185 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3190 if { { ac_try="$ac_link_default"
3192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3193 *) ac_try_echo
=$ac_try;;
3195 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197 (eval "$ac_link_default") 2>&5
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }; then :
3201 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3202 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3203 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3204 # so that the user can short-circuit this test for compilers unknown to
3206 for ac_file
in $ac_files ''
3208 test -f "$ac_file" ||
continue
3210 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3213 # We found the default executable, but exeext='' is most
3217 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3219 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3221 # We set ac_cv_exeext here because the later test for it is not
3222 # safe: cross compilers may not add the suffix if given an `-o'
3223 # argument, so we may need to know it at that point already.
3224 # Even if this section looks crufty: it has the advantage of
3231 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3237 $as_echo "$ac_file" >&6; }
3238 if test -z "$ac_file"; then :
3239 $as_echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.
$ac_ext >&5
3242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 { as_fn_set_status
77
3245 as_fn_error
"C compiler cannot create executables
3246 See \`config.log' for more details." "$LINENO" 5; }; }
3248 ac_exeext
=$ac_cv_exeext
3250 # Check that the compiler produces executables we can run. If not, either
3251 # the compiler is broken, or we cross compile.
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3253 $as_echo_n "checking whether the C compiler works... " >&6; }
3254 # If not cross compiling, check that we can run a simple program.
3255 if test "$cross_compiling" != yes; then
3256 if { ac_try
='./$ac_file'
3257 { { case "(($ac_try" in
3258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_try") 2>&5
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; }; then
3269 if test "$cross_compiling" = maybe; then
3272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 as_fn_error "cannot run C compiled programs.
3275 If you meant to cross compile
, use \
`--host'.
3276 See \`config.log
' for more details." "$LINENO" 5; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281 $as_echo "yes" >&6; }
3283 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3284 ac_clean_files=$ac_clean_files_save
3285 # Check that the compiler produces executables we can run. If not, either
3286 # the compiler is broken, or we cross compile.
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3288 $as_echo_n "checking whether we are cross compiling... " >&6; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3290 $as_echo "$cross_compiling" >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293 $as_echo_n "checking for suffix of executables... " >&6; }
3294 if { { ac_try="$ac_link"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_link") 2>&5
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3306 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3307 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3309 for ac_file
in conftest.exe conftest conftest.
*; do
3310 test -f "$ac_file" ||
continue
3312 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3313 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3322 See \`config.log' for more details." "$LINENO" 5; }
3324 rm -f conftest
$ac_cv_exeext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326 $as_echo "$ac_cv_exeext" >&6; }
3328 rm -f conftest.
$ac_ext
3329 EXEEXT
=$ac_cv_exeext
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3332 $as_echo_n "checking for suffix of object files... " >&6; }
3333 if test "${ac_cv_objext+set}" = set; then :
3334 $as_echo_n "(cached) " >&6
3336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3347 rm -f conftest.o conftest.obj
3348 if { { ac_try
="$ac_compile"
3350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_compile") 2>&5
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }; then :
3359 for ac_file in conftest.o conftest.obj conftest.*; do
3360 test -f "$ac_file" || continue;
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3368 $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error "cannot compute suffix of object files
: cannot compile
3374 See \
`config.log' for more details." "$LINENO" 5; }
3376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3379 $as_echo "$ac_cv_objext" >&6; }
3380 OBJEXT=$ac_cv_objext
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3383 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3384 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3385 $as_echo_n "(cached) " >&6
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3401 if ac_fn_c_try_compile "$LINENO"; then :
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3411 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3412 if test $ac_compiler_gnu = yes; then
3417 ac_test_CFLAGS=${CFLAGS+set}
3418 ac_save_CFLAGS=$CFLAGS
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3420 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3421 if test "${ac_cv_prog_cc_g+set}" = set; then :
3422 $as_echo_n "(cached) " >&6
3424 ac_save_c_werror_flag=$ac_c_werror_flag
3425 ac_c_werror_flag=yes
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3439 if ac_fn_c_try_compile "$LINENO"; then :
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3454 if ac_fn_c_try_compile "$LINENO"; then :
3457 ac_c_werror_flag=$ac_save_c_werror_flag
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3470 if ac_fn_c_try_compile "$LINENO"; then :
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_c_werror_flag=$ac_save_c_werror_flag
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3481 $as_echo "$ac_cv_prog_cc_g" >&6; }
3482 if test "$ac_test_CFLAGS" = set; then
3483 CFLAGS=$ac_save_CFLAGS
3484 elif test $ac_cv_prog_cc_g = yes; then
3485 if test "$GCC" = yes; then
3491 if test "$GCC" = yes; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3498 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3499 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3502 ac_cv_prog_cc_c89=no
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3508 #include <sys/types.h>
3509 #include <sys/stat.h>
3510 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3511 struct buf { int x; };
3512 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3513 static char *e (p, i)
3519 static char *f (char * (*g) (char **, int), char **p, ...)
3524 s = g (p, va_arg (v,int));
3529 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3530 function prototypes and stuff, but not '\xHH' hex character constants.
3531 These don't provoke an error unfortunately, instead are silently treated
3532 as 'x'. The following induces an error, until -std is added to get
3533 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3534 array size at least. It's necessary to write '\x00'==0 to get something
3535 that's true only with -std. */
3536 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3538 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3539 inside strings and character constants. */
3541 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3543 int test (int i, double x);
3544 struct s1 {int (*f) (int a);};
3545 struct s2 {int (*f) (double a);};
3546 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3552 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3557 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3558 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3560 CC="$ac_save_CC $ac_arg"
3561 if ac_fn_c_try_compile "$LINENO"; then :
3562 ac_cv_prog_cc_c89=$ac_arg
3564 rm -f core conftest.err conftest.$ac_objext
3565 test "x$ac_cv_prog_cc_c89" != "xno" && break
3567 rm -f conftest.$ac_ext
3572 case "x$ac_cv_prog_cc_c89" in
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3575 $as_echo "none needed" >&6; } ;;
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3578 $as_echo "unsupported" >&6; } ;;
3580 CC="$CC $ac_cv_prog_cc_c89"
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3582 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3584 if test "x$ac_cv_prog_cc_c89" != xno; then :
3589 ac_cpp='$CPP $CPPFLAGS'
3590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595 ac_cpp='$CXXCPP $CPPFLAGS'
3596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3599 if test -z "$CXX"; then
3600 if test -n "$CCC"; then
3603 if test -n "$ac_tool_prefix"; then
3604 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if test "${ac_cv_prog_CXX+set}" = set; then :
3611 $as_echo_n "(cached) " >&6
3613 if test -n "$CXX"; then
3614 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3623 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634 if test -n "$CXX"; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3636 $as_echo "$CXX" >&6; }
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3643 test -n "$CXX" && break
3646 if test -z "$CXX"; then
3648 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy $ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3657 if test -n "$ac_ct_CXX"; then
3658 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_ac_ct_CXX="$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3678 if test -n "$ac_ct_CXX"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3680 $as_echo "$ac_ct_CXX" >&6; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$ac_ct_CXX" && break
3690 if test "x$ac_ct_CXX" = x; then
3693 case $cross_compiling:$ac_tool_warned in
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3697 ac_tool_warned=yes ;;
3705 # Provide some information about the compiler.
3706 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3709 for ac_option in --version -v -V -qversion; do
3710 { { ac_try="$ac_compiler $ac_option >&5"
3712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3713 *) ac_try_echo
=$ac_try;;
3715 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3719 if test -s conftest.err
; then
3721 ... rest of stderr output deleted ...
3722 10q' conftest.err
>conftest.er1
3723 cat conftest.er1
>&5
3724 rm -f conftest.er1 conftest.err
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3731 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3732 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3749 if ac_fn_cxx_try_compile
"$LINENO"; then :
3754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3755 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3759 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3760 if test $ac_compiler_gnu = yes; then
3765 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3766 ac_save_CXXFLAGS
=$CXXFLAGS
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3768 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3769 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3770 $as_echo_n "(cached) " >&6
3772 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3773 ac_cxx_werror_flag
=yes
3776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3787 if ac_fn_cxx_try_compile
"$LINENO"; then :
3788 ac_cv_prog_cxx_g
=yes
3791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3802 if ac_fn_cxx_try_compile
"$LINENO"; then :
3805 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3818 if ac_fn_cxx_try_compile
"$LINENO"; then :
3819 ac_cv_prog_cxx_g
=yes
3821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3826 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3829 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3830 if test "$ac_test_CXXFLAGS" = set; then
3831 CXXFLAGS
=$ac_save_CXXFLAGS
3832 elif test $ac_cv_prog_cxx_g = yes; then
3833 if test "$GXX" = yes; then
3839 if test "$GXX" = yes; then
3846 ac_cpp
='$CPP $CPPFLAGS'
3847 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3854 ac_cpp
='$CPP $CPPFLAGS'
3855 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3859 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3860 # On Suns, sometimes $CPP names a directory.
3861 if test -n "$CPP" && test -d "$CPP"; then
3864 if test -z "$CPP"; then
3865 if test "${ac_cv_prog_CPP+set}" = set; then :
3866 $as_echo_n "(cached) " >&6
3868 # Double quotes because CPP needs to be expanded
3869 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3872 for ac_c_preproc_warn_flag
in '' yes
3874 # Use a header file that comes with gcc, so configuring glibc
3875 # with a fresh cross-compiler works.
3876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877 # <limits.h> exists even on freestanding compilers.
3878 # On the NeXT, cc -E runs the code through the compiler's parser,
3879 # not just through cpp. "Syntax error" is here to catch this case.
3880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3883 # include <limits.h>
3885 # include <assert.h>
3889 if ac_fn_c_try_cpp
"$LINENO"; then :
3892 # Broken: fails on valid input.
3895 rm -f conftest.err conftest.
$ac_ext
3897 # OK, works on sane cases. Now check whether nonexistent headers
3898 # can be detected and how.
3899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901 #include <ac_nonexistent.h>
3903 if ac_fn_c_try_cpp
"$LINENO"; then :
3904 # Broken: success on invalid input.
3907 # Passes both tests.
3911 rm -f conftest.err conftest.
$ac_ext
3914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3915 rm -f conftest.err conftest.
$ac_ext
3916 if $ac_preproc_ok; then :
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3929 $as_echo "$CPP" >&6; }
3931 for ac_c_preproc_warn_flag
in '' yes
3933 # Use a header file that comes with gcc, so configuring glibc
3934 # with a fresh cross-compiler works.
3935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3936 # <limits.h> exists even on freestanding compilers.
3937 # On the NeXT, cc -E runs the code through the compiler's parser,
3938 # not just through cpp. "Syntax error" is here to catch this case.
3939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3942 # include <limits.h>
3944 # include <assert.h>
3948 if ac_fn_c_try_cpp
"$LINENO"; then :
3951 # Broken: fails on valid input.
3954 rm -f conftest.err conftest.
$ac_ext
3956 # OK, works on sane cases. Now check whether nonexistent headers
3957 # can be detected and how.
3958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #include <ac_nonexistent.h>
3962 if ac_fn_c_try_cpp
"$LINENO"; then :
3963 # Broken: success on invalid input.
3966 # Passes both tests.
3970 rm -f conftest.err conftest.
$ac_ext
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.
$ac_ext
3975 if $ac_preproc_ok; then :
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3981 See \`config.log' for more details." "$LINENO" 5; }
3985 ac_cpp
='$CPP $CPPFLAGS'
3986 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3992 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3993 if test "${ac_cv_path_GREP+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3996 if test -z "$GREP"; then
3997 ac_path_GREP_found
=false
3998 # Loop through the user's path and test for each of PROGNAME-LIST
3999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4000 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4003 test -z "$as_dir" && as_dir
=.
4004 for ac_prog
in grep ggrep
; do
4005 for ac_exec_ext
in '' $ac_executable_extensions; do
4006 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4007 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4008 # Check for GNU ac_path_GREP and select it if it is found.
4009 # Check for GNU $ac_path_GREP
4010 case `"$ac_path_GREP" --version 2>&1` in
4012 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4015 $as_echo_n 0123456789 >"conftest.in"
4018 cat "conftest.in" "conftest.in" >"conftest.tmp"
4019 mv "conftest.tmp" "conftest.in"
4020 cp "conftest.in" "conftest.nl"
4021 $as_echo 'GREP' >> "conftest.nl"
4022 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4023 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4024 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4025 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4026 # Best one so far, save it but keep looking for a better one
4027 ac_cv_path_GREP
="$ac_path_GREP"
4028 ac_path_GREP_max
=$ac_count
4030 # 10*(2^10) chars as input seems more than enough
4031 test $ac_count -gt 10 && break
4033 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4036 $ac_path_GREP_found && break 3
4041 if test -z "$ac_cv_path_GREP"; then
4042 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4045 ac_cv_path_GREP
=$GREP
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4050 $as_echo "$ac_cv_path_GREP" >&6; }
4051 GREP
="$ac_cv_path_GREP"
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4055 $as_echo_n "checking for egrep... " >&6; }
4056 if test "${ac_cv_path_EGREP+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4059 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4060 then ac_cv_path_EGREP
="$GREP -E"
4062 if test -z "$EGREP"; then
4063 ac_path_EGREP_found
=false
4064 # Loop through the user's path and test for each of PROGNAME-LIST
4065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4066 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4069 test -z "$as_dir" && as_dir
=.
4070 for ac_prog
in egrep; do
4071 for ac_exec_ext
in '' $ac_executable_extensions; do
4072 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4073 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4074 # Check for GNU ac_path_EGREP and select it if it is found.
4075 # Check for GNU $ac_path_EGREP
4076 case `"$ac_path_EGREP" --version 2>&1` in
4078 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4081 $as_echo_n 0123456789 >"conftest.in"
4084 cat "conftest.in" "conftest.in" >"conftest.tmp"
4085 mv "conftest.tmp" "conftest.in"
4086 cp "conftest.in" "conftest.nl"
4087 $as_echo 'EGREP' >> "conftest.nl"
4088 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4089 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4090 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4091 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4092 # Best one so far, save it but keep looking for a better one
4093 ac_cv_path_EGREP
="$ac_path_EGREP"
4094 ac_path_EGREP_max
=$ac_count
4096 # 10*(2^10) chars as input seems more than enough
4097 test $ac_count -gt 10 && break
4099 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4102 $ac_path_EGREP_found && break 3
4107 if test -z "$ac_cv_path_EGREP"; then
4108 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4111 ac_cv_path_EGREP
=$EGREP
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4117 $as_echo "$ac_cv_path_EGREP" >&6; }
4118 EGREP
="$ac_cv_path_EGREP"
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4122 $as_echo_n "checking for ANSI C header files... " >&6; }
4123 if test "${ac_cv_header_stdc+set}" = set; then :
4124 $as_echo_n "(cached) " >&6
4126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4141 if ac_fn_c_try_compile
"$LINENO"; then :
4142 ac_cv_header_stdc
=yes
4144 ac_cv_header_stdc
=no
4146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4148 if test $ac_cv_header_stdc = yes; then
4149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4156 $EGREP "memchr" >/dev
/null
2>&1; then :
4159 ac_cv_header_stdc
=no
4165 if test $ac_cv_header_stdc = yes; then
4166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4173 $EGREP "free" >/dev
/null
2>&1; then :
4176 ac_cv_header_stdc
=no
4182 if test $ac_cv_header_stdc = yes; then
4183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4184 if test "$cross_compiling" = yes; then :
4187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4191 #if ((' ' & 0x0FF) == 0x020)
4192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4195 # define ISLOWER(c) \
4196 (('a' <= (c) && (c) <= 'i') \
4197 || ('j' <= (c) && (c) <= 'r') \
4198 || ('s' <= (c) && (c) <= 'z'))
4199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4207 for (i = 0; i < 256; i++)
4208 if (XOR (islower (i), ISLOWER (i))
4209 || toupper (i) != TOUPPER (i))
4214 if ac_fn_c_try_run
"$LINENO"; then :
4217 ac_cv_header_stdc
=no
4219 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4220 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4226 $as_echo "$ac_cv_header_stdc" >&6; }
4227 if test $ac_cv_header_stdc = yes; then
4229 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4234 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4235 inttypes.h stdint.h unistd.h
4237 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4238 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4240 eval as_val
=\$
$as_ac_Header
4241 if test "x$as_val" = x
""yes; then :
4242 cat >>confdefs.h
<<_ACEOF
4243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4252 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4253 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4260 if test "$MINIX" = yes; then
4262 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4265 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4268 $as_echo "#define _MINIX 1" >>confdefs.h
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4274 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4275 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4276 $as_echo_n "(cached) " >&6
4278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4281 # define __EXTENSIONS__ 1
4282 $ac_includes_default
4291 if ac_fn_c_try_compile
"$LINENO"; then :
4292 ac_cv_safe_to_define___extensions__
=yes
4294 ac_cv_safe_to_define___extensions__
=no
4296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4299 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4300 test $ac_cv_safe_to_define___extensions__ = yes &&
4301 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4303 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4305 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4307 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4309 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4313 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4314 for ac_t
in install-sh
install.sh shtool
; do
4315 if test -f "$ac_dir/$ac_t"; then
4317 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4322 if test -z "$ac_aux_dir"; then
4323 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4326 # These three variables are undocumented and unsupported,
4327 # and are intended to be withdrawn in a future Autoconf release.
4328 # They can cause serious problems if a builder's source tree is in a directory
4329 # whose full name contains unusual characters.
4330 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4331 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4332 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4335 # Make sure we can run config.sub.
4336 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4337 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4340 $as_echo_n "checking build system type... " >&6; }
4341 if test "${ac_cv_build+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4344 ac_build_alias
=$build_alias
4345 test "x$ac_build_alias" = x
&&
4346 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4347 test "x$ac_build_alias" = x
&&
4348 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4349 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4350 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4354 $as_echo "$ac_cv_build" >&6; }
4355 case $ac_cv_build in
4357 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4360 ac_save_IFS
=$IFS; IFS
='-'
4366 # Remember, the first character of IFS is used to create $*,
4367 # except with old shells:
4370 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4374 $as_echo_n "checking host system type... " >&6; }
4375 if test "${ac_cv_host+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4378 if test "x$host_alias" = x
; then
4379 ac_cv_host
=$ac_cv_build
4381 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4382 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4387 $as_echo "$ac_cv_host" >&6; }
4390 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4393 ac_save_IFS
=$IFS; IFS
='-'
4399 # Remember, the first character of IFS is used to create $*,
4400 # except with old shells:
4403 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4407 $as_echo_n "checking target system type... " >&6; }
4408 if test "${ac_cv_target+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4411 if test "x$target_alias" = x
; then
4412 ac_cv_target
=$ac_cv_host
4414 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4415 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4420 $as_echo "$ac_cv_target" >&6; }
4421 case $ac_cv_target in
4423 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4425 target
=$ac_cv_target
4426 ac_save_IFS
=$IFS; IFS
='-'
4432 # Remember, the first character of IFS is used to create $*,
4433 # except with old shells:
4436 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4439 # The aliases save the names the user supplied, while $host etc.
4440 # will get canonicalized.
4441 test -n "$target_alias" &&
4442 test "$program_prefix$program_suffix$program_transform_name" = \
4444 program_prefix
=${target_alias}-
4446 # The tests for host and target for $enable_largefile require
4451 # As the $enable_largefile decision depends on --enable-plugins we must set it
4452 # even in directories otherwise not depending on the $plugins option.
4456 for ac_header
in dlfcn.h
4458 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4460 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
4461 cat >>confdefs.h
<<_ACEOF
4462 #define HAVE_DLFCN_H 1
4469 for ac_header
in windows.h
4471 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4473 if test "x$ac_cv_header_windows_h" = x
""yes; then :
4474 cat >>confdefs.h
<<_ACEOF
4475 #define HAVE_WINDOWS_H 1
4483 # Check whether --enable-plugins was given.
4484 if test "${enable_plugins+set}" = set; then :
4485 enableval
=$enable_plugins; case "${enableval}" in
4488 if test "$maybe_plugins" != "yes" ; then
4489 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4493 plugins
=$maybe_plugins
4497 if test "$plugins" = "yes"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4499 $as_echo_n "checking for library containing dlopen... " >&6; }
4500 if test "${ac_cv_search_dlopen+set}" = set; then :
4501 $as_echo_n "(cached) " >&6
4503 ac_func_search_save_LIBS
=$LIBS
4504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4507 /* Override any GCC internal prototype to avoid an error.
4508 Use char because int might match the return type of a GCC
4509 builtin and then its argument prototype would still apply. */
4522 for ac_lib
in '' dl
; do
4523 if test -z "$ac_lib"; then
4524 ac_res
="none required"
4527 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4529 if ac_fn_c_try_link
"$LINENO"; then :
4530 ac_cv_search_dlopen
=$ac_res
4532 rm -f core conftest.err conftest.
$ac_objext \
4534 if test "${ac_cv_search_dlopen+set}" = set; then :
4538 if test "${ac_cv_search_dlopen+set}" = set; then :
4541 ac_cv_search_dlopen
=no
4544 LIBS
=$ac_func_search_save_LIBS
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4547 $as_echo "$ac_cv_search_dlopen" >&6; }
4548 ac_res
=$ac_cv_search_dlopen
4549 if test "$ac_res" != no
; then :
4550 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4558 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4559 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4560 # are mutually exclusive; and without procfs support, the bfd/ elf module
4561 # cannot provide certain routines such as elfcore_write_prpsinfo
4562 # or elfcore_write_prstatus. So unless the user explicitly requested
4563 # large-file support through the --enable-largefile switch, disable
4564 # large-file support in favor of procfs support.
4565 test "${target}" = "${host}" -a "x$plugins" = xno \
4566 && : ${enable_largefile="no"}
4570 # Check whether --enable-largefile was given.
4571 if test "${enable_largefile+set}" = set; then :
4572 enableval
=$enable_largefile;
4575 if test "$enable_largefile" != no
; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4578 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4579 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
4582 ac_cv_sys_largefile_CC
=no
4583 if test "$GCC" != yes; then
4586 # IRIX 6.2 and later do not support large files by default,
4587 # so use the C compiler's -n32 option if that helps.
4588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4590 #include <sys/types.h>
4591 /* Check that off_t can represent 2**63 - 1 correctly.
4592 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4593 since some C++ compilers masquerading as C compilers
4594 incorrectly reject 9223372036854775807. */
4595 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4596 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4597 && LARGE_OFF_T % 2147483647 == 1)
4607 if ac_fn_c_try_compile
"$LINENO"; then :
4610 rm -f core conftest.err conftest.
$ac_objext
4612 if ac_fn_c_try_compile
"$LINENO"; then :
4613 ac_cv_sys_largefile_CC
=' -n32'; break
4615 rm -f core conftest.err conftest.
$ac_objext
4619 rm -f conftest.
$ac_ext
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4623 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4624 if test "$ac_cv_sys_largefile_CC" != no
; then
4625 CC
=$CC$ac_cv_sys_largefile_CC
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4629 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4630 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4631 $as_echo_n "(cached) " >&6
4634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636 #include <sys/types.h>
4637 /* Check that off_t can represent 2**63 - 1 correctly.
4638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4639 since some C++ compilers masquerading as C compilers
4640 incorrectly reject 9223372036854775807. */
4641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4643 && LARGE_OFF_T % 2147483647 == 1)
4653 if ac_fn_c_try_compile
"$LINENO"; then :
4654 ac_cv_sys_file_offset_bits
=no
; break
4656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659 #define _FILE_OFFSET_BITS 64
4660 #include <sys/types.h>
4661 /* Check that off_t can represent 2**63 - 1 correctly.
4662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4663 since some C++ compilers masquerading as C compilers
4664 incorrectly reject 9223372036854775807. */
4665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4667 && LARGE_OFF_T % 2147483647 == 1)
4677 if ac_fn_c_try_compile
"$LINENO"; then :
4678 ac_cv_sys_file_offset_bits
=64; break
4680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4681 ac_cv_sys_file_offset_bits
=unknown
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4686 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4687 case $ac_cv_sys_file_offset_bits in #(
4690 cat >>confdefs.h
<<_ACEOF
4691 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4696 if test $ac_cv_sys_file_offset_bits = unknown
; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4698 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4699 if test "${ac_cv_sys_large_files+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4705 #include <sys/types.h>
4706 /* Check that off_t can represent 2**63 - 1 correctly.
4707 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4708 since some C++ compilers masquerading as C compilers
4709 incorrectly reject 9223372036854775807. */
4710 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4711 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4712 && LARGE_OFF_T % 2147483647 == 1)
4722 if ac_fn_c_try_compile
"$LINENO"; then :
4723 ac_cv_sys_large_files
=no
; break
4725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4728 #define _LARGE_FILES 1
4729 #include <sys/types.h>
4730 /* Check that off_t can represent 2**63 - 1 correctly.
4731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4732 since some C++ compilers masquerading as C compilers
4733 incorrectly reject 9223372036854775807. */
4734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4736 && LARGE_OFF_T % 2147483647 == 1)
4746 if ac_fn_c_try_compile
"$LINENO"; then :
4747 ac_cv_sys_large_files
=1; break
4749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4750 ac_cv_sys_large_files
=unknown
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4755 $as_echo "$ac_cv_sys_large_files" >&6; }
4756 case $ac_cv_sys_large_files in #(
4759 cat >>confdefs.h
<<_ACEOF
4760 #define _LARGE_FILES $ac_cv_sys_large_files
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4773 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4774 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4775 $as_echo_n "(cached) " >&6
4777 am_cv_prog_cc_stdc
=no
4779 # Don't try gcc -ansi; that turns off useful extensions and
4780 # breaks some systems' header files.
4781 # AIX -qlanglvl=ansi
4782 # Ultrix and OSF/1 -std1
4783 # HP-UX 10.20 and later -Ae
4784 # HP-UX older versions -Aa -D_HPUX_SOURCE
4785 # SVR4 -Xc -D__EXTENSIONS__
4786 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4788 CC
="$ac_save_CC $ac_arg"
4789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4793 #include <sys/types.h>
4794 #include <sys/stat.h>
4795 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4796 struct buf { int x; };
4797 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4798 static char *e (p, i)
4804 static char *f (char * (*g) (char **, int), char **p, ...)
4809 s = g (p, va_arg (v,int));
4813 int test (int i, double x);
4814 struct s1 {int (*f) (int a);};
4815 struct s2 {int (*f) (double a);};
4816 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4824 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4830 if ac_fn_c_try_compile
"$LINENO"; then :
4831 am_cv_prog_cc_stdc
="$ac_arg"; break
4833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4839 if test -z "$am_cv_prog_cc_stdc"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4841 $as_echo "none needed" >&6; }
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4844 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4846 case "x$am_cv_prog_cc_stdc" in
4848 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4851 # expand $ac_aux_dir to an absolute path
4852 am_aux_dir
=`cd $ac_aux_dir && pwd`
4854 if test x
"${install_sh}" != xset
; then
4857 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4859 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4863 # Installed binaries are usually stripped using `strip' when the user
4864 # run `make install-strip'. However `strip' might not be the right
4865 # tool to use in cross-compilation environments, therefore Automake
4866 # will honor the `STRIP' environment variable to overrule this program.
4867 if test "$cross_compiling" != no
; then
4868 if test -n "$ac_tool_prefix"; then
4869 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4870 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if test "${ac_cv_prog_STRIP+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
4876 if test -n "$STRIP"; then
4877 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir
=.
4884 for ac_exec_ext
in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 STRIP
=$ac_cv_prog_STRIP
4897 if test -n "$STRIP"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4899 $as_echo "$STRIP" >&6; }
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4907 if test -z "$ac_cv_prog_STRIP"; then
4909 # Extract the first word of "strip", so it can be a program name with args.
4910 set dummy strip
; ac_word
=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4914 $as_echo_n "(cached) " >&6
4916 if test -n "$ac_ct_STRIP"; then
4917 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir
=.
4924 for ac_exec_ext
in '' $ac_executable_extensions; do
4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 ac_cv_prog_ac_ct_STRIP
="strip"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4937 if test -n "$ac_ct_STRIP"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4939 $as_echo "$ac_ct_STRIP" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4945 if test "x$ac_ct_STRIP" = x
; then
4948 case $cross_compiling:$ac_tool_warned in
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4952 ac_tool_warned
=yes ;;
4957 STRIP
="$ac_cv_prog_STRIP"
4961 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4965 for ac_dir
in ..
"$srcdir"/..
; do
4966 for ac_t
in install-sh
install.sh shtool
; do
4967 if test -f "$ac_dir/$ac_t"; then
4969 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4974 if test -z "$ac_aux_dir"; then
4975 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4978 # These three variables are undocumented and unsupported,
4979 # and are intended to be withdrawn in a future Autoconf release.
4980 # They can cause serious problems if a builder's source tree is in a directory
4981 # whose full name contains unusual characters.
4982 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4983 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4984 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4988 test "$program_prefix" != NONE
&&
4989 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4990 # Use a double $ so make ignores it.
4991 test "$program_suffix" != NONE
&&
4992 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4993 # Double any \ or $.
4994 # By default was `s,x,x', remove it if useless.
4995 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4996 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4999 # See if we are building with C++, and substitute COMPILER.
5001 # Check whether --enable-build-with-cxx was given.
5002 if test "${enable_build_with_cxx+set}" = set; then :
5003 enableval
=$enable_build_with_cxx; case $enableval in
5007 as_fn_error
"bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
5010 enable_build_with_cxx
=no
5014 if test "$enable_build_with_cxx" = "yes"; then
5015 # We're using -fpermissive as shortcut for now.
5016 COMPILER
='$(CXX) -fpermissive'
5023 # Dependency checking.
5024 rm -rf .tst
2>/dev
/null
5025 mkdir .tst
2>/dev
/null
5026 if test -d .tst
; then
5031 rmdir .tst
2>/dev
/null
5033 DEPDIR
="${am__leading_dot}deps"
5035 ac_config_commands
="$ac_config_commands depdir"
5038 depcc
="$CC" am_compiler_list
=
5040 am_depcomp
=$ac_aux_dir/depcomp
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5042 $as_echo_n "checking dependency style of $depcc... " >&6; }
5043 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5046 if test -f "$am_depcomp"; then
5047 # We make a subdir and do the tests there. Otherwise we can end up
5048 # making bogus files that we don't know about and never remove. For
5049 # instance it was reported that on HP-UX the gcc test will end up
5050 # making a dummy file named `D' -- because `-MD' means `put the output
5053 # Copy depcomp to subdir because otherwise we won't find it if we're
5054 # using a relative directory.
5055 cp "$am_depcomp" conftest.dir
5057 # We will build objects and dependencies in a subdirectory because
5058 # it helps to detect inapplicable dependency modes. For instance
5059 # both Tru64's cc and ICC support -MD to output dependencies as a
5060 # side effect of compilation, but ICC will put the dependencies in
5061 # the current directory while Tru64 will put them in the object
5065 am_cv_CC_dependencies_compiler_type
=none
5066 if test "$am_compiler_list" = ""; then
5067 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5069 for depmode
in $am_compiler_list; do
5070 if test $depmode = none
; then break; fi
5072 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5073 # Setup a source with many dependencies, because some compilers
5074 # like to wrap large dependency lists on column 80 (with \), and
5075 # we should not choose a depcomp mode which is confused by this.
5077 # We need to recreate these files for each test, as the compiler may
5078 # overwrite some of them when testing with obscure command lines.
5079 # This happens at least with the AIX C compiler.
5081 for i
in 1 2 3 4 5 6; do
5082 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5083 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5084 # Solaris 8's {/usr,}/bin/sh.
5085 touch sub
/conftst
$i.h
5087 echo "include sub/conftest.Po" > confmf
5089 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5090 # mode. It turns out that the SunPro C++ compiler does not properly
5091 # handle `-M -o', and we need to detect this.
5092 depcmd
="depmode=$depmode \
5093 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5094 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5095 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5096 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5097 if env
$depcmd > conftest.err
2>&1 &&
5098 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5099 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5100 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5101 # icc doesn't choke on unknown options, it will just issue warnings
5102 # or remarks (even with -Werror). So we grep stderr for any message
5103 # that says an option was ignored or not supported.
5104 # When given -MP, icc 7.0 and 7.1 complain thusly:
5105 # icc: Command line warning: ignoring option '-M'; no argument required
5106 # The diagnosis changed in icc 8.0:
5107 # icc: Command line remark: option '-MP' not supported
5108 if (grep 'ignoring option' conftest.err ||
5109 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5110 am_cv_CC_dependencies_compiler_type
=$depmode
5111 $as_echo "$as_me:$LINENO: success" >&5
5115 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5116 sed -e 's/^/| /' < conftest.err
>&5
5122 am_cv_CC_dependencies_compiler_type
=none
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5127 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5128 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
5129 then as_fn_error
"no usable dependency style found" "$LINENO" 5
5130 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5135 # Check for the 'make' the user wants to use.
5138 # Extract the first word of "$ac_prog", so it can be a program name with args.
5139 set dummy
$ac_prog; ac_word
=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if test "${ac_cv_prog_MAKE+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5145 if test -n "$MAKE"; then
5146 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir
=.
5153 for ac_exec_ext
in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_prog_MAKE
="$ac_prog"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 MAKE
=$ac_cv_prog_MAKE
5166 if test -n "$MAKE"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5168 $as_echo "$MAKE" >&6; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5175 test -n "$MAKE" && break
5179 case "`$MAKE --version 2>&1 | sed 1q`" in
5184 if test "$MAKE_IS_GNU" = yes; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5193 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5195 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5196 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5197 $as_echo_n "(cached) " >&6
5199 cat >conftest.
make <<\_ACEOF
5202 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5204 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5205 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5207 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5209 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5213 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5215 $as_echo "yes" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 SET_MAKE
="MAKE=${MAKE-make}"
5224 gnulib_extra_configure_args
=
5225 # If large-file support is disabled, make sure gnulib does the same.
5226 if test "$enable_largefile" = no
; then
5227 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5230 # Configure gnulib. We need to build gnulib under some other
5231 # directory not "gnulib", to avoid the problem of both GDB and
5232 # GDBserver wanting to build it in the same directory, when building
5233 # in the source dir.
5236 in_build
="build-gnulib"
5237 in_extra_args
="$gnulib_extra_configure_args"
5239 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5240 # so they do not pile up.
5241 ac_sub_configure_args
=
5243 eval "set x $ac_configure_args"
5247 if test -n "$ac_prev"; then
5252 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5253 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5254 ac_prev
=cache_file
;;
5255 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5256 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5259 --config-cache |
-C)
5261 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5263 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5265 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5267 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5269 --disable-option-checking)
5273 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5275 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5279 # Always prepend --prefix to ensure using the same prefix
5280 # in subdir configurations.
5281 ac_arg
="--prefix=$prefix"
5283 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5285 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5288 if test "$silent" = yes; then
5289 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5292 # Always prepend --disable-option-checking to silence warnings, since
5293 # different subdirs can have different --enable and --with options.
5294 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5299 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5300 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5301 $as_echo "$ac_msg" >&6
5302 as_dir
="$ac_dir"; as_fn_mkdir_p
5306 ac_srcdir
=$srcdir/$in_src ;;
5308 ac_srcdir
=..
/$srcdir/$in_src ;;
5313 ac_sub_configure
=$ac_srcdir/configure
5315 # Make the cache file name correct relative to the subdirectory.
5317 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5319 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5322 if test -n "$in_extra_args"; then
5323 # Add the extra args at the end.
5324 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5327 { $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
5328 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5329 # The eval makes quoting arguments work.
5330 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5331 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5332 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5348 # If we haven't got the data from the intl directory,
5349 # assume NLS is disabled.
5358 if test -f ..
/intl
/config.intl
; then
5359 . ..
/intl
/config.intl
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5362 $as_echo_n "checking whether NLS is requested... " >&6; }
5363 if test x
"$USE_NLS" != xyes
; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5368 $as_echo "yes" >&6; }
5370 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5374 $as_echo_n "checking for catalogs to be installed... " >&6; }
5375 # Look for .po and .gmo files in the source directory.
5378 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
5379 # If there aren't any .gmo files the shell will give us the
5380 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5382 case "$cat" in *\
**)
5385 # The quadruple backslash is collapsed to a double backslash
5386 # by the backticks, then collapsed again by the double quotes,
5387 # leaving us with one backslash in the sed expression (right
5388 # before the dot that mustn't act as a wildcard).
5389 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5390 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
5391 # The user is allowed to set LINGUAS to a list of languages to
5392 # install catalogs for. If it's empty that means "all of them."
5393 if test "x$LINGUAS" = x
; then
5394 CATALOGS
="$CATALOGS $cat"
5395 XLINGUAS
="$XLINGUAS $lang"
5397 case "$LINGUAS" in *$lang*)
5398 CATALOGS
="$CATALOGS $cat"
5399 XLINGUAS
="$XLINGUAS $lang"
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5406 $as_echo "$LINGUAS" >&6; }
5419 localedir
='${datadir}/locale'
5422 if test x
"$USE_NLS" = xyes
; then
5423 CONFIG_ALL
="$CONFIG_ALL all-po"
5424 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
5425 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
5426 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
5429 GNULIB
=build-gnulib
/import
5431 # For Makefile dependencies.
5433 if test x
"$STDINT_H" != x
; then
5434 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
5440 cat >>confdefs.h
<<_ACEOF
5441 #define PACKAGE "$PACKAGE"
5446 # We never need to detect it in this sub-configure.
5447 # But preserve it for config.status --recheck.
5451 MAKEINFO_EXTRA_FLAGS
=""
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5453 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5454 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
5457 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5458 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5459 gdb_cv_have_makeinfo_click
=yes
5461 gdb_cv_have_makeinfo_click
=no
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5465 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5466 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
5467 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5473 # Check whether --with-separate-debug-dir was given.
5474 if test "${with_separate_debug_dir+set}" = set; then :
5475 withval
=$with_separate_debug_dir;
5478 DEBUGDIR
=${libdir}/debug
5482 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5483 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5484 ac_define_dir
=`eval echo $DEBUGDIR`
5485 ac_define_dir
=`eval echo $ac_define_dir`
5487 cat >>confdefs.h
<<_ACEOF
5488 #define DEBUGDIR "$ac_define_dir"
5494 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5495 if test "x$prefix" = xNONE
; then
5496 test_prefix
=/usr
/local
5501 test_prefix
=$exec_prefix
5504 case ${ac_define_dir} in
5505 "${test_prefix}"|
"${test_prefix}/"*|\
5506 '${exec_prefix}'|
'${exec_prefix}/'*)
5511 cat >>confdefs.h
<<_ACEOF
5512 #define DEBUGDIR_RELOCATABLE $value
5518 # We can't pass paths as command line arguments.
5519 # Mingw32 tries to be clever and will convert the paths for us.
5520 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5521 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5522 # This breaks GDB's relocatable path conversions since paths passed in
5523 # config.h would not get so translated, the path prefixes no longer match.
5525 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5526 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5527 ac_define_dir
=`eval echo $bindir`
5528 ac_define_dir
=`eval echo $ac_define_dir`
5530 cat >>confdefs.h
<<_ACEOF
5531 #define BINDIR "$ac_define_dir"
5536 # GDB's datadir relocation
5540 # Check whether --with-gdb-datadir was given.
5541 if test "${with_gdb_datadir+set}" = set; then :
5542 withval
=$with_gdb_datadir;
5543 GDB_DATADIR
=$withval
5545 GDB_DATADIR
=${datadir}/gdb
5549 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5550 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5551 ac_define_dir
=`eval echo $GDB_DATADIR`
5552 ac_define_dir
=`eval echo $ac_define_dir`
5554 cat >>confdefs.h
<<_ACEOF
5555 #define GDB_DATADIR "$ac_define_dir"
5561 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5562 if test "x$prefix" = xNONE
; then
5563 test_prefix
=/usr
/local
5568 test_prefix
=$exec_prefix
5571 case ${ac_define_dir} in
5572 "${test_prefix}"|
"${test_prefix}/"*|\
5573 '${exec_prefix}'|
'${exec_prefix}/'*)
5578 cat >>confdefs.h
<<_ACEOF
5579 #define GDB_DATADIR_RELOCATABLE $value
5586 # Check whether --with-relocated-sources was given.
5587 if test "${with_relocated_sources+set}" = set; then :
5588 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
5590 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5591 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5592 ac_define_dir
=`eval echo $reloc_srcdir`
5593 ac_define_dir
=`eval echo $ac_define_dir`
5595 cat >>confdefs.h
<<_ACEOF
5596 #define RELOC_SRCDIR "$ac_define_dir"
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5605 $as_echo_n "checking for default auto-load directory... " >&6; }
5607 # Check whether --with-auto-load-dir was given.
5608 if test "${with_auto_load_dir+set}" = set; then :
5609 withval
=$with_auto_load_dir;
5611 with_auto_load_dir
='$debugdir:$datadir/auto-load'
5614 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5616 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5617 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5618 ac_define_dir
=`eval echo $escape_dir`
5619 ac_define_dir
=`eval echo $ac_define_dir`
5621 cat >>confdefs.h
<<_ACEOF
5622 #define AUTO_LOAD_DIR "$ac_define_dir"
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5627 $as_echo "$with_auto_load_dir" >&6; }
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5630 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5632 # Check whether --with-auto-load-safe-path was given.
5633 if test "${with_auto_load_safe_path+set}" = set; then :
5634 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5635 with_auto_load_safe_path
="/"
5638 with_auto_load_safe_path
="$with_auto_load_dir"
5641 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5643 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5644 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5645 ac_define_dir
=`eval echo $escape_dir`
5646 ac_define_dir
=`eval echo $ac_define_dir`
5648 cat >>confdefs.h
<<_ACEOF
5649 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5654 $as_echo "$with_auto_load_safe_path" >&6; }
5658 subdirs
="$subdirs testsuite"
5661 # Check whether to support alternative target configurations
5662 # Check whether --enable-targets was given.
5663 if test "${enable_targets+set}" = set; then :
5664 enableval
=$enable_targets; case "${enableval}" in
5665 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
5667 no
) enable_targets
= ;;
5668 *) enable_targets
=$enableval ;;
5673 # Check whether to enable 64-bit support on 32-bit hosts
5674 # Check whether --enable-64-bit-bfd was given.
5675 if test "${enable_64_bit_bfd+set}" = set; then :
5676 enableval
=$enable_64_bit_bfd; case "${enableval}" in
5679 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5685 # Provide defaults for some variables set by the per-host and per-target
5687 gdb_host_obs
=posix-hdep.o
5689 if test "${target}" = "${host}"; then
5695 .
$srcdir/configure.
host
5697 # Add in the common host objects.
5698 .
$srcdir/common
/common.
host
5699 gdb_host_obs
="$gdb_host_obs $common_host_obs"
5701 # Accumulate some settings from configure.tgt over all enabled targets
5705 HAVE_NATIVE_GCORE_TARGET
=
5707 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5709 if test "$targ_alias" = "all"; then
5712 # Canonicalize the secondary target names.
5713 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5714 if test -n "$result"; then
5720 .
${srcdir}/configure.tgt
5722 if test -z "${gdb_target_obs}"; then :
5723 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
5726 # Target-specific object files
5727 for i
in ${gdb_target_obs}; do
5728 case " $TARGET_OBS " in
5731 TARGET_OBS
="$TARGET_OBS ${i}"
5736 # Check whether this target needs 64-bit CORE_ADDR
5737 if test x
${want64} = xfalse
; then
5738 .
${srcdir}/..
/bfd
/config.bfd
5741 # Check whether this target is native and supports gcore.
5742 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5743 && $gdb_have_gcore; then
5744 HAVE_NATIVE_GCORE_TARGET
=1
5749 if test x
${all_targets} = xtrue
; then
5751 # We want all 64-bit targets if we either:
5752 # - run on a 64-bit host or
5753 # - already require 64-bit support for some other target or
5754 # - the --enable-64-bit-bfd option was supplied
5755 # Otherwise we only support all 32-bit targets.
5757 # NOTE: This test must be in sync with the corresponding
5760 if test x
${want64} = xfalse
; then
5761 # The cast to long int works around a bug in the HP C Compiler
5762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5764 # This bug is HP SR number 8606223364.
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5766 $as_echo_n "checking size of long... " >&6; }
5767 if test "${ac_cv_sizeof_long+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5770 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5773 if test "$ac_cv_type_long" = yes; then
5774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5776 { as_fn_set_status
77
5777 as_fn_error
"cannot compute sizeof (long)
5778 See \`config.log' for more details." "$LINENO" 5; }; }
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5786 $as_echo "$ac_cv_sizeof_long" >&6; }
5790 cat >>confdefs.h
<<_ACEOF
5791 #define SIZEOF_LONG $ac_cv_sizeof_long
5795 if test "x${ac_cv_sizeof_long}" = "x8"; then
5799 if test x
${want64} = xtrue
; then
5800 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5802 TARGET_OBS
='$(ALL_TARGET_OBS)'
5809 # For other settings, only the main target counts.
5813 targ
=$target; .
${srcdir}/configure.tgt
5815 # Fetch the default architecture and default target vector from BFD.
5816 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5818 # We only want the first architecture, so strip off the others if
5819 # there is more than one.
5820 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5822 if test "x$targ_archs" != x
; then
5824 cat >>confdefs.h
<<_ACEOF
5825 #define DEFAULT_BFD_ARCH $targ_archs
5829 if test "x$targ_defvec" != x
; then
5831 cat >>confdefs.h
<<_ACEOF
5832 #define DEFAULT_BFD_VEC $targ_defvec
5837 # The CLI cannot be disabled yet, but may be in the future.
5840 # Check whether --enable-gdbcli was given.
5841 if test "${enable_gdbcli+set}" = set; then :
5842 enableval
=$enable_gdbcli; case $enableval in
5846 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5848 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5854 if test x
"$enable_gdbcli" = xyes
; then
5855 if test -d $srcdir/cli
; then
5856 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5857 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5858 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5859 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5864 # Check whether --enable-gdbmi was given.
5865 if test "${enable_gdbmi+set}" = set; then :
5866 enableval
=$enable_gdbmi; case $enableval in
5870 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5876 if test x
"$enable_gdbmi" = xyes
; then
5877 if test -d $srcdir/mi
; then
5878 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5879 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5880 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5881 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5886 # Check whether --enable-tui was given.
5887 if test "${enable_tui+set}" = set; then :
5888 enableval
=$enable_tui; case $enableval in
5892 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5900 # Check whether --enable-gdbtk was given.
5901 if test "${enable_gdbtk+set}" = set; then :
5902 enableval
=$enable_gdbtk; case $enableval in
5906 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5909 if test -d $srcdir/gdbtk
; then
5916 # We unconditionally disable gdbtk tests on selected platforms.
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5920 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5924 # Libunwind support for ia64.
5927 # Check whether --with-libunwind-ia64 was given.
5928 if test "${with_libunwind_ia64+set}" = set; then :
5929 withval
=$with_libunwind_ia64;
5931 with_libunwind_ia64
=auto
5935 # Backward compatibility option.
5936 if test "${with_libunwind+set}" = set; then
5937 if test x
"$with_libunwind_ia64" != xauto
; then
5938 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5941 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5942 with_libunwind_ia64
="$with_libunwind"
5945 case "$with_libunwind_ia64" in
5949 for ac_header
in libunwind-ia64.h
5951 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5952 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5953 cat >>confdefs.h
<<_ACEOF
5954 #define HAVE_LIBUNWIND_IA64_H 1
5961 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
5964 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5968 if test x
"$with_libunwind_ia64" = xyes
; then
5969 for ac_header
in libunwind-ia64.h
5971 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5972 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5973 cat >>confdefs.h
<<_ACEOF
5974 #define HAVE_LIBUNWIND_IA64_H 1
5981 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
5982 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5984 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
5985 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
5986 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
5991 # Check whether --with-curses was given.
5992 if test "${with_curses+set}" = set; then :
5993 withval
=$with_curses; opt_curses
=$withval
5998 if test "$opt_curses" = "yes"; then
6002 # Profiling support.
6003 # Check whether --enable-profiling was given.
6004 if test "${enable_profiling+set}" = set; then :
6005 enableval
=$enable_profiling; case $enableval in
6009 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6016 for ac_func
in monstartup _mcleanup
6018 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6019 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6020 eval as_val
=\$
$as_ac_var
6021 if test "x$as_val" = x
""yes; then :
6022 cat >>confdefs.h
<<_ACEOF
6023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6030 $as_echo_n "checking for _etext... " >&6; }
6031 if test "${ac_cv_var__etext+set}" = set; then :
6032 $as_echo_n "(cached) " >&6
6034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6047 if ac_fn_c_try_link
"$LINENO"; then :
6048 ac_cv_var__etext
=yes
6052 rm -f core conftest.err conftest.
$ac_objext \
6053 conftest
$ac_exeext conftest.
$ac_ext
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6056 $as_echo "$ac_cv_var__etext" >&6; }
6057 if test $ac_cv_var__etext = yes; then
6059 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6063 $as_echo_n "checking for etext... " >&6; }
6064 if test "${ac_cv_var_etext+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6080 if ac_fn_c_try_link
"$LINENO"; then :
6085 rm -f core conftest.err conftest.
$ac_objext \
6086 conftest
$ac_exeext conftest.
$ac_ext
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6089 $as_echo "$ac_cv_var_etext" >&6; }
6090 if test $ac_cv_var_etext = yes; then
6092 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6095 if test "$enable_profiling" = yes ; then
6096 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6097 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6100 OLD_CFLAGS
="$CFLAGS"
6101 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6104 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6105 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6106 $as_echo_n "(cached) " >&6
6108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6119 if ac_fn_c_try_compile
"$LINENO"; then :
6120 ac_cv_cc_supports_pg
=yes
6122 ac_cv_cc_supports_pg
=no
6124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6127 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6129 if test $ac_cv_cc_supports_pg = no
; then
6130 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6133 CFLAGS
="$OLD_CFLAGS"
6138 # Check whether --with-pkgversion was given.
6139 if test "${with_pkgversion+set}" = set; then :
6140 withval
=$with_pkgversion; case "$withval" in
6141 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6143 *) PKGVERSION
="($withval) " ;;
6154 # Check whether --with-bugurl was given.
6155 if test "${with_bugurl+set}" = set; then :
6156 withval
=$with_bugurl; case "$withval" in
6157 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6160 *) BUGURL
="$withval"
6164 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
6174 REPORT_BUGS_TO
="<$BUGURL>"
6175 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6182 cat >>confdefs.h
<<_ACEOF
6183 #define PKGVERSION "$PKGVERSION"
6187 cat >>confdefs.h
<<_ACEOF
6188 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6192 # --------------------- #
6193 # Checks for programs. #
6194 # --------------------- #
6196 for ac_prog
in gawk mawk nawk
awk
6198 # Extract the first word of "$ac_prog", so it can be a program name with args.
6199 set dummy
$ac_prog; ac_word
=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_AWK+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6205 if test -n "$AWK"; then
6206 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6212 test -z "$as_dir" && as_dir
=.
6213 for ac_exec_ext
in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_AWK
="$ac_prog"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 if test -n "$AWK"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6228 $as_echo "$AWK" >&6; }
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6235 test -n "$AWK" && break
6238 # Find a good install program. We prefer a C program (faster),
6239 # so one script is as good as another. But avoid the broken or
6240 # incompatible versions:
6241 # SysV /etc/install, /usr/sbin/install
6242 # SunOS /usr/etc/install
6243 # IRIX /sbin/install
6245 # AmigaOS /C/install, which installs bootblocks on floppy discs
6246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6249 # OS/2's system install, which has a completely different semantic
6250 # ./install, which can be erroneously created by make from ./install.sh.
6251 # Reject install programs that cannot install multiple files.
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6253 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6254 if test -z "$INSTALL"; then
6255 if test "${ac_cv_path_install+set}" = set; then :
6256 $as_echo_n "(cached) " >&6
6258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6262 test -z "$as_dir" && as_dir
=.
6263 # Account for people who put trailing slashes in PATH elements.
6264 case $as_dir/ in #((
6265 .
/ | .
// |
/[cC
]/* | \
6266 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6267 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
6270 # OSF1 and SCO ODT 3.0 have their own names for install.
6271 # Don't use installbsd from OSF since it installs stuff as root
6273 for ac_prog
in ginstall scoinst
install; do
6274 for ac_exec_ext
in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6276 if test $ac_prog = install &&
6277 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6278 # AIX install. It has an incompatible calling convention.
6280 elif test $ac_prog = install &&
6281 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6282 # program-specific install script used by HP pwplus--don't use.
6285 rm -rf conftest.one conftest.two conftest.dir
6286 echo one
> conftest.one
6287 echo two
> conftest.two
6289 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6290 test -s conftest.one
&& test -s conftest.two
&&
6291 test -s conftest.dir
/conftest.one
&&
6292 test -s conftest.dir
/conftest.two
6294 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6307 rm -rf conftest.one conftest.two conftest.dir
6310 if test "${ac_cv_path_install+set}" = set; then
6311 INSTALL
=$ac_cv_path_install
6313 # As a last resort, use the slow shell script. Don't cache a
6314 # value for INSTALL within a source directory, because that will
6315 # break other packages using the cache if that directory is
6316 # removed, or if the value is a relative name.
6317 INSTALL
=$ac_install_sh
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6321 $as_echo "$INSTALL" >&6; }
6323 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6324 # It thinks the first close brace ends the variable substitution.
6325 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6327 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6329 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6332 $as_echo_n "checking whether ln -s works... " >&6; }
6334 if test "$LN_S" = "ln -s"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6336 $as_echo "yes" >&6; }
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6339 $as_echo "no, using $LN_S" >&6; }
6342 if test -n "$ac_tool_prefix"; then
6343 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6344 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6348 $as_echo_n "(cached) " >&6
6350 if test -n "$RANLIB"; then
6351 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir
=.
6358 for ac_exec_ext
in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6360 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 RANLIB
=$ac_cv_prog_RANLIB
6371 if test -n "$RANLIB"; then
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6373 $as_echo "$RANLIB" >&6; }
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376 $as_echo "no" >&6; }
6381 if test -z "$ac_cv_prog_RANLIB"; then
6382 ac_ct_RANLIB
=$RANLIB
6383 # Extract the first word of "ranlib", so it can be a program name with args.
6384 set dummy ranlib
; ac_word
=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6388 $as_echo_n "(cached) " >&6
6390 if test -n "$ac_ct_RANLIB"; then
6391 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6397 test -z "$as_dir" && as_dir
=.
6398 for ac_exec_ext
in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6411 if test -n "$ac_ct_RANLIB"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6413 $as_echo "$ac_ct_RANLIB" >&6; }
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6419 if test "x$ac_ct_RANLIB" = x
; then
6422 case $cross_compiling:$ac_tool_warned in
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6426 ac_tool_warned
=yes ;;
6428 RANLIB
=$ac_ct_RANLIB
6431 RANLIB
="$ac_cv_prog_RANLIB"
6434 for ac_prog
in 'bison -y' byacc
6436 # Extract the first word of "$ac_prog", so it can be a program name with args.
6437 set dummy
$ac_prog; ac_word
=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if test "${ac_cv_prog_YACC+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6443 if test -n "$YACC"; then
6444 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6450 test -z "$as_dir" && as_dir
=.
6451 for ac_exec_ext
in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_YACC
="$ac_prog"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 YACC
=$ac_cv_prog_YACC
6464 if test -n "$YACC"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6466 $as_echo "$YACC" >&6; }
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6473 test -n "$YACC" && break
6475 test -n "$YACC" || YACC
="yacc"
6478 if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6480 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_AR+set}" = set; then :
6484 $as_echo_n "(cached) " >&6
6486 if test -n "$AR"; then
6487 ac_cv_prog_AR
="$AR" # Let the user override the test.
6489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir
=.
6494 for ac_exec_ext
in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 if test -n "$AR"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6509 $as_echo "$AR" >&6; }
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6517 if test -z "$ac_cv_prog_AR"; then
6519 # Extract the first word of "ar", so it can be a program name with args.
6520 set dummy
ar; ac_word
=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6524 $as_echo_n "(cached) " >&6
6526 if test -n "$ac_ct_AR"; then
6527 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir
=.
6534 for ac_exec_ext
in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_prog_ac_ct_AR
="ar"
6537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6547 if test -n "$ac_ct_AR"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6549 $as_echo "$ac_ct_AR" >&6; }
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 $as_echo "no" >&6; }
6555 if test "x$ac_ct_AR" = x
; then
6558 case $cross_compiling:$ac_tool_warned in
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562 ac_tool_warned
=yes ;;
6570 if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6572 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6576 $as_echo_n "(cached) " >&6
6578 if test -n "$DLLTOOL"; then
6579 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
6581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir
=.
6586 for ac_exec_ext
in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 DLLTOOL
=$ac_cv_prog_DLLTOOL
6599 if test -n "$DLLTOOL"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6601 $as_echo "$DLLTOOL" >&6; }
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6609 if test -z "$ac_cv_prog_DLLTOOL"; then
6610 ac_ct_DLLTOOL
=$DLLTOOL
6611 # Extract the first word of "dlltool", so it can be a program name with args.
6612 set dummy dlltool
; ac_word
=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6616 $as_echo_n "(cached) " >&6
6618 if test -n "$ac_ct_DLLTOOL"; then
6619 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
6621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6625 test -z "$as_dir" && as_dir
=.
6626 for ac_exec_ext
in '' $ac_executable_extensions; do
6627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
6639 if test -n "$ac_ct_DLLTOOL"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6641 $as_echo "$ac_ct_DLLTOOL" >&6; }
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6647 if test "x$ac_ct_DLLTOOL" = x
; then
6650 case $cross_compiling:$ac_tool_warned in
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654 ac_tool_warned
=yes ;;
6656 DLLTOOL
=$ac_ct_DLLTOOL
6659 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6662 if test -n "$ac_tool_prefix"; then
6663 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6664 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6668 $as_echo_n "(cached) " >&6
6670 if test -n "$WINDRES"; then
6671 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
6673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir
=.
6678 for ac_exec_ext
in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 WINDRES
=$ac_cv_prog_WINDRES
6691 if test -n "$WINDRES"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6693 $as_echo "$WINDRES" >&6; }
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6701 if test -z "$ac_cv_prog_WINDRES"; then
6702 ac_ct_WINDRES
=$WINDRES
6703 # Extract the first word of "windres", so it can be a program name with args.
6704 set dummy windres
; ac_word
=$2
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 $as_echo_n "checking for $ac_word... " >&6; }
6707 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6708 $as_echo_n "(cached) " >&6
6710 if test -n "$ac_ct_WINDRES"; then
6711 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
6713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6717 test -z "$as_dir" && as_dir
=.
6718 for ac_exec_ext
in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_prog_ac_ct_WINDRES
="windres"
6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
6731 if test -n "$ac_ct_WINDRES"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6733 $as_echo "$ac_ct_WINDRES" >&6; }
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
6739 if test "x$ac_ct_WINDRES" = x
; then
6742 case $cross_compiling:$ac_tool_warned in
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6746 ac_tool_warned
=yes ;;
6748 WINDRES
=$ac_ct_WINDRES
6751 WINDRES
="$ac_cv_prog_WINDRES"
6757 # Needed for GNU Hurd hosts.
6758 if test -n "$ac_tool_prefix"; then
6759 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6760 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 $as_echo_n "checking for $ac_word... " >&6; }
6763 if test "${ac_cv_prog_MIG+set}" = set; then :
6764 $as_echo_n "(cached) " >&6
6766 if test -n "$MIG"; then
6767 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
6769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir
=.
6774 for ac_exec_ext
in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 if test -n "$MIG"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6789 $as_echo "$MIG" >&6; }
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6797 if test -z "$ac_cv_prog_MIG"; then
6799 # Extract the first word of "mig", so it can be a program name with args.
6800 set dummy mig
; ac_word
=$2
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 $as_echo_n "checking for $ac_word... " >&6; }
6803 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6804 $as_echo_n "(cached) " >&6
6806 if test -n "$ac_ct_MIG"; then
6807 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
6809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6813 test -z "$as_dir" && as_dir
=.
6814 for ac_exec_ext
in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_prog_ac_ct_MIG
="mig"
6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
6827 if test -n "$ac_ct_MIG"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6829 $as_echo "$ac_ct_MIG" >&6; }
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6835 if test "x$ac_ct_MIG" = x
; then
6838 case $cross_compiling:$ac_tool_warned in
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6842 ac_tool_warned
=yes ;;
6847 MIG
="$ac_cv_prog_MIG"
6850 if test x
"$MIG" = x
; then
6851 as_fn_error
"MIG not found but required for $host hosts" "$LINENO" 5
6856 # ---------------------- #
6857 # Checks for libraries. #
6858 # ---------------------- #
6860 # We might need to link with -lm; most simulators need it.
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6862 $as_echo_n "checking for main in -lm... " >&6; }
6863 if test "${ac_cv_lib_m_main+set}" = set; then :
6864 $as_echo_n "(cached) " >&6
6866 ac_check_lib_save_LIBS
=$LIBS
6868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6880 if ac_fn_c_try_link
"$LINENO"; then :
6881 ac_cv_lib_m_main
=yes
6885 rm -f core conftest.err conftest.
$ac_objext \
6886 conftest
$ac_exeext conftest.
$ac_ext
6887 LIBS
=$ac_check_lib_save_LIBS
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6890 $as_echo "$ac_cv_lib_m_main" >&6; }
6891 if test "x$ac_cv_lib_m_main" = x
""yes; then :
6892 cat >>confdefs.h
<<_ACEOF
6901 # We need to link with -lw to get `wctype' on Solaris before Solaris
6902 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6903 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6904 # is known to have this problem). Therefore we avoid libw if we can.
6905 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6906 if test "x$ac_cv_func_wctype" = x
""yes; then :
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6910 $as_echo_n "checking for wctype in -lw... " >&6; }
6911 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6914 ac_check_lib_save_LIBS
=$LIBS
6916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6919 /* Override any GCC internal prototype to avoid an error.
6920 Use char because int might match the return type of a GCC
6921 builtin and then its argument prototype would still apply. */
6934 if ac_fn_c_try_link
"$LINENO"; then :
6935 ac_cv_lib_w_wctype
=yes
6937 ac_cv_lib_w_wctype
=no
6939 rm -f core conftest.err conftest.
$ac_objext \
6940 conftest
$ac_exeext conftest.
$ac_ext
6941 LIBS
=$ac_check_lib_save_LIBS
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6944 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6945 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
6946 cat >>confdefs.h
<<_ACEOF
6957 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6959 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6960 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6963 ac_func_search_save_LIBS
=$LIBS
6964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6967 /* Override any GCC internal prototype to avoid an error.
6968 Use char because int might match the return type of a GCC
6969 builtin and then its argument prototype would still apply. */
6973 char gethostbyname ();
6977 return gethostbyname ();
6982 for ac_lib
in '' nsl
; do
6983 if test -z "$ac_lib"; then
6984 ac_res
="none required"
6987 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6989 if ac_fn_c_try_link
"$LINENO"; then :
6990 ac_cv_search_gethostbyname
=$ac_res
6992 rm -f core conftest.err conftest.
$ac_objext \
6994 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6998 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7001 ac_cv_search_gethostbyname
=no
7004 LIBS
=$ac_func_search_save_LIBS
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7007 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7008 ac_res
=$ac_cv_search_gethostbyname
7009 if test "$ac_res" != no
; then :
7010 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7015 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7017 $as_echo_n "checking for library containing socketpair... " >&6; }
7018 if test "${ac_cv_search_socketpair+set}" = set; then :
7019 $as_echo_n "(cached) " >&6
7021 ac_func_search_save_LIBS
=$LIBS
7022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7025 /* Override any GCC internal prototype to avoid an error.
7026 Use char because int might match the return type of a GCC
7027 builtin and then its argument prototype would still apply. */
7035 return socketpair ();
7040 for ac_lib
in '' socket
; do
7041 if test -z "$ac_lib"; then
7042 ac_res
="none required"
7045 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7047 if ac_fn_c_try_link
"$LINENO"; then :
7048 ac_cv_search_socketpair
=$ac_res
7050 rm -f core conftest.err conftest.
$ac_objext \
7052 if test "${ac_cv_search_socketpair+set}" = set; then :
7056 if test "${ac_cv_search_socketpair+set}" = set; then :
7059 ac_cv_search_socketpair
=no
7062 LIBS
=$ac_func_search_save_LIBS
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7065 $as_echo "$ac_cv_search_socketpair" >&6; }
7066 ac_res
=$ac_cv_search_socketpair
7067 if test "$ac_res" != no
; then :
7068 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7073 # Link in zlib if we can. This allows us to read compressed debug sections.
7075 # Use the system's zlib library.
7076 zlibdir
="-L\$(top_builddir)/../zlib"
7077 zlibinc
="-I\$(top_srcdir)/../zlib"
7079 # Check whether --with-system-zlib was given.
7080 if test "${with_system_zlib+set}" = set; then :
7081 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7092 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7094 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7095 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7098 ac_func_search_save_LIBS
=$LIBS
7099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7102 /* Override any GCC internal prototype to avoid an error.
7103 Use char because int might match the return type of a GCC
7104 builtin and then its argument prototype would still apply. */
7108 char kinfo_getvmmap ();
7112 return kinfo_getvmmap ();
7117 for ac_lib
in '' util
; do
7118 if test -z "$ac_lib"; then
7119 ac_res
="none required"
7122 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7124 if ac_fn_c_try_link
"$LINENO"; then :
7125 ac_cv_search_kinfo_getvmmap
=$ac_res
7127 rm -f core conftest.err conftest.
$ac_objext \
7129 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7133 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7136 ac_cv_search_kinfo_getvmmap
=no
7139 LIBS
=$ac_func_search_save_LIBS
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7142 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7143 ac_res
=$ac_cv_search_kinfo_getvmmap
7144 if test "$ac_res" != no
; then :
7145 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7147 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7155 # Check whether --with-libiconv-prefix was given.
7156 if test "${with_libiconv_prefix+set}" = set; then :
7157 withval
=$with_libiconv_prefix;
7158 for dir
in `echo "$withval" | tr : ' '`; do
7159 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
7160 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
7166 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
7167 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7170 $as_echo_n "checking for iconv... " >&6; }
7171 if test "${am_cv_func_iconv+set}" = set; then :
7172 $as_echo_n "(cached) " >&6
7175 am_cv_func_iconv
="no, consider installing GNU libiconv"
7177 am_cv_use_build_libiconv
=no
7178 am_cv_build_libiconv_path
=
7180 # If libiconv is part of the build tree, then try using it over
7182 if test -d ..
/libiconv
; then
7183 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
7184 am_save_LIBS
="$LIBS"
7185 am_save_CPPFLAGS
="$CPPFLAGS"
7186 LIBS
="$LIBS $lib_dir/libiconv.a"
7187 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
7188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7195 iconv_t cd = iconv_open("","");
7196 iconv(cd,NULL,NULL,NULL,NULL);
7202 if ac_fn_c_try_link
"$LINENO"; then :
7203 am_cv_use_build_libiconv
=yes
7204 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
7206 am_cv_func_iconv
=yes
7208 rm -f core conftest.err conftest.
$ac_objext \
7209 conftest
$ac_exeext conftest.
$ac_ext
7210 LIBS
="$am_save_LIBS"
7211 CPPFLAGS
="$am_save_CPPFLAGS"
7212 if test "$am_cv_use_build_libiconv" = "yes"; then
7218 # Next, try to find iconv in libc.
7219 if test "$am_cv_func_iconv" != yes; then
7220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7227 iconv_t cd = iconv_open("","");
7228 iconv(cd,NULL,NULL,NULL,NULL);
7234 if ac_fn_c_try_link
"$LINENO"; then :
7235 am_cv_func_iconv
=yes
7237 rm -f core conftest.err conftest.
$ac_objext \
7238 conftest
$ac_exeext conftest.
$ac_ext
7241 # If iconv was not in libc, try -liconv. In this case, arrange to
7242 # look in the libiconv prefix, if it was specified by the user.
7243 if test "$am_cv_func_iconv" != yes; then
7244 am_save_CPPFLAGS
="$CPPFLAGS"
7245 am_save_LIBS
="$LIBS"
7246 if test -n "$LIBICONV_INCLUDE"; then
7247 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
7248 LIBS
="$LIBS $LIBICONV_LIBDIR"
7250 LIBS
="$LIBS -liconv"
7251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7258 iconv_t cd = iconv_open("","");
7259 iconv(cd,NULL,NULL,NULL,NULL);
7265 if ac_fn_c_try_link
"$LINENO"; then :
7267 am_cv_func_iconv
=yes
7269 rm -f core conftest.err conftest.
$ac_objext \
7270 conftest
$ac_exeext conftest.
$ac_ext
7271 LIBS
="$am_save_LIBS"
7272 CPPFLAGS
="$am_save_CPPFLAGS"
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7277 $as_echo "$am_cv_func_iconv" >&6; }
7279 # Set the various flags based on the cache variables. We can't rely
7280 # on the flags to remain set from the above code, due to caching.
7282 if test "$am_cv_lib_iconv" = yes; then
7288 if test "$am_cv_use_build_libiconv" = yes; then
7289 LIBICONV
="$am_cv_build_libiconv_path"
7291 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
7293 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
7294 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
7296 if test "$am_cv_func_iconv" = yes; then
7298 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7301 $as_echo_n "checking for iconv declaration... " >&6; }
7302 if test "${am_cv_proto_iconv+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
7306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7315 #if defined(__STDC__) || defined(__cplusplus)
7316 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7329 if ac_fn_c_try_compile
"$LINENO"; then :
7330 am_cv_proto_iconv_arg1
=""
7332 am_cv_proto_iconv_arg1
="const"
7334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7335 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);"
7338 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7340 }$am_cv_proto_iconv" >&5
7342 }$am_cv_proto_iconv" >&6; }
7344 cat >>confdefs.h
<<_ACEOF
7345 #define ICONV_CONST $am_cv_proto_iconv_arg1
7351 # GDB may fork/exec the iconv program to get the list of supported character
7352 # sets. Allow the user to specify where to find it.
7353 # There are several factors affecting the choice of option name:
7354 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7355 # the build-time location of libiconv files.
7356 # - The program we need to find is iconv, which comes with glibc. The user
7357 # doesn't necessarily have libiconv installed. Therefore naming this
7358 # --with-libiconv-foo feels wrong.
7359 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7360 # defined to work on directories not files (though it really doesn't know
7362 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7363 # with --with-libiconv-prefix.
7364 # Putting these together is why the option name is --with-iconv-bin.
7367 # Check whether --with-iconv-bin was given.
7368 if test "${with_iconv_bin+set}" = set; then :
7369 withval
=$with_iconv_bin; iconv_bin
="${withval}"
7371 cat >>confdefs.h
<<_ACEOF
7372 #define ICONV_BIN "${iconv_bin}"
7376 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7377 if test "x$prefix" = xNONE
; then
7378 test_prefix
=/usr
/local
7383 test_prefix
=$exec_prefix
7386 case ${iconv_bin} in
7387 "${test_prefix}"|
"${test_prefix}/"*|\
7388 '${exec_prefix}'|
'${exec_prefix}/'*)
7393 cat >>confdefs.h
<<_ACEOF
7394 #define ICONV_BIN_RELOCATABLE $value
7402 # For the TUI, we need enhanced curses functionality.
7403 if test x
"$enable_tui" != xno
; then
7408 if test x
"$prefer_curses" = xyes
; then
7409 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7410 # curses library because the latter might not provide all the
7411 # functionality we need. However, this leads to problems on systems
7412 # where the linker searches /usr/local/lib, but the compiler doesn't
7413 # search /usr/local/include, if ncurses is installed in /usr/local. A
7414 # default installation of ncurses on alpha*-dec-osf* will lead to such
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7417 $as_echo_n "checking for library containing waddstr... " >&6; }
7418 if test "${ac_cv_search_waddstr+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7421 ac_func_search_save_LIBS
=$LIBS
7422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7425 /* Override any GCC internal prototype to avoid an error.
7426 Use char because int might match the return type of a GCC
7427 builtin and then its argument prototype would still apply. */
7440 for ac_lib
in '' ncurses cursesX curses
; do
7441 if test -z "$ac_lib"; then
7442 ac_res
="none required"
7445 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7447 if ac_fn_c_try_link
"$LINENO"; then :
7448 ac_cv_search_waddstr
=$ac_res
7450 rm -f core conftest.err conftest.
$ac_objext \
7452 if test "${ac_cv_search_waddstr+set}" = set; then :
7456 if test "${ac_cv_search_waddstr+set}" = set; then :
7459 ac_cv_search_waddstr
=no
7462 LIBS
=$ac_func_search_save_LIBS
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7465 $as_echo "$ac_cv_search_waddstr" >&6; }
7466 ac_res
=$ac_cv_search_waddstr
7467 if test "$ac_res" != no
; then :
7468 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7473 if test "$ac_cv_search_waddstr" != no
; then
7478 # Check whether we should enable the TUI, but only do so if we really
7480 if test x
"$enable_tui" != xno
; then
7481 if test -d $srcdir/tui
; then
7482 if test "$curses_found" != no
; then
7483 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7484 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7485 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7486 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7488 if test x
"$enable_tui" = xyes
; then
7489 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7492 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7498 # Since GDB uses Readline, we need termcap functionality. In many
7499 # cases this will be provided by the curses library, but some systems
7500 # have a seperate termcap library, or no curses library at all.
7504 if test -d $srcdir/libtermcap
; then
7505 LIBS
="../libtermcap/libtermcap.a $LIBS"
7506 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
7509 ac_cv_search_tgetent
="none required"
7513 # These are the libraries checked by Readline.
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7515 $as_echo_n "checking for library containing tgetent... " >&6; }
7516 if test "${ac_cv_search_tgetent+set}" = set; then :
7517 $as_echo_n "(cached) " >&6
7519 ac_func_search_save_LIBS
=$LIBS
7520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7523 /* Override any GCC internal prototype to avoid an error.
7524 Use char because int might match the return type of a GCC
7525 builtin and then its argument prototype would still apply. */
7538 for ac_lib
in '' termcap tinfo curses ncurses
; do
7539 if test -z "$ac_lib"; then
7540 ac_res
="none required"
7543 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7545 if ac_fn_c_try_link
"$LINENO"; then :
7546 ac_cv_search_tgetent
=$ac_res
7548 rm -f core conftest.err conftest.
$ac_objext \
7550 if test "${ac_cv_search_tgetent+set}" = set; then :
7554 if test "${ac_cv_search_tgetent+set}" = set; then :
7557 ac_cv_search_tgetent
=no
7560 LIBS
=$ac_func_search_save_LIBS
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7563 $as_echo "$ac_cv_search_tgetent" >&6; }
7564 ac_res
=$ac_cv_search_tgetent
7565 if test "$ac_res" != no
; then :
7566 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7571 if test "$ac_cv_search_tgetent" = no
; then
7572 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
7576 # Check whether --with-system-readline was given.
7577 if test "${with_system_readline+set}" = set; then :
7578 withval
=$with_system_readline;
7582 if test "$with_system_readline" = yes; then
7586 READLINE_TEXI_INCFLAG
=
7588 READLINE
='$(READLINE_DIR)/libreadline.a'
7589 READLINE_DEPS
='$(READLINE)'
7590 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
7591 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
7598 # Generate jit-reader.h
7600 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7603 # The cast to long int works around a bug in the HP C Compiler
7604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7606 # This bug is HP SR number 8606223364.
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7608 $as_echo_n "checking size of unsigned long long... " >&6; }
7609 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7610 $as_echo_n "(cached) " >&6
7612 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7615 if test "$ac_cv_type_unsigned_long_long" = yes; then
7616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7618 { as_fn_set_status
77
7619 as_fn_error
"cannot compute sizeof (unsigned long long)
7620 See \`config.log' for more details." "$LINENO" 5; }; }
7622 ac_cv_sizeof_unsigned_long_long
=0
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7628 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7632 cat >>confdefs.h
<<_ACEOF
7633 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7637 # The cast to long int works around a bug in the HP C Compiler
7638 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7639 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7640 # This bug is HP SR number 8606223364.
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7642 $as_echo_n "checking size of unsigned long... " >&6; }
7643 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7644 $as_echo_n "(cached) " >&6
7646 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7649 if test "$ac_cv_type_unsigned_long" = yes; then
7650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7652 { as_fn_set_status
77
7653 as_fn_error
"cannot compute sizeof (unsigned long)
7654 See \`config.log' for more details." "$LINENO" 5; }; }
7656 ac_cv_sizeof_unsigned_long
=0
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7662 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7666 cat >>confdefs.h
<<_ACEOF
7667 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7671 # The cast to long int works around a bug in the HP C Compiler
7672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7674 # This bug is HP SR number 8606223364.
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7676 $as_echo_n "checking size of unsigned __int128... " >&6; }
7677 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7678 $as_echo_n "(cached) " >&6
7680 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7683 if test "$ac_cv_type_unsigned___int128" = yes; then
7684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7686 { as_fn_set_status
77
7687 as_fn_error
"cannot compute sizeof (unsigned __int128)
7688 See \`config.log' for more details." "$LINENO" 5; }; }
7690 ac_cv_sizeof_unsigned___int128
=0
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7696 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7700 cat >>confdefs.h
<<_ACEOF
7701 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7706 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7707 TARGET_PTR
="unsigned long"
7708 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7709 TARGET_PTR
="unsigned long long"
7710 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7711 TARGET_PTR
="unsigned __int128"
7713 TARGET_PTR
="unsigned long"
7717 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7721 $as_echo_n "checking for library containing dlopen... " >&6; }
7722 if test "${ac_cv_search_dlopen+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
7725 ac_func_search_save_LIBS
=$LIBS
7726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7729 /* Override any GCC internal prototype to avoid an error.
7730 Use char because int might match the return type of a GCC
7731 builtin and then its argument prototype would still apply. */
7744 for ac_lib
in '' dl
; do
7745 if test -z "$ac_lib"; then
7746 ac_res
="none required"
7749 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7751 if ac_fn_c_try_link
"$LINENO"; then :
7752 ac_cv_search_dlopen
=$ac_res
7754 rm -f core conftest.err conftest.
$ac_objext \
7756 if test "${ac_cv_search_dlopen+set}" = set; then :
7760 if test "${ac_cv_search_dlopen+set}" = set; then :
7763 ac_cv_search_dlopen
=no
7766 LIBS
=$ac_func_search_save_LIBS
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7769 $as_echo "$ac_cv_search_dlopen" >&6; }
7770 ac_res
=$ac_cv_search_dlopen
7771 if test "$ac_res" != no
; then :
7772 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7779 # Check whether --with-jit-reader-dir was given.
7780 if test "${with_jit_reader_dir+set}" = set; then :
7781 withval
=$with_jit_reader_dir;
7782 JIT_READER_DIR
=$withval
7784 JIT_READER_DIR
=${libdir}/gdb
7788 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7789 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7790 ac_define_dir
=`eval echo $JIT_READER_DIR`
7791 ac_define_dir
=`eval echo $ac_define_dir`
7793 cat >>confdefs.h
<<_ACEOF
7794 #define JIT_READER_DIR "$ac_define_dir"
7800 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7801 if test "x$prefix" = xNONE
; then
7802 test_prefix
=/usr
/local
7807 test_prefix
=$exec_prefix
7810 case ${ac_define_dir} in
7811 "${test_prefix}"|
"${test_prefix}/"*|\
7812 '${exec_prefix}'|
'${exec_prefix}/'*)
7817 cat >>confdefs.h
<<_ACEOF
7818 #define JIT_READER_DIR_RELOCATABLE $value
7825 # Check whether --with-expat was given.
7826 if test "${with_expat+set}" = set; then :
7827 withval
=$with_expat;
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7833 $as_echo_n "checking whether to use expat... " >&6; }
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7835 $as_echo "$with_expat" >&6; }
7837 if test "${with_expat}" = no
; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7839 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7843 if test "X$prefix" = "XNONE"; then
7844 acl_final_prefix
="$ac_default_prefix"
7846 acl_final_prefix
="$prefix"
7848 if test "X$exec_prefix" = "XNONE"; then
7849 acl_final_exec_prefix
='${prefix}'
7851 acl_final_exec_prefix
="$exec_prefix"
7853 acl_save_prefix
="$prefix"
7854 prefix
="$acl_final_prefix"
7855 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7856 prefix
="$acl_save_prefix"
7859 # Check whether --with-gnu-ld was given.
7860 if test "${with_gnu_ld+set}" = set; then :
7861 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7866 # Prepare PATH_SEPARATOR.
7867 # The user is always right.
7868 if test "${PATH_SEPARATOR+set}" != set; then
7869 echo "#! /bin/sh" >conf$$.sh
7870 echo "exit 0" >>conf$$.sh
7872 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7880 if test "$GCC" = yes; then
7881 # Check if gcc -print-prog-name=ld gives a path.
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7883 $as_echo_n "checking for ld used by GCC... " >&6; }
7886 # gcc leaves a trailing carriage return which upsets mingw
7887 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7889 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7892 # Accept absolute paths.
7893 [\\/]* |
[A-Za-z
]:[\\/]*)
7894 re_direlt
='/[^/][^/]*/\.\./'
7895 # Canonicalize the path of ld
7896 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7897 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7898 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7900 test -z "$LD" && LD
="$ac_prog"
7903 # If it fails, then pretend we aren't using GCC.
7907 # If it is relative, then search for the first ld in PATH.
7911 elif test "$with_gnu_ld" = yes; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7913 $as_echo_n "checking for GNU ld... " >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7916 $as_echo_n "checking for non-GNU ld... " >&6; }
7918 if test "${acl_cv_path_LD+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7921 if test -z "$LD"; then
7922 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7923 for ac_dir
in $PATH; do
7924 test -z "$ac_dir" && ac_dir
=.
7925 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7926 acl_cv_path_LD
="$ac_dir/$ac_prog"
7927 # Check to see if the program is GNU ld. I'd rather use --version,
7928 # but apparently some GNU ld's only accept -v.
7929 # Break only if it was the GNU/non-GNU ld that we prefer.
7930 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7931 test "$with_gnu_ld" != no
&& break
7933 test "$with_gnu_ld" != yes && break
7939 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7943 LD
="$acl_cv_path_LD"
7944 if test -n "$LD"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7946 $as_echo "$LD" >&6; }
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7951 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7953 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7954 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7955 $as_echo_n "(cached) " >&6
7957 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7958 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7959 acl_cv_prog_gnu_ld
=yes
7961 acl_cv_prog_gnu_ld
=no
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7965 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7966 with_gnu_ld
=$acl_cv_prog_gnu_ld
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7971 $as_echo_n "checking for shared library run path origin... " >&6; }
7972 if test "${acl_cv_rpath+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7976 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7977 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7984 $as_echo "$acl_cv_rpath" >&6; }
7986 libext
="$acl_cv_libext"
7987 shlibext
="$acl_cv_shlibext"
7988 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7989 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7990 hardcode_direct
="$acl_cv_hardcode_direct"
7991 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7992 # Check whether --enable-rpath was given.
7993 if test "${enable_rpath+set}" = set; then :
7994 enableval
=$enable_rpath; :
8010 acl_save_prefix
="$prefix"
8011 prefix
="$acl_final_prefix"
8012 acl_save_exec_prefix
="$exec_prefix"
8013 exec_prefix
="$acl_final_exec_prefix"
8015 eval additional_includedir
=\"$includedir\"
8016 eval additional_libdir
=\"$libdir\"
8018 exec_prefix
="$acl_save_exec_prefix"
8019 prefix
="$acl_save_prefix"
8022 # Check whether --with-libexpat-prefix was given.
8023 if test "${with_libexpat_prefix+set}" = set; then :
8024 withval
=$with_libexpat_prefix;
8025 if test "X$withval" = "Xno"; then
8028 if test "X$withval" = "X"; then
8030 acl_save_prefix
="$prefix"
8031 prefix
="$acl_final_prefix"
8032 acl_save_exec_prefix
="$exec_prefix"
8033 exec_prefix
="$acl_final_exec_prefix"
8035 eval additional_includedir
=\"$includedir\"
8036 eval additional_libdir
=\"$libdir\"
8038 exec_prefix
="$acl_save_exec_prefix"
8039 prefix
="$acl_save_prefix"
8042 additional_includedir
="$withval/include"
8043 additional_libdir
="$withval/lib"
8054 names_already_handled
=
8055 names_next_round
='expat '
8056 while test -n "$names_next_round"; do
8057 names_this_round
="$names_next_round"
8059 for name
in $names_this_round; do
8061 for n
in $names_already_handled; do
8062 if test "$n" = "$name"; then
8067 if test -z "$already_handled"; then
8068 names_already_handled
="$names_already_handled $name"
8069 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8070 eval value
=\"\
$HAVE_LIB$uppername\"
8071 if test -n "$value"; then
8072 if test "$value" = yes; then
8073 eval value
=\"\
$LIB$uppername\"
8074 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
8075 eval value
=\"\
$LTLIB$uppername\"
8076 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8085 if test $use_additional = yes; then
8086 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8087 found_dir
="$additional_libdir"
8088 found_so
="$additional_libdir/lib$name.$shlibext"
8089 if test -f "$additional_libdir/lib$name.la"; then
8090 found_la
="$additional_libdir/lib$name.la"
8093 if test -f "$additional_libdir/lib$name.$libext"; then
8094 found_dir
="$additional_libdir"
8095 found_a
="$additional_libdir/lib$name.$libext"
8096 if test -f "$additional_libdir/lib$name.la"; then
8097 found_la
="$additional_libdir/lib$name.la"
8102 if test "X$found_dir" = "X"; then
8103 for x
in $LDFLAGS $LTLIBEXPAT; do
8105 acl_save_prefix
="$prefix"
8106 prefix
="$acl_final_prefix"
8107 acl_save_exec_prefix
="$exec_prefix"
8108 exec_prefix
="$acl_final_exec_prefix"
8110 exec_prefix
="$acl_save_exec_prefix"
8111 prefix
="$acl_save_prefix"
8115 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8116 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8118 found_so
="$dir/lib$name.$shlibext"
8119 if test -f "$dir/lib$name.la"; then
8120 found_la
="$dir/lib$name.la"
8123 if test -f "$dir/lib$name.$libext"; then
8125 found_a
="$dir/lib$name.$libext"
8126 if test -f "$dir/lib$name.la"; then
8127 found_la
="$dir/lib$name.la"
8133 if test "X$found_dir" != "X"; then
8138 if test "X$found_dir" != "X"; then
8139 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8140 if test "X$found_so" != "X"; then
8141 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8142 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8145 for x
in $ltrpathdirs; do
8146 if test "X$x" = "X$found_dir"; then
8151 if test -z "$haveit"; then
8152 ltrpathdirs
="$ltrpathdirs $found_dir"
8154 if test "$hardcode_direct" = yes; then
8155 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8157 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8158 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8160 for x
in $rpathdirs; do
8161 if test "X$x" = "X$found_dir"; then
8166 if test -z "$haveit"; then
8167 rpathdirs
="$rpathdirs $found_dir"
8171 for x
in $LDFLAGS $LIBEXPAT; do
8173 acl_save_prefix
="$prefix"
8174 prefix
="$acl_final_prefix"
8175 acl_save_exec_prefix
="$exec_prefix"
8176 exec_prefix
="$acl_final_exec_prefix"
8178 exec_prefix
="$acl_save_exec_prefix"
8179 prefix
="$acl_save_prefix"
8181 if test "X$x" = "X-L$found_dir"; then
8186 if test -z "$haveit"; then
8187 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8189 if test "$hardcode_minus_L" != no
; then
8190 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8192 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8198 if test "X$found_a" != "X"; then
8199 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8201 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8204 additional_includedir
=
8205 case "$found_dir" in
8207 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8208 additional_includedir
="$basedir/include"
8211 if test "X$additional_includedir" != "X"; then
8212 if test "X$additional_includedir" != "X/usr/include"; then
8214 if test "X$additional_includedir" = "X/usr/local/include"; then
8215 if test -n "$GCC"; then
8217 linux
*) haveit
=yes;;
8221 if test -z "$haveit"; then
8222 for x
in $CPPFLAGS $INCEXPAT; do
8224 acl_save_prefix
="$prefix"
8225 prefix
="$acl_final_prefix"
8226 acl_save_exec_prefix
="$exec_prefix"
8227 exec_prefix
="$acl_final_exec_prefix"
8229 exec_prefix
="$acl_save_exec_prefix"
8230 prefix
="$acl_save_prefix"
8232 if test "X$x" = "X-I$additional_includedir"; then
8237 if test -z "$haveit"; then
8238 if test -d "$additional_includedir"; then
8239 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8245 if test -n "$found_la"; then
8246 save_libdir
="$libdir"
8248 */* |
*\\*) .
"$found_la" ;;
8249 *) .
"./$found_la" ;;
8251 libdir
="$save_libdir"
8252 for dep
in $dependency_libs; do
8255 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8256 if test "X$additional_libdir" != "X/usr/lib"; then
8258 if test "X$additional_libdir" = "X/usr/local/lib"; then
8259 if test -n "$GCC"; then
8261 linux
*) haveit
=yes;;
8265 if test -z "$haveit"; then
8267 for x
in $LDFLAGS $LIBEXPAT; do
8269 acl_save_prefix
="$prefix"
8270 prefix
="$acl_final_prefix"
8271 acl_save_exec_prefix
="$exec_prefix"
8272 exec_prefix
="$acl_final_exec_prefix"
8274 exec_prefix
="$acl_save_exec_prefix"
8275 prefix
="$acl_save_prefix"
8277 if test "X$x" = "X-L$additional_libdir"; then
8282 if test -z "$haveit"; then
8283 if test -d "$additional_libdir"; then
8284 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8288 for x
in $LDFLAGS $LTLIBEXPAT; do
8290 acl_save_prefix
="$prefix"
8291 prefix
="$acl_final_prefix"
8292 acl_save_exec_prefix
="$exec_prefix"
8293 exec_prefix
="$acl_final_exec_prefix"
8295 exec_prefix
="$acl_save_exec_prefix"
8296 prefix
="$acl_save_prefix"
8298 if test "X$x" = "X-L$additional_libdir"; then
8303 if test -z "$haveit"; then
8304 if test -d "$additional_libdir"; then
8305 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8312 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8313 if test "$enable_rpath" != no
; then
8315 for x
in $rpathdirs; do
8316 if test "X$x" = "X$dir"; then
8321 if test -z "$haveit"; then
8322 rpathdirs
="$rpathdirs $dir"
8325 for x
in $ltrpathdirs; do
8326 if test "X$x" = "X$dir"; then
8331 if test -z "$haveit"; then
8332 ltrpathdirs
="$ltrpathdirs $dir"
8337 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8340 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8343 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8344 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8350 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8351 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8357 if test "X$rpathdirs" != "X"; then
8358 if test -n "$hardcode_libdir_separator"; then
8360 for found_dir
in $rpathdirs; do
8361 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8363 acl_save_libdir
="$libdir"
8365 eval flag
=\"$hardcode_libdir_flag_spec\"
8366 libdir
="$acl_save_libdir"
8367 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8369 for found_dir
in $rpathdirs; do
8370 acl_save_libdir
="$libdir"
8372 eval flag
=\"$hardcode_libdir_flag_spec\"
8373 libdir
="$acl_save_libdir"
8374 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8378 if test "X$ltrpathdirs" != "X"; then
8379 for found_dir
in $ltrpathdirs; do
8380 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8385 ac_save_CPPFLAGS
="$CPPFLAGS"
8387 for element
in $INCEXPAT; do
8389 for x
in $CPPFLAGS; do
8391 acl_save_prefix
="$prefix"
8392 prefix
="$acl_final_prefix"
8393 acl_save_exec_prefix
="$exec_prefix"
8394 exec_prefix
="$acl_final_exec_prefix"
8396 exec_prefix
="$acl_save_exec_prefix"
8397 prefix
="$acl_save_prefix"
8399 if test "X$x" = "X$element"; then
8404 if test -z "$haveit"; then
8405 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8411 $as_echo_n "checking for libexpat... " >&6; }
8412 if test "${ac_cv_libexpat+set}" = set; then :
8413 $as_echo_n "(cached) " >&6
8416 ac_save_LIBS
="$LIBS"
8417 LIBS
="$LIBS $LIBEXPAT"
8418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8424 XML_Parser p = XML_ParserCreate (0);
8429 if ac_fn_c_try_link
"$LINENO"; then :
8434 rm -f core conftest.err conftest.
$ac_objext \
8435 conftest
$ac_exeext conftest.
$ac_ext
8436 LIBS
="$ac_save_LIBS"
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8440 $as_echo "$ac_cv_libexpat" >&6; }
8441 if test "$ac_cv_libexpat" = yes; then
8444 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8447 $as_echo_n "checking how to link with libexpat... " >&6; }
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8449 $as_echo "$LIBEXPAT" >&6; }
8452 CPPFLAGS
="$ac_save_CPPFLAGS"
8462 if test "$HAVE_LIBEXPAT" != yes; then
8463 if test "$with_expat" = yes; then
8464 as_fn_error
"expat is missing or unusable" "$LINENO" 5
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8467 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8471 LIBS
="$LIBS $LIBEXPAT"
8472 for ac_func
in XML_StopParser
8474 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8475 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
8476 cat >>confdefs.h
<<_ACEOF
8477 #define HAVE_XML_STOPPARSER 1
8487 # --------------------- #
8488 # Check for libpython. #
8489 # --------------------- #
8496 # Check whether --with-python was given.
8497 if test "${with_python+set}" = set; then :
8498 withval
=$with_python;
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8504 $as_echo_n "checking whether to use python... " >&6; }
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8506 $as_echo "$with_python" >&6; }
8508 if test "${with_python}" = no
; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8510 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8513 case "${with_python}" in
8515 if test -d ${with_python}; then
8516 # Assume the python binary is ${with_python}/bin/python.
8517 python_prog
="${with_python}/bin/python"
8519 # If python does not exit ${with_python}/bin, then try in
8520 # ${with_python}. On Windows/MinGW, this is where the Python
8522 if test ! -x "${python_prog}"; then
8523 python_prog
="${with_python}/python"
8526 if test ! -x "${python_prog}"; then
8527 # Fall back to gdb 7.0/7.1 behaviour.
8529 python_prefix
=${with_python}
8531 elif test -x "${with_python}"; then
8532 # While we can't run python compiled for $host (unless host == build),
8533 # the user could write a script that provides the needed information,
8534 # so we support that.
8535 python_prog
=${with_python}
8538 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8542 # Disallow --with-python=foo/bar.
8543 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8546 # The user has either specified auto, yes, or the name of the python
8547 # program assumed to be in $PATH.
8549 case "${with_python}" in
8551 if test ${build} = ${host}; then
8552 # Extract the first word of "python", so it can be a program name with args.
8553 set dummy python
; ac_word
=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8559 case $python_prog_path in
8561 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8568 test -z "$as_dir" && as_dir
=.
8569 for ac_exec_ext
in '' $ac_executable_extensions; do
8570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8571 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8583 python_prog_path
=$ac_cv_path_python_prog_path
8584 if test -n "$python_prog_path"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8586 $as_echo "$python_prog_path" >&6; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8593 if test "${python_prog_path}" = missing
; then
8596 python_prog
=${python_prog_path}
8599 # Not much we can do except assume the cross-compiler will find the
8605 # While we can't run python compiled for $host (unless host == build),
8606 # the user could write a script that provides the needed information,
8607 # so we support that.
8608 python_prog
="${with_python}"
8609 # Extract the first word of "${python_prog}", so it can be a program name with args.
8610 set dummy
${python_prog}; ac_word
=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
8616 case $python_prog_path in
8618 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8625 test -z "$as_dir" && as_dir
=.
8626 for ac_exec_ext
in '' $ac_executable_extensions; do
8627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8628 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8640 python_prog_path
=$ac_cv_path_python_prog_path
8641 if test -n "$python_prog_path"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8643 $as_echo "$python_prog_path" >&6; }
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8650 if test "${python_prog_path}" = missing
; then
8651 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
8657 if test "${python_prog}" != missing
; then
8658 # We have a python program to use, but it may be too old.
8659 # Don't flag an error for --with-python=auto (the default).
8660 have_python_config
=yes
8661 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
8662 if test $?
!= 0; then
8663 have_python_config
=failed
8664 if test "${with_python}" != auto
; then
8665 as_fn_error
"failure running python-config --includes" "$LINENO" 5
8668 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8669 if test $?
!= 0; then
8670 have_python_config
=failed
8671 if test "${with_python}" != auto
; then
8672 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
8675 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8676 if test $?
!= 0; then
8677 have_python_config
=failed
8678 if test "${with_python}" != auto
; then
8679 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
8683 # We do not have a python executable we can use to determine where
8684 # to find the Python headers and libs. We cannot guess the include
8685 # path from the python_prefix either, because that include path
8686 # depends on the Python version. So, there is nothing much we can
8687 # do except assume that the compiler will be able to find those files.
8690 have_python_config
=no
8693 # If we have python-config, only try the configuration it provides.
8694 # Otherwise fallback on the old way of trying different versions of
8698 if test "${have_python_config}" = yes; then
8699 # Determine the Python version by extracting "-lpython<version>"
8700 # part of the python_libs. <version> is usually X.Y with X and Y
8701 # being decimal numbers, but can also be XY (seen on Windows).
8703 # The extraction is performed using sed with a regular expression.
8704 # Initially, the regexp used was using the '?' quantifier to make
8705 # the dot in the version number optional. Unfortunately, this
8706 # does not work with non-GNU versions of sed because, because of
8707 # what looks like a limitation (the '?' quantifier does not work
8708 # with back-references). We work around this limitation by using
8709 # the '*' quantifier instead. It means that, in theory, we might
8710 # match unexpected version strings such as "-lpython2..7", but
8711 # this seems unlikely in practice. And even if that happens,
8712 # an error will be triggered later on, when checking that version
8714 python_version
=`echo " ${python_libs} " \
8715 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8716 case "${python_version}" in
8719 version
=${python_version}
8721 new_CPPFLAGS
=${python_includes}
8722 new_LIBS
=${python_libs}
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8724 $as_echo_n "checking for ${version}... " >&6; }
8725 save_CPPFLAGS
=$CPPFLAGS
8727 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8728 LIBS
="$LIBS $new_LIBS"
8729 found_usable_python
=no
8730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8741 if ac_fn_c_try_link
"$LINENO"; then :
8742 have_libpython
=${version}
8743 found_usable_python
=yes
8744 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8745 PYTHON_LIBS
=$new_LIBS
8747 rm -f core conftest.err conftest.
$ac_objext \
8748 conftest
$ac_exeext conftest.
$ac_ext
8749 CPPFLAGS
=$save_CPPFLAGS
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8752 $as_echo "${found_usable_python}" >&6; }
8756 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
8759 elif test "${have_python_config}" != failed
; then
8760 if test "${have_libpython}" = no
; then
8764 new_CPPFLAGS
=${python_includes}
8765 new_LIBS
="${python_libs} -lpython2.7"
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8767 $as_echo_n "checking for ${version}... " >&6; }
8768 save_CPPFLAGS
=$CPPFLAGS
8770 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8771 LIBS
="$LIBS $new_LIBS"
8772 found_usable_python
=no
8773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8784 if ac_fn_c_try_link
"$LINENO"; then :
8785 have_libpython
=${version}
8786 found_usable_python
=yes
8787 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8788 PYTHON_LIBS
=$new_LIBS
8790 rm -f core conftest.err conftest.
$ac_objext \
8791 conftest
$ac_exeext conftest.
$ac_ext
8792 CPPFLAGS
=$save_CPPFLAGS
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8795 $as_echo "${found_usable_python}" >&6; }
8798 if test "${have_libpython}" = no
; then
8802 new_CPPFLAGS
=${python_includes}
8803 new_LIBS
="${python_libs} -lpython2.6"
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8805 $as_echo_n "checking for ${version}... " >&6; }
8806 save_CPPFLAGS
=$CPPFLAGS
8808 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8809 LIBS
="$LIBS $new_LIBS"
8810 found_usable_python
=no
8811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8822 if ac_fn_c_try_link
"$LINENO"; then :
8823 have_libpython
=${version}
8824 found_usable_python
=yes
8825 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8826 PYTHON_LIBS
=$new_LIBS
8828 rm -f core conftest.err conftest.
$ac_objext \
8829 conftest
$ac_exeext conftest.
$ac_ext
8830 CPPFLAGS
=$save_CPPFLAGS
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8833 $as_echo "${found_usable_python}" >&6; }
8836 if test ${have_libpython} = no
; then
8840 new_CPPFLAGS
=${python_includes}
8841 new_LIBS
="${python_libs} -lpython2.5"
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8843 $as_echo_n "checking for ${version}... " >&6; }
8844 save_CPPFLAGS
=$CPPFLAGS
8846 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8847 LIBS
="$LIBS $new_LIBS"
8848 found_usable_python
=no
8849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8860 if ac_fn_c_try_link
"$LINENO"; then :
8861 have_libpython
=${version}
8862 found_usable_python
=yes
8863 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8864 PYTHON_LIBS
=$new_LIBS
8866 rm -f core conftest.err conftest.
$ac_objext \
8867 conftest
$ac_exeext conftest.
$ac_ext
8868 CPPFLAGS
=$save_CPPFLAGS
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8871 $as_echo "${found_usable_python}" >&6; }
8874 if test ${have_libpython} = no
; then
8878 new_CPPFLAGS
=${python_includes}
8879 new_LIBS
="${python_libs} -lpython2.4"
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8881 $as_echo_n "checking for ${version}... " >&6; }
8882 save_CPPFLAGS
=$CPPFLAGS
8884 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8885 LIBS
="$LIBS $new_LIBS"
8886 found_usable_python
=no
8887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8898 if ac_fn_c_try_link
"$LINENO"; then :
8899 have_libpython
=${version}
8900 found_usable_python
=yes
8901 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8902 PYTHON_LIBS
=$new_LIBS
8904 rm -f core conftest.err conftest.
$ac_objext \
8905 conftest
$ac_exeext conftest.
$ac_ext
8906 CPPFLAGS
=$save_CPPFLAGS
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8909 $as_echo "${found_usable_python}" >&6; }
8913 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
8915 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8917 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
8919 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8921 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
8923 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8925 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
8927 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8931 if test "${have_libpython}" = no
; then
8932 case "${with_python}" in
8934 as_fn_error
"python is missing or unusable" "$LINENO" 5
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8938 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8941 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
8945 if test -n "${python_prefix}"; then
8947 cat >>confdefs.h
<<_ACEOF
8948 #define WITH_PYTHON_PATH "${python_prefix}"
8952 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8953 if test "x$prefix" = xNONE
; then
8954 test_prefix
=/usr
/local
8959 test_prefix
=$exec_prefix
8962 case ${python_prefix} in
8963 "${test_prefix}"|
"${test_prefix}/"*|\
8964 '${exec_prefix}'|
'${exec_prefix}/'*)
8969 cat >>confdefs.h
<<_ACEOF
8970 #define PYTHON_PATH_RELOCATABLE $value
8978 if test "${have_libpython}" != no
; then
8980 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8982 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8983 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8984 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8985 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
8986 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8988 # Flags needed to compile Python code (taken from python-config --cflags).
8989 # We cannot call python-config directly because it will output whatever was
8990 # used when compiling the Python interpreter itself, including flags which
8991 # would make the python-related objects be compiled differently from the
8992 # rest of GDB (e.g., -O2 and -fPIC).
8993 if test "${GCC}" = yes; then
8994 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
8997 if test "x${tentative_python_cflags}" != x
; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8999 $as_echo_n "checking compiler flags for python code... " >&6; }
9000 for flag
in ${tentative_python_cflags}; do
9001 # Check that the compiler accepts it
9002 saved_CFLAGS
="$CFLAGS"
9003 CFLAGS
="$CFLAGS $flag"
9004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h. */
9015 if ac_fn_c_try_compile
"$LINENO"; then :
9016 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
9018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9019 CFLAGS
="$saved_CFLAGS"
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9022 $as_echo "${PYTHON_CFLAGS}" >&6; }
9025 # On x64 Windows, Python's include headers, and pyconfig.h in
9026 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
9027 # version of Windows. Unfortunately, MS_WIN64 is only defined if
9028 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
9029 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
9030 # The issue was reported to the Python community, but still isn't
9031 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
9035 if test "${GCC}" = yes; then
9036 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
9041 # Note that "python -m threading" cannot be used to check for
9042 # threading support due to a bug in Python 2.7.3
9043 # (http://bugs.python.org/issue15567).
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
9045 $as_echo_n "checking whether python supports threads... " >&6; }
9046 saved_CPPFLAGS
="${CPPFLAGS}"
9047 CPPFLAGS
="${PYTHON_CPPFLAGS}"
9048 # Note that the test is reversed so that python_has_threads=yes on
9049 # unexpected failures.
9050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9059 if ac_fn_c_try_cpp
"$LINENO"; then :
9060 python_has_threads
=no
9062 python_has_threads
=yes
9064 rm -f conftest.err conftest.
$ac_ext
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9066 $as_echo "${python_has_threads}" >&6; }
9067 CPPFLAGS
="${saved_CPPFLAGS}"
9069 # Even if Python support is not compiled in, we need to have this file
9070 # included so that the "python" command, et.al., still exists.
9071 CONFIG_OBS
="$CONFIG_OBS python.o"
9072 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
9077 if test "${have_libpython}" != no
; then
9079 HAVE_PYTHON_FALSE
='#'
9081 HAVE_PYTHON_TRUE
='#'
9086 # -------------------- #
9087 # Check for libguile. #
9088 # -------------------- #
9095 # Check whether --with-guile was given.
9096 if test "${with_guile+set}" = set; then :
9097 withval
=$with_guile;
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9103 $as_echo_n "checking whether to use guile... " >&6; }
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9105 $as_echo "$with_guile" >&6; }
9107 # Extract the first word of "pkg-config", so it can be a program name with args.
9108 set dummy pkg-config
; ac_word
=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9112 $as_echo_n "(cached) " >&6
9114 case $pkg_config_prog_path in
9116 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
9119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9123 test -z "$as_dir" && as_dir
=.
9124 for ac_exec_ext
in '' $ac_executable_extensions; do
9125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9126 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
9138 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
9139 if test -n "$pkg_config_prog_path"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9141 $as_echo "$pkg_config_prog_path" >&6; }
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9149 try_guile_versions
="guile-2.2 guile-2.0"
9151 case "${with_guile}" in
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9154 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9157 if test "${pkg_config_prog_path}" = "missing"; then
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9159 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9162 pkg_config
=${pkg_config_prog_path}
9163 guile_version_list
=${try_guile_versions}
9166 found_usable_guile
=checking
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9168 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9169 for guile_version
in ${guile_version_list}; do
9170 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9171 if test $?
!= 0; then
9174 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9175 if test $?
!= 0; then
9176 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9178 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9179 if test $?
!= 0; then
9180 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9182 found_usable_guile
=${guile_version}
9185 if test "${found_usable_guile}" = "checking"; then
9186 if test "${flag_errors}" = "yes"; then
9187 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9189 found_usable_guile
=no
9192 if test "${found_usable_guile}" != no
; then
9193 save_CPPFLAGS
=$CPPFLAGS
9195 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9196 LIBS
="$LIBS $new_LIBS"
9197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9199 #include "libguile.h"
9208 if ac_fn_c_try_link
"$LINENO"; then :
9210 GUILE_CPPFLAGS
=$new_CPPFLAGS
9211 GUILE_LIBS
=$new_LIBS
9213 found_usable_guile
=no
9215 rm -f core conftest.err conftest.
$ac_objext \
9216 conftest
$ac_exeext conftest.
$ac_ext
9217 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9218 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9220 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9225 CPPFLAGS
=$save_CPPFLAGS
9227 if test "${found_usable_guile}" = no
; then
9228 if test "${flag_errors}" = yes; then
9229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9231 as_fn_error
"linking guile version ${guile_version} test program failed
9232 See \`config.log' for more details." "$LINENO" 5; }
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9237 $as_echo "${found_usable_guile}" >&6; }
9242 if test "${pkg_config_prog_path}" = "missing"; then
9243 as_fn_error
"pkg-config not found" "$LINENO" 5
9246 pkg_config
=${pkg_config_prog_path}
9247 guile_version_list
=${try_guile_versions}
9250 found_usable_guile
=checking
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9252 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9253 for guile_version
in ${guile_version_list}; do
9254 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9255 if test $?
!= 0; then
9258 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9259 if test $?
!= 0; then
9260 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9262 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9263 if test $?
!= 0; then
9264 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9266 found_usable_guile
=${guile_version}
9269 if test "${found_usable_guile}" = "checking"; then
9270 if test "${flag_errors}" = "yes"; then
9271 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9273 found_usable_guile
=no
9276 if test "${found_usable_guile}" != no
; then
9277 save_CPPFLAGS
=$CPPFLAGS
9279 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9280 LIBS
="$LIBS $new_LIBS"
9281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 #include "libguile.h"
9292 if ac_fn_c_try_link
"$LINENO"; then :
9294 GUILE_CPPFLAGS
=$new_CPPFLAGS
9295 GUILE_LIBS
=$new_LIBS
9297 found_usable_guile
=no
9299 rm -f core conftest.err conftest.
$ac_objext \
9300 conftest
$ac_exeext conftest.
$ac_ext
9301 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9302 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9304 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9309 CPPFLAGS
=$save_CPPFLAGS
9311 if test "${found_usable_guile}" = no
; then
9312 if test "${flag_errors}" = yes; then
9313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9315 as_fn_error
"linking guile version ${guile_version} test program failed
9316 See \`config.log' for more details." "$LINENO" 5; }
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9321 $as_echo "${found_usable_guile}" >&6; }
9325 if test -x "${with_guile}"; then
9327 pkg_config
=${with_guile}
9328 guile_version_list
=${try_guile_versions}
9331 found_usable_guile
=checking
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9333 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9334 for guile_version
in ${guile_version_list}; do
9335 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9336 if test $?
!= 0; then
9339 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9340 if test $?
!= 0; then
9341 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9343 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9344 if test $?
!= 0; then
9345 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9347 found_usable_guile
=${guile_version}
9350 if test "${found_usable_guile}" = "checking"; then
9351 if test "${flag_errors}" = "yes"; then
9352 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9354 found_usable_guile
=no
9357 if test "${found_usable_guile}" != no
; then
9358 save_CPPFLAGS
=$CPPFLAGS
9360 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9361 LIBS
="$LIBS $new_LIBS"
9362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9364 #include "libguile.h"
9373 if ac_fn_c_try_link
"$LINENO"; then :
9375 GUILE_CPPFLAGS
=$new_CPPFLAGS
9376 GUILE_LIBS
=$new_LIBS
9378 found_usable_guile
=no
9380 rm -f core conftest.err conftest.
$ac_objext \
9381 conftest
$ac_exeext conftest.
$ac_ext
9382 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9383 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9385 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9390 CPPFLAGS
=$save_CPPFLAGS
9392 if test "${found_usable_guile}" = no
; then
9393 if test "${flag_errors}" = yes; then
9394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9396 as_fn_error
"linking guile version ${guile_version} test program failed
9397 See \`config.log' for more details." "$LINENO" 5; }
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9402 $as_echo "${found_usable_guile}" >&6; }
9405 as_fn_error
"Guile config program not executable: ${with_guile}" "$LINENO" 5
9409 # Disallow --with=guile="" and --with-guile=foo/bar.
9410 as_fn_error
"invalid value for --with-guile" "$LINENO" 5
9413 # A space separate list of guile versions to try, in order.
9414 if test "${pkg_config_prog_path}" = "missing"; then
9415 as_fn_error
"pkg-config not found" "$LINENO" 5
9418 pkg_config
=${pkg_config_prog_path}
9419 guile_version_list
=${with_guile}
9422 found_usable_guile
=checking
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9424 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9425 for guile_version
in ${guile_version_list}; do
9426 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9427 if test $?
!= 0; then
9430 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9431 if test $?
!= 0; then
9432 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9434 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9435 if test $?
!= 0; then
9436 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9438 found_usable_guile
=${guile_version}
9441 if test "${found_usable_guile}" = "checking"; then
9442 if test "${flag_errors}" = "yes"; then
9443 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9445 found_usable_guile
=no
9448 if test "${found_usable_guile}" != no
; then
9449 save_CPPFLAGS
=$CPPFLAGS
9451 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9452 LIBS
="$LIBS $new_LIBS"
9453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455 #include "libguile.h"
9464 if ac_fn_c_try_link
"$LINENO"; then :
9466 GUILE_CPPFLAGS
=$new_CPPFLAGS
9467 GUILE_LIBS
=$new_LIBS
9469 found_usable_guile
=no
9471 rm -f core conftest.err conftest.
$ac_objext \
9472 conftest
$ac_exeext conftest.
$ac_ext
9473 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9474 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9476 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9481 CPPFLAGS
=$save_CPPFLAGS
9483 if test "${found_usable_guile}" = no
; then
9484 if test "${flag_errors}" = yes; then
9485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9487 as_fn_error
"linking guile version ${guile_version} test program failed
9488 See \`config.log' for more details." "$LINENO" 5; }
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9493 $as_echo "${found_usable_guile}" >&6; }
9498 if test "${have_libguile}" != no
; then
9499 case "${with_guile}" in
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9503 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9504 if test "${ac_cv_guild_program_name+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
9507 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
9509 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9510 # the 'guild' and 'bindir' variables. In that case, try to guess
9511 # what the program name is, at the risk of getting it wrong if
9512 # Guile was configured with '--program-suffix' or similar.
9513 if test "x$ac_cv_guild_program_name" = "x"; then
9514 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9515 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9520 $as_echo "$ac_cv_guild_program_name" >&6; }
9522 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9523 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9526 GUILD
="$ac_cv_guild_program_name"
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9533 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9534 if test "${ac_cv_guild_program_name+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
9537 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9539 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9540 # the 'guild' and 'bindir' variables. In that case, try to guess
9541 # what the program name is, at the risk of getting it wrong if
9542 # Guile was configured with '--program-suffix' or similar.
9543 if test "x$ac_cv_guild_program_name" = "x"; then
9544 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9545 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9550 $as_echo "$ac_cv_guild_program_name" >&6; }
9552 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9553 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9556 GUILD
="$ac_cv_guild_program_name"
9563 if test "$cross_compiling" = no
; then
9566 GUILD_TARGET_FLAG
="--target=$host"
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9573 $as_echo_n "checking whether guild supports this host... " >&6; }
9574 if test "${ac_cv_guild_ok+set}" = set; then :
9575 $as_echo_n "(cached) " >&6
9577 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9578 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9585 $as_echo "$ac_cv_guild_ok" >&6; }
9587 if test "$ac_cv_guild_ok" = no
; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9590 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9594 if test "${have_libguile}" != no
; then
9596 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9598 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9599 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9600 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9601 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
9602 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9605 save_CPPFLAGS
="$CPPFLAGS"
9607 CPPFLAGS
="$GUILE_CPPFLAGS"
9608 for ac_func
in scm_new_smob
9610 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9611 if test "x$ac_cv_func_scm_new_smob" = x
""yes; then :
9612 cat >>confdefs.h
<<_ACEOF
9613 #define HAVE_SCM_NEW_SMOB 1
9620 CPPFLAGS
="$save_CPPFLAGS"
9622 # Even if Guile support is not compiled in, we need to have these files
9624 CONFIG_OBS
="$CONFIG_OBS guile.o"
9625 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
9629 if test "${have_libguile}" != no
; then
9631 HAVE_GUILE_FALSE
='#'
9638 # --------------------- #
9639 # Check for libmcheck. #
9640 # --------------------- #
9642 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9643 # but turn it off if Python is enabled with threads, since -lmcheck is
9644 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9646 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
9647 && $development; then
9648 libmcheck_default
=yes
9650 libmcheck_default
=no
9653 # Check whether --enable-libmcheck was given.
9654 if test "${enable_libmcheck+set}" = set; then :
9655 enableval
=$enable_libmcheck; case "${enableval}" in
9656 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
9657 no | n
) ENABLE_LIBMCHECK
="no" ;;
9658 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
9663 if test -z "${ENABLE_LIBMCHECK}"; then
9664 ENABLE_LIBMCHECK
=${libmcheck_default}
9667 if test "$ENABLE_LIBMCHECK" = "yes" ; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
9669 $as_echo_n "checking for main in -lmcheck... " >&6; }
9670 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
9671 $as_echo_n "(cached) " >&6
9673 ac_check_lib_save_LIBS
=$LIBS
9674 LIBS
="-lmcheck $LIBS"
9675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9687 if ac_fn_c_try_link
"$LINENO"; then :
9688 ac_cv_lib_mcheck_main
=yes
9690 ac_cv_lib_mcheck_main
=no
9692 rm -f core conftest.err conftest.
$ac_objext \
9693 conftest
$ac_exeext conftest.
$ac_ext
9694 LIBS
=$ac_check_lib_save_LIBS
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
9697 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
9698 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
9699 cat >>confdefs.h
<<_ACEOF
9700 #define HAVE_LIBMCHECK 1
9703 LIBS
="-lmcheck $LIBS"
9710 if test "$ENABLE_LIBMCHECK" = "yes" \
9711 -a "${have_libpython}" != "no" \
9712 -a "${python_has_threads}" = "yes" ; then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
9714 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
9718 # Check whether --with-intel_pt was given.
9719 if test "${with_intel_pt+set}" = set; then :
9720 withval
=$with_intel_pt;
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9726 $as_echo_n "checking whether to use intel pt... " >&6; }
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9728 $as_echo "$with_intel_pt" >&6; }
9730 if test "${with_intel_pt}" = no
; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel(R) Processor Trace support disabled; some features may be unavailable." >&5
9732 $as_echo "$as_me: WARNING: Intel(R) Processor Trace support disabled; some features may be unavailable." >&2;}
9745 acl_save_prefix
="$prefix"
9746 prefix
="$acl_final_prefix"
9747 acl_save_exec_prefix
="$exec_prefix"
9748 exec_prefix
="$acl_final_exec_prefix"
9750 eval additional_includedir
=\"$includedir\"
9751 eval additional_libdir
=\"$libdir\"
9753 exec_prefix
="$acl_save_exec_prefix"
9754 prefix
="$acl_save_prefix"
9757 # Check whether --with-libipt-prefix was given.
9758 if test "${with_libipt_prefix+set}" = set; then :
9759 withval
=$with_libipt_prefix;
9760 if test "X$withval" = "Xno"; then
9763 if test "X$withval" = "X"; then
9765 acl_save_prefix
="$prefix"
9766 prefix
="$acl_final_prefix"
9767 acl_save_exec_prefix
="$exec_prefix"
9768 exec_prefix
="$acl_final_exec_prefix"
9770 eval additional_includedir
=\"$includedir\"
9771 eval additional_libdir
=\"$libdir\"
9773 exec_prefix
="$acl_save_exec_prefix"
9774 prefix
="$acl_save_prefix"
9777 additional_includedir
="$withval/include"
9778 additional_libdir
="$withval/lib"
9789 names_already_handled
=
9790 names_next_round
='ipt '
9791 while test -n "$names_next_round"; do
9792 names_this_round
="$names_next_round"
9794 for name
in $names_this_round; do
9796 for n
in $names_already_handled; do
9797 if test "$n" = "$name"; then
9802 if test -z "$already_handled"; then
9803 names_already_handled
="$names_already_handled $name"
9804 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9805 eval value
=\"\
$HAVE_LIB$uppername\"
9806 if test -n "$value"; then
9807 if test "$value" = yes; then
9808 eval value
=\"\
$LIB$uppername\"
9809 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
9810 eval value
=\"\
$LTLIB$uppername\"
9811 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
9820 if test $use_additional = yes; then
9821 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9822 found_dir
="$additional_libdir"
9823 found_so
="$additional_libdir/lib$name.$shlibext"
9824 if test -f "$additional_libdir/lib$name.la"; then
9825 found_la
="$additional_libdir/lib$name.la"
9828 if test -f "$additional_libdir/lib$name.$libext"; then
9829 found_dir
="$additional_libdir"
9830 found_a
="$additional_libdir/lib$name.$libext"
9831 if test -f "$additional_libdir/lib$name.la"; then
9832 found_la
="$additional_libdir/lib$name.la"
9837 if test "X$found_dir" = "X"; then
9838 for x
in $LDFLAGS $LTLIBIPT; do
9840 acl_save_prefix
="$prefix"
9841 prefix
="$acl_final_prefix"
9842 acl_save_exec_prefix
="$exec_prefix"
9843 exec_prefix
="$acl_final_exec_prefix"
9845 exec_prefix
="$acl_save_exec_prefix"
9846 prefix
="$acl_save_prefix"
9850 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9851 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9853 found_so
="$dir/lib$name.$shlibext"
9854 if test -f "$dir/lib$name.la"; then
9855 found_la
="$dir/lib$name.la"
9858 if test -f "$dir/lib$name.$libext"; then
9860 found_a
="$dir/lib$name.$libext"
9861 if test -f "$dir/lib$name.la"; then
9862 found_la
="$dir/lib$name.la"
9868 if test "X$found_dir" != "X"; then
9873 if test "X$found_dir" != "X"; then
9874 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9875 if test "X$found_so" != "X"; then
9876 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9877 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9880 for x
in $ltrpathdirs; do
9881 if test "X$x" = "X$found_dir"; then
9886 if test -z "$haveit"; then
9887 ltrpathdirs
="$ltrpathdirs $found_dir"
9889 if test "$hardcode_direct" = yes; then
9890 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9892 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9893 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9895 for x
in $rpathdirs; do
9896 if test "X$x" = "X$found_dir"; then
9901 if test -z "$haveit"; then
9902 rpathdirs
="$rpathdirs $found_dir"
9906 for x
in $LDFLAGS $LIBIPT; do
9908 acl_save_prefix
="$prefix"
9909 prefix
="$acl_final_prefix"
9910 acl_save_exec_prefix
="$exec_prefix"
9911 exec_prefix
="$acl_final_exec_prefix"
9913 exec_prefix
="$acl_save_exec_prefix"
9914 prefix
="$acl_save_prefix"
9916 if test "X$x" = "X-L$found_dir"; then
9921 if test -z "$haveit"; then
9922 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9924 if test "$hardcode_minus_L" != no
; then
9925 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9927 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
9933 if test "X$found_a" != "X"; then
9934 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
9936 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9939 additional_includedir
=
9940 case "$found_dir" in
9942 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9943 additional_includedir
="$basedir/include"
9946 if test "X$additional_includedir" != "X"; then
9947 if test "X$additional_includedir" != "X/usr/include"; then
9949 if test "X$additional_includedir" = "X/usr/local/include"; then
9950 if test -n "$GCC"; then
9952 linux
*) haveit
=yes;;
9956 if test -z "$haveit"; then
9957 for x
in $CPPFLAGS $INCIPT; do
9959 acl_save_prefix
="$prefix"
9960 prefix
="$acl_final_prefix"
9961 acl_save_exec_prefix
="$exec_prefix"
9962 exec_prefix
="$acl_final_exec_prefix"
9964 exec_prefix
="$acl_save_exec_prefix"
9965 prefix
="$acl_save_prefix"
9967 if test "X$x" = "X-I$additional_includedir"; then
9972 if test -z "$haveit"; then
9973 if test -d "$additional_includedir"; then
9974 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
9980 if test -n "$found_la"; then
9981 save_libdir
="$libdir"
9983 */* |
*\\*) .
"$found_la" ;;
9984 *) .
"./$found_la" ;;
9986 libdir
="$save_libdir"
9987 for dep
in $dependency_libs; do
9990 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9991 if test "X$additional_libdir" != "X/usr/lib"; then
9993 if test "X$additional_libdir" = "X/usr/local/lib"; then
9994 if test -n "$GCC"; then
9996 linux
*) haveit
=yes;;
10000 if test -z "$haveit"; then
10002 for x
in $LDFLAGS $LIBIPT; do
10004 acl_save_prefix
="$prefix"
10005 prefix
="$acl_final_prefix"
10006 acl_save_exec_prefix
="$exec_prefix"
10007 exec_prefix
="$acl_final_exec_prefix"
10009 exec_prefix
="$acl_save_exec_prefix"
10010 prefix
="$acl_save_prefix"
10012 if test "X$x" = "X-L$additional_libdir"; then
10017 if test -z "$haveit"; then
10018 if test -d "$additional_libdir"; then
10019 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10023 for x
in $LDFLAGS $LTLIBIPT; do
10025 acl_save_prefix
="$prefix"
10026 prefix
="$acl_final_prefix"
10027 acl_save_exec_prefix
="$exec_prefix"
10028 exec_prefix
="$acl_final_exec_prefix"
10030 exec_prefix
="$acl_save_exec_prefix"
10031 prefix
="$acl_save_prefix"
10033 if test "X$x" = "X-L$additional_libdir"; then
10038 if test -z "$haveit"; then
10039 if test -d "$additional_libdir"; then
10040 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10047 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10048 if test "$enable_rpath" != no
; then
10050 for x
in $rpathdirs; do
10051 if test "X$x" = "X$dir"; then
10056 if test -z "$haveit"; then
10057 rpathdirs
="$rpathdirs $dir"
10060 for x
in $ltrpathdirs; do
10061 if test "X$x" = "X$dir"; then
10066 if test -z "$haveit"; then
10067 ltrpathdirs
="$ltrpathdirs $dir"
10072 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10075 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10078 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
10079 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10085 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10086 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10092 if test "X$rpathdirs" != "X"; then
10093 if test -n "$hardcode_libdir_separator"; then
10095 for found_dir
in $rpathdirs; do
10096 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10098 acl_save_libdir
="$libdir"
10100 eval flag
=\"$hardcode_libdir_flag_spec\"
10101 libdir
="$acl_save_libdir"
10102 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10104 for found_dir
in $rpathdirs; do
10105 acl_save_libdir
="$libdir"
10106 libdir
="$found_dir"
10107 eval flag
=\"$hardcode_libdir_flag_spec\"
10108 libdir
="$acl_save_libdir"
10109 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10113 if test "X$ltrpathdirs" != "X"; then
10114 for found_dir
in $ltrpathdirs; do
10115 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10120 ac_save_CPPFLAGS
="$CPPFLAGS"
10122 for element
in $INCIPT; do
10124 for x
in $CPPFLAGS; do
10126 acl_save_prefix
="$prefix"
10127 prefix
="$acl_final_prefix"
10128 acl_save_exec_prefix
="$exec_prefix"
10129 exec_prefix
="$acl_final_exec_prefix"
10131 exec_prefix
="$acl_save_exec_prefix"
10132 prefix
="$acl_save_prefix"
10134 if test "X$x" = "X$element"; then
10139 if test -z "$haveit"; then
10140 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10146 $as_echo_n "checking for libipt... " >&6; }
10147 if test "${ac_cv_libipt+set}" = set; then :
10148 $as_echo_n "(cached) " >&6
10151 ac_save_LIBS
="$LIBS"
10152 LIBS
="$LIBS $LIBIPT"
10153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10155 #include "intel-pt.h"
10159 pt_insn_alloc_decoder (0);
10164 if ac_fn_c_try_link
"$LINENO"; then :
10169 rm -f core conftest.err conftest.
$ac_objext \
10170 conftest
$ac_exeext conftest.
$ac_ext
10171 LIBS
="$ac_save_LIBS"
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10175 $as_echo "$ac_cv_libipt" >&6; }
10176 if test "$ac_cv_libipt" = yes; then
10179 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10182 $as_echo_n "checking how to link with libipt... " >&6; }
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10184 $as_echo "$LIBIPT" >&6; }
10187 CPPFLAGS
="$ac_save_CPPFLAGS"
10197 if test "$HAVE_LIBIPT" != yes; then
10198 if test "$with_intel_pt" = yes; then
10199 as_fn_error
"libipt is missing or unusable" "$LINENO" 5
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10202 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10207 # ------------------------- #
10208 # Checks for header files. #
10209 # ------------------------- #
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10212 $as_echo_n "checking for ANSI C header files... " >&6; }
10213 if test "${ac_cv_header_stdc+set}" = set; then :
10214 $as_echo_n "(cached) " >&6
10216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 #include <stdlib.h>
10219 #include <stdarg.h>
10220 #include <string.h>
10231 if ac_fn_c_try_compile
"$LINENO"; then :
10232 ac_cv_header_stdc
=yes
10234 ac_cv_header_stdc
=no
10236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10238 if test $ac_cv_header_stdc = yes; then
10239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10242 #include <string.h>
10245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10246 $EGREP "memchr" >/dev
/null
2>&1; then :
10249 ac_cv_header_stdc
=no
10255 if test $ac_cv_header_stdc = yes; then
10256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10259 #include <stdlib.h>
10262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10263 $EGREP "free" >/dev
/null
2>&1; then :
10266 ac_cv_header_stdc
=no
10272 if test $ac_cv_header_stdc = yes; then
10273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10274 if test "$cross_compiling" = yes; then :
10277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h. */
10280 #include <stdlib.h>
10281 #if ((' ' & 0x0FF) == 0x020)
10282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10285 # define ISLOWER(c) \
10286 (('a' <= (c) && (c) <= 'i') \
10287 || ('j' <= (c) && (c) <= 'r') \
10288 || ('s' <= (c) && (c) <= 'z'))
10289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10297 for (i = 0; i < 256; i++)
10298 if (XOR (islower (i), ISLOWER (i))
10299 || toupper (i) != TOUPPER (i))
10304 if ac_fn_c_try_run
"$LINENO"; then :
10307 ac_cv_header_stdc
=no
10309 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10310 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10316 $as_echo "$ac_cv_header_stdc" >&6; }
10317 if test $ac_cv_header_stdc = yes; then
10319 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10323 # elf_hp.h is for HP/UX 64-bit shared library support.
10324 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
10327 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
10328 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
10329 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
10330 termios.h termio.h \
10334 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10335 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10336 eval as_val
=\$
$as_ac_Header
10337 if test "x$as_val" = x
""yes; then :
10338 cat >>confdefs.h
<<_ACEOF
10339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10346 for ac_header
in sys
/proc.h
10348 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10349 # include <sys/param.h>
10353 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
10354 cat >>confdefs.h
<<_ACEOF
10355 #define HAVE_SYS_PROC_H 1
10362 for ac_header
in sys
/user.h
10364 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10365 # include <sys/param.h>
10369 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
10370 cat >>confdefs.h
<<_ACEOF
10371 #define HAVE_SYS_USER_H 1
10379 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10380 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10381 # think that we don't have <curses.h> if we're using GCC.
10384 if test "$GCC" = yes; then
10386 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
10390 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
10392 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10393 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10394 eval as_val
=\$
$as_ac_Header
10395 if test "x$as_val" = x
""yes; then :
10396 cat >>confdefs.h
<<_ACEOF
10397 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10404 for ac_header
in term.h
10406 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10407 # include <curses.h>
10411 if test "x$ac_cv_header_term_h" = x
""yes; then :
10412 cat >>confdefs.h
<<_ACEOF
10413 #define HAVE_TERM_H 1
10421 # ------------------------- #
10422 # Checks for declarations. #
10423 # ------------------------- #
10426 # Check for presence and size of long long.
10427 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10428 if test "x$ac_cv_type_long_long" = x
""yes; then :
10430 cat >>confdefs.h
<<_ACEOF
10431 #define HAVE_LONG_LONG 1
10434 # The cast to long int works around a bug in the HP C Compiler
10435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10437 # This bug is HP SR number 8606223364.
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10439 $as_echo_n "checking size of long long... " >&6; }
10440 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10441 $as_echo_n "(cached) " >&6
10443 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10446 if test "$ac_cv_type_long_long" = yes; then
10447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10449 { as_fn_set_status
77
10450 as_fn_error
"cannot compute sizeof (long long)
10451 See \`config.log' for more details." "$LINENO" 5; }; }
10453 ac_cv_sizeof_long_long
=0
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10459 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10463 cat >>confdefs.h
<<_ACEOF
10464 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10471 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
10472 if test "x$ac_cv_have_decl_basename_char_p_" = x
""yes; then :
10478 cat >>confdefs.h
<<_ACEOF
10479 #define HAVE_DECL_BASENAME $ac_have_decl
10481 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10482 if test "x$ac_cv_have_decl_ffs" = x
""yes; then :
10488 cat >>confdefs.h
<<_ACEOF
10489 #define HAVE_DECL_FFS $ac_have_decl
10491 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10492 if test "x$ac_cv_have_decl_asprintf" = x
""yes; then :
10498 cat >>confdefs.h
<<_ACEOF
10499 #define HAVE_DECL_ASPRINTF $ac_have_decl
10501 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10502 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
10508 cat >>confdefs.h
<<_ACEOF
10509 #define HAVE_DECL_VASPRINTF $ac_have_decl
10511 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10512 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
10518 cat >>confdefs.h
<<_ACEOF
10519 #define HAVE_DECL_SNPRINTF $ac_have_decl
10521 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10522 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
10528 cat >>confdefs.h
<<_ACEOF
10529 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10532 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10533 if test "x$ac_cv_have_decl_strtol" = x
""yes; then :
10539 cat >>confdefs.h
<<_ACEOF
10540 #define HAVE_DECL_STRTOL $ac_have_decl
10542 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10543 if test "x$ac_cv_have_decl_strtoul" = x
""yes; then :
10549 cat >>confdefs.h
<<_ACEOF
10550 #define HAVE_DECL_STRTOUL $ac_have_decl
10552 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10553 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
10559 cat >>confdefs.h
<<_ACEOF
10560 #define HAVE_DECL_STRTOLL $ac_have_decl
10562 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10563 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
10569 cat >>confdefs.h
<<_ACEOF
10570 #define HAVE_DECL_STRTOULL $ac_have_decl
10573 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10574 if test "x$ac_cv_have_decl_strverscmp" = x
""yes; then :
10580 cat >>confdefs.h
<<_ACEOF
10581 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10586 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10587 if test "x$ac_cv_have_decl_free" = x
""yes; then :
10593 cat >>confdefs.h
<<_ACEOF
10594 #define HAVE_DECL_FREE $ac_have_decl
10596 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10597 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
10603 cat >>confdefs.h
<<_ACEOF
10604 #define HAVE_DECL_MALLOC $ac_have_decl
10606 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10607 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
10613 cat >>confdefs.h
<<_ACEOF
10614 #define HAVE_DECL_REALLOC $ac_have_decl
10616 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10617 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
10623 cat >>confdefs.h
<<_ACEOF
10624 #define HAVE_DECL_SNPRINTF $ac_have_decl
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10629 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10630 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10631 $as_echo_n "(cached) " >&6
10633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635 #include <locale.h>
10644 if ac_fn_c_try_link
"$LINENO"; then :
10645 am_cv_val_LC_MESSAGES
=yes
10647 am_cv_val_LC_MESSAGES
=no
10649 rm -f core conftest.err conftest.
$ac_objext \
10650 conftest
$ac_exeext conftest.
$ac_ext
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10653 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10654 if test $am_cv_val_LC_MESSAGES = yes; then
10656 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10661 # ----------------------- #
10662 # Checks for structures. #
10663 # ----------------------- #
10665 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
10666 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
10668 cat >>confdefs.h
<<_ACEOF
10669 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10674 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10675 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
10677 cat >>confdefs.h
<<_ACEOF
10678 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10685 # ------------------ #
10686 # Checks for types. #
10687 # ------------------ #
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10690 $as_echo_n "checking return type of signal handlers... " >&6; }
10691 if test "${ac_cv_type_signal+set}" = set; then :
10692 $as_echo_n "(cached) " >&6
10694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10696 #include <sys/types.h>
10697 #include <signal.h>
10702 return *(signal (0, 0)) (0) == 1;
10707 if ac_fn_c_try_compile
"$LINENO"; then :
10708 ac_cv_type_signal
=int
10710 ac_cv_type_signal
=void
10712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10715 $as_echo "$ac_cv_type_signal" >&6; }
10717 cat >>confdefs.h
<<_ACEOF
10718 #define RETSIGTYPE $ac_cv_type_signal
10722 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
10723 #include <sys/socket.h>
10726 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
10728 cat >>confdefs.h
<<_ACEOF
10729 #define HAVE_SOCKLEN_T 1
10736 # ------------------------------------- #
10737 # Checks for compiler characteristics. #
10738 # ------------------------------------- #
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10741 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10742 if test "${ac_cv_c_const+set}" = set; then :
10743 $as_echo_n "(cached) " >&6
10745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10751 /* FIXME: Include the comments suggested by Paul. */
10752 #ifndef __cplusplus
10753 /* Ultrix mips cc rejects this. */
10754 typedef int charset[2];
10756 /* SunOS 4.1.1 cc rejects this. */
10757 char const *const *pcpcc;
10759 /* NEC SVR4.0.2 mips cc rejects this. */
10760 struct point {int x, y;};
10761 static struct point const zero = {0,0};
10762 /* AIX XL C 1.02.0.0 rejects this.
10763 It does not let you subtract one const X* pointer from another in
10764 an arm of an if-expression whose if-part is not a constant
10766 const char *g = "string";
10767 pcpcc = &g + (g ? g-g : 0);
10768 /* HPUX 7.0 cc rejects these. */
10770 ppc = (char**) pcpcc;
10771 pcpcc = (char const *const *) ppc;
10772 { /* SCO 3.2v4 cc rejects this. */
10774 char const *s = 0 ? (char *) 0 : (char const *) 0;
10779 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10780 int x[] = {25, 17};
10781 const int *foo = &x[0];
10784 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10785 typedef const int *iptr;
10789 { /* AIX XL C 1.02.0.0 rejects this saying
10790 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10791 struct s { int j; const int *ap[3]; };
10792 struct s *b; b->j = 5;
10794 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10795 const int foo = 10;
10796 if (!foo) return 0;
10798 return !cs[0] && !zero.x;
10805 if ac_fn_c_try_compile
"$LINENO"; then :
10810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10813 $as_echo "$ac_cv_c_const" >&6; }
10814 if test $ac_cv_c_const = no
; then
10816 $as_echo "#define const /**/" >>confdefs.h
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10821 $as_echo_n "checking for inline... " >&6; }
10822 if test "${ac_cv_c_inline+set}" = set; then :
10823 $as_echo_n "(cached) " >&6
10826 for ac_kw
in inline __inline__ __inline
; do
10827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10829 #ifndef __cplusplus
10831 static $ac_kw foo_t static_foo () {return 0; }
10832 $ac_kw foo_t foo () {return 0; }
10836 if ac_fn_c_try_compile
"$LINENO"; then :
10837 ac_cv_c_inline
=$ac_kw
10839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10840 test "$ac_cv_c_inline" != no
&& break
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10845 $as_echo "$ac_cv_c_inline" >&6; }
10847 case $ac_cv_c_inline in
10850 case $ac_cv_c_inline in
10852 *) ac_val
=$ac_cv_c_inline;;
10854 cat >>confdefs.h
<<_ACEOF
10855 #ifndef __cplusplus
10856 #define inline $ac_val
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10863 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10864 if test "${ac_cv_c_bigendian+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10867 ac_cv_c_bigendian
=unknown
10868 # See if we're dealing with a universal compiler.
10869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10870 /* end confdefs.h. */
10871 #ifndef __APPLE_CC__
10872 not a universal capable compiler
10877 if ac_fn_c_try_compile
"$LINENO"; then :
10879 # Check for potential -arch flags. It is not universal unless
10880 # there are at least two -arch flags with different values.
10883 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10884 if test -n "$ac_prev"; then
10886 i?
86 | x86_64 | ppc | ppc64
)
10887 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10890 ac_cv_c_bigendian
=universal
10896 elif test "x$ac_word" = "x-arch"; then
10901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10902 if test $ac_cv_c_bigendian = unknown
; then
10903 # See if sys/param.h defines the BYTE_ORDER macro.
10904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10906 #include <sys/types.h>
10907 #include <sys/param.h>
10912 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10913 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10915 bogus endian macros
10922 if ac_fn_c_try_compile
"$LINENO"; then :
10923 # It does; now see whether it defined to BIG_ENDIAN or not.
10924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10926 #include <sys/types.h>
10927 #include <sys/param.h>
10932 #if BYTE_ORDER != BIG_ENDIAN
10940 if ac_fn_c_try_compile
"$LINENO"; then :
10941 ac_cv_c_bigendian
=yes
10943 ac_cv_c_bigendian
=no
10945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10949 if test $ac_cv_c_bigendian = unknown
; then
10950 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953 #include <limits.h>
10958 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10959 bogus endian macros
10966 if ac_fn_c_try_compile
"$LINENO"; then :
10967 # It does; now see whether it defined to _BIG_ENDIAN or not.
10968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10970 #include <limits.h>
10975 #ifndef _BIG_ENDIAN
10983 if ac_fn_c_try_compile
"$LINENO"; then :
10984 ac_cv_c_bigendian
=yes
10986 ac_cv_c_bigendian
=no
10988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10992 if test $ac_cv_c_bigendian = unknown
; then
10993 # Compile a test program.
10994 if test "$cross_compiling" = yes; then :
10995 # Try to guess by grepping values from an object file.
10996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10998 short int ascii_mm[] =
10999 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11000 short int ascii_ii[] =
11001 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11002 int use_ascii (int i) {
11003 return ascii_mm[i] + ascii_ii[i];
11005 short int ebcdic_ii[] =
11006 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11007 short int ebcdic_mm[] =
11008 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11009 int use_ebcdic (int i) {
11010 return ebcdic_mm[i] + ebcdic_ii[i];
11017 return use_ascii (foo) == use_ebcdic (foo);
11022 if ac_fn_c_try_compile
"$LINENO"; then :
11023 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11024 ac_cv_c_bigendian
=yes
11026 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11027 if test "$ac_cv_c_bigendian" = unknown
; then
11028 ac_cv_c_bigendian
=no
11030 # finding both strings is unlikely to happen, but who knows?
11031 ac_cv_c_bigendian
=unknown
11035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h. */
11039 $ac_includes_default
11044 /* Are we little or big endian? From Harbison&Steele. */
11048 char c[sizeof (long int)];
11051 return u.c[sizeof (long int) - 1] == 1;
11057 if ac_fn_c_try_run
"$LINENO"; then :
11058 ac_cv_c_bigendian
=no
11060 ac_cv_c_bigendian
=yes
11062 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11063 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11069 $as_echo "$ac_cv_c_bigendian" >&6; }
11070 case $ac_cv_c_bigendian in #(
11072 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11078 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11082 as_fn_error
"unknown endianness
11083 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11087 # ------------------------------ #
11088 # Checks for library functions. #
11089 # ------------------------------ #
11091 for ac_header
in stdlib.h unistd.h
11093 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11094 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11095 eval as_val
=\$
$as_ac_Header
11096 if test "x$as_val" = x
""yes; then :
11097 cat >>confdefs.h
<<_ACEOF
11098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11105 for ac_func
in getpagesize
11107 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11108 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
11109 cat >>confdefs.h
<<_ACEOF
11110 #define HAVE_GETPAGESIZE 1
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11117 $as_echo_n "checking for working mmap... " >&6; }
11118 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11119 $as_echo_n "(cached) " >&6
11121 if test "$cross_compiling" = yes; then :
11122 ac_cv_func_mmap_fixed_mapped
=no
11124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11126 $ac_includes_default
11127 /* malloc might have been renamed as rpl_malloc. */
11130 /* Thanks to Mike Haertel and Jim Avera for this test.
11131 Here is a matrix of mmap possibilities:
11132 mmap private not fixed
11133 mmap private fixed at somewhere currently unmapped
11134 mmap private fixed at somewhere already mapped
11135 mmap shared not fixed
11136 mmap shared fixed at somewhere currently unmapped
11137 mmap shared fixed at somewhere already mapped
11138 For private mappings, we should verify that changes cannot be read()
11139 back from the file, nor mmap's back from the file at a different
11140 address. (There have been systems where private was not correctly
11141 implemented like the infamous i386 svr4.0, and systems where the
11142 VM page cache was not coherent with the file system buffer cache
11143 like early versions of FreeBSD and possibly contemporary NetBSD.)
11144 For shared mappings, we should conversely verify that changes get
11145 propagated back to all the places they're supposed to be.
11147 Grep wants private fixed already mapped.
11148 The main things grep needs to know about mmap are:
11149 * does it exist and is it safe to write into the mmap'd area
11150 * how to use it (BSD variants) */
11153 #include <sys/mman.h>
11155 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11159 /* This mess was copied from the GNU getpagesize.h. */
11160 #ifndef HAVE_GETPAGESIZE
11161 /* Assume that all systems that can run configure have sys/param.h. */
11162 # ifndef HAVE_SYS_PARAM_H
11163 # define HAVE_SYS_PARAM_H 1
11166 # ifdef _SC_PAGESIZE
11167 # define getpagesize() sysconf(_SC_PAGESIZE)
11168 # else /* no _SC_PAGESIZE */
11169 # ifdef HAVE_SYS_PARAM_H
11170 # include <sys/param.h>
11171 # ifdef EXEC_PAGESIZE
11172 # define getpagesize() EXEC_PAGESIZE
11173 # else /* no EXEC_PAGESIZE */
11175 # define getpagesize() NBPG * CLSIZE
11178 # endif /* no CLSIZE */
11179 # else /* no NBPG */
11181 # define getpagesize() NBPC
11182 # else /* no NBPC */
11184 # define getpagesize() PAGESIZE
11185 # endif /* PAGESIZE */
11186 # endif /* no NBPC */
11187 # endif /* no NBPG */
11188 # endif /* no EXEC_PAGESIZE */
11189 # else /* no HAVE_SYS_PARAM_H */
11190 # define getpagesize() 8192 /* punt totally */
11191 # endif /* no HAVE_SYS_PARAM_H */
11192 # endif /* no _SC_PAGESIZE */
11194 #endif /* no HAVE_GETPAGESIZE */
11199 char *data, *data2, *data3;
11203 pagesize = getpagesize ();
11205 /* First, make a file with some known garbage in it. */
11206 data = (char *) malloc (pagesize);
11209 for (i = 0; i < pagesize; ++i)
11210 *(data + i) = rand ();
11212 fd = creat ("conftest.mmap", 0600);
11215 if (write (fd, data, pagesize) != pagesize)
11219 /* Next, try to mmap the file at a fixed address which already has
11220 something else allocated at it. If we can, also make sure that
11221 we see the same garbage. */
11222 fd = open ("conftest.mmap", O_RDWR);
11225 data2 = (char *) malloc (2 * pagesize);
11228 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11229 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11230 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11232 for (i = 0; i < pagesize; ++i)
11233 if (*(data + i) != *(data2 + i))
11236 /* Finally, make sure that changes to the mapped area do not
11237 percolate back to the file as seen by read(). (This is a bug on
11238 some variants of i386 svr4.0.) */
11239 for (i = 0; i < pagesize; ++i)
11240 *(data2 + i) = *(data2 + i) + 1;
11241 data3 = (char *) malloc (pagesize);
11244 if (read (fd, data3, pagesize) != pagesize)
11246 for (i = 0; i < pagesize; ++i)
11247 if (*(data + i) != *(data3 + i))
11253 if ac_fn_c_try_run
"$LINENO"; then :
11254 ac_cv_func_mmap_fixed_mapped
=yes
11256 ac_cv_func_mmap_fixed_mapped
=no
11258 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11259 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11264 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11265 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11267 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11270 rm -f conftest.mmap
11272 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11273 if test "x$ac_cv_type_pid_t" = x
""yes; then :
11277 cat >>confdefs.h
<<_ACEOF
11283 for ac_header
in vfork.h
11285 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11286 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
11287 cat >>confdefs.h
<<_ACEOF
11288 #define HAVE_VFORK_H 1
11295 for ac_func
in fork vfork
11297 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11298 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11299 eval as_val
=\$
$as_ac_var
11300 if test "x$as_val" = x
""yes; then :
11301 cat >>confdefs.h
<<_ACEOF
11302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11308 if test "x$ac_cv_func_fork" = xyes
; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11310 $as_echo_n "checking for working fork... " >&6; }
11311 if test "${ac_cv_func_fork_works+set}" = set; then :
11312 $as_echo_n "(cached) " >&6
11314 if test "$cross_compiling" = yes; then :
11315 ac_cv_func_fork_works
=cross
11317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11319 $ac_includes_default
11324 /* By Ruediger Kuhlmann. */
11325 return fork () < 0;
11331 if ac_fn_c_try_run
"$LINENO"; then :
11332 ac_cv_func_fork_works
=yes
11334 ac_cv_func_fork_works
=no
11336 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11337 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11342 $as_echo "$ac_cv_func_fork_works" >&6; }
11345 ac_cv_func_fork_works
=$ac_cv_func_fork
11347 if test "x$ac_cv_func_fork_works" = xcross
; then
11349 *-*-amigaos* |
*-*-msdosdjgpp*)
11350 # Override, as these systems have only a dummy fork() stub
11351 ac_cv_func_fork_works
=no
11354 ac_cv_func_fork_works
=yes
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11358 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11360 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11361 if test "x$ac_cv_func_vfork" = xyes
; then
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11363 $as_echo_n "checking for working vfork... " >&6; }
11364 if test "${ac_cv_func_vfork_works+set}" = set; then :
11365 $as_echo_n "(cached) " >&6
11367 if test "$cross_compiling" = yes; then :
11368 ac_cv_func_vfork_works
=cross
11370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11372 /* Thanks to Paul Eggert for this test. */
11373 $ac_includes_default
11374 #include <sys/wait.h>
11375 #ifdef HAVE_VFORK_H
11376 # include <vfork.h>
11378 /* On some sparc systems, changes by the child to local and incoming
11379 argument registers are propagated back to the parent. The compiler
11380 is told about this with #include <vfork.h>, but some compilers
11381 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11382 static variable whose address is put into a register that is
11383 clobbered by the vfork. */
11386 sparc_address_test (int arg)
11388 sparc_address_test (arg) int arg;
11391 static pid_t child;
11409 pid_t parent = getpid ();
11412 sparc_address_test (0);
11417 /* Here is another test for sparc vfork register problems. This
11418 test uses lots of local variables, at least as many local
11419 variables as main has allocated so far including compiler
11420 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11421 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11422 reuse the register of parent for one of the local variables,
11423 since it will think that parent can't possibly be used any more
11424 in this routine. Assigning to the local variable will thus
11425 munge parent in the parent process. */
11427 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11428 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11429 /* Convince the compiler that p..p7 are live; otherwise, it might
11430 use the same hardware register for all 8 local variables. */
11431 if (p != p1 || p != p2 || p != p3 || p != p4
11432 || p != p5 || p != p6 || p != p7)
11435 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11436 from child file descriptors. If the child closes a descriptor
11437 before it execs or exits, this munges the parent's descriptor
11438 as well. Test for this by closing stdout in the child. */
11439 _exit(close(fileno(stdout)) != 0);
11444 while (wait(&status) != child)
11447 /* Was there some problem with vforking? */
11450 /* Did the child fail? (This shouldn't happen.) */
11453 /* Did the vfork/compiler bug occur? */
11454 || parent != getpid()
11456 /* Did the file descriptor bug occur? */
11457 || fstat(fileno(stdout), &st) != 0
11462 if ac_fn_c_try_run
"$LINENO"; then :
11463 ac_cv_func_vfork_works
=yes
11465 ac_cv_func_vfork_works
=no
11467 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11468 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11473 $as_echo "$ac_cv_func_vfork_works" >&6; }
11476 if test "x$ac_cv_func_fork_works" = xcross
; then
11477 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11479 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11482 if test "x$ac_cv_func_vfork_works" = xyes
; then
11484 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11488 $as_echo "#define vfork fork" >>confdefs.h
11491 if test "x$ac_cv_func_fork_works" = xyes
; then
11493 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11497 for ac_func
in getauxval getrusage getuid getgid \
11498 pipe poll pread pread64 pwrite resize_term \
11499 sbrk setpgid setpgrp setsid \
11500 sigaction sigprocmask sigsetmask socketpair \
11501 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
11502 setrlimit getrlimit posix_madvise waitpid \
11503 ptrace64 sigaltstack mkdtemp setns
11505 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11506 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11507 eval as_val
=\$
$as_ac_var
11508 if test "x$as_val" = x
""yes; then :
11509 cat >>confdefs.h
<<_ACEOF
11510 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11518 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11519 if test "${am_cv_langinfo_codeset+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
11522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11524 #include <langinfo.h>
11528 char* cs = nl_langinfo(CODESET);
11533 if ac_fn_c_try_link
"$LINENO"; then :
11534 am_cv_langinfo_codeset
=yes
11536 am_cv_langinfo_codeset
=no
11538 rm -f core conftest.err conftest.
$ac_objext \
11539 conftest
$ac_exeext conftest.
$ac_ext
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11543 $as_echo "$am_cv_langinfo_codeset" >&6; }
11544 if test $am_cv_langinfo_codeset = yes; then
11546 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11552 $as_echo_n "checking for ANSI C header files... " >&6; }
11553 if test "${ac_cv_header_stdc+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
11556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11558 #include <stdlib.h>
11559 #include <stdarg.h>
11560 #include <string.h>
11571 if ac_fn_c_try_compile
"$LINENO"; then :
11572 ac_cv_header_stdc
=yes
11574 ac_cv_header_stdc
=no
11576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11578 if test $ac_cv_header_stdc = yes; then
11579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582 #include <string.h>
11585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11586 $EGREP "memchr" >/dev
/null
2>&1; then :
11589 ac_cv_header_stdc
=no
11595 if test $ac_cv_header_stdc = yes; then
11596 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11599 #include <stdlib.h>
11602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11603 $EGREP "free" >/dev
/null
2>&1; then :
11606 ac_cv_header_stdc
=no
11612 if test $ac_cv_header_stdc = yes; then
11613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11614 if test "$cross_compiling" = yes; then :
11617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11620 #include <stdlib.h>
11621 #if ((' ' & 0x0FF) == 0x020)
11622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11625 # define ISLOWER(c) \
11626 (('a' <= (c) && (c) <= 'i') \
11627 || ('j' <= (c) && (c) <= 'r') \
11628 || ('s' <= (c) && (c) <= 'z'))
11629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11637 for (i = 0; i < 256; i++)
11638 if (XOR (islower (i), ISLOWER (i))
11639 || toupper (i) != TOUPPER (i))
11644 if ac_fn_c_try_run
"$LINENO"; then :
11647 ac_cv_header_stdc
=no
11649 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11650 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11656 $as_echo "$ac_cv_header_stdc" >&6; }
11657 if test $ac_cv_header_stdc = yes; then
11659 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11663 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11664 # for constant arguments. Useless!
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11666 $as_echo_n "checking for working alloca.h... " >&6; }
11667 if test "${ac_cv_working_alloca_h+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11672 #include <alloca.h>
11676 char *p = (char *) alloca (2 * sizeof (int));
11682 if ac_fn_c_try_link
"$LINENO"; then :
11683 ac_cv_working_alloca_h
=yes
11685 ac_cv_working_alloca_h
=no
11687 rm -f core conftest.err conftest.
$ac_objext \
11688 conftest
$ac_exeext conftest.
$ac_ext
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11691 $as_echo "$ac_cv_working_alloca_h" >&6; }
11692 if test $ac_cv_working_alloca_h = yes; then
11694 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11699 $as_echo_n "checking for alloca... " >&6; }
11700 if test "${ac_cv_func_alloca_works+set}" = set; then :
11701 $as_echo_n "(cached) " >&6
11703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11704 /* end confdefs.h. */
11706 # define alloca __builtin_alloca
11709 # include <malloc.h>
11710 # define alloca _alloca
11712 # ifdef HAVE_ALLOCA_H
11713 # include <alloca.h>
11718 # ifndef alloca /* predefined by HP cc +Olibcalls */
11729 char *p = (char *) alloca (1);
11735 if ac_fn_c_try_link
"$LINENO"; then :
11736 ac_cv_func_alloca_works
=yes
11738 ac_cv_func_alloca_works
=no
11740 rm -f core conftest.err conftest.
$ac_objext \
11741 conftest
$ac_exeext conftest.
$ac_ext
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11744 $as_echo "$ac_cv_func_alloca_works" >&6; }
11746 if test $ac_cv_func_alloca_works = yes; then
11748 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11751 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11752 # that cause trouble. Some versions do not even contain alloca or
11753 # contain a buggy version. If you still want to use their alloca,
11754 # use ar to extract alloca.o from them instead of compiling alloca.c.
11756 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11758 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11762 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11763 if test "${ac_cv_os_cray+set}" = set; then :
11764 $as_echo_n "(cached) " >&6
11766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h. */
11768 #if defined CRAY && ! defined CRAY2
11775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11776 $EGREP "webecray" >/dev
/null
2>&1; then :
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11785 $as_echo "$ac_cv_os_cray" >&6; }
11786 if test $ac_cv_os_cray = yes; then
11787 for ac_func
in _getb67 GETB67 getb67
; do
11788 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11789 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11790 eval as_val
=\$
$as_ac_var
11791 if test "x$as_val" = x
""yes; then :
11793 cat >>confdefs.h
<<_ACEOF
11794 #define CRAY_STACKSEG_END $ac_func
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11804 $as_echo_n "checking stack direction for C alloca... " >&6; }
11805 if test "${ac_cv_c_stack_direction+set}" = set; then :
11806 $as_echo_n "(cached) " >&6
11808 if test "$cross_compiling" = yes; then :
11809 ac_cv_c_stack_direction
=0
11811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h. */
11813 $ac_includes_default
11815 find_stack_direction ()
11817 static char *addr = 0;
11822 return find_stack_direction ();
11825 return (&dummy > addr) ? 1 : -1;
11831 return find_stack_direction () < 0;
11834 if ac_fn_c_try_run
"$LINENO"; then :
11835 ac_cv_c_stack_direction
=1
11837 ac_cv_c_stack_direction
=-1
11839 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11840 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11845 $as_echo "$ac_cv_c_stack_direction" >&6; }
11846 cat >>confdefs.h
<<_ACEOF
11847 #define STACK_DIRECTION $ac_cv_c_stack_direction
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11856 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11857 if test "${am_cv_langinfo_codeset+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
11860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11862 #include <langinfo.h>
11866 char* cs = nl_langinfo(CODESET);
11871 if ac_fn_c_try_link
"$LINENO"; then :
11872 am_cv_langinfo_codeset
=yes
11874 am_cv_langinfo_codeset
=no
11876 rm -f core conftest.err conftest.
$ac_objext \
11877 conftest
$ac_exeext conftest.
$ac_ext
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11881 $as_echo "$am_cv_langinfo_codeset" >&6; }
11882 if test $am_cv_langinfo_codeset = yes; then
11884 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11889 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
11891 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11892 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11893 eval as_val
=\$
$as_ac_Header
11894 if test "x$as_val" = x
""yes; then :
11895 cat >>confdefs.h
<<_ACEOF
11896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11904 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
11906 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11907 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11908 eval as_val
=\$
$as_ac_var
11909 if test "x$as_val" = x
""yes; then :
11910 cat >>confdefs.h
<<_ACEOF
11911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11918 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11919 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
11925 cat >>confdefs.h
<<_ACEOF
11926 #define HAVE_DECL_STRERROR $ac_have_decl
11928 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11929 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
11935 cat >>confdefs.h
<<_ACEOF
11936 #define HAVE_DECL_STRSTR $ac_have_decl
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11941 $as_echo_n "checking for sigsetjmp... " >&6; }
11942 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11943 $as_echo_n "(cached) " >&6
11945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11948 #include <setjmp.h>
11953 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11958 if ac_fn_c_try_compile
"$LINENO"; then :
11959 gdb_cv_func_sigsetjmp
=yes
11961 gdb_cv_func_sigsetjmp
=no
11963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11966 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11967 if test $gdb_cv_func_sigsetjmp = yes; then
11969 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11974 # Check the return and argument types of ptrace.
11978 for ac_header
in sys
/ptrace.h ptrace.h
11980 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11981 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11982 eval as_val
=\$
$as_ac_Header
11983 if test "x$as_val" = x
""yes; then :
11984 cat >>confdefs.h
<<_ACEOF
11985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11993 # Needs to be tested in C++ mode, to detect whether we need to cast
11994 # the first argument to enum __ptrace_request.
11995 if test "$enable_build_with_cxx" = "yes"; then
11997 ac_cpp
='$CXXCPP $CPPFLAGS'
11998 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11999 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12000 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12004 gdb_ptrace_headers
='
12005 #include <sys/types.h>
12006 #if HAVE_SYS_PTRACE_H
12007 # include <sys/ptrace.h>
12010 # include <unistd.h>
12013 # There is no point in checking if we don't have a prototype.
12014 ac_fn_cxx_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12016 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
12022 cat >>confdefs.h
<<_ACEOF
12023 #define HAVE_DECL_PTRACE $ac_have_decl
12025 if test $ac_have_decl = 1; then :
12029 : ${gdb_cv_func_ptrace_ret='int'}
12030 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12034 # Check return type. Varargs (used on GNU/Linux) conflict with the
12035 # empty argument list, so check for that explicitly.
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12037 $as_echo_n "checking return type of ptrace... " >&6; }
12038 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
12041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043 $gdb_ptrace_headers
12047 extern long ptrace (enum __ptrace_request, ...);
12052 if ac_fn_cxx_try_compile
"$LINENO"; then :
12053 gdb_cv_func_ptrace_ret
='long'
12055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12057 $gdb_ptrace_headers
12061 extern int ptrace ();
12066 if ac_fn_cxx_try_compile
"$LINENO"; then :
12067 gdb_cv_func_ptrace_ret
='int'
12069 gdb_cv_func_ptrace_ret
='long'
12071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12076 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12078 cat >>confdefs.h
<<_ACEOF
12079 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12082 # Check argument types.
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12084 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12085 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
12089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12090 /* end confdefs.h. */
12091 $gdb_ptrace_headers
12095 extern long ptrace (enum __ptrace_request, ...);
12100 if ac_fn_cxx_try_compile
"$LINENO"; then :
12101 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
12104 for gdb_arg1
in 'int' 'long'; do
12105 for gdb_arg2
in 'pid_t' 'int' 'long'; do
12106 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12107 for gdb_arg4
in 'int' 'long' 'void *'; do
12108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110 $gdb_ptrace_headers
12115 extern $gdb_cv_func_ptrace_ret
12116 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12122 if ac_fn_cxx_try_compile
"$LINENO"; then :
12123 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12127 for gdb_arg5
in 'int *' 'int' 'long'; do
12128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12130 $gdb_ptrace_headers
12135 extern $gdb_cv_func_ptrace_ret
12136 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12142 if ac_fn_cxx_try_compile
"$LINENO"; then :
12144 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12153 # Provide a safe default value.
12154 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12160 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12161 ac_save_IFS
=$IFS; IFS
=','
12162 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12166 cat >>confdefs.h
<<_ACEOF
12167 #define PTRACE_TYPE_ARG1 $1
12171 cat >>confdefs.h
<<_ACEOF
12172 #define PTRACE_TYPE_ARG3 $3
12176 cat >>confdefs.h
<<_ACEOF
12177 #define PTRACE_TYPE_ARG4 $4
12180 if test -n "$5"; then
12182 cat >>confdefs.h
<<_ACEOF
12183 #define PTRACE_TYPE_ARG5 $5
12188 if test "$enable_build_with_cxx" = "yes"; then
12190 ac_cpp
='$CPP $CPPFLAGS'
12191 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12192 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12193 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12198 if test "$cross_compiling" = no
; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12200 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12201 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12202 $as_echo_n "(cached) " >&6
12204 if test "$cross_compiling" = yes; then :
12205 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
12207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12208 /* end confdefs.h. */
12209 $ac_includes_default
12213 /* If this system has a BSD-style setpgrp which takes arguments,
12214 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12215 exit successfully. */
12216 return setpgrp (1,1) != -1;
12221 if ac_fn_c_try_run
"$LINENO"; then :
12222 ac_cv_func_setpgrp_void
=no
12224 ac_cv_func_setpgrp_void
=yes
12226 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12227 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12232 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12233 if test $ac_cv_func_setpgrp_void = yes; then
12235 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12241 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12242 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
12245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12248 #include <unistd.h>
12254 if (setpgrp(1,1) == -1)
12263 if ac_fn_c_try_compile
"$LINENO"; then :
12264 ac_cv_func_setpgrp_void
=no
12266 ac_cv_func_setpgrp_void
=yes
12268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12271 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12272 if test $ac_cv_func_setpgrp_void = yes; then
12273 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12278 # Assume we'll default to using the included libiberty regex.
12279 gdb_use_included_regex
=yes
12281 # However, if the system regex is GNU regex, then default to *not*
12282 # using the included regex.
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12284 $as_echo_n "checking for GNU regex... " >&6; }
12285 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12290 #include <gnu-versions.h>
12294 #define REGEX_INTERFACE_VERSION 1
12295 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12296 # error "Version mismatch"
12302 if ac_fn_c_try_compile
"$LINENO"; then :
12303 gdb_cv_have_gnu_regex
=yes
12305 gdb_cv_have_gnu_regex
=no
12307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12310 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12311 if test $gdb_cv_have_gnu_regex = yes; then
12312 gdb_use_included_regex
=no
12316 # Check whether --with-included-regex was given.
12317 if test "${with_included_regex+set}" = set; then :
12318 withval
=$with_included_regex; gdb_with_regex
=$withval
12320 gdb_with_regex
=$gdb_use_included_regex
12323 if test "$gdb_with_regex" = yes; then
12325 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12329 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12330 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12331 #include <sys/proc.h>
12334 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
12336 cat >>confdefs.h
<<_ACEOF
12337 #define HAVE_STRUCT_THREAD_TD_PCB 1
12344 # See if <sys/lwp.h> defines `struct lwp`.
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12346 $as_echo_n "checking for struct lwp... " >&6; }
12347 if test "${gdb_cv_struct_lwp+set}" = set; then :
12348 $as_echo_n "(cached) " >&6
12350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12352 #include <sys/param.h>
12353 #include <sys/lwp.h>
12362 if ac_fn_c_try_compile
"$LINENO"; then :
12363 gdb_cv_struct_lwp
=yes
12365 gdb_cv_struct_lwp
=no
12367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12370 $as_echo "$gdb_cv_struct_lwp" >&6; }
12371 if test $gdb_cv_struct_lwp = yes; then
12373 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12377 # See if <machine/reg.h> degines `struct reg'.
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12379 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12380 if test "${gdb_cv_struct_reg+set}" = set; then :
12381 $as_echo_n "(cached) " >&6
12383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12385 #include <sys/types.h>
12386 #include <machine/reg.h>
12395 if ac_fn_c_try_compile
"$LINENO"; then :
12396 gdb_cv_struct_reg
=yes
12398 gdb_cv_struct_reg
=no
12400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12403 $as_echo "$gdb_cv_struct_reg" >&6; }
12404 if test $gdb_cv_struct_reg = yes; then
12406 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12410 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12411 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12412 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
12414 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
12416 cat >>confdefs.h
<<_ACEOF
12417 #define HAVE_STRUCT_REG_R_FS 1
12422 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
12424 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
12426 cat >>confdefs.h
<<_ACEOF
12427 #define HAVE_STRUCT_REG_R_GS 1
12434 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
12435 # Older amd64 Linux's don't have the fs_base and gs_base members of
12436 # `struct user_regs_struct'.
12437 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>
12439 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
12441 cat >>confdefs.h
<<_ACEOF
12442 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
12447 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>
12449 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
12451 cat >>confdefs.h
<<_ACEOF
12452 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
12459 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12461 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12462 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12463 $as_echo_n "(cached) " >&6
12465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12467 #include <sys/ptrace.h>
12476 if ac_fn_c_try_compile
"$LINENO"; then :
12477 gdb_cv_have_ptrace_getregs
=yes
12479 gdb_cv_have_ptrace_getregs
=no
12481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
12485 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
12486 if test $gdb_cv_have_ptrace_getregs = yes; then
12488 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
12492 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
12494 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
12495 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
12496 $as_echo_n "(cached) " >&6
12498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12500 #include <sys/ptrace.h>
12509 if ac_fn_c_try_compile
"$LINENO"; then :
12510 gdb_cv_have_ptrace_getfpxregs
=yes
12512 gdb_cv_have_ptrace_getfpxregs
=no
12514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12518 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12519 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12521 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12525 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12527 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12528 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12529 $as_echo_n "(cached) " >&6
12531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12533 #include <sys/types.h>
12534 #include <sys/ptrace.h>
12543 if ac_fn_c_try_compile
"$LINENO"; then :
12544 gdb_cv_have_pt_getdbregs
=yes
12546 gdb_cv_have_pt_getdbregs
=no
12548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12552 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12553 if test $gdb_cv_have_pt_getdbregs = yes; then
12555 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12559 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12561 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12562 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12563 $as_echo_n "(cached) " >&6
12565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h. */
12567 #include <sys/types.h>
12568 #include <sys/ptrace.h>
12577 if ac_fn_c_try_compile
"$LINENO"; then :
12578 gdb_cv_have_pt_getxmmregs
=yes
12580 gdb_cv_have_pt_getxmmregs
=no
12582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12586 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12587 if test $gdb_cv_have_pt_getxmmregs = yes; then
12589 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12593 # Detect which type of /proc is in use, such as for Solaris.
12595 if test "${target}" = "${host}"; then
12597 *-*-sysv4.2
* |
*-*-sysv5* )
12599 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12602 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
12604 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12608 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12610 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12616 if test "$ac_cv_header_sys_procfs_h" = yes; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12618 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12619 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12620 $as_echo_n "(cached) " >&6
12622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12626 /* Needed for new procfs interface on sparc-solaris. */
12627 #define _STRUCTURED_PROC 1
12628 #include <sys/procfs.h>
12637 if ac_fn_c_try_compile
"$LINENO"; then :
12638 bfd_cv_have_sys_procfs_type_gregset_t
=yes
12640 bfd_cv_have_sys_procfs_type_gregset_t
=no
12643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12646 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
12648 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
12652 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
12655 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
12656 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
12657 $as_echo_n "(cached) " >&6
12659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12663 /* Needed for new procfs interface on sparc-solaris. */
12664 #define _STRUCTURED_PROC 1
12665 #include <sys/procfs.h>
12674 if ac_fn_c_try_compile
"$LINENO"; then :
12675 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
12677 bfd_cv_have_sys_procfs_type_fpregset_t
=no
12680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12683 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
12685 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
12689 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
12692 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
12693 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
12694 $as_echo_n "(cached) " >&6
12696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12700 /* Needed for new procfs interface on sparc-solaris. */
12701 #define _STRUCTURED_PROC 1
12702 #include <sys/procfs.h>
12711 if ac_fn_c_try_compile
"$LINENO"; then :
12712 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
12714 bfd_cv_have_sys_procfs_type_prgregset_t
=no
12717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12720 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
12722 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
12726 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
12729 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
12730 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
12731 $as_echo_n "(cached) " >&6
12733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12737 /* Needed for new procfs interface on sparc-solaris. */
12738 #define _STRUCTURED_PROC 1
12739 #include <sys/procfs.h>
12748 if ac_fn_c_try_compile
"$LINENO"; then :
12749 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
12751 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
12754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12757 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12759 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
12763 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
12766 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
12767 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
12768 $as_echo_n "(cached) " >&6
12770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12774 /* Needed for new procfs interface on sparc-solaris. */
12775 #define _STRUCTURED_PROC 1
12776 #include <sys/procfs.h>
12785 if ac_fn_c_try_compile
"$LINENO"; then :
12786 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
12788 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
12791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12794 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
12796 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
12800 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
12803 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
12804 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
12807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12811 /* Needed for new procfs interface on sparc-solaris. */
12812 #define _STRUCTURED_PROC 1
12813 #include <sys/procfs.h>
12822 if ac_fn_c_try_compile
"$LINENO"; then :
12823 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
12825 bfd_cv_have_sys_procfs_type_lwpid_t
=no
12828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12831 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
12833 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
12837 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
12840 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
12841 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
12842 $as_echo_n "(cached) " >&6
12844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12848 /* Needed for new procfs interface on sparc-solaris. */
12849 #define _STRUCTURED_PROC 1
12850 #include <sys/procfs.h>
12859 if ac_fn_c_try_compile
"$LINENO"; then :
12860 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
12862 bfd_cv_have_sys_procfs_type_psaddr_t
=no
12865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12868 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
12870 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
12874 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
12877 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
12878 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
12879 $as_echo_n "(cached) " >&6
12881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12882 /* end confdefs.h. */
12885 /* Needed for new procfs interface on sparc-solaris. */
12886 #define _STRUCTURED_PROC 1
12887 #include <sys/procfs.h>
12896 if ac_fn_c_try_compile
"$LINENO"; then :
12897 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
12899 bfd_cv_have_sys_procfs_type_prsysent_t
=no
12902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12905 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
12907 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
12911 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
12914 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
12915 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
12916 $as_echo_n "(cached) " >&6
12918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12919 /* end confdefs.h. */
12922 /* Needed for new procfs interface on sparc-solaris. */
12923 #define _STRUCTURED_PROC 1
12924 #include <sys/procfs.h>
12933 if ac_fn_c_try_compile
"$LINENO"; then :
12934 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
12936 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
12939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12942 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
12944 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
12948 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
12951 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
12952 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12953 $as_echo_n "(cached) " >&6
12955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12959 /* Needed for new procfs interface on sparc-solaris. */
12960 #define _STRUCTURED_PROC 1
12961 #include <sys/procfs.h>
12965 pr_sigaction64_t avar
12970 if ac_fn_c_try_compile
"$LINENO"; then :
12971 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
12973 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
12976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12979 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12981 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12985 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12988 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12989 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12990 $as_echo_n "(cached) " >&6
12992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12993 /* end confdefs.h. */
12996 /* Needed for new procfs interface on sparc-solaris. */
12997 #define _STRUCTURED_PROC 1
12998 #include <sys/procfs.h>
13002 pr_siginfo64_t avar
13007 if ac_fn_c_try_compile
"$LINENO"; then :
13008 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
13010 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
13013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13016 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13018 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13022 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13028 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13030 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13031 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13032 $as_echo_n "(cached) " >&6
13034 if test "$cross_compiling" = yes; then :
13035 gdb_cv_prfpregset_t_broken
=yes
13037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13039 #include <sys/procfs.h>
13042 if (sizeof (prfpregset_t) == sizeof (void *))
13047 if ac_fn_c_try_run
"$LINENO"; then :
13048 gdb_cv_prfpregset_t_broken
=no
13050 gdb_cv_prfpregset_t_broken
=yes
13052 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13053 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13059 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13060 if test $gdb_cv_prfpregset_t_broken = yes; then
13062 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13068 # Check if the compiler supports the `long long' type.
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13071 $as_echo_n "checking for long long support in compiler... " >&6; }
13072 if test "${gdb_cv_c_long_long+set}" = set; then :
13073 $as_echo_n "(cached) " >&6
13075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h. */
13077 extern long long foo;
13081 switch (foo & 2) { case 0: return 1; }
13086 if ac_fn_c_try_compile
"$LINENO"; then :
13087 gdb_cv_c_long_long
=yes
13089 gdb_cv_c_long_long
=no
13091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13094 $as_echo "$gdb_cv_c_long_long" >&6; }
13095 if test $gdb_cv_c_long_long != yes; then
13096 # libdecnumber requires long long.
13097 as_fn_error
"Compiler must support long long for GDB." "$LINENO" 5
13100 # Check if the compiler and runtime support printing long longs.
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13103 $as_echo_n "checking for long long support in printf... " >&6; }
13104 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
13107 if test "$cross_compiling" = yes; then :
13108 gdb_cv_printf_has_long_long
=no
13110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112 $ac_includes_default
13118 l = (l << 16) + 0x0123;
13119 l = (l << 16) + 0x4567;
13120 l = (l << 16) + 0x89ab;
13121 l = (l << 16) + 0xcdef;
13122 sprintf (buf, "0x%016llx", l);
13123 return (strcmp ("0x0123456789abcdef", buf));
13128 if ac_fn_c_try_run
"$LINENO"; then :
13129 gdb_cv_printf_has_long_long
=yes
13131 gdb_cv_printf_has_long_long
=no
13133 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13134 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13139 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13140 if test $gdb_cv_printf_has_long_long = yes; then
13142 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13146 # Check if the compiler and runtime support printing decfloats.
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13149 $as_echo_n "checking for decfloat support in printf... " >&6; }
13150 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13153 if test "$cross_compiling" = yes; then :
13154 gdb_cv_printf_has_decfloat
=no
13156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13158 $ac_includes_default
13163 _Decimal32 d32 = 1.2345df;
13164 _Decimal64 d64 = 1.2345dd;
13165 _Decimal128 d128 = 1.2345dl;
13166 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13167 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13172 if ac_fn_c_try_run
"$LINENO"; then :
13173 gdb_cv_printf_has_decfloat
=yes
13175 gdb_cv_printf_has_decfloat
=no
13177 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13178 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
13183 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
13184 if test $gdb_cv_printf_has_decfloat = yes; then
13186 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
13190 # Check if the compiler supports the `long double' type. We can't use
13191 # AC_C_LONG_DOUBLE because that one does additional checks on the
13192 # constants defined in <float.h> that fail on some systems,
13193 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
13196 $as_echo_n "checking for long double support in compiler... " >&6; }
13197 if test "${gdb_cv_c_long_double+set}" = set; then :
13198 $as_echo_n "(cached) " >&6
13200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13204 if ac_fn_c_try_compile
"$LINENO"; then :
13205 gdb_cv_c_long_double
=yes
13207 gdb_cv_c_long_double
=no
13209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
13212 $as_echo "$gdb_cv_c_long_double" >&6; }
13213 if test $gdb_cv_c_long_double = yes; then
13215 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13219 # Check if the compiler and runtime support printing long doubles.
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
13222 $as_echo_n "checking for long double support in printf... " >&6; }
13223 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
13224 $as_echo_n "(cached) " >&6
13226 if test "$cross_compiling" = yes; then :
13227 gdb_cv_printf_has_long_double
=no
13229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13231 $ac_includes_default
13236 long double f = 3.141592653;
13237 sprintf (buf, "%Lg", f);
13238 return (strncmp ("3.14159", buf, 7));
13243 if ac_fn_c_try_run
"$LINENO"; then :
13244 gdb_cv_printf_has_long_double
=yes
13246 gdb_cv_printf_has_long_double
=no
13248 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13249 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
13254 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
13255 if test $gdb_cv_printf_has_long_double = yes; then
13257 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
13261 # Check if the compiler and runtime support scanning long doubles.
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
13264 $as_echo_n "checking for long double support in scanf... " >&6; }
13265 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
13266 $as_echo_n "(cached) " >&6
13268 if test "$cross_compiling" = yes; then :
13269 gdb_cv_scanf_has_long_double
=no
13271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13277 char *buf = "3.141592653";
13279 sscanf (buf, "%Lg", &f);
13280 return !(f > 3.14159 && f < 3.14160);
13285 if ac_fn_c_try_run
"$LINENO"; then :
13286 gdb_cv_scanf_has_long_double
=yes
13288 gdb_cv_scanf_has_long_double
=no
13290 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13291 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
13296 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
13297 if test $gdb_cv_scanf_has_long_double = yes; then
13299 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
13306 $as_echo_n "checking for -bbigtoc option... " >&6; }
13307 if test "${gdb_cv_bigtoc+set}" = set; then :
13308 $as_echo_n "(cached) " >&6
13311 SAVE_LDFLAGS
=$LDFLAGS
13314 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
13315 *) gdb_cv_bigtoc
=-bbigtoc ;;
13318 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
13319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13330 if ac_fn_c_try_link
"$LINENO"; then :
13335 rm -f core conftest.err conftest.
$ac_objext \
13336 conftest
$ac_exeext conftest.
$ac_ext
13337 LDFLAGS
="${SAVE_LDFLAGS}"
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
13341 $as_echo "$gdb_cv_bigtoc" >&6; }
13342 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
13347 $as_echo_n "checking for the dynamic export flag... " >&6; }
13349 if test "${gdb_native}" = yes; then
13350 # The dynamically loaded libthread_db needs access to symbols in the gdb
13351 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
13352 # may not be supported there.
13353 old_LDFLAGS
="$LDFLAGS"
13354 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
13355 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
13356 LDFLAGS
="$LDFLAGS $RDYNAMIC"
13357 if test "${have_libpython}" = no
; then
13358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13369 if ac_fn_c_try_link
"$LINENO"; then :
13372 rm -f core conftest.err conftest.
$ac_objext \
13373 conftest
$ac_exeext conftest.
$ac_ext
13375 # Workaround http://bugs.python.org/issue4434 where static
13376 # libpythonX.Y.a would get its symbols required for
13377 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
13378 # Problem does not happen for the recommended libpythonX.Y.so linkage.
13379 old_CFLAGS
="$CFLAGS"
13380 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
13382 LIBS
="$LIBS $PYTHON_LIBS"
13383 if test "$cross_compiling" = yes; then :
13386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13388 #include "${have_libpython}/Python.h"
13394 err = PyRun_SimpleString ("import itertools\n");
13396 return err == 0 ? 0 : 1;
13401 if ac_fn_c_try_run
"$LINENO"; then :
13404 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13405 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13409 CFLAGS
="$old_CFLAGS"
13411 LDFLAGS
="$old_LDFLAGS"
13413 if $dynamic_list; then
13414 found
="-Wl,--dynamic-list"
13415 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
13418 RDYNAMIC
="-rdynamic"
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13422 $as_echo "$found" >&6; }
13425 if test ${build} = ${host} -a ${host} = ${target} ; then
13428 # See if thread_db library is around for Solaris thread debugging.
13429 # Note that we must explicitly test for version 1 of the library
13430 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
13433 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
13434 if test -f /usr
/lib
/libthread_db.so
.1 ; then
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13436 $as_echo "yes" >&6; }
13438 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
13440 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
13441 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13443 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13444 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13445 $as_echo_n "(cached) " >&6
13447 ac_check_lib_save_LIBS
=$LIBS
13449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13452 /* Override any GCC internal prototype to avoid an error.
13453 Use char because int might match the return type of a GCC
13454 builtin and then its argument prototype would still apply. */
13467 if ac_fn_c_try_link
"$LINENO"; then :
13468 ac_cv_lib_dl_dlopen
=yes
13470 ac_cv_lib_dl_dlopen
=no
13472 rm -f core conftest.err conftest.
$ac_objext \
13473 conftest
$ac_exeext conftest.
$ac_ext
13474 LIBS
=$ac_check_lib_save_LIBS
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13477 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13478 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
13479 cat >>confdefs.h
<<_ACEOF
13480 #define HAVE_LIBDL 1
13487 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
13488 # Sun randomly tweaked the prototypes in <proc_service.h>
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
13491 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
13492 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13493 $as_echo_n "(cached) " >&6
13496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13499 #include <proc_service.h>
13500 ps_err_e ps_pdwrite
13501 (struct ps_prochandle*, psaddr_t, const void*, size_t);
13511 if ac_fn_c_try_compile
"$LINENO"; then :
13512 gdb_cv_proc_service_is_old
=no
13514 gdb_cv_proc_service_is_old
=yes
13516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13521 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13522 if test $gdb_cv_proc_service_is_old = yes; then
13524 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529 $as_echo "no" >&6; }
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13534 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13535 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13536 $as_echo_n "(cached) " >&6
13538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13540 #include <sys/pthdebug.h>
13544 #ifndef PTHDB_VERSION_3
13551 if ac_fn_c_try_compile
"$LINENO"; then :
13552 gdb_cv_have_aix_thread_debug
=yes
13554 gdb_cv_have_aix_thread_debug
=no
13556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13560 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13561 if test $gdb_cv_have_aix_thread_debug = yes; then
13562 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
13563 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
13564 LIBS
="$LIBS -lpthdebug"
13566 # Older versions of AIX do not provide the declaration for
13567 # the getthrds function (it appears that it was introduced
13569 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
13571 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
13577 cat >>confdefs.h
<<_ACEOF
13578 #define HAVE_DECL_GETTHRDS $ac_have_decl
13587 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13589 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13590 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13591 $as_echo_n "(cached) " >&6
13593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13595 #include <thread_db.h>
13599 int i = TD_NOTALLOC;
13604 if ac_fn_c_try_compile
"$LINENO"; then :
13605 gdb_cv_thread_db_h_has_td_notalloc
=yes
13607 gdb_cv_thread_db_h_has_td_notalloc
=no
13610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13614 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13616 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13617 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13618 $as_echo_n "(cached) " >&6
13620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622 #include <thread_db.h>
13626 int i = TD_VERSION;
13631 if ac_fn_c_try_compile
"$LINENO"; then :
13632 gdb_cv_thread_db_h_has_td_version
=yes
13634 gdb_cv_thread_db_h_has_td_version
=no
13637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
13641 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
13643 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
13644 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
13645 $as_echo_n "(cached) " >&6
13647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13649 #include <thread_db.h>
13658 if ac_fn_c_try_compile
"$LINENO"; then :
13659 gdb_cv_thread_db_h_has_td_notls
=yes
13661 gdb_cv_thread_db_h_has_td_notls
=no
13664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
13668 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
13670 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
13672 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
13675 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
13677 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
13680 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
13682 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
13686 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
13688 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
13689 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
13690 $as_echo_n "(cached) " >&6
13692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694 #include <sys/syscall.h>
13698 int i = __NR_tkill;
13703 if ac_fn_c_try_compile
"$LINENO"; then :
13704 gdb_cv_sys_syscall_h_has_tkill
=yes
13706 gdb_cv_sys_syscall_h_has_tkill
=no
13709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
13713 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
13715 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
13716 ac_fn_c_check_func
"$LINENO" "syscall" "ac_cv_func_syscall"
13717 if test "x$ac_cv_func_syscall" = x
""yes; then :
13719 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
13726 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13728 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
13734 cat >>confdefs.h
<<_ACEOF
13735 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13739 if test "$cross_compiling" = yes; then :
13740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13742 #include <sys/personality.h>
13747 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13748 # define ADDR_NO_RANDOMIZE 0x0040000
13750 /* Test the flag could be set and stays set. */
13751 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13752 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13758 if ac_fn_c_try_link
"$LINENO"; then :
13759 have_personality
=true
13761 have_personality
=false
13763 rm -f core conftest.err conftest.
$ac_objext \
13764 conftest
$ac_exeext conftest.
$ac_ext
13766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13768 #include <sys/personality.h>
13773 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13774 # define ADDR_NO_RANDOMIZE 0x0040000
13776 /* Test the flag could be set and stays set. */
13777 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13778 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13784 if ac_fn_c_try_run
"$LINENO"; then :
13785 have_personality
=true
13787 have_personality
=false
13789 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13790 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13793 if $have_personality
13796 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13809 cat >>confdefs.h
<<_ACEOF
13810 #define GDBINIT "$gdbinit"
13815 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
13816 # except that the argument to --with-sysroot is optional.
13817 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
13818 if test "x$with_sysroot" = xyes
; then
13819 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
13822 # Check whether --with-sysroot was given.
13823 if test "${with_sysroot+set}" = set; then :
13824 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
13826 TARGET_SYSTEM_ROOT
=
13830 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
13831 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13832 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
13833 ac_define_dir
=`eval echo $ac_define_dir`
13835 cat >>confdefs.h
<<_ACEOF
13836 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
13842 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13843 if test "x$prefix" = xNONE
; then
13844 test_prefix
=/usr
/local
13846 test_prefix
=$prefix
13849 test_prefix
=$exec_prefix
13852 case ${ac_define_dir} in
13853 "${test_prefix}"|
"${test_prefix}/"*|\
13854 '${exec_prefix}'|
'${exec_prefix}/'*)
13859 cat >>confdefs.h
<<_ACEOF
13860 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
13867 # Check whether --with-system-gdbinit was given.
13868 if test "${with_system_gdbinit+set}" = set; then :
13869 withval
=$with_system_gdbinit;
13870 SYSTEM_GDBINIT
=$withval
13876 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
13877 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13878 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
13879 ac_define_dir
=`eval echo $ac_define_dir`
13881 cat >>confdefs.h
<<_ACEOF
13882 #define SYSTEM_GDBINIT "$ac_define_dir"
13888 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13889 if test "x$prefix" = xNONE
; then
13890 test_prefix
=/usr
/local
13892 test_prefix
=$prefix
13895 test_prefix
=$exec_prefix
13898 case ${ac_define_dir} in
13899 "${test_prefix}"|
"${test_prefix}/"*|\
13900 '${exec_prefix}'|
'${exec_prefix}/'*)
13905 cat >>confdefs.h
<<_ACEOF
13906 #define SYSTEM_GDBINIT_RELOCATABLE $value
13912 # Check whether --enable-werror was given.
13913 if test "${enable_werror+set}" = set; then :
13914 enableval
=$enable_werror; case "${enableval}" in
13915 yes | y
) ERROR_ON_WARNING
="yes" ;;
13916 no | n
) ERROR_ON_WARNING
="no" ;;
13917 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13922 # Enable -Werror by default when using gcc in C mode. Leave it off
13923 # for C++ until we're warning clean. Turn it off for releases.
13924 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
13925 && test x
"$enable_build_with_cxx" != x
"yes" \
13926 && $development; then
13927 ERROR_ON_WARNING
=yes
13931 if test "${ERROR_ON_WARNING}" = yes ; then
13932 WERROR_CFLAGS
="-Werror"
13935 # These options work in either C or C++ modes.
13936 build_warnings
="-Wall -Wpointer-arith \
13937 -Wno-unused -Wunused-value -Wunused-function \
13938 -Wno-switch -Wno-char-subscripts \
13941 # Now add in C and C++ specific options, depending on mode.
13942 if test "$enable_build_with_cxx" = "yes"; then
13943 build_warnings
="$build_warnings -Wno-sign-compare -Wno-write-strings \
13946 build_warnings
="$build_warnings -Wpointer-sign -Wmissing-prototypes \
13947 -Wdeclaration-after-statement -Wmissing-parameter-type \
13948 -Wold-style-declaration -Wold-style-definition"
13951 # Enable -Wno-format by default when using gcc on mingw since many
13952 # GCC versions complain about %I64.
13954 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
13955 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
13958 # Check whether --enable-build-warnings was given.
13959 if test "${enable_build_warnings+set}" = set; then :
13960 enableval
=$enable_build_warnings; case "${enableval}" in
13962 no
) build_warnings
="-w";;
13963 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13964 build_warnings
="${build_warnings} ${t}";;
13965 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13966 build_warnings
="${t} ${build_warnings}";;
13967 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13969 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13970 echo "Setting compiler warning flags = $build_warnings" 6>&1
13973 # Check whether --enable-gdb-build-warnings was given.
13974 if test "${enable_gdb_build_warnings+set}" = set; then :
13975 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
13977 no
) build_warnings
="-w";;
13978 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13979 build_warnings
="${build_warnings} ${t}";;
13980 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13981 build_warnings
="${t} ${build_warnings}";;
13982 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13984 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13985 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13989 # The set of warnings supported by a C++ compiler is not the same as
13990 # of the C compiler.
13991 if test "$enable_build_with_cxx" = "yes"; then
13993 ac_cpp
='$CXXCPP $CPPFLAGS'
13994 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13995 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13996 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14001 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14004 $as_echo_n "checking compiler warning flags... " >&6; }
14005 # Separate out the -Werror flag as some files just cannot be
14006 # compiled with it enabled.
14007 for w
in ${build_warnings}; do
14009 -Werr*) WERROR_CFLAGS
=-Werror ;;
14011 # Check whether GCC accepts it.
14012 saved_CFLAGS
="$CFLAGS"
14013 CFLAGS
="$CFLAGS $w"
14014 saved_CXXFLAGS
="$CXXFLAGS"
14015 CXXFLAGS
="$CXXFLAGS $w"
14016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14027 if ac_fn_cxx_try_compile
"$LINENO"; then :
14028 WARN_CFLAGS
="${WARN_CFLAGS} $w"
14030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14031 CFLAGS
="$saved_CFLAGS"
14032 CXXFLAGS
="$saved_CXXFLAGS"
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14036 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14041 if test "$enable_build_with_cxx" = "yes"; then
14043 ac_cpp='$CPP $CPPFLAGS'
14044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14050 # In the Cygwin environment, we need some additional flags.
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
14052 $as_echo_n "checking
for cygwin...
" >&6; }
14053 if test "${gdb_cv_os_cygwin+set}" = set; then :
14054 $as_echo_n "(cached
) " >&6
14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057 /* end confdefs.h. */
14059 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14063 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14064 $EGREP "^lose$
" >/dev/null 2>&1; then :
14065 gdb_cv_os_cygwin=yes
14067 gdb_cv_os_cygwin=no
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
14073 $as_echo "$gdb_cv_os_cygwin" >&6; }
14076 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
14078 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14079 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14080 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
14084 # libreadline needs libuser32.a in a cygwin environment
14086 if test x$gdb_cv_os_cygwin = xyes; then
14087 WIN32LIBS="-luser32"
14088 case "${target}" in
14089 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14094 # The ser-tcp.c module requires sockets.
14098 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14100 WIN32LIBS
="$WIN32LIBS -lws2_32"
14105 # Add ELF support to GDB, but only if BFD includes ELF support.
14108 OLD_LDFLAGS
=$LDFLAGS
14110 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14111 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14112 # always want our bfd.
14113 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14114 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14115 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14116 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14117 LIBS
="-lbfd -liberty -lz $intl $LIBS"
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14119 $as_echo_n "checking for ELF support in BFD... " >&6; }
14120 if test "${gdb_cv_var_elf+set}" = set; then :
14121 $as_echo_n "(cached) " >&6
14123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14124 /* end confdefs.h. */
14125 #include <stdlib.h>
14127 #include "elf-bfd.h"
14132 return bfd_get_elf_phdr_upper_bound (NULL);
14137 if ac_fn_c_try_link
"$LINENO"; then :
14142 rm -f core conftest.err conftest.
$ac_objext \
14143 conftest
$ac_exeext conftest.
$ac_ext
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14146 $as_echo "$gdb_cv_var_elf" >&6; }
14148 LDFLAGS
=$OLD_LDFLAGS
14150 if test $gdb_cv_var_elf = yes; then
14151 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
14153 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14155 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14156 if test "$plugins" = "yes"; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14158 $as_echo_n "checking for library containing dlopen... " >&6; }
14159 if test "${ac_cv_search_dlopen+set}" = set; then :
14160 $as_echo_n "(cached) " >&6
14162 ac_func_search_save_LIBS
=$LIBS
14163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14166 /* Override any GCC internal prototype to avoid an error.
14167 Use char because int might match the return type of a GCC
14168 builtin and then its argument prototype would still apply. */
14181 for ac_lib
in '' dl
; do
14182 if test -z "$ac_lib"; then
14183 ac_res
="none required"
14186 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14188 if ac_fn_c_try_link
"$LINENO"; then :
14189 ac_cv_search_dlopen
=$ac_res
14191 rm -f core conftest.err conftest.
$ac_objext \
14193 if test "${ac_cv_search_dlopen+set}" = set; then :
14197 if test "${ac_cv_search_dlopen+set}" = set; then :
14200 ac_cv_search_dlopen
=no
14202 rm conftest.
$ac_ext
14203 LIBS
=$ac_func_search_save_LIBS
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14206 $as_echo "$ac_cv_search_dlopen" >&6; }
14207 ac_res
=$ac_cv_search_dlopen
14208 if test "$ac_res" != no
; then :
14209 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14216 # Add macho support to GDB, but only if BFD includes it.
14219 OLD_LDFLAGS
=$LDFLAGS
14221 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14222 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14223 # always want our bfd.
14224 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14225 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14226 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14227 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14228 LIBS
="-lbfd -liberty -lz $intl $LIBS"
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
14230 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
14231 if test "${gdb_cv_var_macho+set}" = set; then :
14232 $as_echo_n "(cached) " >&6
14234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14236 #include <stdlib.h>
14238 #include "mach-o.h"
14243 return bfd_mach_o_lookup_command (NULL, 0, NULL);
14248 if ac_fn_c_try_link
"$LINENO"; then :
14249 gdb_cv_var_macho
=yes
14251 gdb_cv_var_macho
=no
14253 rm -f core conftest.err conftest.
$ac_objext \
14254 conftest
$ac_exeext conftest.
$ac_ext
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
14257 $as_echo "$gdb_cv_var_macho" >&6; }
14259 LDFLAGS
=$OLD_LDFLAGS
14261 if test $gdb_cv_var_macho = yes; then
14262 CONFIG_OBS
="$CONFIG_OBS machoread.o"
14265 # Add any host-specific objects to GDB.
14266 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
14268 # If building on ELF, look for lzma support for embedded compressed debug info.
14269 if test $gdb_cv_var_elf = yes; then
14271 # Check whether --with-lzma was given.
14272 if test "${with_lzma+set}" = set; then :
14273 withval
=$with_lzma;
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
14279 $as_echo_n "checking whether to use lzma... " >&6; }
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
14281 $as_echo "$with_lzma" >&6; }
14283 if test "${with_lzma}" != no
; then
14294 acl_save_prefix
="$prefix"
14295 prefix
="$acl_final_prefix"
14296 acl_save_exec_prefix
="$exec_prefix"
14297 exec_prefix
="$acl_final_exec_prefix"
14299 eval additional_includedir
=\"$includedir\"
14300 eval additional_libdir
=\"$libdir\"
14302 exec_prefix
="$acl_save_exec_prefix"
14303 prefix
="$acl_save_prefix"
14306 # Check whether --with-liblzma-prefix was given.
14307 if test "${with_liblzma_prefix+set}" = set; then :
14308 withval
=$with_liblzma_prefix;
14309 if test "X$withval" = "Xno"; then
14312 if test "X$withval" = "X"; then
14314 acl_save_prefix
="$prefix"
14315 prefix
="$acl_final_prefix"
14316 acl_save_exec_prefix
="$exec_prefix"
14317 exec_prefix
="$acl_final_exec_prefix"
14319 eval additional_includedir
=\"$includedir\"
14320 eval additional_libdir
=\"$libdir\"
14322 exec_prefix
="$acl_save_exec_prefix"
14323 prefix
="$acl_save_prefix"
14326 additional_includedir
="$withval/include"
14327 additional_libdir
="$withval/lib"
14338 names_already_handled
=
14339 names_next_round
='lzma '
14340 while test -n "$names_next_round"; do
14341 names_this_round
="$names_next_round"
14343 for name
in $names_this_round; do
14345 for n
in $names_already_handled; do
14346 if test "$n" = "$name"; then
14347 already_handled
=yes
14351 if test -z "$already_handled"; then
14352 names_already_handled
="$names_already_handled $name"
14353 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14354 eval value
=\"\
$HAVE_LIB$uppername\"
14355 if test -n "$value"; then
14356 if test "$value" = yes; then
14357 eval value
=\"\
$LIB$uppername\"
14358 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
14359 eval value
=\"\
$LTLIB$uppername\"
14360 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
14369 if test $use_additional = yes; then
14370 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14371 found_dir
="$additional_libdir"
14372 found_so
="$additional_libdir/lib$name.$shlibext"
14373 if test -f "$additional_libdir/lib$name.la"; then
14374 found_la
="$additional_libdir/lib$name.la"
14377 if test -f "$additional_libdir/lib$name.$libext"; then
14378 found_dir
="$additional_libdir"
14379 found_a
="$additional_libdir/lib$name.$libext"
14380 if test -f "$additional_libdir/lib$name.la"; then
14381 found_la
="$additional_libdir/lib$name.la"
14386 if test "X$found_dir" = "X"; then
14387 for x
in $LDFLAGS $LTLIBLZMA; do
14389 acl_save_prefix
="$prefix"
14390 prefix
="$acl_final_prefix"
14391 acl_save_exec_prefix
="$exec_prefix"
14392 exec_prefix
="$acl_final_exec_prefix"
14394 exec_prefix
="$acl_save_exec_prefix"
14395 prefix
="$acl_save_prefix"
14399 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14400 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14402 found_so
="$dir/lib$name.$shlibext"
14403 if test -f "$dir/lib$name.la"; then
14404 found_la
="$dir/lib$name.la"
14407 if test -f "$dir/lib$name.$libext"; then
14409 found_a
="$dir/lib$name.$libext"
14410 if test -f "$dir/lib$name.la"; then
14411 found_la
="$dir/lib$name.la"
14417 if test "X$found_dir" != "X"; then
14422 if test "X$found_dir" != "X"; then
14423 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
14424 if test "X$found_so" != "X"; then
14425 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14426 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14429 for x
in $ltrpathdirs; do
14430 if test "X$x" = "X$found_dir"; then
14435 if test -z "$haveit"; then
14436 ltrpathdirs
="$ltrpathdirs $found_dir"
14438 if test "$hardcode_direct" = yes; then
14439 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14441 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14442 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14444 for x
in $rpathdirs; do
14445 if test "X$x" = "X$found_dir"; then
14450 if test -z "$haveit"; then
14451 rpathdirs
="$rpathdirs $found_dir"
14455 for x
in $LDFLAGS $LIBLZMA; do
14457 acl_save_prefix
="$prefix"
14458 prefix
="$acl_final_prefix"
14459 acl_save_exec_prefix
="$exec_prefix"
14460 exec_prefix
="$acl_final_exec_prefix"
14462 exec_prefix
="$acl_save_exec_prefix"
14463 prefix
="$acl_save_prefix"
14465 if test "X$x" = "X-L$found_dir"; then
14470 if test -z "$haveit"; then
14471 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
14473 if test "$hardcode_minus_L" != no
; then
14474 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14476 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
14482 if test "X$found_a" != "X"; then
14483 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
14485 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
14488 additional_includedir
=
14489 case "$found_dir" in
14491 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14492 additional_includedir
="$basedir/include"
14495 if test "X$additional_includedir" != "X"; then
14496 if test "X$additional_includedir" != "X/usr/include"; then
14498 if test "X$additional_includedir" = "X/usr/local/include"; then
14499 if test -n "$GCC"; then
14501 linux
*) haveit
=yes;;
14505 if test -z "$haveit"; then
14506 for x
in $CPPFLAGS $INCLZMA; do
14508 acl_save_prefix
="$prefix"
14509 prefix
="$acl_final_prefix"
14510 acl_save_exec_prefix
="$exec_prefix"
14511 exec_prefix
="$acl_final_exec_prefix"
14513 exec_prefix
="$acl_save_exec_prefix"
14514 prefix
="$acl_save_prefix"
14516 if test "X$x" = "X-I$additional_includedir"; then
14521 if test -z "$haveit"; then
14522 if test -d "$additional_includedir"; then
14523 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
14529 if test -n "$found_la"; then
14530 save_libdir
="$libdir"
14531 case "$found_la" in
14532 */* |
*\\*) .
"$found_la" ;;
14533 *) .
"./$found_la" ;;
14535 libdir
="$save_libdir"
14536 for dep
in $dependency_libs; do
14539 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14540 if test "X$additional_libdir" != "X/usr/lib"; then
14542 if test "X$additional_libdir" = "X/usr/local/lib"; then
14543 if test -n "$GCC"; then
14545 linux
*) haveit
=yes;;
14549 if test -z "$haveit"; then
14551 for x
in $LDFLAGS $LIBLZMA; do
14553 acl_save_prefix
="$prefix"
14554 prefix
="$acl_final_prefix"
14555 acl_save_exec_prefix
="$exec_prefix"
14556 exec_prefix
="$acl_final_exec_prefix"
14558 exec_prefix
="$acl_save_exec_prefix"
14559 prefix
="$acl_save_prefix"
14561 if test "X$x" = "X-L$additional_libdir"; then
14566 if test -z "$haveit"; then
14567 if test -d "$additional_libdir"; then
14568 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
14572 for x
in $LDFLAGS $LTLIBLZMA; do
14574 acl_save_prefix
="$prefix"
14575 prefix
="$acl_final_prefix"
14576 acl_save_exec_prefix
="$exec_prefix"
14577 exec_prefix
="$acl_final_exec_prefix"
14579 exec_prefix
="$acl_save_exec_prefix"
14580 prefix
="$acl_save_prefix"
14582 if test "X$x" = "X-L$additional_libdir"; then
14587 if test -z "$haveit"; then
14588 if test -d "$additional_libdir"; then
14589 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14596 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14597 if test "$enable_rpath" != no
; then
14599 for x
in $rpathdirs; do
14600 if test "X$x" = "X$dir"; then
14605 if test -z "$haveit"; then
14606 rpathdirs
="$rpathdirs $dir"
14609 for x
in $ltrpathdirs; do
14610 if test "X$x" = "X$dir"; then
14615 if test -z "$haveit"; then
14616 ltrpathdirs
="$ltrpathdirs $dir"
14621 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14624 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14627 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
14628 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
14634 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
14635 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
14641 if test "X$rpathdirs" != "X"; then
14642 if test -n "$hardcode_libdir_separator"; then
14644 for found_dir
in $rpathdirs; do
14645 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14647 acl_save_libdir
="$libdir"
14649 eval flag
=\"$hardcode_libdir_flag_spec\"
14650 libdir
="$acl_save_libdir"
14651 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
14653 for found_dir
in $rpathdirs; do
14654 acl_save_libdir
="$libdir"
14655 libdir
="$found_dir"
14656 eval flag
=\"$hardcode_libdir_flag_spec\"
14657 libdir
="$acl_save_libdir"
14658 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
14662 if test "X$ltrpathdirs" != "X"; then
14663 for found_dir
in $ltrpathdirs; do
14664 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
14669 ac_save_CPPFLAGS
="$CPPFLAGS"
14671 for element
in $INCLZMA; do
14673 for x
in $CPPFLAGS; do
14675 acl_save_prefix
="$prefix"
14676 prefix
="$acl_final_prefix"
14677 acl_save_exec_prefix
="$exec_prefix"
14678 exec_prefix
="$acl_final_exec_prefix"
14680 exec_prefix
="$acl_save_exec_prefix"
14681 prefix
="$acl_save_prefix"
14683 if test "X$x" = "X$element"; then
14688 if test -z "$haveit"; then
14689 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
14695 $as_echo_n "checking for liblzma... " >&6; }
14696 if test "${ac_cv_liblzma+set}" = set; then :
14697 $as_echo_n "(cached) " >&6
14700 ac_save_LIBS
="$LIBS"
14701 LIBS
="$LIBS $LIBLZMA"
14702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14703 /* end confdefs.h. */
14708 lzma_index_iter iter;
14709 lzma_index_iter_init (&iter, 0);
14710 lzma_mf_is_supported (LZMA_MF_HC3);
14715 if ac_fn_c_try_link
"$LINENO"; then :
14720 rm -f core conftest.err conftest.
$ac_objext \
14721 conftest
$ac_exeext conftest.
$ac_ext
14722 LIBS
="$ac_save_LIBS"
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
14726 $as_echo "$ac_cv_liblzma" >&6; }
14727 if test "$ac_cv_liblzma" = yes; then
14730 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
14733 $as_echo_n "checking how to link with liblzma... " >&6; }
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
14735 $as_echo "$LIBLZMA" >&6; }
14738 CPPFLAGS
="$ac_save_CPPFLAGS"
14748 if test "$HAVE_LIBLZMA" != yes; then
14749 if test "$with_lzma" = yes; then
14750 as_fn_error
"missing liblzma for --with-lzma" "$LINENO" 5
14756 LIBGUI
="../libgui/src/libgui.a"
14757 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
14766 *-*-cygwin* |
*-*-mingw* )
14775 if test "${enable_gdbtk}" = "yes"; then
14777 # Gdbtk must have an absolute path to srcdir in order to run
14778 # properly when not installed.
14781 GDBTK_SRC_DIR
=`pwd`
14786 # Ok, lets find the tcl configuration
14787 # First, look for one uninstalled.
14788 # the alternative search directory is invoked by --with-tcl
14791 if test x
"${no_tcl}" = x
; then
14792 # we reset no_tcl in case something fails here
14795 # Check whether --with-tcl was given.
14796 if test "${with_tcl+set}" = set; then :
14797 withval
=$with_tcl; with_tclconfig
=${withval}
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14801 $as_echo_n "checking for Tcl configuration... " >&6; }
14802 if test "${ac_cv_c_tclconfig+set}" = set; then :
14803 $as_echo_n "(cached) " >&6
14807 # First check to see if --with-tcl was specified.
14809 *-*-cygwin*) platDir
="win" ;;
14810 *) platDir
="unix" ;;
14812 if test x
"${with_tclconfig}" != x
; then
14813 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14814 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
14816 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14820 # then check for a private Tcl installation
14821 if test x
"${ac_cv_c_tclconfig}" = x
; then
14824 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14825 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14826 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14828 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14829 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14830 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14832 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14833 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14834 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14835 if test -f "$i/$platDir/tclConfig.sh" ; then
14836 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14842 # on Darwin, check in Framework installation locations
14843 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
14844 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14845 `ls -d /Library/Frameworks 2>/dev/null` \
14846 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14847 `ls -d /System/Library/Frameworks 2>/dev/null` \
14849 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14850 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
14856 # check in a few common install locations
14857 if test x
"${ac_cv_c_tclconfig}" = x
; then
14858 for i
in `ls -d ${libdir} 2>/dev/null` \
14859 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14860 `ls -d ${prefix}/lib 2>/dev/null` \
14861 `ls -d /usr/local/lib 2>/dev/null` \
14862 `ls -d /usr/contrib/lib 2>/dev/null` \
14863 `ls -d /usr/lib 2>/dev/null` \
14865 if test -f "$i/tclConfig.sh" ; then
14866 ac_cv_c_tclconfig
=`(cd $i; pwd)`
14872 # check in a few other private locations
14873 if test x
"${ac_cv_c_tclconfig}" = x
; then
14876 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14877 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14878 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14879 if test -f "$i/$platDir/tclConfig.sh" ; then
14880 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14889 if test x
"${ac_cv_c_tclconfig}" = x
; then
14890 TCL_BIN_DIR
="# no Tcl configs found"
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14892 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14895 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14897 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14902 # If $no_tk is nonempty, then we can't do Tk, and there is no
14903 # point to doing Tcl.
14906 # Ok, lets find the tk configuration
14907 # First, look for one uninstalled.
14908 # the alternative search directory is invoked by --with-tk
14911 if test x
"${no_tk}" = x
; then
14912 # we reset no_tk in case something fails here
14915 # Check whether --with-tk was given.
14916 if test "${with_tk+set}" = set; then :
14917 withval
=$with_tk; with_tkconfig
=${withval}
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14921 $as_echo_n "checking for Tk configuration... " >&6; }
14922 if test "${ac_cv_c_tkconfig+set}" = set; then :
14923 $as_echo_n "(cached) " >&6
14927 # First check to see if --with-tkconfig was specified.
14928 if test x
"${with_tkconfig}" != x
; then
14929 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14930 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
14932 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14936 # then check for a private Tk library
14938 *-*-cygwin*) platDir
="win" ;;
14939 *) platDir
="unix" ;;
14941 if test x
"${ac_cv_c_tkconfig}" = x
; then
14944 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14945 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14946 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14948 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14949 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14950 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14952 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14953 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14954 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14955 if test -f "$i/$platDir/tkConfig.sh" ; then
14956 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
14962 # on Darwin, check in Framework installation locations
14963 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
14964 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14965 `ls -d /Library/Frameworks 2>/dev/null` \
14966 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14967 `ls -d /System/Library/Frameworks 2>/dev/null` \
14969 if test -f "$i/Tk.framework/tkConfig.sh" ; then
14970 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
14976 # check in a few common install locations
14977 if test x
"${ac_cv_c_tkconfig}" = x
; then
14978 for i
in `ls -d ${libdir} 2>/dev/null` \
14979 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14980 `ls -d ${prefix}/lib 2>/dev/null` \
14981 `ls -d /usr/local/lib 2>/dev/null` \
14982 `ls -d /usr/contrib/lib 2>/dev/null` \
14983 `ls -d /usr/lib 2>/dev/null` \
14985 if test -f "$i/tkConfig.sh" ; then
14986 ac_cv_c_tkconfig
=`(cd $i; pwd)`
14991 # check in a few other private locations
14992 if test x
"${ac_cv_c_tkconfig}" = x
; then
14995 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14996 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14997 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14998 if test -f "$i/$platDir/tkConfig.sh" ; then
14999 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15008 if test x
"${ac_cv_c_tkconfig}" = x
; then
15009 TK_BIN_DIR
="# no Tk configs found"
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15011 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15014 TK_BIN_DIR
=${ac_cv_c_tkconfig}
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15016 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15021 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15024 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15026 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15028 $as_echo "loading" >&6; }
15029 .
${TCL_BIN_DIR}/tclConfig.sh
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15032 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15035 # eval is required to do the TCL_DBGX substitution
15036 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15037 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15039 # If the TCL_BIN_DIR is the build directory (not the install directory),
15040 # then set the common variable name to the value of the build variables.
15041 # For example, the variable TCL_LIB_SPEC will be set to the value
15042 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15043 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15044 # installed and uninstalled version of Tcl.
15045 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15046 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
15047 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
15048 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
15049 elif test "`uname -s`" = "Darwin"; then
15050 # If Tcl was built as a framework, attempt to use the libraries
15051 # from the framework at the given location so that linking works
15052 # against Tcl.framework installed in an arbitrary location.
15053 case ${TCL_DEFS} in
15055 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15056 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
15057 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15058 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15059 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15064 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15065 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15066 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15072 # eval is required to do the TCL_DBGX substitution
15073 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15074 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15075 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15076 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15092 # Check for in-tree tcl
15099 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15103 # Find Tcl private headers
15104 if test x
"${intree}" = xno
; then
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15107 $as_echo_n "checking for Tcl private headers... " >&6; }
15109 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15110 if test -f ${dir}/tclInt.h
; then
15114 if test x
"${private_dir}" = x
; then
15115 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
15117 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15119 $as_echo "${private_dir}" >&6; }
15122 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15123 TCL_LIBRARY
="${TCL_LIB_SPEC}"
15126 # If building tcl in the same src tree, private headers
15127 # are not needed, but we need to be sure to use the right
15129 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
15130 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
15131 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15139 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15141 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15143 $as_echo "loading" >&6; }
15144 .
${TK_BIN_DIR}/tkConfig.sh
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15147 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15150 # eval is required to do the TK_DBGX substitution
15151 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15152 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15154 # If the TK_BIN_DIR is the build directory (not the install directory),
15155 # then set the common variable name to the value of the build variables.
15156 # For example, the variable TK_LIB_SPEC will be set to the value
15157 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15158 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15159 # installed and uninstalled version of Tcl.
15160 if test -f "${TK_BIN_DIR}/Makefile" ; then
15161 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
15162 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
15163 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
15164 elif test "`uname -s`" = "Darwin"; then
15165 # If Tk was built as a framework, attempt to use the libraries
15166 # from the framework at the given location so that linking works
15167 # against Tk.framework installed in an arbitrary location.
15170 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15171 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
15172 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15173 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15174 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15179 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15180 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15181 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15187 # eval is required to do the TK_DBGX substitution
15188 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15189 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15190 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15191 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15206 # Check for in-tree Tk
15208 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15212 # Find Tk private headers
15213 if test x
"${intree}" = xno
; then
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15216 $as_echo_n "checking for Tk private headers... " >&6; }
15218 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15219 if test -f ${dir}/tkInt.h
; then
15223 if test x
"${private_dir}" = x
; then
15224 as_fn_error
"could not find Tk private headers" "$LINENO" 5
15226 TK_PRIVATE_INCLUDE
="-I${private_dir}"
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15228 $as_echo "${private_dir}" >&6; }
15231 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15232 TK_LIBRARY
=${TK_LIB_SPEC}
15235 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
15236 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
15237 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
15244 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15246 # Include some libraries that Tcl and Tk want.
15247 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15248 # Yes, the ordering seems wrong here. But it isn't.
15249 # TK_LIBS is the list of libraries that need to be linked
15250 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15251 # were in LIBS then any link tests after this point would
15252 # try to include things like `$(LIBGUI)', which wouldn't work.
15253 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
15255 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15256 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15257 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15258 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
15259 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
15260 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
15261 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
15263 if test x
$gdb_cv_os_cygwin = xyes
; then
15264 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15265 WIN32LDAPP
="-Wl,--subsystem,console"
15266 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
15269 subdirs
="$subdirs gdbtk"
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15282 $as_echo_n "checking for X... " >&6; }
15285 # Check whether --with-x was given.
15286 if test "${with_x+set}" = set; then :
15290 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15291 if test "x$with_x" = xno
; then
15292 # The user explicitly disabled X.
15295 case $x_includes,$x_libraries in #(
15296 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
15297 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
15298 $as_echo_n "(cached) " >&6
15300 # One or both of the vars are not set, and there is no cached value.
15301 ac_x_includes
=no ac_x_libraries
=no
15302 rm -f -r conftest.dir
15303 if mkdir conftest.dir
; then
15305 cat >Imakefile
<<'_ACEOF'
15307 @echo incroot='${INCROOT}'
15309 @echo usrlibdir='${USRLIBDIR}'
15311 @echo libdir='${LIBDIR}'
15313 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15314 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15315 for ac_var
in incroot usrlibdir libdir
; do
15316 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15318 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15319 for ac_extension
in a so sl dylib la dll
; do
15320 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15321 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15322 ac_im_usrlibdir
=$ac_im_libdir; break
15325 # Screen out bogus values from the imake configuration. They are
15326 # bogus both because they are the default anyway, and because
15327 # using them would break gcc on systems where it needs fixed includes.
15328 case $ac_im_incroot in
15329 /usr
/include
) ac_x_includes
= ;;
15330 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15332 case $ac_im_usrlibdir in
15333 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15334 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15338 rm -f -r conftest.dir
15341 # Standard set of common directories for X headers.
15342 # Check X11 before X11Rn because it is often a symlink to the current release.
15356 /usr/local/X11/include
15357 /usr/local/X11R7/include
15358 /usr/local/X11R6/include
15359 /usr/local/X11R5/include
15360 /usr/local/X11R4/include
15362 /usr/local/include/X11
15363 /usr/local/include/X11R7
15364 /usr/local/include/X11R6
15365 /usr/local/include/X11R5
15366 /usr/local/include/X11R4
15370 /usr/XFree86/include/X11
15374 /usr/unsupported/include
15375 /usr/athena/include
15376 /usr/local/x11r5/include
15377 /usr/lpp/Xamples/include
15379 /usr/openwin/include
15380 /usr/openwin/share/include'
15382 if test "$ac_x_includes" = no
; then
15383 # Guess where to find include files, by looking for Xlib.h.
15384 # First, try using that file with no special directory specified.
15385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15386 /* end confdefs.h. */
15387 #include <X11/Xlib.h>
15389 if ac_fn_c_try_cpp
"$LINENO"; then :
15390 # We can compile using X headers with no special include directory.
15393 for ac_dir
in $ac_x_header_dirs; do
15394 if test -r "$ac_dir/X11/Xlib.h"; then
15395 ac_x_includes
=$ac_dir
15400 rm -f conftest.err conftest.
$ac_ext
15401 fi # $ac_x_includes = no
15403 if test "$ac_x_libraries" = no
; then
15404 # Check for the libraries.
15405 # See if we find them without any special options.
15406 # Don't add to $LIBS permanently.
15409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411 #include <X11/Xlib.h>
15420 if ac_fn_c_try_link
"$LINENO"; then :
15422 # We can link X programs with no special library path.
15426 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15428 # Don't even attempt the hair of trying to link an X program!
15429 for ac_extension
in a so sl dylib la dll
; do
15430 if test -r "$ac_dir/libX11.$ac_extension"; then
15431 ac_x_libraries
=$ac_dir
15437 rm -f core conftest.err conftest.
$ac_objext \
15438 conftest
$ac_exeext conftest.
$ac_ext
15439 fi # $ac_x_libraries = no
15441 case $ac_x_includes,$ac_x_libraries in #(
15442 no
,* |
*,no |
*\'*)
15443 # Didn't find X, or a directory has "'" in its name.
15444 ac_cv_have_x
="have_x=no";; #(
15446 # Record where we found X for the cache.
15447 ac_cv_have_x
="have_x=yes\
15448 ac_x_includes='$ac_x_includes'\
15449 ac_x_libraries='$ac_x_libraries'"
15455 eval "$ac_cv_have_x"
15458 if test "$have_x" != yes; then
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15460 $as_echo "$have_x" >&6; }
15463 # If each of the values was on the command line, it overrides each guess.
15464 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15465 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15466 # Update the cache value to reflect the command line values.
15467 ac_cv_have_x
="have_x=yes\
15468 ac_x_includes='$x_includes'\
15469 ac_x_libraries='$x_libraries'"
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15471 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15475 # Unlike the sim directory, whether a simulator is linked is controlled by
15476 # presence of a gdb_sim definition in the target configure.tgt entry.
15477 # This code just checks for a few cases where we'd like to ignore those
15478 # definitions, even when they're present in the '.mt' file. These cases
15479 # are when --disable-sim is specified, or if the simulator directory is
15480 # not part of the source tree.
15482 # Check whether --enable-sim was given.
15483 if test "${enable_sim+set}" = set; then :
15484 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
15485 echo "enableval = ${enableval}";
15486 case "${enableval}" in
15487 yes) ignore_sim
=false
;;
15488 no
) ignore_sim
=true
;;
15489 *) ignore_sim
=false
;;
15496 if test ! -d "${srcdir}/../sim"; then
15502 if test "${ignore_sim}" = "false"; then
15503 if test x
"${gdb_sim}" != x
; then
15505 SIM_OBS
="remote-sim.o"
15507 $as_echo "#define WITH_SIM 1" >>confdefs.h
15525 # List of host floatformats.
15527 cat >>confdefs.h
<<_ACEOF
15528 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15532 cat >>confdefs.h
<<_ACEOF
15533 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15537 cat >>confdefs.h
<<_ACEOF
15538 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15542 # target_subdir is used by the testsuite to find the target libraries.
15544 if test "${host}" != "${target}"; then
15545 target_subdir
="${target_alias}/"
15550 if test "${gdb_native}" = "yes"; then
15551 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15552 if test ! -f ${host_makefile_frag}; then
15553 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15555 frags
="$frags $host_makefile_frag"
15557 host_makefile_frag
=/dev
/null
15563 if test "${gdb_native}" = "yes"; then
15564 # We pick this up from the host configuration file (.mh) because we
15565 # do not have a native configuration Makefile fragment.
15566 nativefile
=`sed -n '
15567 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15568 ' ${host_makefile_frag}`
15572 if test x
"${gdb_osabi}" != x
; then
15574 cat >>confdefs.h
<<_ACEOF
15575 #define GDB_OSABI_DEFAULT $gdb_osabi
15580 # Enable multi-ice-gdb-server.
15581 # Check whether --enable-multi-ice was given.
15582 if test "${enable_multi_ice+set}" = set; then :
15583 enableval
=$enable_multi_ice; case $enableval in
15586 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15590 if test "x$enable_multi_ice" = xyes
; then
15591 subdirs
="$subdirs multi-ice"
15595 # Check whether --enable-gdbserver was given.
15596 if test "${enable_gdbserver+set}" = set; then :
15597 enableval
=$enable_gdbserver; case "${enableval}" in
15599 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15602 enable_gdbserver
=auto
15606 # We only build gdbserver automatically in a native configuration, and
15607 # only if the user did not explicitly disable its build.
15608 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15610 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15611 if test "x$build_gdbserver" = xyes
; then
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15613 $as_echo "yes" >&6; }
15614 subdirs
="$subdirs gdbserver"
15616 gdbserver_build_enabled
=yes
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15619 $as_echo "no" >&6; }
15623 # If the user explicitly request the gdbserver to be built, verify that
15624 # we were in fact able to enable it.
15625 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15626 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15629 # Check for babeltrace and babeltrace-ctf
15631 # Check whether --with-babeltrace was given.
15632 if test "${with_babeltrace+set}" = set; then :
15633 withval
=$with_babeltrace;
15635 with_babeltrace
=auto
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
15639 $as_echo_n "checking whether to use babeltrace... " >&6; }
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
15641 $as_echo "$with_babeltrace" >&6; }
15643 if test "x$with_babeltrace" = "xno"; then
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
15645 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
15647 # Append -Werror to CFLAGS so that configure can catch the warning
15648 # "assignment from incompatible pointer type", which is related to
15649 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
15650 # in GDB, while babeltrace 1.0.3 is broken.
15651 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
15652 # safe to save and restore CFLAGS here.
15653 saved_CFLAGS
=$CFLAGS
15654 CFLAGS
="$CFLAGS -Werror"
15665 acl_save_prefix
="$prefix"
15666 prefix
="$acl_final_prefix"
15667 acl_save_exec_prefix
="$exec_prefix"
15668 exec_prefix
="$acl_final_exec_prefix"
15670 eval additional_includedir
=\"$includedir\"
15671 eval additional_libdir
=\"$libdir\"
15673 exec_prefix
="$acl_save_exec_prefix"
15674 prefix
="$acl_save_prefix"
15677 # Check whether --with-libbabeltrace-prefix was given.
15678 if test "${with_libbabeltrace_prefix+set}" = set; then :
15679 withval
=$with_libbabeltrace_prefix;
15680 if test "X$withval" = "Xno"; then
15683 if test "X$withval" = "X"; then
15685 acl_save_prefix
="$prefix"
15686 prefix
="$acl_final_prefix"
15687 acl_save_exec_prefix
="$exec_prefix"
15688 exec_prefix
="$acl_final_exec_prefix"
15690 eval additional_includedir
=\"$includedir\"
15691 eval additional_libdir
=\"$libdir\"
15693 exec_prefix
="$acl_save_exec_prefix"
15694 prefix
="$acl_save_prefix"
15697 additional_includedir
="$withval/include"
15698 additional_libdir
="$withval/lib"
15709 names_already_handled
=
15710 names_next_round
='babeltrace babeltrace-ctf'
15711 while test -n "$names_next_round"; do
15712 names_this_round
="$names_next_round"
15714 for name
in $names_this_round; do
15716 for n
in $names_already_handled; do
15717 if test "$n" = "$name"; then
15718 already_handled
=yes
15722 if test -z "$already_handled"; then
15723 names_already_handled
="$names_already_handled $name"
15724 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15725 eval value
=\"\
$HAVE_LIB$uppername\"
15726 if test -n "$value"; then
15727 if test "$value" = yes; then
15728 eval value
=\"\
$LIB$uppername\"
15729 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
15730 eval value
=\"\
$LTLIB$uppername\"
15731 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
15740 if test $use_additional = yes; then
15741 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15742 found_dir
="$additional_libdir"
15743 found_so
="$additional_libdir/lib$name.$shlibext"
15744 if test -f "$additional_libdir/lib$name.la"; then
15745 found_la
="$additional_libdir/lib$name.la"
15748 if test -f "$additional_libdir/lib$name.$libext"; then
15749 found_dir
="$additional_libdir"
15750 found_a
="$additional_libdir/lib$name.$libext"
15751 if test -f "$additional_libdir/lib$name.la"; then
15752 found_la
="$additional_libdir/lib$name.la"
15757 if test "X$found_dir" = "X"; then
15758 for x
in $LDFLAGS $LTLIBBABELTRACE; do
15760 acl_save_prefix
="$prefix"
15761 prefix
="$acl_final_prefix"
15762 acl_save_exec_prefix
="$exec_prefix"
15763 exec_prefix
="$acl_final_exec_prefix"
15765 exec_prefix
="$acl_save_exec_prefix"
15766 prefix
="$acl_save_prefix"
15770 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15771 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15773 found_so
="$dir/lib$name.$shlibext"
15774 if test -f "$dir/lib$name.la"; then
15775 found_la
="$dir/lib$name.la"
15778 if test -f "$dir/lib$name.$libext"; then
15780 found_a
="$dir/lib$name.$libext"
15781 if test -f "$dir/lib$name.la"; then
15782 found_la
="$dir/lib$name.la"
15788 if test "X$found_dir" != "X"; then
15793 if test "X$found_dir" != "X"; then
15794 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
15795 if test "X$found_so" != "X"; then
15796 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15797 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15800 for x
in $ltrpathdirs; do
15801 if test "X$x" = "X$found_dir"; then
15806 if test -z "$haveit"; then
15807 ltrpathdirs
="$ltrpathdirs $found_dir"
15809 if test "$hardcode_direct" = yes; then
15810 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15812 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15813 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15815 for x
in $rpathdirs; do
15816 if test "X$x" = "X$found_dir"; then
15821 if test -z "$haveit"; then
15822 rpathdirs
="$rpathdirs $found_dir"
15826 for x
in $LDFLAGS $LIBBABELTRACE; do
15828 acl_save_prefix
="$prefix"
15829 prefix
="$acl_final_prefix"
15830 acl_save_exec_prefix
="$exec_prefix"
15831 exec_prefix
="$acl_final_exec_prefix"
15833 exec_prefix
="$acl_save_exec_prefix"
15834 prefix
="$acl_save_prefix"
15836 if test "X$x" = "X-L$found_dir"; then
15841 if test -z "$haveit"; then
15842 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
15844 if test "$hardcode_minus_L" != no
; then
15845 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15847 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15853 if test "X$found_a" != "X"; then
15854 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
15856 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
15859 additional_includedir
=
15860 case "$found_dir" in
15862 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15863 additional_includedir
="$basedir/include"
15866 if test "X$additional_includedir" != "X"; then
15867 if test "X$additional_includedir" != "X/usr/include"; then
15869 if test "X$additional_includedir" = "X/usr/local/include"; then
15870 if test -n "$GCC"; then
15872 linux
*) haveit
=yes;;
15876 if test -z "$haveit"; then
15877 for x
in $CPPFLAGS $INCBABELTRACE; do
15879 acl_save_prefix
="$prefix"
15880 prefix
="$acl_final_prefix"
15881 acl_save_exec_prefix
="$exec_prefix"
15882 exec_prefix
="$acl_final_exec_prefix"
15884 exec_prefix
="$acl_save_exec_prefix"
15885 prefix
="$acl_save_prefix"
15887 if test "X$x" = "X-I$additional_includedir"; then
15892 if test -z "$haveit"; then
15893 if test -d "$additional_includedir"; then
15894 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
15900 if test -n "$found_la"; then
15901 save_libdir
="$libdir"
15902 case "$found_la" in
15903 */* |
*\\*) .
"$found_la" ;;
15904 *) .
"./$found_la" ;;
15906 libdir
="$save_libdir"
15907 for dep
in $dependency_libs; do
15910 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15911 if test "X$additional_libdir" != "X/usr/lib"; then
15913 if test "X$additional_libdir" = "X/usr/local/lib"; then
15914 if test -n "$GCC"; then
15916 linux
*) haveit
=yes;;
15920 if test -z "$haveit"; then
15922 for x
in $LDFLAGS $LIBBABELTRACE; do
15924 acl_save_prefix
="$prefix"
15925 prefix
="$acl_final_prefix"
15926 acl_save_exec_prefix
="$exec_prefix"
15927 exec_prefix
="$acl_final_exec_prefix"
15929 exec_prefix
="$acl_save_exec_prefix"
15930 prefix
="$acl_save_prefix"
15932 if test "X$x" = "X-L$additional_libdir"; then
15937 if test -z "$haveit"; then
15938 if test -d "$additional_libdir"; then
15939 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
15943 for x
in $LDFLAGS $LTLIBBABELTRACE; do
15945 acl_save_prefix
="$prefix"
15946 prefix
="$acl_final_prefix"
15947 acl_save_exec_prefix
="$exec_prefix"
15948 exec_prefix
="$acl_final_exec_prefix"
15950 exec_prefix
="$acl_save_exec_prefix"
15951 prefix
="$acl_save_prefix"
15953 if test "X$x" = "X-L$additional_libdir"; then
15958 if test -z "$haveit"; then
15959 if test -d "$additional_libdir"; then
15960 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
15967 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15968 if test "$enable_rpath" != no
; then
15970 for x
in $rpathdirs; do
15971 if test "X$x" = "X$dir"; then
15976 if test -z "$haveit"; then
15977 rpathdirs
="$rpathdirs $dir"
15980 for x
in $ltrpathdirs; do
15981 if test "X$x" = "X$dir"; then
15986 if test -z "$haveit"; then
15987 ltrpathdirs
="$ltrpathdirs $dir"
15992 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15995 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15998 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
15999 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
16005 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16006 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
16012 if test "X$rpathdirs" != "X"; then
16013 if test -n "$hardcode_libdir_separator"; then
16015 for found_dir
in $rpathdirs; do
16016 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16018 acl_save_libdir
="$libdir"
16020 eval flag
=\"$hardcode_libdir_flag_spec\"
16021 libdir
="$acl_save_libdir"
16022 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16024 for found_dir
in $rpathdirs; do
16025 acl_save_libdir
="$libdir"
16026 libdir
="$found_dir"
16027 eval flag
=\"$hardcode_libdir_flag_spec\"
16028 libdir
="$acl_save_libdir"
16029 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16033 if test "X$ltrpathdirs" != "X"; then
16034 for found_dir
in $ltrpathdirs; do
16035 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
16040 ac_save_CPPFLAGS
="$CPPFLAGS"
16042 for element
in $INCBABELTRACE; do
16044 for x
in $CPPFLAGS; do
16046 acl_save_prefix
="$prefix"
16047 prefix
="$acl_final_prefix"
16048 acl_save_exec_prefix
="$exec_prefix"
16049 exec_prefix
="$acl_final_exec_prefix"
16051 exec_prefix
="$acl_save_exec_prefix"
16052 prefix
="$acl_save_prefix"
16054 if test "X$x" = "X$element"; then
16059 if test -z "$haveit"; then
16060 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
16066 $as_echo_n "checking for libbabeltrace... " >&6; }
16067 if test "${ac_cv_libbabeltrace+set}" = set; then :
16068 $as_echo_n "(cached) " >&6
16071 ac_save_LIBS
="$LIBS"
16072 LIBS
="$LIBS $LIBBABELTRACE"
16073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16074 /* end confdefs.h. */
16075 #include <babeltrace/babeltrace.h>
16076 #include <babeltrace/ctf/events.h>
16077 #include <babeltrace/ctf/iterator.h>
16081 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
16082 struct bt_ctf_event *event = NULL;
16083 const struct bt_definition *scope;
16085 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
16086 scope = bt_ctf_get_top_level_scope (event,
16087 BT_STREAM_EVENT_HEADER);
16088 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
16094 if ac_fn_c_try_link
"$LINENO"; then :
16095 ac_cv_libbabeltrace
=yes
16097 ac_cv_libbabeltrace
=no
16099 rm -f core conftest.err conftest.
$ac_objext \
16100 conftest
$ac_exeext conftest.
$ac_ext
16101 LIBS
="$ac_save_LIBS"
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
16105 $as_echo "$ac_cv_libbabeltrace" >&6; }
16106 if test "$ac_cv_libbabeltrace" = yes; then
16107 HAVE_LIBBABELTRACE
=yes
16109 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
16112 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
16114 $as_echo "$LIBBABELTRACE" >&6; }
16116 HAVE_LIBBABELTRACE
=no
16117 CPPFLAGS
="$ac_save_CPPFLAGS"
16127 CFLAGS
=$saved_CFLAGS
16129 if test "$HAVE_LIBBABELTRACE" != yes; then
16130 if test "$with_babeltrace" = yes; then
16131 as_fn_error
"babeltrace is missing or unusable" "$LINENO" 5
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
16134 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
16139 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16140 # to an empty version.
16146 if test "${nativefile}" != ""; then
16147 case "${nativefile}" in
16148 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
16149 * ) GDB_NM_FILE
="${nativefile}"
16151 files
="${files} ${GDB_NM_FILE}"
16152 links
="${links} nm.h"
16154 cat >>confdefs.h
<<_ACEOF
16155 #define GDB_NM_FILE "${GDB_NM_FILE}"
16161 ac_sources
="$files"
16163 while test -n "$ac_sources"; do
16164 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
16165 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
16166 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
16168 ac_config_links
="$ac_config_links $ac_config_links_1"
16174 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16178 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16179 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
16180 if test "x$GDB_TRANSFORM_NAME" = x
; then
16181 GDB_TRANSFORM_NAME
=gdb
16186 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16187 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
16188 if test "x$GCORE_TRANSFORM_NAME" = x
; then
16189 GCORE_TRANSFORM_NAME
=gcore
16193 ac_config_files
="$ac_config_files gcore"
16196 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
16198 ac_config_commands
="$ac_config_commands default"
16200 cat >confcache
<<\_ACEOF
16201 # This file is a shell script that caches the results of configure
16202 # tests run on this system so they can be shared between configure
16203 # scripts and configure runs, see configure's option --config-cache.
16204 # It is not useful on other systems. If it contains results you don't
16205 # want to keep, you may remove or edit it.
16207 # config.status only pays attention to the cache file if you give it
16208 # the --recheck option to rerun configure.
16210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16212 # following values.
16216 # The following way of writing the cache mishandles newlines in values,
16217 # but we know of no workaround that is simple, portable, and efficient.
16218 # So, we kill variables containing newlines.
16219 # Ultrix sh set writes to stderr and can't be redirected directly,
16220 # and sets the high bit in the cache file unless we assign to the vars.
16222 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16223 eval ac_val
=\$
$ac_var
16227 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16231 _ | IFS | as_nl
) ;; #(
16232 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16233 *) { eval $ac_var=; unset $ac_var;} ;;
16239 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16240 *${as_nl}ac_space
=\
*)
16241 # `set' does not quote correctly, so add quotes: double-quote
16242 # substitution turns \\\\ into \\, and sed turns \\ into \.
16245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16248 # `set' quotes correctly as required by POSIX, so do not add quotes.
16249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16260 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16262 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16263 if test -w "$cache_file"; then
16264 test "x$cache_file" != "x/dev/null" &&
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16266 $as_echo "$as_me: updating cache $cache_file" >&6;}
16267 cat confcache
>$cache_file
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16270 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16275 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16276 # Let make expand exec_prefix.
16277 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16279 DEFS
=-DHAVE_CONFIG_H
16283 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16284 # 1. Remove the extension, and $U if already installed.
16285 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16286 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16287 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16288 # will be set to the directory where LIBOBJS objects are built.
16289 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16290 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16292 LIBOBJS
=$ac_libobjs
16294 LTLIBOBJS
=$ac_ltlibobjs
16297 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16298 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16301 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16302 as_fn_error
"conditional \"GMAKE\" was never defined.
16303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16305 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16306 as_fn_error
"conditional \"HAVE_PYTHON\" was never defined.
16307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16309 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
16310 as_fn_error
"conditional \"HAVE_GUILE\" was never defined.
16311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16315 : ${CONFIG_STATUS=./config.status}
16317 ac_clean_files_save
=$ac_clean_files
16318 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16320 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16322 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16324 # Generated by $as_me.
16325 # Run this file to recreate the current configuration.
16326 # Compiler output produced by configure, useful for debugging
16327 # configure, is in config.log if it exists.
16330 ac_cs_recheck=false
16333 SHELL=\${CONFIG_SHELL-$SHELL}
16336 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16337 ## -------------------- ##
16338 ## M4sh Initialization. ##
16339 ## -------------------- ##
16341 # Be more Bourne compatible
16342 DUALCASE
=1; export DUALCASE
# for MKS sh
16343 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16346 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16347 # is contrary to our usage. Disable this feature.
16348 alias -g '${1+"$@"}'='"$@"'
16349 setopt NO_GLOB_SUBST
16351 case `(set -o) 2>/dev/null` in #(
16363 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16364 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16365 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16366 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16367 # Prefer a ksh shell builtin over an external printf program on Solaris,
16368 # but without wasting forks for bash or zsh.
16369 if test -z "$BASH_VERSION$ZSH_VERSION" \
16370 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16371 as_echo='print
-r --'
16372 as_echo_n='print
-rn --'
16373 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16374 as_echo='printf %s
\n'
16375 as_echo_n='printf %s
'
16377 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16378 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16379 as_echo_n='/usr
/ucb
/echo -n'
16381 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16382 as_echo_n_body='eval
16386 expr "X$arg" : "X\\(.*\\)$as_nl";
16387 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16389 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16391 export as_echo_n_body
16392 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16394 export as_echo_body
16395 as_echo='sh
-c $as_echo_body as_echo
'
16398 # The user is always right.
16399 if test "${PATH_SEPARATOR+set}" != set; then
16401 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16402 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16409 # We need space, tab and new line, in precisely that order. Quoting is
16410 # there to prevent editors from complaining about space-tab.
16411 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16412 # splitting by setting IFS to empty value.)
16415 # Find who we are. Look in the path if we contain no directory separator.
16417 *[\\/]* ) as_myself=$0 ;;
16418 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16419 for as_dir in $PATH
16422 test -z "$as_dir" && as_dir=.
16423 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16429 # We did not find ourselves, most probably we were run as `sh COMMAND'
16430 # in which case we are not to be found in the path.
16431 if test "x$as_myself" = x
; then
16434 if test ! -f "$as_myself"; then
16435 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16439 # Unset variables that we do not need and which cause bugs (e.g. in
16440 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16441 # suppresses any "Segmentation fault" message there. '((' could
16442 # trigger a bug in pdksh 5.2.14.
16443 for as_var
in BASH_ENV ENV MAIL MAILPATH
16444 do eval test x\
${$as_var+set} = xset \
16445 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16458 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16461 # as_fn_error ERROR [LINENO LOG_FD]
16462 # ---------------------------------
16463 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16464 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16465 # script with status $?, using 1 if that was 0.
16468 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16470 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16471 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16473 $as_echo "$as_me: error: $1" >&2
16474 as_fn_exit
$as_status
16478 # as_fn_set_status STATUS
16479 # -----------------------
16480 # Set $? to STATUS, without forking.
16481 as_fn_set_status
()
16484 } # as_fn_set_status
16486 # as_fn_exit STATUS
16487 # -----------------
16488 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16492 as_fn_set_status
$1
16498 # Portably unset VAR.
16501 { eval $1=; unset $1;}
16503 as_unset
=as_fn_unset
16504 # as_fn_append VAR VALUE
16505 # ----------------------
16506 # Append the text in VALUE to the end of the definition contained in VAR. Take
16507 # advantage of any shell optimizations that allow amortized linear growth over
16508 # repeated appends, instead of the typical quadratic growth present in naive
16510 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16511 eval 'as_fn_append ()
16522 # as_fn_arith ARG...
16523 # ------------------
16524 # Perform arithmetic evaluation on the ARGs, and store the result in the
16525 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16526 # must be portable across $(()) and expr.
16527 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16528 eval 'as_fn_arith ()
16535 as_val
=`expr "$@" || test $? -eq 1`
16540 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16541 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16547 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16548 as_basename
=basename
16553 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16559 as_me
=`$as_basename -- "$0" ||
16560 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16561 X"$0" : 'X\(//\)$' \| \
16562 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16564 sed '/^.*\/\([^/][^/]*\)\/*$/{
16578 # Avoid depending upon Character Ranges.
16579 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16580 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16581 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16582 as_cr_digits
='0123456789'
16583 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16585 ECHO_C
= ECHO_N
= ECHO_T
=
16586 case `echo -n x` in #(((((
16588 case `echo 'xy\c'` in
16589 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16591 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16598 rm -f conf$$ conf$$.exe conf$$.
file
16599 if test -d conf$$.dir
; then
16600 rm -f conf$$.dir
/conf$$.
file
16603 mkdir conf$$.dir
2>/dev
/null
16605 if (echo >conf$$.
file) 2>/dev
/null
; then
16606 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16608 # ... but there are two gotchas:
16609 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16610 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16611 # In both cases, we have to default to `cp -p'.
16612 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16614 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16622 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16623 rmdir conf$$.dir
2>/dev
/null
16628 # Create "$as_dir" as a directory, including parents if necessary.
16633 -*) as_dir
=.
/$as_dir;;
16635 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16639 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16640 *) as_qdir
=$as_dir;;
16642 as_dirs
="'$as_qdir' $as_dirs"
16643 as_dir
=`$as_dirname -- "$as_dir" ||
16644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16645 X"$as_dir" : 'X\(//\)[^/]' \| \
16646 X"$as_dir" : 'X\(//\)$' \| \
16647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16648 $as_echo X"$as_dir" |
16649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16653 /^X\(\/\/\)[^/].*/{
16666 test -d "$as_dir" && break
16668 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16669 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16673 if mkdir
-p .
2>/dev
/null
; then
16674 as_mkdir_p
='mkdir -p "$as_dir"'
16676 test -d .
/-p && rmdir .
/-p
16680 if test -x / >/dev
/null
2>&1; then
16681 as_test_x
='test -x'
16683 if ls -dL / >/dev
/null
2>&1; then
16690 if test -d "$1"; then
16696 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16697 ???[sx]*):;;*)false;;esac;fi
16701 as_executable_p
=$as_test_x
16703 # Sed expression to map a string onto a valid CPP name.
16704 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16706 # Sed expression to map a string onto a valid variable name.
16707 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16711 ## ----------------------------------- ##
16712 ## Main body of $CONFIG_STATUS script. ##
16713 ## ----------------------------------- ##
16715 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16718 # Save the log message, to keep $0 and so on meaningful, and to
16719 # report actual input values of CONFIG_FILES etc. instead of their
16720 # values after options handling.
16722 This file was extended by $as_me, which was
16723 generated by GNU Autoconf 2.64. Invocation command line was
16725 CONFIG_FILES = $CONFIG_FILES
16726 CONFIG_HEADERS = $CONFIG_HEADERS
16727 CONFIG_LINKS = $CONFIG_LINKS
16728 CONFIG_COMMANDS = $CONFIG_COMMANDS
16731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16736 case $ac_config_files in *"
16737 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16740 case $ac_config_headers in *"
16741 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16746 # Files that config.status was made for.
16747 config_files="$ac_config_files"
16748 config_headers="$ac_config_headers"
16749 config_links="$ac_config_links"
16750 config_commands="$ac_config_commands"
16754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16756 \`$as_me' instantiates files and other configuration actions
16757 from templates according to the current configuration. Unless the files
16758 and actions are specified as TAGs, all are instantiated by default.
16760 Usage: $0 [OPTION]... [TAG]...
16762 -h, --help print this help, then exit
16763 -V, --version print version number and configuration settings, then exit
16764 -q, --quiet, --silent
16765 do not print progress messages
16766 -d, --debug don't remove temporary files
16767 --recheck update $as_me by reconfiguring in the same conditions
16768 --file=FILE[:TEMPLATE]
16769 instantiate the configuration file FILE
16770 --header=FILE[:TEMPLATE]
16771 instantiate the configuration header FILE
16773 Configuration files:
16776 Configuration headers:
16779 Configuration links:
16782 Configuration commands:
16785 Report bugs to the package provider."
16788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16791 configured by $0, generated by GNU Autoconf 2.64,
16792 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16794 Copyright (C) 2009 Free Software Foundation, Inc.
16795 This config.status script is free software; the Free Software Foundation
16796 gives unlimited permission to copy, distribute and modify it."
16802 test -n "\$AWK" || AWK=awk
16805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16806 # The default lists apply if the user does not specify any file.
16812 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16813 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16824 # Handling of the options.
16825 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16827 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16828 $as_echo "$ac_cs_version"; exit ;;
16829 --debug |
--debu |
--deb |
--de |
--d |
-d )
16831 --file |
--fil |
--fi |
--f )
16834 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16836 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16837 ac_need_defaults
=false
;;
16838 --header |
--heade |
--head |
--hea )
16841 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16843 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16844 ac_need_defaults
=false
;;
16846 # Conflict between --help and --header
16847 as_fn_error
"ambiguous option: \`$1'
16848 Try \`$0 --help' for more information.";;
16849 --help |
--hel |
-h )
16850 $as_echo "$ac_cs_usage"; exit ;;
16851 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16852 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16855 # This is an error.
16856 -*) as_fn_error
"unrecognized option: \`$1'
16857 Try \`$0 --help' for more information." ;;
16859 *) as_fn_append ac_config_targets
" $1"
16860 ac_need_defaults
=false
;;
16866 ac_configure_extra_args
=
16868 if $ac_cs_silent; then
16870 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16875 if \$ac_cs_recheck; then
16876 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16878 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16879 CONFIG_SHELL='$SHELL'
16880 export CONFIG_SHELL
16885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16890 ## Running $as_me. ##
16896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16900 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16906 # Handling of arguments.
16907 for ac_config_target
in $ac_config_targets
16909 case $ac_config_target in
16910 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16911 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
16912 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16913 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
16914 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
16915 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16916 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
16917 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16918 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
16919 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16921 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16926 # If the user did not use the arguments to specify the items to instantiate,
16927 # then the envvar interface is used. Set only those that are not.
16928 # We use the long form for the default assignment because of an extremely
16929 # bizarre bug on SunOS 4.1.3.
16930 if $ac_need_defaults; then
16931 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16932 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16933 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16934 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16937 # Have a temporary directory for convenience. Make it in the build tree
16938 # simply because there is no reason against having it here, and in addition,
16939 # creating and moving files from /tmp can sometimes cause problems.
16940 # Hook for its removal unless debugging.
16941 # Note that there is a small window in which the directory will not be cleaned:
16942 # after its creation but before its name has been assigned to `$tmp'.
16946 trap 'exit_status=$?
16947 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16949 trap 'as_fn_exit 1' 1 2 13 15
16951 # Create a (secure) tmp directory for tmp files.
16954 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16955 test -n "$tmp" && test -d "$tmp"
16958 tmp
=.
/conf$$
-$RANDOM
16959 (umask 077 && mkdir
"$tmp")
16960 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16962 # Set up the scripts for CONFIG_FILES section.
16963 # No need to generate them if there are no CONFIG_FILES.
16964 # This happens for instance with `./config.status config.h'.
16965 if test -n "$CONFIG_FILES"; then
16967 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16968 ac_cs_awk_getline
=:
16969 ac_cs_awk_pipe_init
=
16970 ac_cs_awk_read_file
='
16971 while ((getline aline < (F[key])) > 0)
16974 ac_cs_awk_pipe_fini
=
16976 ac_cs_awk_getline
=false
16977 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16978 ac_cs_awk_read_file
='
16980 print "cat " F[key] " &&"
16981 '$ac_cs_awk_pipe_init
16982 # The final `:' finishes the AND list.
16983 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16985 ac_cr
=`echo X | tr X '\015'`
16986 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16987 # But we know of no other shell where ac_cr would be empty at this
16988 # point, so we can use a bashism as a fallback.
16989 if test "x$ac_cr" = x
; then
16990 eval ac_cr
=\$
\'\\r
\'
16992 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16993 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16996 ac_cs_awk_cr
=$ac_cr
16999 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17002 # Create commands to substitute file output variables.
17004 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17005 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17006 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
17009 } >conf$
$files.sh
&&
17010 . .
/conf$
$files.sh ||
17011 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
17012 rm -f conf$
$files.sh
17015 echo "cat >conf$$subs.awk <<_ACEOF" &&
17016 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17018 } >conf$$subs.sh ||
17019 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17020 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17022 for ac_last_try in false false false false false :; do
17023 . ./conf$$subs.sh ||
17024 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17026 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17027 if test $ac_delim_n = $ac_delim_num; then
17029 elif $ac_last_try; then
17030 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17032 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17035 rm -f conf$$subs.sh
17037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17038 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17042 s/^/S["/; s
/!.
*/"]=/
17052 s/\(.\{148\}\).*/\1/
17054 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17059 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17066 s/\(.\{148\}\).*/\1/
17068 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17072 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17077 ' <conf$$subs.awk | sed '
17082 ' >>$CONFIG_STATUS || ac_write_fail=1
17083 rm -f conf$$subs.awk
17084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17086 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17087 for (key in S) S_is_set[key] = 1
17089 \$ac_cs_awk_pipe_init
17093 nfields = split(line, field, "@
")
17095 len = length(field[1])
17096 for (i = 2; i < nfields; i++) {
17098 keylen = length(key)
17099 if (S_is_set[key]) {
17101 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17102 len += length(value) + length(field[++i])
17107 if (nfields == 3 && !substed) {
17109 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17110 \$ac_cs_awk_read_file
17116 \$ac_cs_awk_pipe_fini
17119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17120 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17121 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17124 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17125 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17128 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17129 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17130 # trailing colons and then remove the whole line if VPATH becomes empty
17131 # (actually we leave an empty line to preserve line numbers).
17132 if test "x
$srcdir" = x.; then
17133 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17134 s/:*\$(srcdir):*/:/
17135 s/:*\${srcdir}:*/:/
17137 s/^\([^=]*=[ ]*\):*/\1/
17143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17144 fi # test -n "$CONFIG_FILES"
17146 # Set up the scripts for CONFIG_HEADERS section.
17147 # No need to generate them if there are no CONFIG_HEADERS.
17148 # This happens for instance with `./config.status Makefile'.
17149 if test -n "$CONFIG_HEADERS"; then
17150 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17154 # Transform confdefs.h into an awk script `defines.awk', embedded as
17155 # here-document in config.status, that substitutes the proper values into
17156 # config.h.in to produce config.h.
17158 # Create a delimiter string that does not exist in confdefs.h, to ease
17159 # handling of long lines.
17161 for ac_last_try in false false :; do
17162 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17163 if test -z "$ac_t"; then
17165 elif $ac_last_try; then
17166 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17168 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17172 # For the awk script, D is an array of macro values keyed by name,
17173 # likewise P contains macro parameters if any. Preserve backslash
17174 # newline sequences.
17176 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17178 s/.\{148\}/&'"$ac_delim"'/g
17181 s/^[ ]*#[ ]*define[ ][ ]*/ /
17188 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17190 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17194 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17195 D["\
1"]=" \
3\\\\\\n
"\\/p
17197 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17202 s/.\{148\}/&'"$ac_delim"'/g
17207 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17210 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17212 ' <confdefs.h | sed '
17213 s/'"$ac_delim"'/"\\\
17214 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17217 for (key in D) D_is_set[key] = 1
17220 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17222 split(line, arg, " ")
17223 if (arg[1] == "#") {
17227 defundef
= substr
(arg
[1], 2)
17230 split(mac1
, mac2
, "(") #)
17232 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17233 if (D_is_set
[macro
]) {
17234 # Preserve the white space surrounding the "#".
17235 print prefix
"define", macro P
[macro
] D
[macro
]
17238 # Replace #undef with comments. This is necessary, for example,
17239 # in the case of _POSIX_SOURCE, which is predefined and required
17240 # on some systems where configure will not decide to define it.
17241 if (defundef
== "undef") {
17242 print
"/*", prefix defundef
, macro
, "*/"
17250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17251 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17252 fi # test -n "$CONFIG_HEADERS"
17255 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17260 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17262 case $ac_mode$ac_tag in
17264 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17265 :[FH
]-) ac_tag
=-:-;;
17266 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17283 -) ac_f
="$tmp/stdin";;
17284 *) # Look for the file first in the build tree, then in the source tree
17285 # (if the path is not absolute). The absolute path cannot be DOS-style,
17286 # because $ac_f cannot contain `:'.
17290 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17292 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17294 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17295 as_fn_append ac_file_inputs
" '$ac_f'"
17298 # Let's still pretend it is `configure' which instantiates (i.e., don't
17299 # use $as_me), people would be surprised to read:
17300 # /* config.h. Generated by config.status. */
17301 configure_input
='Generated from '`
17302 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17304 if test x
"$ac_file" != x-
; then
17305 configure_input
="$ac_file. $configure_input"
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17307 $as_echo "$as_me: creating $ac_file" >&6;}
17309 # Neutralize special characters interpreted by sed in replacement strings.
17310 case $configure_input in #(
17311 *\
&* |
*\|
* |
*\\* )
17312 ac_sed_conf_input
=`$as_echo "$configure_input" |
17313 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17314 *) ac_sed_conf_input
=$configure_input;;
17318 *:-:* |
*:-) cat >"$tmp/stdin" \
17319 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17324 ac_dir
=`$as_dirname -- "$ac_file" ||
17325 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17326 X"$ac_file" : 'X\(//\)[^/]' \| \
17327 X"$ac_file" : 'X\(//\)$' \| \
17328 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17329 $as_echo X"$ac_file" |
17330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17334 /^X\(\/\/\)[^/].*/{
17347 as_dir
="$ac_dir"; as_fn_mkdir_p
17351 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17353 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17354 # A ".." for each directory in $ac_dir_suffix.
17355 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17356 case $ac_top_builddir_sub in
17357 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17358 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17361 ac_abs_top_builddir
=$ac_pwd
17362 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17363 # for backward compatibility:
17364 ac_top_builddir
=$ac_top_build_prefix
17367 .
) # We are building in place.
17369 ac_top_srcdir
=$ac_top_builddir_sub
17370 ac_abs_top_srcdir
=$ac_pwd ;;
17371 [\\/]* | ?
:[\\/]* ) # Absolute name.
17372 ac_srcdir
=$srcdir$ac_dir_suffix;
17373 ac_top_srcdir
=$srcdir
17374 ac_abs_top_srcdir
=$srcdir ;;
17375 *) # Relative name.
17376 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17377 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17378 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17380 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17390 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17391 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17396 # If the template does not know about datarootdir, expand it.
17397 # FIXME: This hack should be removed a few years after 2.60.
17398 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17409 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17410 *datarootdir
*) ac_datarootdir_seen
=yes;;
17411 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17413 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17416 ac_datarootdir_hack='
17417 s&@datadir@&$datadir&g
17418 s&@docdir@&$docdir&g
17419 s&@infodir@&$infodir&g
17420 s&@localedir@&$localedir&g
17421 s&@mandir@&$mandir&g
17422 s&\\\${datarootdir}&$datarootdir&g' ;;
17426 # Neutralize VPATH when `$srcdir' = `.'.
17427 # Shell code in configure.ac might set extrasub.
17428 # FIXME: do we really want to maintain this feature?
17429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17430 ac_sed_extra="$ac_vpsub
17433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17435 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17436 s|@configure_input@|
$ac_sed_conf_input|
;t t
17437 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17438 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17439 s
&@srcdir@
&$ac_srcdir&;t t
17440 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17441 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17442 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17443 s
&@builddir@
&$ac_builddir&;t t
17444 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17445 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17446 s
&@INSTALL@
&$ac_INSTALL&;t t
17447 $ac_datarootdir_hack
17449 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17450 if $ac_cs_awk_getline; then
17451 $AWK -f "$tmp/subs.
awk"
17453 $AWK -f "$tmp/subs.
awk" | $SHELL
17455 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17457 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17458 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17459 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17461 which seems to be undefined. Please make sure it is defined." >&5
17462 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17463 which seems to be undefined. Please make sure it is defined." >&2;}
17467 -) cat "$tmp/out" && rm -f "$tmp/out";;
17468 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17470 || as_fn_error "could not create $ac_file" "$LINENO" 5
17476 if test x"$ac_file" != x-; then
17478 $as_echo "/* $configure_input */" \
17479 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17480 } >"$tmp/config.h" \
17481 || as_fn_error "could not create $ac_file" "$LINENO" 5
17482 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17484 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17487 mv "$tmp/config.h" "$ac_file" \
17488 || as_fn_error "could not create $ac_file" "$LINENO" 5
17491 $as_echo "/* $configure_input */" \
17492 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17493 || as_fn_error "could not create -" "$LINENO" 5
17501 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
17504 # Prefer the file from the source tree if names are identical.
17505 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17506 ac_source=$srcdir/$ac_source
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17510 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17512 if test ! -r "$ac_source"; then
17513 as_fn_error "$ac_source: file not found" "$LINENO" 5
17517 # Try a relative symlink, then a hard link, then a copy.
17519 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17520 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17522 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17523 ln "$ac_source" "$ac_file" 2>/dev/null ||
17524 cp -p "$ac_source" "$ac_file" ||
17525 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17528 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17529 $as_echo "$as_me: executing $ac_file commands" >&6;}
17534 case $ac_file$ac_mode in
17535 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17536 "gcore":F) chmod +x gcore ;;
17538 case x$CONFIG_HEADERS in
17539 xconfig.h:config.in)
17550 ac_clean_files=$ac_clean_files_save
17552 test $ac_write_fail = 0 ||
17553 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17556 # configure is writing to config.log, and then calls config.status.
17557 # config.status does its own redirection, appending to config.log.
17558 # Unfortunately, on DOS this fails, as config.log is still kept open
17559 # by configure, so config.status won't be able to
write to it
; its
17560 # output is simply discarded. So we exec the FD to /dev/null,
17561 # effectively closing config.log, so it can be properly (re)opened and
17562 # appended to by config.status. When coming back to configure, we
17563 # need to make the FD available again.
17564 if test "$no_create" != yes; then
17566 ac_config_status_args
=
17567 test "$silent" = yes &&
17568 ac_config_status_args
="$ac_config_status_args --quiet"
17570 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17572 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17573 # would make configure fail if this is the last instruction.
17574 $ac_cs_success || as_fn_exit $?
17578 # CONFIG_SUBDIRS section.
17580 if test "$no_recursion" != yes; then
17582 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17583 # so they do not pile up.
17584 ac_sub_configure_args
=
17586 eval "set x $ac_configure_args"
17590 if test -n "$ac_prev"; then
17595 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17596 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17597 ac_prev
=cache_file
;;
17598 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17599 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17602 --config-cache |
-C)
17604 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17606 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17608 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17610 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17612 --disable-option-checking)
17616 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17618 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
17622 # Always prepend --prefix to ensure using the same prefix
17623 # in subdir configurations.
17624 ac_arg
="--prefix=$prefix"
17626 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17628 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
17631 if test "$silent" = yes; then
17632 ac_sub_configure_args
="--silent $ac_sub_configure_args"
17635 # Always prepend --disable-option-checking to silence warnings, since
17636 # different subdirs can have different --enable and --with options.
17637 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
17640 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17642 # Do not complain, so a configure script can configure whichever
17643 # parts of a large source tree are present.
17644 test -d "$srcdir/$ac_dir" ||
continue
17646 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17647 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17648 $as_echo "$ac_msg" >&6
17649 as_dir
="$ac_dir"; as_fn_mkdir_p
17653 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17655 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17656 # A ".." for each directory in $ac_dir_suffix.
17657 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17658 case $ac_top_builddir_sub in
17659 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17660 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17663 ac_abs_top_builddir
=$ac_pwd
17664 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17665 # for backward compatibility:
17666 ac_top_builddir
=$ac_top_build_prefix
17669 .
) # We are building in place.
17671 ac_top_srcdir
=$ac_top_builddir_sub
17672 ac_abs_top_srcdir
=$ac_pwd ;;
17673 [\\/]* | ?
:[\\/]* ) # Absolute name.
17674 ac_srcdir
=$srcdir$ac_dir_suffix;
17675 ac_top_srcdir
=$srcdir
17676 ac_abs_top_srcdir
=$srcdir ;;
17677 *) # Relative name.
17678 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17679 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17680 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17682 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17687 # Check for guested configure; otherwise get Cygnus style configure.
17688 if test -f "$ac_srcdir/configure.gnu"; then
17689 ac_sub_configure
=$ac_srcdir/configure.gnu
17690 elif test -f "$ac_srcdir/configure"; then
17691 ac_sub_configure
=$ac_srcdir/configure
17692 elif test -f "$ac_srcdir/configure.in"; then
17693 # This should be Cygnus configure.
17694 ac_sub_configure
=$ac_aux_dir/configure
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17701 # The recursion is here.
17702 if test -n "$ac_sub_configure"; then
17703 # Make the cache file name correct relative to the subdirectory.
17704 case $cache_file in
17705 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
17706 *) # Relative name.
17707 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
17710 { $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
17711 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17712 # The eval makes quoting arguments work.
17713 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17714 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17715 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17721 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17723 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}