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
705 HAVE_NATIVE_GCORE_TARGET
735 INSTALL_STRIP_PROGRAM
764 MAINTAINER_MODE_FALSE
793 program_transform_name
804 ac_subst_files
='host_makefile_frag'
806 enable_option_checking
807 enable_maintainer_mode
810 enable_build_with_cxx
811 with_separate_debug_dir
813 with_relocated_sources
815 with_auto_load_safe_path
845 enable_build_warnings
846 enable_gdb_build_warnings
856 with_libbabeltrace_prefix
858 ac_precious_vars
='build_alias
875 ac_subdirs_all
='testsuite
880 # Initialize some variables set by options.
882 ac_init_version
=false
883 ac_unrecognized_opts
=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
894 program_transform_name
=s
,x
,x
,
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir
='${exec_prefix}/bin'
909 sbindir
='${exec_prefix}/sbin'
910 libexecdir
='${exec_prefix}/libexec'
911 datarootdir
='${prefix}/share'
912 datadir
='${datarootdir}'
913 sysconfdir
='${prefix}/etc'
914 sharedstatedir
='${prefix}/com'
915 localstatedir
='${prefix}/var'
916 includedir
='${prefix}/include'
917 oldincludedir
='/usr/include'
918 docdir
='${datarootdir}/doc/${PACKAGE}'
919 infodir
='${datarootdir}/info'
924 libdir
='${exec_prefix}/lib'
925 localedir
='${datarootdir}/locale'
926 mandir
='${datarootdir}/man'
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\
$ac_option
940 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 # Accept the important Cygnus configure options, so we can diagnose typos.
946 case $ac_dashdash$ac_option in
950 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
952 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
955 -build |
--build |
--buil |
--bui |
--bu)
956 ac_prev
=build_alias
;;
957 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
958 build_alias
=$ac_optarg ;;
960 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
961 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
962 ac_prev
=cache_file
;;
963 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
964 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
965 cache_file
=$ac_optarg ;;
968 cache_file
=config.cache
;;
970 -datadir |
--datadir |
--datadi |
--datad)
972 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
973 datadir
=$ac_optarg ;;
975 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
976 |
--dataroo |
--dataro |
--datar)
977 ac_prev
=datarootdir
;;
978 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
979 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
980 datarootdir
=$ac_optarg ;;
982 -disable-* |
--disable-*)
983 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
986 as_fn_error
"invalid feature name: $ac_useropt"
987 ac_useropt_orig
=$ac_useropt
988 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
993 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep
=', ';;
996 eval enable_
$ac_useropt=no
;;
998 -docdir |
--docdir |
--docdi |
--doc |
--do)
1000 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1001 docdir
=$ac_optarg ;;
1003 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1005 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1006 dvidir
=$ac_optarg ;;
1008 -enable-* |
--enable-*)
1009 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1012 as_fn_error
"invalid feature name: $ac_useropt"
1013 ac_useropt_orig
=$ac_useropt
1014 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1017 "enable_
$ac_useropt"
1019 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep
=', ';;
1022 eval enable_
$ac_useropt=\
$ac_optarg ;;
1024 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1025 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1026 |
--exec |
--exe |
--ex)
1027 ac_prev
=exec_prefix
;;
1028 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1029 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1030 |
--exec=* |
--exe=* |
--ex=*)
1031 exec_prefix
=$ac_optarg ;;
1033 -gas |
--gas |
--ga |
--g)
1034 # Obsolete; use --with-gas.
1037 -help |
--help |
--hel |
--he |
-h)
1038 ac_init_help
=long
;;
1039 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1040 ac_init_help
=recursive
;;
1041 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1042 ac_init_help
=short
;;
1044 -host |
--host |
--hos |
--ho)
1045 ac_prev
=host_alias
;;
1046 -host=* |
--host=* |
--hos=* |
--ho=*)
1047 host_alias
=$ac_optarg ;;
1049 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1051 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1053 htmldir
=$ac_optarg ;;
1055 -includedir |
--includedir |
--includedi |
--included |
--include \
1056 |
--includ |
--inclu |
--incl |
--inc)
1057 ac_prev
=includedir
;;
1058 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1059 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1060 includedir
=$ac_optarg ;;
1062 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1064 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1065 infodir
=$ac_optarg ;;
1067 -libdir |
--libdir |
--libdi |
--libd)
1069 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1070 libdir
=$ac_optarg ;;
1072 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1073 |
--libexe |
--libex |
--libe)
1074 ac_prev
=libexecdir
;;
1075 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1076 |
--libexe=* |
--libex=* |
--libe=*)
1077 libexecdir
=$ac_optarg ;;
1079 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1080 ac_prev
=localedir
;;
1081 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1082 localedir
=$ac_optarg ;;
1084 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1085 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1086 ac_prev
=localstatedir
;;
1087 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1088 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1089 localstatedir
=$ac_optarg ;;
1091 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1093 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1094 mandir
=$ac_optarg ;;
1096 -nfp |
--nfp |
--nf)
1097 # Obsolete; use --without-fp.
1100 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1101 |
--no-cr |
--no-c |
-n)
1104 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1105 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1108 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1109 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1110 |
--oldin |
--oldi |
--old |
--ol |
--o)
1111 ac_prev
=oldincludedir
;;
1112 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1113 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1114 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1115 oldincludedir
=$ac_optarg ;;
1117 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1119 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1120 prefix
=$ac_optarg ;;
1122 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1123 |
--program-pre |
--program-pr |
--program-p)
1124 ac_prev
=program_prefix
;;
1125 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1126 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1127 program_prefix
=$ac_optarg ;;
1129 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1130 |
--program-suf |
--program-su |
--program-s)
1131 ac_prev
=program_suffix
;;
1132 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1133 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1134 program_suffix
=$ac_optarg ;;
1136 -program-transform-name |
--program-transform-name \
1137 |
--program-transform-nam |
--program-transform-na \
1138 |
--program-transform-n |
--program-transform- \
1139 |
--program-transform |
--program-transfor \
1140 |
--program-transfo |
--program-transf \
1141 |
--program-trans |
--program-tran \
1142 |
--progr-tra |
--program-tr |
--program-t)
1143 ac_prev
=program_transform_name
;;
1144 -program-transform-name=* |
--program-transform-name=* \
1145 |
--program-transform-nam=* |
--program-transform-na=* \
1146 |
--program-transform-n=* |
--program-transform-=* \
1147 |
--program-transform=* |
--program-transfor=* \
1148 |
--program-transfo=* |
--program-transf=* \
1149 |
--program-trans=* |
--program-tran=* \
1150 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1151 program_transform_name
=$ac_optarg ;;
1153 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1155 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1156 pdfdir
=$ac_optarg ;;
1158 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1160 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1163 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1164 |
-silent |
--silent |
--silen |
--sile |
--sil)
1167 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1169 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1171 sbindir
=$ac_optarg ;;
1173 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1174 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1175 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1177 ac_prev
=sharedstatedir
;;
1178 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1179 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1180 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1182 sharedstatedir
=$ac_optarg ;;
1184 -site |
--site |
--sit)
1186 -site=* |
--site=* |
--sit=*)
1189 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1191 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1192 srcdir
=$ac_optarg ;;
1194 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1195 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1196 ac_prev
=sysconfdir
;;
1197 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1198 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1199 sysconfdir
=$ac_optarg ;;
1201 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1202 ac_prev
=target_alias
;;
1203 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1204 target_alias
=$ac_optarg ;;
1206 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1209 -version |
--version |
--versio |
--versi |
--vers |
-V)
1210 ac_init_version
=: ;;
1213 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1216 as_fn_error
"invalid package name: $ac_useropt"
1217 ac_useropt_orig
=$ac_useropt
1218 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1223 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep
=', ';;
1226 eval with_
$ac_useropt=\
$ac_optarg ;;
1228 -without-* |
--without-*)
1229 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1232 as_fn_error
"invalid package name: $ac_useropt"
1233 ac_useropt_orig
=$ac_useropt
1234 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1239 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep
=', ';;
1242 eval with_
$ac_useropt=no
;;
1245 # Obsolete; use --with-x.
1248 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1249 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1250 ac_prev
=x_includes
;;
1251 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1252 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1253 x_includes
=$ac_optarg ;;
1255 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1256 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1257 ac_prev
=x_libraries
;;
1258 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1259 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1260 x_libraries
=$ac_optarg ;;
1262 -*) as_fn_error
"unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information."
1267 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 case $ac_envvar in #(
1270 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1271 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1273 eval $ac_envvar=\
$ac_optarg
1274 export $ac_envvar ;;
1277 # FIXME: should be removed in autoconf 3.0.
1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287 if test -n "$ac_prev"; then
1288 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1289 as_fn_error
"missing argument to $ac_option"
1292 if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1295 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 # Check all directory arguments for consistency.
1301 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1306 eval ac_val
=\$
$ac_var
1307 # Remove trailing slashes.
1310 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\
$ac_val;;
1313 # Be sure to have absolute directory names.
1315 [\\/$
]* | ?
:[\\/]* ) continue;;
1316 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1318 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1326 target
=$target_alias
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x
; then
1330 if test "x$build_alias" = x
; then
1331 cross_compiling
=maybe
1332 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1333 If a cross compiler is detected then cross compile mode will be used." >&2
1334 elif test "x$build_alias" != "x$host_alias"; then
1340 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1342 test "$silent" = yes && exec 6>/dev
/null
1345 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di
=`ls -di .` &&
1347 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error
"working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error
"pwd does not report name of working directory"
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted
=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir
=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1385 ac_srcdir_defaulted
=no
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1389 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1391 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1403 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405 for ac_var
in $ac_precious_vars; do
1406 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1408 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1413 # Report the --help message.
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1419 \`configure' configures this package to adapt to many kinds of systems.
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1426 Defaults for the options are specified in brackets.
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1450 For better control, use the options below.
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1482 --x-includes=DIR X include files are
in DIR
1483 --x-libraries=DIR X library files are
in DIR
1486 --build=BUILD configure
for building on BUILD
[guessed
]
1487 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1488 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1492 if test -n "$ac_init_help"; then
1497 --disable-option-checking ignore unrecognized
--enable/--with options
1498 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1499 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1500 --enable-maintainer-mode enable make rules and dependencies not useful
1501 (and sometimes confusing
) to the casual installer
1502 --enable-plugins Enable support
for plugins
1503 --disable-largefile omit support
for large files
1504 --enable-build-with-cxx build with C
++ compiler instead of C compiler
1505 --enable-targets=TARGETS
1506 alternative target configurations
1507 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1508 --disable-gdbcli disable command-line interface
(CLI
)
1509 --disable-gdbmi disable machine-interface
(MI
)
1510 --enable-tui enable full-screen terminal user interface
(TUI
)
1511 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1512 --enable-profiling enable profiling of GDB
1513 --disable-rpath do not hardcode runtime library paths
1514 --enable-libmcheck Try linking with
-lmcheck if available
1515 --enable-werror treat compile warnings as errors
1516 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1517 --enable-gdb-build-warnings
1518 enable GDB specific build-time compiler warnings
if
1520 --enable-sim link gdb with simulator
1521 --enable-multi-ice build the multi-ice-gdb-server
1522 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1526 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1527 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1528 --with-separate-debug-dir=PATH
1529 look for global separate debug info
in this path
1531 --with-gdb-datadir=PATH
look for global separate data files
in this path
1533 --with-relocated-sources=PATH
1534 automatically relocate this path
for source files
1535 --with-auto-load-dir=PATH
1536 directories from
which to load auto-loaded scripts
1537 [$debugdir:$datadir/auto-load
]
1538 --with-auto-load-safe-path=PATH
1539 directories safe to hold auto-loaded files
1540 [--with-auto-load-dir]
1541 --without-auto-load-safe-path
1542 do not restrict auto-loaded files locations
1543 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1544 --with-curses use the curses library instead of the termcap
1546 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1547 --with-bugurl=URL Direct users to URL to report a bug
1548 --with-system-zlib use installed libz
1549 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1550 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1551 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1552 --with-iconv-bin=PATH specify where to find the iconv program
1553 --with-system-readline use installed readline library
1554 --with-jit-reader-dir=PATH
1555 directory to load the JIT readers from
1556 --with-expat include expat support (auto/yes/no)
1557 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1558 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1559 --with-python[=PYTHON
] include python support
1560 (auto
/yes
/no
/<python-program
>)
1561 --with-guile[=GUILE
] include guile support
1562 (auto
/yes
/no
/<guile-version
>/<pkg-config-program
>)
1563 --with-intel-pt include Intel
(R
) Processor Trace support
1565 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1566 --without-libipt-prefix don
't search for libipt in includedir and libdir
1567 --without-included-regex
1568 don't use included regex
; this is the default on
1569 systems with version
2 of the GNU C library
(use
1570 with caution on other system
)
1571 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1572 --with-system-gdbinit=PATH
1573 automatically load a system-wide gdbinit
file
1574 --with-lzma support lzma compression
(auto
/yes
/no
)
1575 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1576 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1577 --with-tcl directory containing tcl configuration (tclConfig.sh)
1578 --with-tk directory containing tk configuration (tkConfig.sh)
1579 --with-x use the X Window System
1580 --with-babeltrace include babeltrace support (auto/yes/no)
1581 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1582 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1584 Some influential environment variables
:
1585 CC C compiler
command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1588 nonstandard directory
<lib dir
>
1589 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1590 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1591 you have headers
in a nonstandard directory
<include dir
>
1592 CXX C
++ compiler
command
1593 CXXFLAGS C
++ compiler flags
1595 MAKEINFO Parent configure detects
if it is of sufficient version.
1597 Parameters
for MAKEINFO.
1598 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1599 the first program found out of: `bison
-y', `byacc', `yacc'.
1600 YFLAGS The list of arguments that will be passed by default to $YACC.
1601 This script will default YFLAGS to the empty string to avoid a
1602 default value of `-d' given by some make applications.
1603 XMKMF Path to xmkmf, Makefile generator for X Window System
1605 Use these variables to override the choices made by `configure' or to
help
1606 it to
find libraries and programs with nonstandard names
/locations.
1608 Report bugs to the package provider.
1613 if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
1615 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1622 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1624 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1629 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1632 ac_abs_top_builddir
=$ac_pwd
1633 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir
=$ac_top_build_prefix
1638 .
) # We are building in place.
1640 ac_top_srcdir
=$ac_top_builddir_sub
1641 ac_abs_top_srcdir
=$ac_pwd ;;
1642 [\\/]* | ?
:[\\/]* ) # Absolute name.
1643 ac_srcdir
=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir
=$srcdir
1645 ac_abs_top_srcdir
=$srcdir ;;
1647 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1651 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1653 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1654 # Check for guested configure.
1655 if test -f "$ac_srcdir/configure.gnu"; then
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1660 $SHELL "$ac_srcdir/configure" --help=recursive
1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1672 generated by GNU Autoconf
2.64
1674 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1675 This configure
script is free software
; the Free Software Foundation
1676 gives unlimited permission to copy
, distribute and modify it.
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile
()
1690 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1691 rm -f conftest.
$ac_objext
1692 if { { ac_try
="$ac_compile"
1694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_compile") 2>conftest.err
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest.$ac_objext; then :
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 } # ac_fn_c_try_compile
1723 # ac_fn_cxx_try_compile LINENO
1724 # ----------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_cxx_try_compile ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext
1730 if { { ac_try="$ac_compile"
1732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1733 *) ac_try_echo
=$ac_try;;
1735 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_compile") 2>conftest.err
1739 if test -s conftest.err
; then
1740 grep -v '^ *+' conftest.err
>conftest.er1
1741 cat conftest.er1
>&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_cxx_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest.
$ac_objext; then :
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.
$ac_ext >&5
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1759 } # ac_fn_cxx_try_compile
1761 # ac_fn_c_try_cpp LINENO
1762 # ----------------------
1763 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1767 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } >/dev/null && {
1783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1801 # the include files in INCLUDES and setting the cache variable VAR
1803 ac_fn_c_check_header_mongrel ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1810 $as_echo_n "(cached) " >&6
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1816 # Is the header compilable?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1818 $as_echo_n "checking $2 usability... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825 ac_header_compiler=yes
1827 ac_header_compiler=no
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1831 $as_echo "$ac_header_compiler" >&6; }
1833 # Is the header present?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1835 $as_echo_n "checking $2 presence... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1840 if ac_fn_c_try_cpp "$LINENO"; then :
1841 ac_header_preproc=yes
1843 ac_header_preproc=no
1845 rm -f conftest.err conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1847 $as_echo "$ac_header_preproc" >&6; }
1849 # So? What about this header?
1850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1853 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1859 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1861 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1863 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1865 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1875 eval "$3=\$ac_header_compiler"
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 } # ac_fn_c_check_header_mongrel
1885 # ac_fn_c_try_run LINENO
1886 # ----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1888 # that executables *can* be run.
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if { { ac_try="$ac_link"
1894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1895 *) ac_try_echo
=$ac_try;;
1897 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>&5
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1903 { { case "(($ac_try" in
1904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_try") 2>&5
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; }; }; then :
1915 $as_echo "$as_me: program exited with status $ac_status" >&5
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1919 ac_retval=$ac_status
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1928 # -------------------------------------------------------
1929 # Tests whether HEADER exists and can be compiled using the include files in
1930 # INCLUDES, setting the cache variable VAR accordingly.
1931 ac_fn_c_check_header_compile ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 $as_echo_n "(cached) " >&6
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1944 if ac_fn_c_try_compile "$LINENO"; then :
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 } # ac_fn_c_check_header_compile
1958 # ac_fn_c_try_link LINENO
1959 # -----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext conftest$ac_exeext
1965 if { { ac_try="$ac_link"
1967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1968 *) ac_try_echo
=$ac_try;;
1970 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>conftest.err
1974 if test -s conftest.err
; then
1975 grep -v '^ *+' conftest.err
>conftest.er1
1976 cat conftest.er1
>&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest
$ac_exeext && {
1984 test "$cross_compiling" = yes ||
1985 $as_test_x conftest
$ac_exeext
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.
$ac_ext >&5
1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996 # interfere with the next link command; also delete a directory that is
1997 # left behind by Apple's compiler. We do this before executing the actions.
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2002 } # ac_fn_c_try_link
2004 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2005 # --------------------------------------------
2006 # Tries to find the compile-time value of EXPR in a program that includes
2007 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2009 ac_fn_c_compute_int
()
2011 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2012 if test "$cross_compiling" = yes; then
2013 # Depending upon the size, compute the lo and hi bounds.
2014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2020 static int test_array [1 - 2 * !(($2) >= 0)];
2027 if ac_fn_c_try_compile
"$LINENO"; then :
2030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2036 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2043 if ac_fn_c_try_compile
"$LINENO"; then :
2044 ac_hi
=$ac_mid; break
2046 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2047 if test $ac_lo -le $ac_mid; then
2051 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 static int test_array [1 - 2 * !(($2) < 0)];
2069 if ac_fn_c_try_compile
"$LINENO"; then :
2072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2078 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2085 if ac_fn_c_try_compile
"$LINENO"; then :
2086 ac_lo
=$ac_mid; break
2088 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2089 if test $ac_mid -le $ac_hi; then
2093 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2103 # Binary search between lo and hi bounds.
2104 while test "x$ac_lo" != "x$ac_hi"; do
2105 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2119 if ac_fn_c_try_compile
"$LINENO"; then :
2122 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2127 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2134 static long int longval () { return $2; }
2135 static unsigned long int ulongval () { return $2; }
2142 FILE *f = fopen ("conftest.val", "w");
2147 long int i = longval ();
2150 fprintf (f, "%ld", i);
2154 unsigned long int i = ulongval ();
2157 fprintf (f, "%lu", i);
2159 /* Do not output a trailing newline, as this causes \r\n confusion
2160 on some platforms. */
2161 return ferror (f) || fclose (f) != 0;
2167 if ac_fn_c_try_run
"$LINENO"; then :
2168 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2172 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2173 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2177 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2180 } # ac_fn_c_compute_int
2182 # ac_fn_c_check_func LINENO FUNC VAR
2183 # ----------------------------------
2184 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2185 ac_fn_c_check_func
()
2187 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2191 $as_echo_n "(cached) " >&6
2193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2195 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2197 #define $2 innocuous_$2
2199 /* System header to define __stub macros and hopefully few prototypes,
2200 which can conflict with char $2 (); below.
2201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2202 <limits.h> exists even on freestanding compilers. */
2205 # include <limits.h>
2207 # include <assert.h>
2212 /* Override any GCC internal prototype to avoid an error.
2213 Use char because int might match the return type of a GCC
2214 builtin and then its argument prototype would still apply. */
2219 /* The GNU C library defines this for functions which it implements
2220 to always fail with ENOSYS. Some functions are actually named
2221 something starting with __ and the normal name is an alias. */
2222 #if defined __stub_$2 || defined __stub___$2
2234 if ac_fn_c_try_link
"$LINENO"; then :
2239 rm -f core conftest.err conftest.
$ac_objext \
2240 conftest
$ac_exeext conftest.
$ac_ext
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2247 } # ac_fn_c_check_func
2249 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2250 # -------------------------------------------
2251 # Tests whether TYPE exists after having included INCLUDES, setting cache
2252 # variable VAR accordingly.
2253 ac_fn_c_check_type
()
2255 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257 $as_echo_n "checking for $2... " >&6; }
2258 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259 $as_echo_n "(cached) " >&6
2262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2274 if ac_fn_c_try_compile
"$LINENO"; then :
2275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2287 if ac_fn_c_try_compile
"$LINENO"; then :
2292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298 $as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2301 } # ac_fn_c_check_type
2303 # ac_fn_c_check_decl LINENO SYMBOL VAR
2304 # ------------------------------------
2305 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2306 ac_fn_c_check_decl
()
2308 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2309 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2310 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2312 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2313 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2314 $as_echo_n "(cached) " >&6
2316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2322 #ifndef $as_decl_name
2324 (void) $as_decl_use;
2326 (void) $as_decl_name;
2334 if ac_fn_c_try_compile
"$LINENO"; then :
2339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2346 } # ac_fn_c_check_decl
2348 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2349 # ----------------------------------------------------
2350 # Tries to find if the field MEMBER exists in type AGGR, after including
2351 # INCLUDES, setting cache variable VAR accordingly.
2352 ac_fn_c_check_member
()
2354 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2356 $as_echo_n "checking for $2.$3... " >&6; }
2357 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2358 $as_echo_n "(cached) " >&6
2360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2373 if ac_fn_c_try_compile
"$LINENO"; then :
2376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2383 if (sizeof ac_aggr.$3)
2389 if ac_fn_c_try_compile
"$LINENO"; then :
2394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2403 } # ac_fn_c_check_member
2405 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2406 # --------------------------------------
2407 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2408 ac_fn_cxx_check_decl
()
2410 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2411 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2412 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2414 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2415 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2416 $as_echo_n "(cached) " >&6
2418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2424 #ifndef $as_decl_name
2426 (void) $as_decl_use;
2428 (void) $as_decl_name;
2436 if ac_fn_cxx_try_compile
"$LINENO"; then :
2441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2448 } # ac_fn_cxx_check_decl
2449 cat >config.log
<<_ACEOF
2450 This file contains any messages produced by compilers while
2451 running configure, to aid debugging if configure makes a mistake.
2453 It was created by $as_me, which was
2454 generated by GNU Autoconf 2.64. Invocation command line was
2466 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2467 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2468 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2469 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2470 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2472 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2473 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2475 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2476 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2477 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2478 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2479 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2480 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2481 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir
=.
2490 $as_echo "PATH: $as_dir"
2506 # Keep a trace of the command line.
2507 # Strip out --no-create and --no-recursion so they do not pile up.
2508 # Strip out --silent because we don't want to record it for future runs.
2509 # Also quote any args containing shell meta-characters.
2510 # Make two passes to allow for proper duplicate-argument suppression.
2514 ac_must_keep_next
=false
2520 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2521 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2522 |
-silent |
--silent |
--silen |
--sile |
--sil)
2525 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2528 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2530 as_fn_append ac_configure_args1
" '$ac_arg'"
2531 if test $ac_must_keep_next = true
; then
2532 ac_must_keep_next
=false
# Got value, back to normal.
2535 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2536 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2537 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2538 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2539 case "$ac_configure_args0 " in
2540 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2543 -* ) ac_must_keep_next
=true
;;
2546 as_fn_append ac_configure_args
" '$ac_arg'"
2551 { ac_configure_args0
=; unset ac_configure_args0
;}
2552 { ac_configure_args1
=; unset ac_configure_args1
;}
2554 # When interrupted or exit'd, cleanup temporary files, and complete
2555 # config.log. We remove comments because anyway the quotes in there
2556 # would cause problems or look ugly.
2557 # WARNING: Use '\'' to represent an apostrophe within the trap.
2558 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2559 trap 'exit_status=$?
2560 # Save into config.log some information that might help in debugging.
2565 ## ---------------- ##
2566 ## Cache variables. ##
2567 ## ---------------- ##
2570 # The following way of writing the cache mishandles newlines in values,
2572 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2573 eval ac_val=\$$ac_var
2577 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2578 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2581 _ | IFS | as_nl) ;; #(
2582 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2583 *) { eval $ac_var=; unset $ac_var;} ;;
2588 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2589 *${as_nl}ac_space=\ *)
2591 "s/'\''/'\''\\\\'\'''\''/g;
2592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2603 ## ----------------- ##
2604 ## Output variables. ##
2605 ## ----------------- ##
2608 for ac_var in $ac_subst_vars
2610 eval ac_val=\$$ac_var
2612 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2614 $as_echo "$ac_var='\''$ac_val'\''"
2618 if test -n "$ac_subst_files"; then
2620 ## ------------------- ##
2621 ## File substitutions. ##
2622 ## ------------------- ##
2625 for ac_var
in $ac_subst_files
2627 eval ac_val
=\$
$ac_var
2629 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2631 $as_echo "$ac_var='\''$ac_val'\''"
2636 if test -s confdefs.h; then
2646 test "$ac_signal" != 0 &&
2647 $as_echo "$as_me: caught signal $ac_signal"
2648 $as_echo "$as_me: exit $exit_status"
2650 rm -f core *.core core.conftest.* &&
2651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2654 for ac_signal
in 1 2 13 15; do
2655 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2659 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2660 rm -f -r conftest
* confdefs.h
2662 $as_echo "/* confdefs.h */" > confdefs.h
2664 # Predefined preprocessor variables.
2666 cat >>confdefs.h
<<_ACEOF
2667 #define PACKAGE_NAME "$PACKAGE_NAME"
2670 cat >>confdefs.h
<<_ACEOF
2671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2674 cat >>confdefs.h
<<_ACEOF
2675 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2678 cat >>confdefs.h
<<_ACEOF
2679 #define PACKAGE_STRING "$PACKAGE_STRING"
2682 cat >>confdefs.h
<<_ACEOF
2683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2686 cat >>confdefs.h
<<_ACEOF
2687 #define PACKAGE_URL "$PACKAGE_URL"
2691 # Let the site file select an alternate cache file if it wants to.
2692 # Prefer an explicitly selected file to automatically selected ones.
2695 if test -n "$CONFIG_SITE"; then
2696 ac_site_file1
=$CONFIG_SITE
2697 elif test "x$prefix" != xNONE
; then
2698 ac_site_file1
=$prefix/share
/config.site
2699 ac_site_file2
=$prefix/etc
/config.site
2701 ac_site_file1
=$ac_default_prefix/share
/config.site
2702 ac_site_file2
=$ac_default_prefix/etc
/config.site
2704 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2706 test "x$ac_site_file" = xNONE
&& continue
2707 if test -r "$ac_site_file"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2709 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2710 sed 's/^/| /' "$ac_site_file" >&5
2715 if test -r "$cache_file"; then
2716 # Some versions of bash will fail to source /dev/null (special
2717 # files actually), so we avoid doing that.
2718 if test -f "$cache_file"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2720 $as_echo "$as_me: loading cache $cache_file" >&6;}
2722 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2723 *) .
"./$cache_file";;
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2728 $as_echo "$as_me: creating cache $cache_file" >&6;}
2732 # Check that the precious variables saved in the cache have kept the same
2734 ac_cache_corrupted
=false
2735 for ac_var
in $ac_precious_vars; do
2736 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2737 eval ac_new_set
=\
$ac_env_${ac_var}_set
2738 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2739 eval ac_new_val
=\
$ac_env_${ac_var}_value
2740 case $ac_old_set,$ac_new_set in
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2743 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2744 ac_cache_corrupted
=: ;;
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2747 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2748 ac_cache_corrupted
=: ;;
2751 if test "x$ac_old_val" != "x$ac_new_val"; then
2752 # differences in whitespace do not lead to failure.
2753 ac_old_val_w
=`echo x $ac_old_val`
2754 ac_new_val_w
=`echo x $ac_new_val`
2755 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2757 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2758 ac_cache_corrupted
=:
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2761 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2762 eval $ac_var=\
$ac_old_val
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2765 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2767 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2770 # Pass precious variables to config.status.
2771 if test "$ac_new_set" = set; then
2773 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2774 *) ac_arg
=$ac_var=$ac_new_val ;;
2776 case " $ac_configure_args " in
2777 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2778 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2782 if $ac_cache_corrupted; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2786 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2787 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2789 ## -------------------- ##
2790 ## Main body of script. ##
2791 ## -------------------- ##
2794 ac_cpp
='$CPP $CPPFLAGS'
2795 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2803 ac_config_headers
="$ac_config_headers config.h:config.in"
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2807 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2808 # Check whether --enable-maintainer-mode was given.
2809 if test "${enable_maintainer_mode+set}" = set; then :
2810 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2812 USE_MAINTAINER_MODE
=no
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2816 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2817 if test $USE_MAINTAINER_MODE = yes; then
2818 MAINTAINER_MODE_TRUE
=
2819 MAINTAINER_MODE_FALSE
='#'
2821 MAINTAINER_MODE_TRUE
='#'
2822 MAINTAINER_MODE_FALSE
=
2825 MAINT
=$MAINTAINER_MODE_TRUE
2829 # Set the 'development' global.
2830 .
$srcdir/..
/bfd
/development.sh
2833 ac_cpp
='$CPP $CPPFLAGS'
2834 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2837 if test -n "$ac_tool_prefix"; then
2838 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2839 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC
="$CC" # Let the user override the test.
2848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir
=.
2853 for ac_exec_ext
in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 if test -n "$CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2876 if test -z "$ac_cv_prog_CC"; then
2878 # Extract the first word of "gcc", so it can be a program name with args.
2879 set dummy gcc
; ac_word
=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2883 $as_echo_n "(cached) " >&6
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir
=.
2893 for ac_exec_ext
in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_prog_ac_ct_CC
="gcc"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2906 if test -n "$ac_ct_CC"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2908 $as_echo "$ac_ct_CC" >&6; }
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2914 if test "x$ac_ct_CC" = x
; then
2917 case $cross_compiling:$ac_tool_warned in
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned
=yes ;;
2929 if test -z "$CC"; then
2930 if test -n "$ac_tool_prefix"; then
2931 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2932 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if test "${ac_cv_prog_CC+set}" = set; then :
2936 $as_echo_n "(cached) " >&6
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC
="$CC" # Let the user override the test.
2941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2945 test -z "$as_dir" && as_dir
=.
2946 for ac_exec_ext
in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2970 if test -z "$CC"; then
2971 # Extract the first word of "cc", so it can be a program name with args.
2972 set dummy cc
; ac_word
=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if test "${ac_cv_prog_CC+set}" = set; then :
2976 $as_echo_n "(cached) " >&6
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC
="$CC" # Let the user override the test.
2982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir
=.
2987 for ac_exec_ext
in '' $ac_executable_extensions; do
2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2990 ac_prog_rejected
=yes
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 if test $ac_prog_rejected = yes; then
3002 # We found a bogon in the path, so make sure we never use it.
3003 set dummy
$ac_cv_prog_CC
3005 if test $# != 0; then
3006 # We chose a different compiler from the bogus one.
3007 # However, it has the same basename, so the bogon will be chosen
3008 # first if we set CC to just the basename; use the full file name.
3010 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3016 if test -n "$CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3026 if test -z "$CC"; then
3027 if test -n "$ac_tool_prefix"; then
3028 for ac_prog
in cl.exe
3030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3031 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC
="$CC" # Let the user override the test.
3040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir
=.
3045 for ac_exec_ext
in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3067 test -n "$CC" && break
3070 if test -z "$CC"; then
3072 for ac_prog
in cl.exe
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy
$ac_prog; ac_word
=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$ac_ct_CC"; then
3082 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir
=.
3089 for ac_exec_ext
in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_ac_ct_CC
="$ac_prog"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3102 if test -n "$ac_ct_CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3104 $as_echo "$ac_ct_CC" >&6; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3111 test -n "$ac_ct_CC" && break
3114 if test "x$ac_ct_CC" = x
; then
3117 case $cross_compiling:$ac_tool_warned in
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121 ac_tool_warned
=yes ;;
3130 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 as_fn_error
"no acceptable C compiler found in \$PATH
3133 See \`config.log' for more details." "$LINENO" 5; }
3135 # Provide some information about the compiler.
3136 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3139 for ac_option
in --version -v -V -qversion; do
3140 { { ac_try
="$ac_compiler $ac_option >&5"
3142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146 $as_echo "$ac_try_echo"; } >&5
3147 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3149 if test -s conftest.err; then
3151 ... rest of stderr output deleted ...
3152 10q' conftest.err >conftest.er1
3153 cat conftest.er1 >&5
3154 rm -f conftest.er1 conftest.err
3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157 test $ac_status = 0; }
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3171 ac_clean_files_save=$ac_clean_files
3172 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3173 # Try to create an executable without -o first, disregard a.out.
3174 # It will help us diagnose broken compilers, and finding out an intuition
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3177 $as_echo_n "checking for C compiler default output file name... " >&6; }
3178 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3180 # The possible output files:
3181 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3184 for ac_file in $ac_files
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3188 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3193 if { { ac_try="$ac_link_default"
3195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3196 *) ac_try_echo
=$ac_try;;
3198 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_link_default") 2>&5
3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }; then :
3204 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3205 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3206 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3207 # so that the user can short-circuit this test for compilers unknown to
3209 for ac_file
in $ac_files ''
3211 test -f "$ac_file" ||
continue
3213 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3216 # We found the default executable, but exeext='' is most
3220 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3222 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224 # We set ac_cv_exeext here because the later test for it is not
3225 # safe: cross compilers may not add the suffix if given an `-o'
3226 # argument, so we may need to know it at that point already.
3227 # Even if this section looks crufty: it has the advantage of
3234 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3240 $as_echo "$ac_file" >&6; }
3241 if test -z "$ac_file"; then :
3242 $as_echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.
$ac_ext >&5
3245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247 { as_fn_set_status
77
3248 as_fn_error
"C compiler cannot create executables
3249 See \`config.log' for more details." "$LINENO" 5; }; }
3251 ac_exeext
=$ac_cv_exeext
3253 # Check that the compiler produces executables we can run. If not, either
3254 # the compiler is broken, or we cross compile.
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3256 $as_echo_n "checking whether the C compiler works... " >&6; }
3257 # If not cross compiling, check that we can run a simple program.
3258 if test "$cross_compiling" != yes; then
3259 if { ac_try
='./$ac_file'
3260 { { case "(($ac_try" in
3261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_try") 2>&5
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; }; then
3272 if test "$cross_compiling" = maybe; then
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error "cannot run C compiled programs.
3278 If you meant to cross compile
, use \
`--host'.
3279 See \`config.log
' for more details." "$LINENO" 5; }
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 $as_echo "yes" >&6; }
3286 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3287 ac_clean_files=$ac_clean_files_save
3288 # Check that the compiler produces executables we can run. If not, either
3289 # the compiler is broken, or we cross compile.
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3291 $as_echo_n "checking whether we are cross compiling... " >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3293 $as_echo "$cross_compiling" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3296 $as_echo_n "checking for suffix of executables... " >&6; }
3297 if { { ac_try="$ac_link"
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304 (eval "$ac_link") 2>&5
3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }; then :
3308 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3309 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3310 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3312 for ac_file
in conftest.exe conftest conftest.
*; do
3313 test -f "$ac_file" ||
continue
3315 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3316 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3325 See \`config.log' for more details." "$LINENO" 5; }
3327 rm -f conftest
$ac_cv_exeext
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3329 $as_echo "$ac_cv_exeext" >&6; }
3331 rm -f conftest.
$ac_ext
3332 EXEEXT
=$ac_cv_exeext
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3335 $as_echo_n "checking for suffix of object files... " >&6; }
3336 if test "${ac_cv_objext+set}" = set; then :
3337 $as_echo_n "(cached) " >&6
3339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3350 rm -f conftest.o conftest.obj
3351 if { { ac_try
="$ac_compile"
3353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_compile") 2>&5
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }; then :
3362 for ac_file in conftest.o conftest.obj conftest.*; do
3363 test -f "$ac_file" || continue;
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3371 $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error "cannot compute suffix of object files
: cannot compile
3377 See \
`config.log' for more details." "$LINENO" 5; }
3379 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3382 $as_echo "$ac_cv_objext" >&6; }
3383 OBJEXT=$ac_cv_objext
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3386 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3387 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3388 $as_echo_n "(cached) " >&6
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3404 if ac_fn_c_try_compile "$LINENO"; then :
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3414 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3415 if test $ac_compiler_gnu = yes; then
3420 ac_test_CFLAGS=${CFLAGS+set}
3421 ac_save_CFLAGS=$CFLAGS
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3423 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3424 if test "${ac_cv_prog_cc_g+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3427 ac_save_c_werror_flag=$ac_c_werror_flag
3428 ac_c_werror_flag=yes
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3442 if ac_fn_c_try_compile "$LINENO"; then :
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3457 if ac_fn_c_try_compile "$LINENO"; then :
3460 ac_c_werror_flag=$ac_save_c_werror_flag
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3473 if ac_fn_c_try_compile "$LINENO"; then :
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_c_werror_flag=$ac_save_c_werror_flag
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3484 $as_echo "$ac_cv_prog_cc_g" >&6; }
3485 if test "$ac_test_CFLAGS" = set; then
3486 CFLAGS=$ac_save_CFLAGS
3487 elif test $ac_cv_prog_cc_g = yes; then
3488 if test "$GCC" = yes; then
3494 if test "$GCC" = yes; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3501 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3502 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3505 ac_cv_prog_cc_c89=no
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3511 #include <sys/types.h>
3512 #include <sys/stat.h>
3513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3514 struct buf { int x; };
3515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3516 static char *e (p, i)
3522 static char *f (char * (*g) (char **, int), char **p, ...)
3527 s = g (p, va_arg (v,int));
3532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3533 function prototypes and stuff, but not '\xHH' hex character constants.
3534 These don't provoke an error unfortunately, instead are silently treated
3535 as 'x'. The following induces an error, until -std is added to get
3536 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3537 array size at least. It's necessary to write '\x00'==0 to get something
3538 that's true only with -std. */
3539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3541 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3542 inside strings and character constants. */
3544 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3546 int test (int i, double x);
3547 struct s1 {int (*f) (int a);};
3548 struct s2 {int (*f) (double a);};
3549 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3555 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3560 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3561 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3563 CC="$ac_save_CC $ac_arg"
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565 ac_cv_prog_cc_c89=$ac_arg
3567 rm -f core conftest.err conftest.$ac_objext
3568 test "x$ac_cv_prog_cc_c89" != "xno" && break
3570 rm -f conftest.$ac_ext
3575 case "x$ac_cv_prog_cc_c89" in
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3578 $as_echo "none needed" >&6; } ;;
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3581 $as_echo "unsupported" >&6; } ;;
3583 CC="$CC $ac_cv_prog_cc_c89"
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3585 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3587 if test "x$ac_cv_prog_cc_c89" != xno; then :
3592 ac_cpp='$CPP $CPPFLAGS'
3593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598 ac_cpp='$CXXCPP $CPPFLAGS'
3599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3602 if test -z "$CXX"; then
3603 if test -n "$CCC"; then
3606 if test -n "$ac_tool_prefix"; then
3607 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 $as_echo_n "checking for $ac_word... " >&6; }
3613 if test "${ac_cv_prog_CXX+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3616 if test -n "$CXX"; then
3617 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 test -z "$as_dir" && as_dir=.
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3626 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 if test -n "$CXX"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3639 $as_echo "$CXX" >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3646 test -n "$CXX" && break
3649 if test -z "$CXX"; then
3651 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3653 # Extract the first word of "$ac_prog", so it can be a program name with args.
3654 set dummy $ac_prog; ac_word=$2
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656 $as_echo_n "checking for $ac_word... " >&6; }
3657 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3658 $as_echo_n "(cached) " >&6
3660 if test -n "$ac_ct_CXX"; then
3661 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670 ac_cv_prog_ac_ct_CXX="$ac_prog"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3681 if test -n "$ac_ct_CXX"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3683 $as_echo "$ac_ct_CXX" >&6; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3690 test -n "$ac_ct_CXX" && break
3693 if test "x$ac_ct_CXX" = x; then
3696 case $cross_compiling:$ac_tool_warned in
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3700 ac_tool_warned=yes ;;
3708 # Provide some information about the compiler.
3709 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3712 for ac_option in --version -v -V -qversion; do
3713 { { ac_try="$ac_compiler $ac_option >&5"
3715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3716 *) ac_try_echo
=$ac_try;;
3718 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719 $as_echo "$ac_try_echo"; } >&5
3720 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3722 if test -s conftest.err
; then
3724 ... rest of stderr output deleted ...
3725 10q' conftest.err
>conftest.er1
3726 cat conftest.er1
>&5
3727 rm -f conftest.er1 conftest.err
3729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730 test $ac_status = 0; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3734 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3735 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3752 if ac_fn_cxx_try_compile
"$LINENO"; then :
3757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3758 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3762 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3763 if test $ac_compiler_gnu = yes; then
3768 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3769 ac_save_CXXFLAGS
=$CXXFLAGS
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3771 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3772 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3773 $as_echo_n "(cached) " >&6
3775 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3776 ac_cxx_werror_flag
=yes
3779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3790 if ac_fn_cxx_try_compile
"$LINENO"; then :
3791 ac_cv_prog_cxx_g
=yes
3794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3805 if ac_fn_cxx_try_compile
"$LINENO"; then :
3808 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3821 if ac_fn_cxx_try_compile
"$LINENO"; then :
3822 ac_cv_prog_cxx_g
=yes
3824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3829 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3832 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3833 if test "$ac_test_CXXFLAGS" = set; then
3834 CXXFLAGS
=$ac_save_CXXFLAGS
3835 elif test $ac_cv_prog_cxx_g = yes; then
3836 if test "$GXX" = yes; then
3842 if test "$GXX" = yes; then
3849 ac_cpp
='$CPP $CPPFLAGS'
3850 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3857 ac_cpp
='$CPP $CPPFLAGS'
3858 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3862 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3863 # On Suns, sometimes $CPP names a directory.
3864 if test -n "$CPP" && test -d "$CPP"; then
3867 if test -z "$CPP"; then
3868 if test "${ac_cv_prog_CPP+set}" = set; then :
3869 $as_echo_n "(cached) " >&6
3871 # Double quotes because CPP needs to be expanded
3872 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3875 for ac_c_preproc_warn_flag
in '' yes
3877 # Use a header file that comes with gcc, so configuring glibc
3878 # with a fresh cross-compiler works.
3879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3880 # <limits.h> exists even on freestanding compilers.
3881 # On the NeXT, cc -E runs the code through the compiler's parser,
3882 # not just through cpp. "Syntax error" is here to catch this case.
3883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3886 # include <limits.h>
3888 # include <assert.h>
3892 if ac_fn_c_try_cpp
"$LINENO"; then :
3895 # Broken: fails on valid input.
3898 rm -f conftest.err conftest.
$ac_ext
3900 # OK, works on sane cases. Now check whether nonexistent headers
3901 # can be detected and how.
3902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3904 #include <ac_nonexistent.h>
3906 if ac_fn_c_try_cpp
"$LINENO"; then :
3907 # Broken: success on invalid input.
3910 # Passes both tests.
3914 rm -f conftest.err conftest.
$ac_ext
3917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3918 rm -f conftest.err conftest.
$ac_ext
3919 if $ac_preproc_ok; then :
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3932 $as_echo "$CPP" >&6; }
3934 for ac_c_preproc_warn_flag
in '' yes
3936 # Use a header file that comes with gcc, so configuring glibc
3937 # with a fresh cross-compiler works.
3938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3939 # <limits.h> exists even on freestanding compilers.
3940 # On the NeXT, cc -E runs the code through the compiler's parser,
3941 # not just through cpp. "Syntax error" is here to catch this case.
3942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3945 # include <limits.h>
3947 # include <assert.h>
3951 if ac_fn_c_try_cpp
"$LINENO"; then :
3954 # Broken: fails on valid input.
3957 rm -f conftest.err conftest.
$ac_ext
3959 # OK, works on sane cases. Now check whether nonexistent headers
3960 # can be detected and how.
3961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963 #include <ac_nonexistent.h>
3965 if ac_fn_c_try_cpp
"$LINENO"; then :
3966 # Broken: success on invalid input.
3969 # Passes both tests.
3973 rm -f conftest.err conftest.
$ac_ext
3976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3977 rm -f conftest.err conftest.
$ac_ext
3978 if $ac_preproc_ok; then :
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3984 See \`config.log' for more details." "$LINENO" 5; }
3988 ac_cpp
='$CPP $CPPFLAGS'
3989 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3995 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3996 if test "${ac_cv_path_GREP+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3999 if test -z "$GREP"; then
4000 ac_path_GREP_found
=false
4001 # Loop through the user's path and test for each of PROGNAME-LIST
4002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4003 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4006 test -z "$as_dir" && as_dir
=.
4007 for ac_prog
in grep ggrep
; do
4008 for ac_exec_ext
in '' $ac_executable_extensions; do
4009 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4010 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4011 # Check for GNU ac_path_GREP and select it if it is found.
4012 # Check for GNU $ac_path_GREP
4013 case `"$ac_path_GREP" --version 2>&1` in
4015 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4018 $as_echo_n 0123456789 >"conftest.in"
4021 cat "conftest.in" "conftest.in" >"conftest.tmp"
4022 mv "conftest.tmp" "conftest.in"
4023 cp "conftest.in" "conftest.nl"
4024 $as_echo 'GREP' >> "conftest.nl"
4025 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4026 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4027 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4028 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4029 # Best one so far, save it but keep looking for a better one
4030 ac_cv_path_GREP
="$ac_path_GREP"
4031 ac_path_GREP_max
=$ac_count
4033 # 10*(2^10) chars as input seems more than enough
4034 test $ac_count -gt 10 && break
4036 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4039 $ac_path_GREP_found && break 3
4044 if test -z "$ac_cv_path_GREP"; then
4045 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4048 ac_cv_path_GREP
=$GREP
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4053 $as_echo "$ac_cv_path_GREP" >&6; }
4054 GREP
="$ac_cv_path_GREP"
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4058 $as_echo_n "checking for egrep... " >&6; }
4059 if test "${ac_cv_path_EGREP+set}" = set; then :
4060 $as_echo_n "(cached) " >&6
4062 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4063 then ac_cv_path_EGREP
="$GREP -E"
4065 if test -z "$EGREP"; then
4066 ac_path_EGREP_found
=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4069 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4072 test -z "$as_dir" && as_dir
=.
4073 for ac_prog
in egrep; do
4074 for ac_exec_ext
in '' $ac_executable_extensions; do
4075 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4076 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4077 # Check for GNU ac_path_EGREP and select it if it is found.
4078 # Check for GNU $ac_path_EGREP
4079 case `"$ac_path_EGREP" --version 2>&1` in
4081 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4084 $as_echo_n 0123456789 >"conftest.in"
4087 cat "conftest.in" "conftest.in" >"conftest.tmp"
4088 mv "conftest.tmp" "conftest.in"
4089 cp "conftest.in" "conftest.nl"
4090 $as_echo 'EGREP' >> "conftest.nl"
4091 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4092 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4093 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4094 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4095 # Best one so far, save it but keep looking for a better one
4096 ac_cv_path_EGREP
="$ac_path_EGREP"
4097 ac_path_EGREP_max
=$ac_count
4099 # 10*(2^10) chars as input seems more than enough
4100 test $ac_count -gt 10 && break
4102 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4105 $ac_path_EGREP_found && break 3
4110 if test -z "$ac_cv_path_EGREP"; then
4111 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4114 ac_cv_path_EGREP
=$EGREP
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4120 $as_echo "$ac_cv_path_EGREP" >&6; }
4121 EGREP
="$ac_cv_path_EGREP"
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4125 $as_echo_n "checking for ANSI C header files... " >&6; }
4126 if test "${ac_cv_header_stdc+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4144 if ac_fn_c_try_compile
"$LINENO"; then :
4145 ac_cv_header_stdc
=yes
4147 ac_cv_header_stdc
=no
4149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4151 if test $ac_cv_header_stdc = yes; then
4152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159 $EGREP "memchr" >/dev
/null
2>&1; then :
4162 ac_cv_header_stdc
=no
4168 if test $ac_cv_header_stdc = yes; then
4169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176 $EGREP "free" >/dev
/null
2>&1; then :
4179 ac_cv_header_stdc
=no
4185 if test $ac_cv_header_stdc = yes; then
4186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4187 if test "$cross_compiling" = yes; then :
4190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4194 #if ((' ' & 0x0FF) == 0x020)
4195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4198 # define ISLOWER(c) \
4199 (('a' <= (c) && (c) <= 'i') \
4200 || ('j' <= (c) && (c) <= 'r') \
4201 || ('s' <= (c) && (c) <= 'z'))
4202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4210 for (i = 0; i < 256; i++)
4211 if (XOR (islower (i), ISLOWER (i))
4212 || toupper (i) != TOUPPER (i))
4217 if ac_fn_c_try_run
"$LINENO"; then :
4220 ac_cv_header_stdc
=no
4222 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4223 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4229 $as_echo "$ac_cv_header_stdc" >&6; }
4230 if test $ac_cv_header_stdc = yes; then
4232 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4236 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4237 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4238 inttypes.h stdint.h unistd.h
4240 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4243 eval as_val
=\$
$as_ac_Header
4244 if test "x$as_val" = x
""yes; then :
4245 cat >>confdefs.h
<<_ACEOF
4246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4255 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4256 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4263 if test "$MINIX" = yes; then
4265 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4268 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4271 $as_echo "#define _MINIX 1" >>confdefs.h
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4277 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4278 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4284 # define __EXTENSIONS__ 1
4285 $ac_includes_default
4294 if ac_fn_c_try_compile
"$LINENO"; then :
4295 ac_cv_safe_to_define___extensions__
=yes
4297 ac_cv_safe_to_define___extensions__
=no
4299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4302 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4303 test $ac_cv_safe_to_define___extensions__ = yes &&
4304 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4306 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4308 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4310 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4312 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4316 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4317 for ac_t
in install-sh
install.sh shtool
; do
4318 if test -f "$ac_dir/$ac_t"; then
4320 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4325 if test -z "$ac_aux_dir"; then
4326 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4329 # These three variables are undocumented and unsupported,
4330 # and are intended to be withdrawn in a future Autoconf release.
4331 # They can cause serious problems if a builder's source tree is in a directory
4332 # whose full name contains unusual characters.
4333 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4334 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4335 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4338 # Make sure we can run config.sub.
4339 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4340 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4343 $as_echo_n "checking build system type... " >&6; }
4344 if test "${ac_cv_build+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4347 ac_build_alias
=$build_alias
4348 test "x$ac_build_alias" = x
&&
4349 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4350 test "x$ac_build_alias" = x
&&
4351 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4352 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4353 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4357 $as_echo "$ac_cv_build" >&6; }
4358 case $ac_cv_build in
4360 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4363 ac_save_IFS
=$IFS; IFS
='-'
4369 # Remember, the first character of IFS is used to create $*,
4370 # except with old shells:
4373 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4377 $as_echo_n "checking host system type... " >&6; }
4378 if test "${ac_cv_host+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4381 if test "x$host_alias" = x
; then
4382 ac_cv_host
=$ac_cv_build
4384 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4385 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4390 $as_echo "$ac_cv_host" >&6; }
4393 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4396 ac_save_IFS
=$IFS; IFS
='-'
4402 # Remember, the first character of IFS is used to create $*,
4403 # except with old shells:
4406 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4410 $as_echo_n "checking target system type... " >&6; }
4411 if test "${ac_cv_target+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4414 if test "x$target_alias" = x
; then
4415 ac_cv_target
=$ac_cv_host
4417 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4418 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4423 $as_echo "$ac_cv_target" >&6; }
4424 case $ac_cv_target in
4426 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4428 target
=$ac_cv_target
4429 ac_save_IFS
=$IFS; IFS
='-'
4435 # Remember, the first character of IFS is used to create $*,
4436 # except with old shells:
4439 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4442 # The aliases save the names the user supplied, while $host etc.
4443 # will get canonicalized.
4444 test -n "$target_alias" &&
4445 test "$program_prefix$program_suffix$program_transform_name" = \
4447 program_prefix
=${target_alias}-
4449 # The tests for host and target for $enable_largefile require
4454 # As the $enable_largefile decision depends on --enable-plugins we must set it
4455 # even in directories otherwise not depending on the $plugins option.
4459 for ac_header
in dlfcn.h
4461 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4463 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
4464 cat >>confdefs.h
<<_ACEOF
4465 #define HAVE_DLFCN_H 1
4472 for ac_header
in windows.h
4474 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4476 if test "x$ac_cv_header_windows_h" = x
""yes; then :
4477 cat >>confdefs.h
<<_ACEOF
4478 #define HAVE_WINDOWS_H 1
4486 # Check whether --enable-plugins was given.
4487 if test "${enable_plugins+set}" = set; then :
4488 enableval
=$enable_plugins; case "${enableval}" in
4491 if test "$maybe_plugins" != "yes" ; then
4492 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4496 plugins
=$maybe_plugins
4500 if test "$plugins" = "yes"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4502 $as_echo_n "checking for library containing dlopen... " >&6; }
4503 if test "${ac_cv_search_dlopen+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
4506 ac_func_search_save_LIBS
=$LIBS
4507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4510 /* Override any GCC internal prototype to avoid an error.
4511 Use char because int might match the return type of a GCC
4512 builtin and then its argument prototype would still apply. */
4525 for ac_lib
in '' dl
; do
4526 if test -z "$ac_lib"; then
4527 ac_res
="none required"
4530 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4532 if ac_fn_c_try_link
"$LINENO"; then :
4533 ac_cv_search_dlopen
=$ac_res
4535 rm -f core conftest.err conftest.
$ac_objext \
4537 if test "${ac_cv_search_dlopen+set}" = set; then :
4541 if test "${ac_cv_search_dlopen+set}" = set; then :
4544 ac_cv_search_dlopen
=no
4547 LIBS
=$ac_func_search_save_LIBS
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4550 $as_echo "$ac_cv_search_dlopen" >&6; }
4551 ac_res
=$ac_cv_search_dlopen
4552 if test "$ac_res" != no
; then :
4553 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4561 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4562 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4563 # are mutually exclusive; and without procfs support, the bfd/ elf module
4564 # cannot provide certain routines such as elfcore_write_prpsinfo
4565 # or elfcore_write_prstatus. So unless the user explicitly requested
4566 # large-file support through the --enable-largefile switch, disable
4567 # large-file support in favor of procfs support.
4568 test "${target}" = "${host}" -a "x$plugins" = xno \
4569 && : ${enable_largefile="no"}
4573 # Check whether --enable-largefile was given.
4574 if test "${enable_largefile+set}" = set; then :
4575 enableval
=$enable_largefile;
4578 if test "$enable_largefile" != no
; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4581 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4582 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4585 ac_cv_sys_largefile_CC
=no
4586 if test "$GCC" != yes; then
4589 # IRIX 6.2 and later do not support large files by default,
4590 # so use the C compiler's -n32 option if that helps.
4591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <sys/types.h>
4594 /* Check that off_t can represent 2**63 - 1 correctly.
4595 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4596 since some C++ compilers masquerading as C compilers
4597 incorrectly reject 9223372036854775807. */
4598 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4599 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4600 && LARGE_OFF_T % 2147483647 == 1)
4610 if ac_fn_c_try_compile
"$LINENO"; then :
4613 rm -f core conftest.err conftest.
$ac_objext
4615 if ac_fn_c_try_compile
"$LINENO"; then :
4616 ac_cv_sys_largefile_CC
=' -n32'; break
4618 rm -f core conftest.err conftest.
$ac_objext
4622 rm -f conftest.
$ac_ext
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4626 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4627 if test "$ac_cv_sys_largefile_CC" != no
; then
4628 CC
=$CC$ac_cv_sys_largefile_CC
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4632 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4633 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 #include <sys/types.h>
4640 /* Check that off_t can represent 2**63 - 1 correctly.
4641 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4642 since some C++ compilers masquerading as C compilers
4643 incorrectly reject 9223372036854775807. */
4644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4646 && LARGE_OFF_T % 2147483647 == 1)
4656 if ac_fn_c_try_compile
"$LINENO"; then :
4657 ac_cv_sys_file_offset_bits
=no
; break
4659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 #define _FILE_OFFSET_BITS 64
4663 #include <sys/types.h>
4664 /* Check that off_t can represent 2**63 - 1 correctly.
4665 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4666 since some C++ compilers masquerading as C compilers
4667 incorrectly reject 9223372036854775807. */
4668 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4669 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4670 && LARGE_OFF_T % 2147483647 == 1)
4680 if ac_fn_c_try_compile
"$LINENO"; then :
4681 ac_cv_sys_file_offset_bits
=64; break
4683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4684 ac_cv_sys_file_offset_bits
=unknown
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4689 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4690 case $ac_cv_sys_file_offset_bits in #(
4693 cat >>confdefs.h
<<_ACEOF
4694 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4699 if test $ac_cv_sys_file_offset_bits = unknown
; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4701 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4702 if test "${ac_cv_sys_large_files+set}" = set; then :
4703 $as_echo_n "(cached) " >&6
4706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4708 #include <sys/types.h>
4709 /* Check that off_t can represent 2**63 - 1 correctly.
4710 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4711 since some C++ compilers masquerading as C compilers
4712 incorrectly reject 9223372036854775807. */
4713 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4714 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4715 && LARGE_OFF_T % 2147483647 == 1)
4725 if ac_fn_c_try_compile
"$LINENO"; then :
4726 ac_cv_sys_large_files
=no
; break
4728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4731 #define _LARGE_FILES 1
4732 #include <sys/types.h>
4733 /* Check that off_t can represent 2**63 - 1 correctly.
4734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4735 since some C++ compilers masquerading as C compilers
4736 incorrectly reject 9223372036854775807. */
4737 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4739 && LARGE_OFF_T % 2147483647 == 1)
4749 if ac_fn_c_try_compile
"$LINENO"; then :
4750 ac_cv_sys_large_files
=1; break
4752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4753 ac_cv_sys_large_files
=unknown
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4758 $as_echo "$ac_cv_sys_large_files" >&6; }
4759 case $ac_cv_sys_large_files in #(
4762 cat >>confdefs.h
<<_ACEOF
4763 #define _LARGE_FILES $ac_cv_sys_large_files
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4776 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4777 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4780 am_cv_prog_cc_stdc
=no
4782 # Don't try gcc -ansi; that turns off useful extensions and
4783 # breaks some systems' header files.
4784 # AIX -qlanglvl=ansi
4785 # Ultrix and OSF/1 -std1
4786 # HP-UX 10.20 and later -Ae
4787 # HP-UX older versions -Aa -D_HPUX_SOURCE
4788 # SVR4 -Xc -D__EXTENSIONS__
4789 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4791 CC
="$ac_save_CC $ac_arg"
4792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4796 #include <sys/types.h>
4797 #include <sys/stat.h>
4798 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4799 struct buf { int x; };
4800 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4801 static char *e (p, i)
4807 static char *f (char * (*g) (char **, int), char **p, ...)
4812 s = g (p, va_arg (v,int));
4816 int test (int i, double x);
4817 struct s1 {int (*f) (int a);};
4818 struct s2 {int (*f) (double a);};
4819 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4827 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4833 if ac_fn_c_try_compile
"$LINENO"; then :
4834 am_cv_prog_cc_stdc
="$ac_arg"; break
4836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4842 if test -z "$am_cv_prog_cc_stdc"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4844 $as_echo "none needed" >&6; }
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4847 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4849 case "x$am_cv_prog_cc_stdc" in
4851 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4854 # expand $ac_aux_dir to an absolute path
4855 am_aux_dir
=`cd $ac_aux_dir && pwd`
4857 if test x
"${install_sh}" != xset
; then
4860 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4862 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4866 # Installed binaries are usually stripped using `strip' when the user
4867 # run `make install-strip'. However `strip' might not be the right
4868 # tool to use in cross-compilation environments, therefore Automake
4869 # will honor the `STRIP' environment variable to overrule this program.
4870 if test "$cross_compiling" != no
; then
4871 if test -n "$ac_tool_prefix"; then
4872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4873 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if test "${ac_cv_prog_STRIP+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4879 if test -n "$STRIP"; then
4880 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4886 test -z "$as_dir" && as_dir
=.
4887 for ac_exec_ext
in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 STRIP
=$ac_cv_prog_STRIP
4900 if test -n "$STRIP"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4902 $as_echo "$STRIP" >&6; }
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4910 if test -z "$ac_cv_prog_STRIP"; then
4912 # Extract the first word of "strip", so it can be a program name with args.
4913 set dummy strip
; ac_word
=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4919 if test -n "$ac_ct_STRIP"; then
4920 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4926 test -z "$as_dir" && as_dir
=.
4927 for ac_exec_ext
in '' $ac_executable_extensions; do
4928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4929 ac_cv_prog_ac_ct_STRIP
="strip"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4940 if test -n "$ac_ct_STRIP"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4942 $as_echo "$ac_ct_STRIP" >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4948 if test "x$ac_ct_STRIP" = x
; then
4951 case $cross_compiling:$ac_tool_warned in
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4955 ac_tool_warned
=yes ;;
4960 STRIP
="$ac_cv_prog_STRIP"
4964 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4968 for ac_dir
in ..
"$srcdir"/..
; do
4969 for ac_t
in install-sh
install.sh shtool
; do
4970 if test -f "$ac_dir/$ac_t"; then
4972 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4977 if test -z "$ac_aux_dir"; then
4978 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4981 # These three variables are undocumented and unsupported,
4982 # and are intended to be withdrawn in a future Autoconf release.
4983 # They can cause serious problems if a builder's source tree is in a directory
4984 # whose full name contains unusual characters.
4985 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4986 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4987 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4991 test "$program_prefix" != NONE
&&
4992 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4993 # Use a double $ so make ignores it.
4994 test "$program_suffix" != NONE
&&
4995 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4996 # Double any \ or $.
4997 # By default was `s,x,x', remove it if useless.
4998 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4999 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5002 # See if we are building with C++, and substitute COMPILER.
5004 # Check whether --enable-build-with-cxx was given.
5005 if test "${enable_build_with_cxx+set}" = set; then :
5006 enableval
=$enable_build_with_cxx; case $enableval in
5010 as_fn_error
"bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
5013 enable_build_with_cxx
=no
5017 if test "$enable_build_with_cxx" = "yes"; then
5025 # Dependency checking.
5026 rm -rf .tst
2>/dev
/null
5027 mkdir .tst
2>/dev
/null
5028 if test -d .tst
; then
5033 rmdir .tst
2>/dev
/null
5035 DEPDIR
="${am__leading_dot}deps"
5037 ac_config_commands
="$ac_config_commands depdir"
5040 depcc
="$CC" am_compiler_list
=
5042 am_depcomp
=$ac_aux_dir/depcomp
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5044 $as_echo_n "checking dependency style of $depcc... " >&6; }
5045 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5048 if test -f "$am_depcomp"; then
5049 # We make a subdir and do the tests there. Otherwise we can end up
5050 # making bogus files that we don't know about and never remove. For
5051 # instance it was reported that on HP-UX the gcc test will end up
5052 # making a dummy file named `D' -- because `-MD' means `put the output
5055 # Copy depcomp to subdir because otherwise we won't find it if we're
5056 # using a relative directory.
5057 cp "$am_depcomp" conftest.dir
5059 # We will build objects and dependencies in a subdirectory because
5060 # it helps to detect inapplicable dependency modes. For instance
5061 # both Tru64's cc and ICC support -MD to output dependencies as a
5062 # side effect of compilation, but ICC will put the dependencies in
5063 # the current directory while Tru64 will put them in the object
5067 am_cv_CC_dependencies_compiler_type
=none
5068 if test "$am_compiler_list" = ""; then
5069 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5071 for depmode
in $am_compiler_list; do
5072 if test $depmode = none
; then break; fi
5074 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5075 # Setup a source with many dependencies, because some compilers
5076 # like to wrap large dependency lists on column 80 (with \), and
5077 # we should not choose a depcomp mode which is confused by this.
5079 # We need to recreate these files for each test, as the compiler may
5080 # overwrite some of them when testing with obscure command lines.
5081 # This happens at least with the AIX C compiler.
5083 for i
in 1 2 3 4 5 6; do
5084 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5085 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5086 # Solaris 8's {/usr,}/bin/sh.
5087 touch sub
/conftst
$i.h
5089 echo "include sub/conftest.Po" > confmf
5091 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5092 # mode. It turns out that the SunPro C++ compiler does not properly
5093 # handle `-M -o', and we need to detect this.
5094 depcmd
="depmode=$depmode \
5095 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5096 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5097 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5098 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5099 if env
$depcmd > conftest.err
2>&1 &&
5100 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5101 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5102 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5103 # icc doesn't choke on unknown options, it will just issue warnings
5104 # or remarks (even with -Werror). So we grep stderr for any message
5105 # that says an option was ignored or not supported.
5106 # When given -MP, icc 7.0 and 7.1 complain thusly:
5107 # icc: Command line warning: ignoring option '-M'; no argument required
5108 # The diagnosis changed in icc 8.0:
5109 # icc: Command line remark: option '-MP' not supported
5110 if (grep 'ignoring option' conftest.err ||
5111 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5112 am_cv_CC_dependencies_compiler_type
=$depmode
5113 $as_echo "$as_me:$LINENO: success" >&5
5117 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5118 sed -e 's/^/| /' < conftest.err
>&5
5124 am_cv_CC_dependencies_compiler_type
=none
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5129 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5130 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
5131 then as_fn_error
"no usable dependency style found" "$LINENO" 5
5132 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5137 # Check for the 'make' the user wants to use.
5140 # Extract the first word of "$ac_prog", so it can be a program name with args.
5141 set dummy
$ac_prog; ac_word
=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if test "${ac_cv_prog_MAKE+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5147 if test -n "$MAKE"; then
5148 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir
=.
5155 for ac_exec_ext
in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_prog_MAKE
="$ac_prog"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 MAKE
=$ac_cv_prog_MAKE
5168 if test -n "$MAKE"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5170 $as_echo "$MAKE" >&6; }
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5177 test -n "$MAKE" && break
5181 case "`$MAKE --version 2>&1 | sed 1q`" in
5186 if test "$MAKE_IS_GNU" = yes; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5195 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5197 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5198 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5199 $as_echo_n "(cached) " >&6
5201 cat >conftest.
make <<\_ACEOF
5204 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5206 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5207 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5209 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5211 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5215 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5217 $as_echo "yes" >&6; }
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5222 SET_MAKE
="MAKE=${MAKE-make}"
5226 gnulib_extra_configure_args
=
5227 # If large-file support is disabled, make sure gnulib does the same.
5228 if test "$enable_largefile" = no
; then
5229 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5232 # Configure gnulib. We need to build gnulib under some other
5233 # directory not "gnulib", to avoid the problem of both GDB and
5234 # GDBserver wanting to build it in the same directory, when building
5235 # in the source dir.
5238 in_build
="build-gnulib"
5239 in_extra_args
="$gnulib_extra_configure_args"
5241 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5242 # so they do not pile up.
5243 ac_sub_configure_args
=
5245 eval "set x $ac_configure_args"
5249 if test -n "$ac_prev"; then
5254 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5255 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5256 ac_prev
=cache_file
;;
5257 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5258 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5261 --config-cache |
-C)
5263 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5265 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5267 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5269 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5271 --disable-option-checking)
5275 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5277 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5281 # Always prepend --prefix to ensure using the same prefix
5282 # in subdir configurations.
5283 ac_arg
="--prefix=$prefix"
5285 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5287 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5290 if test "$silent" = yes; then
5291 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5294 # Always prepend --disable-option-checking to silence warnings, since
5295 # different subdirs can have different --enable and --with options.
5296 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5301 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5303 $as_echo "$ac_msg" >&6
5304 as_dir
="$ac_dir"; as_fn_mkdir_p
5308 ac_srcdir
=$srcdir/$in_src ;;
5310 ac_srcdir
=..
/$srcdir/$in_src ;;
5315 ac_sub_configure
=$ac_srcdir/configure
5317 # Make the cache file name correct relative to the subdirectory.
5319 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5321 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5324 if test -n "$in_extra_args"; then
5325 # Add the extra args at the end.
5326 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5329 { $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
5330 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5331 # The eval makes quoting arguments work.
5332 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5333 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5334 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5350 # If we haven't got the data from the intl directory,
5351 # assume NLS is disabled.
5360 if test -f ..
/intl
/config.intl
; then
5361 . ..
/intl
/config.intl
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5364 $as_echo_n "checking whether NLS is requested... " >&6; }
5365 if test x
"$USE_NLS" != xyes
; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5370 $as_echo "yes" >&6; }
5372 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5376 $as_echo_n "checking for catalogs to be installed... " >&6; }
5377 # Look for .po and .gmo files in the source directory.
5380 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
5381 # If there aren't any .gmo files the shell will give us the
5382 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5384 case "$cat" in *\
**)
5387 # The quadruple backslash is collapsed to a double backslash
5388 # by the backticks, then collapsed again by the double quotes,
5389 # leaving us with one backslash in the sed expression (right
5390 # before the dot that mustn't act as a wildcard).
5391 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5392 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
5393 # The user is allowed to set LINGUAS to a list of languages to
5394 # install catalogs for. If it's empty that means "all of them."
5395 if test "x$LINGUAS" = x
; then
5396 CATALOGS
="$CATALOGS $cat"
5397 XLINGUAS
="$XLINGUAS $lang"
5399 case "$LINGUAS" in *$lang*)
5400 CATALOGS
="$CATALOGS $cat"
5401 XLINGUAS
="$XLINGUAS $lang"
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5408 $as_echo "$LINGUAS" >&6; }
5421 localedir
='${datadir}/locale'
5424 if test x
"$USE_NLS" = xyes
; then
5425 CONFIG_ALL
="$CONFIG_ALL all-po"
5426 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
5427 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
5428 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
5431 GNULIB
=build-gnulib
/import
5433 # For Makefile dependencies.
5435 if test x
"$STDINT_H" != x
; then
5436 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
5442 cat >>confdefs.h
<<_ACEOF
5443 #define PACKAGE "$PACKAGE"
5448 # We never need to detect it in this sub-configure.
5449 # But preserve it for config.status --recheck.
5453 MAKEINFO_EXTRA_FLAGS
=""
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5455 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5456 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5457 $as_echo_n "(cached) " >&6
5459 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5460 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5461 gdb_cv_have_makeinfo_click
=yes
5463 gdb_cv_have_makeinfo_click
=no
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5467 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5468 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
5469 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5475 # Check whether --with-separate-debug-dir was given.
5476 if test "${with_separate_debug_dir+set}" = set; then :
5477 withval
=$with_separate_debug_dir;
5480 DEBUGDIR
=${libdir}/debug
5484 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5485 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5486 ac_define_dir
=`eval echo $DEBUGDIR`
5487 ac_define_dir
=`eval echo $ac_define_dir`
5489 cat >>confdefs.h
<<_ACEOF
5490 #define DEBUGDIR "$ac_define_dir"
5496 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5497 if test "x$prefix" = xNONE
; then
5498 test_prefix
=/usr
/local
5503 test_prefix
=$exec_prefix
5506 case ${ac_define_dir} in
5507 "${test_prefix}"|
"${test_prefix}/"*|\
5508 '${exec_prefix}'|
'${exec_prefix}/'*)
5513 cat >>confdefs.h
<<_ACEOF
5514 #define DEBUGDIR_RELOCATABLE $value
5520 # We can't pass paths as command line arguments.
5521 # Mingw32 tries to be clever and will convert the paths for us.
5522 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5523 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5524 # This breaks GDB's relocatable path conversions since paths passed in
5525 # config.h would not get so translated, the path prefixes no longer match.
5527 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5528 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5529 ac_define_dir
=`eval echo $bindir`
5530 ac_define_dir
=`eval echo $ac_define_dir`
5532 cat >>confdefs.h
<<_ACEOF
5533 #define BINDIR "$ac_define_dir"
5538 # GDB's datadir relocation
5542 # Check whether --with-gdb-datadir was given.
5543 if test "${with_gdb_datadir+set}" = set; then :
5544 withval
=$with_gdb_datadir;
5545 GDB_DATADIR
=$withval
5547 GDB_DATADIR
=${datadir}/gdb
5551 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5552 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5553 ac_define_dir
=`eval echo $GDB_DATADIR`
5554 ac_define_dir
=`eval echo $ac_define_dir`
5556 cat >>confdefs.h
<<_ACEOF
5557 #define GDB_DATADIR "$ac_define_dir"
5563 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5564 if test "x$prefix" = xNONE
; then
5565 test_prefix
=/usr
/local
5570 test_prefix
=$exec_prefix
5573 case ${ac_define_dir} in
5574 "${test_prefix}"|
"${test_prefix}/"*|\
5575 '${exec_prefix}'|
'${exec_prefix}/'*)
5580 cat >>confdefs.h
<<_ACEOF
5581 #define GDB_DATADIR_RELOCATABLE $value
5588 # Check whether --with-relocated-sources was given.
5589 if test "${with_relocated_sources+set}" = set; then :
5590 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
5592 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5593 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5594 ac_define_dir
=`eval echo $reloc_srcdir`
5595 ac_define_dir
=`eval echo $ac_define_dir`
5597 cat >>confdefs.h
<<_ACEOF
5598 #define RELOC_SRCDIR "$ac_define_dir"
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5607 $as_echo_n "checking for default auto-load directory... " >&6; }
5609 # Check whether --with-auto-load-dir was given.
5610 if test "${with_auto_load_dir+set}" = set; then :
5611 withval
=$with_auto_load_dir;
5613 with_auto_load_dir
='$debugdir:$datadir/auto-load'
5616 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5618 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5619 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5620 ac_define_dir
=`eval echo $escape_dir`
5621 ac_define_dir
=`eval echo $ac_define_dir`
5623 cat >>confdefs.h
<<_ACEOF
5624 #define AUTO_LOAD_DIR "$ac_define_dir"
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5629 $as_echo "$with_auto_load_dir" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5632 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5634 # Check whether --with-auto-load-safe-path was given.
5635 if test "${with_auto_load_safe_path+set}" = set; then :
5636 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5637 with_auto_load_safe_path
="/"
5640 with_auto_load_safe_path
="$with_auto_load_dir"
5643 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5645 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5646 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5647 ac_define_dir
=`eval echo $escape_dir`
5648 ac_define_dir
=`eval echo $ac_define_dir`
5650 cat >>confdefs.h
<<_ACEOF
5651 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5656 $as_echo "$with_auto_load_safe_path" >&6; }
5660 subdirs
="$subdirs testsuite"
5663 # Check whether to support alternative target configurations
5664 # Check whether --enable-targets was given.
5665 if test "${enable_targets+set}" = set; then :
5666 enableval
=$enable_targets; case "${enableval}" in
5667 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
5669 no
) enable_targets
= ;;
5670 *) enable_targets
=$enableval ;;
5675 # Check whether to enable 64-bit support on 32-bit hosts
5676 # Check whether --enable-64-bit-bfd was given.
5677 if test "${enable_64_bit_bfd+set}" = set; then :
5678 enableval
=$enable_64_bit_bfd; case "${enableval}" in
5681 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5687 # Provide defaults for some variables set by the per-host and per-target
5689 gdb_host_obs
=posix-hdep.o
5691 if test "${target}" = "${host}"; then
5697 .
$srcdir/configure.
host
5699 # Add in the common host objects.
5700 .
$srcdir/common
/common.
host
5701 gdb_host_obs
="$gdb_host_obs $common_host_obs"
5703 # Accumulate some settings from configure.tgt over all enabled targets
5707 HAVE_NATIVE_GCORE_TARGET
=
5709 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5711 if test "$targ_alias" = "all"; then
5714 # Canonicalize the secondary target names.
5715 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5716 if test -n "$result"; then
5722 .
${srcdir}/configure.tgt
5724 if test -z "${gdb_target_obs}"; then :
5725 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
5728 # Target-specific object files
5729 for i
in ${gdb_target_obs}; do
5730 case " $TARGET_OBS " in
5733 TARGET_OBS
="$TARGET_OBS ${i}"
5738 # Check whether this target needs 64-bit CORE_ADDR
5739 if test x
${want64} = xfalse
; then
5740 .
${srcdir}/..
/bfd
/config.bfd
5743 # Check whether this target is native and supports gcore.
5744 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5745 && $gdb_have_gcore; then
5746 HAVE_NATIVE_GCORE_TARGET
=1
5751 if test x
${all_targets} = xtrue
; then
5753 # We want all 64-bit targets if we either:
5754 # - run on a 64-bit host or
5755 # - already require 64-bit support for some other target or
5756 # - the --enable-64-bit-bfd option was supplied
5757 # Otherwise we only support all 32-bit targets.
5759 # NOTE: This test must be in sync with the corresponding
5762 if test x
${want64} = xfalse
; then
5763 # The cast to long int works around a bug in the HP C Compiler
5764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5766 # This bug is HP SR number 8606223364.
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5768 $as_echo_n "checking size of long... " >&6; }
5769 if test "${ac_cv_sizeof_long+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5772 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5775 if test "$ac_cv_type_long" = yes; then
5776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5778 { as_fn_set_status
77
5779 as_fn_error
"cannot compute sizeof (long)
5780 See \`config.log' for more details." "$LINENO" 5; }; }
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5788 $as_echo "$ac_cv_sizeof_long" >&6; }
5792 cat >>confdefs.h
<<_ACEOF
5793 #define SIZEOF_LONG $ac_cv_sizeof_long
5797 if test "x${ac_cv_sizeof_long}" = "x8"; then
5801 if test x
${want64} = xtrue
; then
5802 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5804 TARGET_OBS
='$(ALL_TARGET_OBS)'
5811 # For other settings, only the main target counts.
5815 targ
=$target; .
${srcdir}/configure.tgt
5817 # Fetch the default architecture and default target vector from BFD.
5818 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5820 # We only want the first architecture, so strip off the others if
5821 # there is more than one.
5822 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5824 if test "x$targ_archs" != x
; then
5826 cat >>confdefs.h
<<_ACEOF
5827 #define DEFAULT_BFD_ARCH $targ_archs
5831 if test "x$targ_defvec" != x
; then
5833 cat >>confdefs.h
<<_ACEOF
5834 #define DEFAULT_BFD_VEC $targ_defvec
5839 # The CLI cannot be disabled yet, but may be in the future.
5842 # Check whether --enable-gdbcli was given.
5843 if test "${enable_gdbcli+set}" = set; then :
5844 enableval
=$enable_gdbcli; case $enableval in
5848 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5850 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5856 if test x
"$enable_gdbcli" = xyes
; then
5857 if test -d $srcdir/cli
; then
5858 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5859 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5860 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5861 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5866 # Check whether --enable-gdbmi was given.
5867 if test "${enable_gdbmi+set}" = set; then :
5868 enableval
=$enable_gdbmi; case $enableval in
5872 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5878 if test x
"$enable_gdbmi" = xyes
; then
5879 if test -d $srcdir/mi
; then
5880 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5881 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5882 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5883 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5888 # Check whether --enable-tui was given.
5889 if test "${enable_tui+set}" = set; then :
5890 enableval
=$enable_tui; case $enableval in
5894 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5902 # Check whether --enable-gdbtk was given.
5903 if test "${enable_gdbtk+set}" = set; then :
5904 enableval
=$enable_gdbtk; case $enableval in
5908 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5911 if test -d $srcdir/gdbtk
; then
5918 # We unconditionally disable gdbtk tests on selected platforms.
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5922 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5926 # Libunwind support for ia64.
5929 # Check whether --with-libunwind-ia64 was given.
5930 if test "${with_libunwind_ia64+set}" = set; then :
5931 withval
=$with_libunwind_ia64;
5933 with_libunwind_ia64
=auto
5937 # Backward compatibility option.
5938 if test "${with_libunwind+set}" = set; then
5939 if test x
"$with_libunwind_ia64" != xauto
; then
5940 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5943 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5944 with_libunwind_ia64
="$with_libunwind"
5947 case "$with_libunwind_ia64" in
5951 for ac_header
in libunwind-ia64.h
5953 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5954 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5955 cat >>confdefs.h
<<_ACEOF
5956 #define HAVE_LIBUNWIND_IA64_H 1
5963 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
5966 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5970 if test x
"$with_libunwind_ia64" = xyes
; then
5971 for ac_header
in libunwind-ia64.h
5973 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5974 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5975 cat >>confdefs.h
<<_ACEOF
5976 #define HAVE_LIBUNWIND_IA64_H 1
5983 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
5984 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5986 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
5987 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
5988 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
5993 # Check whether --with-curses was given.
5994 if test "${with_curses+set}" = set; then :
5995 withval
=$with_curses; opt_curses
=$withval
6000 if test "$opt_curses" = "yes"; then
6004 # Profiling support.
6005 # Check whether --enable-profiling was given.
6006 if test "${enable_profiling+set}" = set; then :
6007 enableval
=$enable_profiling; case $enableval in
6011 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6018 for ac_func
in monstartup _mcleanup
6020 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6021 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6022 eval as_val
=\$
$as_ac_var
6023 if test "x$as_val" = x
""yes; then :
6024 cat >>confdefs.h
<<_ACEOF
6025 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6032 $as_echo_n "checking for _etext... " >&6; }
6033 if test "${ac_cv_var__etext+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6049 if ac_fn_c_try_link
"$LINENO"; then :
6050 ac_cv_var__etext
=yes
6054 rm -f core conftest.err conftest.
$ac_objext \
6055 conftest
$ac_exeext conftest.
$ac_ext
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6058 $as_echo "$ac_cv_var__etext" >&6; }
6059 if test $ac_cv_var__etext = yes; then
6061 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6065 $as_echo_n "checking for etext... " >&6; }
6066 if test "${ac_cv_var_etext+set}" = set; then :
6067 $as_echo_n "(cached) " >&6
6069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6082 if ac_fn_c_try_link
"$LINENO"; then :
6087 rm -f core conftest.err conftest.
$ac_objext \
6088 conftest
$ac_exeext conftest.
$ac_ext
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6091 $as_echo "$ac_cv_var_etext" >&6; }
6092 if test $ac_cv_var_etext = yes; then
6094 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6097 if test "$enable_profiling" = yes ; then
6098 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6099 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6102 OLD_CFLAGS
="$CFLAGS"
6103 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6106 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6107 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6108 $as_echo_n "(cached) " >&6
6110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6121 if ac_fn_c_try_compile
"$LINENO"; then :
6122 ac_cv_cc_supports_pg
=yes
6124 ac_cv_cc_supports_pg
=no
6126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6129 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6131 if test $ac_cv_cc_supports_pg = no
; then
6132 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6135 CFLAGS
="$OLD_CFLAGS"
6140 # Check whether --with-pkgversion was given.
6141 if test "${with_pkgversion+set}" = set; then :
6142 withval
=$with_pkgversion; case "$withval" in
6143 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6145 *) PKGVERSION
="($withval) " ;;
6156 # Check whether --with-bugurl was given.
6157 if test "${with_bugurl+set}" = set; then :
6158 withval
=$with_bugurl; case "$withval" in
6159 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6162 *) BUGURL
="$withval"
6166 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
6176 REPORT_BUGS_TO
="<$BUGURL>"
6177 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6184 cat >>confdefs.h
<<_ACEOF
6185 #define PKGVERSION "$PKGVERSION"
6189 cat >>confdefs.h
<<_ACEOF
6190 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6194 # --------------------- #
6195 # Checks for programs. #
6196 # --------------------- #
6198 for ac_prog
in gawk mawk nawk
awk
6200 # Extract the first word of "$ac_prog", so it can be a program name with args.
6201 set dummy
$ac_prog; ac_word
=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if test "${ac_cv_prog_AWK+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6207 if test -n "$AWK"; then
6208 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6214 test -z "$as_dir" && as_dir
=.
6215 for ac_exec_ext
in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_AWK
="$ac_prog"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 if test -n "$AWK"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6230 $as_echo "$AWK" >&6; }
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6237 test -n "$AWK" && break
6240 # Find a good install program. We prefer a C program (faster),
6241 # so one script is as good as another. But avoid the broken or
6242 # incompatible versions:
6243 # SysV /etc/install, /usr/sbin/install
6244 # SunOS /usr/etc/install
6245 # IRIX /sbin/install
6247 # AmigaOS /C/install, which installs bootblocks on floppy discs
6248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6251 # OS/2's system install, which has a completely different semantic
6252 # ./install, which can be erroneously created by make from ./install.sh.
6253 # Reject install programs that cannot install multiple files.
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6255 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6256 if test -z "$INSTALL"; then
6257 if test "${ac_cv_path_install+set}" = set; then :
6258 $as_echo_n "(cached) " >&6
6260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir
=.
6265 # Account for people who put trailing slashes in PATH elements.
6266 case $as_dir/ in #((
6267 .
/ | .
// |
/[cC
]/* | \
6268 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6269 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
6272 # OSF1 and SCO ODT 3.0 have their own names for install.
6273 # Don't use installbsd from OSF since it installs stuff as root
6275 for ac_prog
in ginstall scoinst
install; do
6276 for ac_exec_ext
in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6278 if test $ac_prog = install &&
6279 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6280 # AIX install. It has an incompatible calling convention.
6282 elif test $ac_prog = install &&
6283 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6284 # program-specific install script used by HP pwplus--don't use.
6287 rm -rf conftest.one conftest.two conftest.dir
6288 echo one
> conftest.one
6289 echo two
> conftest.two
6291 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6292 test -s conftest.one
&& test -s conftest.two
&&
6293 test -s conftest.dir
/conftest.one
&&
6294 test -s conftest.dir
/conftest.two
6296 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6309 rm -rf conftest.one conftest.two conftest.dir
6312 if test "${ac_cv_path_install+set}" = set; then
6313 INSTALL
=$ac_cv_path_install
6315 # As a last resort, use the slow shell script. Don't cache a
6316 # value for INSTALL within a source directory, because that will
6317 # break other packages using the cache if that directory is
6318 # removed, or if the value is a relative name.
6319 INSTALL
=$ac_install_sh
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6323 $as_echo "$INSTALL" >&6; }
6325 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6326 # It thinks the first close brace ends the variable substitution.
6327 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6329 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6331 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6334 $as_echo_n "checking whether ln -s works... " >&6; }
6336 if test "$LN_S" = "ln -s"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6338 $as_echo "yes" >&6; }
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6341 $as_echo "no, using $LN_S" >&6; }
6344 if test -n "$ac_tool_prefix"; then
6345 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6346 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6352 if test -n "$RANLIB"; then
6353 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6359 test -z "$as_dir" && as_dir
=.
6360 for ac_exec_ext
in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 RANLIB
=$ac_cv_prog_RANLIB
6373 if test -n "$RANLIB"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6375 $as_echo "$RANLIB" >&6; }
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6383 if test -z "$ac_cv_prog_RANLIB"; then
6384 ac_ct_RANLIB
=$RANLIB
6385 # Extract the first word of "ranlib", so it can be a program name with args.
6386 set dummy ranlib
; ac_word
=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
6392 if test -n "$ac_ct_RANLIB"; then
6393 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6399 test -z "$as_dir" && as_dir
=.
6400 for ac_exec_ext
in '' $ac_executable_extensions; do
6401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6402 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6413 if test -n "$ac_ct_RANLIB"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6415 $as_echo "$ac_ct_RANLIB" >&6; }
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6421 if test "x$ac_ct_RANLIB" = x
; then
6424 case $cross_compiling:$ac_tool_warned in
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6428 ac_tool_warned
=yes ;;
6430 RANLIB
=$ac_ct_RANLIB
6433 RANLIB
="$ac_cv_prog_RANLIB"
6436 for ac_prog
in 'bison -y' byacc
6438 # Extract the first word of "$ac_prog", so it can be a program name with args.
6439 set dummy
$ac_prog; ac_word
=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if test "${ac_cv_prog_YACC+set}" = set; then :
6443 $as_echo_n "(cached) " >&6
6445 if test -n "$YACC"; then
6446 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir
=.
6453 for ac_exec_ext
in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_YACC
="$ac_prog"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 YACC
=$ac_cv_prog_YACC
6466 if test -n "$YACC"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6468 $as_echo "$YACC" >&6; }
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6475 test -n "$YACC" && break
6477 test -n "$YACC" || YACC
="yacc"
6480 if test -n "$ac_tool_prefix"; then
6481 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6482 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if test "${ac_cv_prog_AR+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6488 if test -n "$AR"; then
6489 ac_cv_prog_AR
="$AR" # Let the user override the test.
6491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6495 test -z "$as_dir" && as_dir
=.
6496 for ac_exec_ext
in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 if test -n "$AR"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6511 $as_echo "$AR" >&6; }
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6519 if test -z "$ac_cv_prog_AR"; then
6521 # Extract the first word of "ar", so it can be a program name with args.
6522 set dummy
ar; ac_word
=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6528 if test -n "$ac_ct_AR"; then
6529 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir
=.
6536 for ac_exec_ext
in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_ac_ct_AR
="ar"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6549 if test -n "$ac_ct_AR"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6551 $as_echo "$ac_ct_AR" >&6; }
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6557 if test "x$ac_ct_AR" = x
; then
6560 case $cross_compiling:$ac_tool_warned in
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564 ac_tool_warned
=yes ;;
6572 if test -n "$ac_tool_prefix"; then
6573 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6574 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6580 if test -n "$DLLTOOL"; then
6581 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
6583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir
=.
6588 for ac_exec_ext
in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 DLLTOOL
=$ac_cv_prog_DLLTOOL
6601 if test -n "$DLLTOOL"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6603 $as_echo "$DLLTOOL" >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6611 if test -z "$ac_cv_prog_DLLTOOL"; then
6612 ac_ct_DLLTOOL
=$DLLTOOL
6613 # Extract the first word of "dlltool", so it can be a program name with args.
6614 set dummy dlltool
; ac_word
=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6620 if test -n "$ac_ct_DLLTOOL"; then
6621 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
6623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir
=.
6628 for ac_exec_ext
in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
6641 if test -n "$ac_ct_DLLTOOL"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6643 $as_echo "$ac_ct_DLLTOOL" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6649 if test "x$ac_ct_DLLTOOL" = x
; then
6652 case $cross_compiling:$ac_tool_warned in
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6656 ac_tool_warned
=yes ;;
6658 DLLTOOL
=$ac_ct_DLLTOOL
6661 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6664 if test -n "$ac_tool_prefix"; then
6665 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6666 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6672 if test -n "$WINDRES"; then
6673 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
6675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir
=.
6680 for ac_exec_ext
in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 WINDRES
=$ac_cv_prog_WINDRES
6693 if test -n "$WINDRES"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6695 $as_echo "$WINDRES" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6703 if test -z "$ac_cv_prog_WINDRES"; then
6704 ac_ct_WINDRES
=$WINDRES
6705 # Extract the first word of "windres", so it can be a program name with args.
6706 set dummy windres
; ac_word
=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6710 $as_echo_n "(cached) " >&6
6712 if test -n "$ac_ct_WINDRES"; then
6713 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
6715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6719 test -z "$as_dir" && as_dir
=.
6720 for ac_exec_ext
in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_prog_ac_ct_WINDRES
="windres"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
6733 if test -n "$ac_ct_WINDRES"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6735 $as_echo "$ac_ct_WINDRES" >&6; }
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6741 if test "x$ac_ct_WINDRES" = x
; then
6744 case $cross_compiling:$ac_tool_warned in
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6748 ac_tool_warned
=yes ;;
6750 WINDRES
=$ac_ct_WINDRES
6753 WINDRES
="$ac_cv_prog_WINDRES"
6759 # Needed for GNU Hurd hosts.
6760 if test -n "$ac_tool_prefix"; then
6761 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6762 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if test "${ac_cv_prog_MIG+set}" = set; then :
6766 $as_echo_n "(cached) " >&6
6768 if test -n "$MIG"; then
6769 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
6771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6775 test -z "$as_dir" && as_dir
=.
6776 for ac_exec_ext
in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 if test -n "$MIG"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6791 $as_echo "$MIG" >&6; }
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6799 if test -z "$ac_cv_prog_MIG"; then
6801 # Extract the first word of "mig", so it can be a program name with args.
6802 set dummy mig
; ac_word
=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6806 $as_echo_n "(cached) " >&6
6808 if test -n "$ac_ct_MIG"; then
6809 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
6811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6815 test -z "$as_dir" && as_dir
=.
6816 for ac_exec_ext
in '' $ac_executable_extensions; do
6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6818 ac_cv_prog_ac_ct_MIG
="mig"
6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
6829 if test -n "$ac_ct_MIG"; then
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6831 $as_echo "$ac_ct_MIG" >&6; }
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6837 if test "x$ac_ct_MIG" = x
; then
6840 case $cross_compiling:$ac_tool_warned in
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6844 ac_tool_warned
=yes ;;
6849 MIG
="$ac_cv_prog_MIG"
6852 if test x
"$MIG" = x
; then
6853 as_fn_error
"MIG not found but required for $host hosts" "$LINENO" 5
6858 # ---------------------- #
6859 # Checks for libraries. #
6860 # ---------------------- #
6862 # We might need to link with -lm; most simulators need it.
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6864 $as_echo_n "checking for main in -lm... " >&6; }
6865 if test "${ac_cv_lib_m_main+set}" = set; then :
6866 $as_echo_n "(cached) " >&6
6868 ac_check_lib_save_LIBS
=$LIBS
6870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6882 if ac_fn_c_try_link
"$LINENO"; then :
6883 ac_cv_lib_m_main
=yes
6887 rm -f core conftest.err conftest.
$ac_objext \
6888 conftest
$ac_exeext conftest.
$ac_ext
6889 LIBS
=$ac_check_lib_save_LIBS
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6892 $as_echo "$ac_cv_lib_m_main" >&6; }
6893 if test "x$ac_cv_lib_m_main" = x
""yes; then :
6894 cat >>confdefs.h
<<_ACEOF
6903 # We need to link with -lw to get `wctype' on Solaris before Solaris
6904 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6905 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6906 # is known to have this problem). Therefore we avoid libw if we can.
6907 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6908 if test "x$ac_cv_func_wctype" = x
""yes; then :
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6912 $as_echo_n "checking for wctype in -lw... " >&6; }
6913 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6916 ac_check_lib_save_LIBS
=$LIBS
6918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6921 /* Override any GCC internal prototype to avoid an error.
6922 Use char because int might match the return type of a GCC
6923 builtin and then its argument prototype would still apply. */
6936 if ac_fn_c_try_link
"$LINENO"; then :
6937 ac_cv_lib_w_wctype
=yes
6939 ac_cv_lib_w_wctype
=no
6941 rm -f core conftest.err conftest.
$ac_objext \
6942 conftest
$ac_exeext conftest.
$ac_ext
6943 LIBS
=$ac_check_lib_save_LIBS
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6946 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6947 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
6948 cat >>confdefs.h
<<_ACEOF
6959 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6961 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6962 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6963 $as_echo_n "(cached) " >&6
6965 ac_func_search_save_LIBS
=$LIBS
6966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6969 /* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6975 char gethostbyname ();
6979 return gethostbyname ();
6984 for ac_lib
in '' nsl
; do
6985 if test -z "$ac_lib"; then
6986 ac_res
="none required"
6989 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6991 if ac_fn_c_try_link
"$LINENO"; then :
6992 ac_cv_search_gethostbyname
=$ac_res
6994 rm -f core conftest.err conftest.
$ac_objext \
6996 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7000 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7003 ac_cv_search_gethostbyname
=no
7006 LIBS
=$ac_func_search_save_LIBS
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7009 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7010 ac_res
=$ac_cv_search_gethostbyname
7011 if test "$ac_res" != no
; then :
7012 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7017 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7019 $as_echo_n "checking for library containing socketpair... " >&6; }
7020 if test "${ac_cv_search_socketpair+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7023 ac_func_search_save_LIBS
=$LIBS
7024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7027 /* Override any GCC internal prototype to avoid an error.
7028 Use char because int might match the return type of a GCC
7029 builtin and then its argument prototype would still apply. */
7037 return socketpair ();
7042 for ac_lib
in '' socket
; do
7043 if test -z "$ac_lib"; then
7044 ac_res
="none required"
7047 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7049 if ac_fn_c_try_link
"$LINENO"; then :
7050 ac_cv_search_socketpair
=$ac_res
7052 rm -f core conftest.err conftest.
$ac_objext \
7054 if test "${ac_cv_search_socketpair+set}" = set; then :
7058 if test "${ac_cv_search_socketpair+set}" = set; then :
7061 ac_cv_search_socketpair
=no
7064 LIBS
=$ac_func_search_save_LIBS
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7067 $as_echo "$ac_cv_search_socketpair" >&6; }
7068 ac_res
=$ac_cv_search_socketpair
7069 if test "$ac_res" != no
; then :
7070 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7075 # Link in zlib if we can. This allows us to read compressed debug sections.
7077 # Use the system's zlib library.
7078 zlibdir
="-L\$(top_builddir)/../zlib"
7079 zlibinc
="-I\$(top_srcdir)/../zlib"
7081 # Check whether --with-system-zlib was given.
7082 if test "${with_system_zlib+set}" = set; then :
7083 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7094 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7096 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7097 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7100 ac_func_search_save_LIBS
=$LIBS
7101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7104 /* Override any GCC internal prototype to avoid an error.
7105 Use char because int might match the return type of a GCC
7106 builtin and then its argument prototype would still apply. */
7110 char kinfo_getvmmap ();
7114 return kinfo_getvmmap ();
7119 for ac_lib
in '' util
; do
7120 if test -z "$ac_lib"; then
7121 ac_res
="none required"
7124 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7126 if ac_fn_c_try_link
"$LINENO"; then :
7127 ac_cv_search_kinfo_getvmmap
=$ac_res
7129 rm -f core conftest.err conftest.
$ac_objext \
7131 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7135 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7138 ac_cv_search_kinfo_getvmmap
=no
7141 LIBS
=$ac_func_search_save_LIBS
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7144 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7145 ac_res
=$ac_cv_search_kinfo_getvmmap
7146 if test "$ac_res" != no
; then :
7147 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7149 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7155 if test "X$prefix" = "XNONE"; then
7156 acl_final_prefix
="$ac_default_prefix"
7158 acl_final_prefix
="$prefix"
7160 if test "X$exec_prefix" = "XNONE"; then
7161 acl_final_exec_prefix
='${prefix}'
7163 acl_final_exec_prefix
="$exec_prefix"
7165 acl_save_prefix
="$prefix"
7166 prefix
="$acl_final_prefix"
7167 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7168 prefix
="$acl_save_prefix"
7171 # Check whether --with-gnu-ld was given.
7172 if test "${with_gnu_ld+set}" = set; then :
7173 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7178 # Prepare PATH_SEPARATOR.
7179 # The user is always right.
7180 if test "${PATH_SEPARATOR+set}" != set; then
7181 echo "#! /bin/sh" >conf$$.sh
7182 echo "exit 0" >>conf$$.sh
7184 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7192 if test "$GCC" = yes; then
7193 # Check if gcc -print-prog-name=ld gives a path.
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7195 $as_echo_n "checking for ld used by GCC... " >&6; }
7198 # gcc leaves a trailing carriage return which upsets mingw
7199 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7201 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7204 # Accept absolute paths.
7205 [\\/]* |
[A-Za-z
]:[\\/]*)
7206 re_direlt
='/[^/][^/]*/\.\./'
7207 # Canonicalize the path of ld
7208 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7209 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7210 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7212 test -z "$LD" && LD
="$ac_prog"
7215 # If it fails, then pretend we aren't using GCC.
7219 # If it is relative, then search for the first ld in PATH.
7223 elif test "$with_gnu_ld" = yes; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7225 $as_echo_n "checking for GNU ld... " >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7228 $as_echo_n "checking for non-GNU ld... " >&6; }
7230 if test "${acl_cv_path_LD+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7233 if test -z "$LD"; then
7234 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7235 for ac_dir
in $PATH; do
7236 test -z "$ac_dir" && ac_dir
=.
7237 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7238 acl_cv_path_LD
="$ac_dir/$ac_prog"
7239 # Check to see if the program is GNU ld. I'd rather use --version,
7240 # but apparently some GNU ld's only accept -v.
7241 # Break only if it was the GNU/non-GNU ld that we prefer.
7242 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7243 test "$with_gnu_ld" != no
&& break
7245 test "$with_gnu_ld" != yes && break
7251 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7255 LD
="$acl_cv_path_LD"
7256 if test -n "$LD"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7258 $as_echo "$LD" >&6; }
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7263 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7265 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7266 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7267 $as_echo_n "(cached) " >&6
7269 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7270 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7271 acl_cv_prog_gnu_ld
=yes
7273 acl_cv_prog_gnu_ld
=no
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7277 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7278 with_gnu_ld
=$acl_cv_prog_gnu_ld
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7283 $as_echo_n "checking for shared library run path origin... " >&6; }
7284 if test "${acl_cv_rpath+set}" = set; then :
7285 $as_echo_n "(cached) " >&6
7288 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7289 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7296 $as_echo "$acl_cv_rpath" >&6; }
7298 libext
="$acl_cv_libext"
7299 shlibext
="$acl_cv_shlibext"
7300 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7301 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7302 hardcode_direct
="$acl_cv_hardcode_direct"
7303 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7304 # Check whether --enable-rpath was given.
7305 if test "${enable_rpath+set}" = set; then :
7306 enableval
=$enable_rpath; :
7320 acl_save_prefix
="$prefix"
7321 prefix
="$acl_final_prefix"
7322 acl_save_exec_prefix
="$exec_prefix"
7323 exec_prefix
="$acl_final_exec_prefix"
7325 eval additional_includedir
=\"$includedir\"
7326 eval additional_libdir
=\"$libdir\"
7328 exec_prefix
="$acl_save_exec_prefix"
7329 prefix
="$acl_save_prefix"
7332 # Check whether --with-libiconv-prefix was given.
7333 if test "${with_libiconv_prefix+set}" = set; then :
7334 withval
=$with_libiconv_prefix;
7335 if test "X$withval" = "Xno"; then
7338 if test "X$withval" = "X"; then
7340 acl_save_prefix
="$prefix"
7341 prefix
="$acl_final_prefix"
7342 acl_save_exec_prefix
="$exec_prefix"
7343 exec_prefix
="$acl_final_exec_prefix"
7345 eval additional_includedir
=\"$includedir\"
7346 eval additional_libdir
=\"$libdir\"
7348 exec_prefix
="$acl_save_exec_prefix"
7349 prefix
="$acl_save_prefix"
7352 additional_includedir
="$withval/include"
7353 additional_libdir
="$withval/lib"
7364 names_already_handled
=
7365 names_next_round
='iconv '
7366 while test -n "$names_next_round"; do
7367 names_this_round
="$names_next_round"
7369 for name
in $names_this_round; do
7371 for n
in $names_already_handled; do
7372 if test "$n" = "$name"; then
7377 if test -z "$already_handled"; then
7378 names_already_handled
="$names_already_handled $name"
7379 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7380 eval value
=\"\
$HAVE_LIB$uppername\"
7381 if test -n "$value"; then
7382 if test "$value" = yes; then
7383 eval value
=\"\
$LIB$uppername\"
7384 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
7385 eval value
=\"\
$LTLIB$uppername\"
7386 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
7395 if test $use_additional = yes; then
7396 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7397 found_dir
="$additional_libdir"
7398 found_so
="$additional_libdir/lib$name.$shlibext"
7399 if test -f "$additional_libdir/lib$name.la"; then
7400 found_la
="$additional_libdir/lib$name.la"
7403 if test -f "$additional_libdir/lib$name.$libext"; then
7404 found_dir
="$additional_libdir"
7405 found_a
="$additional_libdir/lib$name.$libext"
7406 if test -f "$additional_libdir/lib$name.la"; then
7407 found_la
="$additional_libdir/lib$name.la"
7412 if test "X$found_dir" = "X"; then
7413 for x
in $LDFLAGS $LTLIBICONV; do
7415 acl_save_prefix
="$prefix"
7416 prefix
="$acl_final_prefix"
7417 acl_save_exec_prefix
="$exec_prefix"
7418 exec_prefix
="$acl_final_exec_prefix"
7420 exec_prefix
="$acl_save_exec_prefix"
7421 prefix
="$acl_save_prefix"
7425 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7426 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7428 found_so
="$dir/lib$name.$shlibext"
7429 if test -f "$dir/lib$name.la"; then
7430 found_la
="$dir/lib$name.la"
7433 if test -f "$dir/lib$name.$libext"; then
7435 found_a
="$dir/lib$name.$libext"
7436 if test -f "$dir/lib$name.la"; then
7437 found_la
="$dir/lib$name.la"
7443 if test "X$found_dir" != "X"; then
7448 if test "X$found_dir" != "X"; then
7449 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7450 if test "X$found_so" != "X"; then
7451 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7452 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7455 for x
in $ltrpathdirs; do
7456 if test "X$x" = "X$found_dir"; then
7461 if test -z "$haveit"; then
7462 ltrpathdirs
="$ltrpathdirs $found_dir"
7464 if test "$hardcode_direct" = yes; then
7465 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7467 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7468 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7470 for x
in $rpathdirs; do
7471 if test "X$x" = "X$found_dir"; then
7476 if test -z "$haveit"; then
7477 rpathdirs
="$rpathdirs $found_dir"
7481 for x
in $LDFLAGS $LIBICONV; do
7483 acl_save_prefix
="$prefix"
7484 prefix
="$acl_final_prefix"
7485 acl_save_exec_prefix
="$exec_prefix"
7486 exec_prefix
="$acl_final_exec_prefix"
7488 exec_prefix
="$acl_save_exec_prefix"
7489 prefix
="$acl_save_prefix"
7491 if test "X$x" = "X-L$found_dir"; then
7496 if test -z "$haveit"; then
7497 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7499 if test "$hardcode_minus_L" != no
; then
7500 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7502 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7508 if test "X$found_a" != "X"; then
7509 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
7511 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7514 additional_includedir
=
7515 case "$found_dir" in
7517 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7518 additional_includedir
="$basedir/include"
7521 if test "X$additional_includedir" != "X"; then
7522 if test "X$additional_includedir" != "X/usr/include"; then
7524 if test "X$additional_includedir" = "X/usr/local/include"; then
7525 if test -n "$GCC"; then
7527 linux
*) haveit
=yes;;
7531 if test -z "$haveit"; then
7532 for x
in $CPPFLAGS $INCICONV; do
7534 acl_save_prefix
="$prefix"
7535 prefix
="$acl_final_prefix"
7536 acl_save_exec_prefix
="$exec_prefix"
7537 exec_prefix
="$acl_final_exec_prefix"
7539 exec_prefix
="$acl_save_exec_prefix"
7540 prefix
="$acl_save_prefix"
7542 if test "X$x" = "X-I$additional_includedir"; then
7547 if test -z "$haveit"; then
7548 if test -d "$additional_includedir"; then
7549 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7555 if test -n "$found_la"; then
7556 save_libdir
="$libdir"
7558 */* |
*\\*) .
"$found_la" ;;
7559 *) .
"./$found_la" ;;
7561 libdir
="$save_libdir"
7562 for dep
in $dependency_libs; do
7565 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7566 if test "X$additional_libdir" != "X/usr/lib"; then
7568 if test "X$additional_libdir" = "X/usr/local/lib"; then
7569 if test -n "$GCC"; then
7571 linux
*) haveit
=yes;;
7575 if test -z "$haveit"; then
7577 for x
in $LDFLAGS $LIBICONV; do
7579 acl_save_prefix
="$prefix"
7580 prefix
="$acl_final_prefix"
7581 acl_save_exec_prefix
="$exec_prefix"
7582 exec_prefix
="$acl_final_exec_prefix"
7584 exec_prefix
="$acl_save_exec_prefix"
7585 prefix
="$acl_save_prefix"
7587 if test "X$x" = "X-L$additional_libdir"; then
7592 if test -z "$haveit"; then
7593 if test -d "$additional_libdir"; then
7594 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7598 for x
in $LDFLAGS $LTLIBICONV; do
7600 acl_save_prefix
="$prefix"
7601 prefix
="$acl_final_prefix"
7602 acl_save_exec_prefix
="$exec_prefix"
7603 exec_prefix
="$acl_final_exec_prefix"
7605 exec_prefix
="$acl_save_exec_prefix"
7606 prefix
="$acl_save_prefix"
7608 if test "X$x" = "X-L$additional_libdir"; then
7613 if test -z "$haveit"; then
7614 if test -d "$additional_libdir"; then
7615 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7622 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7623 if test "$enable_rpath" != no
; then
7625 for x
in $rpathdirs; do
7626 if test "X$x" = "X$dir"; then
7631 if test -z "$haveit"; then
7632 rpathdirs
="$rpathdirs $dir"
7635 for x
in $ltrpathdirs; do
7636 if test "X$x" = "X$dir"; then
7641 if test -z "$haveit"; then
7642 ltrpathdirs
="$ltrpathdirs $dir"
7647 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7650 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7653 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
7654 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7660 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7661 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7667 if test "X$rpathdirs" != "X"; then
7668 if test -n "$hardcode_libdir_separator"; then
7670 for found_dir
in $rpathdirs; do
7671 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7673 acl_save_libdir
="$libdir"
7675 eval flag
=\"$hardcode_libdir_flag_spec\"
7676 libdir
="$acl_save_libdir"
7677 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7679 for found_dir
in $rpathdirs; do
7680 acl_save_libdir
="$libdir"
7682 eval flag
=\"$hardcode_libdir_flag_spec\"
7683 libdir
="$acl_save_libdir"
7684 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7688 if test "X$ltrpathdirs" != "X"; then
7689 for found_dir
in $ltrpathdirs; do
7690 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7701 $as_echo_n "checking for iconv... " >&6; }
7702 if test "${am_cv_func_iconv+set}" = set; then :
7703 $as_echo_n "(cached) " >&6
7706 am_cv_func_iconv
="no, consider installing GNU libiconv"
7708 am_save_CPPFLAGS
="$CPPFLAGS"
7709 CPPFLAGS
="$CPPFLAGS $INCICONV"
7710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7717 iconv_t cd = iconv_open("","");
7718 iconv(cd,NULL,NULL,NULL,NULL);
7724 if ac_fn_c_try_link
"$LINENO"; then :
7725 am_cv_func_iconv
=yes
7727 rm -f core conftest.err conftest.
$ac_objext \
7728 conftest
$ac_exeext conftest.
$ac_ext
7729 CPPFLAGS
="$am_save_CPPFLAGS"
7731 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
7732 for _libs
in .libs _libs
; do
7733 am_save_CPPFLAGS
="$CPPFLAGS"
7734 am_save_LIBS
="$LIBS"
7735 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
7736 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7744 iconv_t cd = iconv_open("","");
7745 iconv(cd,NULL,NULL,NULL,NULL);
7751 if ac_fn_c_try_link
"$LINENO"; then :
7752 INCICONV
="-I../libiconv/include"
7753 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
7754 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
7756 am_cv_func_iconv
=yes
7758 rm -f core conftest.err conftest.
$ac_objext \
7759 conftest
$ac_exeext conftest.
$ac_ext
7760 CPPFLAGS
="$am_save_CPPFLAGS"
7761 LIBS
="$am_save_LIBS"
7762 if test "$am_cv_func_iconv" = "yes"; then
7768 if test "$am_cv_func_iconv" != yes; then
7769 am_save_CPPFLAGS
="$CPPFLAGS"
7770 am_save_LIBS
="$LIBS"
7771 CPPFLAGS
="$LIBS $INCICONV"
7772 LIBS
="$LIBS $LIBICONV"
7773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7780 iconv_t cd = iconv_open("","");
7781 iconv(cd,NULL,NULL,NULL,NULL);
7787 if ac_fn_c_try_link
"$LINENO"; then :
7789 am_cv_func_iconv
=yes
7791 rm -f core conftest.err conftest.
$ac_objext \
7792 conftest
$ac_exeext conftest.
$ac_ext
7793 CPPFLAGS
="$am_save_CPPFLAGS"
7794 LIBS
="$am_save_LIBS"
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7799 $as_echo "$am_cv_func_iconv" >&6; }
7800 if test "$am_cv_func_iconv" = yes; then
7802 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7805 if test "$am_cv_lib_iconv" = yes; then
7807 for element
in $INCICONV; do
7809 for x
in $CPPFLAGS; do
7811 acl_save_prefix
="$prefix"
7812 prefix
="$acl_final_prefix"
7813 acl_save_exec_prefix
="$exec_prefix"
7814 exec_prefix
="$acl_final_exec_prefix"
7816 exec_prefix
="$acl_save_exec_prefix"
7817 prefix
="$acl_save_prefix"
7819 if test "X$x" = "X$element"; then
7824 if test -z "$haveit"; then
7825 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7830 $as_echo_n "checking how to link with libiconv... " >&6; }
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7832 $as_echo "$LIBICONV" >&6; }
7840 if test "$am_cv_func_iconv" = yes; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7842 $as_echo_n "checking for iconv declaration... " >&6; }
7843 if test "${am_cv_proto_iconv+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7856 #if defined(__STDC__) || defined(__cplusplus)
7857 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7870 if ac_fn_c_try_compile
"$LINENO"; then :
7871 am_cv_proto_iconv_arg1
=""
7873 am_cv_proto_iconv_arg1
="const"
7875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7876 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);"
7879 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7881 }$am_cv_proto_iconv" >&5
7883 }$am_cv_proto_iconv" >&6; }
7885 cat >>confdefs.h
<<_ACEOF
7886 #define ICONV_CONST $am_cv_proto_iconv_arg1
7892 # GDB may fork/exec the iconv program to get the list of supported character
7893 # sets. Allow the user to specify where to find it.
7894 # There are several factors affecting the choice of option name:
7895 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7896 # the build-time location of libiconv files.
7897 # - The program we need to find is iconv, which comes with glibc. The user
7898 # doesn't necessarily have libiconv installed. Therefore naming this
7899 # --with-libiconv-foo feels wrong.
7900 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7901 # defined to work on directories not files (though it really doesn't know
7903 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7904 # with --with-libiconv-prefix.
7905 # Putting these together is why the option name is --with-iconv-bin.
7908 # Check whether --with-iconv-bin was given.
7909 if test "${with_iconv_bin+set}" = set; then :
7910 withval
=$with_iconv_bin; iconv_bin
="${withval}"
7912 cat >>confdefs.h
<<_ACEOF
7913 #define ICONV_BIN "${iconv_bin}"
7917 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7918 if test "x$prefix" = xNONE
; then
7919 test_prefix
=/usr
/local
7924 test_prefix
=$exec_prefix
7927 case ${iconv_bin} in
7928 "${test_prefix}"|
"${test_prefix}/"*|\
7929 '${exec_prefix}'|
'${exec_prefix}/'*)
7934 cat >>confdefs.h
<<_ACEOF
7935 #define ICONV_BIN_RELOCATABLE $value
7943 # For the TUI, we need enhanced curses functionality.
7944 if test x
"$enable_tui" != xno
; then
7949 if test x
"$prefer_curses" = xyes
; then
7950 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7951 # curses library because the latter might not provide all the
7952 # functionality we need. However, this leads to problems on systems
7953 # where the linker searches /usr/local/lib, but the compiler doesn't
7954 # search /usr/local/include, if ncurses is installed in /usr/local. A
7955 # default installation of ncurses on alpha*-dec-osf* will lead to such
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7958 $as_echo_n "checking for library containing waddstr... " >&6; }
7959 if test "${ac_cv_search_waddstr+set}" = set; then :
7960 $as_echo_n "(cached) " >&6
7962 ac_func_search_save_LIBS
=$LIBS
7963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7966 /* Override any GCC internal prototype to avoid an error.
7967 Use char because int might match the return type of a GCC
7968 builtin and then its argument prototype would still apply. */
7981 for ac_lib
in '' ncurses cursesX curses
; do
7982 if test -z "$ac_lib"; then
7983 ac_res
="none required"
7986 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7988 if ac_fn_c_try_link
"$LINENO"; then :
7989 ac_cv_search_waddstr
=$ac_res
7991 rm -f core conftest.err conftest.
$ac_objext \
7993 if test "${ac_cv_search_waddstr+set}" = set; then :
7997 if test "${ac_cv_search_waddstr+set}" = set; then :
8000 ac_cv_search_waddstr
=no
8003 LIBS
=$ac_func_search_save_LIBS
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8006 $as_echo "$ac_cv_search_waddstr" >&6; }
8007 ac_res
=$ac_cv_search_waddstr
8008 if test "$ac_res" != no
; then :
8009 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8014 if test "$ac_cv_search_waddstr" != no
; then
8019 # Check whether we should enable the TUI, but only do so if we really
8021 if test x
"$enable_tui" != xno
; then
8022 if test -d $srcdir/tui
; then
8023 if test "$curses_found" != no
; then
8024 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8025 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8026 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8027 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8029 if test x
"$enable_tui" = xyes
; then
8030 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8033 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8039 # Since GDB uses Readline, we need termcap functionality. In many
8040 # cases this will be provided by the curses library, but some systems
8041 # have a seperate termcap library, or no curses library at all.
8045 if test -d $srcdir/libtermcap
; then
8046 LIBS
="../libtermcap/libtermcap.a $LIBS"
8047 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8050 ac_cv_search_tgetent
="none required"
8054 # These are the libraries checked by Readline.
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8056 $as_echo_n "checking for library containing tgetent... " >&6; }
8057 if test "${ac_cv_search_tgetent+set}" = set; then :
8058 $as_echo_n "(cached) " >&6
8060 ac_func_search_save_LIBS
=$LIBS
8061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8064 /* Override any GCC internal prototype to avoid an error.
8065 Use char because int might match the return type of a GCC
8066 builtin and then its argument prototype would still apply. */
8079 for ac_lib
in '' termcap tinfo curses ncurses
; do
8080 if test -z "$ac_lib"; then
8081 ac_res
="none required"
8084 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8086 if ac_fn_c_try_link
"$LINENO"; then :
8087 ac_cv_search_tgetent
=$ac_res
8089 rm -f core conftest.err conftest.
$ac_objext \
8091 if test "${ac_cv_search_tgetent+set}" = set; then :
8095 if test "${ac_cv_search_tgetent+set}" = set; then :
8098 ac_cv_search_tgetent
=no
8101 LIBS
=$ac_func_search_save_LIBS
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8104 $as_echo "$ac_cv_search_tgetent" >&6; }
8105 ac_res
=$ac_cv_search_tgetent
8106 if test "$ac_res" != no
; then :
8107 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8112 if test "$ac_cv_search_tgetent" = no
; then
8113 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
8117 # Check whether --with-system-readline was given.
8118 if test "${with_system_readline+set}" = set; then :
8119 withval
=$with_system_readline;
8123 if test "$with_system_readline" = yes; then
8127 READLINE_TEXI_INCFLAG
=
8129 READLINE
='$(READLINE_DIR)/libreadline.a'
8130 READLINE_DEPS
='$(READLINE)'
8131 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
8132 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
8139 # Generate jit-reader.h
8141 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
8144 # The cast to long int works around a bug in the HP C Compiler
8145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8146 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8147 # This bug is HP SR number 8606223364.
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
8149 $as_echo_n "checking size of unsigned long long... " >&6; }
8150 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
8151 $as_echo_n "(cached) " >&6
8153 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
8156 if test "$ac_cv_type_unsigned_long_long" = yes; then
8157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8159 { as_fn_set_status
77
8160 as_fn_error
"cannot compute sizeof (unsigned long long)
8161 See \`config.log' for more details." "$LINENO" 5; }; }
8163 ac_cv_sizeof_unsigned_long_long
=0
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
8169 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
8173 cat >>confdefs.h
<<_ACEOF
8174 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8178 # The cast to long int works around a bug in the HP C Compiler
8179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8181 # This bug is HP SR number 8606223364.
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8183 $as_echo_n "checking size of unsigned long... " >&6; }
8184 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
8185 $as_echo_n "(cached) " >&6
8187 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8190 if test "$ac_cv_type_unsigned_long" = yes; then
8191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8193 { as_fn_set_status
77
8194 as_fn_error
"cannot compute sizeof (unsigned long)
8195 See \`config.log' for more details." "$LINENO" 5; }; }
8197 ac_cv_sizeof_unsigned_long
=0
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
8203 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8207 cat >>confdefs.h
<<_ACEOF
8208 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8212 # The cast to long int works around a bug in the HP C Compiler
8213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8215 # This bug is HP SR number 8606223364.
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
8217 $as_echo_n "checking size of unsigned __int128... " >&6; }
8218 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8221 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
8224 if test "$ac_cv_type_unsigned___int128" = yes; then
8225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8227 { as_fn_set_status
77
8228 as_fn_error
"cannot compute sizeof (unsigned __int128)
8229 See \`config.log' for more details." "$LINENO" 5; }; }
8231 ac_cv_sizeof_unsigned___int128
=0
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
8237 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
8241 cat >>confdefs.h
<<_ACEOF
8242 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
8247 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
8248 TARGET_PTR
="unsigned long"
8249 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
8250 TARGET_PTR
="unsigned long long"
8251 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
8252 TARGET_PTR
="unsigned __int128"
8254 TARGET_PTR
="unsigned long"
8258 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8262 $as_echo_n "checking for library containing dlopen... " >&6; }
8263 if test "${ac_cv_search_dlopen+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
8266 ac_func_search_save_LIBS
=$LIBS
8267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8268 /* end confdefs.h. */
8270 /* Override any GCC internal prototype to avoid an error.
8271 Use char because int might match the return type of a GCC
8272 builtin and then its argument prototype would still apply. */
8285 for ac_lib
in '' dl
; do
8286 if test -z "$ac_lib"; then
8287 ac_res
="none required"
8290 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8292 if ac_fn_c_try_link
"$LINENO"; then :
8293 ac_cv_search_dlopen
=$ac_res
8295 rm -f core conftest.err conftest.
$ac_objext \
8297 if test "${ac_cv_search_dlopen+set}" = set; then :
8301 if test "${ac_cv_search_dlopen+set}" = set; then :
8304 ac_cv_search_dlopen
=no
8307 LIBS
=$ac_func_search_save_LIBS
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8310 $as_echo "$ac_cv_search_dlopen" >&6; }
8311 ac_res
=$ac_cv_search_dlopen
8312 if test "$ac_res" != no
; then :
8313 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8320 # Check whether --with-jit-reader-dir was given.
8321 if test "${with_jit_reader_dir+set}" = set; then :
8322 withval
=$with_jit_reader_dir;
8323 JIT_READER_DIR
=$withval
8325 JIT_READER_DIR
=${libdir}/gdb
8329 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
8330 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8331 ac_define_dir
=`eval echo $JIT_READER_DIR`
8332 ac_define_dir
=`eval echo $ac_define_dir`
8334 cat >>confdefs.h
<<_ACEOF
8335 #define JIT_READER_DIR "$ac_define_dir"
8341 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8342 if test "x$prefix" = xNONE
; then
8343 test_prefix
=/usr
/local
8348 test_prefix
=$exec_prefix
8351 case ${ac_define_dir} in
8352 "${test_prefix}"|
"${test_prefix}/"*|\
8353 '${exec_prefix}'|
'${exec_prefix}/'*)
8358 cat >>confdefs.h
<<_ACEOF
8359 #define JIT_READER_DIR_RELOCATABLE $value
8366 # Check whether --with-expat was given.
8367 if test "${with_expat+set}" = set; then :
8368 withval
=$with_expat;
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8374 $as_echo_n "checking whether to use expat... " >&6; }
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8376 $as_echo "$with_expat" >&6; }
8378 if test "${with_expat}" = no
; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8380 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8393 acl_save_prefix
="$prefix"
8394 prefix
="$acl_final_prefix"
8395 acl_save_exec_prefix
="$exec_prefix"
8396 exec_prefix
="$acl_final_exec_prefix"
8398 eval additional_includedir
=\"$includedir\"
8399 eval additional_libdir
=\"$libdir\"
8401 exec_prefix
="$acl_save_exec_prefix"
8402 prefix
="$acl_save_prefix"
8405 # Check whether --with-libexpat-prefix was given.
8406 if test "${with_libexpat_prefix+set}" = set; then :
8407 withval
=$with_libexpat_prefix;
8408 if test "X$withval" = "Xno"; then
8411 if test "X$withval" = "X"; then
8413 acl_save_prefix
="$prefix"
8414 prefix
="$acl_final_prefix"
8415 acl_save_exec_prefix
="$exec_prefix"
8416 exec_prefix
="$acl_final_exec_prefix"
8418 eval additional_includedir
=\"$includedir\"
8419 eval additional_libdir
=\"$libdir\"
8421 exec_prefix
="$acl_save_exec_prefix"
8422 prefix
="$acl_save_prefix"
8425 additional_includedir
="$withval/include"
8426 additional_libdir
="$withval/lib"
8437 names_already_handled
=
8438 names_next_round
='expat '
8439 while test -n "$names_next_round"; do
8440 names_this_round
="$names_next_round"
8442 for name
in $names_this_round; do
8444 for n
in $names_already_handled; do
8445 if test "$n" = "$name"; then
8450 if test -z "$already_handled"; then
8451 names_already_handled
="$names_already_handled $name"
8452 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8453 eval value
=\"\
$HAVE_LIB$uppername\"
8454 if test -n "$value"; then
8455 if test "$value" = yes; then
8456 eval value
=\"\
$LIB$uppername\"
8457 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
8458 eval value
=\"\
$LTLIB$uppername\"
8459 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8468 if test $use_additional = yes; then
8469 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8470 found_dir
="$additional_libdir"
8471 found_so
="$additional_libdir/lib$name.$shlibext"
8472 if test -f "$additional_libdir/lib$name.la"; then
8473 found_la
="$additional_libdir/lib$name.la"
8476 if test -f "$additional_libdir/lib$name.$libext"; then
8477 found_dir
="$additional_libdir"
8478 found_a
="$additional_libdir/lib$name.$libext"
8479 if test -f "$additional_libdir/lib$name.la"; then
8480 found_la
="$additional_libdir/lib$name.la"
8485 if test "X$found_dir" = "X"; then
8486 for x
in $LDFLAGS $LTLIBEXPAT; do
8488 acl_save_prefix
="$prefix"
8489 prefix
="$acl_final_prefix"
8490 acl_save_exec_prefix
="$exec_prefix"
8491 exec_prefix
="$acl_final_exec_prefix"
8493 exec_prefix
="$acl_save_exec_prefix"
8494 prefix
="$acl_save_prefix"
8498 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8499 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8501 found_so
="$dir/lib$name.$shlibext"
8502 if test -f "$dir/lib$name.la"; then
8503 found_la
="$dir/lib$name.la"
8506 if test -f "$dir/lib$name.$libext"; then
8508 found_a
="$dir/lib$name.$libext"
8509 if test -f "$dir/lib$name.la"; then
8510 found_la
="$dir/lib$name.la"
8516 if test "X$found_dir" != "X"; then
8521 if test "X$found_dir" != "X"; then
8522 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8523 if test "X$found_so" != "X"; then
8524 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8525 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8528 for x
in $ltrpathdirs; do
8529 if test "X$x" = "X$found_dir"; then
8534 if test -z "$haveit"; then
8535 ltrpathdirs
="$ltrpathdirs $found_dir"
8537 if test "$hardcode_direct" = yes; then
8538 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8540 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8541 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8543 for x
in $rpathdirs; do
8544 if test "X$x" = "X$found_dir"; then
8549 if test -z "$haveit"; then
8550 rpathdirs
="$rpathdirs $found_dir"
8554 for x
in $LDFLAGS $LIBEXPAT; do
8556 acl_save_prefix
="$prefix"
8557 prefix
="$acl_final_prefix"
8558 acl_save_exec_prefix
="$exec_prefix"
8559 exec_prefix
="$acl_final_exec_prefix"
8561 exec_prefix
="$acl_save_exec_prefix"
8562 prefix
="$acl_save_prefix"
8564 if test "X$x" = "X-L$found_dir"; then
8569 if test -z "$haveit"; then
8570 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8572 if test "$hardcode_minus_L" != no
; then
8573 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8575 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8581 if test "X$found_a" != "X"; then
8582 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8584 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8587 additional_includedir
=
8588 case "$found_dir" in
8590 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8591 additional_includedir
="$basedir/include"
8594 if test "X$additional_includedir" != "X"; then
8595 if test "X$additional_includedir" != "X/usr/include"; then
8597 if test "X$additional_includedir" = "X/usr/local/include"; then
8598 if test -n "$GCC"; then
8600 linux
*) haveit
=yes;;
8604 if test -z "$haveit"; then
8605 for x
in $CPPFLAGS $INCEXPAT; do
8607 acl_save_prefix
="$prefix"
8608 prefix
="$acl_final_prefix"
8609 acl_save_exec_prefix
="$exec_prefix"
8610 exec_prefix
="$acl_final_exec_prefix"
8612 exec_prefix
="$acl_save_exec_prefix"
8613 prefix
="$acl_save_prefix"
8615 if test "X$x" = "X-I$additional_includedir"; then
8620 if test -z "$haveit"; then
8621 if test -d "$additional_includedir"; then
8622 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8628 if test -n "$found_la"; then
8629 save_libdir
="$libdir"
8631 */* |
*\\*) .
"$found_la" ;;
8632 *) .
"./$found_la" ;;
8634 libdir
="$save_libdir"
8635 for dep
in $dependency_libs; do
8638 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8639 if test "X$additional_libdir" != "X/usr/lib"; then
8641 if test "X$additional_libdir" = "X/usr/local/lib"; then
8642 if test -n "$GCC"; then
8644 linux
*) haveit
=yes;;
8648 if test -z "$haveit"; then
8650 for x
in $LDFLAGS $LIBEXPAT; do
8652 acl_save_prefix
="$prefix"
8653 prefix
="$acl_final_prefix"
8654 acl_save_exec_prefix
="$exec_prefix"
8655 exec_prefix
="$acl_final_exec_prefix"
8657 exec_prefix
="$acl_save_exec_prefix"
8658 prefix
="$acl_save_prefix"
8660 if test "X$x" = "X-L$additional_libdir"; then
8665 if test -z "$haveit"; then
8666 if test -d "$additional_libdir"; then
8667 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8671 for x
in $LDFLAGS $LTLIBEXPAT; do
8673 acl_save_prefix
="$prefix"
8674 prefix
="$acl_final_prefix"
8675 acl_save_exec_prefix
="$exec_prefix"
8676 exec_prefix
="$acl_final_exec_prefix"
8678 exec_prefix
="$acl_save_exec_prefix"
8679 prefix
="$acl_save_prefix"
8681 if test "X$x" = "X-L$additional_libdir"; then
8686 if test -z "$haveit"; then
8687 if test -d "$additional_libdir"; then
8688 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8695 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8696 if test "$enable_rpath" != no
; then
8698 for x
in $rpathdirs; do
8699 if test "X$x" = "X$dir"; then
8704 if test -z "$haveit"; then
8705 rpathdirs
="$rpathdirs $dir"
8708 for x
in $ltrpathdirs; do
8709 if test "X$x" = "X$dir"; then
8714 if test -z "$haveit"; then
8715 ltrpathdirs
="$ltrpathdirs $dir"
8720 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8723 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8726 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8727 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8733 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8734 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8740 if test "X$rpathdirs" != "X"; then
8741 if test -n "$hardcode_libdir_separator"; then
8743 for found_dir
in $rpathdirs; do
8744 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8746 acl_save_libdir
="$libdir"
8748 eval flag
=\"$hardcode_libdir_flag_spec\"
8749 libdir
="$acl_save_libdir"
8750 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8752 for found_dir
in $rpathdirs; do
8753 acl_save_libdir
="$libdir"
8755 eval flag
=\"$hardcode_libdir_flag_spec\"
8756 libdir
="$acl_save_libdir"
8757 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8761 if test "X$ltrpathdirs" != "X"; then
8762 for found_dir
in $ltrpathdirs; do
8763 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8768 ac_save_CPPFLAGS
="$CPPFLAGS"
8770 for element
in $INCEXPAT; do
8772 for x
in $CPPFLAGS; do
8774 acl_save_prefix
="$prefix"
8775 prefix
="$acl_final_prefix"
8776 acl_save_exec_prefix
="$exec_prefix"
8777 exec_prefix
="$acl_final_exec_prefix"
8779 exec_prefix
="$acl_save_exec_prefix"
8780 prefix
="$acl_save_prefix"
8782 if test "X$x" = "X$element"; then
8787 if test -z "$haveit"; then
8788 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8794 $as_echo_n "checking for libexpat... " >&6; }
8795 if test "${ac_cv_libexpat+set}" = set; then :
8796 $as_echo_n "(cached) " >&6
8799 ac_save_LIBS
="$LIBS"
8800 LIBS
="$LIBS $LIBEXPAT"
8801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8807 XML_Parser p = XML_ParserCreate (0);
8812 if ac_fn_c_try_link
"$LINENO"; then :
8817 rm -f core conftest.err conftest.
$ac_objext \
8818 conftest
$ac_exeext conftest.
$ac_ext
8819 LIBS
="$ac_save_LIBS"
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8823 $as_echo "$ac_cv_libexpat" >&6; }
8824 if test "$ac_cv_libexpat" = yes; then
8827 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8830 $as_echo_n "checking how to link with libexpat... " >&6; }
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8832 $as_echo "$LIBEXPAT" >&6; }
8835 CPPFLAGS
="$ac_save_CPPFLAGS"
8845 if test "$HAVE_LIBEXPAT" != yes; then
8846 if test "$with_expat" = yes; then
8847 as_fn_error
"expat is missing or unusable" "$LINENO" 5
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8850 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8854 LIBS
="$LIBS $LIBEXPAT"
8855 for ac_func
in XML_StopParser
8857 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8858 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
8859 cat >>confdefs.h
<<_ACEOF
8860 #define HAVE_XML_STOPPARSER 1
8870 # --------------------- #
8871 # Check for libpython. #
8872 # --------------------- #
8879 # Check whether --with-python was given.
8880 if test "${with_python+set}" = set; then :
8881 withval
=$with_python;
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8887 $as_echo_n "checking whether to use python... " >&6; }
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8889 $as_echo "$with_python" >&6; }
8891 if test "${with_python}" = no
; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8893 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8896 case "${with_python}" in
8898 if test -d ${with_python}; then
8899 # Assume the python binary is ${with_python}/bin/python.
8900 python_prog
="${with_python}/bin/python"
8902 # If python does not exit ${with_python}/bin, then try in
8903 # ${with_python}. On Windows/MinGW, this is where the Python
8905 if test ! -x "${python_prog}"; then
8906 python_prog
="${with_python}/python"
8909 if test ! -x "${python_prog}"; then
8910 # Fall back to gdb 7.0/7.1 behaviour.
8912 python_prefix
=${with_python}
8914 elif test -x "${with_python}"; then
8915 # While we can't run python compiled for $host (unless host == build),
8916 # the user could write a script that provides the needed information,
8917 # so we support that.
8918 python_prog
=${with_python}
8921 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8925 # Disallow --with-python=foo/bar.
8926 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8929 # The user has either specified auto, yes, or the name of the python
8930 # program assumed to be in $PATH.
8932 case "${with_python}" in
8934 if test ${build} = ${host}; then
8935 # Extract the first word of "python", so it can be a program name with args.
8936 set dummy python
; ac_word
=$2
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 $as_echo_n "checking for $ac_word... " >&6; }
8939 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8940 $as_echo_n "(cached) " >&6
8942 case $python_prog_path in
8944 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8951 test -z "$as_dir" && as_dir
=.
8952 for ac_exec_ext
in '' $ac_executable_extensions; do
8953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8954 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8966 python_prog_path
=$ac_cv_path_python_prog_path
8967 if test -n "$python_prog_path"; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8969 $as_echo "$python_prog_path" >&6; }
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972 $as_echo "no" >&6; }
8976 if test "${python_prog_path}" = missing
; then
8979 python_prog
=${python_prog_path}
8982 # Not much we can do except assume the cross-compiler will find the
8988 # While we can't run python compiled for $host (unless host == build),
8989 # the user could write a script that provides the needed information,
8990 # so we support that.
8991 python_prog
="${with_python}"
8992 # Extract the first word of "${python_prog}", so it can be a program name with args.
8993 set dummy
${python_prog}; ac_word
=$2
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995 $as_echo_n "checking for $ac_word... " >&6; }
8996 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8997 $as_echo_n "(cached) " >&6
8999 case $python_prog_path in
9001 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
9004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9008 test -z "$as_dir" && as_dir
=.
9009 for ac_exec_ext
in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9011 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
9023 python_prog_path
=$ac_cv_path_python_prog_path
9024 if test -n "$python_prog_path"; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
9026 $as_echo "$python_prog_path" >&6; }
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029 $as_echo "no" >&6; }
9033 if test "${python_prog_path}" = missing
; then
9034 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
9040 if test "${python_prog}" != missing
; then
9041 # We have a python program to use, but it may be too old.
9042 # Don't flag an error for --with-python=auto (the default).
9043 have_python_config
=yes
9044 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
9045 if test $?
!= 0; then
9046 have_python_config
=failed
9047 if test "${with_python}" != auto
; then
9048 as_fn_error
"failure running python-config --includes" "$LINENO" 5
9051 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
9052 if test $?
!= 0; then
9053 have_python_config
=failed
9054 if test "${with_python}" != auto
; then
9055 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
9058 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
9059 if test $?
!= 0; then
9060 have_python_config
=failed
9061 if test "${with_python}" != auto
; then
9062 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
9066 # We do not have a python executable we can use to determine where
9067 # to find the Python headers and libs. We cannot guess the include
9068 # path from the python_prefix either, because that include path
9069 # depends on the Python version. So, there is nothing much we can
9070 # do except assume that the compiler will be able to find those files.
9073 have_python_config
=no
9076 # If we have python-config, only try the configuration it provides.
9077 # Otherwise fallback on the old way of trying different versions of
9081 if test "${have_python_config}" = yes; then
9082 # Determine the Python version by extracting "-lpython<version>"
9083 # part of the python_libs. <version> is usually X.Y with X and Y
9084 # being decimal numbers, but can also be XY (seen on Windows).
9086 # The extraction is performed using sed with a regular expression.
9087 # Initially, the regexp used was using the '?' quantifier to make
9088 # the dot in the version number optional. Unfortunately, this
9089 # does not work with non-GNU versions of sed because, because of
9090 # what looks like a limitation (the '?' quantifier does not work
9091 # with back-references). We work around this limitation by using
9092 # the '*' quantifier instead. It means that, in theory, we might
9093 # match unexpected version strings such as "-lpython2..7", but
9094 # this seems unlikely in practice. And even if that happens,
9095 # an error will be triggered later on, when checking that version
9097 python_version
=`echo " ${python_libs} " \
9098 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
9099 case "${python_version}" in
9102 version
=${python_version}
9104 new_CPPFLAGS
=${python_includes}
9105 new_LIBS
=${python_libs}
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9107 $as_echo_n "checking for ${version}... " >&6; }
9108 save_CPPFLAGS
=$CPPFLAGS
9110 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9111 LIBS
="$LIBS $new_LIBS"
9112 found_usable_python
=no
9113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9124 if ac_fn_c_try_link
"$LINENO"; then :
9125 have_libpython
=${version}
9126 found_usable_python
=yes
9127 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9128 PYTHON_LIBS
=$new_LIBS
9130 rm -f core conftest.err conftest.
$ac_objext \
9131 conftest
$ac_exeext conftest.
$ac_ext
9132 CPPFLAGS
=$save_CPPFLAGS
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9135 $as_echo "${found_usable_python}" >&6; }
9139 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
9142 elif test "${have_python_config}" != failed
; then
9143 if test "${have_libpython}" = no
; then
9147 new_CPPFLAGS
=${python_includes}
9148 new_LIBS
="${python_libs} -lpython2.7"
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9150 $as_echo_n "checking for ${version}... " >&6; }
9151 save_CPPFLAGS
=$CPPFLAGS
9153 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9154 LIBS
="$LIBS $new_LIBS"
9155 found_usable_python
=no
9156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9167 if ac_fn_c_try_link
"$LINENO"; then :
9168 have_libpython
=${version}
9169 found_usable_python
=yes
9170 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9171 PYTHON_LIBS
=$new_LIBS
9173 rm -f core conftest.err conftest.
$ac_objext \
9174 conftest
$ac_exeext conftest.
$ac_ext
9175 CPPFLAGS
=$save_CPPFLAGS
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9178 $as_echo "${found_usable_python}" >&6; }
9181 if test "${have_libpython}" = no
; then
9185 new_CPPFLAGS
=${python_includes}
9186 new_LIBS
="${python_libs} -lpython2.6"
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9188 $as_echo_n "checking for ${version}... " >&6; }
9189 save_CPPFLAGS
=$CPPFLAGS
9191 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9192 LIBS
="$LIBS $new_LIBS"
9193 found_usable_python
=no
9194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9205 if ac_fn_c_try_link
"$LINENO"; then :
9206 have_libpython
=${version}
9207 found_usable_python
=yes
9208 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9209 PYTHON_LIBS
=$new_LIBS
9211 rm -f core conftest.err conftest.
$ac_objext \
9212 conftest
$ac_exeext conftest.
$ac_ext
9213 CPPFLAGS
=$save_CPPFLAGS
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9216 $as_echo "${found_usable_python}" >&6; }
9219 if test ${have_libpython} = no
; then
9223 new_CPPFLAGS
=${python_includes}
9224 new_LIBS
="${python_libs} -lpython2.5"
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9226 $as_echo_n "checking for ${version}... " >&6; }
9227 save_CPPFLAGS
=$CPPFLAGS
9229 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9230 LIBS
="$LIBS $new_LIBS"
9231 found_usable_python
=no
9232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9243 if ac_fn_c_try_link
"$LINENO"; then :
9244 have_libpython
=${version}
9245 found_usable_python
=yes
9246 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9247 PYTHON_LIBS
=$new_LIBS
9249 rm -f core conftest.err conftest.
$ac_objext \
9250 conftest
$ac_exeext conftest.
$ac_ext
9251 CPPFLAGS
=$save_CPPFLAGS
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9254 $as_echo "${found_usable_python}" >&6; }
9257 if test ${have_libpython} = no
; then
9261 new_CPPFLAGS
=${python_includes}
9262 new_LIBS
="${python_libs} -lpython2.4"
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9264 $as_echo_n "checking for ${version}... " >&6; }
9265 save_CPPFLAGS
=$CPPFLAGS
9267 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9268 LIBS
="$LIBS $new_LIBS"
9269 found_usable_python
=no
9270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9281 if ac_fn_c_try_link
"$LINENO"; then :
9282 have_libpython
=${version}
9283 found_usable_python
=yes
9284 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9285 PYTHON_LIBS
=$new_LIBS
9287 rm -f core conftest.err conftest.
$ac_objext \
9288 conftest
$ac_exeext conftest.
$ac_ext
9289 CPPFLAGS
=$save_CPPFLAGS
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9292 $as_echo "${found_usable_python}" >&6; }
9296 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
9298 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
9300 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
9302 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9304 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
9306 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9308 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
9310 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9314 if test "${have_libpython}" = no
; then
9315 case "${with_python}" in
9317 as_fn_error
"python is missing or unusable" "$LINENO" 5
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9321 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9324 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
9328 if test -n "${python_prefix}"; then
9330 cat >>confdefs.h
<<_ACEOF
9331 #define WITH_PYTHON_PATH "${python_prefix}"
9335 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9336 if test "x$prefix" = xNONE
; then
9337 test_prefix
=/usr
/local
9342 test_prefix
=$exec_prefix
9345 case ${python_prefix} in
9346 "${test_prefix}"|
"${test_prefix}/"*|\
9347 '${exec_prefix}'|
'${exec_prefix}/'*)
9352 cat >>confdefs.h
<<_ACEOF
9353 #define PYTHON_PATH_RELOCATABLE $value
9361 if test "${have_libpython}" != no
; then
9363 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9365 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9366 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9367 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9368 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
9369 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9371 # Flags needed to compile Python code (taken from python-config --cflags).
9372 # We cannot call python-config directly because it will output whatever was
9373 # used when compiling the Python interpreter itself, including flags which
9374 # would make the python-related objects be compiled differently from the
9375 # rest of GDB (e.g., -O2 and -fPIC).
9376 if test "${GCC}" = yes; then
9377 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
9380 if test "x${tentative_python_cflags}" != x
; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9382 $as_echo_n "checking compiler flags for python code... " >&6; }
9383 for flag
in ${tentative_python_cflags}; do
9384 # Check that the compiler accepts it
9385 saved_CFLAGS
="$CFLAGS"
9386 CFLAGS
="$CFLAGS $flag"
9387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9398 if ac_fn_c_try_compile
"$LINENO"; then :
9399 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
9401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9402 CFLAGS
="$saved_CFLAGS"
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9405 $as_echo "${PYTHON_CFLAGS}" >&6; }
9408 # On x64 Windows, Python's include headers, and pyconfig.h in
9409 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
9410 # version of Windows. Unfortunately, MS_WIN64 is only defined if
9411 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
9412 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
9413 # The issue was reported to the Python community, but still isn't
9414 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
9418 if test "${GCC}" = yes; then
9419 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
9424 # Note that "python -m threading" cannot be used to check for
9425 # threading support due to a bug in Python 2.7.3
9426 # (http://bugs.python.org/issue15567).
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
9428 $as_echo_n "checking whether python supports threads... " >&6; }
9429 saved_CPPFLAGS
="${CPPFLAGS}"
9430 CPPFLAGS
="${PYTHON_CPPFLAGS}"
9431 # Note that the test is reversed so that python_has_threads=yes on
9432 # unexpected failures.
9433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9442 if ac_fn_c_try_cpp
"$LINENO"; then :
9443 python_has_threads
=no
9445 python_has_threads
=yes
9447 rm -f conftest.err conftest.
$ac_ext
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9449 $as_echo "${python_has_threads}" >&6; }
9450 CPPFLAGS
="${saved_CPPFLAGS}"
9452 # Even if Python support is not compiled in, we need to have this file
9453 # included so that the "python" command, et.al., still exists.
9454 CONFIG_OBS
="$CONFIG_OBS python.o"
9455 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
9460 if test "${have_libpython}" != no
; then
9462 HAVE_PYTHON_FALSE
='#'
9464 HAVE_PYTHON_TRUE
='#'
9469 # -------------------- #
9470 # Check for libguile. #
9471 # -------------------- #
9478 # Check whether --with-guile was given.
9479 if test "${with_guile+set}" = set; then :
9480 withval
=$with_guile;
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9486 $as_echo_n "checking whether to use guile... " >&6; }
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9488 $as_echo "$with_guile" >&6; }
9490 # Extract the first word of "pkg-config", so it can be a program name with args.
9491 set dummy pkg-config
; ac_word
=$2
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493 $as_echo_n "checking for $ac_word... " >&6; }
9494 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9495 $as_echo_n "(cached) " >&6
9497 case $pkg_config_prog_path in
9499 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
9502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9506 test -z "$as_dir" && as_dir
=.
9507 for ac_exec_ext
in '' $ac_executable_extensions; do
9508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9509 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
9510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9517 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
9521 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
9522 if test -n "$pkg_config_prog_path"; then
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9524 $as_echo "$pkg_config_prog_path" >&6; }
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527 $as_echo "no" >&6; }
9532 try_guile_versions
="guile-2.2 guile-2.0"
9534 case "${with_guile}" in
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9537 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9540 if test "${pkg_config_prog_path}" = "missing"; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9542 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9545 pkg_config
=${pkg_config_prog_path}
9546 guile_version_list
=${try_guile_versions}
9549 found_usable_guile
=checking
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9551 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9552 for guile_version
in ${guile_version_list}; do
9553 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9554 if test $?
!= 0; then
9557 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9558 if test $?
!= 0; then
9559 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9561 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9562 if test $?
!= 0; then
9563 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9565 found_usable_guile
=${guile_version}
9568 if test "${found_usable_guile}" = "checking"; then
9569 if test "${flag_errors}" = "yes"; then
9570 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9572 found_usable_guile
=no
9575 if test "${found_usable_guile}" != no
; then
9576 save_CPPFLAGS
=$CPPFLAGS
9578 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9579 LIBS
="$LIBS $new_LIBS"
9580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9582 #include "libguile.h"
9591 if ac_fn_c_try_link
"$LINENO"; then :
9593 GUILE_CPPFLAGS
=$new_CPPFLAGS
9594 GUILE_LIBS
=$new_LIBS
9596 found_usable_guile
=no
9598 rm -f core conftest.err conftest.
$ac_objext \
9599 conftest
$ac_exeext conftest.
$ac_ext
9600 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9601 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9603 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9608 CPPFLAGS
=$save_CPPFLAGS
9610 if test "${found_usable_guile}" = no
; then
9611 if test "${flag_errors}" = yes; then
9612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9614 as_fn_error
"linking guile version ${guile_version} test program failed
9615 See \`config.log' for more details." "$LINENO" 5; }
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9620 $as_echo "${found_usable_guile}" >&6; }
9625 if test "${pkg_config_prog_path}" = "missing"; then
9626 as_fn_error
"pkg-config not found" "$LINENO" 5
9629 pkg_config
=${pkg_config_prog_path}
9630 guile_version_list
=${try_guile_versions}
9633 found_usable_guile
=checking
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9635 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9636 for guile_version
in ${guile_version_list}; do
9637 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9638 if test $?
!= 0; then
9641 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9642 if test $?
!= 0; then
9643 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9645 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9646 if test $?
!= 0; then
9647 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9649 found_usable_guile
=${guile_version}
9652 if test "${found_usable_guile}" = "checking"; then
9653 if test "${flag_errors}" = "yes"; then
9654 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9656 found_usable_guile
=no
9659 if test "${found_usable_guile}" != no
; then
9660 save_CPPFLAGS
=$CPPFLAGS
9662 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9663 LIBS
="$LIBS $new_LIBS"
9664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666 #include "libguile.h"
9675 if ac_fn_c_try_link
"$LINENO"; then :
9677 GUILE_CPPFLAGS
=$new_CPPFLAGS
9678 GUILE_LIBS
=$new_LIBS
9680 found_usable_guile
=no
9682 rm -f core conftest.err conftest.
$ac_objext \
9683 conftest
$ac_exeext conftest.
$ac_ext
9684 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9685 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9687 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9692 CPPFLAGS
=$save_CPPFLAGS
9694 if test "${found_usable_guile}" = no
; then
9695 if test "${flag_errors}" = yes; then
9696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9698 as_fn_error
"linking guile version ${guile_version} test program failed
9699 See \`config.log' for more details." "$LINENO" 5; }
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9704 $as_echo "${found_usable_guile}" >&6; }
9708 if test -x "${with_guile}"; then
9710 pkg_config
=${with_guile}
9711 guile_version_list
=${try_guile_versions}
9714 found_usable_guile
=checking
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9716 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9717 for guile_version
in ${guile_version_list}; do
9718 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9719 if test $?
!= 0; then
9722 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9723 if test $?
!= 0; then
9724 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9726 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9727 if test $?
!= 0; then
9728 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9730 found_usable_guile
=${guile_version}
9733 if test "${found_usable_guile}" = "checking"; then
9734 if test "${flag_errors}" = "yes"; then
9735 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9737 found_usable_guile
=no
9740 if test "${found_usable_guile}" != no
; then
9741 save_CPPFLAGS
=$CPPFLAGS
9743 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9744 LIBS
="$LIBS $new_LIBS"
9745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9747 #include "libguile.h"
9756 if ac_fn_c_try_link
"$LINENO"; then :
9758 GUILE_CPPFLAGS
=$new_CPPFLAGS
9759 GUILE_LIBS
=$new_LIBS
9761 found_usable_guile
=no
9763 rm -f core conftest.err conftest.
$ac_objext \
9764 conftest
$ac_exeext conftest.
$ac_ext
9765 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9766 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9768 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9773 CPPFLAGS
=$save_CPPFLAGS
9775 if test "${found_usable_guile}" = no
; then
9776 if test "${flag_errors}" = yes; then
9777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9779 as_fn_error
"linking guile version ${guile_version} test program failed
9780 See \`config.log' for more details." "$LINENO" 5; }
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9785 $as_echo "${found_usable_guile}" >&6; }
9788 as_fn_error
"Guile config program not executable: ${with_guile}" "$LINENO" 5
9792 # Disallow --with=guile="" and --with-guile=foo/bar.
9793 as_fn_error
"invalid value for --with-guile" "$LINENO" 5
9796 # A space separate list of guile versions to try, in order.
9797 if test "${pkg_config_prog_path}" = "missing"; then
9798 as_fn_error
"pkg-config not found" "$LINENO" 5
9801 pkg_config
=${pkg_config_prog_path}
9802 guile_version_list
=${with_guile}
9805 found_usable_guile
=checking
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9807 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9808 for guile_version
in ${guile_version_list}; do
9809 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9810 if test $?
!= 0; then
9813 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9814 if test $?
!= 0; then
9815 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9817 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9818 if test $?
!= 0; then
9819 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9821 found_usable_guile
=${guile_version}
9824 if test "${found_usable_guile}" = "checking"; then
9825 if test "${flag_errors}" = "yes"; then
9826 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9828 found_usable_guile
=no
9831 if test "${found_usable_guile}" != no
; then
9832 save_CPPFLAGS
=$CPPFLAGS
9834 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9835 LIBS
="$LIBS $new_LIBS"
9836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9838 #include "libguile.h"
9847 if ac_fn_c_try_link
"$LINENO"; then :
9849 GUILE_CPPFLAGS
=$new_CPPFLAGS
9850 GUILE_LIBS
=$new_LIBS
9852 found_usable_guile
=no
9854 rm -f core conftest.err conftest.
$ac_objext \
9855 conftest
$ac_exeext conftest.
$ac_ext
9856 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9857 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9859 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9864 CPPFLAGS
=$save_CPPFLAGS
9866 if test "${found_usable_guile}" = no
; then
9867 if test "${flag_errors}" = yes; then
9868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9870 as_fn_error
"linking guile version ${guile_version} test program failed
9871 See \`config.log' for more details." "$LINENO" 5; }
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9876 $as_echo "${found_usable_guile}" >&6; }
9881 if test "${have_libguile}" != no
; then
9882 case "${with_guile}" in
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9886 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9887 if test "${ac_cv_guild_program_name+set}" = set; then :
9888 $as_echo_n "(cached) " >&6
9890 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
9892 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9893 # the 'guild' and 'bindir' variables. In that case, try to guess
9894 # what the program name is, at the risk of getting it wrong if
9895 # Guile was configured with '--program-suffix' or similar.
9896 if test "x$ac_cv_guild_program_name" = "x"; then
9897 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9898 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9903 $as_echo "$ac_cv_guild_program_name" >&6; }
9905 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9906 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9909 GUILD
="$ac_cv_guild_program_name"
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9916 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9917 if test "${ac_cv_guild_program_name+set}" = set; then :
9918 $as_echo_n "(cached) " >&6
9920 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9922 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9923 # the 'guild' and 'bindir' variables. In that case, try to guess
9924 # what the program name is, at the risk of getting it wrong if
9925 # Guile was configured with '--program-suffix' or similar.
9926 if test "x$ac_cv_guild_program_name" = "x"; then
9927 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9928 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9933 $as_echo "$ac_cv_guild_program_name" >&6; }
9935 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9936 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9939 GUILD
="$ac_cv_guild_program_name"
9946 if test "$cross_compiling" = no
; then
9949 GUILD_TARGET_FLAG
="--target=$host"
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9956 $as_echo_n "checking whether guild supports this host... " >&6; }
9957 if test "${ac_cv_guild_ok+set}" = set; then :
9958 $as_echo_n "(cached) " >&6
9960 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9961 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9968 $as_echo "$ac_cv_guild_ok" >&6; }
9970 if test "$ac_cv_guild_ok" = no
; then
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9973 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9977 if test "${have_libguile}" != no
; then
9979 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9981 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9982 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9983 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9984 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
9985 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9988 save_CPPFLAGS
="$CPPFLAGS"
9990 CPPFLAGS
="$GUILE_CPPFLAGS"
9991 for ac_func
in scm_new_smob
9993 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9994 if test "x$ac_cv_func_scm_new_smob" = x
""yes; then :
9995 cat >>confdefs.h
<<_ACEOF
9996 #define HAVE_SCM_NEW_SMOB 1
10003 CPPFLAGS
="$save_CPPFLAGS"
10005 # Even if Guile support is not compiled in, we need to have these files
10007 CONFIG_OBS
="$CONFIG_OBS guile.o"
10008 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
10012 if test "${have_libguile}" != no
; then
10014 HAVE_GUILE_FALSE
='#'
10016 HAVE_GUILE_TRUE
='#'
10021 # --------------------- #
10022 # Check for libmcheck. #
10023 # --------------------- #
10025 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
10026 # but turn it off if Python is enabled with threads, since -lmcheck is
10027 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
10028 # and for releases.
10029 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
10030 && $development; then
10031 libmcheck_default
=yes
10033 libmcheck_default
=no
10036 # Check whether --enable-libmcheck was given.
10037 if test "${enable_libmcheck+set}" = set; then :
10038 enableval
=$enable_libmcheck; case "${enableval}" in
10039 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
10040 no | n
) ENABLE_LIBMCHECK
="no" ;;
10041 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
10046 if test -z "${ENABLE_LIBMCHECK}"; then
10047 ENABLE_LIBMCHECK
=${libmcheck_default}
10050 if test "$ENABLE_LIBMCHECK" = "yes" ; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
10052 $as_echo_n "checking for main in -lmcheck... " >&6; }
10053 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
10054 $as_echo_n "(cached) " >&6
10056 ac_check_lib_save_LIBS
=$LIBS
10057 LIBS
="-lmcheck $LIBS"
10058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10070 if ac_fn_c_try_link
"$LINENO"; then :
10071 ac_cv_lib_mcheck_main
=yes
10073 ac_cv_lib_mcheck_main
=no
10075 rm -f core conftest.err conftest.
$ac_objext \
10076 conftest
$ac_exeext conftest.
$ac_ext
10077 LIBS
=$ac_check_lib_save_LIBS
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
10080 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
10081 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
10082 cat >>confdefs.h
<<_ACEOF
10083 #define HAVE_LIBMCHECK 1
10086 LIBS
="-lmcheck $LIBS"
10093 if test "$ENABLE_LIBMCHECK" = "yes" \
10094 -a "${have_libpython}" != "no" \
10095 -a "${python_has_threads}" = "yes" ; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
10097 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
10101 # Check whether --with-intel_pt was given.
10102 if test "${with_intel_pt+set}" = set; then :
10103 withval
=$with_intel_pt;
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
10109 $as_echo_n "checking whether to use intel pt... " >&6; }
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
10111 $as_echo "$with_intel_pt" >&6; }
10113 if test "${with_intel_pt}" = no
; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel(R) Processor Trace support disabled; some features may be unavailable." >&5
10115 $as_echo "$as_me: WARNING: Intel(R) Processor Trace support disabled; some features may be unavailable." >&2;}
10118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10121 #include <linux/perf_event.h>
10122 #ifndef PERF_ATTR_SIZE_VER5
10127 if ac_fn_c_try_cpp
"$LINENO"; then :
10132 rm -f conftest.err conftest.
$ac_ext
10133 if test "$perf_event" != yes; then
10134 if test "$with_intel_pt" = yes; then
10135 as_fn_error
"linux/perf_event.h missing or too old" "$LINENO" 5
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
10138 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
10152 acl_save_prefix
="$prefix"
10153 prefix
="$acl_final_prefix"
10154 acl_save_exec_prefix
="$exec_prefix"
10155 exec_prefix
="$acl_final_exec_prefix"
10157 eval additional_includedir
=\"$includedir\"
10158 eval additional_libdir
=\"$libdir\"
10160 exec_prefix
="$acl_save_exec_prefix"
10161 prefix
="$acl_save_prefix"
10164 # Check whether --with-libipt-prefix was given.
10165 if test "${with_libipt_prefix+set}" = set; then :
10166 withval
=$with_libipt_prefix;
10167 if test "X$withval" = "Xno"; then
10170 if test "X$withval" = "X"; then
10172 acl_save_prefix
="$prefix"
10173 prefix
="$acl_final_prefix"
10174 acl_save_exec_prefix
="$exec_prefix"
10175 exec_prefix
="$acl_final_exec_prefix"
10177 eval additional_includedir
=\"$includedir\"
10178 eval additional_libdir
=\"$libdir\"
10180 exec_prefix
="$acl_save_exec_prefix"
10181 prefix
="$acl_save_prefix"
10184 additional_includedir
="$withval/include"
10185 additional_libdir
="$withval/lib"
10196 names_already_handled
=
10197 names_next_round
='ipt '
10198 while test -n "$names_next_round"; do
10199 names_this_round
="$names_next_round"
10201 for name
in $names_this_round; do
10203 for n
in $names_already_handled; do
10204 if test "$n" = "$name"; then
10205 already_handled
=yes
10209 if test -z "$already_handled"; then
10210 names_already_handled
="$names_already_handled $name"
10211 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10212 eval value
=\"\
$HAVE_LIB$uppername\"
10213 if test -n "$value"; then
10214 if test "$value" = yes; then
10215 eval value
=\"\
$LIB$uppername\"
10216 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
10217 eval value
=\"\
$LTLIB$uppername\"
10218 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
10227 if test $use_additional = yes; then
10228 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10229 found_dir
="$additional_libdir"
10230 found_so
="$additional_libdir/lib$name.$shlibext"
10231 if test -f "$additional_libdir/lib$name.la"; then
10232 found_la
="$additional_libdir/lib$name.la"
10235 if test -f "$additional_libdir/lib$name.$libext"; then
10236 found_dir
="$additional_libdir"
10237 found_a
="$additional_libdir/lib$name.$libext"
10238 if test -f "$additional_libdir/lib$name.la"; then
10239 found_la
="$additional_libdir/lib$name.la"
10244 if test "X$found_dir" = "X"; then
10245 for x
in $LDFLAGS $LTLIBIPT; do
10247 acl_save_prefix
="$prefix"
10248 prefix
="$acl_final_prefix"
10249 acl_save_exec_prefix
="$exec_prefix"
10250 exec_prefix
="$acl_final_exec_prefix"
10252 exec_prefix
="$acl_save_exec_prefix"
10253 prefix
="$acl_save_prefix"
10257 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10258 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10260 found_so
="$dir/lib$name.$shlibext"
10261 if test -f "$dir/lib$name.la"; then
10262 found_la
="$dir/lib$name.la"
10265 if test -f "$dir/lib$name.$libext"; then
10267 found_a
="$dir/lib$name.$libext"
10268 if test -f "$dir/lib$name.la"; then
10269 found_la
="$dir/lib$name.la"
10275 if test "X$found_dir" != "X"; then
10280 if test "X$found_dir" != "X"; then
10281 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
10282 if test "X$found_so" != "X"; then
10283 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10284 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10287 for x
in $ltrpathdirs; do
10288 if test "X$x" = "X$found_dir"; then
10293 if test -z "$haveit"; then
10294 ltrpathdirs
="$ltrpathdirs $found_dir"
10296 if test "$hardcode_direct" = yes; then
10297 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10299 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10300 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10302 for x
in $rpathdirs; do
10303 if test "X$x" = "X$found_dir"; then
10308 if test -z "$haveit"; then
10309 rpathdirs
="$rpathdirs $found_dir"
10313 for x
in $LDFLAGS $LIBIPT; do
10315 acl_save_prefix
="$prefix"
10316 prefix
="$acl_final_prefix"
10317 acl_save_exec_prefix
="$exec_prefix"
10318 exec_prefix
="$acl_final_exec_prefix"
10320 exec_prefix
="$acl_save_exec_prefix"
10321 prefix
="$acl_save_prefix"
10323 if test "X$x" = "X-L$found_dir"; then
10328 if test -z "$haveit"; then
10329 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
10331 if test "$hardcode_minus_L" != no
; then
10332 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10334 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10340 if test "X$found_a" != "X"; then
10341 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
10343 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
10346 additional_includedir
=
10347 case "$found_dir" in
10349 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10350 additional_includedir
="$basedir/include"
10353 if test "X$additional_includedir" != "X"; then
10354 if test "X$additional_includedir" != "X/usr/include"; then
10356 if test "X$additional_includedir" = "X/usr/local/include"; then
10357 if test -n "$GCC"; then
10359 linux
*) haveit
=yes;;
10363 if test -z "$haveit"; then
10364 for x
in $CPPFLAGS $INCIPT; do
10366 acl_save_prefix
="$prefix"
10367 prefix
="$acl_final_prefix"
10368 acl_save_exec_prefix
="$exec_prefix"
10369 exec_prefix
="$acl_final_exec_prefix"
10371 exec_prefix
="$acl_save_exec_prefix"
10372 prefix
="$acl_save_prefix"
10374 if test "X$x" = "X-I$additional_includedir"; then
10379 if test -z "$haveit"; then
10380 if test -d "$additional_includedir"; then
10381 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10387 if test -n "$found_la"; then
10388 save_libdir
="$libdir"
10389 case "$found_la" in
10390 */* |
*\\*) .
"$found_la" ;;
10391 *) .
"./$found_la" ;;
10393 libdir
="$save_libdir"
10394 for dep
in $dependency_libs; do
10397 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10398 if test "X$additional_libdir" != "X/usr/lib"; then
10400 if test "X$additional_libdir" = "X/usr/local/lib"; then
10401 if test -n "$GCC"; then
10403 linux
*) haveit
=yes;;
10407 if test -z "$haveit"; then
10409 for x
in $LDFLAGS $LIBIPT; do
10411 acl_save_prefix
="$prefix"
10412 prefix
="$acl_final_prefix"
10413 acl_save_exec_prefix
="$exec_prefix"
10414 exec_prefix
="$acl_final_exec_prefix"
10416 exec_prefix
="$acl_save_exec_prefix"
10417 prefix
="$acl_save_prefix"
10419 if test "X$x" = "X-L$additional_libdir"; then
10424 if test -z "$haveit"; then
10425 if test -d "$additional_libdir"; then
10426 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10430 for x
in $LDFLAGS $LTLIBIPT; do
10432 acl_save_prefix
="$prefix"
10433 prefix
="$acl_final_prefix"
10434 acl_save_exec_prefix
="$exec_prefix"
10435 exec_prefix
="$acl_final_exec_prefix"
10437 exec_prefix
="$acl_save_exec_prefix"
10438 prefix
="$acl_save_prefix"
10440 if test "X$x" = "X-L$additional_libdir"; then
10445 if test -z "$haveit"; then
10446 if test -d "$additional_libdir"; then
10447 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10454 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10455 if test "$enable_rpath" != no
; then
10457 for x
in $rpathdirs; do
10458 if test "X$x" = "X$dir"; then
10463 if test -z "$haveit"; then
10464 rpathdirs
="$rpathdirs $dir"
10467 for x
in $ltrpathdirs; do
10468 if test "X$x" = "X$dir"; then
10473 if test -z "$haveit"; then
10474 ltrpathdirs
="$ltrpathdirs $dir"
10479 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10482 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10485 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
10486 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10492 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10493 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10499 if test "X$rpathdirs" != "X"; then
10500 if test -n "$hardcode_libdir_separator"; then
10502 for found_dir
in $rpathdirs; do
10503 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10505 acl_save_libdir
="$libdir"
10507 eval flag
=\"$hardcode_libdir_flag_spec\"
10508 libdir
="$acl_save_libdir"
10509 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10511 for found_dir
in $rpathdirs; do
10512 acl_save_libdir
="$libdir"
10513 libdir
="$found_dir"
10514 eval flag
=\"$hardcode_libdir_flag_spec\"
10515 libdir
="$acl_save_libdir"
10516 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10520 if test "X$ltrpathdirs" != "X"; then
10521 for found_dir
in $ltrpathdirs; do
10522 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10527 ac_save_CPPFLAGS
="$CPPFLAGS"
10529 for element
in $INCIPT; do
10531 for x
in $CPPFLAGS; do
10533 acl_save_prefix
="$prefix"
10534 prefix
="$acl_final_prefix"
10535 acl_save_exec_prefix
="$exec_prefix"
10536 exec_prefix
="$acl_final_exec_prefix"
10538 exec_prefix
="$acl_save_exec_prefix"
10539 prefix
="$acl_save_prefix"
10541 if test "X$x" = "X$element"; then
10546 if test -z "$haveit"; then
10547 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10553 $as_echo_n "checking for libipt... " >&6; }
10554 if test "${ac_cv_libipt+set}" = set; then :
10555 $as_echo_n "(cached) " >&6
10558 ac_save_LIBS
="$LIBS"
10559 LIBS
="$LIBS $LIBIPT"
10560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h. */
10562 #include "intel-pt.h"
10566 pt_insn_alloc_decoder (0);
10571 if ac_fn_c_try_link
"$LINENO"; then :
10576 rm -f core conftest.err conftest.
$ac_objext \
10577 conftest
$ac_exeext conftest.
$ac_ext
10578 LIBS
="$ac_save_LIBS"
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10582 $as_echo "$ac_cv_libipt" >&6; }
10583 if test "$ac_cv_libipt" = yes; then
10586 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10589 $as_echo_n "checking how to link with libipt... " >&6; }
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10591 $as_echo "$LIBIPT" >&6; }
10594 CPPFLAGS
="$ac_save_CPPFLAGS"
10604 if test "$HAVE_LIBIPT" != yes; then
10605 if test "$with_intel_pt" = yes; then
10606 as_fn_error
"libipt is missing or unusable" "$LINENO" 5
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10609 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10614 # ------------------------- #
10615 # Checks for header files. #
10616 # ------------------------- #
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10619 $as_echo_n "checking for ANSI C header files... " >&6; }
10620 if test "${ac_cv_header_stdc+set}" = set; then :
10621 $as_echo_n "(cached) " >&6
10623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10625 #include <stdlib.h>
10626 #include <stdarg.h>
10627 #include <string.h>
10638 if ac_fn_c_try_compile
"$LINENO"; then :
10639 ac_cv_header_stdc
=yes
10641 ac_cv_header_stdc
=no
10643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10645 if test $ac_cv_header_stdc = yes; then
10646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include <string.h>
10652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10653 $EGREP "memchr" >/dev
/null
2>&1; then :
10656 ac_cv_header_stdc
=no
10662 if test $ac_cv_header_stdc = yes; then
10663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10666 #include <stdlib.h>
10669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10670 $EGREP "free" >/dev
/null
2>&1; then :
10673 ac_cv_header_stdc
=no
10679 if test $ac_cv_header_stdc = yes; then
10680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10681 if test "$cross_compiling" = yes; then :
10684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10687 #include <stdlib.h>
10688 #if ((' ' & 0x0FF) == 0x020)
10689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10692 # define ISLOWER(c) \
10693 (('a' <= (c) && (c) <= 'i') \
10694 || ('j' <= (c) && (c) <= 'r') \
10695 || ('s' <= (c) && (c) <= 'z'))
10696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10704 for (i = 0; i < 256; i++)
10705 if (XOR (islower (i), ISLOWER (i))
10706 || toupper (i) != TOUPPER (i))
10711 if ac_fn_c_try_run
"$LINENO"; then :
10714 ac_cv_header_stdc
=no
10716 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10717 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10723 $as_echo "$ac_cv_header_stdc" >&6; }
10724 if test $ac_cv_header_stdc = yes; then
10726 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10730 # elf_hp.h is for HP/UX 64-bit shared library support.
10731 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
10734 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
10735 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
10736 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
10737 termios.h termio.h \
10741 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10742 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10743 eval as_val
=\$
$as_ac_Header
10744 if test "x$as_val" = x
""yes; then :
10745 cat >>confdefs.h
<<_ACEOF
10746 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10753 for ac_header
in sys
/proc.h
10755 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10756 # include <sys/param.h>
10760 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
10761 cat >>confdefs.h
<<_ACEOF
10762 #define HAVE_SYS_PROC_H 1
10769 for ac_header
in sys
/user.h
10771 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10772 # include <sys/param.h>
10776 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
10777 cat >>confdefs.h
<<_ACEOF
10778 #define HAVE_SYS_USER_H 1
10786 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10787 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10788 # think that we don't have <curses.h> if we're using GCC.
10791 if test "$GCC" = yes; then
10793 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
10797 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
10799 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10800 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10801 eval as_val
=\$
$as_ac_Header
10802 if test "x$as_val" = x
""yes; then :
10803 cat >>confdefs.h
<<_ACEOF
10804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10811 for ac_header
in term.h
10813 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10814 # include <curses.h>
10818 if test "x$ac_cv_header_term_h" = x
""yes; then :
10819 cat >>confdefs.h
<<_ACEOF
10820 #define HAVE_TERM_H 1
10828 # ------------------------- #
10829 # Checks for declarations. #
10830 # ------------------------- #
10833 # Check for presence and size of long long.
10834 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10835 if test "x$ac_cv_type_long_long" = x
""yes; then :
10837 cat >>confdefs.h
<<_ACEOF
10838 #define HAVE_LONG_LONG 1
10841 # The cast to long int works around a bug in the HP C Compiler
10842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10844 # This bug is HP SR number 8606223364.
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10846 $as_echo_n "checking size of long long... " >&6; }
10847 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10848 $as_echo_n "(cached) " >&6
10850 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10853 if test "$ac_cv_type_long_long" = yes; then
10854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10856 { as_fn_set_status
77
10857 as_fn_error
"cannot compute sizeof (long long)
10858 See \`config.log' for more details." "$LINENO" 5; }; }
10860 ac_cv_sizeof_long_long
=0
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10866 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10870 cat >>confdefs.h
<<_ACEOF
10871 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10878 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
10879 if test "x$ac_cv_have_decl_basename_char_p_" = x
""yes; then :
10885 cat >>confdefs.h
<<_ACEOF
10886 #define HAVE_DECL_BASENAME $ac_have_decl
10888 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10889 if test "x$ac_cv_have_decl_ffs" = x
""yes; then :
10895 cat >>confdefs.h
<<_ACEOF
10896 #define HAVE_DECL_FFS $ac_have_decl
10898 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10899 if test "x$ac_cv_have_decl_asprintf" = x
""yes; then :
10905 cat >>confdefs.h
<<_ACEOF
10906 #define HAVE_DECL_ASPRINTF $ac_have_decl
10908 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10909 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
10915 cat >>confdefs.h
<<_ACEOF
10916 #define HAVE_DECL_VASPRINTF $ac_have_decl
10918 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10919 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
10925 cat >>confdefs.h
<<_ACEOF
10926 #define HAVE_DECL_SNPRINTF $ac_have_decl
10928 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10929 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
10935 cat >>confdefs.h
<<_ACEOF
10936 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10939 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10940 if test "x$ac_cv_have_decl_strtol" = x
""yes; then :
10946 cat >>confdefs.h
<<_ACEOF
10947 #define HAVE_DECL_STRTOL $ac_have_decl
10949 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10950 if test "x$ac_cv_have_decl_strtoul" = x
""yes; then :
10956 cat >>confdefs.h
<<_ACEOF
10957 #define HAVE_DECL_STRTOUL $ac_have_decl
10959 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10960 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
10966 cat >>confdefs.h
<<_ACEOF
10967 #define HAVE_DECL_STRTOLL $ac_have_decl
10969 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10970 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
10976 cat >>confdefs.h
<<_ACEOF
10977 #define HAVE_DECL_STRTOULL $ac_have_decl
10980 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10981 if test "x$ac_cv_have_decl_strverscmp" = x
""yes; then :
10987 cat >>confdefs.h
<<_ACEOF
10988 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10993 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10994 if test "x$ac_cv_have_decl_free" = x
""yes; then :
11000 cat >>confdefs.h
<<_ACEOF
11001 #define HAVE_DECL_FREE $ac_have_decl
11003 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11004 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
11010 cat >>confdefs.h
<<_ACEOF
11011 #define HAVE_DECL_MALLOC $ac_have_decl
11013 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11014 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
11020 cat >>confdefs.h
<<_ACEOF
11021 #define HAVE_DECL_REALLOC $ac_have_decl
11023 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11024 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
11030 cat >>confdefs.h
<<_ACEOF
11031 #define HAVE_DECL_SNPRINTF $ac_have_decl
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11036 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11037 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11042 #include <locale.h>
11051 if ac_fn_c_try_link
"$LINENO"; then :
11052 am_cv_val_LC_MESSAGES
=yes
11054 am_cv_val_LC_MESSAGES
=no
11056 rm -f core conftest.err conftest.
$ac_objext \
11057 conftest
$ac_exeext conftest.
$ac_ext
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11060 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11061 if test $am_cv_val_LC_MESSAGES = yes; then
11063 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11068 # ----------------------- #
11069 # Checks for structures. #
11070 # ----------------------- #
11072 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11073 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
11075 cat >>confdefs.h
<<_ACEOF
11076 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11081 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11082 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
11084 cat >>confdefs.h
<<_ACEOF
11085 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11092 # ------------------ #
11093 # Checks for types. #
11094 # ------------------ #
11096 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11097 #include <sys/socket.h>
11100 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
11102 cat >>confdefs.h
<<_ACEOF
11103 #define HAVE_SOCKLEN_T 1
11110 # ------------------------------------- #
11111 # Checks for compiler characteristics. #
11112 # ------------------------------------- #
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11115 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11116 if test "${ac_cv_c_const+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11125 /* FIXME: Include the comments suggested by Paul. */
11126 #ifndef __cplusplus
11127 /* Ultrix mips cc rejects this. */
11128 typedef int charset[2];
11130 /* SunOS 4.1.1 cc rejects this. */
11131 char const *const *pcpcc;
11133 /* NEC SVR4.0.2 mips cc rejects this. */
11134 struct point {int x, y;};
11135 static struct point const zero = {0,0};
11136 /* AIX XL C 1.02.0.0 rejects this.
11137 It does not let you subtract one const X* pointer from another in
11138 an arm of an if-expression whose if-part is not a constant
11140 const char *g = "string";
11141 pcpcc = &g + (g ? g-g : 0);
11142 /* HPUX 7.0 cc rejects these. */
11144 ppc = (char**) pcpcc;
11145 pcpcc = (char const *const *) ppc;
11146 { /* SCO 3.2v4 cc rejects this. */
11148 char const *s = 0 ? (char *) 0 : (char const *) 0;
11153 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11154 int x[] = {25, 17};
11155 const int *foo = &x[0];
11158 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11159 typedef const int *iptr;
11163 { /* AIX XL C 1.02.0.0 rejects this saying
11164 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11165 struct s { int j; const int *ap[3]; };
11166 struct s *b; b->j = 5;
11168 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11169 const int foo = 10;
11170 if (!foo) return 0;
11172 return !cs[0] && !zero.x;
11179 if ac_fn_c_try_compile
"$LINENO"; then :
11184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11187 $as_echo "$ac_cv_c_const" >&6; }
11188 if test $ac_cv_c_const = no
; then
11190 $as_echo "#define const /**/" >>confdefs.h
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11195 $as_echo_n "checking for inline... " >&6; }
11196 if test "${ac_cv_c_inline+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
11200 for ac_kw
in inline __inline__ __inline
; do
11201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11203 #ifndef __cplusplus
11205 static $ac_kw foo_t static_foo () {return 0; }
11206 $ac_kw foo_t foo () {return 0; }
11210 if ac_fn_c_try_compile
"$LINENO"; then :
11211 ac_cv_c_inline
=$ac_kw
11213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11214 test "$ac_cv_c_inline" != no
&& break
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11219 $as_echo "$ac_cv_c_inline" >&6; }
11221 case $ac_cv_c_inline in
11224 case $ac_cv_c_inline in
11226 *) ac_val
=$ac_cv_c_inline;;
11228 cat >>confdefs.h
<<_ACEOF
11229 #ifndef __cplusplus
11230 #define inline $ac_val
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11237 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11238 if test "${ac_cv_c_bigendian+set}" = set; then :
11239 $as_echo_n "(cached) " >&6
11241 ac_cv_c_bigendian
=unknown
11242 # See if we're dealing with a universal compiler.
11243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245 #ifndef __APPLE_CC__
11246 not a universal capable compiler
11251 if ac_fn_c_try_compile
"$LINENO"; then :
11253 # Check for potential -arch flags. It is not universal unless
11254 # there are at least two -arch flags with different values.
11257 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11258 if test -n "$ac_prev"; then
11260 i?
86 | x86_64 | ppc | ppc64
)
11261 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11264 ac_cv_c_bigendian
=universal
11270 elif test "x$ac_word" = "x-arch"; then
11275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11276 if test $ac_cv_c_bigendian = unknown
; then
11277 # See if sys/param.h defines the BYTE_ORDER macro.
11278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11280 #include <sys/types.h>
11281 #include <sys/param.h>
11286 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11287 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11289 bogus endian macros
11296 if ac_fn_c_try_compile
"$LINENO"; then :
11297 # It does; now see whether it defined to BIG_ENDIAN or not.
11298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11300 #include <sys/types.h>
11301 #include <sys/param.h>
11306 #if BYTE_ORDER != BIG_ENDIAN
11314 if ac_fn_c_try_compile
"$LINENO"; then :
11315 ac_cv_c_bigendian
=yes
11317 ac_cv_c_bigendian
=no
11319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11323 if test $ac_cv_c_bigendian = unknown
; then
11324 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11327 #include <limits.h>
11332 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11333 bogus endian macros
11340 if ac_fn_c_try_compile
"$LINENO"; then :
11341 # It does; now see whether it defined to _BIG_ENDIAN or not.
11342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11344 #include <limits.h>
11349 #ifndef _BIG_ENDIAN
11357 if ac_fn_c_try_compile
"$LINENO"; then :
11358 ac_cv_c_bigendian
=yes
11360 ac_cv_c_bigendian
=no
11362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11366 if test $ac_cv_c_bigendian = unknown
; then
11367 # Compile a test program.
11368 if test "$cross_compiling" = yes; then :
11369 # Try to guess by grepping values from an object file.
11370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11372 short int ascii_mm[] =
11373 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11374 short int ascii_ii[] =
11375 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11376 int use_ascii (int i) {
11377 return ascii_mm[i] + ascii_ii[i];
11379 short int ebcdic_ii[] =
11380 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11381 short int ebcdic_mm[] =
11382 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11383 int use_ebcdic (int i) {
11384 return ebcdic_mm[i] + ebcdic_ii[i];
11391 return use_ascii (foo) == use_ebcdic (foo);
11396 if ac_fn_c_try_compile
"$LINENO"; then :
11397 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11398 ac_cv_c_bigendian
=yes
11400 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11401 if test "$ac_cv_c_bigendian" = unknown
; then
11402 ac_cv_c_bigendian
=no
11404 # finding both strings is unlikely to happen, but who knows?
11405 ac_cv_c_bigendian
=unknown
11409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h. */
11413 $ac_includes_default
11418 /* Are we little or big endian? From Harbison&Steele. */
11422 char c[sizeof (long int)];
11425 return u.c[sizeof (long int) - 1] == 1;
11431 if ac_fn_c_try_run
"$LINENO"; then :
11432 ac_cv_c_bigendian
=no
11434 ac_cv_c_bigendian
=yes
11436 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11437 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11443 $as_echo "$ac_cv_c_bigendian" >&6; }
11444 case $ac_cv_c_bigendian in #(
11446 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11452 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11456 as_fn_error
"unknown endianness
11457 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11461 # ------------------------------ #
11462 # Checks for library functions. #
11463 # ------------------------------ #
11465 for ac_header
in stdlib.h unistd.h
11467 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11468 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11469 eval as_val
=\$
$as_ac_Header
11470 if test "x$as_val" = x
""yes; then :
11471 cat >>confdefs.h
<<_ACEOF
11472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11479 for ac_func
in getpagesize
11481 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11482 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
11483 cat >>confdefs.h
<<_ACEOF
11484 #define HAVE_GETPAGESIZE 1
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11491 $as_echo_n "checking for working mmap... " >&6; }
11492 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11493 $as_echo_n "(cached) " >&6
11495 if test "$cross_compiling" = yes; then :
11496 ac_cv_func_mmap_fixed_mapped
=no
11498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11500 $ac_includes_default
11501 /* malloc might have been renamed as rpl_malloc. */
11504 /* Thanks to Mike Haertel and Jim Avera for this test.
11505 Here is a matrix of mmap possibilities:
11506 mmap private not fixed
11507 mmap private fixed at somewhere currently unmapped
11508 mmap private fixed at somewhere already mapped
11509 mmap shared not fixed
11510 mmap shared fixed at somewhere currently unmapped
11511 mmap shared fixed at somewhere already mapped
11512 For private mappings, we should verify that changes cannot be read()
11513 back from the file, nor mmap's back from the file at a different
11514 address. (There have been systems where private was not correctly
11515 implemented like the infamous i386 svr4.0, and systems where the
11516 VM page cache was not coherent with the file system buffer cache
11517 like early versions of FreeBSD and possibly contemporary NetBSD.)
11518 For shared mappings, we should conversely verify that changes get
11519 propagated back to all the places they're supposed to be.
11521 Grep wants private fixed already mapped.
11522 The main things grep needs to know about mmap are:
11523 * does it exist and is it safe to write into the mmap'd area
11524 * how to use it (BSD variants) */
11527 #include <sys/mman.h>
11529 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11533 /* This mess was copied from the GNU getpagesize.h. */
11534 #ifndef HAVE_GETPAGESIZE
11535 /* Assume that all systems that can run configure have sys/param.h. */
11536 # ifndef HAVE_SYS_PARAM_H
11537 # define HAVE_SYS_PARAM_H 1
11540 # ifdef _SC_PAGESIZE
11541 # define getpagesize() sysconf(_SC_PAGESIZE)
11542 # else /* no _SC_PAGESIZE */
11543 # ifdef HAVE_SYS_PARAM_H
11544 # include <sys/param.h>
11545 # ifdef EXEC_PAGESIZE
11546 # define getpagesize() EXEC_PAGESIZE
11547 # else /* no EXEC_PAGESIZE */
11549 # define getpagesize() NBPG * CLSIZE
11552 # endif /* no CLSIZE */
11553 # else /* no NBPG */
11555 # define getpagesize() NBPC
11556 # else /* no NBPC */
11558 # define getpagesize() PAGESIZE
11559 # endif /* PAGESIZE */
11560 # endif /* no NBPC */
11561 # endif /* no NBPG */
11562 # endif /* no EXEC_PAGESIZE */
11563 # else /* no HAVE_SYS_PARAM_H */
11564 # define getpagesize() 8192 /* punt totally */
11565 # endif /* no HAVE_SYS_PARAM_H */
11566 # endif /* no _SC_PAGESIZE */
11568 #endif /* no HAVE_GETPAGESIZE */
11573 char *data, *data2, *data3;
11577 pagesize = getpagesize ();
11579 /* First, make a file with some known garbage in it. */
11580 data = (char *) malloc (pagesize);
11583 for (i = 0; i < pagesize; ++i)
11584 *(data + i) = rand ();
11586 fd = creat ("conftest.mmap", 0600);
11589 if (write (fd, data, pagesize) != pagesize)
11593 /* Next, try to mmap the file at a fixed address which already has
11594 something else allocated at it. If we can, also make sure that
11595 we see the same garbage. */
11596 fd = open ("conftest.mmap", O_RDWR);
11599 data2 = (char *) malloc (2 * pagesize);
11602 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11603 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11604 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11606 for (i = 0; i < pagesize; ++i)
11607 if (*(data + i) != *(data2 + i))
11610 /* Finally, make sure that changes to the mapped area do not
11611 percolate back to the file as seen by read(). (This is a bug on
11612 some variants of i386 svr4.0.) */
11613 for (i = 0; i < pagesize; ++i)
11614 *(data2 + i) = *(data2 + i) + 1;
11615 data3 = (char *) malloc (pagesize);
11618 if (read (fd, data3, pagesize) != pagesize)
11620 for (i = 0; i < pagesize; ++i)
11621 if (*(data + i) != *(data3 + i))
11627 if ac_fn_c_try_run
"$LINENO"; then :
11628 ac_cv_func_mmap_fixed_mapped
=yes
11630 ac_cv_func_mmap_fixed_mapped
=no
11632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11633 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11638 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11639 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11641 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11644 rm -f conftest.mmap
11646 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11647 if test "x$ac_cv_type_pid_t" = x
""yes; then :
11651 cat >>confdefs.h
<<_ACEOF
11657 for ac_header
in vfork.h
11659 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11660 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
11661 cat >>confdefs.h
<<_ACEOF
11662 #define HAVE_VFORK_H 1
11669 for ac_func
in fork vfork
11671 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11672 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11673 eval as_val
=\$
$as_ac_var
11674 if test "x$as_val" = x
""yes; then :
11675 cat >>confdefs.h
<<_ACEOF
11676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11682 if test "x$ac_cv_func_fork" = xyes
; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11684 $as_echo_n "checking for working fork... " >&6; }
11685 if test "${ac_cv_func_fork_works+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
11688 if test "$cross_compiling" = yes; then :
11689 ac_cv_func_fork_works
=cross
11691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11693 $ac_includes_default
11698 /* By Ruediger Kuhlmann. */
11699 return fork () < 0;
11705 if ac_fn_c_try_run
"$LINENO"; then :
11706 ac_cv_func_fork_works
=yes
11708 ac_cv_func_fork_works
=no
11710 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11711 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11716 $as_echo "$ac_cv_func_fork_works" >&6; }
11719 ac_cv_func_fork_works
=$ac_cv_func_fork
11721 if test "x$ac_cv_func_fork_works" = xcross
; then
11723 *-*-amigaos* |
*-*-msdosdjgpp*)
11724 # Override, as these systems have only a dummy fork() stub
11725 ac_cv_func_fork_works
=no
11728 ac_cv_func_fork_works
=yes
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11732 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11734 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11735 if test "x$ac_cv_func_vfork" = xyes
; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11737 $as_echo_n "checking for working vfork... " >&6; }
11738 if test "${ac_cv_func_vfork_works+set}" = set; then :
11739 $as_echo_n "(cached) " >&6
11741 if test "$cross_compiling" = yes; then :
11742 ac_cv_func_vfork_works
=cross
11744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11746 /* Thanks to Paul Eggert for this test. */
11747 $ac_includes_default
11748 #include <sys/wait.h>
11749 #ifdef HAVE_VFORK_H
11750 # include <vfork.h>
11752 /* On some sparc systems, changes by the child to local and incoming
11753 argument registers are propagated back to the parent. The compiler
11754 is told about this with #include <vfork.h>, but some compilers
11755 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11756 static variable whose address is put into a register that is
11757 clobbered by the vfork. */
11760 sparc_address_test (int arg)
11762 sparc_address_test (arg) int arg;
11765 static pid_t child;
11783 pid_t parent = getpid ();
11786 sparc_address_test (0);
11791 /* Here is another test for sparc vfork register problems. This
11792 test uses lots of local variables, at least as many local
11793 variables as main has allocated so far including compiler
11794 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11795 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11796 reuse the register of parent for one of the local variables,
11797 since it will think that parent can't possibly be used any more
11798 in this routine. Assigning to the local variable will thus
11799 munge parent in the parent process. */
11801 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11802 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11803 /* Convince the compiler that p..p7 are live; otherwise, it might
11804 use the same hardware register for all 8 local variables. */
11805 if (p != p1 || p != p2 || p != p3 || p != p4
11806 || p != p5 || p != p6 || p != p7)
11809 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11810 from child file descriptors. If the child closes a descriptor
11811 before it execs or exits, this munges the parent's descriptor
11812 as well. Test for this by closing stdout in the child. */
11813 _exit(close(fileno(stdout)) != 0);
11818 while (wait(&status) != child)
11821 /* Was there some problem with vforking? */
11824 /* Did the child fail? (This shouldn't happen.) */
11827 /* Did the vfork/compiler bug occur? */
11828 || parent != getpid()
11830 /* Did the file descriptor bug occur? */
11831 || fstat(fileno(stdout), &st) != 0
11836 if ac_fn_c_try_run
"$LINENO"; then :
11837 ac_cv_func_vfork_works
=yes
11839 ac_cv_func_vfork_works
=no
11841 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11842 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11847 $as_echo "$ac_cv_func_vfork_works" >&6; }
11850 if test "x$ac_cv_func_fork_works" = xcross
; then
11851 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11853 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11856 if test "x$ac_cv_func_vfork_works" = xyes
; then
11858 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11862 $as_echo "#define vfork fork" >>confdefs.h
11865 if test "x$ac_cv_func_fork_works" = xyes
; then
11867 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11871 for ac_func
in getauxval getrusage getuid getgid \
11872 pipe poll pread pread64 pwrite resize_term \
11873 sbrk setpgid setpgrp setsid \
11874 sigaction sigprocmask sigsetmask socketpair \
11875 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
11876 setrlimit getrlimit posix_madvise waitpid \
11877 ptrace64 sigaltstack mkdtemp setns
11879 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11880 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11881 eval as_val
=\$
$as_ac_var
11882 if test "x$as_val" = x
""yes; then :
11883 cat >>confdefs.h
<<_ACEOF
11884 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11892 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11893 if test "${am_cv_langinfo_codeset+set}" = set; then :
11894 $as_echo_n "(cached) " >&6
11896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11898 #include <langinfo.h>
11902 char* cs = nl_langinfo(CODESET);
11907 if ac_fn_c_try_link
"$LINENO"; then :
11908 am_cv_langinfo_codeset
=yes
11910 am_cv_langinfo_codeset
=no
11912 rm -f core conftest.err conftest.
$ac_objext \
11913 conftest
$ac_exeext conftest.
$ac_ext
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11917 $as_echo "$am_cv_langinfo_codeset" >&6; }
11918 if test $am_cv_langinfo_codeset = yes; then
11920 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11926 $as_echo_n "checking for ANSI C header files... " >&6; }
11927 if test "${ac_cv_header_stdc+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 #include <stdlib.h>
11933 #include <stdarg.h>
11934 #include <string.h>
11945 if ac_fn_c_try_compile
"$LINENO"; then :
11946 ac_cv_header_stdc
=yes
11948 ac_cv_header_stdc
=no
11950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11952 if test $ac_cv_header_stdc = yes; then
11953 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11956 #include <string.h>
11959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11960 $EGREP "memchr" >/dev
/null
2>&1; then :
11963 ac_cv_header_stdc
=no
11969 if test $ac_cv_header_stdc = yes; then
11970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h. */
11973 #include <stdlib.h>
11976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11977 $EGREP "free" >/dev
/null
2>&1; then :
11980 ac_cv_header_stdc
=no
11986 if test $ac_cv_header_stdc = yes; then
11987 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11988 if test "$cross_compiling" = yes; then :
11991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11994 #include <stdlib.h>
11995 #if ((' ' & 0x0FF) == 0x020)
11996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11999 # define ISLOWER(c) \
12000 (('a' <= (c) && (c) <= 'i') \
12001 || ('j' <= (c) && (c) <= 'r') \
12002 || ('s' <= (c) && (c) <= 'z'))
12003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12011 for (i = 0; i < 256; i++)
12012 if (XOR (islower (i), ISLOWER (i))
12013 || toupper (i) != TOUPPER (i))
12018 if ac_fn_c_try_run
"$LINENO"; then :
12021 ac_cv_header_stdc
=no
12023 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12024 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12030 $as_echo "$ac_cv_header_stdc" >&6; }
12031 if test $ac_cv_header_stdc = yes; then
12033 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12037 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12038 # for constant arguments. Useless!
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12040 $as_echo_n "checking for working alloca.h... " >&6; }
12041 if test "${ac_cv_working_alloca_h+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
12044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12046 #include <alloca.h>
12050 char *p = (char *) alloca (2 * sizeof (int));
12056 if ac_fn_c_try_link
"$LINENO"; then :
12057 ac_cv_working_alloca_h
=yes
12059 ac_cv_working_alloca_h
=no
12061 rm -f core conftest.err conftest.
$ac_objext \
12062 conftest
$ac_exeext conftest.
$ac_ext
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12065 $as_echo "$ac_cv_working_alloca_h" >&6; }
12066 if test $ac_cv_working_alloca_h = yes; then
12068 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12073 $as_echo_n "checking for alloca... " >&6; }
12074 if test "${ac_cv_func_alloca_works+set}" = set; then :
12075 $as_echo_n "(cached) " >&6
12077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12080 # define alloca __builtin_alloca
12083 # include <malloc.h>
12084 # define alloca _alloca
12086 # ifdef HAVE_ALLOCA_H
12087 # include <alloca.h>
12092 # ifndef alloca /* predefined by HP cc +Olibcalls */
12103 char *p = (char *) alloca (1);
12109 if ac_fn_c_try_link
"$LINENO"; then :
12110 ac_cv_func_alloca_works
=yes
12112 ac_cv_func_alloca_works
=no
12114 rm -f core conftest.err conftest.
$ac_objext \
12115 conftest
$ac_exeext conftest.
$ac_ext
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12118 $as_echo "$ac_cv_func_alloca_works" >&6; }
12120 if test $ac_cv_func_alloca_works = yes; then
12122 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12125 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12126 # that cause trouble. Some versions do not even contain alloca or
12127 # contain a buggy version. If you still want to use their alloca,
12128 # use ar to extract alloca.o from them instead of compiling alloca.c.
12130 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12132 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12136 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12137 if test "${ac_cv_os_cray+set}" = set; then :
12138 $as_echo_n "(cached) " >&6
12140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h. */
12142 #if defined CRAY && ! defined CRAY2
12149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12150 $EGREP "webecray" >/dev
/null
2>&1; then :
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12159 $as_echo "$ac_cv_os_cray" >&6; }
12160 if test $ac_cv_os_cray = yes; then
12161 for ac_func
in _getb67 GETB67 getb67
; do
12162 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12163 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12164 eval as_val
=\$
$as_ac_var
12165 if test "x$as_val" = x
""yes; then :
12167 cat >>confdefs.h
<<_ACEOF
12168 #define CRAY_STACKSEG_END $ac_func
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12178 $as_echo_n "checking stack direction for C alloca... " >&6; }
12179 if test "${ac_cv_c_stack_direction+set}" = set; then :
12180 $as_echo_n "(cached) " >&6
12182 if test "$cross_compiling" = yes; then :
12183 ac_cv_c_stack_direction
=0
12185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12187 $ac_includes_default
12189 find_stack_direction ()
12191 static char *addr = 0;
12196 return find_stack_direction ();
12199 return (&dummy > addr) ? 1 : -1;
12205 return find_stack_direction () < 0;
12208 if ac_fn_c_try_run
"$LINENO"; then :
12209 ac_cv_c_stack_direction
=1
12211 ac_cv_c_stack_direction
=-1
12213 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12214 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12219 $as_echo "$ac_cv_c_stack_direction" >&6; }
12220 cat >>confdefs.h
<<_ACEOF
12221 #define STACK_DIRECTION $ac_cv_c_stack_direction
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12230 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12231 if test "${am_cv_langinfo_codeset+set}" = set; then :
12232 $as_echo_n "(cached) " >&6
12234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12236 #include <langinfo.h>
12240 char* cs = nl_langinfo(CODESET);
12245 if ac_fn_c_try_link
"$LINENO"; then :
12246 am_cv_langinfo_codeset
=yes
12248 am_cv_langinfo_codeset
=no
12250 rm -f core conftest.err conftest.
$ac_objext \
12251 conftest
$ac_exeext conftest.
$ac_ext
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12255 $as_echo "$am_cv_langinfo_codeset" >&6; }
12256 if test $am_cv_langinfo_codeset = yes; then
12258 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12263 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
12265 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12266 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12267 eval as_val
=\$
$as_ac_Header
12268 if test "x$as_val" = x
""yes; then :
12269 cat >>confdefs.h
<<_ACEOF
12270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12278 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
12280 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12281 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12282 eval as_val
=\$
$as_ac_var
12283 if test "x$as_val" = x
""yes; then :
12284 cat >>confdefs.h
<<_ACEOF
12285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12292 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
12293 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
12299 cat >>confdefs.h
<<_ACEOF
12300 #define HAVE_DECL_STRERROR $ac_have_decl
12302 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12303 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
12309 cat >>confdefs.h
<<_ACEOF
12310 #define HAVE_DECL_STRSTR $ac_have_decl
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12315 $as_echo_n "checking for sigsetjmp... " >&6; }
12316 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12322 #include <setjmp.h>
12327 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12332 if ac_fn_c_try_compile
"$LINENO"; then :
12333 gdb_cv_func_sigsetjmp
=yes
12335 gdb_cv_func_sigsetjmp
=no
12337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12340 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12341 if test $gdb_cv_func_sigsetjmp = yes; then
12343 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12348 # Check the return and argument types of ptrace.
12352 for ac_header
in sys
/ptrace.h ptrace.h
12354 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12355 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12356 eval as_val
=\$
$as_ac_Header
12357 if test "x$as_val" = x
""yes; then :
12358 cat >>confdefs.h
<<_ACEOF
12359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12367 # Needs to be tested in C++ mode, to detect whether we need to cast
12368 # the first argument to enum __ptrace_request.
12369 if test "$enable_build_with_cxx" = "yes"; then
12371 ac_cpp
='$CXXCPP $CPPFLAGS'
12372 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12373 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12374 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12378 gdb_ptrace_headers
='
12379 #include <sys/types.h>
12380 #if HAVE_SYS_PTRACE_H
12381 # include <sys/ptrace.h>
12384 # include <unistd.h>
12387 # There is no point in checking if we don't have a prototype.
12388 ac_fn_cxx_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12390 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
12396 cat >>confdefs.h
<<_ACEOF
12397 #define HAVE_DECL_PTRACE $ac_have_decl
12399 if test $ac_have_decl = 1; then :
12403 : ${gdb_cv_func_ptrace_ret='int'}
12404 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12408 # Check return type. Varargs (used on GNU/Linux) conflict with the
12409 # empty argument list, so check for that explicitly.
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12411 $as_echo_n "checking return type of ptrace... " >&6; }
12412 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12413 $as_echo_n "(cached) " >&6
12415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12417 $gdb_ptrace_headers
12421 extern long ptrace (enum __ptrace_request, ...);
12426 if ac_fn_cxx_try_compile
"$LINENO"; then :
12427 gdb_cv_func_ptrace_ret
='long'
12429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h. */
12431 $gdb_ptrace_headers
12435 extern int ptrace ();
12440 if ac_fn_cxx_try_compile
"$LINENO"; then :
12441 gdb_cv_func_ptrace_ret
='int'
12443 gdb_cv_func_ptrace_ret
='long'
12445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12450 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12452 cat >>confdefs.h
<<_ACEOF
12453 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12456 # Check argument types.
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12458 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12459 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12460 $as_echo_n "(cached) " >&6
12463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12465 $gdb_ptrace_headers
12469 extern long ptrace (enum __ptrace_request, ...);
12474 if ac_fn_cxx_try_compile
"$LINENO"; then :
12475 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
12478 for gdb_arg1
in 'int' 'long'; do
12479 for gdb_arg2
in 'pid_t' 'int' 'long'; do
12480 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12481 for gdb_arg4
in 'int' 'long' 'void *'; do
12482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12484 $gdb_ptrace_headers
12489 extern $gdb_cv_func_ptrace_ret
12490 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12496 if ac_fn_cxx_try_compile
"$LINENO"; then :
12497 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12501 for gdb_arg5
in 'int *' 'int' 'long'; do
12502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12504 $gdb_ptrace_headers
12509 extern $gdb_cv_func_ptrace_ret
12510 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12516 if ac_fn_cxx_try_compile
"$LINENO"; then :
12518 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12527 # Provide a safe default value.
12528 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12534 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12535 ac_save_IFS
=$IFS; IFS
=','
12536 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12540 cat >>confdefs.h
<<_ACEOF
12541 #define PTRACE_TYPE_ARG1 $1
12545 cat >>confdefs.h
<<_ACEOF
12546 #define PTRACE_TYPE_ARG3 $3
12550 cat >>confdefs.h
<<_ACEOF
12551 #define PTRACE_TYPE_ARG4 $4
12554 if test -n "$5"; then
12556 cat >>confdefs.h
<<_ACEOF
12557 #define PTRACE_TYPE_ARG5 $5
12562 if test "$enable_build_with_cxx" = "yes"; then
12564 ac_cpp
='$CPP $CPPFLAGS'
12565 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12566 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12567 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12572 if test "$cross_compiling" = no
; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12574 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12575 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12576 $as_echo_n "(cached) " >&6
12578 if test "$cross_compiling" = yes; then :
12579 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
12581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12583 $ac_includes_default
12587 /* If this system has a BSD-style setpgrp which takes arguments,
12588 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12589 exit successfully. */
12590 return setpgrp (1,1) != -1;
12595 if ac_fn_c_try_run
"$LINENO"; then :
12596 ac_cv_func_setpgrp_void
=no
12598 ac_cv_func_setpgrp_void
=yes
12600 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12601 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12606 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12607 if test $ac_cv_func_setpgrp_void = yes; then
12609 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12615 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12616 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12617 $as_echo_n "(cached) " >&6
12619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12622 #include <unistd.h>
12628 if (setpgrp(1,1) == -1)
12637 if ac_fn_c_try_compile
"$LINENO"; then :
12638 ac_cv_func_setpgrp_void
=no
12640 ac_cv_func_setpgrp_void
=yes
12642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12645 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12646 if test $ac_cv_func_setpgrp_void = yes; then
12647 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12652 # Assume we'll default to using the included libiberty regex.
12653 gdb_use_included_regex
=yes
12655 # However, if the system regex is GNU regex, then default to *not*
12656 # using the included regex.
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12658 $as_echo_n "checking for GNU regex... " >&6; }
12659 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12660 $as_echo_n "(cached) " >&6
12662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12664 #include <gnu-versions.h>
12668 #define REGEX_INTERFACE_VERSION 1
12669 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12670 # error "Version mismatch"
12676 if ac_fn_c_try_compile
"$LINENO"; then :
12677 gdb_cv_have_gnu_regex
=yes
12679 gdb_cv_have_gnu_regex
=no
12681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12684 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12685 if test $gdb_cv_have_gnu_regex = yes; then
12686 gdb_use_included_regex
=no
12690 # Check whether --with-included-regex was given.
12691 if test "${with_included_regex+set}" = set; then :
12692 withval
=$with_included_regex; gdb_with_regex
=$withval
12694 gdb_with_regex
=$gdb_use_included_regex
12697 if test "$gdb_with_regex" = yes; then
12699 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12703 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12704 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12705 #include <sys/proc.h>
12708 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
12710 cat >>confdefs.h
<<_ACEOF
12711 #define HAVE_STRUCT_THREAD_TD_PCB 1
12718 # See if <sys/lwp.h> defines `struct lwp`.
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12720 $as_echo_n "checking for struct lwp... " >&6; }
12721 if test "${gdb_cv_struct_lwp+set}" = set; then :
12722 $as_echo_n "(cached) " >&6
12724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12726 #include <sys/param.h>
12727 #include <sys/lwp.h>
12736 if ac_fn_c_try_compile
"$LINENO"; then :
12737 gdb_cv_struct_lwp
=yes
12739 gdb_cv_struct_lwp
=no
12741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12744 $as_echo "$gdb_cv_struct_lwp" >&6; }
12745 if test $gdb_cv_struct_lwp = yes; then
12747 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12751 # See if <machine/reg.h> degines `struct reg'.
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12753 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12754 if test "${gdb_cv_struct_reg+set}" = set; then :
12755 $as_echo_n "(cached) " >&6
12757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12759 #include <sys/types.h>
12760 #include <machine/reg.h>
12769 if ac_fn_c_try_compile
"$LINENO"; then :
12770 gdb_cv_struct_reg
=yes
12772 gdb_cv_struct_reg
=no
12774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12777 $as_echo "$gdb_cv_struct_reg" >&6; }
12778 if test $gdb_cv_struct_reg = yes; then
12780 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12784 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12785 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12786 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
12788 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
12790 cat >>confdefs.h
<<_ACEOF
12791 #define HAVE_STRUCT_REG_R_FS 1
12796 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
12798 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
12800 cat >>confdefs.h
<<_ACEOF
12801 #define HAVE_STRUCT_REG_R_GS 1
12808 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
12809 # Older amd64 Linux's don't have the fs_base and gs_base members of
12810 # `struct user_regs_struct'.
12811 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>
12813 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
12815 cat >>confdefs.h
<<_ACEOF
12816 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
12821 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>
12823 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
12825 cat >>confdefs.h
<<_ACEOF
12826 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
12833 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12835 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12836 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12841 #include <sys/ptrace.h>
12850 if ac_fn_c_try_compile
"$LINENO"; then :
12851 gdb_cv_have_ptrace_getregs
=yes
12853 gdb_cv_have_ptrace_getregs
=no
12855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
12859 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
12860 if test $gdb_cv_have_ptrace_getregs = yes; then
12862 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
12866 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
12868 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
12869 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
12870 $as_echo_n "(cached) " >&6
12872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12874 #include <sys/ptrace.h>
12883 if ac_fn_c_try_compile
"$LINENO"; then :
12884 gdb_cv_have_ptrace_getfpxregs
=yes
12886 gdb_cv_have_ptrace_getfpxregs
=no
12888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12892 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12893 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12895 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12899 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12901 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12902 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
12905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12907 #include <sys/types.h>
12908 #include <sys/ptrace.h>
12917 if ac_fn_c_try_compile
"$LINENO"; then :
12918 gdb_cv_have_pt_getdbregs
=yes
12920 gdb_cv_have_pt_getdbregs
=no
12922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12926 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12927 if test $gdb_cv_have_pt_getdbregs = yes; then
12929 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12933 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12935 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12936 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12937 $as_echo_n "(cached) " >&6
12939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12941 #include <sys/types.h>
12942 #include <sys/ptrace.h>
12951 if ac_fn_c_try_compile
"$LINENO"; then :
12952 gdb_cv_have_pt_getxmmregs
=yes
12954 gdb_cv_have_pt_getxmmregs
=no
12956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12960 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12961 if test $gdb_cv_have_pt_getxmmregs = yes; then
12963 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12967 # Detect which type of /proc is in use, such as for Solaris.
12969 if test "${target}" = "${host}"; then
12971 *-*-sysv4.2
* |
*-*-sysv5* )
12973 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12976 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
12978 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12982 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12984 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12990 if test "$ac_cv_header_sys_procfs_h" = yes; then
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12992 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12993 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
13000 /* Needed for new procfs interface on sparc-solaris. */
13001 #define _STRUCTURED_PROC 1
13002 #include <sys/procfs.h>
13011 if ac_fn_c_try_compile
"$LINENO"; then :
13012 bfd_cv_have_sys_procfs_type_gregset_t
=yes
13014 bfd_cv_have_sys_procfs_type_gregset_t
=no
13017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13020 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13022 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13026 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13029 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13030 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13031 $as_echo_n "(cached) " >&6
13033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13037 /* Needed for new procfs interface on sparc-solaris. */
13038 #define _STRUCTURED_PROC 1
13039 #include <sys/procfs.h>
13048 if ac_fn_c_try_compile
"$LINENO"; then :
13049 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
13051 bfd_cv_have_sys_procfs_type_fpregset_t
=no
13054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13057 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13059 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13063 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13066 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13067 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13068 $as_echo_n "(cached) " >&6
13070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h. */
13074 /* Needed for new procfs interface on sparc-solaris. */
13075 #define _STRUCTURED_PROC 1
13076 #include <sys/procfs.h>
13085 if ac_fn_c_try_compile
"$LINENO"; then :
13086 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
13088 bfd_cv_have_sys_procfs_type_prgregset_t
=no
13091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13094 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13096 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13100 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13103 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13104 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
13107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13111 /* Needed for new procfs interface on sparc-solaris. */
13112 #define _STRUCTURED_PROC 1
13113 #include <sys/procfs.h>
13122 if ac_fn_c_try_compile
"$LINENO"; then :
13123 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
13125 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
13128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13131 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13133 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13137 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13140 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13141 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13142 $as_echo_n "(cached) " >&6
13144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13148 /* Needed for new procfs interface on sparc-solaris. */
13149 #define _STRUCTURED_PROC 1
13150 #include <sys/procfs.h>
13159 if ac_fn_c_try_compile
"$LINENO"; then :
13160 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
13162 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
13165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13168 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13170 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13174 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13177 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13178 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13179 $as_echo_n "(cached) " >&6
13181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13185 /* Needed for new procfs interface on sparc-solaris. */
13186 #define _STRUCTURED_PROC 1
13187 #include <sys/procfs.h>
13196 if ac_fn_c_try_compile
"$LINENO"; then :
13197 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
13199 bfd_cv_have_sys_procfs_type_lwpid_t
=no
13202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13205 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13207 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13211 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13214 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13215 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13222 /* Needed for new procfs interface on sparc-solaris. */
13223 #define _STRUCTURED_PROC 1
13224 #include <sys/procfs.h>
13233 if ac_fn_c_try_compile
"$LINENO"; then :
13234 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
13236 bfd_cv_have_sys_procfs_type_psaddr_t
=no
13239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13242 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13244 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13248 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13251 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13252 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13253 $as_echo_n "(cached) " >&6
13255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13259 /* Needed for new procfs interface on sparc-solaris. */
13260 #define _STRUCTURED_PROC 1
13261 #include <sys/procfs.h>
13270 if ac_fn_c_try_compile
"$LINENO"; then :
13271 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
13273 bfd_cv_have_sys_procfs_type_prsysent_t
=no
13276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13279 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13281 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13285 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13288 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13289 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13290 $as_echo_n "(cached) " >&6
13292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13296 /* Needed for new procfs interface on sparc-solaris. */
13297 #define _STRUCTURED_PROC 1
13298 #include <sys/procfs.h>
13307 if ac_fn_c_try_compile
"$LINENO"; then :
13308 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
13310 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
13313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13316 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13318 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13322 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13325 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13326 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13327 $as_echo_n "(cached) " >&6
13329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13333 /* Needed for new procfs interface on sparc-solaris. */
13334 #define _STRUCTURED_PROC 1
13335 #include <sys/procfs.h>
13339 pr_sigaction64_t avar
13344 if ac_fn_c_try_compile
"$LINENO"; then :
13345 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
13347 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
13350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13353 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13355 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13359 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13362 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13363 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13364 $as_echo_n "(cached) " >&6
13366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13370 /* Needed for new procfs interface on sparc-solaris. */
13371 #define _STRUCTURED_PROC 1
13372 #include <sys/procfs.h>
13376 pr_siginfo64_t avar
13381 if ac_fn_c_try_compile
"$LINENO"; then :
13382 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
13384 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
13387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13390 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13392 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13396 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13402 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13404 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13405 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13406 $as_echo_n "(cached) " >&6
13408 if test "$cross_compiling" = yes; then :
13409 gdb_cv_prfpregset_t_broken
=yes
13411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13413 #include <sys/procfs.h>
13416 if (sizeof (prfpregset_t) == sizeof (void *))
13421 if ac_fn_c_try_run
"$LINENO"; then :
13422 gdb_cv_prfpregset_t_broken
=no
13424 gdb_cv_prfpregset_t_broken
=yes
13426 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13427 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13433 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13434 if test $gdb_cv_prfpregset_t_broken = yes; then
13436 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13442 # Check if the compiler supports the `long long' type.
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13445 $as_echo_n "checking for long long support in compiler... " >&6; }
13446 if test "${gdb_cv_c_long_long+set}" = set; then :
13447 $as_echo_n "(cached) " >&6
13449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13451 extern long long foo;
13455 switch (foo & 2) { case 0: return 1; }
13460 if ac_fn_c_try_compile
"$LINENO"; then :
13461 gdb_cv_c_long_long
=yes
13463 gdb_cv_c_long_long
=no
13465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13468 $as_echo "$gdb_cv_c_long_long" >&6; }
13469 if test $gdb_cv_c_long_long != yes; then
13470 # libdecnumber requires long long.
13471 as_fn_error
"Compiler must support long long for GDB." "$LINENO" 5
13474 # Check if the compiler and runtime support printing long longs.
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13477 $as_echo_n "checking for long long support in printf... " >&6; }
13478 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13479 $as_echo_n "(cached) " >&6
13481 if test "$cross_compiling" = yes; then :
13482 gdb_cv_printf_has_long_long
=no
13484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13486 $ac_includes_default
13492 l = (l << 16) + 0x0123;
13493 l = (l << 16) + 0x4567;
13494 l = (l << 16) + 0x89ab;
13495 l = (l << 16) + 0xcdef;
13496 sprintf (buf, "0x%016llx", l);
13497 return (strcmp ("0x0123456789abcdef", buf));
13502 if ac_fn_c_try_run
"$LINENO"; then :
13503 gdb_cv_printf_has_long_long
=yes
13505 gdb_cv_printf_has_long_long
=no
13507 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13508 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13513 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13514 if test $gdb_cv_printf_has_long_long = yes; then
13516 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13520 # Check if the compiler and runtime support printing decfloats.
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13523 $as_echo_n "checking for decfloat support in printf... " >&6; }
13524 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13525 $as_echo_n "(cached) " >&6
13527 if test "$cross_compiling" = yes; then :
13528 gdb_cv_printf_has_decfloat
=no
13530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532 $ac_includes_default
13537 _Decimal32 d32 = 1.2345df;
13538 _Decimal64 d64 = 1.2345dd;
13539 _Decimal128 d128 = 1.2345dl;
13540 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13541 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13546 if ac_fn_c_try_run
"$LINENO"; then :
13547 gdb_cv_printf_has_decfloat
=yes
13549 gdb_cv_printf_has_decfloat
=no
13551 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13552 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
13557 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
13558 if test $gdb_cv_printf_has_decfloat = yes; then
13560 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
13564 # Check if the compiler supports the `long double' type. We can't use
13565 # AC_C_LONG_DOUBLE because that one does additional checks on the
13566 # constants defined in <float.h> that fail on some systems,
13567 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
13570 $as_echo_n "checking for long double support in compiler... " >&6; }
13571 if test "${gdb_cv_c_long_double+set}" = set; then :
13572 $as_echo_n "(cached) " >&6
13574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13578 if ac_fn_c_try_compile
"$LINENO"; then :
13579 gdb_cv_c_long_double
=yes
13581 gdb_cv_c_long_double
=no
13583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
13586 $as_echo "$gdb_cv_c_long_double" >&6; }
13587 if test $gdb_cv_c_long_double = yes; then
13589 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13593 # Check if the compiler and runtime support printing long doubles.
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
13596 $as_echo_n "checking for long double support in printf... " >&6; }
13597 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
13598 $as_echo_n "(cached) " >&6
13600 if test "$cross_compiling" = yes; then :
13601 gdb_cv_printf_has_long_double
=no
13603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h. */
13605 $ac_includes_default
13610 long double f = 3.141592653;
13611 sprintf (buf, "%Lg", f);
13612 return (strncmp ("3.14159", buf, 7));
13617 if ac_fn_c_try_run
"$LINENO"; then :
13618 gdb_cv_printf_has_long_double
=yes
13620 gdb_cv_printf_has_long_double
=no
13622 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13623 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
13628 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
13629 if test $gdb_cv_printf_has_long_double = yes; then
13631 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
13635 # Check if the compiler and runtime support scanning long doubles.
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
13638 $as_echo_n "checking for long double support in scanf... " >&6; }
13639 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
13640 $as_echo_n "(cached) " >&6
13642 if test "$cross_compiling" = yes; then :
13643 gdb_cv_scanf_has_long_double
=no
13645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13646 /* end confdefs.h. */
13651 char *buf = "3.141592653";
13653 sscanf (buf, "%Lg", &f);
13654 return !(f > 3.14159 && f < 3.14160);
13659 if ac_fn_c_try_run
"$LINENO"; then :
13660 gdb_cv_scanf_has_long_double
=yes
13662 gdb_cv_scanf_has_long_double
=no
13664 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13665 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
13670 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
13671 if test $gdb_cv_scanf_has_long_double = yes; then
13673 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
13680 $as_echo_n "checking for -bbigtoc option... " >&6; }
13681 if test "${gdb_cv_bigtoc+set}" = set; then :
13682 $as_echo_n "(cached) " >&6
13685 SAVE_LDFLAGS
=$LDFLAGS
13688 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
13689 *) gdb_cv_bigtoc
=-bbigtoc ;;
13692 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
13693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13694 /* end confdefs.h. */
13704 if ac_fn_c_try_link
"$LINENO"; then :
13709 rm -f core conftest.err conftest.
$ac_objext \
13710 conftest
$ac_exeext conftest.
$ac_ext
13711 LDFLAGS
="${SAVE_LDFLAGS}"
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
13715 $as_echo "$gdb_cv_bigtoc" >&6; }
13716 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
13721 $as_echo_n "checking for the dynamic export flag... " >&6; }
13723 if test "${gdb_native}" = yes; then
13724 # The dynamically loaded libthread_db needs access to symbols in the gdb
13725 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
13726 # may not be supported there.
13727 old_LDFLAGS
="$LDFLAGS"
13728 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
13729 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
13730 LDFLAGS
="$LDFLAGS $RDYNAMIC"
13731 if test "${have_libpython}" = no
; then
13732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13743 if ac_fn_c_try_link
"$LINENO"; then :
13746 rm -f core conftest.err conftest.
$ac_objext \
13747 conftest
$ac_exeext conftest.
$ac_ext
13749 # Workaround http://bugs.python.org/issue4434 where static
13750 # libpythonX.Y.a would get its symbols required for
13751 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
13752 # Problem does not happen for the recommended libpythonX.Y.so linkage.
13753 old_CFLAGS
="$CFLAGS"
13754 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
13756 LIBS
="$LIBS $PYTHON_LIBS"
13757 if test "$cross_compiling" = yes; then :
13760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13762 #include "${have_libpython}/Python.h"
13768 err = PyRun_SimpleString ("import itertools\n");
13770 return err == 0 ? 0 : 1;
13775 if ac_fn_c_try_run
"$LINENO"; then :
13778 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13779 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13783 CFLAGS
="$old_CFLAGS"
13785 LDFLAGS
="$old_LDFLAGS"
13787 if $dynamic_list; then
13788 found
="-Wl,--dynamic-list"
13789 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
13792 RDYNAMIC
="-rdynamic"
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13796 $as_echo "$found" >&6; }
13799 if test ${build} = ${host} -a ${host} = ${target} ; then
13802 # See if thread_db library is around for Solaris thread debugging.
13803 # Note that we must explicitly test for version 1 of the library
13804 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
13807 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
13808 if test -f /usr
/lib
/libthread_db.so
.1 ; then
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13810 $as_echo "yes" >&6; }
13812 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
13814 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
13815 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13817 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13818 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13819 $as_echo_n "(cached) " >&6
13821 ac_check_lib_save_LIBS
=$LIBS
13823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h. */
13826 /* Override any GCC internal prototype to avoid an error.
13827 Use char because int might match the return type of a GCC
13828 builtin and then its argument prototype would still apply. */
13841 if ac_fn_c_try_link
"$LINENO"; then :
13842 ac_cv_lib_dl_dlopen
=yes
13844 ac_cv_lib_dl_dlopen
=no
13846 rm -f core conftest.err conftest.
$ac_objext \
13847 conftest
$ac_exeext conftest.
$ac_ext
13848 LIBS
=$ac_check_lib_save_LIBS
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13851 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13852 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
13853 cat >>confdefs.h
<<_ACEOF
13854 #define HAVE_LIBDL 1
13861 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
13862 # Sun randomly tweaked the prototypes in <proc_service.h>
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
13865 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
13866 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13867 $as_echo_n "(cached) " >&6
13870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13873 #include <proc_service.h>
13874 ps_err_e ps_pdwrite
13875 (struct ps_prochandle*, psaddr_t, const void*, size_t);
13885 if ac_fn_c_try_compile
"$LINENO"; then :
13886 gdb_cv_proc_service_is_old
=no
13888 gdb_cv_proc_service_is_old
=yes
13890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13895 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13896 if test $gdb_cv_proc_service_is_old = yes; then
13898 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13903 $as_echo "no" >&6; }
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13908 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13909 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13910 $as_echo_n "(cached) " >&6
13912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13914 #include <sys/pthdebug.h>
13918 #ifndef PTHDB_VERSION_3
13925 if ac_fn_c_try_compile
"$LINENO"; then :
13926 gdb_cv_have_aix_thread_debug
=yes
13928 gdb_cv_have_aix_thread_debug
=no
13930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13934 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13935 if test $gdb_cv_have_aix_thread_debug = yes; then
13936 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
13937 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
13938 LIBS
="$LIBS -lpthdebug"
13940 # Older versions of AIX do not provide the declaration for
13941 # the getthrds function (it appears that it was introduced
13943 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
13945 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
13951 cat >>confdefs.h
<<_ACEOF
13952 #define HAVE_DECL_GETTHRDS $ac_have_decl
13961 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13963 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13964 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13965 $as_echo_n "(cached) " >&6
13967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13969 #include <thread_db.h>
13973 int i = TD_NOTALLOC;
13978 if ac_fn_c_try_compile
"$LINENO"; then :
13979 gdb_cv_thread_db_h_has_td_notalloc
=yes
13981 gdb_cv_thread_db_h_has_td_notalloc
=no
13984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13988 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13990 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13991 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h. */
13996 #include <thread_db.h>
14000 int i = TD_VERSION;
14005 if ac_fn_c_try_compile
"$LINENO"; then :
14006 gdb_cv_thread_db_h_has_td_version
=yes
14008 gdb_cv_thread_db_h_has_td_version
=no
14011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14015 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14017 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14018 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14019 $as_echo_n "(cached) " >&6
14021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14023 #include <thread_db.h>
14032 if ac_fn_c_try_compile
"$LINENO"; then :
14033 gdb_cv_thread_db_h_has_td_notls
=yes
14035 gdb_cv_thread_db_h_has_td_notls
=no
14038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14042 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14044 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14046 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14049 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14051 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14054 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14056 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14060 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14062 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
14068 cat >>confdefs.h
<<_ACEOF
14069 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14073 if test "$cross_compiling" = yes; then :
14074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h. */
14076 #include <sys/personality.h>
14081 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14082 # define ADDR_NO_RANDOMIZE 0x0040000
14084 /* Test the flag could be set and stays set. */
14085 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14086 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14092 if ac_fn_c_try_link
"$LINENO"; then :
14093 have_personality
=true
14095 have_personality
=false
14097 rm -f core conftest.err conftest.
$ac_objext \
14098 conftest
$ac_exeext conftest.
$ac_ext
14100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 #include <sys/personality.h>
14107 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14108 # define ADDR_NO_RANDOMIZE 0x0040000
14110 /* Test the flag could be set and stays set. */
14111 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14112 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14118 if ac_fn_c_try_run
"$LINENO"; then :
14119 have_personality
=true
14121 have_personality
=false
14123 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14124 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14127 if $have_personality
14130 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14143 cat >>confdefs.h
<<_ACEOF
14144 #define GDBINIT "$gdbinit"
14149 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
14150 # except that the argument to --with-sysroot is optional.
14151 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
14152 if test "x$with_sysroot" = xyes
; then
14153 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
14156 # Check whether --with-sysroot was given.
14157 if test "${with_sysroot+set}" = set; then :
14158 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
14160 TARGET_SYSTEM_ROOT
=
14164 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14165 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14166 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
14167 ac_define_dir
=`eval echo $ac_define_dir`
14169 cat >>confdefs.h
<<_ACEOF
14170 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
14176 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14177 if test "x$prefix" = xNONE
; then
14178 test_prefix
=/usr
/local
14180 test_prefix
=$prefix
14183 test_prefix
=$exec_prefix
14186 case ${ac_define_dir} in
14187 "${test_prefix}"|
"${test_prefix}/"*|\
14188 '${exec_prefix}'|
'${exec_prefix}/'*)
14193 cat >>confdefs.h
<<_ACEOF
14194 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
14201 # Check whether --with-system-gdbinit was given.
14202 if test "${with_system_gdbinit+set}" = set; then :
14203 withval
=$with_system_gdbinit;
14204 SYSTEM_GDBINIT
=$withval
14210 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14211 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14212 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
14213 ac_define_dir
=`eval echo $ac_define_dir`
14215 cat >>confdefs.h
<<_ACEOF
14216 #define SYSTEM_GDBINIT "$ac_define_dir"
14222 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14223 if test "x$prefix" = xNONE
; then
14224 test_prefix
=/usr
/local
14226 test_prefix
=$prefix
14229 test_prefix
=$exec_prefix
14232 case ${ac_define_dir} in
14233 "${test_prefix}"|
"${test_prefix}/"*|\
14234 '${exec_prefix}'|
'${exec_prefix}/'*)
14239 cat >>confdefs.h
<<_ACEOF
14240 #define SYSTEM_GDBINIT_RELOCATABLE $value
14247 # Check whether --enable-werror was given.
14248 if test "${enable_werror+set}" = set; then :
14249 enableval
=$enable_werror; case "${enableval}" in
14250 yes | y
) ERROR_ON_WARNING
="yes" ;;
14251 no | n
) ERROR_ON_WARNING
="no" ;;
14252 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14257 # Enable -Werror by default when using gcc. Turn it off for releases.
14258 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
14259 ERROR_ON_WARNING
=yes
14263 if test "${ERROR_ON_WARNING}" = yes ; then
14264 WERROR_CFLAGS
="-Werror"
14267 # These options work in either C or C++ modes.
14268 build_warnings
="-Wall -Wpointer-arith \
14269 -Wno-unused -Wunused-value -Wunused-function \
14270 -Wno-switch -Wno-char-subscripts \
14273 # Now add in C and C++ specific options, depending on mode.
14274 if test "$enable_build_with_cxx" = "yes"; then
14275 build_warnings
="$build_warnings -Wno-sign-compare -Wno-write-strings \
14278 build_warnings
="$build_warnings -Wpointer-sign -Wmissing-prototypes \
14279 -Wdeclaration-after-statement -Wmissing-parameter-type \
14280 -Wold-style-declaration -Wold-style-definition"
14283 # Enable -Wno-format by default when using gcc on mingw since many
14284 # GCC versions complain about %I64.
14286 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
14287 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
14290 # Check whether --enable-build-warnings was given.
14291 if test "${enable_build_warnings+set}" = set; then :
14292 enableval
=$enable_build_warnings; case "${enableval}" in
14294 no
) build_warnings
="-w";;
14295 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14296 build_warnings
="${build_warnings} ${t}";;
14297 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14298 build_warnings
="${t} ${build_warnings}";;
14299 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14301 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14302 echo "Setting compiler warning flags = $build_warnings" 6>&1
14305 # Check whether --enable-gdb-build-warnings was given.
14306 if test "${enable_gdb_build_warnings+set}" = set; then :
14307 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
14309 no
) build_warnings
="-w";;
14310 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14311 build_warnings
="${build_warnings} ${t}";;
14312 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14313 build_warnings
="${t} ${build_warnings}";;
14314 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14316 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14317 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14321 # The set of warnings supported by a C++ compiler is not the same as
14322 # of the C compiler.
14323 if test "$enable_build_with_cxx" = "yes"; then
14325 ac_cpp
='$CXXCPP $CPPFLAGS'
14326 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14327 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14328 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14333 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14336 $as_echo_n "checking compiler warning flags... " >&6; }
14337 # Separate out the -Werror flag as some files just cannot be
14338 # compiled with it enabled.
14339 for w
in ${build_warnings}; do
14340 # GCC does not complain about -Wno-unknown-warning. Invert
14341 # and test -Wunknown-warning instead.
14344 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
14350 -Werr*) WERROR_CFLAGS
=-Werror ;;
14352 # Check whether GCC accepts it.
14353 saved_CFLAGS
="$CFLAGS"
14354 CFLAGS
="$CFLAGS $wtest"
14355 saved_CXXFLAGS
="$CXXFLAGS"
14356 CXXFLAGS
="$CXXFLAGS $wtest"
14357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14368 if ac_fn_cxx_try_compile
"$LINENO"; then :
14369 WARN_CFLAGS
="${WARN_CFLAGS} $w"
14371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14372 CFLAGS
="$saved_CFLAGS"
14373 CXXFLAGS
="$saved_CXXFLAGS"
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14377 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14382 if test "$enable_build_with_cxx" = "yes"; then
14384 ac_cpp='$CPP $CPPFLAGS'
14385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14392 # In the Cygwin environment, we need some additional flags.
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
14394 $as_echo_n "checking
for cygwin...
" >&6; }
14395 if test "${gdb_cv_os_cygwin+set}" = set; then :
14396 $as_echo_n "(cached
) " >&6
14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h. */
14401 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14405 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14406 $EGREP "^lose$
" >/dev/null 2>&1; then :
14407 gdb_cv_os_cygwin=yes
14409 gdb_cv_os_cygwin=no
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
14415 $as_echo "$gdb_cv_os_cygwin" >&6; }
14418 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
14420 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14421 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14422 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
14426 # libreadline needs libuser32.a in a cygwin environment
14428 if test x$gdb_cv_os_cygwin = xyes; then
14429 WIN32LIBS="-luser32"
14430 case "${target}" in
14431 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14436 # The ser-tcp.c module requires sockets.
14440 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14442 WIN32LIBS
="$WIN32LIBS -lws2_32"
14447 # Add ELF support to GDB, but only if BFD includes ELF support.
14450 OLD_LDFLAGS
=$LDFLAGS
14452 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14453 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14454 # always want our bfd.
14455 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14456 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14457 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14458 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14459 LIBS
="-lbfd -liberty -lz $intl $LIBS"
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14461 $as_echo_n "checking for ELF support in BFD... " >&6; }
14462 if test "${gdb_cv_var_elf+set}" = set; then :
14463 $as_echo_n "(cached) " >&6
14465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h. */
14467 #include <stdlib.h>
14469 #include "elf-bfd.h"
14474 return bfd_get_elf_phdr_upper_bound (NULL);
14479 if ac_fn_c_try_link
"$LINENO"; then :
14484 rm -f core conftest.err conftest.
$ac_objext \
14485 conftest
$ac_exeext conftest.
$ac_ext
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14488 $as_echo "$gdb_cv_var_elf" >&6; }
14490 LDFLAGS
=$OLD_LDFLAGS
14492 if test $gdb_cv_var_elf = yes; then
14493 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
14495 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14497 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14498 if test "$plugins" = "yes"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14500 $as_echo_n "checking for library containing dlopen... " >&6; }
14501 if test "${ac_cv_search_dlopen+set}" = set; then :
14502 $as_echo_n "(cached) " >&6
14504 ac_func_search_save_LIBS
=$LIBS
14505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14508 /* Override any GCC internal prototype to avoid an error.
14509 Use char because int might match the return type of a GCC
14510 builtin and then its argument prototype would still apply. */
14523 for ac_lib
in '' dl
; do
14524 if test -z "$ac_lib"; then
14525 ac_res
="none required"
14528 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14530 if ac_fn_c_try_link
"$LINENO"; then :
14531 ac_cv_search_dlopen
=$ac_res
14533 rm -f core conftest.err conftest.
$ac_objext \
14535 if test "${ac_cv_search_dlopen+set}" = set; then :
14539 if test "${ac_cv_search_dlopen+set}" = set; then :
14542 ac_cv_search_dlopen
=no
14544 rm conftest.
$ac_ext
14545 LIBS
=$ac_func_search_save_LIBS
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14548 $as_echo "$ac_cv_search_dlopen" >&6; }
14549 ac_res
=$ac_cv_search_dlopen
14550 if test "$ac_res" != no
; then :
14551 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14558 # Add macho support to GDB, but only if BFD includes it.
14561 OLD_LDFLAGS
=$LDFLAGS
14563 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14564 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14565 # always want our bfd.
14566 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14567 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14568 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14569 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14570 LIBS
="-lbfd -liberty -lz $intl $LIBS"
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
14572 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
14573 if test "${gdb_cv_var_macho+set}" = set; then :
14574 $as_echo_n "(cached) " >&6
14576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14577 /* end confdefs.h. */
14578 #include <stdlib.h>
14580 #include "mach-o.h"
14585 return bfd_mach_o_lookup_command (NULL, 0, NULL);
14590 if ac_fn_c_try_link
"$LINENO"; then :
14591 gdb_cv_var_macho
=yes
14593 gdb_cv_var_macho
=no
14595 rm -f core conftest.err conftest.
$ac_objext \
14596 conftest
$ac_exeext conftest.
$ac_ext
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
14599 $as_echo "$gdb_cv_var_macho" >&6; }
14601 LDFLAGS
=$OLD_LDFLAGS
14603 if test $gdb_cv_var_macho = yes; then
14604 CONFIG_OBS
="$CONFIG_OBS machoread.o"
14607 # Add any host-specific objects to GDB.
14608 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
14610 # If building on ELF, look for lzma support for embedded compressed debug info.
14611 if test $gdb_cv_var_elf = yes; then
14613 # Check whether --with-lzma was given.
14614 if test "${with_lzma+set}" = set; then :
14615 withval
=$with_lzma;
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
14621 $as_echo_n "checking whether to use lzma... " >&6; }
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
14623 $as_echo "$with_lzma" >&6; }
14625 if test "${with_lzma}" != no
; then
14636 acl_save_prefix
="$prefix"
14637 prefix
="$acl_final_prefix"
14638 acl_save_exec_prefix
="$exec_prefix"
14639 exec_prefix
="$acl_final_exec_prefix"
14641 eval additional_includedir
=\"$includedir\"
14642 eval additional_libdir
=\"$libdir\"
14644 exec_prefix
="$acl_save_exec_prefix"
14645 prefix
="$acl_save_prefix"
14648 # Check whether --with-liblzma-prefix was given.
14649 if test "${with_liblzma_prefix+set}" = set; then :
14650 withval
=$with_liblzma_prefix;
14651 if test "X$withval" = "Xno"; then
14654 if test "X$withval" = "X"; then
14656 acl_save_prefix
="$prefix"
14657 prefix
="$acl_final_prefix"
14658 acl_save_exec_prefix
="$exec_prefix"
14659 exec_prefix
="$acl_final_exec_prefix"
14661 eval additional_includedir
=\"$includedir\"
14662 eval additional_libdir
=\"$libdir\"
14664 exec_prefix
="$acl_save_exec_prefix"
14665 prefix
="$acl_save_prefix"
14668 additional_includedir
="$withval/include"
14669 additional_libdir
="$withval/lib"
14680 names_already_handled
=
14681 names_next_round
='lzma '
14682 while test -n "$names_next_round"; do
14683 names_this_round
="$names_next_round"
14685 for name
in $names_this_round; do
14687 for n
in $names_already_handled; do
14688 if test "$n" = "$name"; then
14689 already_handled
=yes
14693 if test -z "$already_handled"; then
14694 names_already_handled
="$names_already_handled $name"
14695 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14696 eval value
=\"\
$HAVE_LIB$uppername\"
14697 if test -n "$value"; then
14698 if test "$value" = yes; then
14699 eval value
=\"\
$LIB$uppername\"
14700 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
14701 eval value
=\"\
$LTLIB$uppername\"
14702 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
14711 if test $use_additional = yes; then
14712 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14713 found_dir
="$additional_libdir"
14714 found_so
="$additional_libdir/lib$name.$shlibext"
14715 if test -f "$additional_libdir/lib$name.la"; then
14716 found_la
="$additional_libdir/lib$name.la"
14719 if test -f "$additional_libdir/lib$name.$libext"; then
14720 found_dir
="$additional_libdir"
14721 found_a
="$additional_libdir/lib$name.$libext"
14722 if test -f "$additional_libdir/lib$name.la"; then
14723 found_la
="$additional_libdir/lib$name.la"
14728 if test "X$found_dir" = "X"; then
14729 for x
in $LDFLAGS $LTLIBLZMA; do
14731 acl_save_prefix
="$prefix"
14732 prefix
="$acl_final_prefix"
14733 acl_save_exec_prefix
="$exec_prefix"
14734 exec_prefix
="$acl_final_exec_prefix"
14736 exec_prefix
="$acl_save_exec_prefix"
14737 prefix
="$acl_save_prefix"
14741 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14742 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14744 found_so
="$dir/lib$name.$shlibext"
14745 if test -f "$dir/lib$name.la"; then
14746 found_la
="$dir/lib$name.la"
14749 if test -f "$dir/lib$name.$libext"; then
14751 found_a
="$dir/lib$name.$libext"
14752 if test -f "$dir/lib$name.la"; then
14753 found_la
="$dir/lib$name.la"
14759 if test "X$found_dir" != "X"; then
14764 if test "X$found_dir" != "X"; then
14765 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
14766 if test "X$found_so" != "X"; then
14767 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14768 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14771 for x
in $ltrpathdirs; do
14772 if test "X$x" = "X$found_dir"; then
14777 if test -z "$haveit"; then
14778 ltrpathdirs
="$ltrpathdirs $found_dir"
14780 if test "$hardcode_direct" = yes; then
14781 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14783 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14784 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14786 for x
in $rpathdirs; do
14787 if test "X$x" = "X$found_dir"; then
14792 if test -z "$haveit"; then
14793 rpathdirs
="$rpathdirs $found_dir"
14797 for x
in $LDFLAGS $LIBLZMA; do
14799 acl_save_prefix
="$prefix"
14800 prefix
="$acl_final_prefix"
14801 acl_save_exec_prefix
="$exec_prefix"
14802 exec_prefix
="$acl_final_exec_prefix"
14804 exec_prefix
="$acl_save_exec_prefix"
14805 prefix
="$acl_save_prefix"
14807 if test "X$x" = "X-L$found_dir"; then
14812 if test -z "$haveit"; then
14813 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
14815 if test "$hardcode_minus_L" != no
; then
14816 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14818 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
14824 if test "X$found_a" != "X"; then
14825 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
14827 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
14830 additional_includedir
=
14831 case "$found_dir" in
14833 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14834 additional_includedir
="$basedir/include"
14837 if test "X$additional_includedir" != "X"; then
14838 if test "X$additional_includedir" != "X/usr/include"; then
14840 if test "X$additional_includedir" = "X/usr/local/include"; then
14841 if test -n "$GCC"; then
14843 linux
*) haveit
=yes;;
14847 if test -z "$haveit"; then
14848 for x
in $CPPFLAGS $INCLZMA; do
14850 acl_save_prefix
="$prefix"
14851 prefix
="$acl_final_prefix"
14852 acl_save_exec_prefix
="$exec_prefix"
14853 exec_prefix
="$acl_final_exec_prefix"
14855 exec_prefix
="$acl_save_exec_prefix"
14856 prefix
="$acl_save_prefix"
14858 if test "X$x" = "X-I$additional_includedir"; then
14863 if test -z "$haveit"; then
14864 if test -d "$additional_includedir"; then
14865 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
14871 if test -n "$found_la"; then
14872 save_libdir
="$libdir"
14873 case "$found_la" in
14874 */* |
*\\*) .
"$found_la" ;;
14875 *) .
"./$found_la" ;;
14877 libdir
="$save_libdir"
14878 for dep
in $dependency_libs; do
14881 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14882 if test "X$additional_libdir" != "X/usr/lib"; then
14884 if test "X$additional_libdir" = "X/usr/local/lib"; then
14885 if test -n "$GCC"; then
14887 linux
*) haveit
=yes;;
14891 if test -z "$haveit"; then
14893 for x
in $LDFLAGS $LIBLZMA; do
14895 acl_save_prefix
="$prefix"
14896 prefix
="$acl_final_prefix"
14897 acl_save_exec_prefix
="$exec_prefix"
14898 exec_prefix
="$acl_final_exec_prefix"
14900 exec_prefix
="$acl_save_exec_prefix"
14901 prefix
="$acl_save_prefix"
14903 if test "X$x" = "X-L$additional_libdir"; then
14908 if test -z "$haveit"; then
14909 if test -d "$additional_libdir"; then
14910 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
14914 for x
in $LDFLAGS $LTLIBLZMA; do
14916 acl_save_prefix
="$prefix"
14917 prefix
="$acl_final_prefix"
14918 acl_save_exec_prefix
="$exec_prefix"
14919 exec_prefix
="$acl_final_exec_prefix"
14921 exec_prefix
="$acl_save_exec_prefix"
14922 prefix
="$acl_save_prefix"
14924 if test "X$x" = "X-L$additional_libdir"; then
14929 if test -z "$haveit"; then
14930 if test -d "$additional_libdir"; then
14931 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14938 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14939 if test "$enable_rpath" != no
; then
14941 for x
in $rpathdirs; do
14942 if test "X$x" = "X$dir"; then
14947 if test -z "$haveit"; then
14948 rpathdirs
="$rpathdirs $dir"
14951 for x
in $ltrpathdirs; do
14952 if test "X$x" = "X$dir"; then
14957 if test -z "$haveit"; then
14958 ltrpathdirs
="$ltrpathdirs $dir"
14963 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14966 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14969 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
14970 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
14976 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
14977 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
14983 if test "X$rpathdirs" != "X"; then
14984 if test -n "$hardcode_libdir_separator"; then
14986 for found_dir
in $rpathdirs; do
14987 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14989 acl_save_libdir
="$libdir"
14991 eval flag
=\"$hardcode_libdir_flag_spec\"
14992 libdir
="$acl_save_libdir"
14993 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
14995 for found_dir
in $rpathdirs; do
14996 acl_save_libdir
="$libdir"
14997 libdir
="$found_dir"
14998 eval flag
=\"$hardcode_libdir_flag_spec\"
14999 libdir
="$acl_save_libdir"
15000 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
15004 if test "X$ltrpathdirs" != "X"; then
15005 for found_dir
in $ltrpathdirs; do
15006 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
15011 ac_save_CPPFLAGS
="$CPPFLAGS"
15013 for element
in $INCLZMA; do
15015 for x
in $CPPFLAGS; do
15017 acl_save_prefix
="$prefix"
15018 prefix
="$acl_final_prefix"
15019 acl_save_exec_prefix
="$exec_prefix"
15020 exec_prefix
="$acl_final_exec_prefix"
15022 exec_prefix
="$acl_save_exec_prefix"
15023 prefix
="$acl_save_prefix"
15025 if test "X$x" = "X$element"; then
15030 if test -z "$haveit"; then
15031 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
15037 $as_echo_n "checking for liblzma... " >&6; }
15038 if test "${ac_cv_liblzma+set}" = set; then :
15039 $as_echo_n "(cached) " >&6
15042 ac_save_LIBS
="$LIBS"
15043 LIBS
="$LIBS $LIBLZMA"
15044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15045 /* end confdefs.h. */
15050 lzma_index_iter iter;
15051 lzma_index_iter_init (&iter, 0);
15052 lzma_mf_is_supported (LZMA_MF_HC3);
15057 if ac_fn_c_try_link
"$LINENO"; then :
15062 rm -f core conftest.err conftest.
$ac_objext \
15063 conftest
$ac_exeext conftest.
$ac_ext
15064 LIBS
="$ac_save_LIBS"
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
15068 $as_echo "$ac_cv_liblzma" >&6; }
15069 if test "$ac_cv_liblzma" = yes; then
15072 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
15075 $as_echo_n "checking how to link with liblzma... " >&6; }
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
15077 $as_echo "$LIBLZMA" >&6; }
15080 CPPFLAGS
="$ac_save_CPPFLAGS"
15090 if test "$HAVE_LIBLZMA" != yes; then
15091 if test "$with_lzma" = yes; then
15092 as_fn_error
"missing liblzma for --with-lzma" "$LINENO" 5
15098 LIBGUI
="../libgui/src/libgui.a"
15099 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
15108 *-*-cygwin* |
*-*-mingw* )
15117 if test "${enable_gdbtk}" = "yes"; then
15119 # Gdbtk must have an absolute path to srcdir in order to run
15120 # properly when not installed.
15123 GDBTK_SRC_DIR
=`pwd`
15128 # Ok, lets find the tcl configuration
15129 # First, look for one uninstalled.
15130 # the alternative search directory is invoked by --with-tcl
15133 if test x
"${no_tcl}" = x
; then
15134 # we reset no_tcl in case something fails here
15137 # Check whether --with-tcl was given.
15138 if test "${with_tcl+set}" = set; then :
15139 withval
=$with_tcl; with_tclconfig
=${withval}
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15143 $as_echo_n "checking for Tcl configuration... " >&6; }
15144 if test "${ac_cv_c_tclconfig+set}" = set; then :
15145 $as_echo_n "(cached) " >&6
15149 # First check to see if --with-tcl was specified.
15151 *-*-cygwin*) platDir
="win" ;;
15152 *) platDir
="unix" ;;
15154 if test x
"${with_tclconfig}" != x
; then
15155 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15156 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
15158 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15162 # then check for a private Tcl installation
15163 if test x
"${ac_cv_c_tclconfig}" = x
; then
15166 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15167 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15168 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15170 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15171 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15172 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15174 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15175 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15176 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15177 if test -f "$i/$platDir/tclConfig.sh" ; then
15178 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15184 # on Darwin, check in Framework installation locations
15185 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
15186 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15187 `ls -d /Library/Frameworks 2>/dev/null` \
15188 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15189 `ls -d /System/Library/Frameworks 2>/dev/null` \
15191 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15192 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
15198 # check in a few common install locations
15199 if test x
"${ac_cv_c_tclconfig}" = x
; then
15200 for i
in `ls -d ${libdir} 2>/dev/null` \
15201 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15202 `ls -d ${prefix}/lib 2>/dev/null` \
15203 `ls -d /usr/local/lib 2>/dev/null` \
15204 `ls -d /usr/contrib/lib 2>/dev/null` \
15205 `ls -d /usr/lib 2>/dev/null` \
15207 if test -f "$i/tclConfig.sh" ; then
15208 ac_cv_c_tclconfig
=`(cd $i; pwd)`
15214 # check in a few other private locations
15215 if test x
"${ac_cv_c_tclconfig}" = x
; then
15218 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15219 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15220 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15221 if test -f "$i/$platDir/tclConfig.sh" ; then
15222 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15231 if test x
"${ac_cv_c_tclconfig}" = x
; then
15232 TCL_BIN_DIR
="# no Tcl configs found"
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15234 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15237 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15239 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15244 # If $no_tk is nonempty, then we can't do Tk, and there is no
15245 # point to doing Tcl.
15248 # Ok, lets find the tk configuration
15249 # First, look for one uninstalled.
15250 # the alternative search directory is invoked by --with-tk
15253 if test x
"${no_tk}" = x
; then
15254 # we reset no_tk in case something fails here
15257 # Check whether --with-tk was given.
15258 if test "${with_tk+set}" = set; then :
15259 withval
=$with_tk; with_tkconfig
=${withval}
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15263 $as_echo_n "checking for Tk configuration... " >&6; }
15264 if test "${ac_cv_c_tkconfig+set}" = set; then :
15265 $as_echo_n "(cached) " >&6
15269 # First check to see if --with-tkconfig was specified.
15270 if test x
"${with_tkconfig}" != x
; then
15271 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15272 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
15274 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15278 # then check for a private Tk library
15280 *-*-cygwin*) platDir
="win" ;;
15281 *) platDir
="unix" ;;
15283 if test x
"${ac_cv_c_tkconfig}" = x
; then
15286 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15287 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15288 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15290 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15291 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15292 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15294 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15295 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15296 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15297 if test -f "$i/$platDir/tkConfig.sh" ; then
15298 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15304 # on Darwin, check in Framework installation locations
15305 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
15306 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15307 `ls -d /Library/Frameworks 2>/dev/null` \
15308 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15309 `ls -d /System/Library/Frameworks 2>/dev/null` \
15311 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15312 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
15318 # check in a few common install locations
15319 if test x
"${ac_cv_c_tkconfig}" = x
; then
15320 for i
in `ls -d ${libdir} 2>/dev/null` \
15321 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15322 `ls -d ${prefix}/lib 2>/dev/null` \
15323 `ls -d /usr/local/lib 2>/dev/null` \
15324 `ls -d /usr/contrib/lib 2>/dev/null` \
15325 `ls -d /usr/lib 2>/dev/null` \
15327 if test -f "$i/tkConfig.sh" ; then
15328 ac_cv_c_tkconfig
=`(cd $i; pwd)`
15333 # check in a few other private locations
15334 if test x
"${ac_cv_c_tkconfig}" = x
; then
15337 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15338 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15339 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15340 if test -f "$i/$platDir/tkConfig.sh" ; then
15341 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15350 if test x
"${ac_cv_c_tkconfig}" = x
; then
15351 TK_BIN_DIR
="# no Tk configs found"
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15353 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15356 TK_BIN_DIR
=${ac_cv_c_tkconfig}
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15358 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15363 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15366 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15368 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15370 $as_echo "loading" >&6; }
15371 .
${TCL_BIN_DIR}/tclConfig.sh
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15374 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15377 # eval is required to do the TCL_DBGX substitution
15378 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15379 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15381 # If the TCL_BIN_DIR is the build directory (not the install directory),
15382 # then set the common variable name to the value of the build variables.
15383 # For example, the variable TCL_LIB_SPEC will be set to the value
15384 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15385 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15386 # installed and uninstalled version of Tcl.
15387 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15388 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
15389 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
15390 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
15391 elif test "`uname -s`" = "Darwin"; then
15392 # If Tcl was built as a framework, attempt to use the libraries
15393 # from the framework at the given location so that linking works
15394 # against Tcl.framework installed in an arbitrary location.
15395 case ${TCL_DEFS} in
15397 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15398 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
15399 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15400 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15401 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15406 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15407 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15408 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15414 # eval is required to do the TCL_DBGX substitution
15415 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15416 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15417 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15418 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15434 # Check for in-tree tcl
15441 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15445 # Find Tcl private headers
15446 if test x
"${intree}" = xno
; then
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15449 $as_echo_n "checking for Tcl private headers... " >&6; }
15451 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15452 if test -f ${dir}/tclInt.h
; then
15456 if test x
"${private_dir}" = x
; then
15457 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
15459 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15461 $as_echo "${private_dir}" >&6; }
15464 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15465 TCL_LIBRARY
="${TCL_LIB_SPEC}"
15468 # If building tcl in the same src tree, private headers
15469 # are not needed, but we need to be sure to use the right
15471 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
15472 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
15473 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15481 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15483 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15485 $as_echo "loading" >&6; }
15486 .
${TK_BIN_DIR}/tkConfig.sh
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15489 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15492 # eval is required to do the TK_DBGX substitution
15493 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15494 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15496 # If the TK_BIN_DIR is the build directory (not the install directory),
15497 # then set the common variable name to the value of the build variables.
15498 # For example, the variable TK_LIB_SPEC will be set to the value
15499 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15500 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15501 # installed and uninstalled version of Tcl.
15502 if test -f "${TK_BIN_DIR}/Makefile" ; then
15503 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
15504 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
15505 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
15506 elif test "`uname -s`" = "Darwin"; then
15507 # If Tk was built as a framework, attempt to use the libraries
15508 # from the framework at the given location so that linking works
15509 # against Tk.framework installed in an arbitrary location.
15512 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15513 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
15514 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15515 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15516 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15521 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15522 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15523 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15529 # eval is required to do the TK_DBGX substitution
15530 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15531 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15532 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15533 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15548 # Check for in-tree Tk
15550 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15554 # Find Tk private headers
15555 if test x
"${intree}" = xno
; then
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15558 $as_echo_n "checking for Tk private headers... " >&6; }
15560 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15561 if test -f ${dir}/tkInt.h
; then
15565 if test x
"${private_dir}" = x
; then
15566 as_fn_error
"could not find Tk private headers" "$LINENO" 5
15568 TK_PRIVATE_INCLUDE
="-I${private_dir}"
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15570 $as_echo "${private_dir}" >&6; }
15573 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15574 TK_LIBRARY
=${TK_LIB_SPEC}
15577 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
15578 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
15579 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
15586 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15588 # Include some libraries that Tcl and Tk want.
15589 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15590 # Yes, the ordering seems wrong here. But it isn't.
15591 # TK_LIBS is the list of libraries that need to be linked
15592 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15593 # were in LIBS then any link tests after this point would
15594 # try to include things like `$(LIBGUI)', which wouldn't work.
15595 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
15597 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15598 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15599 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15600 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
15601 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
15602 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
15603 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
15605 if test x
$gdb_cv_os_cygwin = xyes
; then
15606 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15607 WIN32LDAPP
="-Wl,--subsystem,console"
15608 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
15611 subdirs
="$subdirs gdbtk"
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15624 $as_echo_n "checking for X... " >&6; }
15627 # Check whether --with-x was given.
15628 if test "${with_x+set}" = set; then :
15632 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15633 if test "x$with_x" = xno
; then
15634 # The user explicitly disabled X.
15637 case $x_includes,$x_libraries in #(
15638 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
15639 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
15640 $as_echo_n "(cached) " >&6
15642 # One or both of the vars are not set, and there is no cached value.
15643 ac_x_includes
=no ac_x_libraries
=no
15644 rm -f -r conftest.dir
15645 if mkdir conftest.dir
; then
15647 cat >Imakefile
<<'_ACEOF'
15649 @echo incroot='${INCROOT}'
15651 @echo usrlibdir='${USRLIBDIR}'
15653 @echo libdir='${LIBDIR}'
15655 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15656 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15657 for ac_var
in incroot usrlibdir libdir
; do
15658 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15660 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15661 for ac_extension
in a so sl dylib la dll
; do
15662 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15663 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15664 ac_im_usrlibdir
=$ac_im_libdir; break
15667 # Screen out bogus values from the imake configuration. They are
15668 # bogus both because they are the default anyway, and because
15669 # using them would break gcc on systems where it needs fixed includes.
15670 case $ac_im_incroot in
15671 /usr
/include
) ac_x_includes
= ;;
15672 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15674 case $ac_im_usrlibdir in
15675 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15676 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15680 rm -f -r conftest.dir
15683 # Standard set of common directories for X headers.
15684 # Check X11 before X11Rn because it is often a symlink to the current release.
15698 /usr/local/X11/include
15699 /usr/local/X11R7/include
15700 /usr/local/X11R6/include
15701 /usr/local/X11R5/include
15702 /usr/local/X11R4/include
15704 /usr/local/include/X11
15705 /usr/local/include/X11R7
15706 /usr/local/include/X11R6
15707 /usr/local/include/X11R5
15708 /usr/local/include/X11R4
15712 /usr/XFree86/include/X11
15716 /usr/unsupported/include
15717 /usr/athena/include
15718 /usr/local/x11r5/include
15719 /usr/lpp/Xamples/include
15721 /usr/openwin/include
15722 /usr/openwin/share/include'
15724 if test "$ac_x_includes" = no
; then
15725 # Guess where to find include files, by looking for Xlib.h.
15726 # First, try using that file with no special directory specified.
15727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h. */
15729 #include <X11/Xlib.h>
15731 if ac_fn_c_try_cpp
"$LINENO"; then :
15732 # We can compile using X headers with no special include directory.
15735 for ac_dir
in $ac_x_header_dirs; do
15736 if test -r "$ac_dir/X11/Xlib.h"; then
15737 ac_x_includes
=$ac_dir
15742 rm -f conftest.err conftest.
$ac_ext
15743 fi # $ac_x_includes = no
15745 if test "$ac_x_libraries" = no
; then
15746 # Check for the libraries.
15747 # See if we find them without any special options.
15748 # Don't add to $LIBS permanently.
15751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h. */
15753 #include <X11/Xlib.h>
15762 if ac_fn_c_try_link
"$LINENO"; then :
15764 # We can link X programs with no special library path.
15768 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15770 # Don't even attempt the hair of trying to link an X program!
15771 for ac_extension
in a so sl dylib la dll
; do
15772 if test -r "$ac_dir/libX11.$ac_extension"; then
15773 ac_x_libraries
=$ac_dir
15779 rm -f core conftest.err conftest.
$ac_objext \
15780 conftest
$ac_exeext conftest.
$ac_ext
15781 fi # $ac_x_libraries = no
15783 case $ac_x_includes,$ac_x_libraries in #(
15784 no
,* |
*,no |
*\'*)
15785 # Didn't find X, or a directory has "'" in its name.
15786 ac_cv_have_x
="have_x=no";; #(
15788 # Record where we found X for the cache.
15789 ac_cv_have_x
="have_x=yes\
15790 ac_x_includes='$ac_x_includes'\
15791 ac_x_libraries='$ac_x_libraries'"
15797 eval "$ac_cv_have_x"
15800 if test "$have_x" != yes; then
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15802 $as_echo "$have_x" >&6; }
15805 # If each of the values was on the command line, it overrides each guess.
15806 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15807 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15808 # Update the cache value to reflect the command line values.
15809 ac_cv_have_x
="have_x=yes\
15810 ac_x_includes='$x_includes'\
15811 ac_x_libraries='$x_libraries'"
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15813 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15817 # Unlike the sim directory, whether a simulator is linked is controlled by
15818 # presence of a gdb_sim definition in the target configure.tgt entry.
15819 # This code just checks for a few cases where we'd like to ignore those
15820 # definitions, even when they're present in the '.mt' file. These cases
15821 # are when --disable-sim is specified, or if the simulator directory is
15822 # not part of the source tree.
15824 # Check whether --enable-sim was given.
15825 if test "${enable_sim+set}" = set; then :
15826 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
15827 echo "enableval = ${enableval}";
15828 case "${enableval}" in
15829 yes) ignore_sim
=false
;;
15830 no
) ignore_sim
=true
;;
15831 *) ignore_sim
=false
;;
15838 if test ! -d "${srcdir}/../sim"; then
15844 if test "${ignore_sim}" = "false"; then
15845 if test x
"${gdb_sim}" != x
; then
15847 SIM_OBS
="remote-sim.o"
15849 $as_echo "#define WITH_SIM 1" >>confdefs.h
15852 # Some tdep code should only be compiled in when the ppc sim is
15853 # built. PR sim/13418.
15857 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
15877 # List of host floatformats.
15879 cat >>confdefs.h
<<_ACEOF
15880 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15884 cat >>confdefs.h
<<_ACEOF
15885 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15889 cat >>confdefs.h
<<_ACEOF
15890 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15894 # target_subdir is used by the testsuite to find the target libraries.
15896 if test "${host}" != "${target}"; then
15897 target_subdir
="${target_alias}/"
15902 if test "${gdb_native}" = "yes"; then
15903 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15904 if test ! -f ${host_makefile_frag}; then
15905 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15907 frags
="$frags $host_makefile_frag"
15909 host_makefile_frag
=/dev
/null
15915 if test "${gdb_native}" = "yes"; then
15916 # We pick this up from the host configuration file (.mh) because we
15917 # do not have a native configuration Makefile fragment.
15918 nativefile
=`sed -n '
15919 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15920 ' ${host_makefile_frag}`
15924 if test x
"${gdb_osabi}" != x
; then
15926 cat >>confdefs.h
<<_ACEOF
15927 #define GDB_OSABI_DEFAULT $gdb_osabi
15932 # Enable multi-ice-gdb-server.
15933 # Check whether --enable-multi-ice was given.
15934 if test "${enable_multi_ice+set}" = set; then :
15935 enableval
=$enable_multi_ice; case $enableval in
15938 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15942 if test "x$enable_multi_ice" = xyes
; then
15943 subdirs
="$subdirs multi-ice"
15947 # Check whether --enable-gdbserver was given.
15948 if test "${enable_gdbserver+set}" = set; then :
15949 enableval
=$enable_gdbserver; case "${enableval}" in
15951 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15954 enable_gdbserver
=auto
15958 # We only build gdbserver automatically in a native configuration, and
15959 # only if the user did not explicitly disable its build.
15960 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15962 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15963 if test "x$build_gdbserver" = xyes
; then
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15965 $as_echo "yes" >&6; }
15966 subdirs
="$subdirs gdbserver"
15968 gdbserver_build_enabled
=yes
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15971 $as_echo "no" >&6; }
15975 # If the user explicitly request the gdbserver to be built, verify that
15976 # we were in fact able to enable it.
15977 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15978 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15981 # Check for babeltrace and babeltrace-ctf
15983 # Check whether --with-babeltrace was given.
15984 if test "${with_babeltrace+set}" = set; then :
15985 withval
=$with_babeltrace;
15987 with_babeltrace
=auto
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
15991 $as_echo_n "checking whether to use babeltrace... " >&6; }
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
15993 $as_echo "$with_babeltrace" >&6; }
15995 if test "x$with_babeltrace" = "xno"; then
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
15997 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
15999 # Append -Werror to CFLAGS so that configure can catch the warning
16000 # "assignment from incompatible pointer type", which is related to
16001 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
16002 # in GDB, while babeltrace 1.0.3 is broken.
16003 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
16004 # safe to save and restore CFLAGS here.
16005 saved_CFLAGS
=$CFLAGS
16006 CFLAGS
="$CFLAGS -Werror"
16017 acl_save_prefix
="$prefix"
16018 prefix
="$acl_final_prefix"
16019 acl_save_exec_prefix
="$exec_prefix"
16020 exec_prefix
="$acl_final_exec_prefix"
16022 eval additional_includedir
=\"$includedir\"
16023 eval additional_libdir
=\"$libdir\"
16025 exec_prefix
="$acl_save_exec_prefix"
16026 prefix
="$acl_save_prefix"
16029 # Check whether --with-libbabeltrace-prefix was given.
16030 if test "${with_libbabeltrace_prefix+set}" = set; then :
16031 withval
=$with_libbabeltrace_prefix;
16032 if test "X$withval" = "Xno"; then
16035 if test "X$withval" = "X"; then
16037 acl_save_prefix
="$prefix"
16038 prefix
="$acl_final_prefix"
16039 acl_save_exec_prefix
="$exec_prefix"
16040 exec_prefix
="$acl_final_exec_prefix"
16042 eval additional_includedir
=\"$includedir\"
16043 eval additional_libdir
=\"$libdir\"
16045 exec_prefix
="$acl_save_exec_prefix"
16046 prefix
="$acl_save_prefix"
16049 additional_includedir
="$withval/include"
16050 additional_libdir
="$withval/lib"
16061 names_already_handled
=
16062 names_next_round
='babeltrace babeltrace-ctf'
16063 while test -n "$names_next_round"; do
16064 names_this_round
="$names_next_round"
16066 for name
in $names_this_round; do
16068 for n
in $names_already_handled; do
16069 if test "$n" = "$name"; then
16070 already_handled
=yes
16074 if test -z "$already_handled"; then
16075 names_already_handled
="$names_already_handled $name"
16076 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16077 eval value
=\"\
$HAVE_LIB$uppername\"
16078 if test -n "$value"; then
16079 if test "$value" = yes; then
16080 eval value
=\"\
$LIB$uppername\"
16081 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
16082 eval value
=\"\
$LTLIB$uppername\"
16083 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
16092 if test $use_additional = yes; then
16093 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16094 found_dir
="$additional_libdir"
16095 found_so
="$additional_libdir/lib$name.$shlibext"
16096 if test -f "$additional_libdir/lib$name.la"; then
16097 found_la
="$additional_libdir/lib$name.la"
16100 if test -f "$additional_libdir/lib$name.$libext"; then
16101 found_dir
="$additional_libdir"
16102 found_a
="$additional_libdir/lib$name.$libext"
16103 if test -f "$additional_libdir/lib$name.la"; then
16104 found_la
="$additional_libdir/lib$name.la"
16109 if test "X$found_dir" = "X"; then
16110 for x
in $LDFLAGS $LTLIBBABELTRACE; do
16112 acl_save_prefix
="$prefix"
16113 prefix
="$acl_final_prefix"
16114 acl_save_exec_prefix
="$exec_prefix"
16115 exec_prefix
="$acl_final_exec_prefix"
16117 exec_prefix
="$acl_save_exec_prefix"
16118 prefix
="$acl_save_prefix"
16122 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16123 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16125 found_so
="$dir/lib$name.$shlibext"
16126 if test -f "$dir/lib$name.la"; then
16127 found_la
="$dir/lib$name.la"
16130 if test -f "$dir/lib$name.$libext"; then
16132 found_a
="$dir/lib$name.$libext"
16133 if test -f "$dir/lib$name.la"; then
16134 found_la
="$dir/lib$name.la"
16140 if test "X$found_dir" != "X"; then
16145 if test "X$found_dir" != "X"; then
16146 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
16147 if test "X$found_so" != "X"; then
16148 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16149 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16152 for x
in $ltrpathdirs; do
16153 if test "X$x" = "X$found_dir"; then
16158 if test -z "$haveit"; then
16159 ltrpathdirs
="$ltrpathdirs $found_dir"
16161 if test "$hardcode_direct" = yes; then
16162 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16164 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16165 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16167 for x
in $rpathdirs; do
16168 if test "X$x" = "X$found_dir"; then
16173 if test -z "$haveit"; then
16174 rpathdirs
="$rpathdirs $found_dir"
16178 for x
in $LDFLAGS $LIBBABELTRACE; do
16180 acl_save_prefix
="$prefix"
16181 prefix
="$acl_final_prefix"
16182 acl_save_exec_prefix
="$exec_prefix"
16183 exec_prefix
="$acl_final_exec_prefix"
16185 exec_prefix
="$acl_save_exec_prefix"
16186 prefix
="$acl_save_prefix"
16188 if test "X$x" = "X-L$found_dir"; then
16193 if test -z "$haveit"; then
16194 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
16196 if test "$hardcode_minus_L" != no
; then
16197 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16199 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16205 if test "X$found_a" != "X"; then
16206 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
16208 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
16211 additional_includedir
=
16212 case "$found_dir" in
16214 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16215 additional_includedir
="$basedir/include"
16218 if test "X$additional_includedir" != "X"; then
16219 if test "X$additional_includedir" != "X/usr/include"; then
16221 if test "X$additional_includedir" = "X/usr/local/include"; then
16222 if test -n "$GCC"; then
16224 linux
*) haveit
=yes;;
16228 if test -z "$haveit"; then
16229 for x
in $CPPFLAGS $INCBABELTRACE; do
16231 acl_save_prefix
="$prefix"
16232 prefix
="$acl_final_prefix"
16233 acl_save_exec_prefix
="$exec_prefix"
16234 exec_prefix
="$acl_final_exec_prefix"
16236 exec_prefix
="$acl_save_exec_prefix"
16237 prefix
="$acl_save_prefix"
16239 if test "X$x" = "X-I$additional_includedir"; then
16244 if test -z "$haveit"; then
16245 if test -d "$additional_includedir"; then
16246 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
16252 if test -n "$found_la"; then
16253 save_libdir
="$libdir"
16254 case "$found_la" in
16255 */* |
*\\*) .
"$found_la" ;;
16256 *) .
"./$found_la" ;;
16258 libdir
="$save_libdir"
16259 for dep
in $dependency_libs; do
16262 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16263 if test "X$additional_libdir" != "X/usr/lib"; then
16265 if test "X$additional_libdir" = "X/usr/local/lib"; then
16266 if test -n "$GCC"; then
16268 linux
*) haveit
=yes;;
16272 if test -z "$haveit"; then
16274 for x
in $LDFLAGS $LIBBABELTRACE; do
16276 acl_save_prefix
="$prefix"
16277 prefix
="$acl_final_prefix"
16278 acl_save_exec_prefix
="$exec_prefix"
16279 exec_prefix
="$acl_final_exec_prefix"
16281 exec_prefix
="$acl_save_exec_prefix"
16282 prefix
="$acl_save_prefix"
16284 if test "X$x" = "X-L$additional_libdir"; then
16289 if test -z "$haveit"; then
16290 if test -d "$additional_libdir"; then
16291 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
16295 for x
in $LDFLAGS $LTLIBBABELTRACE; do
16297 acl_save_prefix
="$prefix"
16298 prefix
="$acl_final_prefix"
16299 acl_save_exec_prefix
="$exec_prefix"
16300 exec_prefix
="$acl_final_exec_prefix"
16302 exec_prefix
="$acl_save_exec_prefix"
16303 prefix
="$acl_save_prefix"
16305 if test "X$x" = "X-L$additional_libdir"; then
16310 if test -z "$haveit"; then
16311 if test -d "$additional_libdir"; then
16312 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
16319 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16320 if test "$enable_rpath" != no
; then
16322 for x
in $rpathdirs; do
16323 if test "X$x" = "X$dir"; then
16328 if test -z "$haveit"; then
16329 rpathdirs
="$rpathdirs $dir"
16332 for x
in $ltrpathdirs; do
16333 if test "X$x" = "X$dir"; then
16338 if test -z "$haveit"; then
16339 ltrpathdirs
="$ltrpathdirs $dir"
16344 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16347 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16350 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
16351 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
16357 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16358 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
16364 if test "X$rpathdirs" != "X"; then
16365 if test -n "$hardcode_libdir_separator"; then
16367 for found_dir
in $rpathdirs; do
16368 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16370 acl_save_libdir
="$libdir"
16372 eval flag
=\"$hardcode_libdir_flag_spec\"
16373 libdir
="$acl_save_libdir"
16374 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16376 for found_dir
in $rpathdirs; do
16377 acl_save_libdir
="$libdir"
16378 libdir
="$found_dir"
16379 eval flag
=\"$hardcode_libdir_flag_spec\"
16380 libdir
="$acl_save_libdir"
16381 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16385 if test "X$ltrpathdirs" != "X"; then
16386 for found_dir
in $ltrpathdirs; do
16387 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
16392 ac_save_CPPFLAGS
="$CPPFLAGS"
16394 for element
in $INCBABELTRACE; do
16396 for x
in $CPPFLAGS; do
16398 acl_save_prefix
="$prefix"
16399 prefix
="$acl_final_prefix"
16400 acl_save_exec_prefix
="$exec_prefix"
16401 exec_prefix
="$acl_final_exec_prefix"
16403 exec_prefix
="$acl_save_exec_prefix"
16404 prefix
="$acl_save_prefix"
16406 if test "X$x" = "X$element"; then
16411 if test -z "$haveit"; then
16412 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
16418 $as_echo_n "checking for libbabeltrace... " >&6; }
16419 if test "${ac_cv_libbabeltrace+set}" = set; then :
16420 $as_echo_n "(cached) " >&6
16423 ac_save_LIBS
="$LIBS"
16424 LIBS
="$LIBS $LIBBABELTRACE"
16425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h. */
16427 #include <babeltrace/babeltrace.h>
16428 #include <babeltrace/ctf/events.h>
16429 #include <babeltrace/ctf/iterator.h>
16433 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
16434 struct bt_ctf_event *event = NULL;
16435 const struct bt_definition *scope;
16437 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
16438 scope = bt_ctf_get_top_level_scope (event,
16439 BT_STREAM_EVENT_HEADER);
16440 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
16446 if ac_fn_c_try_link
"$LINENO"; then :
16447 ac_cv_libbabeltrace
=yes
16449 ac_cv_libbabeltrace
=no
16451 rm -f core conftest.err conftest.
$ac_objext \
16452 conftest
$ac_exeext conftest.
$ac_ext
16453 LIBS
="$ac_save_LIBS"
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
16457 $as_echo "$ac_cv_libbabeltrace" >&6; }
16458 if test "$ac_cv_libbabeltrace" = yes; then
16459 HAVE_LIBBABELTRACE
=yes
16461 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
16464 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
16466 $as_echo "$LIBBABELTRACE" >&6; }
16468 HAVE_LIBBABELTRACE
=no
16469 CPPFLAGS
="$ac_save_CPPFLAGS"
16479 CFLAGS
=$saved_CFLAGS
16481 if test "$HAVE_LIBBABELTRACE" != yes; then
16482 if test "$with_babeltrace" = yes; then
16483 as_fn_error
"babeltrace is missing or unusable" "$LINENO" 5
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
16486 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
16491 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16492 # to an empty version.
16498 if test "${nativefile}" != ""; then
16499 case "${nativefile}" in
16500 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
16501 * ) GDB_NM_FILE
="${nativefile}"
16503 files
="${files} ${GDB_NM_FILE}"
16504 links
="${links} nm.h"
16506 cat >>confdefs.h
<<_ACEOF
16507 #define GDB_NM_FILE "${GDB_NM_FILE}"
16513 ac_sources
="$files"
16515 while test -n "$ac_sources"; do
16516 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
16517 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
16518 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
16520 ac_config_links
="$ac_config_links $ac_config_links_1"
16526 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16530 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16531 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
16532 if test "x$GDB_TRANSFORM_NAME" = x
; then
16533 GDB_TRANSFORM_NAME
=gdb
16538 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16539 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
16540 if test "x$GCORE_TRANSFORM_NAME" = x
; then
16541 GCORE_TRANSFORM_NAME
=gcore
16545 ac_config_files
="$ac_config_files gcore"
16548 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
16550 ac_config_commands
="$ac_config_commands default"
16552 cat >confcache
<<\_ACEOF
16553 # This file is a shell script that caches the results of configure
16554 # tests run on this system so they can be shared between configure
16555 # scripts and configure runs, see configure's option --config-cache.
16556 # It is not useful on other systems. If it contains results you don't
16557 # want to keep, you may remove or edit it.
16559 # config.status only pays attention to the cache file if you give it
16560 # the --recheck option to rerun configure.
16562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16564 # following values.
16568 # The following way of writing the cache mishandles newlines in values,
16569 # but we know of no workaround that is simple, portable, and efficient.
16570 # So, we kill variables containing newlines.
16571 # Ultrix sh set writes to stderr and can't be redirected directly,
16572 # and sets the high bit in the cache file unless we assign to the vars.
16574 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16575 eval ac_val
=\$
$ac_var
16579 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16580 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16583 _ | IFS | as_nl
) ;; #(
16584 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16585 *) { eval $ac_var=; unset $ac_var;} ;;
16591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16592 *${as_nl}ac_space
=\
*)
16593 # `set' does not quote correctly, so add quotes: double-quote
16594 # substitution turns \\\\ into \\, and sed turns \\ into \.
16597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16600 # `set' quotes correctly as required by POSIX, so do not add quotes.
16601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16614 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16615 if test -w "$cache_file"; then
16616 test "x$cache_file" != "x/dev/null" &&
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16618 $as_echo "$as_me: updating cache $cache_file" >&6;}
16619 cat confcache
>$cache_file
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16627 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16628 # Let make expand exec_prefix.
16629 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16631 DEFS
=-DHAVE_CONFIG_H
16635 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16636 # 1. Remove the extension, and $U if already installed.
16637 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16638 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16640 # will be set to the directory where LIBOBJS objects are built.
16641 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16642 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16644 LIBOBJS
=$ac_libobjs
16646 LTLIBOBJS
=$ac_ltlibobjs
16649 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16650 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16653 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16654 as_fn_error
"conditional \"GMAKE\" was never defined.
16655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16657 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16658 as_fn_error
"conditional \"HAVE_PYTHON\" was never defined.
16659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16661 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
16662 as_fn_error
"conditional \"HAVE_GUILE\" was never defined.
16663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16667 : ${CONFIG_STATUS=./config.status}
16669 ac_clean_files_save
=$ac_clean_files
16670 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16672 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16674 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16676 # Generated by $as_me.
16677 # Run this file to recreate the current configuration.
16678 # Compiler output produced by configure, useful for debugging
16679 # configure, is in config.log if it exists.
16682 ac_cs_recheck=false
16685 SHELL=\${CONFIG_SHELL-$SHELL}
16688 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16689 ## -------------------- ##
16690 ## M4sh Initialization. ##
16691 ## -------------------- ##
16693 # Be more Bourne compatible
16694 DUALCASE
=1; export DUALCASE
# for MKS sh
16695 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16698 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16699 # is contrary to our usage. Disable this feature.
16700 alias -g '${1+"$@"}'='"$@"'
16701 setopt NO_GLOB_SUBST
16703 case `(set -o) 2>/dev/null` in #(
16715 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16716 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16717 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16718 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16719 # Prefer a ksh shell builtin over an external printf program on Solaris,
16720 # but without wasting forks for bash or zsh.
16721 if test -z "$BASH_VERSION$ZSH_VERSION" \
16722 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16723 as_echo='print
-r --'
16724 as_echo_n='print
-rn --'
16725 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16726 as_echo='printf %s
\n'
16727 as_echo_n='printf %s
'
16729 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16730 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16731 as_echo_n='/usr
/ucb
/echo -n'
16733 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16734 as_echo_n_body='eval
16738 expr "X$arg" : "X\\(.*\\)$as_nl";
16739 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16741 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16743 export as_echo_n_body
16744 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16746 export as_echo_body
16747 as_echo='sh
-c $as_echo_body as_echo
'
16750 # The user is always right.
16751 if test "${PATH_SEPARATOR+set}" != set; then
16753 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16754 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16761 # We need space, tab and new line, in precisely that order. Quoting is
16762 # there to prevent editors from complaining about space-tab.
16763 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16764 # splitting by setting IFS to empty value.)
16767 # Find who we are. Look in the path if we contain no directory separator.
16769 *[\\/]* ) as_myself=$0 ;;
16770 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16771 for as_dir in $PATH
16774 test -z "$as_dir" && as_dir=.
16775 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16781 # We did not find ourselves, most probably we were run as `sh COMMAND'
16782 # in which case we are not to be found in the path.
16783 if test "x$as_myself" = x
; then
16786 if test ! -f "$as_myself"; then
16787 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16791 # Unset variables that we do not need and which cause bugs (e.g. in
16792 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16793 # suppresses any "Segmentation fault" message there. '((' could
16794 # trigger a bug in pdksh 5.2.14.
16795 for as_var
in BASH_ENV ENV MAIL MAILPATH
16796 do eval test x\
${$as_var+set} = xset \
16797 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16810 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16813 # as_fn_error ERROR [LINENO LOG_FD]
16814 # ---------------------------------
16815 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16816 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16817 # script with status $?, using 1 if that was 0.
16820 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16822 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16823 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16825 $as_echo "$as_me: error: $1" >&2
16826 as_fn_exit
$as_status
16830 # as_fn_set_status STATUS
16831 # -----------------------
16832 # Set $? to STATUS, without forking.
16833 as_fn_set_status
()
16836 } # as_fn_set_status
16838 # as_fn_exit STATUS
16839 # -----------------
16840 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16844 as_fn_set_status
$1
16850 # Portably unset VAR.
16853 { eval $1=; unset $1;}
16855 as_unset
=as_fn_unset
16856 # as_fn_append VAR VALUE
16857 # ----------------------
16858 # Append the text in VALUE to the end of the definition contained in VAR. Take
16859 # advantage of any shell optimizations that allow amortized linear growth over
16860 # repeated appends, instead of the typical quadratic growth present in naive
16862 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16863 eval 'as_fn_append ()
16874 # as_fn_arith ARG...
16875 # ------------------
16876 # Perform arithmetic evaluation on the ARGs, and store the result in the
16877 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16878 # must be portable across $(()) and expr.
16879 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16880 eval 'as_fn_arith ()
16887 as_val
=`expr "$@" || test $? -eq 1`
16892 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16893 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16899 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16900 as_basename
=basename
16905 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16911 as_me
=`$as_basename -- "$0" ||
16912 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16913 X"$0" : 'X\(//\)$' \| \
16914 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16916 sed '/^.*\/\([^/][^/]*\)\/*$/{
16930 # Avoid depending upon Character Ranges.
16931 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16932 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16933 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16934 as_cr_digits
='0123456789'
16935 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16937 ECHO_C
= ECHO_N
= ECHO_T
=
16938 case `echo -n x` in #(((((
16940 case `echo 'xy\c'` in
16941 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16943 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16950 rm -f conf$$ conf$$.exe conf$$.
file
16951 if test -d conf$$.dir
; then
16952 rm -f conf$$.dir
/conf$$.
file
16955 mkdir conf$$.dir
2>/dev
/null
16957 if (echo >conf$$.
file) 2>/dev
/null
; then
16958 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16960 # ... but there are two gotchas:
16961 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16962 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16963 # In both cases, we have to default to `cp -p'.
16964 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16966 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16974 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16975 rmdir conf$$.dir
2>/dev
/null
16980 # Create "$as_dir" as a directory, including parents if necessary.
16985 -*) as_dir
=.
/$as_dir;;
16987 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16991 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16992 *) as_qdir
=$as_dir;;
16994 as_dirs
="'$as_qdir' $as_dirs"
16995 as_dir
=`$as_dirname -- "$as_dir" ||
16996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16997 X"$as_dir" : 'X\(//\)[^/]' \| \
16998 X"$as_dir" : 'X\(//\)$' \| \
16999 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17000 $as_echo X"$as_dir" |
17001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17005 /^X\(\/\/\)[^/].*/{
17018 test -d "$as_dir" && break
17020 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17021 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
17025 if mkdir
-p .
2>/dev
/null
; then
17026 as_mkdir_p
='mkdir -p "$as_dir"'
17028 test -d .
/-p && rmdir .
/-p
17032 if test -x / >/dev
/null
2>&1; then
17033 as_test_x
='test -x'
17035 if ls -dL / >/dev
/null
2>&1; then
17042 if test -d "$1"; then
17048 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17049 ???[sx]*):;;*)false;;esac;fi
17053 as_executable_p
=$as_test_x
17055 # Sed expression to map a string onto a valid CPP name.
17056 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17058 # Sed expression to map a string onto a valid variable name.
17059 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17063 ## ----------------------------------- ##
17064 ## Main body of $CONFIG_STATUS script. ##
17065 ## ----------------------------------- ##
17067 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17070 # Save the log message, to keep $0 and so on meaningful, and to
17071 # report actual input values of CONFIG_FILES etc. instead of their
17072 # values after options handling.
17074 This file was extended by $as_me, which was
17075 generated by GNU Autoconf 2.64. Invocation command line was
17077 CONFIG_FILES = $CONFIG_FILES
17078 CONFIG_HEADERS = $CONFIG_HEADERS
17079 CONFIG_LINKS = $CONFIG_LINKS
17080 CONFIG_COMMANDS = $CONFIG_COMMANDS
17083 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17088 case $ac_config_files in *"
17089 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17092 case $ac_config_headers in *"
17093 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17098 # Files that config.status was made for.
17099 config_files="$ac_config_files"
17100 config_headers="$ac_config_headers"
17101 config_links="$ac_config_links"
17102 config_commands="$ac_config_commands"
17106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17108 \`$as_me' instantiates files and other configuration actions
17109 from templates according to the current configuration. Unless the files
17110 and actions are specified as TAGs, all are instantiated by default.
17112 Usage: $0 [OPTION]... [TAG]...
17114 -h, --help print this help, then exit
17115 -V, --version print version number and configuration settings, then exit
17116 -q, --quiet, --silent
17117 do not print progress messages
17118 -d, --debug don't remove temporary files
17119 --recheck update $as_me by reconfiguring in the same conditions
17120 --file=FILE[:TEMPLATE]
17121 instantiate the configuration file FILE
17122 --header=FILE[:TEMPLATE]
17123 instantiate the configuration header FILE
17125 Configuration files:
17128 Configuration headers:
17131 Configuration links:
17134 Configuration commands:
17137 Report bugs to the package provider."
17140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17143 configured by $0, generated by GNU Autoconf 2.64,
17144 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17146 Copyright (C) 2009 Free Software Foundation, Inc.
17147 This config.status script is free software; the Free Software Foundation
17148 gives unlimited permission to copy, distribute and modify it."
17154 test -n "\$AWK" || AWK=awk
17157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17158 # The default lists apply if the user does not specify any file.
17164 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17165 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17176 # Handling of the options.
17177 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17179 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17180 $as_echo "$ac_cs_version"; exit ;;
17181 --debug |
--debu |
--deb |
--de |
--d |
-d )
17183 --file |
--fil |
--fi |
--f )
17186 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17188 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17189 ac_need_defaults
=false
;;
17190 --header |
--heade |
--head |
--hea )
17193 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17195 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17196 ac_need_defaults
=false
;;
17198 # Conflict between --help and --header
17199 as_fn_error
"ambiguous option: \`$1'
17200 Try \`$0 --help' for more information.";;
17201 --help |
--hel |
-h )
17202 $as_echo "$ac_cs_usage"; exit ;;
17203 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17204 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17207 # This is an error.
17208 -*) as_fn_error
"unrecognized option: \`$1'
17209 Try \`$0 --help' for more information." ;;
17211 *) as_fn_append ac_config_targets
" $1"
17212 ac_need_defaults
=false
;;
17218 ac_configure_extra_args
=
17220 if $ac_cs_silent; then
17222 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17227 if \$ac_cs_recheck; then
17228 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17230 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17231 CONFIG_SHELL='$SHELL'
17232 export CONFIG_SHELL
17237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17241 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17242 ## Running $as_me. ##
17248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17252 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17258 # Handling of arguments.
17259 for ac_config_target
in $ac_config_targets
17261 case $ac_config_target in
17262 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
17263 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
17264 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
17265 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
17266 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
17267 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17268 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
17269 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
17270 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
17271 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17273 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17278 # If the user did not use the arguments to specify the items to instantiate,
17279 # then the envvar interface is used. Set only those that are not.
17280 # We use the long form for the default assignment because of an extremely
17281 # bizarre bug on SunOS 4.1.3.
17282 if $ac_need_defaults; then
17283 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17284 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17285 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
17286 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17289 # Have a temporary directory for convenience. Make it in the build tree
17290 # simply because there is no reason against having it here, and in addition,
17291 # creating and moving files from /tmp can sometimes cause problems.
17292 # Hook for its removal unless debugging.
17293 # Note that there is a small window in which the directory will not be cleaned:
17294 # after its creation but before its name has been assigned to `$tmp'.
17298 trap 'exit_status=$?
17299 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17301 trap 'as_fn_exit 1' 1 2 13 15
17303 # Create a (secure) tmp directory for tmp files.
17306 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17307 test -n "$tmp" && test -d "$tmp"
17310 tmp
=.
/conf$$
-$RANDOM
17311 (umask 077 && mkdir
"$tmp")
17312 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17314 # Set up the scripts for CONFIG_FILES section.
17315 # No need to generate them if there are no CONFIG_FILES.
17316 # This happens for instance with `./config.status config.h'.
17317 if test -n "$CONFIG_FILES"; then
17319 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
17320 ac_cs_awk_getline
=:
17321 ac_cs_awk_pipe_init
=
17322 ac_cs_awk_read_file
='
17323 while ((getline aline < (F[key])) > 0)
17326 ac_cs_awk_pipe_fini
=
17328 ac_cs_awk_getline
=false
17329 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
17330 ac_cs_awk_read_file
='
17332 print "cat " F[key] " &&"
17333 '$ac_cs_awk_pipe_init
17334 # The final `:' finishes the AND list.
17335 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
17337 ac_cr
=`echo X | tr X '\015'`
17338 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17339 # But we know of no other shell where ac_cr would be empty at this
17340 # point, so we can use a bashism as a fallback.
17341 if test "x$ac_cr" = x
; then
17342 eval ac_cr
=\$
\'\\r
\'
17344 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17345 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17348 ac_cs_awk_cr
=$ac_cr
17351 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17354 # Create commands to substitute file output variables.
17356 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17357 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17358 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
17361 } >conf$
$files.sh
&&
17362 . .
/conf$
$files.sh ||
17363 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
17364 rm -f conf$
$files.sh
17367 echo "cat >conf$$subs.awk <<_ACEOF" &&
17368 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17370 } >conf$$subs.sh ||
17371 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17372 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17374 for ac_last_try in false false false false false :; do
17375 . ./conf$$subs.sh ||
17376 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17378 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17379 if test $ac_delim_n = $ac_delim_num; then
17381 elif $ac_last_try; then
17382 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17384 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17387 rm -f conf$$subs.sh
17389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17390 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17394 s/^/S["/; s
/!.
*/"]=/
17404 s/\(.\{148\}\).*/\1/
17406 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17411 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17418 s/\(.\{148\}\).*/\1/
17420 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17424 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17429 ' <conf$$subs.awk | sed '
17434 ' >>$CONFIG_STATUS || ac_write_fail=1
17435 rm -f conf$$subs.awk
17436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17438 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17439 for (key in S) S_is_set[key] = 1
17441 \$ac_cs_awk_pipe_init
17445 nfields = split(line, field, "@
")
17447 len = length(field[1])
17448 for (i = 2; i < nfields; i++) {
17450 keylen = length(key)
17451 if (S_is_set[key]) {
17453 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17454 len += length(value) + length(field[++i])
17459 if (nfields == 3 && !substed) {
17461 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17462 \$ac_cs_awk_read_file
17468 \$ac_cs_awk_pipe_fini
17471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17472 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17473 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17476 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17477 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17480 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17481 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17482 # trailing colons and then remove the whole line if VPATH becomes empty
17483 # (actually we leave an empty line to preserve line numbers).
17484 if test "x
$srcdir" = x.; then
17485 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17486 s/:*\$(srcdir):*/:/
17487 s/:*\${srcdir}:*/:/
17489 s/^\([^=]*=[ ]*\):*/\1/
17495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17496 fi # test -n "$CONFIG_FILES"
17498 # Set up the scripts for CONFIG_HEADERS section.
17499 # No need to generate them if there are no CONFIG_HEADERS.
17500 # This happens for instance with `./config.status Makefile'.
17501 if test -n "$CONFIG_HEADERS"; then
17502 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17506 # Transform confdefs.h into an awk script `defines.awk', embedded as
17507 # here-document in config.status, that substitutes the proper values into
17508 # config.h.in to produce config.h.
17510 # Create a delimiter string that does not exist in confdefs.h, to ease
17511 # handling of long lines.
17513 for ac_last_try in false false :; do
17514 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17515 if test -z "$ac_t"; then
17517 elif $ac_last_try; then
17518 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17520 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17524 # For the awk script, D is an array of macro values keyed by name,
17525 # likewise P contains macro parameters if any. Preserve backslash
17526 # newline sequences.
17528 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17530 s/.\{148\}/&'"$ac_delim"'/g
17533 s/^[ ]*#[ ]*define[ ][ ]*/ /
17540 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17542 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17546 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17547 D["\
1"]=" \
3\\\\\\n
"\\/p
17549 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17554 s/.\{148\}/&'"$ac_delim"'/g
17559 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17562 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17564 ' <confdefs.h | sed '
17565 s/'"$ac_delim"'/"\\\
17566 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17569 for (key in D) D_is_set[key] = 1
17572 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17574 split(line, arg, " ")
17575 if (arg[1] == "#") {
17579 defundef
= substr
(arg
[1], 2)
17582 split(mac1
, mac2
, "(") #)
17584 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17585 if (D_is_set
[macro
]) {
17586 # Preserve the white space surrounding the "#".
17587 print prefix
"define", macro P
[macro
] D
[macro
]
17590 # Replace #undef with comments. This is necessary, for example,
17591 # in the case of _POSIX_SOURCE, which is predefined and required
17592 # on some systems where configure will not decide to define it.
17593 if (defundef
== "undef") {
17594 print
"/*", prefix defundef
, macro
, "*/"
17602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17603 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17604 fi # test -n "$CONFIG_HEADERS"
17607 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17612 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17614 case $ac_mode$ac_tag in
17616 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17617 :[FH
]-) ac_tag
=-:-;;
17618 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17635 -) ac_f
="$tmp/stdin";;
17636 *) # Look for the file first in the build tree, then in the source tree
17637 # (if the path is not absolute). The absolute path cannot be DOS-style,
17638 # because $ac_f cannot contain `:'.
17642 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17644 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17646 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17647 as_fn_append ac_file_inputs
" '$ac_f'"
17650 # Let's still pretend it is `configure' which instantiates (i.e., don't
17651 # use $as_me), people would be surprised to read:
17652 # /* config.h. Generated by config.status. */
17653 configure_input
='Generated from '`
17654 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17656 if test x
"$ac_file" != x-
; then
17657 configure_input
="$ac_file. $configure_input"
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17659 $as_echo "$as_me: creating $ac_file" >&6;}
17661 # Neutralize special characters interpreted by sed in replacement strings.
17662 case $configure_input in #(
17663 *\
&* |
*\|
* |
*\\* )
17664 ac_sed_conf_input
=`$as_echo "$configure_input" |
17665 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17666 *) ac_sed_conf_input
=$configure_input;;
17670 *:-:* |
*:-) cat >"$tmp/stdin" \
17671 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17676 ac_dir
=`$as_dirname -- "$ac_file" ||
17677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17678 X"$ac_file" : 'X\(//\)[^/]' \| \
17679 X"$ac_file" : 'X\(//\)$' \| \
17680 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17681 $as_echo X"$ac_file" |
17682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17686 /^X\(\/\/\)[^/].*/{
17699 as_dir
="$ac_dir"; as_fn_mkdir_p
17703 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17705 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17706 # A ".." for each directory in $ac_dir_suffix.
17707 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17708 case $ac_top_builddir_sub in
17709 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17710 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17713 ac_abs_top_builddir
=$ac_pwd
17714 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17715 # for backward compatibility:
17716 ac_top_builddir
=$ac_top_build_prefix
17719 .
) # We are building in place.
17721 ac_top_srcdir
=$ac_top_builddir_sub
17722 ac_abs_top_srcdir
=$ac_pwd ;;
17723 [\\/]* | ?
:[\\/]* ) # Absolute name.
17724 ac_srcdir
=$srcdir$ac_dir_suffix;
17725 ac_top_srcdir
=$srcdir
17726 ac_abs_top_srcdir
=$srcdir ;;
17727 *) # Relative name.
17728 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17729 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17730 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17732 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17742 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17743 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17748 # If the template does not know about datarootdir, expand it.
17749 # FIXME: This hack should be removed a few years after 2.60.
17750 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17761 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17762 *datarootdir
*) ac_datarootdir_seen
=yes;;
17763 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17765 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17768 ac_datarootdir_hack='
17769 s&@datadir@&$datadir&g
17770 s&@docdir@&$docdir&g
17771 s&@infodir@&$infodir&g
17772 s&@localedir@&$localedir&g
17773 s&@mandir@&$mandir&g
17774 s&\\\${datarootdir}&$datarootdir&g' ;;
17778 # Neutralize VPATH when `$srcdir' = `.'.
17779 # Shell code in configure.ac might set extrasub.
17780 # FIXME: do we really want to maintain this feature?
17781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17782 ac_sed_extra="$ac_vpsub
17785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17787 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17788 s|@configure_input@|
$ac_sed_conf_input|
;t t
17789 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17790 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17791 s
&@srcdir@
&$ac_srcdir&;t t
17792 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17793 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17794 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17795 s
&@builddir@
&$ac_builddir&;t t
17796 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17797 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17798 s
&@INSTALL@
&$ac_INSTALL&;t t
17799 $ac_datarootdir_hack
17801 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17802 if $ac_cs_awk_getline; then
17803 $AWK -f "$tmp/subs.
awk"
17805 $AWK -f "$tmp/subs.
awk" | $SHELL
17807 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17809 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17810 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17813 which seems to be undefined. Please make sure it is defined." >&5
17814 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17815 which seems to be undefined. Please make sure it is defined." >&2;}
17819 -) cat "$tmp/out" && rm -f "$tmp/out";;
17820 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17822 || as_fn_error "could not create $ac_file" "$LINENO" 5
17828 if test x"$ac_file" != x-; then
17830 $as_echo "/* $configure_input */" \
17831 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17832 } >"$tmp/config.h" \
17833 || as_fn_error "could not create $ac_file" "$LINENO" 5
17834 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17836 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17839 mv "$tmp/config.h" "$ac_file" \
17840 || as_fn_error "could not create $ac_file" "$LINENO" 5
17843 $as_echo "/* $configure_input */" \
17844 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17845 || as_fn_error "could not create -" "$LINENO" 5
17853 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
17856 # Prefer the file from the source tree if names are identical.
17857 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17858 ac_source=$srcdir/$ac_source
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17862 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17864 if test ! -r "$ac_source"; then
17865 as_fn_error "$ac_source: file not found" "$LINENO" 5
17869 # Try a relative symlink, then a hard link, then a copy.
17871 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17872 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17874 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17875 ln "$ac_source" "$ac_file" 2>/dev/null ||
17876 cp -p "$ac_source" "$ac_file" ||
17877 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17880 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17881 $as_echo "$as_me: executing $ac_file commands" >&6;}
17886 case $ac_file$ac_mode in
17887 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17888 "gcore":F) chmod +x gcore ;;
17890 case x$CONFIG_HEADERS in
17891 xconfig.h:config.in)
17902 ac_clean_files=$ac_clean_files_save
17904 test $ac_write_fail = 0 ||
17905 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17908 # configure is writing to config.log, and then calls config.status.
17909 # config.status does its own redirection, appending to config.log.
17910 # Unfortunately, on DOS this fails, as config.log is still kept open
17911 # by configure, so config.status won't be able to
write to it
; its
17912 # output is simply discarded. So we exec the FD to /dev/null,
17913 # effectively closing config.log, so it can be properly (re)opened and
17914 # appended to by config.status. When coming back to configure, we
17915 # need to make the FD available again.
17916 if test "$no_create" != yes; then
17918 ac_config_status_args
=
17919 test "$silent" = yes &&
17920 ac_config_status_args
="$ac_config_status_args --quiet"
17922 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17924 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17925 # would make configure fail if this is the last instruction.
17926 $ac_cs_success || as_fn_exit $?
17930 # CONFIG_SUBDIRS section.
17932 if test "$no_recursion" != yes; then
17934 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17935 # so they do not pile up.
17936 ac_sub_configure_args
=
17938 eval "set x $ac_configure_args"
17942 if test -n "$ac_prev"; then
17947 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17948 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17949 ac_prev
=cache_file
;;
17950 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17951 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17954 --config-cache |
-C)
17956 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17958 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17960 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17962 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17964 --disable-option-checking)
17968 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17970 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
17974 # Always prepend --prefix to ensure using the same prefix
17975 # in subdir configurations.
17976 ac_arg
="--prefix=$prefix"
17978 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17980 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
17983 if test "$silent" = yes; then
17984 ac_sub_configure_args
="--silent $ac_sub_configure_args"
17987 # Always prepend --disable-option-checking to silence warnings, since
17988 # different subdirs can have different --enable and --with options.
17989 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
17992 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17994 # Do not complain, so a configure script can configure whichever
17995 # parts of a large source tree are present.
17996 test -d "$srcdir/$ac_dir" ||
continue
17998 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17999 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18000 $as_echo "$ac_msg" >&6
18001 as_dir
="$ac_dir"; as_fn_mkdir_p
18005 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18007 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18008 # A ".." for each directory in $ac_dir_suffix.
18009 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18010 case $ac_top_builddir_sub in
18011 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18012 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18015 ac_abs_top_builddir
=$ac_pwd
18016 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18017 # for backward compatibility:
18018 ac_top_builddir
=$ac_top_build_prefix
18021 .
) # We are building in place.
18023 ac_top_srcdir
=$ac_top_builddir_sub
18024 ac_abs_top_srcdir
=$ac_pwd ;;
18025 [\\/]* | ?
:[\\/]* ) # Absolute name.
18026 ac_srcdir
=$srcdir$ac_dir_suffix;
18027 ac_top_srcdir
=$srcdir
18028 ac_abs_top_srcdir
=$srcdir ;;
18029 *) # Relative name.
18030 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18031 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18032 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18034 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18039 # Check for guested configure; otherwise get Cygnus style configure.
18040 if test -f "$ac_srcdir/configure.gnu"; then
18041 ac_sub_configure
=$ac_srcdir/configure.gnu
18042 elif test -f "$ac_srcdir/configure"; then
18043 ac_sub_configure
=$ac_srcdir/configure
18044 elif test -f "$ac_srcdir/configure.in"; then
18045 # This should be Cygnus configure.
18046 ac_sub_configure
=$ac_aux_dir/configure
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18049 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18053 # The recursion is here.
18054 if test -n "$ac_sub_configure"; then
18055 # Make the cache file name correct relative to the subdirectory.
18056 case $cache_file in
18057 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
18058 *) # Relative name.
18059 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
18062 { $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
18063 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18064 # The eval makes quoting arguments work.
18065 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18066 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18067 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18073 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18075 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}