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>
593 enable_option_checking
=no
594 ac_subst_vars
='am__EXEEXT_FALSE
657 TARGET_SYSTEM_ROOT_DEFINE
670 READLINE_TEXI_INCFLAG
701 INSTALL_STRIP_PROGRAM
724 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
760 NEXT_AS_FIRST_DIRECTIVE_STRING_H
770 HAVE_SIGNED_SIG_ATOMIC_T
773 BITSIZEOF_SIG_ATOMIC_T
779 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
783 HAVE_UNSIGNED_LONG_LONG_INT
785 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
788 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
793 APPLE_UNIVERSAL_BUILD
859 GL_COND_LIBTOOL_FALSE
904 MAINTAINER_MODE_FALSE
933 program_transform_name
944 ac_subst_files
='host_makefile_frag'
946 enable_option_checking
947 enable_maintainer_mode
950 enable_dependency_tracking
951 with_separate_debug_dir
953 with_relocated_sources
978 enable_build_warnings
979 enable_gdb_build_warnings
987 ac_precious_vars
='build_alias
999 ac_subdirs_all
='testsuite
1004 # Initialize some variables set by options.
1006 ac_init_version
=false
1007 ac_unrecognized_opts
=
1008 ac_unrecognized_sep
=
1009 # The variables have the same names as the options, with
1010 # dashes changed to underlines.
1011 cache_file
=/dev
/null
1018 program_transform_name
=s
,x
,x
,
1026 # Installation directory options.
1027 # These are left unexpanded so users can "make install exec_prefix=/foo"
1028 # and all the variables that are supposed to be based on exec_prefix
1029 # by default will actually change.
1030 # Use braces instead of parens because sh, perl, etc. also accept them.
1031 # (The list follows the same order as the GNU Coding Standards.)
1032 bindir
='${exec_prefix}/bin'
1033 sbindir
='${exec_prefix}/sbin'
1034 libexecdir
='${exec_prefix}/libexec'
1035 datarootdir
='${prefix}/share'
1036 datadir
='${datarootdir}'
1037 sysconfdir
='${prefix}/etc'
1038 sharedstatedir
='${prefix}/com'
1039 localstatedir
='${prefix}/var'
1040 includedir
='${prefix}/include'
1041 oldincludedir
='/usr/include'
1042 docdir
='${datarootdir}/doc/${PACKAGE}'
1043 infodir
='${datarootdir}/info'
1048 libdir
='${exec_prefix}/lib'
1049 localedir
='${datarootdir}/locale'
1050 mandir
='${datarootdir}/man'
1056 # If the previous option needs an argument, assign it.
1057 if test -n "$ac_prev"; then
1058 eval $ac_prev=\
$ac_option
1064 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1068 # Accept the important Cygnus configure options, so we can diagnose typos.
1070 case $ac_dashdash$ac_option in
1074 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1076 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1077 bindir
=$ac_optarg ;;
1079 -build |
--build |
--buil |
--bui |
--bu)
1080 ac_prev
=build_alias
;;
1081 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1082 build_alias
=$ac_optarg ;;
1084 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1085 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1086 ac_prev
=cache_file
;;
1087 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1088 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1089 cache_file
=$ac_optarg ;;
1091 --config-cache |
-C)
1092 cache_file
=config.cache
;;
1094 -datadir |
--datadir |
--datadi |
--datad)
1096 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1097 datadir
=$ac_optarg ;;
1099 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1100 |
--dataroo |
--dataro |
--datar)
1101 ac_prev
=datarootdir
;;
1102 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1103 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1104 datarootdir
=$ac_optarg ;;
1106 -disable-* |
--disable-*)
1107 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1110 as_fn_error
"invalid feature name: $ac_useropt"
1111 ac_useropt_orig
=$ac_useropt
1112 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1115 "enable_
$ac_useropt"
1117 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1118 ac_unrecognized_sep
=', ';;
1120 eval enable_
$ac_useropt=no
;;
1122 -docdir |
--docdir |
--docdi |
--doc |
--do)
1124 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1125 docdir
=$ac_optarg ;;
1127 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1129 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1130 dvidir
=$ac_optarg ;;
1132 -enable-* |
--enable-*)
1133 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1136 as_fn_error
"invalid feature name: $ac_useropt"
1137 ac_useropt_orig
=$ac_useropt
1138 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1141 "enable_
$ac_useropt"
1143 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1144 ac_unrecognized_sep
=', ';;
1146 eval enable_
$ac_useropt=\
$ac_optarg ;;
1148 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1149 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1150 |
--exec |
--exe |
--ex)
1151 ac_prev
=exec_prefix
;;
1152 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1153 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1154 |
--exec=* |
--exe=* |
--ex=*)
1155 exec_prefix
=$ac_optarg ;;
1157 -gas |
--gas |
--ga |
--g)
1158 # Obsolete; use --with-gas.
1161 -help |
--help |
--hel |
--he |
-h)
1162 ac_init_help
=long
;;
1163 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1164 ac_init_help
=recursive
;;
1165 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1166 ac_init_help
=short
;;
1168 -host |
--host |
--hos |
--ho)
1169 ac_prev
=host_alias
;;
1170 -host=* |
--host=* |
--hos=* |
--ho=*)
1171 host_alias
=$ac_optarg ;;
1173 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1175 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1177 htmldir
=$ac_optarg ;;
1179 -includedir |
--includedir |
--includedi |
--included |
--include \
1180 |
--includ |
--inclu |
--incl |
--inc)
1181 ac_prev
=includedir
;;
1182 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1183 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1184 includedir
=$ac_optarg ;;
1186 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1188 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1189 infodir
=$ac_optarg ;;
1191 -libdir |
--libdir |
--libdi |
--libd)
1193 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1194 libdir
=$ac_optarg ;;
1196 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1197 |
--libexe |
--libex |
--libe)
1198 ac_prev
=libexecdir
;;
1199 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1200 |
--libexe=* |
--libex=* |
--libe=*)
1201 libexecdir
=$ac_optarg ;;
1203 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1204 ac_prev
=localedir
;;
1205 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1206 localedir
=$ac_optarg ;;
1208 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1209 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1210 ac_prev
=localstatedir
;;
1211 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1212 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1213 localstatedir
=$ac_optarg ;;
1215 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1217 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1218 mandir
=$ac_optarg ;;
1220 -nfp |
--nfp |
--nf)
1221 # Obsolete; use --without-fp.
1224 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1225 |
--no-cr |
--no-c |
-n)
1228 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1229 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1232 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1233 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1234 |
--oldin |
--oldi |
--old |
--ol |
--o)
1235 ac_prev
=oldincludedir
;;
1236 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1237 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1238 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1239 oldincludedir
=$ac_optarg ;;
1241 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1243 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1244 prefix
=$ac_optarg ;;
1246 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1247 |
--program-pre |
--program-pr |
--program-p)
1248 ac_prev
=program_prefix
;;
1249 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1250 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1251 program_prefix
=$ac_optarg ;;
1253 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1254 |
--program-suf |
--program-su |
--program-s)
1255 ac_prev
=program_suffix
;;
1256 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1257 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1258 program_suffix
=$ac_optarg ;;
1260 -program-transform-name |
--program-transform-name \
1261 |
--program-transform-nam |
--program-transform-na \
1262 |
--program-transform-n |
--program-transform- \
1263 |
--program-transform |
--program-transfor \
1264 |
--program-transfo |
--program-transf \
1265 |
--program-trans |
--program-tran \
1266 |
--progr-tra |
--program-tr |
--program-t)
1267 ac_prev
=program_transform_name
;;
1268 -program-transform-name=* |
--program-transform-name=* \
1269 |
--program-transform-nam=* |
--program-transform-na=* \
1270 |
--program-transform-n=* |
--program-transform-=* \
1271 |
--program-transform=* |
--program-transfor=* \
1272 |
--program-transfo=* |
--program-transf=* \
1273 |
--program-trans=* |
--program-tran=* \
1274 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1275 program_transform_name
=$ac_optarg ;;
1277 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1279 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1280 pdfdir
=$ac_optarg ;;
1282 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1284 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1287 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1288 |
-silent |
--silent |
--silen |
--sile |
--sil)
1291 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1293 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1295 sbindir
=$ac_optarg ;;
1297 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1298 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1299 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1301 ac_prev
=sharedstatedir
;;
1302 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1303 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1304 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1306 sharedstatedir
=$ac_optarg ;;
1308 -site |
--site |
--sit)
1310 -site=* |
--site=* |
--sit=*)
1313 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1315 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1316 srcdir
=$ac_optarg ;;
1318 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1319 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1320 ac_prev
=sysconfdir
;;
1321 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1322 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1323 sysconfdir
=$ac_optarg ;;
1325 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1326 ac_prev
=target_alias
;;
1327 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1328 target_alias
=$ac_optarg ;;
1330 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1333 -version |
--version |
--versio |
--versi |
--vers |
-V)
1334 ac_init_version
=: ;;
1337 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1340 as_fn_error
"invalid package name: $ac_useropt"
1341 ac_useropt_orig
=$ac_useropt
1342 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343 case $ac_user_opts in
1347 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1348 ac_unrecognized_sep
=', ';;
1350 eval with_
$ac_useropt=\
$ac_optarg ;;
1352 -without-* |
--without-*)
1353 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1356 as_fn_error
"invalid package name: $ac_useropt"
1357 ac_useropt_orig
=$ac_useropt
1358 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359 case $ac_user_opts in
1363 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1364 ac_unrecognized_sep
=', ';;
1366 eval with_
$ac_useropt=no
;;
1369 # Obsolete; use --with-x.
1372 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1373 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1374 ac_prev
=x_includes
;;
1375 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1376 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1377 x_includes
=$ac_optarg ;;
1379 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1380 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1381 ac_prev
=x_libraries
;;
1382 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1383 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1384 x_libraries
=$ac_optarg ;;
1386 -*) as_fn_error
"unrecognized option: \`$ac_option'
1387 Try \`$0 --help' for more information."
1391 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1392 # Reject names that are not valid shell variable names.
1393 case $ac_envvar in #(
1394 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1395 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1397 eval $ac_envvar=\
$ac_optarg
1398 export $ac_envvar ;;
1401 # FIXME: should be removed in autoconf 3.0.
1402 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1403 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1404 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1405 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1411 if test -n "$ac_prev"; then
1412 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1413 as_fn_error
"missing argument to $ac_option"
1416 if test -n "$ac_unrecognized_opts"; then
1417 case $enable_option_checking in
1419 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1420 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1424 # Check all directory arguments for consistency.
1425 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1426 datadir sysconfdir sharedstatedir localstatedir includedir \
1427 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1428 libdir localedir mandir
1430 eval ac_val
=\$
$ac_var
1431 # Remove trailing slashes.
1434 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1435 eval $ac_var=\
$ac_val;;
1437 # Be sure to have absolute directory names.
1439 [\\/$
]* | ?
:[\\/]* ) continue;;
1440 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1442 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1445 # There might be people who depend on the old broken behavior: `$host'
1446 # used to hold the argument of --host etc.
1447 # FIXME: To remove some day.
1450 target
=$target_alias
1452 # FIXME: To remove some day.
1453 if test "x$host_alias" != x
; then
1454 if test "x$build_alias" = x
; then
1455 cross_compiling
=maybe
1456 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1457 If a cross compiler is detected then cross compile mode will be used." >&2
1458 elif test "x$build_alias" != "x$host_alias"; then
1464 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1466 test "$silent" = yes && exec 6>/dev
/null
1469 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1470 ac_ls_di
=`ls -di .` &&
1471 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1472 as_fn_error
"working directory cannot be determined"
1473 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1474 as_fn_error
"pwd does not report name of working directory"
1477 # Find the source files, if location was not specified.
1478 if test -z "$srcdir"; then
1479 ac_srcdir_defaulted
=yes
1480 # Try the directory containing this script, then the parent directory.
1481 ac_confdir
=`$as_dirname -- "$as_myself" ||
1482 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1483 X"$as_myself" : 'X\(//\)[^/]' \| \
1484 X"$as_myself" : 'X\(//\)$' \| \
1485 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1486 $as_echo X"$as_myself" |
1487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1505 if test ! -r "$srcdir/$ac_unique_file"; then
1509 ac_srcdir_defaulted
=no
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1512 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1513 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1515 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1517 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1519 # When building in place, set srcdir=.
1520 if test "$ac_abs_confdir" = "$ac_pwd"; then
1523 # Remove unnecessary trailing slashes from srcdir.
1524 # Double slashes in file names in object file debugging info
1525 # mess up M-x gdb in Emacs.
1527 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1529 for ac_var
in $ac_precious_vars; do
1530 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1531 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1532 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1533 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1537 # Report the --help message.
1539 if test "$ac_init_help" = "long"; then
1540 # Omit some internal or obsolete options to make the list less imposing.
1541 # This message is too long to be a string in the A/UX 3.1 sh.
1543 \`configure' configures this package to adapt to many kinds of systems.
1545 Usage: $0 [OPTION]... [VAR=VALUE]...
1547 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1548 VAR=VALUE. See below for descriptions of some of the useful variables.
1550 Defaults for the options are specified in brackets.
1553 -h, --help display this help and exit
1554 --help=short display options specific to this package
1555 --help=recursive display the short help of all the included packages
1556 -V, --version display version information and exit
1557 -q, --quiet, --silent do not print \`checking...' messages
1558 --cache-file=FILE cache test results in FILE [disabled]
1559 -C, --config-cache alias for \`--cache-file=config.cache'
1560 -n, --no-create do not create output files
1561 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1563 Installation directories:
1564 --prefix=PREFIX install architecture-independent files in PREFIX
1565 [$ac_default_prefix]
1566 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1569 By default, \`make install' will install all the files in
1570 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1571 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1572 for instance \`--prefix=\$HOME'.
1574 For better control, use the options below.
1576 Fine tuning of the installation directories:
1577 --bindir=DIR user executables [EPREFIX/bin]
1578 --sbindir=DIR system admin executables [EPREFIX/sbin]
1579 --libexecdir=DIR program executables [EPREFIX/libexec]
1580 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1581 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1582 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1583 --libdir=DIR object code libraries [EPREFIX/lib]
1584 --includedir=DIR C header files [PREFIX/include]
1585 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1586 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1587 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1588 --infodir=DIR info documentation [DATAROOTDIR/info]
1589 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1590 --mandir=DIR man documentation [DATAROOTDIR/man]
1591 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1592 --htmldir=DIR html documentation [DOCDIR]
1593 --dvidir=DIR dvi documentation [DOCDIR]
1594 --pdfdir=DIR pdf documentation [DOCDIR]
1595 --psdir=DIR ps documentation [DOCDIR]
1601 --program-prefix=PREFIX prepend PREFIX to installed program names
1602 --program-suffix=SUFFIX append SUFFIX to installed program names
1603 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1606 --x-includes=DIR X include files are
in DIR
1607 --x-libraries=DIR X library files are
in DIR
1610 --build=BUILD configure
for building on BUILD
[guessed
]
1611 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1612 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1616 if test -n "$ac_init_help"; then
1621 --disable-option-checking ignore unrecognized
--enable/--with options
1622 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1623 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1624 --enable-maintainer-mode enable make rules and dependencies not useful
1625 (and sometimes confusing
) to the casual installer
1626 --enable-plugins Enable support
for plugins
(defaults no
)
1627 --disable-largefile omit support
for large files
1628 --disable-dependency-tracking speeds up one-time build
1629 --enable-dependency-tracking do not reject slow dependency extractors
1630 --enable-targets=TARGETS
1631 alternative target configurations
1632 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1633 --disable-gdbcli disable command-line interface
(CLI
)
1634 --disable-gdbmi disable machine-interface
(MI
)
1635 --enable-tui enable full-screen terminal user interface
(TUI
)
1636 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1637 --enable-profiling enable profiling of GDB
1638 --disable-rpath do not hardcode runtime library paths
1639 --enable-werror treat compile warnings as errors
1640 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1641 --enable-gdb-build-warnings
1642 enable GDB specific build-time compiler warnings
if
1644 --enable-sim link gdb with simulator
1645 --enable-multi-ice build the multi-ice-gdb-server
1646 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1650 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1651 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1652 --with-separate-debug-dir=PATH
1653 look for global separate debug info
in this path
1655 --with-gdb-datadir=PATH
look for global separate data files
in this path
1657 --with-relocated-sources=PATH
1658 automatically relocate this path
for source files
1659 --with-libunwind use libunwind frame unwinding support
1660 --with-curses use the curses library instead of the termcap
1662 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1663 --with-bugurl=URL Direct users to URL to report a bug
1664 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1665 --with-libiconv-prefix=DIR
1666 search
for libiconv
in DIR
/include and DIR
/lib
1667 --with-iconv-bin=PATH specify where to
find the
iconv program
1668 --with-system-readline use installed readline library
1669 --with-expat include expat support
(auto
/yes
/no
)
1670 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1671 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1672 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1673 --with-python[=PYTHON] include python support
1674 (auto/yes/no/<python-program>)
1675 --without-included-regex
1676 don't use included regex
; this is the default on
1677 systems with version
2 of the GNU C library
(use
1678 with caution on other system
)
1679 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1680 --with-system-gdbinit=PATH
1681 automatically load a system-wide gdbinit
file
1682 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1683 --with-tk directory containing tk configuration
(tkConfig.sh
)
1684 --with-x use the X Window System
1686 Some influential environment variables
:
1687 CC C compiler
command
1688 CFLAGS C compiler flags
1689 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1690 nonstandard directory
<lib dir
>
1691 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1692 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1693 you have headers
in a nonstandard directory
<include dir
>
1695 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1696 the first program found out of: `bison
-y', `byacc', `yacc'.
1697 YFLAGS The list of arguments that will be passed by default to $YACC.
1698 This script will default YFLAGS to the empty string to avoid a
1699 default value of `-d' given by some make applications.
1700 XMKMF Path to xmkmf, Makefile generator for X Window System
1702 Use these variables to override the choices made by `configure' or to
help
1703 it to
find libraries and programs with nonstandard names
/locations.
1705 Report bugs to the package provider.
1710 if test "$ac_init_help" = "recursive"; then
1711 # If there are subdirs, report their specific --help.
1712 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1713 test -d "$ac_dir" ||
1714 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1719 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1721 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1722 # A ".." for each directory in $ac_dir_suffix.
1723 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1724 case $ac_top_builddir_sub in
1725 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1726 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1729 ac_abs_top_builddir
=$ac_pwd
1730 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1731 # for backward compatibility:
1732 ac_top_builddir
=$ac_top_build_prefix
1735 .
) # We are building in place.
1737 ac_top_srcdir
=$ac_top_builddir_sub
1738 ac_abs_top_srcdir
=$ac_pwd ;;
1739 [\\/]* | ?
:[\\/]* ) # Absolute name.
1740 ac_srcdir
=$srcdir$ac_dir_suffix;
1741 ac_top_srcdir
=$srcdir
1742 ac_abs_top_srcdir
=$srcdir ;;
1744 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1745 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1746 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1748 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1750 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1751 # Check for guested configure.
1752 if test -f "$ac_srcdir/configure.gnu"; then
1754 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1755 elif test -f "$ac_srcdir/configure"; then
1757 $SHELL "$ac_srcdir/configure" --help=recursive
1759 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1761 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1765 test -n "$ac_init_help" && exit $ac_status
1766 if $ac_init_version; then
1769 generated by GNU Autoconf
2.64
1771 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1772 This configure
script is free software
; the Free Software Foundation
1773 gives unlimited permission to copy
, distribute and modify it.
1778 ## ------------------------ ##
1779 ## Autoconf initialization. ##
1780 ## ------------------------ ##
1782 # ac_fn_c_try_compile LINENO
1783 # --------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_compile
()
1787 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1788 rm -f conftest.
$ac_objext
1789 if { { ac_try
="$ac_compile"
1791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_compile") 2>conftest.err
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest.$ac_objext; then :
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818 } # ac_fn_c_try_compile
1820 # ac_fn_c_try_cpp LINENO
1821 # ----------------------
1822 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_cpp conftest.$ac_ext"
1828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1829 *) ac_try_echo
=$ac_try;;
1831 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835 if test -s conftest.err
; then
1836 grep -v '^ *+' conftest.err
>conftest.er1
1837 cat conftest.er1
>&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } >/dev
/null
&& {
1842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.
$ac_ext >&5
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1857 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1858 # -------------------------------------------------------
1859 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1860 # the include files in INCLUDES and setting the cache variable VAR
1862 ac_fn_c_check_header_mongrel
()
1864 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1865 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1869 $as_echo_n "(cached) " >&6
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1875 # Is the header compilable?
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1877 $as_echo_n "checking $2 usability... " >&6; }
1878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1883 if ac_fn_c_try_compile
"$LINENO"; then :
1884 ac_header_compiler
=yes
1886 ac_header_compiler
=no
1888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1890 $as_echo "$ac_header_compiler" >&6; }
1892 # Is the header present?
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1894 $as_echo_n "checking $2 presence... " >&6; }
1895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1899 if ac_fn_c_try_cpp
"$LINENO"; then :
1900 ac_header_preproc
=yes
1902 ac_header_preproc
=no
1904 rm -f conftest.err conftest.
$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1906 $as_echo "$ac_header_preproc" >&6; }
1908 # So? What about this header?
1909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1912 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1914 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1918 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1920 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1922 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1924 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1926 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1932 $as_echo_n "(cached) " >&6
1934 eval "$3=\$ac_header_compiler"
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1942 } # ac_fn_c_check_header_mongrel
1944 # ac_fn_c_try_run LINENO
1945 # ----------------------
1946 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1947 # that executables *can* be run.
1950 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1951 if { { ac_try
="$ac_link"
1953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_link") 2>&5
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1962 { { case "(($ac_try" in
1963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1964 *) ac_try_echo
=$ac_try;;
1966 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_try") 2>&5
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; }; }; then :
1974 $as_echo "$as_me: program exited with status $ac_status" >&5
1975 $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.
$ac_ext >&5
1978 ac_retval
=$ac_status
1980 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1986 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1987 # -------------------------------------------------------
1988 # Tests whether HEADER exists and can be compiled using the include files in
1989 # INCLUDES, setting the cache variable VAR accordingly.
1990 ac_fn_c_check_header_compile
()
1992 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1996 $as_echo_n "(cached) " >&6
1998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2003 if ac_fn_c_try_compile
"$LINENO"; then :
2008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2015 } # ac_fn_c_check_header_compile
2017 # ac_fn_c_try_link LINENO
2018 # -----------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded.
2022 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2023 rm -f conftest.
$ac_objext conftest
$ac_exeext
2024 if { { ac_try
="$ac_link"
2026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>conftest.err
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_c_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest$ac_exeext && {
2043 test "$cross_compiling" = yes ||
2044 $as_test_x conftest$ac_exeext
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2053 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055 # interfere with the next link command; also delete a directory that is
2056 # left behind by Apple's compiler. We do this before executing the actions.
2057 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2061 } # ac_fn_c_try_link
2063 # ac_fn_c_check_func LINENO FUNC VAR
2064 # ----------------------------------
2065 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2066 ac_fn_c_check_func ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070 $as_echo_n "checking for $2... " >&6; }
2071 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2072 $as_echo_n "(cached) " >&6
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2076 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2078 #define $2 innocuous_$2
2080 /* System header to define __stub macros and hopefully few prototypes,
2081 which can conflict with char $2 (); below.
2082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2083 <limits.h> exists even on freestanding compilers. */
2086 # include <limits.h>
2088 # include <assert.h>
2093 /* Override any GCC internal prototype to avoid an error.
2094 Use char because int might match the return type of a GCC
2095 builtin and then its argument prototype would still apply. */
2100 /* The GNU C library defines this for functions which it implements
2101 to always fail with ENOSYS. Some functions are actually named
2102 something starting with __ and the normal name is an alias. */
2103 #if defined __stub_$2 || defined __stub___$2
2115 if ac_fn_c_try_link "$LINENO"; then :
2120 rm -f core conftest.err conftest.$ac_objext \
2121 conftest$ac_exeext conftest.$ac_ext
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2128 } # ac_fn_c_check_func
2130 # ac_fn_c_check_decl LINENO SYMBOL VAR
2131 # ------------------------------------
2132 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2133 ac_fn_c_check_decl ()
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2137 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2139 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2140 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2141 $as_echo_n "(cached) " >&6
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2149 #ifndef $as_decl_name
2151 (void) $as_decl_use;
2153 (void) $as_decl_name;
2161 if ac_fn_c_try_compile "$LINENO"; then :
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173 } # ac_fn_c_check_decl
2175 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2176 # --------------------------------------------
2177 # Tries to find the compile-time value of EXPR in a program that includes
2178 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2180 ac_fn_c_compute_int ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 if test "$cross_compiling" = yes; then
2184 # Depending upon the size, compute the lo and hi bounds.
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2191 static int test_array [1 - 2 * !(($2) >= 0)];
2198 if ac_fn_c_try_compile "$LINENO"; then :
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2207 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215 ac_hi=$ac_mid; break
2217 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2218 if test $ac_lo -le $ac_mid; then
2222 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2233 static int test_array [1 - 2 * !(($2) < 0)];
2240 if ac_fn_c_try_compile "$LINENO"; then :
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257 ac_lo=$ac_mid; break
2259 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2260 if test $ac_mid -le $ac_hi; then
2264 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 # Binary search between lo and hi bounds.
2275 while test "x$ac_lo" != "x$ac_hi"; do
2276 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2283 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2290 if ac_fn_c_try_compile "$LINENO"; then :
2293 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2305 static long int longval () { return $2; }
2306 static unsigned long int ulongval () { return $2; }
2313 FILE *f = fopen ("conftest.val", "w");
2318 long int i = longval ();
2321 fprintf (f, "%ld", i);
2325 unsigned long int i = ulongval ();
2328 fprintf (f, "%lu", i);
2330 /* Do not output a trailing newline, as this causes \r\n confusion
2331 on some platforms. */
2332 return ferror (f) || fclose (f) != 0;
2338 if ac_fn_c_try_run "$LINENO"; then :
2339 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2344 conftest.$ac_objext conftest.beam conftest.$ac_ext
2348 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2351 } # ac_fn_c_compute_int
2353 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2354 # ----------------------------------------------------
2355 # Tries to find if the field MEMBER exists in type AGGR, after including
2356 # INCLUDES, setting cache variable VAR accordingly.
2357 ac_fn_c_check_member ()
2359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2361 $as_echo_n "checking for $2.$3... " >&6; }
2362 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2363 $as_echo_n "(cached) " >&6
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2378 if ac_fn_c_try_compile "$LINENO"; then :
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2388 if (sizeof ac_aggr.$3)
2394 if ac_fn_c_try_compile "$LINENO"; then :
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2406 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2408 } # ac_fn_c_check_member
2410 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2411 # -------------------------------------------
2412 # Tests whether TYPE exists after having included INCLUDES, setting cache
2413 # variable VAR accordingly.
2414 ac_fn_c_check_type ()
2416 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2418 $as_echo_n "checking for $2... " >&6; }
2419 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2420 $as_echo_n "(cached) " >&6
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h. */
2435 if ac_fn_c_try_compile "$LINENO"; then :
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2448 if ac_fn_c_try_compile "$LINENO"; then :
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462 } # ac_fn_c_check_type
2463 cat >config.log <<_ACEOF
2464 This file contains any messages produced by compilers while
2465 running configure, to aid debugging if configure makes a mistake.
2467 It was created by $as_me, which was
2468 generated by GNU Autoconf 2.64. Invocation command line was
2480 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2481 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2482 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2483 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2484 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2486 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2487 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2489 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2490 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2491 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2492 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2493 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2494 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2495 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 test -z "$as_dir" && as_dir=.
2504 $as_echo "PATH: $as_dir"
2520 # Keep a trace of the command line.
2521 # Strip out --no-create and --no-recursion so they do not pile up.
2522 # Strip out --silent because we don't want to record it for future runs.
2523 # Also quote any args containing shell meta-characters.
2524 # Make two passes to allow for proper duplicate-argument suppression.
2528 ac_must_keep_next=false
2534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2536 | -silent | --silent | --silen | --sile | --sil)
2539 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2542 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2544 as_fn_append ac_configure_args1 " '$ac_arg'"
2545 if test $ac_must_keep_next = true; then
2546 ac_must_keep_next=false # Got value, back to normal.
2549 *=* | --config-cache | -C | -disable-* | --disable-* \
2550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2552 | -with-* | --with-* | -without-* | --without-* | --x)
2553 case "$ac_configure_args0 " in
2554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2557 -* ) ac_must_keep_next=true ;;
2560 as_fn_append ac_configure_args " '$ac_arg'"
2565 { ac_configure_args0=; unset ac_configure_args0;}
2566 { ac_configure_args1=; unset ac_configure_args1;}
2568 # When interrupted or exit'd, cleanup temporary files, and complete
2569 # config.log. We remove comments because anyway the quotes in there
2570 # would cause problems or look ugly.
2571 # WARNING: Use '\'' to represent an apostrophe within the trap.
2572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2573 trap 'exit_status=$?
2574 # Save into config.log some information that might help in debugging.
2579 ## ---------------- ##
2580 ## Cache variables. ##
2581 ## ---------------- ##
2584 # The following way of writing the cache mishandles newlines in values,
2586 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2587 eval ac_val=\$$ac_var
2591 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2592 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2595 _ | IFS | as_nl) ;; #(
2596 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2597 *) { eval $ac_var=; unset $ac_var;} ;;
2602 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2603 *${as_nl}ac_space=\ *)
2605 "s/'\''/'\''\\\\'\'''\''/g;
2606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2617 ## ----------------- ##
2618 ## Output variables. ##
2619 ## ----------------- ##
2622 for ac_var in $ac_subst_vars
2624 eval ac_val=\$$ac_var
2626 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2628 $as_echo "$ac_var='\''$ac_val'\''"
2632 if test -n "$ac_subst_files"; then
2634 ## ------------------- ##
2635 ## File substitutions. ##
2636 ## ------------------- ##
2639 for ac_var in $ac_subst_files
2641 eval ac_val=\$$ac_var
2643 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2645 $as_echo "$ac_var='\''$ac_val'\''"
2650 if test -s confdefs.h; then
2660 test "$ac_signal" != 0 &&
2661 $as_echo "$as_me: caught signal $ac_signal"
2662 $as_echo "$as_me: exit $exit_status"
2664 rm -f core *.core core.conftest.* &&
2665 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2668 for ac_signal in 1 2 13 15; do
2669 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2673 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2674 rm -f -r conftest* confdefs.h
2676 $as_echo "/* confdefs.h */" > confdefs.h
2678 # Predefined preprocessor variables.
2680 cat >>confdefs.h <<_ACEOF
2681 #define PACKAGE_NAME "$PACKAGE_NAME"
2684 cat >>confdefs.h <<_ACEOF
2685 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2688 cat >>confdefs.h <<_ACEOF
2689 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2692 cat >>confdefs.h <<_ACEOF
2693 #define PACKAGE_STRING "$PACKAGE_STRING"
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE_URL "$PACKAGE_URL"
2705 # Let the site file select an alternate cache file if it wants to.
2706 # Prefer an explicitly selected file to automatically selected ones.
2709 if test -n "$CONFIG_SITE"; then
2710 ac_site_file1=$CONFIG_SITE
2711 elif test "x$prefix" != xNONE; then
2712 ac_site_file1=$prefix/share/config.site
2713 ac_site_file2=$prefix/etc/config.site
2715 ac_site_file1=$ac_default_prefix/share/config.site
2716 ac_site_file2=$ac_default_prefix/etc/config.site
2718 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2720 test "x$ac_site_file" = xNONE && continue
2721 if test -r "$ac_site_file"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2723 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2724 sed 's/^/| /' "$ac_site_file" >&5
2729 if test -r "$cache_file"; then
2730 # Some versions of bash will fail to source /dev/null (special
2731 # files actually), so we avoid doing that.
2732 if test -f "$cache_file"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2734 $as_echo "$as_me: loading cache $cache_file" >&6;}
2736 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2737 *) . "./$cache_file";;
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2742 $as_echo "$as_me: creating cache $cache_file" >&6;}
2746 gl_header_list="$gl_header_list sys/mman.h"
2747 gl_func_list="$gl_func_list mprotect"
2748 gl_func_list="$gl_func_list memchr"
2749 gl_header_list="$gl_header_list stddef.h"
2750 gl_header_list="$gl_header_list stdint.h"
2751 gl_header_list="$gl_header_list wchar.h"
2752 gl_header_list="$gl_header_list string.h"
2753 # Check that the precious variables saved in the cache have kept the same
2755 ac_cache_corrupted=false
2756 for ac_var in $ac_precious_vars; do
2757 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2758 eval ac_new_set=\$ac_env_${ac_var}_set
2759 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2760 eval ac_new_val=\$ac_env_${ac_var}_value
2761 case $ac_old_set,$ac_new_set in
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2764 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2765 ac_cache_corrupted=: ;;
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2768 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2769 ac_cache_corrupted=: ;;
2772 if test "x$ac_old_val" != "x$ac_new_val"; then
2773 # differences in whitespace do not lead to failure.
2774 ac_old_val_w=`echo x
$ac_old_val`
2775 ac_new_val_w=`echo x
$ac_new_val`
2776 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2778 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2779 ac_cache_corrupted=:
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2782 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2783 eval $ac_var=\$ac_old_val
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2786 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2788 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2791 # Pass precious variables to config.status.
2792 if test "$ac_new_set" = set; then
2794 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2795 *) ac_arg=$ac_var=$ac_new_val ;;
2797 case " $ac_configure_args " in
2798 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2799 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2803 if $ac_cache_corrupted; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2807 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2808 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2810 ## -------------------- ##
2811 ## Main body of script. ##
2812 ## -------------------- ##
2815 ac_cpp='$CPP $CPPFLAGS'
2816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2824 ac_config_headers="$ac_config_headers config.h:config.in"
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2828 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2829 # Check whether --enable-maintainer-mode was given.
2830 if test "${enable_maintainer_mode+set}" = set; then :
2831 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2833 USE_MAINTAINER_MODE=no
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2837 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2838 if test $USE_MAINTAINER_MODE = yes; then
2839 MAINTAINER_MODE_TRUE=
2840 MAINTAINER_MODE_FALSE='#'
2842 MAINTAINER_MODE_TRUE='#'
2843 MAINTAINER_MODE_FALSE=
2846 MAINT=$MAINTAINER_MODE_TRUE
2851 ac_cpp='$CPP $CPPFLAGS'
2852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2855 if test -n "$ac_tool_prefix"; then
2856 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2857 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if test "${ac_cv_prog_CC+set}" = set; then :
2861 $as_echo_n "(cached) " >&6
2863 if test -n "$CC"; then
2864 ac_cv_prog_CC="$CC" # Let the user override the test.
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 if test -n "$CC"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2886 $as_echo "$CC" >&6; }
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2894 if test -z "$ac_cv_prog_CC"; then
2896 # Extract the first word of "gcc", so it can be a program name with args.
2897 set dummy gcc; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2901 $as_echo_n "(cached) " >&6
2903 if test -n "$ac_ct_CC"; then
2904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_ac_ct_CC="gcc"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2924 if test -n "$ac_ct_CC"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2926 $as_echo "$ac_ct_CC" >&6; }
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2932 if test "x$ac_ct_CC" = x; then
2935 case $cross_compiling:$ac_tool_warned in
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2939 ac_tool_warned=yes ;;
2947 if test -z "$CC"; then
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}cc; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then :
2954 $as_echo_n "(cached) " >&6
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC="${ac_tool_prefix}cc"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 if test -n "$CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2988 if test -z "$CC"; then
2989 # Extract the first word of "cc", so it can be a program name with args.
2990 set dummy cc; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_CC+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3008 ac_prog_rejected=yes
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 if test $ac_prog_rejected = yes; then
3020 # We found a bogon in the path, so make sure we never use it.
3021 set dummy $ac_cv_prog_CC
3023 if test $# != 0; then
3024 # We chose a different compiler from the bogus one.
3025 # However, it has the same basename, so the bogon will be chosen
3026 # first if we set CC to just the basename; use the full file name.
3028 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3034 if test -n "$CC"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3036 $as_echo "$CC" >&6; }
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3044 if test -z "$CC"; then
3045 if test -n "$ac_tool_prefix"; then
3046 for ac_prog in cl.exe
3048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if test "${ac_cv_prog_CC+set}" = set; then :
3053 $as_echo_n "(cached) " >&6
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 if test -n "$CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3085 test -n "$CC" && break
3088 if test -z "$CC"; then
3090 for ac_prog in cl.exe
3092 # Extract the first word of "$ac_prog", so it can be a program name with args.
3093 set dummy $ac_prog; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3097 $as_echo_n "(cached) " >&6
3099 if test -n "$ac_ct_CC"; then
3100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 ac_cv_prog_ac_ct_CC="$ac_prog"
3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3120 if test -n "$ac_ct_CC"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3122 $as_echo "$ac_ct_CC" >&6; }
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3129 test -n "$ac_ct_CC" && break
3132 if test "x$ac_ct_CC" = x; then
3135 case $cross_compiling:$ac_tool_warned in
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3139 ac_tool_warned=yes ;;
3148 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 as_fn_error "no acceptable C compiler found
in \
$PATH
3151 See \
`config.log' for more details." "$LINENO" 5; }
3153 # Provide some information about the compiler.
3154 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3157 for ac_option in --version -v -V -qversion; do
3158 { { ac_try="$ac_compiler $ac_option >&5"
3160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3161 *) ac_try_echo
=$ac_try;;
3163 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3167 if test -s conftest.err
; then
3169 ... rest of stderr output deleted ...
3170 10q' conftest.err
>conftest.er1
3171 cat conftest.er1
>&5
3172 rm -f conftest.er1 conftest.err
3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175 test $ac_status = 0; }
3178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3189 ac_clean_files_save
=$ac_clean_files
3190 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3191 # Try to create an executable without -o first, disregard a.out.
3192 # It will help us diagnose broken compilers, and finding out an intuition
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3195 $as_echo_n "checking for C compiler default output file name... " >&6; }
3196 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3198 # The possible output files:
3199 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3202 for ac_file
in $ac_files
3205 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3206 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3211 if { { ac_try
="$ac_link_default"
3213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_link_default") 2>&5
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }; then :
3222 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3223 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3224 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3225 # so that the user can short-circuit this test for compilers unknown to
3227 for ac_file in $ac_files ''
3229 test -f "$ac_file" || continue
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3234 # We found the default executable, but exeext='' is most
3238 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3240 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3242 # We set ac_cv_exeext here because the later test for it is not
3243 # safe: cross compilers may not add the suffix if given an `-o'
3244 # argument, so we may need to know it at that point already.
3245 # Even if this section looks crufty: it has the advantage of
3252 test "$ac_cv_exeext" = no && ac_cv_exeext=
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3258 $as_echo "$ac_file" >&6; }
3259 if test -z "$ac_file"; then :
3260 $as_echo "$as_me: failed program was:" >&5
3261 sed 's
/^
/|
/' conftest.$ac_ext >&5
3263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3265 { as_fn_set_status 77
3266 as_fn_error "C compiler cannot create executables
3267 See \`config.log
' for more details." "$LINENO" 5; }; }
3269 ac_exeext=$ac_cv_exeext
3271 # Check that the compiler produces executables we can run. If not, either
3272 # the compiler is broken, or we cross compile.
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3274 $as_echo_n "checking whether the C compiler works... " >&6; }
3275 # If not cross compiling, check that we can run a simple program.
3276 if test "$cross_compiling" != yes; then
3277 if { ac_try='.
/$ac_file'
3278 { { case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_try") 2>&5
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; }; then
3290 if test "$cross_compiling" = maybe; then
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3295 as_fn_error "cannot run C compiled programs.
3296 If you meant to cross compile, use \`--host'.
3297 See \`config.log' for more details.
" "$LINENO" 5; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3302 $as_echo "yes" >&6; }
3304 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3305 ac_clean_files=$ac_clean_files_save
3306 # Check that the compiler produces executables we can run. If not, either
3307 # the compiler is broken, or we cross compile.
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3309 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3311 $as_echo "$cross_compiling" >&6; }
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3314 $as_echo_n "checking
for suffix of executables...
" >&6; }
3315 if { { ac_try="$ac_link"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link") 2>&5
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3327 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3328 # work properly (i.e., refer to `conftest.exe'), while it won't with
3330 for ac_file in conftest.exe conftest conftest.*; do
3331 test -f "$ac_file" || continue
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error "cannot compute suffix of executables: cannot compile and link
3343 See \`config.log' for more details.
" "$LINENO" 5; }
3345 rm -f conftest$ac_cv_exeext
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3347 $as_echo "$ac_cv_exeext" >&6; }
3349 rm -f conftest.$ac_ext
3350 EXEEXT=$ac_cv_exeext
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3353 $as_echo_n "checking
for suffix of object files...
" >&6; }
3354 if test "${ac_cv_objext+set}" = set; then :
3355 $as_echo_n "(cached
) " >&6
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3368 rm -f conftest.o conftest.obj
3369 if { { ac_try="$ac_compile"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 $as_echo "$ac_try_echo"; } >&5
3376 (eval "$ac_compile") 2>&5
3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3379 test $ac_status = 0; }; then :
3380 for ac_file in conftest.o conftest.obj conftest.*; do
3381 test -f "$ac_file" || continue;
3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3384 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3389 $as_echo "$as_me: failed program was
:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error "cannot compute suffix of object files: cannot compile
3395 See \`config.log' for more details.
" "$LINENO" 5; }
3397 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3400 $as_echo "$ac_cv_objext" >&6; }
3401 OBJEXT=$ac_cv_objext
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3404 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3405 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3406 $as_echo_n "(cached
) " >&6
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3422 if ac_fn_c_try_compile "$LINENO"; then :
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3432 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3433 if test $ac_compiler_gnu = yes; then
3438 ac_test_CFLAGS=${CFLAGS+set}
3439 ac_save_CFLAGS=$CFLAGS
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3441 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3442 if test "${ac_cv_prog_cc_g+set}" = set; then :
3443 $as_echo_n "(cached
) " >&6
3445 ac_save_c_werror_flag=$ac_c_werror_flag
3446 ac_c_werror_flag=yes
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3460 if ac_fn_c_try_compile "$LINENO"; then :
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3475 if ac_fn_c_try_compile "$LINENO"; then :
3478 ac_c_werror_flag=$ac_save_c_werror_flag
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3491 if ac_fn_c_try_compile "$LINENO"; then :
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_c_werror_flag=$ac_save_c_werror_flag
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3502 $as_echo "$ac_cv_prog_cc_g" >&6; }
3503 if test "$ac_test_CFLAGS" = set; then
3504 CFLAGS=$ac_save_CFLAGS
3505 elif test $ac_cv_prog_cc_g = yes; then
3506 if test "$GCC" = yes; then
3512 if test "$GCC" = yes; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3519 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3520 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3521 $as_echo_n "(cached
) " >&6
3523 ac_cv_prog_cc_c89=no
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3529 #include <sys/types.h>
3530 #include <sys/stat.h>
3531 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3532 struct buf { int x; };
3533 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3534 static char *e (p, i)
3540 static char *f (char * (*g) (char **, int), char **p, ...)
3545 s = g (p, va_arg (v,int));
3550 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3551 function prototypes and stuff, but not '\xHH' hex character constants.
3552 These don't provoke an error unfortunately, instead are silently treated
3553 as 'x'. The following induces an error, until -std is added to get
3554 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3555 array size at least. It's necessary to write '\x00'==0 to get something
3556 that's true only with -std. */
3557 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3559 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3560 inside strings and character constants. */
3562 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3564 int test (int i, double x);
3565 struct s1 {int (*f) (int a);};
3566 struct s2 {int (*f) (double a);};
3567 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3573 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3578 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3579 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3581 CC="$ac_save_CC $ac_arg"
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583 ac_cv_prog_cc_c89=$ac_arg
3585 rm -f core conftest.err conftest.$ac_objext
3586 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3588 rm -f conftest.$ac_ext
3593 case "x
$ac_cv_prog_cc_c89" in
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3596 $as_echo "none needed
" >&6; } ;;
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3599 $as_echo "unsupported
" >&6; } ;;
3601 CC="$CC $ac_cv_prog_cc_c89"
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3603 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3605 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
3617 for ac_t in install-sh install.sh shtool; do
3618 if test -f "$ac_dir/$ac_t"; then
3620 ac_install_sh="$ac_aux_dir/$ac_t -c"
3625 if test -z "$ac_aux_dir"; then
3626 as_fn_error "cannot
find install-sh
, install.sh
, or shtool
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" "$LINENO" 5
3629 # These three variables are undocumented and unsupported,
3630 # and are intended to be withdrawn in a future Autoconf release.
3631 # They can cause serious problems if a builder's source tree is in a directory
3632 # whose full name contains unusual characters.
3633 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
3634 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
3635 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
3638 # Make sure we can run config.sub.
3639 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
3640 as_fn_error "cannot run
$SHELL $ac_aux_dir/config.sub
" "$LINENO" 5
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system
type" >&5
3643 $as_echo_n "checking build system
type...
" >&6; }
3644 if test "${ac_cv_build+set}" = set; then :
3645 $as_echo_n "(cached
) " >&6
3647 ac_build_alias=$build_alias
3648 test "x
$ac_build_alias" = x &&
3649 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
3650 test "x
$ac_build_alias" = x &&
3651 as_fn_error "cannot guess build
type; you must specify one
" "$LINENO" 5
3652 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
3653 as_fn_error "$SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" "$LINENO" 5
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_build" >&5
3657 $as_echo "$ac_cv_build" >&6; }
3658 case $ac_cv_build in
3660 *) as_fn_error "invalid value of canonical build
" "$LINENO" 5;;
3663 ac_save_IFS=$IFS; IFS='-'
3669 # Remember, the first character of IFS is used to create $*,
3670 # except with old shells:
3673 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
host system
type" >&5
3677 $as_echo_n "checking
host system
type...
" >&6; }
3678 if test "${ac_cv_host+set}" = set; then :
3679 $as_echo_n "(cached
) " >&6
3681 if test "x
$host_alias" = x; then
3682 ac_cv_host=$ac_cv_build
3684 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
3685 as_fn_error "$SHELL $ac_aux_dir/config.sub
$host_alias failed
" "$LINENO" 5
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_host" >&5
3690 $as_echo "$ac_cv_host" >&6; }
3693 *) as_fn_error "invalid value of canonical
host" "$LINENO" 5;;
3696 ac_save_IFS=$IFS; IFS='-'
3702 # Remember, the first character of IFS is used to create $*,
3703 # except with old shells:
3706 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3716 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3717 # On Suns, sometimes $CPP names a directory.
3718 if test -n "$CPP" && test -d "$CPP"; then
3721 if test -z "$CPP"; then
3722 if test "${ac_cv_prog_CPP+set}" = set; then :
3723 $as_echo_n "(cached
) " >&6
3725 # Double quotes because CPP needs to be expanded
3726 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3729 for ac_c_preproc_warn_flag in '' yes
3731 # Use a header file that comes with gcc, so configuring glibc
3732 # with a fresh cross-compiler works.
3733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3734 # <limits.h> exists even on freestanding compilers.
3735 # On the NeXT, cc -E runs the code through the compiler's parser,
3736 # not just through cpp. "Syntax error
" is here to catch this case.
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3740 # include <limits.h>
3742 # include <assert.h>
3746 if ac_fn_c_try_cpp "$LINENO"; then :
3749 # Broken: fails on valid input.
3752 rm -f conftest.err conftest.$ac_ext
3754 # OK, works on sane cases. Now check whether nonexistent headers
3755 # can be detected and how.
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758 #include <ac_nonexistent.h>
3760 if ac_fn_c_try_cpp "$LINENO"; then :
3761 # Broken: success on invalid input.
3764 # Passes both tests.
3768 rm -f conftest.err conftest.$ac_ext
3771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3772 rm -f conftest.err conftest.$ac_ext
3773 if $ac_preproc_ok; then :
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3786 $as_echo "$CPP" >&6; }
3788 for ac_c_preproc_warn_flag in '' yes
3790 # Use a header file that comes with gcc, so configuring glibc
3791 # with a fresh cross-compiler works.
3792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3793 # <limits.h> exists even on freestanding compilers.
3794 # On the NeXT, cc -E runs the code through the compiler's parser,
3795 # not just through cpp. "Syntax error
" is here to catch this case.
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3799 # include <limits.h>
3801 # include <assert.h>
3805 if ac_fn_c_try_cpp "$LINENO"; then :
3808 # Broken: fails on valid input.
3811 rm -f conftest.err conftest.$ac_ext
3813 # OK, works on sane cases. Now check whether nonexistent headers
3814 # can be detected and how.
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817 #include <ac_nonexistent.h>
3819 if ac_fn_c_try_cpp "$LINENO"; then :
3820 # Broken: success on invalid input.
3823 # Passes both tests.
3827 rm -f conftest.err conftest.$ac_ext
3830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3831 rm -f conftest.err conftest.$ac_ext
3832 if $ac_preproc_ok; then :
3835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3838 See \`config.log' for more details.
" "$LINENO" 5; }
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3849 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3850 if test "${ac_cv_path_GREP+set}" = set; then :
3851 $as_echo_n "(cached
) " >&6
3853 if test -z "$GREP"; then
3854 ac_path_GREP_found=false
3855 # Loop through the user's path and test for each of PROGNAME-LIST
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3860 test -z "$as_dir" && as_dir=.
3861 for ac_prog in grep ggrep; do
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3864 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3865 # Check for GNU ac_path_GREP and select it if it is found.
3866 # Check for GNU $ac_path_GREP
3867 case `"$ac_path_GREP" --version 2>&1` in
3869 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3872 $as_echo_n 0123456789 >"conftest.
in"
3875 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3876 mv "conftest.tmp
" "conftest.
in"
3877 cp "conftest.
in" "conftest.
nl"
3878 $as_echo 'GREP' >> "conftest.
nl"
3879 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3880 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3881 as_fn_arith $ac_count + 1 && ac_count=$as_val
3882 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3883 # Best one so far, save it but keep looking for a better one
3884 ac_cv_path_GREP="$ac_path_GREP"
3885 ac_path_GREP_max=$ac_count
3887 # 10*(2^10) chars as input seems more than enough
3888 test $ac_count -gt 10 && break
3890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3893 $ac_path_GREP_found && break 3
3898 if test -z "$ac_cv_path_GREP"; then
3899 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3902 ac_cv_path_GREP=$GREP
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3907 $as_echo "$ac_cv_path_GREP" >&6; }
3908 GREP="$ac_cv_path_GREP"
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3912 $as_echo_n "checking
for egrep...
" >&6; }
3913 if test "${ac_cv_path_EGREP+set}" = set; then :
3914 $as_echo_n "(cached
) " >&6
3916 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3917 then ac_cv_path_EGREP="$GREP -E"
3919 if test -z "$EGREP"; then
3920 ac_path_EGREP_found=false
3921 # Loop through the user's path and test for each of PROGNAME-LIST
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3926 test -z "$as_dir" && as_dir=.
3927 for ac_prog in egrep; do
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3930 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3931 # Check for GNU ac_path_EGREP and select it if it is found.
3932 # Check for GNU $ac_path_EGREP
3933 case `"$ac_path_EGREP" --version 2>&1` in
3935 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3938 $as_echo_n 0123456789 >"conftest.
in"
3941 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3942 mv "conftest.tmp
" "conftest.
in"
3943 cp "conftest.
in" "conftest.
nl"
3944 $as_echo 'EGREP' >> "conftest.
nl"
3945 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3946 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3947 as_fn_arith $ac_count + 1 && ac_count=$as_val
3948 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3949 # Best one so far, save it but keep looking for a better one
3950 ac_cv_path_EGREP="$ac_path_EGREP"
3951 ac_path_EGREP_max=$ac_count
3953 # 10*(2^10) chars as input seems more than enough
3954 test $ac_count -gt 10 && break
3956 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959 $ac_path_EGREP_found && break 3
3964 if test -z "$ac_cv_path_EGREP"; then
3965 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3968 ac_cv_path_EGREP=$EGREP
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3974 $as_echo "$ac_cv_path_EGREP" >&6; }
3975 EGREP="$ac_cv_path_EGREP"
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3979 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3980 if test "${ac_cv_header_stdc+set}" = set; then :
3981 $as_echo_n "(cached
) " >&6
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3998 if ac_fn_c_try_compile "$LINENO"; then :
3999 ac_cv_header_stdc=yes
4001 ac_cv_header_stdc=no
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 if test $ac_cv_header_stdc = yes; then
4006 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4012 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4013 $EGREP "memchr
" >/dev/null 2>&1; then :
4016 ac_cv_header_stdc=no
4022 if test $ac_cv_header_stdc = yes; then
4023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4029 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4030 $EGREP "free
" >/dev/null 2>&1; then :
4033 ac_cv_header_stdc=no
4039 if test $ac_cv_header_stdc = yes; then
4040 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4041 if test "$cross_compiling" = yes; then :
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4048 #if ((' ' & 0x0FF) == 0x020)
4049 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4050 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4052 # define ISLOWER(c) \
4053 (('a' <= (c) && (c) <= 'i') \
4054 || ('j' <= (c) && (c) <= 'r') \
4055 || ('s' <= (c) && (c) <= 'z'))
4056 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4059 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4064 for (i = 0; i < 256; i++)
4065 if (XOR (islower (i), ISLOWER (i))
4066 || toupper (i) != TOUPPER (i))
4071 if ac_fn_c_try_run "$LINENO"; then :
4074 ac_cv_header_stdc=no
4076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4077 conftest.$ac_objext conftest.beam conftest.$ac_ext
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
4083 $as_echo "$ac_cv_header_stdc" >&6; }
4084 if test $ac_cv_header_stdc = yes; then
4086 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4090 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4091 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4092 inttypes.h stdint.h unistd.h
4094 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4095 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4097 eval as_val
=\$
$as_ac_Header
4098 if test "x$as_val" = x
""yes; then :
4099 cat >>confdefs.h
<<_ACEOF
4100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4111 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4112 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4119 if test "$MINIX" = yes; then
4121 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4124 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4127 $as_echo "#define _MINIX 1" >>confdefs.h
4134 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4141 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4142 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
4145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4148 # define __EXTENSIONS__ 1
4149 $ac_includes_default
4158 if ac_fn_c_try_compile
"$LINENO"; then :
4159 ac_cv_safe_to_define___extensions__
=yes
4161 ac_cv_safe_to_define___extensions__
=no
4163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4166 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4167 test $ac_cv_safe_to_define___extensions__ = yes &&
4168 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4170 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4172 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4174 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4176 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4179 if test -n "$ac_tool_prefix"; then
4180 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4181 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4187 if test -n "$RANLIB"; then
4188 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir
=.
4195 for ac_exec_ext
in '' $ac_executable_extensions; do
4196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 RANLIB
=$ac_cv_prog_RANLIB
4208 if test -n "$RANLIB"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4210 $as_echo "$RANLIB" >&6; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4218 if test -z "$ac_cv_prog_RANLIB"; then
4219 ac_ct_RANLIB
=$RANLIB
4220 # Extract the first word of "ranlib", so it can be a program name with args.
4221 set dummy ranlib
; ac_word
=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
4227 if test -n "$ac_ct_RANLIB"; then
4228 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4234 test -z "$as_dir" && as_dir
=.
4235 for ac_exec_ext
in '' $ac_executable_extensions; do
4236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4237 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4248 if test -n "$ac_ct_RANLIB"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4250 $as_echo "$ac_ct_RANLIB" >&6; }
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4256 if test "x$ac_ct_RANLIB" = x
; then
4259 case $cross_compiling:$ac_tool_warned in
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4263 ac_tool_warned
=yes ;;
4265 RANLIB
=$ac_ct_RANLIB
4268 RANLIB
="$ac_cv_prog_RANLIB"
4279 # Code from module arg-nonnull:
4280 # Code from module c++defs:
4281 # Code from module extensions:
4283 # Code from module include_next:
4284 # Code from module memchr:
4285 # Code from module memmem:
4286 # Code from module memmem-simple:
4287 # Code from module multiarch:
4288 # Code from module stddef:
4289 # Code from module stdint:
4290 # Code from module string:
4291 # Code from module warn-on-use:
4292 # Code from module wchar:
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4295 $as_echo_n "checking target system type... " >&6; }
4296 if test "${ac_cv_target+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4299 if test "x$target_alias" = x
; then
4300 ac_cv_target
=$ac_cv_host
4302 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4303 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4308 $as_echo "$ac_cv_target" >&6; }
4309 case $ac_cv_target in
4311 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4313 target
=$ac_cv_target
4314 ac_save_IFS
=$IFS; IFS
='-'
4320 # Remember, the first character of IFS is used to create $*,
4321 # except with old shells:
4324 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4327 # The aliases save the names the user supplied, while $host etc.
4328 # will get canonicalized.
4329 test -n "$target_alias" &&
4330 test "$program_prefix$program_suffix$program_transform_name" = \
4332 program_prefix
=${target_alias}-
4334 # The tests for host and target for $enable_largefile require
4339 # As the $enable_largefile decision depends on --enable-plugins we must set it
4340 # even in directories otherwise not depending on the $plugins option.
4343 # Check whether --enable-plugins was given.
4344 if test "${enable_plugins+set}" = set; then :
4345 enableval
=$enable_plugins; case "${enableval}" in
4346 yes |
"") plugins
=yes ;;
4357 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4358 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4359 # are mutually exclusive; and without procfs support, the bfd/ elf module
4360 # cannot provide certain routines such as elfcore_write_prpsinfo
4361 # or elfcore_write_prstatus. So unless the user explicitly requested
4362 # large-file support through the --enable-largefile switch, disable
4363 # large-file support in favor of procfs support.
4364 test "${target}" = "${host}" -a "x$plugins" = xno \
4365 && : ${enable_largefile="no"}
4369 # Check whether --enable-largefile was given.
4370 if test "${enable_largefile+set}" = set; then :
4371 enableval
=$enable_largefile;
4374 if test "$enable_largefile" != no
; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4377 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4378 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4381 ac_cv_sys_largefile_CC
=no
4382 if test "$GCC" != yes; then
4385 # IRIX 6.2 and later do not support large files by default,
4386 # so use the C compiler's -n32 option if that helps.
4387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 #include <sys/types.h>
4390 /* Check that off_t can represent 2**63 - 1 correctly.
4391 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4392 since some C++ compilers masquerading as C compilers
4393 incorrectly reject 9223372036854775807. */
4394 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4395 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4396 && LARGE_OFF_T % 2147483647 == 1)
4406 if ac_fn_c_try_compile
"$LINENO"; then :
4409 rm -f core conftest.err conftest.
$ac_objext
4411 if ac_fn_c_try_compile
"$LINENO"; then :
4412 ac_cv_sys_largefile_CC
=' -n32'; break
4414 rm -f core conftest.err conftest.
$ac_objext
4418 rm -f conftest.
$ac_ext
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4422 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4423 if test "$ac_cv_sys_largefile_CC" != no
; then
4424 CC
=$CC$ac_cv_sys_largefile_CC
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4428 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4429 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4430 $as_echo_n "(cached) " >&6
4433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4435 #include <sys/types.h>
4436 /* Check that off_t can represent 2**63 - 1 correctly.
4437 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4438 since some C++ compilers masquerading as C compilers
4439 incorrectly reject 9223372036854775807. */
4440 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4441 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4442 && LARGE_OFF_T % 2147483647 == 1)
4452 if ac_fn_c_try_compile
"$LINENO"; then :
4453 ac_cv_sys_file_offset_bits
=no
; break
4455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458 #define _FILE_OFFSET_BITS 64
4459 #include <sys/types.h>
4460 /* Check that off_t can represent 2**63 - 1 correctly.
4461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4462 since some C++ compilers masquerading as C compilers
4463 incorrectly reject 9223372036854775807. */
4464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4466 && LARGE_OFF_T % 2147483647 == 1)
4476 if ac_fn_c_try_compile
"$LINENO"; then :
4477 ac_cv_sys_file_offset_bits
=64; break
4479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4480 ac_cv_sys_file_offset_bits
=unknown
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4485 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4486 case $ac_cv_sys_file_offset_bits in #(
4489 cat >>confdefs.h
<<_ACEOF
4490 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4495 if test $ac_cv_sys_file_offset_bits = unknown
; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4497 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4498 if test "${ac_cv_sys_large_files+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4504 #include <sys/types.h>
4505 /* Check that off_t can represent 2**63 - 1 correctly.
4506 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4507 since some C++ compilers masquerading as C compilers
4508 incorrectly reject 9223372036854775807. */
4509 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4511 && LARGE_OFF_T % 2147483647 == 1)
4521 if ac_fn_c_try_compile
"$LINENO"; then :
4522 ac_cv_sys_large_files
=no
; break
4524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527 #define _LARGE_FILES 1
4528 #include <sys/types.h>
4529 /* Check that off_t can represent 2**63 - 1 correctly.
4530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4531 since some C++ compilers masquerading as C compilers
4532 incorrectly reject 9223372036854775807. */
4533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4535 && LARGE_OFF_T % 2147483647 == 1)
4545 if ac_fn_c_try_compile
"$LINENO"; then :
4546 ac_cv_sys_large_files
=1; break
4548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4549 ac_cv_sys_large_files
=unknown
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4554 $as_echo "$ac_cv_sys_large_files" >&6; }
4555 case $ac_cv_sys_large_files in #(
4558 cat >>confdefs.h
<<_ACEOF
4559 #define _LARGE_FILES $ac_cv_sys_large_files
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4572 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4573 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4576 am_cv_prog_cc_stdc
=no
4578 # Don't try gcc -ansi; that turns off useful extensions and
4579 # breaks some systems' header files.
4580 # AIX -qlanglvl=ansi
4581 # Ultrix and OSF/1 -std1
4582 # HP-UX 10.20 and later -Ae
4583 # HP-UX older versions -Aa -D_HPUX_SOURCE
4584 # SVR4 -Xc -D__EXTENSIONS__
4585 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4587 CC
="$ac_save_CC $ac_arg"
4588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4592 #include <sys/types.h>
4593 #include <sys/stat.h>
4594 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4595 struct buf { int x; };
4596 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4597 static char *e (p, i)
4603 static char *f (char * (*g) (char **, int), char **p, ...)
4608 s = g (p, va_arg (v,int));
4612 int test (int i, double x);
4613 struct s1 {int (*f) (int a);};
4614 struct s2 {int (*f) (double a);};
4615 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4623 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4629 if ac_fn_c_try_compile
"$LINENO"; then :
4630 am_cv_prog_cc_stdc
="$ac_arg"; break
4632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4638 if test -z "$am_cv_prog_cc_stdc"; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4640 $as_echo "none needed" >&6; }
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4643 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4645 case "x$am_cv_prog_cc_stdc" in
4647 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4652 for ac_dir
in ..
"$srcdir"/..
; do
4653 for ac_t
in install-sh
install.sh shtool
; do
4654 if test -f "$ac_dir/$ac_t"; then
4656 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4661 if test -z "$ac_aux_dir"; then
4662 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4665 # These three variables are undocumented and unsupported,
4666 # and are intended to be withdrawn in a future Autoconf release.
4667 # They can cause serious problems if a builder's source tree is in a directory
4668 # whose full name contains unusual characters.
4669 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4670 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4671 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4676 # Dependency checking.
4677 rm -rf .tst
2>/dev
/null
4678 mkdir .tst
2>/dev
/null
4679 if test -d .tst
; then
4684 rmdir .tst
2>/dev
/null
4686 DEPDIR
="${am__leading_dot}deps"
4688 ac_config_commands
="$ac_config_commands depdir"
4691 depcc
="$CC" am_compiler_list
=
4693 am_depcomp
=$ac_aux_dir/depcomp
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4695 $as_echo_n "checking dependency style of $depcc... " >&6; }
4696 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4699 if test -f "$am_depcomp"; then
4700 # We make a subdir and do the tests there. Otherwise we can end up
4701 # making bogus files that we don't know about and never remove. For
4702 # instance it was reported that on HP-UX the gcc test will end up
4703 # making a dummy file named `D' -- because `-MD' means `put the output
4706 # Copy depcomp to subdir because otherwise we won't find it if we're
4707 # using a relative directory.
4708 cp "$am_depcomp" conftest.dir
4710 # We will build objects and dependencies in a subdirectory because
4711 # it helps to detect inapplicable dependency modes. For instance
4712 # both Tru64's cc and ICC support -MD to output dependencies as a
4713 # side effect of compilation, but ICC will put the dependencies in
4714 # the current directory while Tru64 will put them in the object
4718 am_cv_CC_dependencies_compiler_type
=none
4719 if test "$am_compiler_list" = ""; then
4720 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4722 for depmode
in $am_compiler_list; do
4723 if test $depmode = none
; then break; fi
4725 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4726 # Setup a source with many dependencies, because some compilers
4727 # like to wrap large dependency lists on column 80 (with \), and
4728 # we should not choose a depcomp mode which is confused by this.
4730 # We need to recreate these files for each test, as the compiler may
4731 # overwrite some of them when testing with obscure command lines.
4732 # This happens at least with the AIX C compiler.
4734 for i
in 1 2 3 4 5 6; do
4735 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4736 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4737 # Solaris 8's {/usr,}/bin/sh.
4738 touch sub
/conftst
$i.h
4740 echo "include sub/conftest.Po" > confmf
4742 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4743 # mode. It turns out that the SunPro C++ compiler does not properly
4744 # handle `-M -o', and we need to detect this.
4745 depcmd
="depmode=$depmode \
4746 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4747 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4748 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4749 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4750 if env
$depcmd > conftest.err
2>&1 &&
4751 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4752 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4753 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4754 # icc doesn't choke on unknown options, it will just issue warnings
4755 # or remarks (even with -Werror). So we grep stderr for any message
4756 # that says an option was ignored or not supported.
4757 # When given -MP, icc 7.0 and 7.1 complain thusly:
4758 # icc: Command line warning: ignoring option '-M'; no argument required
4759 # The diagnosis changed in icc 8.0:
4760 # icc: Command line remark: option '-MP' not supported
4761 if (grep 'ignoring option' conftest.err ||
4762 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4763 am_cv_CC_dependencies_compiler_type
=$depmode
4764 $as_echo "$as_me:$LINENO: success" >&5
4768 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4769 sed -e 's/^/| /' < conftest.err
>&5
4775 am_cv_CC_dependencies_compiler_type
=none
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4780 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4781 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4782 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4783 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4788 # Check for the 'make' the user wants to use.
4791 # Extract the first word of "$ac_prog", so it can be a program name with args.
4792 set dummy
$ac_prog; ac_word
=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_MAKE+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4798 if test -n "$MAKE"; then
4799 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4805 test -z "$as_dir" && as_dir
=.
4806 for ac_exec_ext
in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_MAKE
="$ac_prog"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 MAKE
=$ac_cv_prog_MAKE
4819 if test -n "$MAKE"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4821 $as_echo "$MAKE" >&6; }
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4828 test -n "$MAKE" && break
4832 case "`$MAKE --version 2>&1 | sed 1q`" in
4837 if test "$MAKE_IS_GNU" = yes; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4846 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4848 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4849 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4850 $as_echo_n "(cached) " >&6
4852 cat >conftest.
make <<\_ACEOF
4855 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4858 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4860 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4862 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4866 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4868 $as_echo "yes" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4873 SET_MAKE
="MAKE=${MAKE-make}"
4888 # If we haven't got the data from the intl directory,
4889 # assume NLS is disabled.
4898 if test -f ..
/intl
/config.intl
; then
4899 . ..
/intl
/config.intl
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4902 $as_echo_n "checking whether NLS is requested... " >&6; }
4903 if test x
"$USE_NLS" != xyes
; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4908 $as_echo "yes" >&6; }
4910 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4914 $as_echo_n "checking for catalogs to be installed... " >&6; }
4915 # Look for .po and .gmo files in the source directory.
4918 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4919 # If there aren't any .gmo files the shell will give us the
4920 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4922 case "$cat" in *\
**)
4925 # The quadruple backslash is collapsed to a double backslash
4926 # by the backticks, then collapsed again by the double quotes,
4927 # leaving us with one backslash in the sed expression (right
4928 # before the dot that mustn't act as a wildcard).
4929 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4930 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4931 # The user is allowed to set LINGUAS to a list of languages to
4932 # install catalogs for. If it's empty that means "all of them."
4933 if test "x$LINGUAS" = x
; then
4934 CATALOGS
="$CATALOGS $cat"
4935 XLINGUAS
="$XLINGUAS $lang"
4937 case "$LINGUAS" in *$lang*)
4938 CATALOGS
="$CATALOGS $cat"
4939 XLINGUAS
="$XLINGUAS $lang"
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4946 $as_echo "$LINGUAS" >&6; }
4959 localedir
='${datadir}/locale'
4962 if test x
"$USE_NLS" = xyes
; then
4963 CONFIG_ALL
="$CONFIG_ALL all-po"
4964 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4965 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4966 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4973 LIBC_FATAL_STDERR_
=1
4974 export LIBC_FATAL_STDERR_
4980 for ac_header
in $gl_header_list
4982 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4984 eval as_val
=\$
$as_ac_Header
4985 if test "x$as_val" = x
""yes; then :
4986 cat >>confdefs.h
<<_ACEOF
4987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5002 for ac_func
in $gl_func_list
5004 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5005 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5006 eval as_val
=\$
$as_ac_var
5007 if test "x$as_val" = x
""yes; then :
5008 cat >>confdefs.h
<<_ACEOF
5009 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5035 GNULIB_STRCASESTR
=0;
5042 GNULIB_MBSCASECMP
=0;
5043 GNULIB_MBSNCASECMP
=0;
5044 GNULIB_MBSPCASECMP
=0;
5045 GNULIB_MBSCASESTR
=0;
5053 GNULIB_STRVERSCMP
=0;
5058 HAVE_DECL_MEMRCHR
=1;
5064 HAVE_DECL_STRNDUP
=1;
5065 HAVE_DECL_STRNLEN
=1;
5069 HAVE_DECL_STRTOK_R
=1;
5070 HAVE_DECL_STRSIGNAL
=1;
5077 REPLACE_STRCASESTR
=0;
5082 REPLACE_STRSIGNAL
=0;
5084 UNDEFINE_STRTOK_R
=0;
5098 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5099 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5100 # irrelevant for anonymous mappings.
5101 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
5102 if test "x$ac_cv_func_mmap" = x
""yes; then :
5109 # Try to allow MAP_ANONYMOUS.
5110 gl_have_mmap_anonymous
=no
5111 if test $gl_have_mmap = yes; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5113 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5117 #include <sys/mman.h>
5118 #ifdef MAP_ANONYMOUS
5119 I cant identify this map.
5123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5124 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5125 gl_have_mmap_anonymous
=yes
5129 if test $gl_have_mmap_anonymous != yes; then
5130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5133 #include <sys/mman.h>
5135 I cant identify this map.
5139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5140 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5142 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5144 gl_have_mmap_anonymous
=yes
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5150 $as_echo "$gl_have_mmap_anonymous" >&6; }
5151 if test $gl_have_mmap_anonymous = yes; then
5153 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5181 if test $ac_cv_func_memchr = yes; then
5182 # Detect platform-specific bugs in some versions of glibc:
5183 # memchr should not dereference anything with length 0
5184 # http://bugzilla.redhat.com/499689
5185 # memchr should not dereference overestimated length after a match
5186 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5187 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5188 # Assume that memchr works on platforms that lack mprotect.
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5190 $as_echo_n "checking whether memchr works... " >&6; }
5191 if test "${gl_cv_func_memchr_works+set}" = set; then :
5192 $as_echo_n "(cached) " >&6
5194 if test "$cross_compiling" = yes; then :
5195 gl_cv_func_memchr_works
="guessing no"
5197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5203 # include <unistd.h>
5204 # include <sys/types.h>
5205 # include <sys/mman.h>
5216 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5217 # if HAVE_MAP_ANONYMOUS
5218 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5220 # else /* !HAVE_MAP_ANONYMOUS */
5221 const int flags = MAP_FILE | MAP_PRIVATE;
5222 int fd = open ("/dev/zero", O_RDONLY, 0666);
5226 int pagesize = getpagesize ();
5228 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5230 if (two_pages != (char *)(-1)
5231 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5232 fence = two_pages + pagesize;
5237 if (memchr (fence, 0, 0))
5239 strcpy (fence - 9, "12345678");
5240 if (memchr (fence - 9, 0, 79) != fence - 1)
5249 if ac_fn_c_try_run
"$LINENO"; then :
5250 gl_cv_func_memchr_works
=yes
5252 gl_cv_func_memchr_works
=no
5254 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5255 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5260 $as_echo "$gl_cv_func_memchr_works" >&6; }
5261 if test "$gl_cv_func_memchr_works" != yes; then
5267 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
5276 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
5279 for ac_header
in bp-sym.h
5281 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5282 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
5283 cat >>confdefs.h
<<_ACEOF
5284 #define HAVE_BP_SYM_H 1
5295 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5296 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
5302 cat >>confdefs.h
<<_ACEOF
5303 #define HAVE_DECL_MEMMEM $ac_have_decl
5319 for ac_func
in memmem
5321 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
5322 if test "x$ac_cv_func_memmem" = x
""yes; then :
5323 cat >>confdefs.h
<<_ACEOF
5324 #define HAVE_MEMMEM 1
5329 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5342 if test $ac_cv_have_decl_memmem = no
; then
5348 gl_cv_c_multiarch
=no
5349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 #ifndef __APPLE_CC__
5352 not a universal capable compiler
5357 if ac_fn_c_try_compile
"$LINENO"; then :
5361 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5362 if test -n "$prev"; then
5364 i?
86 | x86_64 | ppc | ppc64
)
5365 if test -z "$arch" ||
test "$arch" = "$word"; then
5368 gl_cv_c_multiarch
=yes
5374 if test "x$word" = "x-arch"; then
5381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5382 if test $gl_cv_c_multiarch = yes; then
5384 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5386 APPLE_UNIVERSAL_BUILD
=1
5388 APPLE_UNIVERSAL_BUILD
=0
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5399 $as_echo_n "checking for wchar_t... " >&6; }
5400 if test "${gt_cv_c_wchar_t+set}" = set; then :
5401 $as_echo_n "(cached) " >&6
5403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5406 wchar_t foo = (wchar_t)'\0';
5415 if ac_fn_c_try_compile
"$LINENO"; then :
5420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5423 $as_echo "$gt_cv_c_wchar_t" >&6; }
5424 if test $gt_cv_c_wchar_t = yes; then
5426 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5433 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5434 if test "${gl_cv_have_include_next+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5437 rm -rf conftestd1a conftestd1b conftestd2
5438 mkdir conftestd1a conftestd1b conftestd2
5439 cat <<EOF > conftestd1a/conftest.h
5440 #define DEFINED_IN_CONFTESTD1
5441 #include_next <conftest.h>
5442 #ifdef DEFINED_IN_CONFTESTD2
5445 #error "include_next doesn't work"
5448 cat <<EOF > conftestd1b/conftest.h
5449 #define DEFINED_IN_CONFTESTD1
5451 #include_next <conftest.h>
5452 #ifdef DEFINED_IN_CONFTESTD2
5455 #error "include_next doesn't work"
5458 cat <<EOF > conftestd2/conftest.h
5459 #ifndef DEFINED_IN_CONFTESTD1
5460 #error "include_next test doesn't work"
5462 #define DEFINED_IN_CONFTESTD2
5464 gl_save_CPPFLAGS
="$CPPFLAGS"
5465 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #include <conftest.h>
5470 if ac_fn_c_try_compile
"$LINENO"; then :
5471 gl_cv_have_include_next
=yes
5473 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5476 #include <conftest.h>
5478 if ac_fn_c_try_compile
"$LINENO"; then :
5479 gl_cv_have_include_next
=buggy
5481 gl_cv_have_include_next
=no
5483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5487 CPPFLAGS
="$gl_save_CPPFLAGS"
5488 rm -rf conftestd1a conftestd1b conftestd2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5492 $as_echo "$gl_cv_have_include_next" >&6; }
5493 PRAGMA_SYSTEM_HEADER
=
5494 if test $gl_cv_have_include_next = yes; then
5495 INCLUDE_NEXT
=include_next
5496 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5497 if test -n "$GCC"; then
5498 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
5501 if test $gl_cv_have_include_next = buggy
; then
5502 INCLUDE_NEXT
=include
5503 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5505 INCLUDE_NEXT
=include
5506 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5520 $as_echo_n "checking for long long int... " >&6; }
5521 if test "${ac_cv_type_long_long_int+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5527 /* For now, do not test the preprocessor; as of 2007 there are too many
5528 implementations with broken preprocessors. Perhaps this can
5529 be revisited in 2012. In the meantime, code should not expect
5530 #if to work with literals wider than 32 bits. */
5531 /* Test literals. */
5532 long long int ll = 9223372036854775807ll;
5533 long long int nll = -9223372036854775807LL;
5534 unsigned long long int ull = 18446744073709551615ULL;
5535 /* Test constant expressions. */
5536 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5538 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5544 /* Test availability of runtime routines for shift and division. */
5545 long long int llmax = 9223372036854775807ll;
5546 unsigned long long int ullmax = 18446744073709551615ull;
5547 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5548 | (llmax / ll) | (llmax % ll)
5549 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5550 | (ullmax / ull) | (ullmax % ull));
5556 if ac_fn_c_try_link
"$LINENO"; then :
5557 if test "$cross_compiling" = yes; then :
5558 ac_cv_type_long_long_int
=yes
5560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5565 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5566 # define LLONG_MAX (HALF - 1 + HALF)
5571 long long int n = 1;
5575 long long int m = n << i;
5578 if (LLONG_MAX / 2 < m)
5586 if ac_fn_c_try_run
"$LINENO"; then :
5587 ac_cv_type_long_long_int
=yes
5589 ac_cv_type_long_long_int
=no
5591 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5592 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5596 ac_cv_type_long_long_int
=no
5598 rm -f core conftest.err conftest.
$ac_objext \
5599 conftest
$ac_exeext conftest.
$ac_ext
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5602 $as_echo "$ac_cv_type_long_long_int" >&6; }
5603 if test $ac_cv_type_long_long_int = yes; then
5605 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5611 $as_echo_n "checking for unsigned long long int... " >&6; }
5612 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5618 /* For now, do not test the preprocessor; as of 2007 there are too many
5619 implementations with broken preprocessors. Perhaps this can
5620 be revisited in 2012. In the meantime, code should not expect
5621 #if to work with literals wider than 32 bits. */
5622 /* Test literals. */
5623 long long int ll = 9223372036854775807ll;
5624 long long int nll = -9223372036854775807LL;
5625 unsigned long long int ull = 18446744073709551615ULL;
5626 /* Test constant expressions. */
5627 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5629 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5635 /* Test availability of runtime routines for shift and division. */
5636 long long int llmax = 9223372036854775807ll;
5637 unsigned long long int ullmax = 18446744073709551615ull;
5638 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5639 | (llmax / ll) | (llmax % ll)
5640 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5641 | (ullmax / ull) | (ullmax % ull));
5647 if ac_fn_c_try_link
"$LINENO"; then :
5648 ac_cv_type_unsigned_long_long_int
=yes
5650 ac_cv_type_unsigned_long_long_int
=no
5652 rm -f core conftest.err conftest.
$ac_objext \
5653 conftest
$ac_exeext conftest.
$ac_ext
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5656 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5657 if test $ac_cv_type_unsigned_long_long_int = yes; then
5659 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5674 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5675 if test "${ac_cv_c_restrict+set}" = set; then :
5676 $as_echo_n "(cached) " >&6
5679 # The order here caters to the fact that C++ does not require restrict.
5680 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
5681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683 typedef int * int_ptr;
5684 int foo (int_ptr $ac_kw ip) {
5698 if ac_fn_c_try_compile
"$LINENO"; then :
5699 ac_cv_c_restrict
=$ac_kw
5701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5702 test "$ac_cv_c_restrict" != no
&& break
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5707 $as_echo "$ac_cv_c_restrict" >&6; }
5709 case $ac_cv_c_restrict in
5711 no
) $as_echo "#define restrict /**/" >>confdefs.h
5713 *) cat >>confdefs.h
<<_ACEOF
5714 #define restrict $ac_cv_c_restrict
5739 if test $gl_cv_have_include_next = yes; then
5740 gl_cv_next_string_h
='<'string.h
'>'
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5743 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5744 if test "${gl_cv_next_string_h+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5748 if test $ac_cv_header_string_h = yes; then
5749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5755 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
5756 *) gl_absname_cpp
="$ac_cpp" ;;
5758 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5759 sed -n '\#/string.h#{
5760 s#.*"\(.*/string.h\)".*#\1#
5766 gl_cv_next_string_h
='<'string.h
'>'
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5771 $as_echo "$gl_cv_next_string_h" >&6; }
5773 NEXT_STRING_H
=$gl_cv_next_string_h
5775 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
5776 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5777 gl_next_as_first_directive
='<'string.h
'>'
5779 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5780 gl_next_as_first_directive
=$gl_cv_next_string_h
5782 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
5788 for gl_func
in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp
; do
5789 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5791 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5792 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5793 $as_echo_n "(cached) " >&6
5795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5808 if ac_fn_c_try_compile
"$LINENO"; then :
5809 eval "$as_gl_Symbol=yes"
5811 eval "$as_gl_Symbol=no"
5813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5815 eval ac_res
=\$
$as_gl_Symbol
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5817 $as_echo "$ac_res" >&6; }
5818 eval as_val
=\$
$as_gl_Symbol
5819 if test "x$as_val" = x
""yes; then :
5820 cat >>confdefs.h
<<_ACEOF
5821 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5824 eval ac_cv_have_decl_
$gl_func=yes
5836 GNULIB_MBSNRTOWCS
=0;
5839 GNULIB_WCSNRTOMBS
=0;
5851 HAVE_DECL_WCWIDTH
=1;
5852 REPLACE_MBSTATE_T
=0;
5858 REPLACE_MBSRTOWCS
=0;
5859 REPLACE_MBSNRTOWCS
=0;
5861 REPLACE_WCSRTOMBS
=0;
5862 REPLACE_WCSNRTOMBS
=0;
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5867 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5868 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5869 $as_echo_n "(cached) " >&6
5871 gl_cv_header_wchar_h_correct_inline
=yes
5872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5875 #define wcstod renamed_wcstod
5877 extern int zero (void);
5878 int main () { return zero(); }
5881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5882 (eval $ac_compile) 2>&5
5884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5885 test $ac_status = 0; }; then
5886 mv conftest.
$ac_objext conftest1.
$ac_objext
5887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5890 #define wcstod renamed_wcstod
5892 int zero (void) { return 0; }
5895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5896 (eval $ac_compile) 2>&5
5898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5899 test $ac_status = 0; }; then
5900 mv conftest.
$ac_objext conftest2.
$ac_objext
5901 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
5904 gl_cv_header_wchar_h_correct_inline
=no
5908 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5912 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5913 if test $gl_cv_header_wchar_h_correct_inline = no
; then
5914 as_fn_error
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5915 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5916 C99 mode. You have four options:
5917 - Add the flag -fgnu89-inline to CC and reconfigure, or
5918 - Fix your include files, using parts of
5919 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5920 - Use a gcc version older than 4.3, or
5921 - Don't use the flags -std=c99 or -std=gnu99.
5922 Configuration aborted." "$LINENO" 5
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5927 $as_echo_n "checking for wint_t... " >&6; }
5928 if test "${gt_cv_c_wint_t+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5934 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5936 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5937 before <wchar.h>. */
5942 wint_t foo = (wchar_t)'\0';
5951 if ac_fn_c_try_compile
"$LINENO"; then :
5956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5959 $as_echo "$gt_cv_c_wint_t" >&6; }
5960 if test $gt_cv_c_wint_t = yes; then
5962 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5968 GL_COND_LIBTOOL_TRUE
=
5969 GL_COND_LIBTOOL_FALSE
='#'
5971 GL_COND_LIBTOOL_TRUE
='#'
5972 GL_COND_LIBTOOL_FALSE
=
5975 gl_cond_libtool
=false
5978 gl_m4_base
='gnulib/m4'
5988 gl_source_base
='gnulib'
5989 # Code from module arg-nonnull:
5990 # Code from module c++defs:
5991 # Code from module extensions:
5992 # Code from module include_next:
5993 # Code from module memchr:
6002 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
6006 # Code from module memmem:
6009 if test $ac_cv_have_decl_memmem = yes; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6011 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6012 if test "${gl_cv_func_memmem_works+set}" = set; then :
6013 $as_echo_n "(cached) " >&6
6015 if test "$cross_compiling" = yes; then :
6016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6019 #include <features.h>
6020 #ifdef __GNU_LIBRARY__
6021 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6026 #include <cygwin/version.h>
6027 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6034 $EGREP "Lucky user" >/dev
/null
2>&1; then :
6035 gl_cv_func_memmem_works
=yes
6037 gl_cv_func_memmem_works
="guessing no"
6043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6046 #include <signal.h> /* for signal */
6047 #include <string.h> /* for memmem */
6048 #include <stdlib.h> /* for malloc */
6049 #include <unistd.h> /* for alarm */
6055 char *haystack = (char *) malloc (2 * m + 1);
6056 char *needle = (char *) malloc (m + 1);
6058 /* Failure to compile this test due to missing alarm is okay,
6059 since all such platforms (mingw) also lack memmem. */
6060 signal (SIGALRM, SIG_DFL);
6062 /* Check for quadratic performance. */
6063 if (haystack && needle)
6065 memset (haystack, 'A', 2 * m);
6066 haystack[2 * m] = 'B';
6067 memset (needle, 'A', m);
6069 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6071 /* Check for empty needle behavior. */
6072 return !result || !memmem ("a", 1, 0, 0);
6077 if ac_fn_c_try_run
"$LINENO"; then :
6078 gl_cv_func_memmem_works
=yes
6080 gl_cv_func_memmem_works
=no
6082 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6083 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6089 $as_echo "$gl_cv_func_memmem_works" >&6; }
6090 if test "$gl_cv_func_memmem_works" != yes; then
6100 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
6105 # Code from module memmem-simple:
6118 for ac_func
in memmem
6120 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
6121 if test "x$ac_cv_func_memmem" = x
""yes; then :
6122 cat >>confdefs.h
<<_ACEOF
6123 #define HAVE_MEMMEM 1
6128 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
6141 if test $ac_cv_have_decl_memmem = no
; then
6153 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6157 # Code from module multiarch:
6159 # Code from module stddef:
6163 if test $gt_cv_c_wchar_t = no
; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6168 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6169 if test "${gl_cv_decl_null_works+set}" = set; then :
6170 $as_echo_n "(cached) " >&6
6172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6175 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6185 if ac_fn_c_try_compile
"$LINENO"; then :
6186 gl_cv_decl_null_works
=yes
6188 gl_cv_decl_null_works
=no
6190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6193 $as_echo "$gl_cv_decl_null_works" >&6; }
6194 if test $gl_cv_decl_null_works = no
; then
6198 if test -n "$STDDEF_H"; then
6211 if test $gl_cv_have_include_next = yes; then
6212 gl_cv_next_stddef_h
='<'stddef.h
'>'
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6215 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6216 if test "${gl_cv_next_stddef_h+set}" = set; then :
6217 $as_echo_n "(cached) " >&6
6220 if test $ac_cv_header_stddef_h = yes; then
6221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6227 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6228 *) gl_absname_cpp
="$ac_cpp" ;;
6230 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6231 sed -n '\#/stddef.h#{
6232 s#.*"\(.*/stddef.h\)".*#\1#
6238 gl_cv_next_stddef_h
='<'stddef.h
'>'
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6243 $as_echo "$gl_cv_next_stddef_h" >&6; }
6245 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
6247 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6249 gl_next_as_first_directive
='<'stddef.h
'>'
6251 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6252 gl_next_as_first_directive
=$gl_cv_next_stddef_h
6254 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
6260 # Code from module stdint:
6264 if test $ac_cv_type_long_long_int = yes; then
6265 HAVE_LONG_LONG_INT
=1
6267 HAVE_LONG_LONG_INT
=0
6271 if test $ac_cv_type_unsigned_long_long_int = yes; then
6272 HAVE_UNSIGNED_LONG_LONG_INT
=1
6274 HAVE_UNSIGNED_LONG_LONG_INT
=0
6278 if test $ac_cv_header_inttypes_h = yes; then
6285 if test $ac_cv_header_sys_types_h = yes; then
6304 if test $gl_cv_have_include_next = yes; then
6305 gl_cv_next_stdint_h
='<'stdint.h
'>'
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6308 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6309 if test "${gl_cv_next_stdint_h+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6313 if test $ac_cv_header_stdint_h = yes; then
6314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6320 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6321 *) gl_absname_cpp
="$ac_cpp" ;;
6323 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6324 sed -n '\#/stdint.h#{
6325 s#.*"\(.*/stdint.h\)".*#\1#
6331 gl_cv_next_stdint_h
='<'stdint.h
'>'
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6336 $as_echo "$gl_cv_next_stdint_h" >&6; }
6338 NEXT_STDINT_H
=$gl_cv_next_stdint_h
6340 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6341 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6342 gl_next_as_first_directive
='<'stdint.h
'>'
6344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6345 gl_next_as_first_directive
=$gl_cv_next_stdint_h
6347 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
6351 if test $ac_cv_header_stdint_h = yes; then
6358 if test $ac_cv_header_stdint_h = yes; then
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6360 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6361 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6364 gl_cv_header_working_stdint_h
=no
6365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6369 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6370 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6371 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6373 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6374 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6375 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6379 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6380 included before <wchar.h>. */
6391 int8_t a1 = INT8_MAX;
6392 int8_t a1min = INT8_MIN;
6395 int16_t a2 = INT16_MAX;
6396 int16_t a2min = INT16_MIN;
6399 int32_t a3 = INT32_MAX;
6400 int32_t a3min = INT32_MIN;
6403 int64_t a4 = INT64_MAX;
6404 int64_t a4min = INT64_MIN;
6407 uint8_t b1 = UINT8_MAX;
6409 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6412 uint16_t b2 = UINT16_MAX;
6415 uint32_t b3 = UINT32_MAX;
6418 uint64_t b4 = UINT64_MAX;
6420 int_least8_t c1 = INT8_C (0x7f);
6421 int_least8_t c1max = INT_LEAST8_MAX;
6422 int_least8_t c1min = INT_LEAST8_MIN;
6423 int_least16_t c2 = INT16_C (0x7fff);
6424 int_least16_t c2max = INT_LEAST16_MAX;
6425 int_least16_t c2min = INT_LEAST16_MIN;
6426 int_least32_t c3 = INT32_C (0x7fffffff);
6427 int_least32_t c3max = INT_LEAST32_MAX;
6428 int_least32_t c3min = INT_LEAST32_MIN;
6429 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6430 int_least64_t c4max = INT_LEAST64_MAX;
6431 int_least64_t c4min = INT_LEAST64_MIN;
6432 uint_least8_t d1 = UINT8_C (0xff);
6433 uint_least8_t d1max = UINT_LEAST8_MAX;
6434 uint_least16_t d2 = UINT16_C (0xffff);
6435 uint_least16_t d2max = UINT_LEAST16_MAX;
6436 uint_least32_t d3 = UINT32_C (0xffffffff);
6437 uint_least32_t d3max = UINT_LEAST32_MAX;
6438 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6439 uint_least64_t d4max = UINT_LEAST64_MAX;
6440 int_fast8_t e1 = INT_FAST8_MAX;
6441 int_fast8_t e1min = INT_FAST8_MIN;
6442 int_fast16_t e2 = INT_FAST16_MAX;
6443 int_fast16_t e2min = INT_FAST16_MIN;
6444 int_fast32_t e3 = INT_FAST32_MAX;
6445 int_fast32_t e3min = INT_FAST32_MIN;
6446 int_fast64_t e4 = INT_FAST64_MAX;
6447 int_fast64_t e4min = INT_FAST64_MIN;
6448 uint_fast8_t f1 = UINT_FAST8_MAX;
6449 uint_fast16_t f2 = UINT_FAST16_MAX;
6450 uint_fast32_t f3 = UINT_FAST32_MAX;
6451 uint_fast64_t f4 = UINT_FAST64_MAX;
6453 intptr_t g = INTPTR_MAX;
6454 intptr_t gmin = INTPTR_MIN;
6457 uintptr_t h = UINTPTR_MAX;
6459 intmax_t i = INTMAX_MAX;
6460 uintmax_t j = UINTMAX_MAX;
6462 #include <limits.h> /* for CHAR_BIT */
6463 #define TYPE_MINIMUM(t) \
6464 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6465 #define TYPE_MAXIMUM(t) \
6466 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6469 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6470 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6472 /* Detect bug in FreeBSD 6.0 / ia64. */
6473 int check_SIG_ATOMIC:
6474 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6475 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6477 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6479 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6480 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6482 /* Detect bug in mingw. */
6484 WINT_MIN == TYPE_MINIMUM (wint_t)
6485 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6488 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6490 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6492 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6494 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6496 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6499 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6502 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6505 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6507 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6508 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6509 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6510 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6511 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6512 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6513 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6514 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6515 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6516 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6517 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6528 if ac_fn_c_try_compile
"$LINENO"; then :
6529 if test "$cross_compiling" = yes; then :
6530 gl_cv_header_working_stdint_h
=yes
6533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6537 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6538 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6539 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6543 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6544 included before <wchar.h>. */
6556 #define MVAL(macro) MVAL1(macro)
6557 #define MVAL1(expression) #expression
6558 static const char *macro_values[] =
6592 for (mv = macro_values; *mv != NULL; mv++)
6594 const char *value = *mv;
6595 /* Test whether it looks like a cast expression. */
6596 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6597 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6598 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6599 || strncmp (value, "((int)"/*)*/, 6) == 0
6600 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6601 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6610 if ac_fn_c_try_run
"$LINENO"; then :
6611 gl_cv_header_working_stdint_h
=yes
6613 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6614 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6623 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6625 if test "$gl_cv_header_working_stdint_h" = yes; then
6628 for ac_header
in sys
/inttypes.h sys
/bitypes.h
6630 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6631 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6632 eval as_val
=\$
$as_ac_Header
6633 if test "x$as_val" = x
""yes; then :
6634 cat >>confdefs.h
<<_ACEOF
6635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6642 if test $ac_cv_header_sys_inttypes_h = yes; then
6643 HAVE_SYS_INTTYPES_H
=1
6645 HAVE_SYS_INTTYPES_H
=0
6648 if test $ac_cv_header_sys_bitypes_h = yes; then
6649 HAVE_SYS_BITYPES_H
=1
6651 HAVE_SYS_BITYPES_H
=0
6665 if test $APPLE_UNIVERSAL_BUILD = 0; then
6668 for gltype
in ptrdiff_t size_t
; do
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6670 $as_echo_n "checking for bit size of $gltype... " >&6; }
6671 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6672 $as_echo_n "(cached) " >&6
6674 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6675 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6676 included before <wchar.h>. */
6685 #include <limits.h>"; then :
6691 eval gl_cv_bitsizeof_
${gltype}=\
$result
6694 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6696 $as_echo "$ac_res" >&6; }
6697 eval result
=\
$gl_cv_bitsizeof_${gltype}
6698 if test $result = unknown
; then
6701 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6702 cat >>confdefs.h
<<_ACEOF
6703 #define BITSIZEOF_${GLTYPE} $result
6706 eval BITSIZEOF_
${GLTYPE}=\
$result
6713 for gltype
in sig_atomic_t wchar_t wint_t
; do
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6715 $as_echo_n "checking for bit size of $gltype... " >&6; }
6716 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6717 $as_echo_n "(cached) " >&6
6719 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6720 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6721 included before <wchar.h>. */
6730 #include <limits.h>"; then :
6736 eval gl_cv_bitsizeof_
${gltype}=\
$result
6739 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6741 $as_echo "$ac_res" >&6; }
6742 eval result
=\
$gl_cv_bitsizeof_${gltype}
6743 if test $result = unknown
; then
6746 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6747 cat >>confdefs.h
<<_ACEOF
6748 #define BITSIZEOF_${GLTYPE} $result
6751 eval BITSIZEOF_
${GLTYPE}=\
$result
6757 for gltype
in sig_atomic_t wchar_t wint_t
; do
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6759 $as_echo_n "checking whether $gltype is signed... " >&6; }
6760 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6761 $as_echo_n "(cached) " >&6
6763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6766 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6767 included before <wchar.h>. */
6776 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6785 if ac_fn_c_try_compile
"$LINENO"; then :
6790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6791 eval gl_cv_type_
${gltype}_signed
=\
$result
6794 eval ac_res
=\
$gl_cv_type_${gltype}_signed
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6796 $as_echo "$ac_res" >&6; }
6797 eval result
=\
$gl_cv_type_${gltype}_signed
6798 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6799 if test "$result" = yes; then
6800 cat >>confdefs.h
<<_ACEOF
6801 #define HAVE_SIGNED_${GLTYPE} 1
6804 eval HAVE_SIGNED_
${GLTYPE}=1
6806 eval HAVE_SIGNED_
${GLTYPE}=0
6811 gl_cv_type_ptrdiff_t_signed
=yes
6812 gl_cv_type_size_t_signed
=no
6813 if test $APPLE_UNIVERSAL_BUILD = 0; then
6816 for gltype
in ptrdiff_t size_t
; do
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6818 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6819 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6820 $as_echo_n "(cached) " >&6
6822 eval gl_cv_type_
${gltype}_suffix
=no
6823 eval result
=\
$gl_cv_type_${gltype}_signed
6824 if test "$result" = yes; then
6829 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6832 l
) gltype1
='long int';;
6833 ll
) gltype1
='long long int';;
6834 i64
) gltype1
='__int64';;
6835 u
) gltype1
='unsigned int';;
6836 ul
) gltype1
='unsigned long int';;
6837 ull
) gltype1
='unsigned long long int';;
6838 ui64
)gltype1
='unsigned __int64';;
6840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6843 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6844 included before <wchar.h>. */
6854 extern $gltype1 foo;
6863 if ac_fn_c_try_compile
"$LINENO"; then :
6864 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6867 eval result
=\
$gl_cv_type_${gltype}_suffix
6868 test "$result" != no
&& break
6871 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6873 $as_echo "$ac_res" >&6; }
6874 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6875 eval result
=\
$gl_cv_type_${gltype}_suffix
6876 test "$result" = no
&& result
=
6877 eval ${GLTYPE}_SUFFIX
=\
$result
6878 cat >>confdefs.h
<<_ACEOF
6879 #define ${GLTYPE}_SUFFIX $result
6888 for gltype
in sig_atomic_t wchar_t wint_t
; do
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6890 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6891 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6892 $as_echo_n "(cached) " >&6
6894 eval gl_cv_type_
${gltype}_suffix
=no
6895 eval result
=\
$gl_cv_type_${gltype}_signed
6896 if test "$result" = yes; then
6901 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6904 l
) gltype1
='long int';;
6905 ll
) gltype1
='long long int';;
6906 i64
) gltype1
='__int64';;
6907 u
) gltype1
='unsigned int';;
6908 ul
) gltype1
='unsigned long int';;
6909 ull
) gltype1
='unsigned long long int';;
6910 ui64
)gltype1
='unsigned __int64';;
6912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6915 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6916 included before <wchar.h>. */
6926 extern $gltype1 foo;
6935 if ac_fn_c_try_compile
"$LINENO"; then :
6936 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6939 eval result
=\
$gl_cv_type_${gltype}_suffix
6940 test "$result" != no
&& break
6943 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6945 $as_echo "$ac_res" >&6; }
6946 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6947 eval result
=\
$gl_cv_type_${gltype}_suffix
6948 test "$result" = no
&& result
=
6949 eval ${GLTYPE}_SUFFIX
=\
$result
6950 cat >>confdefs.h
<<_ACEOF
6951 #define ${GLTYPE}_SUFFIX $result
6962 # Code from module string:
6966 # Code from module warn-on-use:
6967 # Code from module wchar:
6990 if test $gl_cv_have_include_next = yes; then
6991 gl_cv_next_wchar_h
='<'wchar.h
'>'
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6994 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6995 if test "${gl_cv_next_wchar_h+set}" = set; then :
6996 $as_echo_n "(cached) " >&6
6999 if test $ac_cv_header_wchar_h = yes; then
7000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7006 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7007 *) gl_absname_cpp
="$ac_cpp" ;;
7009 gl_cv_next_wchar_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7010 sed -n '\#/wchar.h#{
7011 s#.*"\(.*/wchar.h\)".*#\1#
7017 gl_cv_next_wchar_h
='<'wchar.h
'>'
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7022 $as_echo "$gl_cv_next_wchar_h" >&6; }
7024 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
7026 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7027 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7028 gl_next_as_first_directive
='<'wchar.h
'>'
7030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7031 gl_next_as_first_directive
=$gl_cv_next_wchar_h
7033 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
7037 if test $ac_cv_header_wchar_h = yes; then
7045 if test $gt_cv_c_wint_t = yes; then
7053 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth
; do
7054 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7056 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7057 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7058 $as_echo_n "(cached) " >&6
7060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7063 /* Some systems require additional headers. */
7065 # include <stddef.h>
7080 if ac_fn_c_try_compile
"$LINENO"; then :
7081 eval "$as_gl_Symbol=yes"
7083 eval "$as_gl_Symbol=no"
7085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7087 eval ac_res
=\$
$as_gl_Symbol
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7089 $as_echo "$ac_res" >&6; }
7090 eval as_val
=\$
$as_gl_Symbol
7091 if test "x$as_val" = x
""yes; then :
7092 cat >>confdefs.h
<<_ACEOF
7093 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7096 eval ac_cv_have_decl_
$gl_func=yes
7101 # Code from module dummy:
7102 # End of code from modules
7123 gl_source_base
='tests'
7124 gltests_WITNESS
=IN_
`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
7126 gl_module_indicator_condition
=$gltests_WITNESS
7136 LIBGNU_LIBDEPS
="$gl_libdeps"
7138 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
7142 # For Makefile dependencies.
7144 if test x
"$STDINT_H" != x
; then
7145 GNULIB_STDINT_H
=gnulib
/$STDINT_H
7151 cat >>confdefs.h
<<_ACEOF
7152 #define PACKAGE "$PACKAGE"
7157 # Do we have a single-tree copy of texinfo? Even if we do, we can't
7158 # rely on it - libiberty is built before texinfo.
7159 # Extract the first word of "makeinfo", so it can be a program name with args.
7160 set dummy makeinfo
; ac_word
=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7164 $as_echo_n "(cached) " >&6
7166 if test -n "$MAKEINFO"; then
7167 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir
=.
7174 for ac_exec_ext
in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_prog_MAKEINFO
="makeinfo"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 MAKEINFO
=$ac_cv_prog_MAKEINFO
7187 if test -n "$MAKEINFO"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7189 $as_echo "$MAKEINFO" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7196 if test "x$MAKEINFO" = "x"; then
7197 as_fn_error
"makeinfo is required for compilation" "$LINENO" 5
7200 */missing\ makeinfo
*)
7201 as_fn_error
"makeinfo is required for compilation" "$LINENO" 5
7207 # --split-size=5000000 may be already in $MAKEINFO from parent configure.
7208 # Re-running configure in gdb/ would lose it so ensure it stays present.
7209 MAKEINFOFLAGS
=${MAKEINFOFLAGS---split-size=5000000}
7212 MAKEINFO_EXTRA_FLAGS
=""
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
7214 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
7215 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
7216 $as_echo_n "(cached) " >&6
7218 echo '@clicksequence{a @click{} b}' >conftest.texinfo
7219 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
7220 gdb_cv_have_makeinfo_click
=yes
7222 gdb_cv_have_makeinfo_click
=no
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
7226 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
7227 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
7228 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
7232 # GDB does not use automake, but gnulib does. This line lets us
7233 # generate its Makefile.in.
7234 am__api_version
='1.11'
7236 # Find a good install program. We prefer a C program (faster),
7237 # so one script is as good as another. But avoid the broken or
7238 # incompatible versions:
7239 # SysV /etc/install, /usr/sbin/install
7240 # SunOS /usr/etc/install
7241 # IRIX /sbin/install
7243 # AmigaOS /C/install, which installs bootblocks on floppy discs
7244 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7245 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7246 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7247 # OS/2's system install, which has a completely different semantic
7248 # ./install, which can be erroneously created by make from ./install.sh.
7249 # Reject install programs that cannot install multiple files.
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7251 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7252 if test -z "$INSTALL"; then
7253 if test "${ac_cv_path_install+set}" = set; then :
7254 $as_echo_n "(cached) " >&6
7256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7260 test -z "$as_dir" && as_dir
=.
7261 # Account for people who put trailing slashes in PATH elements.
7262 case $as_dir/ in #((
7263 .
/ | .
// |
/[cC
]/* | \
7264 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7265 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7268 # OSF1 and SCO ODT 3.0 have their own names for install.
7269 # Don't use installbsd from OSF since it installs stuff as root
7271 for ac_prog
in ginstall scoinst
install; do
7272 for ac_exec_ext
in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7274 if test $ac_prog = install &&
7275 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7276 # AIX install. It has an incompatible calling convention.
7278 elif test $ac_prog = install &&
7279 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7280 # program-specific install script used by HP pwplus--don't use.
7283 rm -rf conftest.one conftest.two conftest.dir
7284 echo one
> conftest.one
7285 echo two
> conftest.two
7287 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7288 test -s conftest.one
&& test -s conftest.two
&&
7289 test -s conftest.dir
/conftest.one
&&
7290 test -s conftest.dir
/conftest.two
7292 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7305 rm -rf conftest.one conftest.two conftest.dir
7308 if test "${ac_cv_path_install+set}" = set; then
7309 INSTALL
=$ac_cv_path_install
7311 # As a last resort, use the slow shell script. Don't cache a
7312 # value for INSTALL within a source directory, because that will
7313 # break other packages using the cache if that directory is
7314 # removed, or if the value is a relative name.
7315 INSTALL
=$ac_install_sh
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7319 $as_echo "$INSTALL" >&6; }
7321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7322 # It thinks the first close brace ends the variable substitution.
7323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7327 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7330 $as_echo_n "checking whether build environment is sane... " >&6; }
7333 echo timestamp
> conftest.
file
7334 # Reject unsafe characters in $srcdir or the absolute working directory
7335 # name. Accept space and tab only in the latter.
7339 *[\\\"\
#\$\&\'\`$am_lf]*)
7340 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
7343 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
7344 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7347 # Do `set' in a subshell so we don't clobber the current shell's
7348 # arguments. Must try -L first in case configure is actually a
7349 # symlink; some systems play weird games with the mod time of symlinks
7350 # (eg FreeBSD returns the mod time of the symlink's containing
7353 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7354 if test "$*" = "X"; then
7356 set X
`ls -t "$srcdir/configure" conftest.file`
7359 if test "$*" != "X $srcdir/configure conftest.file" \
7360 && test "$*" != "X conftest.file $srcdir/configure"; then
7362 # If neither matched, then we have a broken ls. This can happen
7363 # if, for instance, CONFIG_SHELL is bash and it inherits a
7364 # broken ls alias from the environment. This has actually
7365 # happened. Such a system could not be considered "sane".
7366 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
7367 alias in your environment" "$LINENO" 5
7370 test "$2" = conftest.
file
7376 as_fn_error
"newly created file is older than distributed files!
7377 Check your system clock" "$LINENO" 5
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7380 $as_echo "yes" >&6; }
7381 test "$program_prefix" != NONE
&&
7382 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
7383 # Use a double $ so make ignores it.
7384 test "$program_suffix" != NONE
&&
7385 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
7386 # Double any \ or $.
7387 # By default was `s,x,x', remove it if useless.
7388 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
7389 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
7391 # expand $ac_aux_dir to an absolute path
7392 am_aux_dir
=`cd $ac_aux_dir && pwd`
7394 if test x
"${MISSING+set}" != xset
; then
7397 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
7399 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
7402 # Use eval to expand $SHELL
7403 if eval "$MISSING --run true"; then
7404 am_missing_run
="$MISSING --run "
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7408 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7411 if test x
"${install_sh}" != xset
; then
7414 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
7416 install_sh
="\${SHELL} $am_aux_dir/install-sh"
7420 # Installed binaries are usually stripped using `strip' when the user
7421 # run `make install-strip'. However `strip' might not be the right
7422 # tool to use in cross-compilation environments, therefore Automake
7423 # will honor the `STRIP' environment variable to overrule this program.
7424 if test "$cross_compiling" != no
; then
7425 if test -n "$ac_tool_prefix"; then
7426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7427 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if test "${ac_cv_prog_STRIP+set}" = set; then :
7431 $as_echo_n "(cached) " >&6
7433 if test -n "$STRIP"; then
7434 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir
=.
7441 for ac_exec_ext
in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 STRIP
=$ac_cv_prog_STRIP
7454 if test -n "$STRIP"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7456 $as_echo "$STRIP" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7464 if test -z "$ac_cv_prog_STRIP"; then
7466 # Extract the first word of "strip", so it can be a program name with args.
7467 set dummy strip
; ac_word
=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7473 if test -n "$ac_ct_STRIP"; then
7474 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7480 test -z "$as_dir" && as_dir
=.
7481 for ac_exec_ext
in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_prog_ac_ct_STRIP
="strip"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7494 if test -n "$ac_ct_STRIP"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7496 $as_echo "$ac_ct_STRIP" >&6; }
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7502 if test "x$ac_ct_STRIP" = x
; then
7505 case $cross_compiling:$ac_tool_warned in
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned
=yes ;;
7514 STRIP
="$ac_cv_prog_STRIP"
7518 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7521 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7522 if test -z "$MKDIR_P"; then
7523 if test "${ac_cv_path_mkdir+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
7526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7527 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7530 test -z "$as_dir" && as_dir
=.
7531 for ac_prog
in mkdir gmkdir
; do
7532 for ac_exec_ext
in '' $ac_executable_extensions; do
7533 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
7534 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7535 'mkdir (GNU coreutils) '* | \
7536 'mkdir (coreutils) '* | \
7537 'mkdir (fileutils) '4.1*)
7538 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7548 if test "${ac_cv_path_mkdir+set}" = set; then
7549 MKDIR_P
="$ac_cv_path_mkdir -p"
7551 # As a last resort, use the slow shell script. Don't cache a
7552 # value for MKDIR_P within a source directory, because that will
7553 # break other packages using the cache if that directory is
7554 # removed, or if the value is a relative name.
7555 test -d .
/--version && rmdir .
/--version
7556 MKDIR_P
="$ac_install_sh -d"
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7560 $as_echo "$MKDIR_P" >&6; }
7565 [\\/$
]* | ?
:[\\/]*) ;;
7566 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
7569 for ac_prog
in gawk mawk nawk
awk
7571 # Extract the first word of "$ac_prog", so it can be a program name with args.
7572 set dummy
$ac_prog; ac_word
=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if test "${ac_cv_prog_AWK+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7578 if test -n "$AWK"; then
7579 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir
=.
7586 for ac_exec_ext
in '' $ac_executable_extensions; do
7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7588 ac_cv_prog_AWK
="$ac_prog"
7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 if test -n "$AWK"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7601 $as_echo "$AWK" >&6; }
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7608 test -n "$AWK" && break
7611 ac_config_commands
="$ac_config_commands depfiles"
7614 am_make
=${MAKE-make}
7615 cat > confinc
<< 'END'
7617 @
echo this is the am__doit target
7620 # If we don't find an include directive, just comment out the code.
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7622 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7626 # First try GNU make style include.
7627 echo "include confinc" > confmf
7628 # Ignore all kinds of additional output from `make'.
7629 case `$am_make -s -f confmf 2> /dev/null` in #(
7630 *the\ am__doit\ target
*)
7636 # Now try BSD make style include.
7637 if test "$am__include" = "#"; then
7638 echo '.include "confinc"' > confmf
7639 case `$am_make -s -f confmf 2> /dev/null` in #(
7640 *the\ am__doit\ target
*)
7641 am__include
=.include
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7650 $as_echo "$_am_result" >&6; }
7651 rm -f confinc confmf
7653 # Check whether --enable-dependency-tracking was given.
7654 if test "${enable_dependency_tracking+set}" = set; then :
7655 enableval
=$enable_dependency_tracking;
7658 if test "x$enable_dependency_tracking" != xno
; then
7659 am_depcomp
="$ac_aux_dir/depcomp"
7662 if test "x$enable_dependency_tracking" != xno; then
7671 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7672 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7673 # is not polluted with repeated "-I."
7674 am__isrc
=' -I$(srcdir)'
7675 # test to see if srcdir already configured
7676 if test -f $srcdir/config.status
; then
7677 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7681 # test whether we have cygpath
7682 if test -z "$CYGPATH_W"; then
7683 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
7684 CYGPATH_W
='cygpath -w'
7691 # Define the identity of the package.
7693 VERSION
=UNUSED-VERSION
7696 # Some tools Automake needs.
7698 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7701 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
7704 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7707 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
7710 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
7712 # We need awk for the "check" target. The system "awk" is bad on
7714 # Always define AMTAR for backward compatibility.
7716 AMTAR
=${AMTAR-"${am_missing_run}tar"}
7718 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
7723 depcc
="$CC" am_compiler_list
=
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7726 $as_echo_n "checking dependency style of $depcc... " >&6; }
7727 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7728 $as_echo_n "(cached) " >&6
7730 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7731 # We make a subdir and do the tests there. Otherwise we can end up
7732 # making bogus files that we don't know about and never remove. For
7733 # instance it was reported that on HP-UX the gcc test will end up
7734 # making a dummy file named `D' -- because `-MD' means `put the output
7737 # Copy depcomp to subdir because otherwise we won't find it if we're
7738 # using a relative directory.
7739 cp "$am_depcomp" conftest.dir
7741 # We will build objects and dependencies in a subdirectory because
7742 # it helps to detect inapplicable dependency modes. For instance
7743 # both Tru64's cc and ICC support -MD to output dependencies as a
7744 # side effect of compilation, but ICC will put the dependencies in
7745 # the current directory while Tru64 will put them in the object
7749 am_cv_CC_dependencies_compiler_type
=none
7750 if test "$am_compiler_list" = ""; then
7751 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7754 case " $depcc " in #(
7755 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
7758 for depmode
in $am_compiler_list; do
7759 # Setup a source with many dependencies, because some compilers
7760 # like to wrap large dependency lists on column 80 (with \), and
7761 # we should not choose a depcomp mode which is confused by this.
7763 # We need to recreate these files for each test, as the compiler may
7764 # overwrite some of them when testing with obscure command lines.
7765 # This happens at least with the AIX C compiler.
7767 for i
in 1 2 3 4 5 6; do
7768 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7769 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7770 # Solaris 8's {/usr,}/bin/sh.
7771 touch sub
/conftst
$i.h
7773 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7775 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7776 # mode. It turns out that the SunPro C++ compiler does not properly
7777 # handle `-M -o', and we need to detect this. Also, some Intel
7778 # versions had trouble with output in subdirs
7779 am__obj
=sub
/conftest.
${OBJEXT-o}
7780 am__minus_obj
="-o $am__obj"
7783 # This depmode causes a compiler race in universal mode.
7784 test "$am__universal" = false ||
continue
7787 # after this tag, mechanisms are not by side-effect, so they'll
7788 # only be used when explicitly requested
7789 if test "x$enable_dependency_tracking" = xyes
; then
7795 msvisualcpp | msvcmsys
)
7796 # This compiler won't grok `-c -o', but also, the minuso test has
7797 # not run yet. These depmodes are late enough in the game, and
7798 # so weak that their functioning should not be impacted.
7799 am__obj
=conftest.
${OBJEXT-o}
7804 if depmode
=$depmode \
7805 source=sub
/conftest.c object
=$am__obj \
7806 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7807 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
7808 >/dev
/null
2>conftest.err
&&
7809 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7810 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7811 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
7812 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7813 # icc doesn't choke on unknown options, it will just issue warnings
7814 # or remarks (even with -Werror). So we grep stderr for any message
7815 # that says an option was ignored or not supported.
7816 # When given -MP, icc 7.0 and 7.1 complain thusly:
7817 # icc: Command line warning: ignoring option '-M'; no argument required
7818 # The diagnosis changed in icc 8.0:
7819 # icc: Command line remark: option '-MP' not supported
7820 if (grep 'ignoring option' conftest.err ||
7821 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7822 am_cv_CC_dependencies_compiler_type
=$depmode
7831 am_cv_CC_dependencies_compiler_type
=none
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7836 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7837 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
7840 test "x$enable_dependency_tracking" != xno \
7841 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
7843 am__fastdepCC_FALSE
='#'
7845 am__fastdepCC_TRUE
='#'
7846 am__fastdepCC_FALSE
=
7854 # Check whether --with-separate-debug-dir was given.
7855 if test "${with_separate_debug_dir+set}" = set; then :
7856 withval
=$with_separate_debug_dir;
7859 DEBUGDIR
=${libdir}/debug
7863 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7864 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7865 ac_define_dir
=`eval echo $DEBUGDIR`
7866 ac_define_dir
=`eval echo $ac_define_dir`
7868 cat >>confdefs.h
<<_ACEOF
7869 #define DEBUGDIR "$ac_define_dir"
7875 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7876 if test "x$prefix" = xNONE
; then
7877 test_prefix
=/usr
/local
7882 test_prefix
=$exec_prefix
7885 case ${ac_define_dir} in
7886 "${test_prefix}"|
"${test_prefix}/"*|\
7887 '${exec_prefix}'|
'${exec_prefix}/'*)
7892 cat >>confdefs.h
<<_ACEOF
7893 #define DEBUGDIR_RELOCATABLE $value
7899 # GDB's datadir relocation
7903 # Check whether --with-gdb-datadir was given.
7904 if test "${with_gdb_datadir+set}" = set; then :
7905 withval
=$with_gdb_datadir;
7906 GDB_DATADIR
=$withval
7908 GDB_DATADIR
=${datadir}/gdb
7912 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7913 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7914 ac_define_dir
=`eval echo $GDB_DATADIR`
7915 ac_define_dir
=`eval echo $ac_define_dir`
7917 cat >>confdefs.h
<<_ACEOF
7918 #define GDB_DATADIR "$ac_define_dir"
7924 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7925 if test "x$prefix" = xNONE
; then
7926 test_prefix
=/usr
/local
7931 test_prefix
=$exec_prefix
7934 case ${ac_define_dir} in
7935 "${test_prefix}"|
"${test_prefix}/"*|\
7936 '${exec_prefix}'|
'${exec_prefix}/'*)
7941 cat >>confdefs.h
<<_ACEOF
7942 #define GDB_DATADIR_RELOCATABLE $value
7949 # Check whether --with-relocated-sources was given.
7950 if test "${with_relocated_sources+set}" = set; then :
7951 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
7953 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7954 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7955 ac_define_dir
=`eval echo $reloc_srcdir`
7956 ac_define_dir
=`eval echo $ac_define_dir`
7958 cat >>confdefs.h
<<_ACEOF
7959 #define RELOC_SRCDIR "$ac_define_dir"
7969 subdirs
="$subdirs testsuite"
7972 # Check whether to support alternative target configurations
7973 # Check whether --enable-targets was given.
7974 if test "${enable_targets+set}" = set; then :
7975 enableval
=$enable_targets; case "${enableval}" in
7976 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
7978 no
) enable_targets
= ;;
7979 *) enable_targets
=$enableval ;;
7984 # Check whether to enable 64-bit support on 32-bit hosts
7985 # Check whether --enable-64-bit-bfd was given.
7986 if test "${enable_64_bit_bfd+set}" = set; then :
7987 enableval
=$enable_64_bit_bfd; case "${enableval}" in
7990 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7996 # Provide defaults for some variables set by the per-host and per-target
7998 gdb_host_obs
=posix-hdep.o
8000 if test "${target}" = "${host}"; then
8006 .
$srcdir/configure.
host
8008 # Accumulate some settings from configure.tgt over all enabled targets
8013 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
8015 if test "$targ_alias" = "all"; then
8018 # Canonicalize the secondary target names.
8019 result
=`$ac_config_sub $targ_alias 2>/dev/null`
8020 if test -n "$result"; then
8026 .
${srcdir}/configure.tgt
8028 if test -z "${gdb_target_obs}"; then :
8029 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
8032 # Target-specific object files
8033 for i
in ${gdb_target_obs}; do
8034 case " $TARGET_OBS " in
8037 TARGET_OBS
="$TARGET_OBS ${i}"
8042 # Check whether this target needs 64-bit CORE_ADDR
8043 if test x
${want64} = xfalse
; then
8044 .
${srcdir}/..
/bfd
/config.bfd
8049 if test x
${all_targets} = xtrue
; then
8051 # We want all 64-bit targets if we either:
8052 # - run on a 64-bit host or
8053 # - already require 64-bit support for some other target or
8054 # - the --enable-64-bit-bfd option was supplied
8055 # Otherwise we only support all 32-bit targets.
8057 # NOTE: This test must be in sync with the corresponding
8060 if test x
${want64} = xfalse
; then
8061 # The cast to long int works around a bug in the HP C Compiler
8062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8064 # This bug is HP SR number 8606223364.
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8066 $as_echo_n "checking size of long... " >&6; }
8067 if test "${ac_cv_sizeof_long+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8070 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
8073 if test "$ac_cv_type_long" = yes; then
8074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8076 { as_fn_set_status
77
8077 as_fn_error
"cannot compute sizeof (long)
8078 See \`config.log' for more details." "$LINENO" 5; }; }
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8086 $as_echo "$ac_cv_sizeof_long" >&6; }
8090 cat >>confdefs.h
<<_ACEOF
8091 #define SIZEOF_LONG $ac_cv_sizeof_long
8095 if test "x${ac_cv_sizeof_long}" = "x8"; then
8099 if test x
${want64} = xtrue
; then
8100 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8102 TARGET_OBS
='$(ALL_TARGET_OBS)'
8108 # For other settings, only the main target counts.
8112 targ
=$target; .
${srcdir}/configure.tgt
8114 # Fetch the default architecture and default target vector from BFD.
8115 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
8117 # We only want the first architecture, so strip off the others if
8118 # there is more than one.
8119 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
8121 if test "x$targ_archs" != x
; then
8123 cat >>confdefs.h
<<_ACEOF
8124 #define DEFAULT_BFD_ARCH $targ_archs
8128 if test "x$targ_defvec" != x
; then
8130 cat >>confdefs.h
<<_ACEOF
8131 #define DEFAULT_BFD_VEC $targ_defvec
8136 # The CLI cannot be disabled yet, but may be in the future.
8139 # Check whether --enable-gdbcli was given.
8140 if test "${enable_gdbcli+set}" = set; then :
8141 enableval
=$enable_gdbcli; case $enableval in
8145 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8147 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8153 if test x
"$enable_gdbcli" = xyes
; then
8154 if test -d $srcdir/cli
; then
8155 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8156 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8157 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8158 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8163 # Check whether --enable-gdbmi was given.
8164 if test "${enable_gdbmi+set}" = set; then :
8165 enableval
=$enable_gdbmi; case $enableval in
8169 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8175 if test x
"$enable_gdbmi" = xyes
; then
8176 if test -d $srcdir/mi
; then
8177 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8178 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8179 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8180 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8185 # Check whether --enable-tui was given.
8186 if test "${enable_tui+set}" = set; then :
8187 enableval
=$enable_tui; case $enableval in
8191 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8199 # Check whether --enable-gdbtk was given.
8200 if test "${enable_gdbtk+set}" = set; then :
8201 enableval
=$enable_gdbtk; case $enableval in
8205 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8208 if test -d $srcdir/gdbtk
; then
8215 # We unconditionally disable gdbtk tests on selected platforms.
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8219 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8223 # Libunwind support.
8225 # Check whether --with-libunwind was given.
8226 if test "${with_libunwind+set}" = set; then :
8227 withval
=$with_libunwind; case "${withval}" in
8228 yes) enable_libunwind
=yes ;;
8229 no
) enable_libunwind
=no
;;
8230 *) as_fn_error
"bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8234 for ac_header
in libunwind.h libunwind-ia64.h
8236 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8237 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8238 eval as_val
=\$
$as_ac_Header
8239 if test "x$as_val" = x
""yes; then :
8240 cat >>confdefs.h
<<_ACEOF
8241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8248 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
8249 enable_libunwind
=yes;
8255 if test x
"$enable_libunwind" = xyes
; then
8256 for ac_header
in libunwind.h libunwind-ia64.h
8258 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8259 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8260 eval as_val
=\$
$as_ac_Header
8261 if test "x$as_val" = x
""yes; then :
8262 cat >>confdefs.h
<<_ACEOF
8263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8271 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8273 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
8274 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
8275 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
8280 # Check whether --with-curses was given.
8281 if test "${with_curses+set}" = set; then :
8282 withval
=$with_curses; opt_curses
=$withval
8287 if test "$opt_curses" = "yes"; then
8291 # Profiling support.
8292 # Check whether --enable-profiling was given.
8293 if test "${enable_profiling+set}" = set; then :
8294 enableval
=$enable_profiling; case $enableval in
8298 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8305 for ac_func
in monstartup _mcleanup
8307 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8308 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8309 eval as_val
=\$
$as_ac_var
8310 if test "x$as_val" = x
""yes; then :
8311 cat >>confdefs.h
<<_ACEOF
8312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8319 $as_echo_n "checking for _etext... " >&6; }
8320 if test "${ac_cv_var__etext+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8336 if ac_fn_c_try_link
"$LINENO"; then :
8337 ac_cv_var__etext
=yes
8341 rm -f core conftest.err conftest.
$ac_objext \
8342 conftest
$ac_exeext conftest.
$ac_ext
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8345 $as_echo "$ac_cv_var__etext" >&6; }
8346 if test $ac_cv_var__etext = yes; then
8348 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8352 $as_echo_n "checking for etext... " >&6; }
8353 if test "${ac_cv_var_etext+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8369 if ac_fn_c_try_link
"$LINENO"; then :
8374 rm -f core conftest.err conftest.
$ac_objext \
8375 conftest
$ac_exeext conftest.
$ac_ext
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8378 $as_echo "$ac_cv_var_etext" >&6; }
8379 if test $ac_cv_var_etext = yes; then
8381 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8384 if test "$enable_profiling" = yes ; then
8385 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
8386 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8389 OLD_CFLAGS
="$CFLAGS"
8390 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8393 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8394 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8408 if ac_fn_c_try_compile
"$LINENO"; then :
8409 ac_cv_cc_supports_pg
=yes
8411 ac_cv_cc_supports_pg
=no
8413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8416 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8418 if test $ac_cv_cc_supports_pg = no
; then
8419 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8422 CFLAGS
="$OLD_CFLAGS"
8427 # Check whether --with-pkgversion was given.
8428 if test "${with_pkgversion+set}" = set; then :
8429 withval
=$with_pkgversion; case "$withval" in
8430 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
8432 *) PKGVERSION
="($withval) " ;;
8443 # Check whether --with-bugurl was given.
8444 if test "${with_bugurl+set}" = set; then :
8445 withval
=$with_bugurl; case "$withval" in
8446 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
8449 *) BUGURL
="$withval"
8453 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
8463 REPORT_BUGS_TO
="<$BUGURL>"
8464 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8471 cat >>confdefs.h
<<_ACEOF
8472 #define PKGVERSION "$PKGVERSION"
8476 cat >>confdefs.h
<<_ACEOF
8477 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8481 # --------------------- #
8482 # Checks for programs. #
8483 # --------------------- #
8485 for ac_prog
in gawk mawk nawk
awk
8487 # Extract the first word of "$ac_prog", so it can be a program name with args.
8488 set dummy
$ac_prog; ac_word
=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if test "${ac_cv_prog_AWK+set}" = set; then :
8492 $as_echo_n "(cached) " >&6
8494 if test -n "$AWK"; then
8495 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8501 test -z "$as_dir" && as_dir
=.
8502 for ac_exec_ext
in '' $ac_executable_extensions; do
8503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8504 ac_cv_prog_AWK
="$ac_prog"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 if test -n "$AWK"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8517 $as_echo "$AWK" >&6; }
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8524 test -n "$AWK" && break
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8529 $as_echo_n "checking whether ln -s works... " >&6; }
8531 if test "$LN_S" = "ln -s"; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8533 $as_echo "yes" >&6; }
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8536 $as_echo "no, using $LN_S" >&6; }
8539 if test -n "$ac_tool_prefix"; then
8540 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8541 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543 $as_echo_n "checking for $ac_word... " >&6; }
8544 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8545 $as_echo_n "(cached) " >&6
8547 if test -n "$RANLIB"; then
8548 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8554 test -z "$as_dir" && as_dir
=.
8555 for ac_exec_ext
in '' $ac_executable_extensions; do
8556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8557 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 RANLIB
=$ac_cv_prog_RANLIB
8568 if test -n "$RANLIB"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8570 $as_echo "$RANLIB" >&6; }
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8578 if test -z "$ac_cv_prog_RANLIB"; then
8579 ac_ct_RANLIB
=$RANLIB
8580 # Extract the first word of "ranlib", so it can be a program name with args.
8581 set dummy ranlib
; ac_word
=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
8587 if test -n "$ac_ct_RANLIB"; then
8588 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8594 test -z "$as_dir" && as_dir
=.
8595 for ac_exec_ext
in '' $ac_executable_extensions; do
8596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8597 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8608 if test -n "$ac_ct_RANLIB"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8610 $as_echo "$ac_ct_RANLIB" >&6; }
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8616 if test "x$ac_ct_RANLIB" = x
; then
8619 case $cross_compiling:$ac_tool_warned in
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8623 ac_tool_warned
=yes ;;
8625 RANLIB
=$ac_ct_RANLIB
8628 RANLIB
="$ac_cv_prog_RANLIB"
8631 for ac_prog
in 'bison -y' byacc
8633 # Extract the first word of "$ac_prog", so it can be a program name with args.
8634 set dummy
$ac_prog; ac_word
=$2
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636 $as_echo_n "checking for $ac_word... " >&6; }
8637 if test "${ac_cv_prog_YACC+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8640 if test -n "$YACC"; then
8641 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
8643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8647 test -z "$as_dir" && as_dir
=.
8648 for ac_exec_ext
in '' $ac_executable_extensions; do
8649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8650 ac_cv_prog_YACC
="$ac_prog"
8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660 YACC
=$ac_cv_prog_YACC
8661 if test -n "$YACC"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8663 $as_echo "$YACC" >&6; }
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8670 test -n "$YACC" && break
8672 test -n "$YACC" || YACC
="yacc"
8675 if test -n "$ac_tool_prefix"; then
8676 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8677 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if test "${ac_cv_prog_AR+set}" = set; then :
8681 $as_echo_n "(cached) " >&6
8683 if test -n "$AR"; then
8684 ac_cv_prog_AR
="$AR" # Let the user override the test.
8686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8690 test -z "$as_dir" && as_dir
=.
8691 for ac_exec_ext
in '' $ac_executable_extensions; do
8692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8704 if test -n "$AR"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8706 $as_echo "$AR" >&6; }
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8714 if test -z "$ac_cv_prog_AR"; then
8716 # Extract the first word of "ar", so it can be a program name with args.
8717 set dummy
ar; ac_word
=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8721 $as_echo_n "(cached) " >&6
8723 if test -n "$ac_ct_AR"; then
8724 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8730 test -z "$as_dir" && as_dir
=.
8731 for ac_exec_ext
in '' $ac_executable_extensions; do
8732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8733 ac_cv_prog_ac_ct_AR
="ar"
8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8744 if test -n "$ac_ct_AR"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8746 $as_echo "$ac_ct_AR" >&6; }
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8752 if test "x$ac_ct_AR" = x
; then
8755 case $cross_compiling:$ac_tool_warned in
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8759 ac_tool_warned
=yes ;;
8767 if test -n "$ac_tool_prefix"; then
8768 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8769 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 $as_echo_n "checking for $ac_word... " >&6; }
8772 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8773 $as_echo_n "(cached) " >&6
8775 if test -n "$DLLTOOL"; then
8776 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
8778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8782 test -z "$as_dir" && as_dir
=.
8783 for ac_exec_ext
in '' $ac_executable_extensions; do
8784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8785 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 DLLTOOL
=$ac_cv_prog_DLLTOOL
8796 if test -n "$DLLTOOL"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8798 $as_echo "$DLLTOOL" >&6; }
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8806 if test -z "$ac_cv_prog_DLLTOOL"; then
8807 ac_ct_DLLTOOL
=$DLLTOOL
8808 # Extract the first word of "dlltool", so it can be a program name with args.
8809 set dummy dlltool
; ac_word
=$2
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811 $as_echo_n "checking for $ac_word... " >&6; }
8812 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8813 $as_echo_n "(cached) " >&6
8815 if test -n "$ac_ct_DLLTOOL"; then
8816 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
8818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8822 test -z "$as_dir" && as_dir
=.
8823 for ac_exec_ext
in '' $ac_executable_extensions; do
8824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8825 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
8826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8835 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
8836 if test -n "$ac_ct_DLLTOOL"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8838 $as_echo "$ac_ct_DLLTOOL" >&6; }
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8844 if test "x$ac_ct_DLLTOOL" = x
; then
8847 case $cross_compiling:$ac_tool_warned in
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8851 ac_tool_warned
=yes ;;
8853 DLLTOOL
=$ac_ct_DLLTOOL
8856 DLLTOOL
="$ac_cv_prog_DLLTOOL"
8859 if test -n "$ac_tool_prefix"; then
8860 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8861 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8867 if test -n "$WINDRES"; then
8868 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
8870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8874 test -z "$as_dir" && as_dir
=.
8875 for ac_exec_ext
in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 WINDRES
=$ac_cv_prog_WINDRES
8888 if test -n "$WINDRES"; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8890 $as_echo "$WINDRES" >&6; }
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8898 if test -z "$ac_cv_prog_WINDRES"; then
8899 ac_ct_WINDRES
=$WINDRES
8900 # Extract the first word of "windres", so it can be a program name with args.
8901 set dummy windres
; ac_word
=$2
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 $as_echo_n "checking for $ac_word... " >&6; }
8904 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8905 $as_echo_n "(cached) " >&6
8907 if test -n "$ac_ct_WINDRES"; then
8908 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
8910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8914 test -z "$as_dir" && as_dir
=.
8915 for ac_exec_ext
in '' $ac_executable_extensions; do
8916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8917 ac_cv_prog_ac_ct_WINDRES
="windres"
8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8927 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
8928 if test -n "$ac_ct_WINDRES"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8930 $as_echo "$ac_ct_WINDRES" >&6; }
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8936 if test "x$ac_ct_WINDRES" = x
; then
8939 case $cross_compiling:$ac_tool_warned in
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8943 ac_tool_warned
=yes ;;
8945 WINDRES
=$ac_ct_WINDRES
8948 WINDRES
="$ac_cv_prog_WINDRES"
8952 # Needed for GNU/Hurd.
8953 if test -n "$ac_tool_prefix"; then
8954 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8955 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957 $as_echo_n "checking for $ac_word... " >&6; }
8958 if test "${ac_cv_prog_MIG+set}" = set; then :
8959 $as_echo_n "(cached) " >&6
8961 if test -n "$MIG"; then
8962 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
8964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8968 test -z "$as_dir" && as_dir
=.
8969 for ac_exec_ext
in '' $ac_executable_extensions; do
8970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8971 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
8972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8982 if test -n "$MIG"; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8984 $as_echo "$MIG" >&6; }
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987 $as_echo "no" >&6; }
8992 if test -z "$ac_cv_prog_MIG"; then
8994 # Extract the first word of "mig", so it can be a program name with args.
8995 set dummy mig
; ac_word
=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9001 if test -n "$ac_ct_MIG"; then
9002 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
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_prog_ac_ct_MIG
="mig"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9021 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
9022 if test -n "$ac_ct_MIG"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
9024 $as_echo "$ac_ct_MIG" >&6; }
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9030 if test "x$ac_ct_MIG" = x
; then
9033 case $cross_compiling:$ac_tool_warned in
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9037 ac_tool_warned
=yes ;;
9042 MIG
="$ac_cv_prog_MIG"
9046 # ---------------------- #
9047 # Checks for libraries. #
9048 # ---------------------- #
9050 # We might need to link with -lm; most simulators need it.
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
9052 $as_echo_n "checking for main in -lm... " >&6; }
9053 if test "${ac_cv_lib_m_main+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
9056 ac_check_lib_save_LIBS
=$LIBS
9058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9070 if ac_fn_c_try_link
"$LINENO"; then :
9071 ac_cv_lib_m_main
=yes
9075 rm -f core conftest.err conftest.
$ac_objext \
9076 conftest
$ac_exeext conftest.
$ac_ext
9077 LIBS
=$ac_check_lib_save_LIBS
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
9080 $as_echo "$ac_cv_lib_m_main" >&6; }
9081 if test "x$ac_cv_lib_m_main" = x
""yes; then :
9082 cat >>confdefs.h
<<_ACEOF
9091 # We need to link with -lw to get `wctype' on Solaris before Solaris
9092 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9093 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9094 # is known to have this problem). Therefore we avoid libw if we can.
9095 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
9096 if test "x$ac_cv_func_wctype" = x
""yes; then :
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9100 $as_echo_n "checking for wctype in -lw... " >&6; }
9101 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
9104 ac_check_lib_save_LIBS
=$LIBS
9106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9109 /* Override any GCC internal prototype to avoid an error.
9110 Use char because int might match the return type of a GCC
9111 builtin and then its argument prototype would still apply. */
9124 if ac_fn_c_try_link
"$LINENO"; then :
9125 ac_cv_lib_w_wctype
=yes
9127 ac_cv_lib_w_wctype
=no
9129 rm -f core conftest.err conftest.
$ac_objext \
9130 conftest
$ac_exeext conftest.
$ac_ext
9131 LIBS
=$ac_check_lib_save_LIBS
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9134 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9135 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
9136 cat >>confdefs.h
<<_ACEOF
9147 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9149 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9150 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9153 ac_func_search_save_LIBS
=$LIBS
9154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9157 /* Override any GCC internal prototype to avoid an error.
9158 Use char because int might match the return type of a GCC
9159 builtin and then its argument prototype would still apply. */
9163 char gethostbyname ();
9167 return gethostbyname ();
9172 for ac_lib
in '' nsl
; do
9173 if test -z "$ac_lib"; then
9174 ac_res
="none required"
9177 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9179 if ac_fn_c_try_link
"$LINENO"; then :
9180 ac_cv_search_gethostbyname
=$ac_res
9182 rm -f core conftest.err conftest.
$ac_objext \
9184 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9188 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9191 ac_cv_search_gethostbyname
=no
9194 LIBS
=$ac_func_search_save_LIBS
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9197 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9198 ac_res
=$ac_cv_search_gethostbyname
9199 if test "$ac_res" != no
; then :
9200 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9205 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9207 $as_echo_n "checking for library containing socketpair... " >&6; }
9208 if test "${ac_cv_search_socketpair+set}" = set; then :
9209 $as_echo_n "(cached) " >&6
9211 ac_func_search_save_LIBS
=$LIBS
9212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9215 /* Override any GCC internal prototype to avoid an error.
9216 Use char because int might match the return type of a GCC
9217 builtin and then its argument prototype would still apply. */
9225 return socketpair ();
9230 for ac_lib
in '' socket
; do
9231 if test -z "$ac_lib"; then
9232 ac_res
="none required"
9235 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9237 if ac_fn_c_try_link
"$LINENO"; then :
9238 ac_cv_search_socketpair
=$ac_res
9240 rm -f core conftest.err conftest.
$ac_objext \
9242 if test "${ac_cv_search_socketpair+set}" = set; then :
9246 if test "${ac_cv_search_socketpair+set}" = set; then :
9249 ac_cv_search_socketpair
=no
9252 LIBS
=$ac_func_search_save_LIBS
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9255 $as_echo "$ac_cv_search_socketpair" >&6; }
9256 ac_res
=$ac_cv_search_socketpair
9257 if test "$ac_res" != no
; then :
9258 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9263 # Link in zlib if we can. This allows us to read compressed debug sections.
9265 # See if the user specified whether he wants zlib support or not.
9267 # Check whether --with-zlib was given.
9268 if test "${with_zlib+set}" = set; then :
9275 if test "$with_zlib" != "no"; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9277 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9278 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9279 $as_echo_n "(cached) " >&6
9281 ac_func_search_save_LIBS
=$LIBS
9282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9291 char zlibVersion ();
9295 return zlibVersion ();
9300 for ac_lib
in '' z
; do
9301 if test -z "$ac_lib"; then
9302 ac_res
="none required"
9305 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9307 if ac_fn_c_try_link
"$LINENO"; then :
9308 ac_cv_search_zlibVersion
=$ac_res
9310 rm -f core conftest.err conftest.
$ac_objext \
9312 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9316 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9319 ac_cv_search_zlibVersion
=no
9322 LIBS
=$ac_func_search_save_LIBS
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9325 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9326 ac_res
=$ac_cv_search_zlibVersion
9327 if test "$ac_res" != no
; then :
9328 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9329 for ac_header
in zlib.h
9331 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9332 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
9333 cat >>confdefs.h
<<_ACEOF
9334 #define HAVE_ZLIB_H 1
9343 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9344 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9349 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9351 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9352 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9353 $as_echo_n "(cached) " >&6
9355 ac_func_search_save_LIBS
=$LIBS
9356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9359 /* Override any GCC internal prototype to avoid an error.
9360 Use char because int might match the return type of a GCC
9361 builtin and then its argument prototype would still apply. */
9365 char dlgetmodinfo ();
9369 return dlgetmodinfo ();
9374 for ac_lib
in '' dl xpdl
; do
9375 if test -z "$ac_lib"; then
9376 ac_res
="none required"
9379 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9381 if ac_fn_c_try_link
"$LINENO"; then :
9382 ac_cv_search_dlgetmodinfo
=$ac_res
9384 rm -f core conftest.err conftest.
$ac_objext \
9386 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9390 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9393 ac_cv_search_dlgetmodinfo
=no
9396 LIBS
=$ac_func_search_save_LIBS
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9399 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9400 ac_res
=$ac_cv_search_dlgetmodinfo
9401 if test "$ac_res" != no
; then :
9402 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9410 # Check whether --with-libiconv-prefix was given.
9411 if test "${with_libiconv_prefix+set}" = set; then :
9412 withval
=$with_libiconv_prefix;
9413 for dir
in `echo "$withval" | tr : ' '`; do
9414 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
9415 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
9421 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
9422 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9425 $as_echo_n "checking for iconv... " >&6; }
9426 if test "${am_cv_func_iconv+set}" = set; then :
9427 $as_echo_n "(cached) " >&6
9430 am_cv_func_iconv
="no, consider installing GNU libiconv"
9432 am_cv_use_build_libiconv
=no
9433 am_cv_build_libiconv_path
=
9435 # If libiconv is part of the build tree, then try using it over
9437 if test -d ..
/libiconv
; then
9438 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
9439 am_save_LIBS
="$LIBS"
9440 am_save_CPPFLAGS
="$CPPFLAGS"
9441 LIBS
="$LIBS $lib_dir/libiconv.a"
9442 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9450 iconv_t cd = iconv_open("","");
9451 iconv(cd,NULL,NULL,NULL,NULL);
9457 if ac_fn_c_try_link
"$LINENO"; then :
9458 am_cv_use_build_libiconv
=yes
9459 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
9461 am_cv_func_iconv
=yes
9463 rm -f core conftest.err conftest.
$ac_objext \
9464 conftest
$ac_exeext conftest.
$ac_ext
9465 LIBS
="$am_save_LIBS"
9466 CPPFLAGS
="$am_save_CPPFLAGS"
9467 if test "$am_cv_use_build_libiconv" = "yes"; then
9473 # Next, try to find iconv in libc.
9474 if test "$am_cv_func_iconv" != yes; then
9475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9482 iconv_t cd = iconv_open("","");
9483 iconv(cd,NULL,NULL,NULL,NULL);
9489 if ac_fn_c_try_link
"$LINENO"; then :
9490 am_cv_func_iconv
=yes
9492 rm -f core conftest.err conftest.
$ac_objext \
9493 conftest
$ac_exeext conftest.
$ac_ext
9496 # If iconv was not in libc, try -liconv. In this case, arrange to
9497 # look in the libiconv prefix, if it was specified by the user.
9498 if test "$am_cv_func_iconv" != yes; then
9499 am_save_CPPFLAGS
="$CPPFLAGS"
9500 am_save_LIBS
="$LIBS"
9501 if test -n "$LIBICONV_INCLUDE"; then
9502 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9503 LIBS
="$LIBS $LIBICONV_LIBDIR"
9505 LIBS
="$LIBS -liconv"
9506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9513 iconv_t cd = iconv_open("","");
9514 iconv(cd,NULL,NULL,NULL,NULL);
9520 if ac_fn_c_try_link
"$LINENO"; then :
9522 am_cv_func_iconv
=yes
9524 rm -f core conftest.err conftest.
$ac_objext \
9525 conftest
$ac_exeext conftest.
$ac_ext
9526 LIBS
="$am_save_LIBS"
9527 CPPFLAGS
="$am_save_CPPFLAGS"
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9532 $as_echo "$am_cv_func_iconv" >&6; }
9534 # Set the various flags based on the cache variables. We can't rely
9535 # on the flags to remain set from the above code, due to caching.
9537 if test "$am_cv_lib_iconv" = yes; then
9543 if test "$am_cv_use_build_libiconv" = yes; then
9544 LIBICONV
="$am_cv_build_libiconv_path"
9546 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
9548 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9549 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9551 if test "$am_cv_func_iconv" = yes; then
9553 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9556 $as_echo_n "checking for iconv declaration... " >&6; }
9557 if test "${am_cv_proto_iconv+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
9561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h. */
9570 #if defined(__STDC__) || defined(__cplusplus)
9571 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9584 if ac_fn_c_try_compile
"$LINENO"; then :
9585 am_cv_proto_iconv_arg1
=""
9587 am_cv_proto_iconv_arg1
="const"
9589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9590 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);"
9593 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9595 }$am_cv_proto_iconv" >&5
9597 }$am_cv_proto_iconv" >&6; }
9599 cat >>confdefs.h
<<_ACEOF
9600 #define ICONV_CONST $am_cv_proto_iconv_arg1
9606 # GDB may fork/exec the iconv program to get the list of supported character
9607 # sets. Allow the user to specify where to find it.
9608 # There are several factors affecting the choice of option name:
9609 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9610 # the build-time location of libiconv files.
9611 # - The program we need to find is iconv, which comes with glibc. The user
9612 # doesn't necessarily have libiconv installed. Therefore naming this
9613 # --with-libiconv-foo feels wrong.
9614 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9615 # defined to work on directories not files (though it really doesn't know
9617 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9618 # with --with-libiconv-prefix.
9619 # Putting these together is why the option name is --with-iconv-bin.
9622 # Check whether --with-iconv-bin was given.
9623 if test "${with_iconv_bin+set}" = set; then :
9624 withval
=$with_iconv_bin; iconv_bin
="${withval}"
9626 cat >>confdefs.h
<<_ACEOF
9627 #define ICONV_BIN "${iconv_bin}"
9631 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9632 if test "x$prefix" = xNONE
; then
9633 test_prefix
=/usr
/local
9638 test_prefix
=$exec_prefix
9641 case ${iconv_bin} in
9642 "${test_prefix}"|
"${test_prefix}/"*|\
9643 '${exec_prefix}'|
'${exec_prefix}/'*)
9648 cat >>confdefs.h
<<_ACEOF
9649 #define ICONV_BIN_RELOCATABLE $value
9657 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9658 # There is a very specific comment in /usr/include/curses.h explaining that
9659 # termcap routines built into libcurses must not be used.
9661 # The symptoms we observed so far is GDB unexpectedly changing
9662 # the terminal settings when tgetent is called - this is particularly
9663 # visible as the output is missing carriage returns, and so rapidly
9664 # becomes very hard to read.
9666 # The readline configure script has already decided that libtermcap
9667 # was enough for its purposes, and so decided to build readline using
9668 # libtermcap. Since the TUI mode requires curses, building GDB with
9669 # TUI enabled results in both libraries to be used at the same time,
9670 # which is not allowed. This basically means that GDB with TUI is
9671 # broken on alpha-osf.
9675 if test x
"$enable_tui" = xyes
; then
9676 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9678 if test x
"$enable_tui" = xauto
; then
9684 # For the TUI, we need enhanced curses functionality.
9685 if test x
"$enable_tui" != xno
; then
9690 if test x
"$prefer_curses" = xyes
; then
9691 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9692 # curses library because the latter might not provide all the
9693 # functionality we need. However, this leads to problems on systems
9694 # where the linker searches /usr/local/lib, but the compiler doesn't
9695 # search /usr/local/include, if ncurses is installed in /usr/local. A
9696 # default installation of ncurses on alpha*-dec-osf* will lead to such
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9699 $as_echo_n "checking for library containing waddstr... " >&6; }
9700 if test "${ac_cv_search_waddstr+set}" = set; then :
9701 $as_echo_n "(cached) " >&6
9703 ac_func_search_save_LIBS
=$LIBS
9704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9707 /* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9722 for ac_lib
in '' ncurses cursesX curses
; do
9723 if test -z "$ac_lib"; then
9724 ac_res
="none required"
9727 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9729 if ac_fn_c_try_link
"$LINENO"; then :
9730 ac_cv_search_waddstr
=$ac_res
9732 rm -f core conftest.err conftest.
$ac_objext \
9734 if test "${ac_cv_search_waddstr+set}" = set; then :
9738 if test "${ac_cv_search_waddstr+set}" = set; then :
9741 ac_cv_search_waddstr
=no
9744 LIBS
=$ac_func_search_save_LIBS
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9747 $as_echo "$ac_cv_search_waddstr" >&6; }
9748 ac_res
=$ac_cv_search_waddstr
9749 if test "$ac_res" != no
; then :
9750 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9755 if test "$ac_cv_search_waddstr" != no
; then
9760 # Check whether we should enable the TUI, but only do so if we really
9762 if test x
"$enable_tui" != xno
; then
9763 if test -d $srcdir/tui
; then
9764 if test "$curses_found" != no
; then
9765 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9766 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9767 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9768 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9769 CONFIG_ALL
="${CONFIG_ALL} all-tui"
9770 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
9771 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
9772 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
9774 if test x
"$enable_tui" = xyes
; then
9775 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9778 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9784 # Since GDB uses Readline, we need termcap functionality. In many
9785 # cases this will be provided by the curses library, but some systems
9786 # have a seperate termcap library, or no curses library at all.
9790 if test -d $srcdir/libtermcap
; then
9791 LIBS
="../libtermcap/libtermcap.a $LIBS"
9792 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9795 ac_cv_search_tgetent
="none required"
9798 ac_cv_search_tgetent
="none required"
9799 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
9803 # These are the libraries checked by Readline.
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9805 $as_echo_n "checking for library containing tgetent... " >&6; }
9806 if test "${ac_cv_search_tgetent+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
9809 ac_func_search_save_LIBS
=$LIBS
9810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9813 /* Override any GCC internal prototype to avoid an error.
9814 Use char because int might match the return type of a GCC
9815 builtin and then its argument prototype would still apply. */
9828 for ac_lib
in '' termcap tinfo curses ncurses
; do
9829 if test -z "$ac_lib"; then
9830 ac_res
="none required"
9833 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9835 if ac_fn_c_try_link
"$LINENO"; then :
9836 ac_cv_search_tgetent
=$ac_res
9838 rm -f core conftest.err conftest.
$ac_objext \
9840 if test "${ac_cv_search_tgetent+set}" = set; then :
9844 if test "${ac_cv_search_tgetent+set}" = set; then :
9847 ac_cv_search_tgetent
=no
9850 LIBS
=$ac_func_search_save_LIBS
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9853 $as_echo "$ac_cv_search_tgetent" >&6; }
9854 ac_res
=$ac_cv_search_tgetent
9855 if test "$ac_res" != no
; then :
9856 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9861 if test "$ac_cv_search_tgetent" = no
; then
9862 as_fn_error
"no termcap library found" "$LINENO" 5
9866 # Check whether --with-system-readline was given.
9867 if test "${with_system_readline+set}" = set; then :
9868 withval
=$with_system_readline;
9872 if test "$with_system_readline" = yes; then
9876 READLINE_TEXI_INCFLAG
=
9878 READLINE
='$(READLINE_DIR)/libreadline.a'
9879 READLINE_DEPS
='$(READLINE)'
9880 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9881 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9888 # Generate jit-reader.h
9890 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9893 # The cast to long int works around a bug in the HP C Compiler
9894 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9895 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9896 # This bug is HP SR number 8606223364.
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9898 $as_echo_n "checking size of unsigned long long... " >&6; }
9899 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
9900 $as_echo_n "(cached) " >&6
9902 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9905 if test "$ac_cv_type_unsigned_long_long" = yes; then
9906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9908 { as_fn_set_status
77
9909 as_fn_error
"cannot compute sizeof (unsigned long long)
9910 See \`config.log' for more details." "$LINENO" 5; }; }
9912 ac_cv_sizeof_unsigned_long_long
=0
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9918 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9922 cat >>confdefs.h
<<_ACEOF
9923 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9927 # The cast to long int works around a bug in the HP C Compiler
9928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9930 # This bug is HP SR number 8606223364.
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9932 $as_echo_n "checking size of unsigned long... " >&6; }
9933 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
9934 $as_echo_n "(cached) " >&6
9936 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9939 if test "$ac_cv_type_unsigned_long" = yes; then
9940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9942 { as_fn_set_status
77
9943 as_fn_error
"cannot compute sizeof (unsigned long)
9944 See \`config.log' for more details." "$LINENO" 5; }; }
9946 ac_cv_sizeof_unsigned_long
=0
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9952 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9956 cat >>confdefs.h
<<_ACEOF
9957 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9961 # The cast to long int works around a bug in the HP C Compiler
9962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9964 # This bug is HP SR number 8606223364.
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9966 $as_echo_n "checking size of unsigned __int128... " >&6; }
9967 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9970 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9973 if test "$ac_cv_type_unsigned___int128" = yes; then
9974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9976 { as_fn_set_status
77
9977 as_fn_error
"cannot compute sizeof (unsigned __int128)
9978 See \`config.log' for more details." "$LINENO" 5; }; }
9980 ac_cv_sizeof_unsigned___int128
=0
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9986 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9990 cat >>confdefs.h
<<_ACEOF
9991 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9996 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9997 TARGET_PTR
="unsigned long"
9998 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9999 TARGET_PTR
="unsigned long long"
10000 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
10001 TARGET_PTR
="unsigned __int128"
10003 TARGET_PTR
="unsigned long"
10007 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
10011 # Check whether --with-expat was given.
10012 if test "${with_expat+set}" = set; then :
10013 withval
=$with_expat;
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
10019 $as_echo_n "checking whether to use expat... " >&6; }
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
10021 $as_echo "$with_expat" >&6; }
10023 if test "${with_expat}" = no
; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
10025 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10029 if test "X$prefix" = "XNONE"; then
10030 acl_final_prefix
="$ac_default_prefix"
10032 acl_final_prefix
="$prefix"
10034 if test "X$exec_prefix" = "XNONE"; then
10035 acl_final_exec_prefix
='${prefix}'
10037 acl_final_exec_prefix
="$exec_prefix"
10039 acl_save_prefix
="$prefix"
10040 prefix
="$acl_final_prefix"
10041 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10042 prefix
="$acl_save_prefix"
10045 # Check whether --with-gnu-ld was given.
10046 if test "${with_gnu_ld+set}" = set; then :
10047 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10052 # Prepare PATH_SEPARATOR.
10053 # The user is always right.
10054 if test "${PATH_SEPARATOR+set}" != set; then
10055 echo "#! /bin/sh" >conf$$.sh
10056 echo "exit 0" >>conf$$.sh
10058 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10066 if test "$GCC" = yes; then
10067 # Check if gcc -print-prog-name=ld gives a path.
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10069 $as_echo_n "checking for ld used by GCC... " >&6; }
10072 # gcc leaves a trailing carriage return which upsets mingw
10073 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10075 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10078 # Accept absolute paths.
10079 [\\/]* |
[A-Za-z
]:[\\/]*)
10080 re_direlt
='/[^/][^/]*/\.\./'
10081 # Canonicalize the path of ld
10082 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10083 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10084 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10086 test -z "$LD" && LD
="$ac_prog"
10089 # If it fails, then pretend we aren't using GCC.
10093 # If it is relative, then search for the first ld in PATH.
10094 with_gnu_ld
=unknown
10097 elif test "$with_gnu_ld" = yes; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10099 $as_echo_n "checking for GNU ld... " >&6; }
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10102 $as_echo_n "checking for non-GNU ld... " >&6; }
10104 if test "${acl_cv_path_LD+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10107 if test -z "$LD"; then
10108 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10109 for ac_dir
in $PATH; do
10110 test -z "$ac_dir" && ac_dir
=.
10111 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10112 acl_cv_path_LD
="$ac_dir/$ac_prog"
10113 # Check to see if the program is GNU ld. I'd rather use --version,
10114 # but apparently some GNU ld's only accept -v.
10115 # Break only if it was the GNU/non-GNU ld that we prefer.
10116 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10117 test "$with_gnu_ld" != no
&& break
10119 test "$with_gnu_ld" != yes && break
10125 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10129 LD
="$acl_cv_path_LD"
10130 if test -n "$LD"; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10132 $as_echo "$LD" >&6; }
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10137 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10139 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10140 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
10143 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10144 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10145 acl_cv_prog_gnu_ld
=yes
10147 acl_cv_prog_gnu_ld
=no
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10151 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10152 with_gnu_ld
=$acl_cv_prog_gnu_ld
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10157 $as_echo_n "checking for shared library run path origin... " >&6; }
10158 if test "${acl_cv_rpath+set}" = set; then :
10159 $as_echo_n "(cached) " >&6
10162 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10163 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10165 rm -f .
/conftest.sh
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10170 $as_echo "$acl_cv_rpath" >&6; }
10172 libext
="$acl_cv_libext"
10173 shlibext
="$acl_cv_shlibext"
10174 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10175 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10176 hardcode_direct
="$acl_cv_hardcode_direct"
10177 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10178 # Check whether --enable-rpath was given.
10179 if test "${enable_rpath+set}" = set; then :
10180 enableval
=$enable_rpath; :
10196 acl_save_prefix
="$prefix"
10197 prefix
="$acl_final_prefix"
10198 acl_save_exec_prefix
="$exec_prefix"
10199 exec_prefix
="$acl_final_exec_prefix"
10201 eval additional_includedir
=\"$includedir\"
10202 eval additional_libdir
=\"$libdir\"
10204 exec_prefix
="$acl_save_exec_prefix"
10205 prefix
="$acl_save_prefix"
10208 # Check whether --with-libexpat-prefix was given.
10209 if test "${with_libexpat_prefix+set}" = set; then :
10210 withval
=$with_libexpat_prefix;
10211 if test "X$withval" = "Xno"; then
10214 if test "X$withval" = "X"; then
10216 acl_save_prefix
="$prefix"
10217 prefix
="$acl_final_prefix"
10218 acl_save_exec_prefix
="$exec_prefix"
10219 exec_prefix
="$acl_final_exec_prefix"
10221 eval additional_includedir
=\"$includedir\"
10222 eval additional_libdir
=\"$libdir\"
10224 exec_prefix
="$acl_save_exec_prefix"
10225 prefix
="$acl_save_prefix"
10228 additional_includedir
="$withval/include"
10229 additional_libdir
="$withval/lib"
10240 names_already_handled
=
10241 names_next_round
='expat '
10242 while test -n "$names_next_round"; do
10243 names_this_round
="$names_next_round"
10245 for name
in $names_this_round; do
10247 for n
in $names_already_handled; do
10248 if test "$n" = "$name"; then
10249 already_handled
=yes
10253 if test -z "$already_handled"; then
10254 names_already_handled
="$names_already_handled $name"
10255 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10256 eval value
=\"\
$HAVE_LIB$uppername\"
10257 if test -n "$value"; then
10258 if test "$value" = yes; then
10259 eval value
=\"\
$LIB$uppername\"
10260 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
10261 eval value
=\"\
$LTLIB$uppername\"
10262 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10271 if test $use_additional = yes; then
10272 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10273 found_dir
="$additional_libdir"
10274 found_so
="$additional_libdir/lib$name.$shlibext"
10275 if test -f "$additional_libdir/lib$name.la"; then
10276 found_la
="$additional_libdir/lib$name.la"
10279 if test -f "$additional_libdir/lib$name.$libext"; then
10280 found_dir
="$additional_libdir"
10281 found_a
="$additional_libdir/lib$name.$libext"
10282 if test -f "$additional_libdir/lib$name.la"; then
10283 found_la
="$additional_libdir/lib$name.la"
10288 if test "X$found_dir" = "X"; then
10289 for x
in $LDFLAGS $LTLIBEXPAT; do
10291 acl_save_prefix
="$prefix"
10292 prefix
="$acl_final_prefix"
10293 acl_save_exec_prefix
="$exec_prefix"
10294 exec_prefix
="$acl_final_exec_prefix"
10296 exec_prefix
="$acl_save_exec_prefix"
10297 prefix
="$acl_save_prefix"
10301 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10302 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10304 found_so
="$dir/lib$name.$shlibext"
10305 if test -f "$dir/lib$name.la"; then
10306 found_la
="$dir/lib$name.la"
10309 if test -f "$dir/lib$name.$libext"; then
10311 found_a
="$dir/lib$name.$libext"
10312 if test -f "$dir/lib$name.la"; then
10313 found_la
="$dir/lib$name.la"
10319 if test "X$found_dir" != "X"; then
10324 if test "X$found_dir" != "X"; then
10325 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10326 if test "X$found_so" != "X"; then
10327 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10328 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10331 for x
in $ltrpathdirs; do
10332 if test "X$x" = "X$found_dir"; then
10337 if test -z "$haveit"; then
10338 ltrpathdirs
="$ltrpathdirs $found_dir"
10340 if test "$hardcode_direct" = yes; then
10341 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10343 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10344 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10346 for x
in $rpathdirs; do
10347 if test "X$x" = "X$found_dir"; then
10352 if test -z "$haveit"; then
10353 rpathdirs
="$rpathdirs $found_dir"
10357 for x
in $LDFLAGS $LIBEXPAT; do
10359 acl_save_prefix
="$prefix"
10360 prefix
="$acl_final_prefix"
10361 acl_save_exec_prefix
="$exec_prefix"
10362 exec_prefix
="$acl_final_exec_prefix"
10364 exec_prefix
="$acl_save_exec_prefix"
10365 prefix
="$acl_save_prefix"
10367 if test "X$x" = "X-L$found_dir"; then
10372 if test -z "$haveit"; then
10373 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10375 if test "$hardcode_minus_L" != no
; then
10376 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10378 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10384 if test "X$found_a" != "X"; then
10385 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10387 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10390 additional_includedir
=
10391 case "$found_dir" in
10393 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10394 additional_includedir
="$basedir/include"
10397 if test "X$additional_includedir" != "X"; then
10398 if test "X$additional_includedir" != "X/usr/include"; then
10400 if test "X$additional_includedir" = "X/usr/local/include"; then
10401 if test -n "$GCC"; then
10403 linux
*) haveit
=yes;;
10407 if test -z "$haveit"; then
10408 for x
in $CPPFLAGS $INCEXPAT; do
10410 acl_save_prefix
="$prefix"
10411 prefix
="$acl_final_prefix"
10412 acl_save_exec_prefix
="$exec_prefix"
10413 exec_prefix
="$acl_final_exec_prefix"
10415 exec_prefix
="$acl_save_exec_prefix"
10416 prefix
="$acl_save_prefix"
10418 if test "X$x" = "X-I$additional_includedir"; then
10423 if test -z "$haveit"; then
10424 if test -d "$additional_includedir"; then
10425 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10431 if test -n "$found_la"; then
10432 save_libdir
="$libdir"
10433 case "$found_la" in
10434 */* |
*\\*) .
"$found_la" ;;
10435 *) .
"./$found_la" ;;
10437 libdir
="$save_libdir"
10438 for dep
in $dependency_libs; do
10441 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10442 if test "X$additional_libdir" != "X/usr/lib"; then
10444 if test "X$additional_libdir" = "X/usr/local/lib"; then
10445 if test -n "$GCC"; then
10447 linux
*) haveit
=yes;;
10451 if test -z "$haveit"; then
10453 for x
in $LDFLAGS $LIBEXPAT; do
10455 acl_save_prefix
="$prefix"
10456 prefix
="$acl_final_prefix"
10457 acl_save_exec_prefix
="$exec_prefix"
10458 exec_prefix
="$acl_final_exec_prefix"
10460 exec_prefix
="$acl_save_exec_prefix"
10461 prefix
="$acl_save_prefix"
10463 if test "X$x" = "X-L$additional_libdir"; then
10468 if test -z "$haveit"; then
10469 if test -d "$additional_libdir"; then
10470 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10474 for x
in $LDFLAGS $LTLIBEXPAT; do
10476 acl_save_prefix
="$prefix"
10477 prefix
="$acl_final_prefix"
10478 acl_save_exec_prefix
="$exec_prefix"
10479 exec_prefix
="$acl_final_exec_prefix"
10481 exec_prefix
="$acl_save_exec_prefix"
10482 prefix
="$acl_save_prefix"
10484 if test "X$x" = "X-L$additional_libdir"; then
10489 if test -z "$haveit"; then
10490 if test -d "$additional_libdir"; then
10491 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10498 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10499 if test "$enable_rpath" != no
; then
10501 for x
in $rpathdirs; do
10502 if test "X$x" = "X$dir"; then
10507 if test -z "$haveit"; then
10508 rpathdirs
="$rpathdirs $dir"
10511 for x
in $ltrpathdirs; do
10512 if test "X$x" = "X$dir"; then
10517 if test -z "$haveit"; then
10518 ltrpathdirs
="$ltrpathdirs $dir"
10523 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10526 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10529 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10530 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10536 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10537 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10543 if test "X$rpathdirs" != "X"; then
10544 if test -n "$hardcode_libdir_separator"; then
10546 for found_dir
in $rpathdirs; do
10547 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10549 acl_save_libdir
="$libdir"
10551 eval flag
=\"$hardcode_libdir_flag_spec\"
10552 libdir
="$acl_save_libdir"
10553 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10555 for found_dir
in $rpathdirs; do
10556 acl_save_libdir
="$libdir"
10557 libdir
="$found_dir"
10558 eval flag
=\"$hardcode_libdir_flag_spec\"
10559 libdir
="$acl_save_libdir"
10560 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10564 if test "X$ltrpathdirs" != "X"; then
10565 for found_dir
in $ltrpathdirs; do
10566 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10571 ac_save_CPPFLAGS
="$CPPFLAGS"
10573 for element
in $INCEXPAT; do
10575 for x
in $CPPFLAGS; do
10577 acl_save_prefix
="$prefix"
10578 prefix
="$acl_final_prefix"
10579 acl_save_exec_prefix
="$exec_prefix"
10580 exec_prefix
="$acl_final_exec_prefix"
10582 exec_prefix
="$acl_save_exec_prefix"
10583 prefix
="$acl_save_prefix"
10585 if test "X$x" = "X$element"; then
10590 if test -z "$haveit"; then
10591 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10597 $as_echo_n "checking for libexpat... " >&6; }
10598 if test "${ac_cv_libexpat+set}" = set; then :
10599 $as_echo_n "(cached) " >&6
10602 ac_save_LIBS
="$LIBS"
10603 LIBS
="$LIBS $LIBEXPAT"
10604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10610 XML_Parser p = XML_ParserCreate (0);
10615 if ac_fn_c_try_link
"$LINENO"; then :
10620 rm -f core conftest.err conftest.
$ac_objext \
10621 conftest
$ac_exeext conftest.
$ac_ext
10622 LIBS
="$ac_save_LIBS"
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10626 $as_echo "$ac_cv_libexpat" >&6; }
10627 if test "$ac_cv_libexpat" = yes; then
10630 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10633 $as_echo_n "checking how to link with libexpat... " >&6; }
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10635 $as_echo "$LIBEXPAT" >&6; }
10638 CPPFLAGS
="$ac_save_CPPFLAGS"
10648 if test "$HAVE_LIBEXPAT" != yes; then
10649 if test "$with_expat" = yes; then
10650 as_fn_error
"expat is missing or unusable" "$LINENO" 5
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10653 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10657 LIBS
="$LIBS $LIBEXPAT"
10658 for ac_func
in XML_StopParser
10660 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10661 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
10662 cat >>confdefs.h
<<_ACEOF
10663 #define HAVE_XML_STOPPARSER 1
10678 # Check whether --with-python was given.
10679 if test "${with_python+set}" = set; then :
10680 withval
=$with_python;
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10686 $as_echo_n "checking whether to use python... " >&6; }
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10688 $as_echo "$with_python" >&6; }
10690 if test "${with_python}" = no
; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10692 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10695 case "${with_python}" in
10697 if test -d ${with_python}; then
10698 # Assume the python binary is ${with_python}/bin/python.
10699 python_prog
="${with_python}/bin/python"
10701 # If python does not exit ${with_python}/bin, then try in
10702 # ${with_python}. On Windows/MinGW, this is where the Python
10704 if test ! -x "${python_prog}"; then
10705 python_prog
="${with_python}/python"
10708 if test ! -x "${python_prog}"; then
10709 # Fall back to gdb 7.0/7.1 behaviour.
10710 python_prog
=missing
10711 python_prefix
=${with_python}
10713 elif test -x "${with_python}"; then
10714 # While we can't run python compiled for $host (unless host == build),
10715 # the user could write a script that provides the needed information,
10716 # so we support that.
10717 python_prog
=${with_python}
10720 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10724 # Disallow --with-python=foo/bar.
10725 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10728 # The user has either specified auto, yes, or the name of the python
10729 # program assumed to be in $PATH.
10731 case "${with_python}" in
10733 if test ${build} = ${host}; then
10734 # Extract the first word of "python", so it can be a program name with args.
10735 set dummy python
; ac_word
=$2
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737 $as_echo_n "checking for $ac_word... " >&6; }
10738 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10741 case $python_prog_path in
10743 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10747 for as_dir
in $PATH
10750 test -z "$as_dir" && as_dir
=.
10751 for ac_exec_ext
in '' $ac_executable_extensions; do
10752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10753 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10765 python_prog_path
=$ac_cv_path_python_prog_path
10766 if test -n "$python_prog_path"; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10768 $as_echo "$python_prog_path" >&6; }
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771 $as_echo "no" >&6; }
10775 if test "${python_prog_path}" = missing
; then
10776 python_prog
=missing
10778 python_prog
=${python_prog_path}
10781 # Not much we can do except assume the cross-compiler will find the
10783 python_prog
=missing
10787 # While we can't run python compiled for $host (unless host == build),
10788 # the user could write a script that provides the needed information,
10789 # so we support that.
10790 python_prog
="${with_python}"
10791 # Extract the first word of "${python_prog}", so it can be a program name with args.
10792 set dummy
${python_prog}; ac_word
=$2
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10794 $as_echo_n "checking for $ac_word... " >&6; }
10795 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10798 case $python_prog_path in
10800 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10804 for as_dir
in $PATH
10807 test -z "$as_dir" && as_dir
=.
10808 for ac_exec_ext
in '' $ac_executable_extensions; do
10809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10810 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10822 python_prog_path
=$ac_cv_path_python_prog_path
10823 if test -n "$python_prog_path"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10825 $as_echo "$python_prog_path" >&6; }
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10832 if test "${python_prog_path}" = missing
; then
10833 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
10839 if test "${python_prog}" != missing
; then
10840 # We have a python program to use, but it may be too old.
10841 # Don't flag an error for --with-python=auto (the default).
10842 have_python_config
=yes
10843 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10844 if test $?
!= 0; then
10845 have_python_config
=failed
10846 if test "${with_python}" != auto
; then
10847 as_fn_error
"failure running python-config --includes" "$LINENO" 5
10850 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10851 if test $?
!= 0; then
10852 have_python_config
=failed
10853 if test "${with_python}" != auto
; then
10854 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
10857 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10858 if test $?
!= 0; then
10859 have_python_config
=failed
10860 if test "${with_python}" != auto
; then
10861 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
10865 # We do not have a python executable we can use to determine where
10866 # to find the Python headers and libs. We cannot guess the include
10867 # path from the python_prefix either, because that include path
10868 # depends on the Python version. So, there is nothing much we can
10869 # do except assume that the compiler will be able to find those files.
10872 have_python_config
=no
10875 # If we have python-config, only try the configuration it provides.
10876 # Otherwise fallback on the old way of trying different versions of
10880 if test "${have_python_config}" = yes; then
10881 # Determine the Python version by extracting "-lpython<version>"
10882 # part of the python_libs. <version> is usually X.Y with X and Y
10883 # being decimal numbers, but can also be XY (seen on Windows).
10885 # The extraction is performed using sed with a regular expression.
10886 # Initially, the regexp used was using the '?' quantifier to make
10887 # the dot in the version number optional. Unfortunately, this
10888 # does not work with non-GNU versions of sed because, because of
10889 # what looks like a limitation (the '?' quantifier does not work
10890 # with back-references). We work around this limitation by using
10891 # the '*' quantifier instead. It means that, in theory, we might
10892 # match unexpected version strings such as "-lpython2..7", but
10893 # this seems unlikely in practice. And even if that happens,
10894 # an error will be triggered later on, when checking that version
10896 python_version
=`echo " ${python_libs} " \
10897 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10898 case "${python_version}" in
10901 version
=${python_version}
10903 new_CPPFLAGS
=${python_includes}
10904 new_LIBS
=${python_libs}
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10906 $as_echo_n "checking for ${version}... " >&6; }
10907 save_CPPFLAGS
=$CPPFLAGS
10909 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10910 LIBS
="$LIBS $new_LIBS"
10911 found_usable_python
=no
10912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914 #include "Python.h"
10923 if ac_fn_c_try_link
"$LINENO"; then :
10924 have_libpython
=${version}
10925 found_usable_python
=yes
10926 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10927 PYTHON_LIBS
=$new_LIBS
10929 rm -f core conftest.err conftest.
$ac_objext \
10930 conftest
$ac_exeext conftest.
$ac_ext
10931 CPPFLAGS
=$save_CPPFLAGS
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10934 $as_echo "${found_usable_python}" >&6; }
10938 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
10941 elif test "${have_python_config}" != failed
; then
10942 if test "${have_libpython}" = no
; then
10946 new_CPPFLAGS
=${python_includes}
10947 new_LIBS
="${python_libs} -lpython2.7"
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10949 $as_echo_n "checking for ${version}... " >&6; }
10950 save_CPPFLAGS
=$CPPFLAGS
10952 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10953 LIBS
="$LIBS $new_LIBS"
10954 found_usable_python
=no
10955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10957 #include "Python.h"
10966 if ac_fn_c_try_link
"$LINENO"; then :
10967 have_libpython
=${version}
10968 found_usable_python
=yes
10969 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10970 PYTHON_LIBS
=$new_LIBS
10972 rm -f core conftest.err conftest.
$ac_objext \
10973 conftest
$ac_exeext conftest.
$ac_ext
10974 CPPFLAGS
=$save_CPPFLAGS
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10977 $as_echo "${found_usable_python}" >&6; }
10980 if test "${have_libpython}" = no
; then
10984 new_CPPFLAGS
=${python_includes}
10985 new_LIBS
="${python_libs} -lpython2.6"
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10987 $as_echo_n "checking for ${version}... " >&6; }
10988 save_CPPFLAGS
=$CPPFLAGS
10990 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10991 LIBS
="$LIBS $new_LIBS"
10992 found_usable_python
=no
10993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10995 #include "Python.h"
11004 if ac_fn_c_try_link
"$LINENO"; then :
11005 have_libpython
=${version}
11006 found_usable_python
=yes
11007 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11008 PYTHON_LIBS
=$new_LIBS
11010 rm -f core conftest.err conftest.
$ac_objext \
11011 conftest
$ac_exeext conftest.
$ac_ext
11012 CPPFLAGS
=$save_CPPFLAGS
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11015 $as_echo "${found_usable_python}" >&6; }
11018 if test ${have_libpython} = no
; then
11022 new_CPPFLAGS
=${python_includes}
11023 new_LIBS
="${python_libs} -lpython2.5"
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11025 $as_echo_n "checking for ${version}... " >&6; }
11026 save_CPPFLAGS
=$CPPFLAGS
11028 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11029 LIBS
="$LIBS $new_LIBS"
11030 found_usable_python
=no
11031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11033 #include "Python.h"
11042 if ac_fn_c_try_link
"$LINENO"; then :
11043 have_libpython
=${version}
11044 found_usable_python
=yes
11045 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11046 PYTHON_LIBS
=$new_LIBS
11048 rm -f core conftest.err conftest.
$ac_objext \
11049 conftest
$ac_exeext conftest.
$ac_ext
11050 CPPFLAGS
=$save_CPPFLAGS
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11053 $as_echo "${found_usable_python}" >&6; }
11056 if test ${have_libpython} = no
; then
11060 new_CPPFLAGS
=${python_includes}
11061 new_LIBS
="${python_libs} -lpython2.4"
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11063 $as_echo_n "checking for ${version}... " >&6; }
11064 save_CPPFLAGS
=$CPPFLAGS
11066 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11067 LIBS
="$LIBS $new_LIBS"
11068 found_usable_python
=no
11069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11071 #include "Python.h"
11080 if ac_fn_c_try_link
"$LINENO"; then :
11081 have_libpython
=${version}
11082 found_usable_python
=yes
11083 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11084 PYTHON_LIBS
=$new_LIBS
11086 rm -f core conftest.err conftest.
$ac_objext \
11087 conftest
$ac_exeext conftest.
$ac_ext
11088 CPPFLAGS
=$save_CPPFLAGS
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11091 $as_echo "${found_usable_python}" >&6; }
11095 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
11097 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
11099 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
11101 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
11103 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
11105 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
11107 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
11109 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
11113 if test "${have_libpython}" = no
; then
11114 case "${with_python}" in
11116 as_fn_error
"python is missing or unusable" "$LINENO" 5
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11120 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11123 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
11127 if test -n "${python_prefix}"; then
11129 cat >>confdefs.h
<<_ACEOF
11130 #define WITH_PYTHON_PATH "${python_prefix}"
11134 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11135 if test "x$prefix" = xNONE
; then
11136 test_prefix
=/usr
/local
11138 test_prefix
=$prefix
11141 test_prefix
=$exec_prefix
11144 case ${python_prefix} in
11145 "${test_prefix}"|
"${test_prefix}/"*|\
11146 '${exec_prefix}'|
'${exec_prefix}/'*)
11151 cat >>confdefs.h
<<_ACEOF
11152 #define PYTHON_PATH_RELOCATABLE $value
11160 if test "${have_libpython}" != no
; then
11162 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11164 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11165 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11166 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11167 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
11168 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11170 # Flags needed to compile Python code (taken from python-config --cflags).
11171 # We cannot call python-config directly because it will output whatever was
11172 # used when compiling the Python interpreter itself, including flags which
11173 # would make the python-related objects be compiled differently from the
11174 # rest of GDB (e.g., -O2 and -fPIC).
11175 if test "${GCC}" = yes; then
11176 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
11179 if test "x${tentative_python_cflags}" != x
; then
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11181 $as_echo_n "checking compiler flags for python code... " >&6; }
11182 for flag
in ${tentative_python_cflags}; do
11183 # Check that the compiler accepts it
11184 saved_CFLAGS
="$CFLAGS"
11185 CFLAGS
="$CFLAGS $flag"
11186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11197 if ac_fn_c_try_compile
"$LINENO"; then :
11198 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11201 CFLAGS
="$saved_CFLAGS"
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11204 $as_echo "${PYTHON_CFLAGS}" >&6; }
11207 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
11209 # #define siginfo __siginfo
11211 # The problem is that including Python causes some XOPEN macros to be
11212 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
11213 # to false. So, we work around this issue by defining siginfo ourself
11214 # though the command-line.
11215 case "$gdb_host" in
11216 irix
*) if test "${GCC}" = yes; then
11217 CPPFLAGS
="$CPPFLAGS -Dsiginfo=__siginfo"
11222 # Even if Python support is not compiled in, we need to have these files
11224 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
11225 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
11226 python/py-prettyprint.c python/py-auto-load.c"
11232 # ------------------------- #
11233 # Checks for header files. #
11234 # ------------------------- #
11236 ac_header_dirent
=no
11237 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11238 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11240 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11241 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11242 $as_echo_n "(cached) " >&6
11244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11246 #include <sys/types.h>
11258 if ac_fn_c_try_compile
"$LINENO"; then :
11259 eval "$as_ac_Header=yes"
11261 eval "$as_ac_Header=no"
11263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11265 eval ac_res
=\$
$as_ac_Header
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11267 $as_echo "$ac_res" >&6; }
11268 eval as_val
=\$
$as_ac_Header
11269 if test "x$as_val" = x
""yes; then :
11270 cat >>confdefs.h
<<_ACEOF
11271 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11274 ac_header_dirent
=$ac_hdr; break
11278 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11279 if test $ac_header_dirent = dirent.h
; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11281 $as_echo_n "checking for library containing opendir... " >&6; }
11282 if test "${ac_cv_search_opendir+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11285 ac_func_search_save_LIBS
=$LIBS
11286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11304 for ac_lib
in '' dir
; do
11305 if test -z "$ac_lib"; then
11306 ac_res
="none required"
11309 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11311 if ac_fn_c_try_link
"$LINENO"; then :
11312 ac_cv_search_opendir
=$ac_res
11314 rm -f core conftest.err conftest.
$ac_objext \
11316 if test "${ac_cv_search_opendir+set}" = set; then :
11320 if test "${ac_cv_search_opendir+set}" = set; then :
11323 ac_cv_search_opendir
=no
11325 rm conftest.
$ac_ext
11326 LIBS
=$ac_func_search_save_LIBS
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11329 $as_echo "$ac_cv_search_opendir" >&6; }
11330 ac_res
=$ac_cv_search_opendir
11331 if test "$ac_res" != no
; then :
11332 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11338 $as_echo_n "checking for library containing opendir... " >&6; }
11339 if test "${ac_cv_search_opendir+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11342 ac_func_search_save_LIBS
=$LIBS
11343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11361 for ac_lib
in '' x
; do
11362 if test -z "$ac_lib"; then
11363 ac_res
="none required"
11366 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11368 if ac_fn_c_try_link
"$LINENO"; then :
11369 ac_cv_search_opendir
=$ac_res
11371 rm -f core conftest.err conftest.
$ac_objext \
11373 if test "${ac_cv_search_opendir+set}" = set; then :
11377 if test "${ac_cv_search_opendir+set}" = set; then :
11380 ac_cv_search_opendir
=no
11382 rm conftest.
$ac_ext
11383 LIBS
=$ac_func_search_save_LIBS
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11386 $as_echo "$ac_cv_search_opendir" >&6; }
11387 ac_res
=$ac_cv_search_opendir
11388 if test "$ac_res" != no
; then :
11389 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11396 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11397 if test "${ac_cv_header_stat_broken+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11402 #include <sys/types.h>
11403 #include <sys/stat.h>
11405 #if defined S_ISBLK && defined S_IFDIR
11406 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11409 #if defined S_ISBLK && defined S_IFCHR
11410 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11413 #if defined S_ISLNK && defined S_IFREG
11414 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11417 #if defined S_ISSOCK && defined S_IFREG
11418 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11422 if ac_fn_c_try_compile
"$LINENO"; then :
11423 ac_cv_header_stat_broken
=no
11425 ac_cv_header_stat_broken
=yes
11427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11430 $as_echo "$ac_cv_header_stat_broken" >&6; }
11431 if test $ac_cv_header_stat_broken = yes; then
11433 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11438 $as_echo_n "checking for ANSI C header files... " >&6; }
11439 if test "${ac_cv_header_stdc+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444 #include <stdlib.h>
11445 #include <stdarg.h>
11446 #include <string.h>
11457 if ac_fn_c_try_compile
"$LINENO"; then :
11458 ac_cv_header_stdc
=yes
11460 ac_cv_header_stdc
=no
11462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11464 if test $ac_cv_header_stdc = yes; then
11465 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11468 #include <string.h>
11471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11472 $EGREP "memchr" >/dev
/null
2>&1; then :
11475 ac_cv_header_stdc
=no
11481 if test $ac_cv_header_stdc = yes; then
11482 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h. */
11485 #include <stdlib.h>
11488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11489 $EGREP "free" >/dev
/null
2>&1; then :
11492 ac_cv_header_stdc
=no
11498 if test $ac_cv_header_stdc = yes; then
11499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11500 if test "$cross_compiling" = yes; then :
11503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11506 #include <stdlib.h>
11507 #if ((' ' & 0x0FF) == 0x020)
11508 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11509 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11511 # define ISLOWER(c) \
11512 (('a' <= (c) && (c) <= 'i') \
11513 || ('j' <= (c) && (c) <= 'r') \
11514 || ('s' <= (c) && (c) <= 'z'))
11515 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11518 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11523 for (i = 0; i < 256; i++)
11524 if (XOR (islower (i), ISLOWER (i))
11525 || toupper (i) != TOUPPER (i))
11530 if ac_fn_c_try_run
"$LINENO"; then :
11533 ac_cv_header_stdc
=no
11535 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11536 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11542 $as_echo "$ac_cv_header_stdc" >&6; }
11543 if test $ac_cv_header_stdc = yes; then
11545 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11549 # elf_hp.h is for HP/UX 64-bit shared library support.
11550 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11551 # unconditionally, so what's the point in checking these?
11552 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
11553 thread_db.h gnu
/libc-version.h signal.h stddef.h \
11554 stdlib.h string.h memory.h
strings.h sys
/fault.h \
11555 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11556 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
11557 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
11558 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
11559 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
11561 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11562 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11563 eval as_val
=\$
$as_ac_Header
11564 if test "x$as_val" = x
""yes; then :
11565 cat >>confdefs.h
<<_ACEOF
11566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11573 for ac_header
in link.h
11575 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11576 # include <sys/types.h>
11579 # include <nlist.h>
11583 if test "x$ac_cv_header_link_h" = x
""yes; then :
11584 cat >>confdefs.h
<<_ACEOF
11585 #define HAVE_LINK_H 1
11592 for ac_header
in sys
/proc.h
11594 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11595 # include <sys/param.h>
11599 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
11600 cat >>confdefs.h
<<_ACEOF
11601 #define HAVE_SYS_PROC_H 1
11608 for ac_header
in sys
/user.h
11610 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11611 # include <sys/param.h>
11615 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
11616 cat >>confdefs.h
<<_ACEOF
11617 #define HAVE_SYS_USER_H 1
11625 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11626 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11627 # think that we don't have <curses.h> if we're using GCC.
11630 if test "$GCC" = yes; then
11632 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11636 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
11638 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11639 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11640 eval as_val
=\$
$as_ac_Header
11641 if test "x$as_val" = x
""yes; then :
11642 cat >>confdefs.h
<<_ACEOF
11643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11650 for ac_header
in term.h
11652 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11653 # include <curses.h>
11657 if test "x$ac_cv_header_term_h" = x
""yes; then :
11658 cat >>confdefs.h
<<_ACEOF
11659 #define HAVE_TERM_H 1
11667 # ------------------------- #
11668 # Checks for declarations. #
11669 # ------------------------- #
11671 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11672 if test "x$ac_cv_have_decl_free" = x
""yes; then :
11678 cat >>confdefs.h
<<_ACEOF
11679 #define HAVE_DECL_FREE $ac_have_decl
11681 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11682 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
11688 cat >>confdefs.h
<<_ACEOF
11689 #define HAVE_DECL_MALLOC $ac_have_decl
11691 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11692 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
11698 cat >>confdefs.h
<<_ACEOF
11699 #define HAVE_DECL_REALLOC $ac_have_decl
11701 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11702 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
11708 cat >>confdefs.h
<<_ACEOF
11709 #define HAVE_DECL_STRERROR $ac_have_decl
11711 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11712 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
11718 cat >>confdefs.h
<<_ACEOF
11719 #define HAVE_DECL_STRSTR $ac_have_decl
11721 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11722 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
11728 cat >>confdefs.h
<<_ACEOF
11729 #define HAVE_DECL_GETOPT $ac_have_decl
11731 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11732 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
11738 cat >>confdefs.h
<<_ACEOF
11739 #define HAVE_DECL_SNPRINTF $ac_have_decl
11741 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11742 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
11748 cat >>confdefs.h
<<_ACEOF
11749 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11754 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11755 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
11758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760 #include <locale.h>
11769 if ac_fn_c_try_link
"$LINENO"; then :
11770 am_cv_val_LC_MESSAGES
=yes
11772 am_cv_val_LC_MESSAGES
=no
11774 rm -f core conftest.err conftest.
$ac_objext \
11775 conftest
$ac_exeext conftest.
$ac_ext
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11778 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11779 if test $am_cv_val_LC_MESSAGES = yes; then
11781 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11786 # ----------------------- #
11787 # Checks for structures. #
11788 # ----------------------- #
11790 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11791 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
11793 cat >>confdefs.h
<<_ACEOF
11794 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11799 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11800 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
11802 cat >>confdefs.h
<<_ACEOF
11803 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11810 # ------------------ #
11811 # Checks for types. #
11812 # ------------------ #
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11815 $as_echo_n "checking return type of signal handlers... " >&6; }
11816 if test "${ac_cv_type_signal+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11821 #include <sys/types.h>
11822 #include <signal.h>
11827 return *(signal (0, 0)) (0) == 1;
11832 if ac_fn_c_try_compile
"$LINENO"; then :
11833 ac_cv_type_signal
=int
11835 ac_cv_type_signal
=void
11837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11840 $as_echo "$ac_cv_type_signal" >&6; }
11842 cat >>confdefs.h
<<_ACEOF
11843 #define RETSIGTYPE $ac_cv_type_signal
11847 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11848 #include <sys/socket.h>
11851 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
11853 cat >>confdefs.h
<<_ACEOF
11854 #define HAVE_SOCKLEN_T 1
11861 # ------------------------------------- #
11862 # Checks for compiler characteristics. #
11863 # ------------------------------------- #
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11866 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11867 if test "${ac_cv_c_const+set}" = set; then :
11868 $as_echo_n "(cached) " >&6
11870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h. */
11876 /* FIXME: Include the comments suggested by Paul. */
11877 #ifndef __cplusplus
11878 /* Ultrix mips cc rejects this. */
11879 typedef int charset[2];
11881 /* SunOS 4.1.1 cc rejects this. */
11882 char const *const *pcpcc;
11884 /* NEC SVR4.0.2 mips cc rejects this. */
11885 struct point {int x, y;};
11886 static struct point const zero = {0,0};
11887 /* AIX XL C 1.02.0.0 rejects this.
11888 It does not let you subtract one const X* pointer from another in
11889 an arm of an if-expression whose if-part is not a constant
11891 const char *g = "string";
11892 pcpcc = &g + (g ? g-g : 0);
11893 /* HPUX 7.0 cc rejects these. */
11895 ppc = (char**) pcpcc;
11896 pcpcc = (char const *const *) ppc;
11897 { /* SCO 3.2v4 cc rejects this. */
11899 char const *s = 0 ? (char *) 0 : (char const *) 0;
11904 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11905 int x[] = {25, 17};
11906 const int *foo = &x[0];
11909 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11910 typedef const int *iptr;
11914 { /* AIX XL C 1.02.0.0 rejects this saying
11915 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11916 struct s { int j; const int *ap[3]; };
11917 struct s *b; b->j = 5;
11919 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11920 const int foo = 10;
11921 if (!foo) return 0;
11923 return !cs[0] && !zero.x;
11930 if ac_fn_c_try_compile
"$LINENO"; then :
11935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11938 $as_echo "$ac_cv_c_const" >&6; }
11939 if test $ac_cv_c_const = no
; then
11941 $as_echo "#define const /**/" >>confdefs.h
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11946 $as_echo_n "checking for inline... " >&6; }
11947 if test "${ac_cv_c_inline+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11951 for ac_kw
in inline __inline__ __inline
; do
11952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11954 #ifndef __cplusplus
11956 static $ac_kw foo_t static_foo () {return 0; }
11957 $ac_kw foo_t foo () {return 0; }
11961 if ac_fn_c_try_compile
"$LINENO"; then :
11962 ac_cv_c_inline
=$ac_kw
11964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11965 test "$ac_cv_c_inline" != no
&& break
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11970 $as_echo "$ac_cv_c_inline" >&6; }
11972 case $ac_cv_c_inline in
11975 case $ac_cv_c_inline in
11977 *) ac_val
=$ac_cv_c_inline;;
11979 cat >>confdefs.h
<<_ACEOF
11980 #ifndef __cplusplus
11981 #define inline $ac_val
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11988 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11989 if test "${ac_cv_c_bigendian+set}" = set; then :
11990 $as_echo_n "(cached) " >&6
11992 ac_cv_c_bigendian
=unknown
11993 # See if we're dealing with a universal compiler.
11994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996 #ifndef __APPLE_CC__
11997 not a universal capable compiler
12002 if ac_fn_c_try_compile
"$LINENO"; then :
12004 # Check for potential -arch flags. It is not universal unless
12005 # there are at least two -arch flags with different values.
12008 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12009 if test -n "$ac_prev"; then
12011 i?
86 | x86_64 | ppc | ppc64
)
12012 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12015 ac_cv_c_bigendian
=universal
12021 elif test "x$ac_word" = "x-arch"; then
12026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12027 if test $ac_cv_c_bigendian = unknown
; then
12028 # See if sys/param.h defines the BYTE_ORDER macro.
12029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12031 #include <sys/types.h>
12032 #include <sys/param.h>
12037 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12038 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12040 bogus endian macros
12047 if ac_fn_c_try_compile
"$LINENO"; then :
12048 # It does; now see whether it defined to BIG_ENDIAN or not.
12049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051 #include <sys/types.h>
12052 #include <sys/param.h>
12057 #if BYTE_ORDER != BIG_ENDIAN
12065 if ac_fn_c_try_compile
"$LINENO"; then :
12066 ac_cv_c_bigendian
=yes
12068 ac_cv_c_bigendian
=no
12070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12074 if test $ac_cv_c_bigendian = unknown
; then
12075 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12078 #include <limits.h>
12083 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12084 bogus endian macros
12091 if ac_fn_c_try_compile
"$LINENO"; then :
12092 # It does; now see whether it defined to _BIG_ENDIAN or not.
12093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095 #include <limits.h>
12100 #ifndef _BIG_ENDIAN
12108 if ac_fn_c_try_compile
"$LINENO"; then :
12109 ac_cv_c_bigendian
=yes
12111 ac_cv_c_bigendian
=no
12113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12117 if test $ac_cv_c_bigendian = unknown
; then
12118 # Compile a test program.
12119 if test "$cross_compiling" = yes; then :
12120 # Try to guess by grepping values from an object file.
12121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12123 short int ascii_mm[] =
12124 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12125 short int ascii_ii[] =
12126 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12127 int use_ascii (int i) {
12128 return ascii_mm[i] + ascii_ii[i];
12130 short int ebcdic_ii[] =
12131 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12132 short int ebcdic_mm[] =
12133 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12134 int use_ebcdic (int i) {
12135 return ebcdic_mm[i] + ebcdic_ii[i];
12142 return use_ascii (foo) == use_ebcdic (foo);
12147 if ac_fn_c_try_compile
"$LINENO"; then :
12148 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12149 ac_cv_c_bigendian
=yes
12151 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12152 if test "$ac_cv_c_bigendian" = unknown
; then
12153 ac_cv_c_bigendian
=no
12155 # finding both strings is unlikely to happen, but who knows?
12156 ac_cv_c_bigendian
=unknown
12160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12164 $ac_includes_default
12169 /* Are we little or big endian? From Harbison&Steele. */
12173 char c[sizeof (long int)];
12176 return u.c[sizeof (long int) - 1] == 1;
12182 if ac_fn_c_try_run
"$LINENO"; then :
12183 ac_cv_c_bigendian
=no
12185 ac_cv_c_bigendian
=yes
12187 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12188 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12194 $as_echo "$ac_cv_c_bigendian" >&6; }
12195 case $ac_cv_c_bigendian in #(
12197 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12203 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12207 as_fn_error
"unknown endianness
12208 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12212 # ------------------------------ #
12213 # Checks for library functions. #
12214 # ------------------------------ #
12216 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12217 # for constant arguments. Useless!
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12219 $as_echo_n "checking for working alloca.h... " >&6; }
12220 if test "${ac_cv_working_alloca_h+set}" = set; then :
12221 $as_echo_n "(cached) " >&6
12223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12225 #include <alloca.h>
12229 char *p = (char *) alloca (2 * sizeof (int));
12235 if ac_fn_c_try_link
"$LINENO"; then :
12236 ac_cv_working_alloca_h
=yes
12238 ac_cv_working_alloca_h
=no
12240 rm -f core conftest.err conftest.
$ac_objext \
12241 conftest
$ac_exeext conftest.
$ac_ext
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12244 $as_echo "$ac_cv_working_alloca_h" >&6; }
12245 if test $ac_cv_working_alloca_h = yes; then
12247 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12252 $as_echo_n "checking for alloca... " >&6; }
12253 if test "${ac_cv_func_alloca_works+set}" = set; then :
12254 $as_echo_n "(cached) " >&6
12256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12259 # define alloca __builtin_alloca
12262 # include <malloc.h>
12263 # define alloca _alloca
12265 # ifdef HAVE_ALLOCA_H
12266 # include <alloca.h>
12271 # ifndef alloca /* predefined by HP cc +Olibcalls */
12282 char *p = (char *) alloca (1);
12288 if ac_fn_c_try_link
"$LINENO"; then :
12289 ac_cv_func_alloca_works
=yes
12291 ac_cv_func_alloca_works
=no
12293 rm -f core conftest.err conftest.
$ac_objext \
12294 conftest
$ac_exeext conftest.
$ac_ext
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12297 $as_echo "$ac_cv_func_alloca_works" >&6; }
12299 if test $ac_cv_func_alloca_works = yes; then
12301 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12304 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12305 # that cause trouble. Some versions do not even contain alloca or
12306 # contain a buggy version. If you still want to use their alloca,
12307 # use ar to extract alloca.o from them instead of compiling alloca.c.
12309 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12311 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12315 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12316 if test "${ac_cv_os_cray+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12321 #if defined CRAY && ! defined CRAY2
12328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12329 $EGREP "webecray" >/dev
/null
2>&1; then :
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12338 $as_echo "$ac_cv_os_cray" >&6; }
12339 if test $ac_cv_os_cray = yes; then
12340 for ac_func
in _getb67 GETB67 getb67
; do
12341 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12342 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12343 eval as_val
=\$
$as_ac_var
12344 if test "x$as_val" = x
""yes; then :
12346 cat >>confdefs.h
<<_ACEOF
12347 #define CRAY_STACKSEG_END $ac_func
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12357 $as_echo_n "checking stack direction for C alloca... " >&6; }
12358 if test "${ac_cv_c_stack_direction+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12361 if test "$cross_compiling" = yes; then :
12362 ac_cv_c_stack_direction
=0
12364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h. */
12366 $ac_includes_default
12368 find_stack_direction ()
12370 static char *addr = 0;
12375 return find_stack_direction ();
12378 return (&dummy > addr) ? 1 : -1;
12384 return find_stack_direction () < 0;
12387 if ac_fn_c_try_run
"$LINENO"; then :
12388 ac_cv_c_stack_direction
=1
12390 ac_cv_c_stack_direction
=-1
12392 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12393 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12398 $as_echo "$ac_cv_c_stack_direction" >&6; }
12399 cat >>confdefs.h
<<_ACEOF
12400 #define STACK_DIRECTION $ac_cv_c_stack_direction
12406 for ac_header
in stdlib.h unistd.h
12408 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12409 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12410 eval as_val
=\$
$as_ac_Header
12411 if test "x$as_val" = x
""yes; then :
12412 cat >>confdefs.h
<<_ACEOF
12413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12420 for ac_func
in getpagesize
12422 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12423 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12424 cat >>confdefs.h
<<_ACEOF
12425 #define HAVE_GETPAGESIZE 1
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12432 $as_echo_n "checking for working mmap... " >&6; }
12433 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12434 $as_echo_n "(cached) " >&6
12436 if test "$cross_compiling" = yes; then :
12437 ac_cv_func_mmap_fixed_mapped
=no
12439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12441 $ac_includes_default
12442 /* malloc might have been renamed as rpl_malloc. */
12445 /* Thanks to Mike Haertel and Jim Avera for this test.
12446 Here is a matrix of mmap possibilities:
12447 mmap private not fixed
12448 mmap private fixed at somewhere currently unmapped
12449 mmap private fixed at somewhere already mapped
12450 mmap shared not fixed
12451 mmap shared fixed at somewhere currently unmapped
12452 mmap shared fixed at somewhere already mapped
12453 For private mappings, we should verify that changes cannot be read()
12454 back from the file, nor mmap's back from the file at a different
12455 address. (There have been systems where private was not correctly
12456 implemented like the infamous i386 svr4.0, and systems where the
12457 VM page cache was not coherent with the file system buffer cache
12458 like early versions of FreeBSD and possibly contemporary NetBSD.)
12459 For shared mappings, we should conversely verify that changes get
12460 propagated back to all the places they're supposed to be.
12462 Grep wants private fixed already mapped.
12463 The main things grep needs to know about mmap are:
12464 * does it exist and is it safe to write into the mmap'd area
12465 * how to use it (BSD variants) */
12468 #include <sys/mman.h>
12470 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12474 /* This mess was copied from the GNU getpagesize.h. */
12475 #ifndef HAVE_GETPAGESIZE
12476 /* Assume that all systems that can run configure have sys/param.h. */
12477 # ifndef HAVE_SYS_PARAM_H
12478 # define HAVE_SYS_PARAM_H 1
12481 # ifdef _SC_PAGESIZE
12482 # define getpagesize() sysconf(_SC_PAGESIZE)
12483 # else /* no _SC_PAGESIZE */
12484 # ifdef HAVE_SYS_PARAM_H
12485 # include <sys/param.h>
12486 # ifdef EXEC_PAGESIZE
12487 # define getpagesize() EXEC_PAGESIZE
12488 # else /* no EXEC_PAGESIZE */
12490 # define getpagesize() NBPG * CLSIZE
12493 # endif /* no CLSIZE */
12494 # else /* no NBPG */
12496 # define getpagesize() NBPC
12497 # else /* no NBPC */
12499 # define getpagesize() PAGESIZE
12500 # endif /* PAGESIZE */
12501 # endif /* no NBPC */
12502 # endif /* no NBPG */
12503 # endif /* no EXEC_PAGESIZE */
12504 # else /* no HAVE_SYS_PARAM_H */
12505 # define getpagesize() 8192 /* punt totally */
12506 # endif /* no HAVE_SYS_PARAM_H */
12507 # endif /* no _SC_PAGESIZE */
12509 #endif /* no HAVE_GETPAGESIZE */
12514 char *data, *data2, *data3;
12518 pagesize = getpagesize ();
12520 /* First, make a file with some known garbage in it. */
12521 data = (char *) malloc (pagesize);
12524 for (i = 0; i < pagesize; ++i)
12525 *(data + i) = rand ();
12527 fd = creat ("conftest.mmap", 0600);
12530 if (write (fd, data, pagesize) != pagesize)
12534 /* Next, try to mmap the file at a fixed address which already has
12535 something else allocated at it. If we can, also make sure that
12536 we see the same garbage. */
12537 fd = open ("conftest.mmap", O_RDWR);
12540 data2 = (char *) malloc (2 * pagesize);
12543 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12544 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12545 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12547 for (i = 0; i < pagesize; ++i)
12548 if (*(data + i) != *(data2 + i))
12551 /* Finally, make sure that changes to the mapped area do not
12552 percolate back to the file as seen by read(). (This is a bug on
12553 some variants of i386 svr4.0.) */
12554 for (i = 0; i < pagesize; ++i)
12555 *(data2 + i) = *(data2 + i) + 1;
12556 data3 = (char *) malloc (pagesize);
12559 if (read (fd, data3, pagesize) != pagesize)
12561 for (i = 0; i < pagesize; ++i)
12562 if (*(data + i) != *(data3 + i))
12568 if ac_fn_c_try_run
"$LINENO"; then :
12569 ac_cv_func_mmap_fixed_mapped
=yes
12571 ac_cv_func_mmap_fixed_mapped
=no
12573 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12574 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12579 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12580 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12582 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12585 rm -f conftest.mmap
12587 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12588 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12592 cat >>confdefs.h
<<_ACEOF
12598 for ac_header
in vfork.h
12600 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12601 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12602 cat >>confdefs.h
<<_ACEOF
12603 #define HAVE_VFORK_H 1
12610 for ac_func
in fork vfork
12612 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12613 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12614 eval as_val
=\$
$as_ac_var
12615 if test "x$as_val" = x
""yes; then :
12616 cat >>confdefs.h
<<_ACEOF
12617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12623 if test "x$ac_cv_func_fork" = xyes
; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12625 $as_echo_n "checking for working fork... " >&6; }
12626 if test "${ac_cv_func_fork_works+set}" = set; then :
12627 $as_echo_n "(cached) " >&6
12629 if test "$cross_compiling" = yes; then :
12630 ac_cv_func_fork_works
=cross
12632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 $ac_includes_default
12639 /* By Ruediger Kuhlmann. */
12640 return fork () < 0;
12646 if ac_fn_c_try_run
"$LINENO"; then :
12647 ac_cv_func_fork_works
=yes
12649 ac_cv_func_fork_works
=no
12651 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12652 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12657 $as_echo "$ac_cv_func_fork_works" >&6; }
12660 ac_cv_func_fork_works
=$ac_cv_func_fork
12662 if test "x$ac_cv_func_fork_works" = xcross
; then
12664 *-*-amigaos* |
*-*-msdosdjgpp*)
12665 # Override, as these systems have only a dummy fork() stub
12666 ac_cv_func_fork_works
=no
12669 ac_cv_func_fork_works
=yes
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12673 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12675 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12676 if test "x$ac_cv_func_vfork" = xyes
; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12678 $as_echo_n "checking for working vfork... " >&6; }
12679 if test "${ac_cv_func_vfork_works+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12682 if test "$cross_compiling" = yes; then :
12683 ac_cv_func_vfork_works
=cross
12685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12687 /* Thanks to Paul Eggert for this test. */
12688 $ac_includes_default
12689 #include <sys/wait.h>
12690 #ifdef HAVE_VFORK_H
12691 # include <vfork.h>
12693 /* On some sparc systems, changes by the child to local and incoming
12694 argument registers are propagated back to the parent. The compiler
12695 is told about this with #include <vfork.h>, but some compilers
12696 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12697 static variable whose address is put into a register that is
12698 clobbered by the vfork. */
12701 sparc_address_test (int arg)
12703 sparc_address_test (arg) int arg;
12706 static pid_t child;
12724 pid_t parent = getpid ();
12727 sparc_address_test (0);
12732 /* Here is another test for sparc vfork register problems. This
12733 test uses lots of local variables, at least as many local
12734 variables as main has allocated so far including compiler
12735 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12736 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12737 reuse the register of parent for one of the local variables,
12738 since it will think that parent can't possibly be used any more
12739 in this routine. Assigning to the local variable will thus
12740 munge parent in the parent process. */
12742 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12743 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12744 /* Convince the compiler that p..p7 are live; otherwise, it might
12745 use the same hardware register for all 8 local variables. */
12746 if (p != p1 || p != p2 || p != p3 || p != p4
12747 || p != p5 || p != p6 || p != p7)
12750 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12751 from child file descriptors. If the child closes a descriptor
12752 before it execs or exits, this munges the parent's descriptor
12753 as well. Test for this by closing stdout in the child. */
12754 _exit(close(fileno(stdout)) != 0);
12759 while (wait(&status) != child)
12762 /* Was there some problem with vforking? */
12765 /* Did the child fail? (This shouldn't happen.) */
12768 /* Did the vfork/compiler bug occur? */
12769 || parent != getpid()
12771 /* Did the file descriptor bug occur? */
12772 || fstat(fileno(stdout), &st) != 0
12777 if ac_fn_c_try_run
"$LINENO"; then :
12778 ac_cv_func_vfork_works
=yes
12780 ac_cv_func_vfork_works
=no
12782 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12783 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12788 $as_echo "$ac_cv_func_vfork_works" >&6; }
12791 if test "x$ac_cv_func_fork_works" = xcross
; then
12792 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12794 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12797 if test "x$ac_cv_func_vfork_works" = xyes
; then
12799 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12803 $as_echo "#define vfork fork" >>confdefs.h
12806 if test "x$ac_cv_func_fork_works" = xyes
; then
12808 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12812 for ac_func
in canonicalize_file_name realpath getrusage getuid \
12813 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
12814 sigaction sigprocmask sigsetmask socketpair syscall \
12815 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12816 setrlimit getrlimit posix_madvise waitpid
12818 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12819 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12820 eval as_val
=\$
$as_ac_var
12821 if test "x$as_val" = x
""yes; then :
12822 cat >>confdefs.h
<<_ACEOF
12823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12831 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12832 if test "${am_cv_langinfo_codeset+set}" = set; then :
12833 $as_echo_n "(cached) " >&6
12835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12836 /* end confdefs.h. */
12837 #include <langinfo.h>
12841 char* cs = nl_langinfo(CODESET);
12846 if ac_fn_c_try_link
"$LINENO"; then :
12847 am_cv_langinfo_codeset
=yes
12849 am_cv_langinfo_codeset
=no
12851 rm -f core conftest.err conftest.
$ac_objext \
12852 conftest
$ac_exeext conftest.
$ac_ext
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12856 $as_echo "$am_cv_langinfo_codeset" >&6; }
12857 if test $am_cv_langinfo_codeset = yes; then
12859 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12864 # Check the return and argument types of ptrace. No canned test for
12865 # this, so roll our own.
12866 gdb_ptrace_headers
='
12867 #if HAVE_SYS_TYPES_H
12868 # include <sys/types.h>
12870 #if HAVE_SYS_PTRACE_H
12871 # include <sys/ptrace.h>
12874 # include <unistd.h>
12877 # There is no point in checking if we don't have a prototype.
12878 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12880 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
12886 cat >>confdefs.h
<<_ACEOF
12887 #define HAVE_DECL_PTRACE $ac_have_decl
12889 if test $ac_have_decl = 1; then :
12893 : ${gdb_cv_func_ptrace_ret='int'}
12894 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12898 # Check return type. Varargs (used on GNU/Linux) conflict with the
12899 # empty argument list, so check for that explicitly.
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12901 $as_echo_n "checking return type of ptrace... " >&6; }
12902 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
12905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12907 $gdb_ptrace_headers
12911 extern long ptrace (enum __ptrace_request, ...);
12916 if ac_fn_c_try_compile
"$LINENO"; then :
12917 gdb_cv_func_ptrace_ret
='long'
12919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12921 $gdb_ptrace_headers
12925 extern int ptrace ();
12930 if ac_fn_c_try_compile
"$LINENO"; then :
12931 gdb_cv_func_ptrace_ret
='int'
12933 gdb_cv_func_ptrace_ret
='long'
12935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12940 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12942 cat >>confdefs.h
<<_ACEOF
12943 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12946 # Check argument types.
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12948 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12949 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
12953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12954 /* end confdefs.h. */
12955 $gdb_ptrace_headers
12959 extern long ptrace (enum __ptrace_request, ...);
12964 if ac_fn_c_try_compile
"$LINENO"; then :
12965 gdb_cv_func_ptrace_args
='int,int,long,long'
12968 for gdb_arg1
in 'int' 'long'; do
12969 for gdb_arg2
in 'pid_t' 'int' 'long'; do
12970 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12971 for gdb_arg4
in 'int' 'long'; do
12972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12974 $gdb_ptrace_headers
12979 extern $gdb_cv_func_ptrace_ret
12980 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12986 if ac_fn_c_try_compile
"$LINENO"; then :
12987 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12991 for gdb_arg5
in 'int *' 'int' 'long'; do
12992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12993 /* end confdefs.h. */
12994 $gdb_ptrace_headers
12999 extern $gdb_cv_func_ptrace_ret
13000 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13006 if ac_fn_c_try_compile
"$LINENO"; then :
13008 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13017 # Provide a safe default value.
13018 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13024 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13025 ac_save_IFS
=$IFS; IFS
=','
13026 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13030 cat >>confdefs.h
<<_ACEOF
13031 #define PTRACE_TYPE_ARG3 $3
13034 if test -n "$5"; then
13036 cat >>confdefs.h
<<_ACEOF
13037 #define PTRACE_TYPE_ARG5 $5
13042 if test "$cross_compiling" = no
; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13044 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13045 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
13048 if test "$cross_compiling" = yes; then :
13049 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
13051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053 $ac_includes_default
13057 /* If this system has a BSD-style setpgrp which takes arguments,
13058 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13059 exit successfully. */
13060 return setpgrp (1,1) != -1;
13065 if ac_fn_c_try_run
"$LINENO"; then :
13066 ac_cv_func_setpgrp_void
=no
13068 ac_cv_func_setpgrp_void
=yes
13070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13071 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13076 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13077 if test $ac_cv_func_setpgrp_void = yes; then
13079 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13085 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13086 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13087 $as_echo_n "(cached) " >&6
13089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13092 #include <unistd.h>
13098 if (setpgrp(1,1) == -1)
13107 if ac_fn_c_try_compile
"$LINENO"; then :
13108 ac_cv_func_setpgrp_void
=no
13110 ac_cv_func_setpgrp_void
=yes
13112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13115 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13116 if test $ac_cv_func_setpgrp_void = yes; then
13117 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13122 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
13123 # since sigsetjmp might only be defined as a macro.
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13125 $as_echo_n "checking for sigsetjmp... " >&6; }
13126 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
13127 $as_echo_n "(cached) " >&6
13129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13132 #include <setjmp.h>
13137 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13142 if ac_fn_c_try_compile
"$LINENO"; then :
13143 gdb_cv_func_sigsetjmp
=yes
13145 gdb_cv_func_sigsetjmp
=no
13147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13150 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13151 if test $gdb_cv_func_sigsetjmp = yes; then
13153 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13157 # Assume we'll default to using the included libiberty regex.
13158 gdb_use_included_regex
=yes
13160 # However, if the system regex is GNU regex, then default to *not*
13161 # using the included regex.
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13163 $as_echo_n "checking for GNU regex... " >&6; }
13164 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
13165 $as_echo_n "(cached) " >&6
13167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13169 #include <gnu-versions.h>
13173 #define REGEX_INTERFACE_VERSION 1
13174 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13175 # error "Version mismatch"
13181 if ac_fn_c_try_compile
"$LINENO"; then :
13182 gdb_cv_have_gnu_regex
=yes
13184 gdb_cv_have_gnu_regex
=no
13186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13189 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13190 if test $gdb_cv_have_gnu_regex = yes; then
13191 gdb_use_included_regex
=no
13195 # Check whether --with-included-regex was given.
13196 if test "${with_included_regex+set}" = set; then :
13197 withval
=$with_included_regex; gdb_with_regex
=$withval
13199 gdb_with_regex
=$gdb_use_included_regex
13202 if test "$gdb_with_regex" = yes; then
13204 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13208 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13209 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13210 #include <sys/proc.h>
13213 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
13215 cat >>confdefs.h
<<_ACEOF
13216 #define HAVE_STRUCT_THREAD_TD_PCB 1
13223 # See if <sys/lwp.h> defines `struct lwp`.
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13225 $as_echo_n "checking for struct lwp... " >&6; }
13226 if test "${gdb_cv_struct_lwp+set}" = set; then :
13227 $as_echo_n "(cached) " >&6
13229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13231 #include <sys/param.h>
13232 #include <sys/lwp.h>
13241 if ac_fn_c_try_compile
"$LINENO"; then :
13242 gdb_cv_struct_lwp
=yes
13244 gdb_cv_struct_lwp
=no
13246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13249 $as_echo "$gdb_cv_struct_lwp" >&6; }
13250 if test $gdb_cv_struct_lwp = yes; then
13252 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13256 # See if <machine/reg.h> degines `struct reg'.
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13258 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13259 if test "${gdb_cv_struct_reg+set}" = set; then :
13260 $as_echo_n "(cached) " >&6
13262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264 #include <sys/types.h>
13265 #include <machine/reg.h>
13274 if ac_fn_c_try_compile
"$LINENO"; then :
13275 gdb_cv_struct_reg
=yes
13277 gdb_cv_struct_reg
=no
13279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13282 $as_echo "$gdb_cv_struct_reg" >&6; }
13283 if test $gdb_cv_struct_reg = yes; then
13285 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13289 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13290 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13291 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13293 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
13295 cat >>confdefs.h
<<_ACEOF
13296 #define HAVE_STRUCT_REG_R_FS 1
13301 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13303 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
13305 cat >>confdefs.h
<<_ACEOF
13306 #define HAVE_STRUCT_REG_R_GS 1
13313 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13315 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13316 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13317 $as_echo_n "(cached) " >&6
13319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13321 #include <sys/ptrace.h>
13330 if ac_fn_c_try_compile
"$LINENO"; then :
13331 gdb_cv_have_ptrace_getregs
=yes
13333 gdb_cv_have_ptrace_getregs
=no
13335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13339 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13340 if test $gdb_cv_have_ptrace_getregs = yes; then
13342 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13346 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13348 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13349 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13350 $as_echo_n "(cached) " >&6
13352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13354 #include <sys/ptrace.h>
13363 if ac_fn_c_try_compile
"$LINENO"; then :
13364 gdb_cv_have_ptrace_getfpxregs
=yes
13366 gdb_cv_have_ptrace_getfpxregs
=no
13368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13372 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13373 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13375 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13379 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13381 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13382 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13383 $as_echo_n "(cached) " >&6
13385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13387 #include <sys/types.h>
13388 #include <sys/ptrace.h>
13397 if ac_fn_c_try_compile
"$LINENO"; then :
13398 gdb_cv_have_pt_getdbregs
=yes
13400 gdb_cv_have_pt_getdbregs
=no
13402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13406 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13407 if test $gdb_cv_have_pt_getdbregs = yes; then
13409 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13413 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13415 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13416 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13417 $as_echo_n "(cached) " >&6
13419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13421 #include <sys/types.h>
13422 #include <sys/ptrace.h>
13431 if ac_fn_c_try_compile
"$LINENO"; then :
13432 gdb_cv_have_pt_getxmmregs
=yes
13434 gdb_cv_have_pt_getxmmregs
=no
13436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13440 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13441 if test $gdb_cv_have_pt_getxmmregs = yes; then
13443 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13447 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13449 if test "${target}" = "${host}"; then
13451 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
13453 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13456 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
13458 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13462 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13464 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13470 if test "$ac_cv_header_sys_procfs_h" = yes; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13472 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13473 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13474 $as_echo_n "(cached) " >&6
13476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13480 /* Needed for new procfs interface on sparc-solaris. */
13481 #define _STRUCTURED_PROC 1
13482 #include <sys/procfs.h>
13491 if ac_fn_c_try_compile
"$LINENO"; then :
13492 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
13494 bfd_cv_have_sys_procfs_type_pstatus_t
=no
13497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13500 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13502 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13506 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13509 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13510 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13511 $as_echo_n "(cached) " >&6
13513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13517 /* Needed for new procfs interface on sparc-solaris. */
13518 #define _STRUCTURED_PROC 1
13519 #include <sys/procfs.h>
13528 if ac_fn_c_try_compile
"$LINENO"; then :
13529 bfd_cv_have_sys_procfs_type_prrun_t
=yes
13531 bfd_cv_have_sys_procfs_type_prrun_t
=no
13534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13537 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13539 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13543 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13546 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13547 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13548 $as_echo_n "(cached) " >&6
13550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h. */
13554 /* Needed for new procfs interface on sparc-solaris. */
13555 #define _STRUCTURED_PROC 1
13556 #include <sys/procfs.h>
13565 if ac_fn_c_try_compile
"$LINENO"; then :
13566 bfd_cv_have_sys_procfs_type_gregset_t
=yes
13568 bfd_cv_have_sys_procfs_type_gregset_t
=no
13571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13574 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13576 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13580 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13583 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13584 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13585 $as_echo_n "(cached) " >&6
13587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13591 /* Needed for new procfs interface on sparc-solaris. */
13592 #define _STRUCTURED_PROC 1
13593 #include <sys/procfs.h>
13602 if ac_fn_c_try_compile
"$LINENO"; then :
13603 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
13605 bfd_cv_have_sys_procfs_type_fpregset_t
=no
13608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13611 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13613 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13617 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13620 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13621 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13628 /* Needed for new procfs interface on sparc-solaris. */
13629 #define _STRUCTURED_PROC 1
13630 #include <sys/procfs.h>
13639 if ac_fn_c_try_compile
"$LINENO"; then :
13640 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
13642 bfd_cv_have_sys_procfs_type_prgregset_t
=no
13645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13648 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13650 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13654 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13657 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13658 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13659 $as_echo_n "(cached) " >&6
13661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13665 /* Needed for new procfs interface on sparc-solaris. */
13666 #define _STRUCTURED_PROC 1
13667 #include <sys/procfs.h>
13676 if ac_fn_c_try_compile
"$LINENO"; then :
13677 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
13679 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
13682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13685 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13687 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13691 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13694 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13695 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13696 $as_echo_n "(cached) " >&6
13698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13702 /* Needed for new procfs interface on sparc-solaris. */
13703 #define _STRUCTURED_PROC 1
13704 #include <sys/procfs.h>
13713 if ac_fn_c_try_compile
"$LINENO"; then :
13714 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
13716 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
13719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13722 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13724 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13728 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13731 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13732 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13733 $as_echo_n "(cached) " >&6
13735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13739 /* Needed for new procfs interface on sparc-solaris. */
13740 #define _STRUCTURED_PROC 1
13741 #include <sys/procfs.h>
13745 prfpregset32_t avar
13750 if ac_fn_c_try_compile
"$LINENO"; then :
13751 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
13753 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
13756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13759 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13761 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13765 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13768 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13769 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13770 $as_echo_n "(cached) " >&6
13772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13776 /* Needed for new procfs interface on sparc-solaris. */
13777 #define _STRUCTURED_PROC 1
13778 #include <sys/procfs.h>
13787 if ac_fn_c_try_compile
"$LINENO"; then :
13788 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
13790 bfd_cv_have_sys_procfs_type_lwpid_t
=no
13793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13796 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13798 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13802 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13805 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13806 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13807 $as_echo_n "(cached) " >&6
13809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13813 /* Needed for new procfs interface on sparc-solaris. */
13814 #define _STRUCTURED_PROC 1
13815 #include <sys/procfs.h>
13824 if ac_fn_c_try_compile
"$LINENO"; then :
13825 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
13827 bfd_cv_have_sys_procfs_type_psaddr_t
=no
13830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13833 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13835 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13839 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13842 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13843 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13844 $as_echo_n "(cached) " >&6
13846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13850 /* Needed for new procfs interface on sparc-solaris. */
13851 #define _STRUCTURED_PROC 1
13852 #include <sys/procfs.h>
13861 if ac_fn_c_try_compile
"$LINENO"; then :
13862 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
13864 bfd_cv_have_sys_procfs_type_prsysent_t
=no
13867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13870 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13872 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13876 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13879 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13880 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
13883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13884 /* end confdefs.h. */
13887 /* Needed for new procfs interface on sparc-solaris. */
13888 #define _STRUCTURED_PROC 1
13889 #include <sys/procfs.h>
13898 if ac_fn_c_try_compile
"$LINENO"; then :
13899 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
13901 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
13904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13907 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13909 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13913 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13916 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13917 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13918 $as_echo_n "(cached) " >&6
13920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13924 /* Needed for new procfs interface on sparc-solaris. */
13925 #define _STRUCTURED_PROC 1
13926 #include <sys/procfs.h>
13930 pr_sigaction64_t avar
13935 if ac_fn_c_try_compile
"$LINENO"; then :
13936 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
13938 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
13941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13944 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13946 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13950 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13953 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13954 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13955 $as_echo_n "(cached) " >&6
13957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13961 /* Needed for new procfs interface on sparc-solaris. */
13962 #define _STRUCTURED_PROC 1
13963 #include <sys/procfs.h>
13967 pr_siginfo64_t avar
13972 if ac_fn_c_try_compile
"$LINENO"; then :
13973 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
13975 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
13978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13981 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13983 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13987 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13993 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13995 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13996 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13997 $as_echo_n "(cached) " >&6
13999 if test "$cross_compiling" = yes; then :
14000 gdb_cv_prfpregset_t_broken
=yes
14002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14003 /* end confdefs.h. */
14004 #include <sys/procfs.h>
14007 if (sizeof (prfpregset_t) == sizeof (void *))
14012 if ac_fn_c_try_run
"$LINENO"; then :
14013 gdb_cv_prfpregset_t_broken
=no
14015 gdb_cv_prfpregset_t_broken
=yes
14017 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14018 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14024 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14025 if test $gdb_cv_prfpregset_t_broken = yes; then
14027 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
14034 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
14035 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
14036 $as_echo_n "(cached) " >&6
14038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14040 #include <unistd.h>
14041 #include <sys/types.h>
14042 #include <sys/procfs.h>
14049 dummy = ioctl(0, PIOCSET, &dummy);
14055 if ac_fn_c_try_compile
"$LINENO"; then :
14056 gdb_cv_have_procfs_piocset
=yes
14058 gdb_cv_have_procfs_piocset
=no
14060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
14064 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
14065 if test $gdb_cv_have_procfs_piocset = yes; then
14067 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
14072 if test ${host} = ${target} ; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
14075 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
14076 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
14077 $as_echo_n "(cached) " >&6
14079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14085 struct link_map lm; (void) lm.l_addr;
14090 if ac_fn_c_try_compile
"$LINENO"; then :
14091 gdb_cv_have_struct_link_map_with_l_members
=yes
14093 gdb_cv_have_struct_link_map_with_l_members
=no
14095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
14099 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
14100 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
14102 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
14108 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
14109 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14114 #include <sys/types.h>
14119 struct link_map lm; (void) lm.lm_addr;
14124 if ac_fn_c_try_compile
"$LINENO"; then :
14125 gdb_cv_have_struct_link_map_with_lm_members
=yes
14127 gdb_cv_have_struct_link_map_with_lm_members
=no
14129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
14133 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
14134 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
14136 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
14142 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
14143 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
14144 $as_echo_n "(cached) " >&6
14146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148 #include <sys/types.h>
14149 #ifdef HAVE_NLIST_H
14156 struct so_map lm; (void) lm.som_addr;
14161 if ac_fn_c_try_compile
"$LINENO"; then :
14162 gdb_cv_have_struct_so_map_with_som_members
=yes
14164 gdb_cv_have_struct_so_map_with_som_members
=no
14166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
14170 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
14171 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
14173 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
14179 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
14180 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
14181 $as_echo_n "(cached) " >&6
14183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14186 #include <sys/link.h>
14190 struct link_map32 l;
14195 if ac_fn_c_try_compile
"$LINENO"; then :
14196 gdb_cv_have_struct_link_map32
=yes
14198 gdb_cv_have_struct_link_map32
=no
14200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
14204 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
14205 if test $gdb_cv_have_struct_link_map32 = yes; then
14207 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
14210 $as_echo "#define _SYSCALL32 1" >>confdefs.h
14215 # Check if the compiler supports the `long long' type.
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14218 $as_echo_n "checking for long long support in compiler... " >&6; }
14219 if test "${gdb_cv_c_long_long+set}" = set; then :
14220 $as_echo_n "(cached) " >&6
14222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14224 extern long long foo;
14228 switch (foo & 2) { case 0: return 1; }
14233 if ac_fn_c_try_compile
"$LINENO"; then :
14234 gdb_cv_c_long_long
=yes
14236 gdb_cv_c_long_long
=no
14238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14241 $as_echo "$gdb_cv_c_long_long" >&6; }
14242 if test $gdb_cv_c_long_long = yes; then
14244 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
14248 # Check if the compiler and runtime support printing long longs.
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14251 $as_echo_n "checking for long long support in printf... " >&6; }
14252 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14253 $as_echo_n "(cached) " >&6
14255 if test "$cross_compiling" = yes; then :
14256 gdb_cv_printf_has_long_long
=no
14258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14260 $ac_includes_default
14266 l = (l << 16) + 0x0123;
14267 l = (l << 16) + 0x4567;
14268 l = (l << 16) + 0x89ab;
14269 l = (l << 16) + 0xcdef;
14270 sprintf (buf, "0x%016llx", l);
14271 return (strcmp ("0x0123456789abcdef", buf));
14276 if ac_fn_c_try_run
"$LINENO"; then :
14277 gdb_cv_printf_has_long_long
=yes
14279 gdb_cv_printf_has_long_long
=no
14281 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14282 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14287 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14288 if test $gdb_cv_printf_has_long_long = yes; then
14290 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14294 # Check if the compiler and runtime support printing decfloats.
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14297 $as_echo_n "checking for decfloat support in printf... " >&6; }
14298 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14299 $as_echo_n "(cached) " >&6
14301 if test "$cross_compiling" = yes; then :
14302 gdb_cv_printf_has_decfloat
=no
14304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14306 $ac_includes_default
14311 _Decimal32 d32 = 1.2345df;
14312 _Decimal64 d64 = 1.2345dd;
14313 _Decimal128 d128 = 1.2345dl;
14314 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14315 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14320 if ac_fn_c_try_run
"$LINENO"; then :
14321 gdb_cv_printf_has_decfloat
=yes
14323 gdb_cv_printf_has_decfloat
=no
14325 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14326 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14331 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14332 if test $gdb_cv_printf_has_decfloat = yes; then
14334 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14338 # Check if the compiler supports the `long double' type. We can't use
14339 # AC_C_LONG_DOUBLE because that one does additional checks on the
14340 # constants defined in <float.h> that fail on some systems,
14341 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14344 $as_echo_n "checking for long double support in compiler... " >&6; }
14345 if test "${gdb_cv_c_long_double+set}" = set; then :
14346 $as_echo_n "(cached) " >&6
14348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14352 if ac_fn_c_try_compile
"$LINENO"; then :
14353 gdb_cv_c_long_double
=yes
14355 gdb_cv_c_long_double
=no
14357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14360 $as_echo "$gdb_cv_c_long_double" >&6; }
14361 if test $gdb_cv_c_long_double = yes; then
14363 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14367 # Check if the compiler and runtime support printing long doubles.
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14370 $as_echo_n "checking for long double support in printf... " >&6; }
14371 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14372 $as_echo_n "(cached) " >&6
14374 if test "$cross_compiling" = yes; then :
14375 gdb_cv_printf_has_long_double
=no
14377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379 $ac_includes_default
14384 long double f = 3.141592653;
14385 sprintf (buf, "%Lg", f);
14386 return (strncmp ("3.14159", buf, 7));
14391 if ac_fn_c_try_run
"$LINENO"; then :
14392 gdb_cv_printf_has_long_double
=yes
14394 gdb_cv_printf_has_long_double
=no
14396 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14397 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14402 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14403 if test $gdb_cv_printf_has_long_double = yes; then
14405 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14409 # Check if the compiler and runtime support scanning long doubles.
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14412 $as_echo_n "checking for long double support in scanf... " >&6; }
14413 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14414 $as_echo_n "(cached) " >&6
14416 if test "$cross_compiling" = yes; then :
14417 gdb_cv_scanf_has_long_double
=no
14419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h. */
14425 char *buf = "3.141592653";
14427 sscanf (buf, "%Lg", &f);
14428 return !(f > 3.14159 && f < 3.14160);
14433 if ac_fn_c_try_run
"$LINENO"; then :
14434 gdb_cv_scanf_has_long_double
=yes
14436 gdb_cv_scanf_has_long_double
=no
14438 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14439 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14444 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14445 if test $gdb_cv_scanf_has_long_double = yes; then
14447 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14454 $as_echo_n "checking for -bbigtoc option... " >&6; }
14455 if test "${gdb_cv_bigtoc+set}" = set; then :
14456 $as_echo_n "(cached) " >&6
14459 SAVE_LDFLAGS
=$LDFLAGS
14462 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14463 *) gdb_cv_bigtoc
=-bbigtoc ;;
14466 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14478 if ac_fn_c_try_link
"$LINENO"; then :
14483 rm -f core conftest.err conftest.
$ac_objext \
14484 conftest
$ac_exeext conftest.
$ac_ext
14485 LDFLAGS
="${SAVE_LDFLAGS}"
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14489 $as_echo "$gdb_cv_bigtoc" >&6; }
14490 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14495 $as_echo_n "checking for the dynamic export flag... " >&6; }
14497 if test "${gdb_native}" = yes; then
14498 # The dynamically loaded libthread_db needs access to symbols in the gdb
14499 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14500 # may not be supported there.
14501 old_LDFLAGS
="$LDFLAGS"
14502 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14503 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14504 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14505 if test "${have_libpython}" = no
; then
14506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14517 if ac_fn_c_try_link
"$LINENO"; then :
14520 rm -f core conftest.err conftest.
$ac_objext \
14521 conftest
$ac_exeext conftest.
$ac_ext
14523 # Workaround http://bugs.python.org/issue4434 where static
14524 # libpythonX.Y.a would get its symbols required for
14525 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14526 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14527 old_CFLAGS
="$CFLAGS"
14528 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
14529 if test "$cross_compiling" = yes; then :
14532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h. */
14534 #include "${have_libpython}/Python.h"
14540 err = PyRun_SimpleString ("import itertools\n");
14542 return err == 0 ? 0 : 1;
14547 if ac_fn_c_try_run
"$LINENO"; then :
14550 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14551 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14554 CFLAGS
="$old_CFLAGS"
14556 LDFLAGS
="$old_LDFLAGS"
14558 if $dynamic_list; then
14559 found
="-Wl,--dynamic-list"
14560 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14563 RDYNAMIC
="-rdynamic"
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14567 $as_echo "$found" >&6; }
14570 if test ${build} = ${host} -a ${host} = ${target} ; then
14573 # See if thread_db library is around for Solaris thread debugging.
14574 # Note that we must explicitly test for version 1 of the library
14575 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14578 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14579 if test -f /usr
/lib
/libthread_db.so
.1 ; then
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14581 $as_echo "yes" >&6; }
14583 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14585 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
14586 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14588 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14589 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14590 $as_echo_n "(cached) " >&6
14592 ac_check_lib_save_LIBS
=$LIBS
14594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14595 /* end confdefs.h. */
14597 /* Override any GCC internal prototype to avoid an error.
14598 Use char because int might match the return type of a GCC
14599 builtin and then its argument prototype would still apply. */
14612 if ac_fn_c_try_link
"$LINENO"; then :
14613 ac_cv_lib_dl_dlopen
=yes
14615 ac_cv_lib_dl_dlopen
=no
14617 rm -f core conftest.err conftest.
$ac_objext \
14618 conftest
$ac_exeext conftest.
$ac_ext
14619 LIBS
=$ac_check_lib_save_LIBS
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14622 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14623 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
14624 cat >>confdefs.h
<<_ACEOF
14625 #define HAVE_LIBDL 1
14632 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
14633 # Sun randomly tweaked the prototypes in <proc_service.h>
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14636 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14637 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14638 $as_echo_n "(cached) " >&6
14641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14644 #include <proc_service.h>
14645 ps_err_e ps_pdwrite
14646 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14656 if ac_fn_c_try_compile
"$LINENO"; then :
14657 gdb_cv_proc_service_is_old
=no
14659 gdb_cv_proc_service_is_old
=yes
14661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14666 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14667 if test $gdb_cv_proc_service_is_old = yes; then
14669 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14674 $as_echo "no" >&6; }
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14679 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14680 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14681 $as_echo_n "(cached) " >&6
14683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14685 #include <sys/pthdebug.h>
14689 #ifndef PTHDB_VERSION_3
14696 if ac_fn_c_try_compile
"$LINENO"; then :
14697 gdb_cv_have_aix_thread_debug
=yes
14699 gdb_cv_have_aix_thread_debug
=no
14701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14705 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14706 if test $gdb_cv_have_aix_thread_debug = yes; then
14707 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
14708 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
14709 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
14711 # Older versions of AIX do not provide the declaration for
14712 # the getthrds function (it appears that it was introduced
14714 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14716 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
14722 cat >>confdefs.h
<<_ACEOF
14723 #define HAVE_DECL_GETTHRDS $ac_have_decl
14732 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14734 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14735 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14736 $as_echo_n "(cached) " >&6
14738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14739 /* end confdefs.h. */
14740 #include <thread_db.h>
14744 int i = TD_NOTALLOC;
14749 if ac_fn_c_try_compile
"$LINENO"; then :
14750 gdb_cv_thread_db_h_has_td_notalloc
=yes
14752 gdb_cv_thread_db_h_has_td_notalloc
=no
14755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14759 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14761 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14762 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14763 $as_echo_n "(cached) " >&6
14765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14766 /* end confdefs.h. */
14767 #include <thread_db.h>
14771 int i = TD_VERSION;
14776 if ac_fn_c_try_compile
"$LINENO"; then :
14777 gdb_cv_thread_db_h_has_td_version
=yes
14779 gdb_cv_thread_db_h_has_td_version
=no
14782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14786 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14788 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14789 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14790 $as_echo_n "(cached) " >&6
14792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14794 #include <thread_db.h>
14803 if ac_fn_c_try_compile
"$LINENO"; then :
14804 gdb_cv_thread_db_h_has_td_notls
=yes
14806 gdb_cv_thread_db_h_has_td_notls
=no
14809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14813 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14815 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14817 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14820 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14822 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14825 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14827 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14831 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14833 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14834 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14835 $as_echo_n "(cached) " >&6
14837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14838 /* end confdefs.h. */
14839 #include <sys/syscall.h>
14843 int i = __NR_tkill;
14848 if ac_fn_c_try_compile
"$LINENO"; then :
14849 gdb_cv_sys_syscall_h_has_tkill
=yes
14851 gdb_cv_sys_syscall_h_has_tkill
=no
14854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14858 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14860 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14862 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14866 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14868 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
14874 cat >>confdefs.h
<<_ACEOF
14875 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14879 if test "$cross_compiling" = yes; then :
14880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14882 #include <sys/personality.h>
14887 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14888 # define ADDR_NO_RANDOMIZE 0x0040000
14890 /* Test the flag could be set and stays set. */
14891 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14892 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14898 if ac_fn_c_try_link
"$LINENO"; then :
14899 have_personality
=true
14901 have_personality
=false
14903 rm -f core conftest.err conftest.
$ac_objext \
14904 conftest
$ac_exeext conftest.
$ac_ext
14906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 #include <sys/personality.h>
14913 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14914 # define ADDR_NO_RANDOMIZE 0x0040000
14916 /* Test the flag could be set and stays set. */
14917 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14918 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14924 if ac_fn_c_try_run
"$LINENO"; then :
14925 have_personality
=true
14927 have_personality
=false
14929 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14930 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14933 if $have_personality
14936 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14941 target_sysroot_reloc
=0
14943 # Check whether --with-sysroot was given.
14944 if test "${with_sysroot+set}" = set; then :
14945 withval
=$with_sysroot;
14946 case ${with_sysroot} in
14947 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
14948 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
14951 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14953 if test "x$prefix" = xNONE
; then
14954 test_prefix
=/usr
/local
14956 test_prefix
=$prefix
14958 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14959 test_exec_prefix
=$test_prefix
14961 test_exec_prefix
=$exec_prefix
14963 case ${TARGET_SYSTEM_ROOT} in
14964 "${test_prefix}"|
"${test_prefix}/"*|\
14965 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
14966 '${prefix}'|
'${prefix}/'*|\
14967 '${exec_prefix}'|
'${exec_prefix}/'*)
14968 target_sysroot_reloc
=1
14974 TARGET_SYSTEM_ROOT
=
14975 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
14979 TARGET_SYSTEM_ROOT_DEFINE
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14985 # Check whether --with-system-gdbinit was given.
14986 if test "${with_system_gdbinit+set}" = set; then :
14987 withval
=$with_system_gdbinit;
14988 SYSTEM_GDBINIT
=$withval
14994 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14995 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14996 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
14997 ac_define_dir
=`eval echo $ac_define_dir`
14999 cat >>confdefs.h
<<_ACEOF
15000 #define SYSTEM_GDBINIT "$ac_define_dir"
15006 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15007 if test "x$prefix" = xNONE
; then
15008 test_prefix
=/usr
/local
15010 test_prefix
=$prefix
15013 test_prefix
=$exec_prefix
15016 case ${ac_define_dir} in
15017 "${test_prefix}"|
"${test_prefix}/"*|\
15018 '${exec_prefix}'|
'${exec_prefix}/'*)
15023 cat >>confdefs.h
<<_ACEOF
15024 #define SYSTEM_GDBINIT_RELOCATABLE $value
15030 # Check whether --enable-werror was given.
15031 if test "${enable_werror+set}" = set; then :
15032 enableval
=$enable_werror; case "${enableval}" in
15033 yes | y
) ERROR_ON_WARNING
="yes" ;;
15034 no | n
) ERROR_ON_WARNING
="no" ;;
15035 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15040 # Enable -Werror by default when using gcc
15041 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15042 ERROR_ON_WARNING
=yes
15046 if test "${ERROR_ON_WARNING}" = yes ; then
15047 WERROR_CFLAGS
="-Werror"
15050 # The entries after -Wno-pointer-sign are disabled warnings which may
15051 # be enabled in the future, which can not currently be used to build
15053 # NOTE: If you change this list, remember to update
15054 # gdb/doc/gdbint.texinfo.
15055 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
15056 -Wformat-nonliteral -Wno-pointer-sign \
15057 -Wno-unused -Wunused-value -Wunused-function \
15058 -Wno-switch -Wno-char-subscripts"
15060 # Enable -Wno-format by default when using gcc on mingw since many
15061 # GCC versions complain about %I64.
15063 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
15066 # Check whether --enable-build-warnings was given.
15067 if test "${enable_build_warnings+set}" = set; then :
15068 enableval
=$enable_build_warnings; case "${enableval}" in
15070 no
) build_warnings
="-w";;
15071 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15072 build_warnings
="${build_warnings} ${t}";;
15073 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15074 build_warnings
="${t} ${build_warnings}";;
15075 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15077 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15078 echo "Setting compiler warning flags = $build_warnings" 6>&1
15081 # Check whether --enable-gdb-build-warnings was given.
15082 if test "${enable_gdb_build_warnings+set}" = set; then :
15083 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15085 no
) build_warnings
="-w";;
15086 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15087 build_warnings
="${build_warnings} ${t}";;
15088 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15089 build_warnings
="${t} ${build_warnings}";;
15090 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15092 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15093 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15097 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15100 $as_echo_n "checking compiler warning flags... " >&6; }
15101 # Separate out the -Werror flag as some files just cannot be
15102 # compiled with it enabled.
15103 for w
in ${build_warnings}; do
15105 -Werr*) WERROR_CFLAGS
=-Werror ;;
15106 *) # Check that GCC accepts it
15107 saved_CFLAGS
="$CFLAGS"
15108 CFLAGS
="$CFLAGS $w"
15109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15120 if ac_fn_c_try_compile
"$LINENO"; then :
15121 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15124 CFLAGS
="$saved_CFLAGS"
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15128 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15133 # In the Cygwin environment, we need some additional flags.
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15135 $as_echo_n "checking
for cygwin...
" >&6; }
15136 if test "${gdb_cv_os_cygwin+set}" = set; then :
15137 $as_echo_n "(cached
) " >&6
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15142 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15146 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15147 $EGREP "lose
" >/dev/null 2>&1; then :
15148 gdb_cv_os_cygwin=yes
15150 gdb_cv_os_cygwin=no
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15156 $as_echo "$gdb_cv_os_cygwin" >&6; }
15159 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15161 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15162 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15163 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15167 # libreadline needs libuser32.a in a cygwin environment
15169 if test x$gdb_cv_os_cygwin = xyes; then
15170 WIN32LIBS="-luser32"
15171 case "${target}" in
15172 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15177 # The ser-tcp.c module requires sockets.
15181 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15183 WIN32LIBS
="$WIN32LIBS -lws2_32"
15188 # Add ELF support to GDB, but only if BFD includes ELF support.
15190 OLD_LDFLAGS
=$LDFLAGS
15192 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
15193 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
15194 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15195 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15196 if test "$plugins" = "yes"; then
15199 LIBS
="-lbfd -liberty $intl $LIBS"
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15201 $as_echo_n "checking for ELF support in BFD... " >&6; }
15202 if test "${gdb_cv_var_elf+set}" = set; then :
15203 $as_echo_n "(cached) " >&6
15205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15207 #include <stdlib.h>
15209 #include "elf-bfd.h"
15214 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
15219 if ac_fn_c_try_link
"$LINENO"; then :
15224 rm -f core conftest.err conftest.
$ac_objext \
15225 conftest
$ac_exeext conftest.
$ac_ext
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15228 $as_echo "$gdb_cv_var_elf" >&6; }
15229 if test $gdb_cv_var_elf = yes; then
15230 CONFIG_OBS
="$CONFIG_OBS elfread.o"
15232 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15234 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15235 if test "$plugins" = "yes"; then
15236 OLD_LIBS
="-ldl $OLD_LIBS"
15240 LDFLAGS
=$OLD_LDFLAGS
15243 # Add any host-specific objects to GDB.
15244 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15246 LIBGUI
="../libgui/src/libgui.a"
15247 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
15256 *-*-cygwin* |
*-*-mingw* )
15265 if test "${enable_gdbtk}" = "yes"; then
15267 # Gdbtk must have an absolute path to srcdir in order to run
15268 # properly when not installed.
15271 GDBTK_SRC_DIR
=`pwd`
15276 # Ok, lets find the tcl configuration
15277 # First, look for one uninstalled.
15278 # the alternative search directory is invoked by --with-tcl
15281 if test x
"${no_tcl}" = x
; then
15282 # we reset no_tcl in case something fails here
15285 # Check whether --with-tcl was given.
15286 if test "${with_tcl+set}" = set; then :
15287 withval
=$with_tcl; with_tclconfig
=${withval}
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15291 $as_echo_n "checking for Tcl configuration... " >&6; }
15292 if test "${ac_cv_c_tclconfig+set}" = set; then :
15293 $as_echo_n "(cached) " >&6
15297 # First check to see if --with-tcl was specified.
15299 *-*-cygwin*) platDir
="win" ;;
15300 *) platDir
="unix" ;;
15302 if test x
"${with_tclconfig}" != x
; then
15303 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15304 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
15306 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15310 # then check for a private Tcl installation
15311 if test x
"${ac_cv_c_tclconfig}" = x
; then
15314 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15315 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15316 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15318 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15319 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15320 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15322 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15323 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15324 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15325 if test -f "$i/$platDir/tclConfig.sh" ; then
15326 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15332 # on Darwin, check in Framework installation locations
15333 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
15334 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15335 `ls -d /Library/Frameworks 2>/dev/null` \
15336 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15337 `ls -d /System/Library/Frameworks 2>/dev/null` \
15339 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15340 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
15346 # check in a few common install locations
15347 if test x
"${ac_cv_c_tclconfig}" = x
; then
15348 for i
in `ls -d ${libdir} 2>/dev/null` \
15349 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15350 `ls -d ${prefix}/lib 2>/dev/null` \
15351 `ls -d /usr/local/lib 2>/dev/null` \
15352 `ls -d /usr/contrib/lib 2>/dev/null` \
15353 `ls -d /usr/lib 2>/dev/null` \
15355 if test -f "$i/tclConfig.sh" ; then
15356 ac_cv_c_tclconfig
=`(cd $i; pwd)`
15362 # check in a few other private locations
15363 if test x
"${ac_cv_c_tclconfig}" = x
; then
15366 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15367 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15368 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15369 if test -f "$i/$platDir/tclConfig.sh" ; then
15370 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15379 if test x
"${ac_cv_c_tclconfig}" = x
; then
15380 TCL_BIN_DIR
="# no Tcl configs found"
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15382 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15385 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15387 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15392 # If $no_tk is nonempty, then we can't do Tk, and there is no
15393 # point to doing Tcl.
15396 # Ok, lets find the tk configuration
15397 # First, look for one uninstalled.
15398 # the alternative search directory is invoked by --with-tk
15401 if test x
"${no_tk}" = x
; then
15402 # we reset no_tk in case something fails here
15405 # Check whether --with-tk was given.
15406 if test "${with_tk+set}" = set; then :
15407 withval
=$with_tk; with_tkconfig
=${withval}
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15411 $as_echo_n "checking for Tk configuration... " >&6; }
15412 if test "${ac_cv_c_tkconfig+set}" = set; then :
15413 $as_echo_n "(cached) " >&6
15417 # First check to see if --with-tkconfig was specified.
15418 if test x
"${with_tkconfig}" != x
; then
15419 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15420 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
15422 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15426 # then check for a private Tk library
15428 *-*-cygwin*) platDir
="win" ;;
15429 *) platDir
="unix" ;;
15431 if test x
"${ac_cv_c_tkconfig}" = x
; then
15434 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15435 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15436 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15438 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15439 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15440 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15442 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15443 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15444 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15445 if test -f "$i/$platDir/tkConfig.sh" ; then
15446 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15452 # on Darwin, check in Framework installation locations
15453 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
15454 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15455 `ls -d /Library/Frameworks 2>/dev/null` \
15456 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15457 `ls -d /System/Library/Frameworks 2>/dev/null` \
15459 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15460 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
15466 # check in a few common install locations
15467 if test x
"${ac_cv_c_tkconfig}" = x
; then
15468 for i
in `ls -d ${libdir} 2>/dev/null` \
15469 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15470 `ls -d ${prefix}/lib 2>/dev/null` \
15471 `ls -d /usr/local/lib 2>/dev/null` \
15472 `ls -d /usr/contrib/lib 2>/dev/null` \
15473 `ls -d /usr/lib 2>/dev/null` \
15475 if test -f "$i/tkConfig.sh" ; then
15476 ac_cv_c_tkconfig
=`(cd $i; pwd)`
15481 # check in a few other private locations
15482 if test x
"${ac_cv_c_tkconfig}" = x
; then
15485 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15486 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15487 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15488 if test -f "$i/$platDir/tkConfig.sh" ; then
15489 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15498 if test x
"${ac_cv_c_tkconfig}" = x
; then
15499 TK_BIN_DIR
="# no Tk configs found"
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15501 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15504 TK_BIN_DIR
=${ac_cv_c_tkconfig}
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15506 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15511 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15514 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15516 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15518 $as_echo "loading" >&6; }
15519 .
${TCL_BIN_DIR}/tclConfig.sh
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15522 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15525 # eval is required to do the TCL_DBGX substitution
15526 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15527 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15529 # If the TCL_BIN_DIR is the build directory (not the install directory),
15530 # then set the common variable name to the value of the build variables.
15531 # For example, the variable TCL_LIB_SPEC will be set to the value
15532 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15533 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15534 # installed and uninstalled version of Tcl.
15535 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15536 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
15537 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
15538 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
15539 elif test "`uname -s`" = "Darwin"; then
15540 # If Tcl was built as a framework, attempt to use the libraries
15541 # from the framework at the given location so that linking works
15542 # against Tcl.framework installed in an arbitary location.
15543 case ${TCL_DEFS} in
15545 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15546 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
15547 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15548 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15549 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15554 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15555 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15556 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15562 # eval is required to do the TCL_DBGX substitution
15563 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15564 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15565 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15566 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15582 # Check for in-tree tcl
15589 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15593 # Find Tcl private headers
15594 if test x
"${intree}" = xno
; then
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15597 $as_echo_n "checking for Tcl private headers... " >&6; }
15599 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15600 if test -f ${dir}/tclInt.h
; then
15604 if test x
"${private_dir}" = x
; then
15605 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
15607 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15609 $as_echo "${private_dir}" >&6; }
15612 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15613 TCL_LIBRARY
="${TCL_LIB_SPEC}"
15616 # If building tcl in the same src tree, private headers
15617 # are not needed, but we need to be sure to use the right
15619 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
15620 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
15621 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15629 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15631 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15633 $as_echo "loading" >&6; }
15634 .
${TK_BIN_DIR}/tkConfig.sh
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15637 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15640 # eval is required to do the TK_DBGX substitution
15641 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15642 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15644 # If the TK_BIN_DIR is the build directory (not the install directory),
15645 # then set the common variable name to the value of the build variables.
15646 # For example, the variable TK_LIB_SPEC will be set to the value
15647 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15648 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15649 # installed and uninstalled version of Tcl.
15650 if test -f "${TK_BIN_DIR}/Makefile" ; then
15651 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
15652 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
15653 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
15654 elif test "`uname -s`" = "Darwin"; then
15655 # If Tk was built as a framework, attempt to use the libraries
15656 # from the framework at the given location so that linking works
15657 # against Tk.framework installed in an arbitary location.
15660 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15661 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
15662 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15663 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15664 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15669 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15670 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15671 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15677 # eval is required to do the TK_DBGX substitution
15678 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15679 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15680 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15681 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15696 # Check for in-tree Tk
15698 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15702 # Find Tk private headers
15703 if test x
"${intree}" = xno
; then
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15706 $as_echo_n "checking for Tk private headers... " >&6; }
15708 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15709 if test -f ${dir}/tkInt.h
; then
15713 if test x
"${private_dir}" = x
; then
15714 as_fn_error
"could not find Tk private headers" "$LINENO" 5
15716 TK_PRIVATE_INCLUDE
="-I${private_dir}"
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15718 $as_echo "${private_dir}" >&6; }
15721 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15722 TK_LIBRARY
=${TK_LIB_SPEC}
15725 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
15726 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
15727 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
15734 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15736 # Include some libraries that Tcl and Tk want.
15737 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15738 # Yes, the ordering seems wrong here. But it isn't.
15739 # TK_LIBS is the list of libraries that need to be linked
15740 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15741 # were in LIBS then any link tests after this point would
15742 # try to include things like `$(LIBGUI)', which wouldn't work.
15743 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
15745 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15746 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15747 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15748 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
15749 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
15750 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
15751 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
15753 if test x
$gdb_cv_os_cygwin = xyes
; then
15754 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15755 WIN32LDAPP
="-Wl,--subsystem,console"
15756 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
15759 subdirs
="$subdirs gdbtk"
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15772 $as_echo_n "checking for X... " >&6; }
15775 # Check whether --with-x was given.
15776 if test "${with_x+set}" = set; then :
15780 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15781 if test "x$with_x" = xno
; then
15782 # The user explicitly disabled X.
15785 case $x_includes,$x_libraries in #(
15786 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
15787 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
15788 $as_echo_n "(cached) " >&6
15790 # One or both of the vars are not set, and there is no cached value.
15791 ac_x_includes
=no ac_x_libraries
=no
15792 rm -f -r conftest.dir
15793 if mkdir conftest.dir
; then
15795 cat >Imakefile
<<'_ACEOF'
15797 @echo incroot='${INCROOT}'
15799 @echo usrlibdir='${USRLIBDIR}'
15801 @echo libdir='${LIBDIR}'
15803 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15804 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15805 for ac_var
in incroot usrlibdir libdir
; do
15806 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15808 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15809 for ac_extension
in a so sl dylib la dll
; do
15810 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15811 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15812 ac_im_usrlibdir
=$ac_im_libdir; break
15815 # Screen out bogus values from the imake configuration. They are
15816 # bogus both because they are the default anyway, and because
15817 # using them would break gcc on systems where it needs fixed includes.
15818 case $ac_im_incroot in
15819 /usr
/include
) ac_x_includes
= ;;
15820 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15822 case $ac_im_usrlibdir in
15823 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15824 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15828 rm -f -r conftest.dir
15831 # Standard set of common directories for X headers.
15832 # Check X11 before X11Rn because it is often a symlink to the current release.
15846 /usr/local/X11/include
15847 /usr/local/X11R7/include
15848 /usr/local/X11R6/include
15849 /usr/local/X11R5/include
15850 /usr/local/X11R4/include
15852 /usr/local/include/X11
15853 /usr/local/include/X11R7
15854 /usr/local/include/X11R6
15855 /usr/local/include/X11R5
15856 /usr/local/include/X11R4
15860 /usr/XFree86/include/X11
15864 /usr/unsupported/include
15865 /usr/athena/include
15866 /usr/local/x11r5/include
15867 /usr/lpp/Xamples/include
15869 /usr/openwin/include
15870 /usr/openwin/share/include'
15872 if test "$ac_x_includes" = no
; then
15873 # Guess where to find include files, by looking for Xlib.h.
15874 # First, try using that file with no special directory specified.
15875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15876 /* end confdefs.h. */
15877 #include <X11/Xlib.h>
15879 if ac_fn_c_try_cpp
"$LINENO"; then :
15880 # We can compile using X headers with no special include directory.
15883 for ac_dir
in $ac_x_header_dirs; do
15884 if test -r "$ac_dir/X11/Xlib.h"; then
15885 ac_x_includes
=$ac_dir
15890 rm -f conftest.err conftest.
$ac_ext
15891 fi # $ac_x_includes = no
15893 if test "$ac_x_libraries" = no
; then
15894 # Check for the libraries.
15895 # See if we find them without any special options.
15896 # Don't add to $LIBS permanently.
15899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15900 /* end confdefs.h. */
15901 #include <X11/Xlib.h>
15910 if ac_fn_c_try_link
"$LINENO"; then :
15912 # We can link X programs with no special library path.
15916 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15918 # Don't even attempt the hair of trying to link an X program!
15919 for ac_extension
in a so sl dylib la dll
; do
15920 if test -r "$ac_dir/libX11.$ac_extension"; then
15921 ac_x_libraries
=$ac_dir
15927 rm -f core conftest.err conftest.
$ac_objext \
15928 conftest
$ac_exeext conftest.
$ac_ext
15929 fi # $ac_x_libraries = no
15931 case $ac_x_includes,$ac_x_libraries in #(
15932 no
,* |
*,no |
*\'*)
15933 # Didn't find X, or a directory has "'" in its name.
15934 ac_cv_have_x
="have_x=no";; #(
15936 # Record where we found X for the cache.
15937 ac_cv_have_x
="have_x=yes\
15938 ac_x_includes='$ac_x_includes'\
15939 ac_x_libraries='$ac_x_libraries'"
15945 eval "$ac_cv_have_x"
15948 if test "$have_x" != yes; then
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15950 $as_echo "$have_x" >&6; }
15953 # If each of the values was on the command line, it overrides each guess.
15954 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15955 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15956 # Update the cache value to reflect the command line values.
15957 ac_cv_have_x
="have_x=yes\
15958 ac_x_includes='$x_includes'\
15959 ac_x_libraries='$x_libraries'"
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15961 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15965 # Unlike the sim directory, whether a simulator is linked is controlled by
15966 # presence of a gdb_sim definition in the target configure.tgt entry.
15967 # This code just checks for a few cases where we'd like to ignore those
15968 # definitions, even when they're present in the '.mt' file. These cases
15969 # are when --disable-sim is specified, or if the simulator directory is
15970 # not part of the source tree.
15972 # Check whether --enable-sim was given.
15973 if test "${enable_sim+set}" = set; then :
15974 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
15975 echo "enableval = ${enableval}";
15976 case "${enableval}" in
15977 yes) ignore_sim
=false
;;
15978 no
) ignore_sim
=true
;;
15979 *) ignore_sim
=false
;;
15986 if test ! -d "${srcdir}/../sim"; then
15992 if test "${ignore_sim}" = "false"; then
15993 if test x
"${gdb_sim}" != x
; then
15995 SIM_OBS
="remote-sim.o"
15997 $as_echo "#define WITH_SIM 1" >>confdefs.h
16015 # List of host floatformats.
16017 cat >>confdefs.h
<<_ACEOF
16018 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
16022 cat >>confdefs.h
<<_ACEOF
16023 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
16027 cat >>confdefs.h
<<_ACEOF
16028 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
16032 # target_subdir is used by the testsuite to find the target libraries.
16034 if test "${host}" != "${target}"; then
16035 target_subdir
="${target_alias}/"
16040 if test "${gdb_native}" = "yes"; then
16041 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
16042 if test ! -f ${host_makefile_frag}; then
16043 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
16045 frags
="$frags $host_makefile_frag"
16047 host_makefile_frag
=/dev
/null
16053 if test "${gdb_native}" = "yes"; then
16054 # We pick this up from the host configuration file (.mh) because we
16055 # do not have a native configuration Makefile fragment.
16056 nativefile
=`sed -n '
16057 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
16058 ' ${host_makefile_frag}`
16062 if test x
"${gdb_osabi}" != x
; then
16064 cat >>confdefs.h
<<_ACEOF
16065 #define GDB_OSABI_DEFAULT $gdb_osabi
16070 # Enable multi-ice-gdb-server.
16071 # Check whether --enable-multi-ice was given.
16072 if test "${enable_multi_ice+set}" = set; then :
16073 enableval
=$enable_multi_ice; case $enableval in
16076 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
16080 if test "x$enable_multi_ice" = xyes
; then
16081 subdirs
="$subdirs multi-ice"
16085 # Check whether --enable-gdbserver was given.
16086 if test "${enable_gdbserver+set}" = set; then :
16087 enableval
=$enable_gdbserver; case "${enableval}" in
16089 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
16092 enable_gdbserver
=auto
16096 # We only build gdbserver automatically in a native configuration, and
16097 # only if the user did not explicitly disable its build.
16098 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
16100 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
16101 if test "x$build_gdbserver" = xyes
; then
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16103 $as_echo "yes" >&6; }
16104 subdirs
="$subdirs gdbserver"
16106 gdbserver_build_enabled
=yes
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109 $as_echo "no" >&6; }
16113 # If the user explicitly request the gdbserver to be built, verify that
16114 # we were in fact able to enable it.
16115 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
16116 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
16119 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16120 # to an empty version.
16126 if test "${nativefile}" != ""; then
16127 case "${nativefile}" in
16128 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
16129 * ) GDB_NM_FILE
="${nativefile}"
16131 files
="${files} ${GDB_NM_FILE}"
16132 links
="${links} nm.h"
16134 cat >>confdefs.h
<<_ACEOF
16135 #define GDB_NM_FILE "${GDB_NM_FILE}"
16141 ac_sources
="$files"
16143 while test -n "$ac_sources"; do
16144 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
16145 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
16146 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
16148 ac_config_links
="$ac_config_links $ac_config_links_1"
16154 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16157 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directory/Makefile"
16159 ac_config_commands
="$ac_config_commands default"
16161 cat >confcache
<<\_ACEOF
16162 # This file is a shell script that caches the results of configure
16163 # tests run on this system so they can be shared between configure
16164 # scripts and configure runs, see configure's option --config-cache.
16165 # It is not useful on other systems. If it contains results you don't
16166 # want to keep, you may remove or edit it.
16168 # config.status only pays attention to the cache file if you give it
16169 # the --recheck option to rerun configure.
16171 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16172 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16173 # following values.
16177 # The following way of writing the cache mishandles newlines in values,
16178 # but we know of no workaround that is simple, portable, and efficient.
16179 # So, we kill variables containing newlines.
16180 # Ultrix sh set writes to stderr and can't be redirected directly,
16181 # and sets the high bit in the cache file unless we assign to the vars.
16183 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16184 eval ac_val
=\$
$ac_var
16188 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16189 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16192 _ | IFS | as_nl
) ;; #(
16193 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16194 *) { eval $ac_var=; unset $ac_var;} ;;
16200 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16201 *${as_nl}ac_space
=\
*)
16202 # `set' does not quote correctly, so add quotes: double-quote
16203 # substitution turns \\\\ into \\, and sed turns \\ into \.
16206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16209 # `set' quotes correctly as required by POSIX, so do not add quotes.
16210 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16219 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16221 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16223 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16224 if test -w "$cache_file"; then
16225 test "x$cache_file" != "x/dev/null" &&
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16227 $as_echo "$as_me: updating cache $cache_file" >&6;}
16228 cat confcache
>$cache_file
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16231 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16236 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16237 # Let make expand exec_prefix.
16238 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16240 DEFS
=-DHAVE_CONFIG_H
16244 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16245 # 1. Remove the extension, and $U if already installed.
16246 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16247 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16248 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16249 # will be set to the directory where LIBOBJS objects are built.
16250 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16251 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16253 LIBOBJS
=$ac_libobjs
16255 LTLIBOBJS
=$ac_ltlibobjs
16258 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16259 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16262 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16263 as_fn_error
"conditional \"GMAKE\" was never defined.
16264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16266 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16267 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
16268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16273 if test -n "$gl_LIBOBJS"; then
16274 # Remove the extension.
16275 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16276 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16277 gl_libobjs
="$gl_libobjs $i.$ac_objext"
16278 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
16281 gl_LIBOBJS
=$gl_libobjs
16283 gl_LTLIBOBJS
=$gl_ltlibobjs
16289 if test -n "$gltests_LIBOBJS"; then
16290 # Remove the extension.
16291 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16292 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16293 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
16294 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
16297 gltests_LIBOBJS
=$gltests_libobjs
16299 gltests_LTLIBOBJS
=$gltests_ltlibobjs
16302 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16303 as_fn_error
"conditional \"AMDEP\" was never defined.
16304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16306 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16307 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16310 if test -n "$EXEEXT"; then
16312 am__EXEEXT_FALSE
='#'
16314 am__EXEEXT_TRUE
='#'
16320 : ${CONFIG_STATUS=./config.status}
16322 ac_clean_files_save
=$ac_clean_files
16323 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16325 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16327 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16329 # Generated by $as_me.
16330 # Run this file to recreate the current configuration.
16331 # Compiler output produced by configure, useful for debugging
16332 # configure, is in config.log if it exists.
16335 ac_cs_recheck=false
16338 SHELL=\${CONFIG_SHELL-$SHELL}
16341 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16342 ## -------------------- ##
16343 ## M4sh Initialization. ##
16344 ## -------------------- ##
16346 # Be more Bourne compatible
16347 DUALCASE
=1; export DUALCASE
# for MKS sh
16348 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16351 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16352 # is contrary to our usage. Disable this feature.
16353 alias -g '${1+"$@"}'='"$@"'
16354 setopt NO_GLOB_SUBST
16356 case `(set -o) 2>/dev/null` in #(
16368 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16369 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16370 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16371 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16372 # Prefer a ksh shell builtin over an external printf program on Solaris,
16373 # but without wasting forks for bash or zsh.
16374 if test -z "$BASH_VERSION$ZSH_VERSION" \
16375 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16376 as_echo='print
-r --'
16377 as_echo_n='print
-rn --'
16378 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16379 as_echo='printf %s
\n'
16380 as_echo_n='printf %s
'
16382 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16383 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16384 as_echo_n='/usr
/ucb
/echo -n'
16386 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16387 as_echo_n_body='eval
16391 expr "X$arg" : "X\\(.*\\)$as_nl";
16392 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16394 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16396 export as_echo_n_body
16397 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16399 export as_echo_body
16400 as_echo='sh
-c $as_echo_body as_echo
'
16403 # The user is always right.
16404 if test "${PATH_SEPARATOR+set}" != set; then
16406 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16407 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16414 # We need space, tab and new line, in precisely that order. Quoting is
16415 # there to prevent editors from complaining about space-tab.
16416 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16417 # splitting by setting IFS to empty value.)
16420 # Find who we are. Look in the path if we contain no directory separator.
16422 *[\\/]* ) as_myself=$0 ;;
16423 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16424 for as_dir in $PATH
16427 test -z "$as_dir" && as_dir=.
16428 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16434 # We did not find ourselves, most probably we were run as `sh COMMAND'
16435 # in which case we are not to be found in the path.
16436 if test "x$as_myself" = x
; then
16439 if test ! -f "$as_myself"; then
16440 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16444 # Unset variables that we do not need and which cause bugs (e.g. in
16445 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16446 # suppresses any "Segmentation fault" message there. '((' could
16447 # trigger a bug in pdksh 5.2.14.
16448 for as_var
in BASH_ENV ENV MAIL MAILPATH
16449 do eval test x\
${$as_var+set} = xset \
16450 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16463 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16466 # as_fn_error ERROR [LINENO LOG_FD]
16467 # ---------------------------------
16468 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16469 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16470 # script with status $?, using 1 if that was 0.
16473 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16475 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16476 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16478 $as_echo "$as_me: error: $1" >&2
16479 as_fn_exit
$as_status
16483 # as_fn_set_status STATUS
16484 # -----------------------
16485 # Set $? to STATUS, without forking.
16486 as_fn_set_status
()
16489 } # as_fn_set_status
16491 # as_fn_exit STATUS
16492 # -----------------
16493 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16497 as_fn_set_status
$1
16503 # Portably unset VAR.
16506 { eval $1=; unset $1;}
16508 as_unset
=as_fn_unset
16509 # as_fn_append VAR VALUE
16510 # ----------------------
16511 # Append the text in VALUE to the end of the definition contained in VAR. Take
16512 # advantage of any shell optimizations that allow amortized linear growth over
16513 # repeated appends, instead of the typical quadratic growth present in naive
16515 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16516 eval 'as_fn_append ()
16527 # as_fn_arith ARG...
16528 # ------------------
16529 # Perform arithmetic evaluation on the ARGs, and store the result in the
16530 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16531 # must be portable across $(()) and expr.
16532 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16533 eval 'as_fn_arith ()
16540 as_val
=`expr "$@" || test $? -eq 1`
16545 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16546 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16552 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16553 as_basename
=basename
16558 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16564 as_me
=`$as_basename -- "$0" ||
16565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16566 X"$0" : 'X\(//\)$' \| \
16567 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16569 sed '/^.*\/\([^/][^/]*\)\/*$/{
16583 # Avoid depending upon Character Ranges.
16584 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16585 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16586 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16587 as_cr_digits
='0123456789'
16588 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16590 ECHO_C
= ECHO_N
= ECHO_T
=
16591 case `echo -n x` in #(((((
16593 case `echo 'xy\c'` in
16594 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16596 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16603 rm -f conf$$ conf$$.exe conf$$.
file
16604 if test -d conf$$.dir
; then
16605 rm -f conf$$.dir
/conf$$.
file
16608 mkdir conf$$.dir
2>/dev
/null
16610 if (echo >conf$$.
file) 2>/dev
/null
; then
16611 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16613 # ... but there are two gotchas:
16614 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16615 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16616 # In both cases, we have to default to `cp -p'.
16617 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16619 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16627 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16628 rmdir conf$$.dir
2>/dev
/null
16633 # Create "$as_dir" as a directory, including parents if necessary.
16638 -*) as_dir
=.
/$as_dir;;
16640 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16644 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16645 *) as_qdir
=$as_dir;;
16647 as_dirs
="'$as_qdir' $as_dirs"
16648 as_dir
=`$as_dirname -- "$as_dir" ||
16649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16650 X"$as_dir" : 'X\(//\)[^/]' \| \
16651 X"$as_dir" : 'X\(//\)$' \| \
16652 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16653 $as_echo X"$as_dir" |
16654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16658 /^X\(\/\/\)[^/].*/{
16671 test -d "$as_dir" && break
16673 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16674 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16678 if mkdir
-p .
2>/dev
/null
; then
16679 as_mkdir_p
='mkdir -p "$as_dir"'
16681 test -d .
/-p && rmdir .
/-p
16685 if test -x / >/dev
/null
2>&1; then
16686 as_test_x
='test -x'
16688 if ls -dL / >/dev
/null
2>&1; then
16695 if test -d "$1"; then
16701 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16702 ???[sx]*):;;*)false;;esac;fi
16706 as_executable_p
=$as_test_x
16708 # Sed expression to map a string onto a valid CPP name.
16709 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16711 # Sed expression to map a string onto a valid variable name.
16712 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16716 ## ----------------------------------- ##
16717 ## Main body of $CONFIG_STATUS script. ##
16718 ## ----------------------------------- ##
16720 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16723 # Save the log message, to keep $0 and so on meaningful, and to
16724 # report actual input values of CONFIG_FILES etc. instead of their
16725 # values after options handling.
16727 This file was extended by $as_me, which was
16728 generated by GNU Autoconf 2.64. Invocation command line was
16730 CONFIG_FILES = $CONFIG_FILES
16731 CONFIG_HEADERS = $CONFIG_HEADERS
16732 CONFIG_LINKS = $CONFIG_LINKS
16733 CONFIG_COMMANDS = $CONFIG_COMMANDS
16736 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16741 case $ac_config_files in *"
16742 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16745 case $ac_config_headers in *"
16746 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16751 # Files that config.status was made for.
16752 config_files="$ac_config_files"
16753 config_headers="$ac_config_headers"
16754 config_links="$ac_config_links"
16755 config_commands="$ac_config_commands"
16759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16761 \`$as_me' instantiates files and other configuration actions
16762 from templates according to the current configuration. Unless the files
16763 and actions are specified as TAGs, all are instantiated by default.
16765 Usage: $0 [OPTION]... [TAG]...
16767 -h, --help print this help, then exit
16768 -V, --version print version number and configuration settings, then exit
16769 -q, --quiet, --silent
16770 do not print progress messages
16771 -d, --debug don't remove temporary files
16772 --recheck update $as_me by reconfiguring in the same conditions
16773 --file=FILE[:TEMPLATE]
16774 instantiate the configuration file FILE
16775 --header=FILE[:TEMPLATE]
16776 instantiate the configuration header FILE
16778 Configuration files:
16781 Configuration headers:
16784 Configuration links:
16787 Configuration commands:
16790 Report bugs to the package provider."
16793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16796 configured by $0, generated by GNU Autoconf 2.64,
16797 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16799 Copyright (C) 2009 Free Software Foundation, Inc.
16800 This config.status script is free software; the Free Software Foundation
16801 gives unlimited permission to copy, distribute and modify it."
16808 test -n "\$AWK" || AWK=awk
16811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16812 # The default lists apply if the user does not specify any file.
16818 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16819 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16830 # Handling of the options.
16831 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16833 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16834 $as_echo "$ac_cs_version"; exit ;;
16835 --debug |
--debu |
--deb |
--de |
--d |
-d )
16837 --file |
--fil |
--fi |
--f )
16840 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16842 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16843 ac_need_defaults
=false
;;
16844 --header |
--heade |
--head |
--hea )
16847 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16849 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16850 ac_need_defaults
=false
;;
16852 # Conflict between --help and --header
16853 as_fn_error
"ambiguous option: \`$1'
16854 Try \`$0 --help' for more information.";;
16855 --help |
--hel |
-h )
16856 $as_echo "$ac_cs_usage"; exit ;;
16857 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16858 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16861 # This is an error.
16862 -*) as_fn_error
"unrecognized option: \`$1'
16863 Try \`$0 --help' for more information." ;;
16865 *) as_fn_append ac_config_targets
" $1"
16866 ac_need_defaults
=false
;;
16872 ac_configure_extra_args
=
16874 if $ac_cs_silent; then
16876 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16881 if \$ac_cs_recheck; then
16882 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16884 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16885 CONFIG_SHELL='$SHELL'
16886 export CONFIG_SHELL
16891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16896 ## Running $as_me. ##
16902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16906 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16907 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16913 # Handling of arguments.
16914 for ac_config_target
in $ac_config_targets
16916 case $ac_config_target in
16917 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16918 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
16919 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16920 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16921 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
16922 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16923 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16924 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16925 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
16926 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
16927 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16929 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16934 # If the user did not use the arguments to specify the items to instantiate,
16935 # then the envvar interface is used. Set only those that are not.
16936 # We use the long form for the default assignment because of an extremely
16937 # bizarre bug on SunOS 4.1.3.
16938 if $ac_need_defaults; then
16939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16940 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16941 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16942 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16945 # Have a temporary directory for convenience. Make it in the build tree
16946 # simply because there is no reason against having it here, and in addition,
16947 # creating and moving files from /tmp can sometimes cause problems.
16948 # Hook for its removal unless debugging.
16949 # Note that there is a small window in which the directory will not be cleaned:
16950 # after its creation but before its name has been assigned to `$tmp'.
16954 trap 'exit_status=$?
16955 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16957 trap 'as_fn_exit 1' 1 2 13 15
16959 # Create a (secure) tmp directory for tmp files.
16962 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16963 test -n "$tmp" && test -d "$tmp"
16966 tmp
=.
/conf$$
-$RANDOM
16967 (umask 077 && mkdir
"$tmp")
16968 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16970 # Set up the scripts for CONFIG_FILES section.
16971 # No need to generate them if there are no CONFIG_FILES.
16972 # This happens for instance with `./config.status config.h'.
16973 if test -n "$CONFIG_FILES"; then
16975 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16976 ac_cs_awk_getline
=:
16977 ac_cs_awk_pipe_init
=
16978 ac_cs_awk_read_file
='
16979 while ((getline aline < (F[key])) > 0)
16982 ac_cs_awk_pipe_fini
=
16984 ac_cs_awk_getline
=false
16985 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16986 ac_cs_awk_read_file
='
16988 print "cat " F[key] " &&"
16989 '$ac_cs_awk_pipe_init
16990 # The final `:' finishes the AND list.
16991 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16993 ac_cr
=`echo X | tr X '\015'`
16994 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16995 # But we know of no other shell where ac_cr would be empty at this
16996 # point, so we can use a bashism as a fallback.
16997 if test "x$ac_cr" = x
; then
16998 eval ac_cr
=\$
\'\\r
\'
17000 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17001 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17004 ac_cs_awk_cr
=$ac_cr
17007 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17010 # Create commands to substitute file output variables.
17012 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17013 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17014 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
17017 } >conf$
$files.sh
&&
17018 . .
/conf$
$files.sh ||
17019 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
17020 rm -f conf$
$files.sh
17023 echo "cat >conf$$subs.awk <<_ACEOF" &&
17024 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17026 } >conf$$subs.sh ||
17027 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17028 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17030 for ac_last_try in false false false false false :; do
17031 . ./conf$$subs.sh ||
17032 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17034 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17035 if test $ac_delim_n = $ac_delim_num; then
17037 elif $ac_last_try; then
17038 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17040 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17043 rm -f conf$$subs.sh
17045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17046 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17050 s/^/S["/; s
/!.
*/"]=/
17060 s/\(.\{148\}\).*/\1/
17062 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17067 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17074 s/\(.\{148\}\).*/\1/
17076 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17080 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17085 ' <conf$$subs.awk | sed '
17090 ' >>$CONFIG_STATUS || ac_write_fail=1
17091 rm -f conf$$subs.awk
17092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17094 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17095 for (key in S) S_is_set[key] = 1
17097 \$ac_cs_awk_pipe_init
17101 nfields = split(line, field, "@
")
17103 len = length(field[1])
17104 for (i = 2; i < nfields; i++) {
17106 keylen = length(key)
17107 if (S_is_set[key]) {
17109 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17110 len += length(value) + length(field[++i])
17115 if (nfields == 3 && !substed) {
17117 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17118 \$ac_cs_awk_read_file
17124 \$ac_cs_awk_pipe_fini
17127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17128 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17129 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17132 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17133 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17136 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17137 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17138 # trailing colons and then remove the whole line if VPATH becomes empty
17139 # (actually we leave an empty line to preserve line numbers).
17140 if test "x
$srcdir" = x.; then
17141 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17142 s/:*\$(srcdir):*/:/
17143 s/:*\${srcdir}:*/:/
17145 s/^\([^=]*=[ ]*\):*/\1/
17151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17152 fi # test -n "$CONFIG_FILES"
17154 # Set up the scripts for CONFIG_HEADERS section.
17155 # No need to generate them if there are no CONFIG_HEADERS.
17156 # This happens for instance with `./config.status Makefile'.
17157 if test -n "$CONFIG_HEADERS"; then
17158 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17162 # Transform confdefs.h into an awk script `defines.awk', embedded as
17163 # here-document in config.status, that substitutes the proper values into
17164 # config.h.in to produce config.h.
17166 # Create a delimiter string that does not exist in confdefs.h, to ease
17167 # handling of long lines.
17169 for ac_last_try in false false :; do
17170 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17171 if test -z "$ac_t"; then
17173 elif $ac_last_try; then
17174 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17176 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17180 # For the awk script, D is an array of macro values keyed by name,
17181 # likewise P contains macro parameters if any. Preserve backslash
17182 # newline sequences.
17184 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17186 s/.\{148\}/&'"$ac_delim"'/g
17189 s/^[ ]*#[ ]*define[ ][ ]*/ /
17196 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17198 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17202 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17203 D["\
1"]=" \
3\\\\\\n
"\\/p
17205 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17210 s/.\{148\}/&'"$ac_delim"'/g
17215 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17218 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17220 ' <confdefs.h | sed '
17221 s/'"$ac_delim"'/"\\\
17222 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17225 for (key in D) D_is_set[key] = 1
17228 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17230 split(line, arg, " ")
17231 if (arg[1] == "#") {
17235 defundef
= substr
(arg
[1], 2)
17238 split(mac1
, mac2
, "(") #)
17240 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17241 if (D_is_set
[macro
]) {
17242 # Preserve the white space surrounding the "#".
17243 print prefix
"define", macro P
[macro
] D
[macro
]
17246 # Replace #undef with comments. This is necessary, for example,
17247 # in the case of _POSIX_SOURCE, which is predefined and required
17248 # on some systems where configure will not decide to define it.
17249 if (defundef
== "undef") {
17250 print
"/*", prefix defundef
, macro
, "*/"
17258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17259 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17260 fi # test -n "$CONFIG_HEADERS"
17263 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17268 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17270 case $ac_mode$ac_tag in
17272 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17273 :[FH
]-) ac_tag
=-:-;;
17274 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17291 -) ac_f
="$tmp/stdin";;
17292 *) # Look for the file first in the build tree, then in the source tree
17293 # (if the path is not absolute). The absolute path cannot be DOS-style,
17294 # because $ac_f cannot contain `:'.
17298 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17300 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17302 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17303 as_fn_append ac_file_inputs
" '$ac_f'"
17306 # Let's still pretend it is `configure' which instantiates (i.e., don't
17307 # use $as_me), people would be surprised to read:
17308 # /* config.h. Generated by config.status. */
17309 configure_input
='Generated from '`
17310 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17312 if test x
"$ac_file" != x-
; then
17313 configure_input
="$ac_file. $configure_input"
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17315 $as_echo "$as_me: creating $ac_file" >&6;}
17317 # Neutralize special characters interpreted by sed in replacement strings.
17318 case $configure_input in #(
17319 *\
&* |
*\|
* |
*\\* )
17320 ac_sed_conf_input
=`$as_echo "$configure_input" |
17321 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17322 *) ac_sed_conf_input
=$configure_input;;
17326 *:-:* |
*:-) cat >"$tmp/stdin" \
17327 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17332 ac_dir
=`$as_dirname -- "$ac_file" ||
17333 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17334 X"$ac_file" : 'X\(//\)[^/]' \| \
17335 X"$ac_file" : 'X\(//\)$' \| \
17336 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17337 $as_echo X"$ac_file" |
17338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17342 /^X\(\/\/\)[^/].*/{
17355 as_dir
="$ac_dir"; as_fn_mkdir_p
17359 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17361 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17362 # A ".." for each directory in $ac_dir_suffix.
17363 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17364 case $ac_top_builddir_sub in
17365 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17366 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17369 ac_abs_top_builddir
=$ac_pwd
17370 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17371 # for backward compatibility:
17372 ac_top_builddir
=$ac_top_build_prefix
17375 .
) # We are building in place.
17377 ac_top_srcdir
=$ac_top_builddir_sub
17378 ac_abs_top_srcdir
=$ac_pwd ;;
17379 [\\/]* | ?
:[\\/]* ) # Absolute name.
17380 ac_srcdir
=$srcdir$ac_dir_suffix;
17381 ac_top_srcdir
=$srcdir
17382 ac_abs_top_srcdir
=$srcdir ;;
17383 *) # Relative name.
17384 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17385 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17386 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17388 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17398 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17399 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17401 ac_MKDIR_P
=$MKDIR_P
17403 [\\/$
]* | ?
:[\\/]* ) ;;
17404 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17409 # If the template does not know about datarootdir, expand it.
17410 # FIXME: This hack should be removed a few years after 2.60.
17411 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17422 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17423 *datarootdir
*) ac_datarootdir_seen
=yes;;
17424 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17426 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17429 ac_datarootdir_hack='
17430 s&@datadir@&$datadir&g
17431 s&@docdir@&$docdir&g
17432 s&@infodir@&$infodir&g
17433 s&@localedir@&$localedir&g
17434 s&@mandir@&$mandir&g
17435 s&\\\${datarootdir}&$datarootdir&g' ;;
17439 # Neutralize VPATH when `$srcdir' = `.'.
17440 # Shell code in configure.ac might set extrasub.
17441 # FIXME: do we really want to maintain this feature?
17442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17443 ac_sed_extra="$ac_vpsub
17446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17448 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17449 s|@configure_input@|
$ac_sed_conf_input|
;t t
17450 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17451 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17452 s
&@srcdir@
&$ac_srcdir&;t t
17453 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17454 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17455 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17456 s
&@builddir@
&$ac_builddir&;t t
17457 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17458 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17459 s
&@INSTALL@
&$ac_INSTALL&;t t
17460 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17461 $ac_datarootdir_hack
17463 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17464 if $ac_cs_awk_getline; then
17465 $AWK -f "$tmp/subs.
awk"
17467 $AWK -f "$tmp/subs.
awk" | $SHELL
17469 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17471 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17472 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17473 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17475 which seems to be undefined. Please make sure it is defined." >&5
17476 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17477 which seems to be undefined. Please make sure it is defined." >&2;}
17481 -) cat "$tmp/out" && rm -f "$tmp/out";;
17482 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17484 || as_fn_error "could not create $ac_file" "$LINENO" 5
17490 if test x"$ac_file" != x-; then
17492 $as_echo "/* $configure_input */" \
17493 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17494 } >"$tmp/config.h" \
17495 || as_fn_error "could not create $ac_file" "$LINENO" 5
17496 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17498 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17501 mv "$tmp/config.h" "$ac_file" \
17502 || as_fn_error "could not create $ac_file" "$LINENO" 5
17505 $as_echo "/* $configure_input */" \
17506 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17507 || as_fn_error "could not create -" "$LINENO" 5
17509 # Compute "$ac_file"'s index
in $config_headers.
17512 for _am_header
in $config_headers :; do
17513 case $_am_header in
17514 $_am_arg |
$_am_arg:* )
17517 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17520 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17521 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17522 X"$_am_arg" : 'X\(//\)[^/]' \| \
17523 X"$_am_arg" : 'X\(//\)$' \| \
17524 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17525 $as_echo X"$_am_arg" |
17526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17530 /^X\(\/\/\)[^/].*/{
17542 s/.*/./; q'`/stamp-h
$_am_stamp_count
17549 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17552 # Prefer the file from the source tree if names are identical.
17553 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
17554 ac_source
=$srcdir/$ac_source
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17558 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17560 if test ! -r "$ac_source"; then
17561 as_fn_error
"$ac_source: file not found" "$LINENO" 5
17565 # Try a relative symlink, then a hard link, then a copy.
17567 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
17568 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
17570 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
17571 ln "$ac_source" "$ac_file" 2>/dev
/null ||
17572 cp -p "$ac_source" "$ac_file" ||
17573 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17576 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17577 $as_echo "$as_me: executing $ac_file commands" >&6;}
17582 case $ac_file$ac_mode in
17583 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
17584 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17585 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17586 # are listed without --file. Let's play safe and only enable the eval
17587 # if we detect the quoting.
17588 case $CONFIG_FILES in
17589 *\'*) eval set x
"$CONFIG_FILES" ;;
17590 *) set x
$CONFIG_FILES ;;
17595 # Strip MF so we end up with the name of the file.
17596 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17597 # Check whether this is an Automake generated Makefile or not.
17598 # We used to match only the files named `Makefile.in', but
17599 # some people rename them; so instead we look at the file content.
17600 # Grep'ing the first line is not enough: some people post-process
17601 # each Makefile.in and add a new line on top of each file to say so.
17602 # Grep'ing the whole file is not good either: AIX grep has a line
17603 # limit of 2048, but all sed's we know have understand at least 4000.
17604 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17605 dirpart
=`$as_dirname -- "$mf" ||
17606 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17607 X"$mf" : 'X\(//\)[^/]' \| \
17608 X"$mf" : 'X\(//\)$' \| \
17609 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17615 /^X\(\/\/\)[^/].*/{
17631 # Extract the definition of DEPDIR, am__include, and am__quote
17632 # from the Makefile without running `make'.
17633 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17634 test -z "$DEPDIR" && continue
17635 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17636 test -z "am__include" && continue
17637 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17638 # When using ansi2knr, U may be empty or an underscore; expand it
17639 U
=`sed -n 's/^U = //p' < "$mf"`
17640 # Find all dependency output files, they are included files with
17641 # $(DEPDIR) in their names. We invoke sed twice because it is the
17642 # simplest approach to changing $(DEPDIR) to its actual value in the
17644 for file in `sed -n "
17645 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17646 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17647 # Make sure the directory exists.
17648 test -f "$dirpart/$file" && continue
17649 fdir
=`$as_dirname -- "$file" ||
17650 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17651 X"$file" : 'X\(//\)[^/]' \| \
17652 X"$file" : 'X\(//\)$' \| \
17653 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17654 $as_echo X"$file" |
17655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17659 /^X\(\/\/\)[^/].*/{
17672 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17673 # echo "creating $dirpart/$file"
17674 echo '# dummy' > "$dirpart/$file"
17680 case x
$CONFIG_HEADERS in
17681 xconfig.h
:config.
in)
17692 ac_clean_files
=$ac_clean_files_save
17694 test $ac_write_fail = 0 ||
17695 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17698 # configure is writing to config.log, and then calls config.status.
17699 # config.status does its own redirection, appending to config.log.
17700 # Unfortunately, on DOS this fails, as config.log is still kept open
17701 # by configure, so config.status won't be able to write to it; its
17702 # output is simply discarded. So we exec the FD to /dev/null,
17703 # effectively closing config.log, so it can be properly (re)opened and
17704 # appended to by config.status. When coming back to configure, we
17705 # need to make the FD available again.
17706 if test "$no_create" != yes; then
17708 ac_config_status_args
=
17709 test "$silent" = yes &&
17710 ac_config_status_args
="$ac_config_status_args --quiet"
17712 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17714 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17715 # would make configure fail if this is the last instruction.
17716 $ac_cs_success || as_fn_exit $?
17720 # CONFIG_SUBDIRS section.
17722 if test "$no_recursion" != yes; then
17724 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17725 # so they do not pile up.
17726 ac_sub_configure_args
=
17728 eval "set x $ac_configure_args"
17732 if test -n "$ac_prev"; then
17737 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17738 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17739 ac_prev
=cache_file
;;
17740 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17741 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17744 --config-cache |
-C)
17746 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17748 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17750 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17752 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17754 --disable-option-checking)
17758 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17760 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
17764 # Always prepend --prefix to ensure using the same prefix
17765 # in subdir configurations.
17766 ac_arg
="--prefix=$prefix"
17768 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17770 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
17773 if test "$silent" = yes; then
17774 ac_sub_configure_args
="--silent $ac_sub_configure_args"
17777 # Always prepend --disable-option-checking to silence warnings, since
17778 # different subdirs can have different --enable and --with options.
17779 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
17782 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17784 # Do not complain, so a configure script can configure whichever
17785 # parts of a large source tree are present.
17786 test -d "$srcdir/$ac_dir" ||
continue
17788 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17789 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17790 $as_echo "$ac_msg" >&6
17791 as_dir
="$ac_dir"; as_fn_mkdir_p
17795 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17797 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17798 # A ".." for each directory in $ac_dir_suffix.
17799 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17800 case $ac_top_builddir_sub in
17801 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17802 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17805 ac_abs_top_builddir
=$ac_pwd
17806 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17807 # for backward compatibility:
17808 ac_top_builddir
=$ac_top_build_prefix
17811 .
) # We are building in place.
17813 ac_top_srcdir
=$ac_top_builddir_sub
17814 ac_abs_top_srcdir
=$ac_pwd ;;
17815 [\\/]* | ?
:[\\/]* ) # Absolute name.
17816 ac_srcdir
=$srcdir$ac_dir_suffix;
17817 ac_top_srcdir
=$srcdir
17818 ac_abs_top_srcdir
=$srcdir ;;
17819 *) # Relative name.
17820 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17821 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17822 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17824 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17829 # Check for guested configure; otherwise get Cygnus style configure.
17830 if test -f "$ac_srcdir/configure.gnu"; then
17831 ac_sub_configure
=$ac_srcdir/configure.gnu
17832 elif test -f "$ac_srcdir/configure"; then
17833 ac_sub_configure
=$ac_srcdir/configure
17834 elif test -f "$ac_srcdir/configure.in"; then
17835 # This should be Cygnus configure.
17836 ac_sub_configure
=$ac_aux_dir/configure
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17839 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17843 # The recursion is here.
17844 if test -n "$ac_sub_configure"; then
17845 # Make the cache file name correct relative to the subdirectory.
17846 case $cache_file in
17847 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
17848 *) # Relative name.
17849 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
17852 { $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
17853 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17854 # The eval makes quoting arguments work.
17855 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17856 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17857 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17863 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17865 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}