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
669 READLINE_TEXI_INCFLAG
700 INSTALL_STRIP_PROGRAM
721 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
757 NEXT_AS_FIRST_DIRECTIVE_STRING_H
767 HAVE_SIGNED_SIG_ATOMIC_T
770 BITSIZEOF_SIG_ATOMIC_T
776 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
780 HAVE_UNSIGNED_LONG_LONG_INT
782 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
785 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
790 APPLE_UNIVERSAL_BUILD
856 GL_COND_LIBTOOL_FALSE
901 MAINTAINER_MODE_FALSE
930 program_transform_name
941 ac_subst_files
='host_makefile_frag'
943 enable_option_checking
944 enable_maintainer_mode
947 enable_dependency_tracking
948 with_separate_debug_dir
950 with_relocated_sources
974 enable_build_warnings
975 enable_gdb_build_warnings
983 ac_precious_vars
='build_alias
995 ac_subdirs_all
='testsuite
1000 # Initialize some variables set by options.
1002 ac_init_version
=false
1003 ac_unrecognized_opts
=
1004 ac_unrecognized_sep
=
1005 # The variables have the same names as the options, with
1006 # dashes changed to underlines.
1007 cache_file
=/dev
/null
1014 program_transform_name
=s
,x
,x
,
1022 # Installation directory options.
1023 # These are left unexpanded so users can "make install exec_prefix=/foo"
1024 # and all the variables that are supposed to be based on exec_prefix
1025 # by default will actually change.
1026 # Use braces instead of parens because sh, perl, etc. also accept them.
1027 # (The list follows the same order as the GNU Coding Standards.)
1028 bindir
='${exec_prefix}/bin'
1029 sbindir
='${exec_prefix}/sbin'
1030 libexecdir
='${exec_prefix}/libexec'
1031 datarootdir
='${prefix}/share'
1032 datadir
='${datarootdir}'
1033 sysconfdir
='${prefix}/etc'
1034 sharedstatedir
='${prefix}/com'
1035 localstatedir
='${prefix}/var'
1036 includedir
='${prefix}/include'
1037 oldincludedir
='/usr/include'
1038 docdir
='${datarootdir}/doc/${PACKAGE}'
1039 infodir
='${datarootdir}/info'
1044 libdir
='${exec_prefix}/lib'
1045 localedir
='${datarootdir}/locale'
1046 mandir
='${datarootdir}/man'
1052 # If the previous option needs an argument, assign it.
1053 if test -n "$ac_prev"; then
1054 eval $ac_prev=\
$ac_option
1060 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1064 # Accept the important Cygnus configure options, so we can diagnose typos.
1066 case $ac_dashdash$ac_option in
1070 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1072 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1073 bindir
=$ac_optarg ;;
1075 -build |
--build |
--buil |
--bui |
--bu)
1076 ac_prev
=build_alias
;;
1077 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1078 build_alias
=$ac_optarg ;;
1080 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1081 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1082 ac_prev
=cache_file
;;
1083 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1084 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1085 cache_file
=$ac_optarg ;;
1087 --config-cache |
-C)
1088 cache_file
=config.cache
;;
1090 -datadir |
--datadir |
--datadi |
--datad)
1092 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1093 datadir
=$ac_optarg ;;
1095 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1096 |
--dataroo |
--dataro |
--datar)
1097 ac_prev
=datarootdir
;;
1098 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1099 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1100 datarootdir
=$ac_optarg ;;
1102 -disable-* |
--disable-*)
1103 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1106 as_fn_error
"invalid feature name: $ac_useropt"
1107 ac_useropt_orig
=$ac_useropt
1108 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_
$ac_useropt"
1113 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114 ac_unrecognized_sep
=', ';;
1116 eval enable_
$ac_useropt=no
;;
1118 -docdir |
--docdir |
--docdi |
--doc |
--do)
1120 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1121 docdir
=$ac_optarg ;;
1123 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1125 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1126 dvidir
=$ac_optarg ;;
1128 -enable-* |
--enable-*)
1129 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1132 as_fn_error
"invalid feature name: $ac_useropt"
1133 ac_useropt_orig
=$ac_useropt
1134 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1137 "enable_
$ac_useropt"
1139 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1140 ac_unrecognized_sep
=', ';;
1142 eval enable_
$ac_useropt=\
$ac_optarg ;;
1144 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1145 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1146 |
--exec |
--exe |
--ex)
1147 ac_prev
=exec_prefix
;;
1148 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1149 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1150 |
--exec=* |
--exe=* |
--ex=*)
1151 exec_prefix
=$ac_optarg ;;
1153 -gas |
--gas |
--ga |
--g)
1154 # Obsolete; use --with-gas.
1157 -help |
--help |
--hel |
--he |
-h)
1158 ac_init_help
=long
;;
1159 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1160 ac_init_help
=recursive
;;
1161 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1162 ac_init_help
=short
;;
1164 -host |
--host |
--hos |
--ho)
1165 ac_prev
=host_alias
;;
1166 -host=* |
--host=* |
--hos=* |
--ho=*)
1167 host_alias
=$ac_optarg ;;
1169 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1171 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1173 htmldir
=$ac_optarg ;;
1175 -includedir |
--includedir |
--includedi |
--included |
--include \
1176 |
--includ |
--inclu |
--incl |
--inc)
1177 ac_prev
=includedir
;;
1178 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1179 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1180 includedir
=$ac_optarg ;;
1182 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1184 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1185 infodir
=$ac_optarg ;;
1187 -libdir |
--libdir |
--libdi |
--libd)
1189 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1190 libdir
=$ac_optarg ;;
1192 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1193 |
--libexe |
--libex |
--libe)
1194 ac_prev
=libexecdir
;;
1195 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1196 |
--libexe=* |
--libex=* |
--libe=*)
1197 libexecdir
=$ac_optarg ;;
1199 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1200 ac_prev
=localedir
;;
1201 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1202 localedir
=$ac_optarg ;;
1204 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1205 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1206 ac_prev
=localstatedir
;;
1207 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1208 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1209 localstatedir
=$ac_optarg ;;
1211 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1213 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1214 mandir
=$ac_optarg ;;
1216 -nfp |
--nfp |
--nf)
1217 # Obsolete; use --without-fp.
1220 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1221 |
--no-cr |
--no-c |
-n)
1224 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1225 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1228 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1229 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1230 |
--oldin |
--oldi |
--old |
--ol |
--o)
1231 ac_prev
=oldincludedir
;;
1232 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1233 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1234 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1235 oldincludedir
=$ac_optarg ;;
1237 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1239 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1240 prefix
=$ac_optarg ;;
1242 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1243 |
--program-pre |
--program-pr |
--program-p)
1244 ac_prev
=program_prefix
;;
1245 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1246 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1247 program_prefix
=$ac_optarg ;;
1249 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1250 |
--program-suf |
--program-su |
--program-s)
1251 ac_prev
=program_suffix
;;
1252 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1253 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1254 program_suffix
=$ac_optarg ;;
1256 -program-transform-name |
--program-transform-name \
1257 |
--program-transform-nam |
--program-transform-na \
1258 |
--program-transform-n |
--program-transform- \
1259 |
--program-transform |
--program-transfor \
1260 |
--program-transfo |
--program-transf \
1261 |
--program-trans |
--program-tran \
1262 |
--progr-tra |
--program-tr |
--program-t)
1263 ac_prev
=program_transform_name
;;
1264 -program-transform-name=* |
--program-transform-name=* \
1265 |
--program-transform-nam=* |
--program-transform-na=* \
1266 |
--program-transform-n=* |
--program-transform-=* \
1267 |
--program-transform=* |
--program-transfor=* \
1268 |
--program-transfo=* |
--program-transf=* \
1269 |
--program-trans=* |
--program-tran=* \
1270 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1271 program_transform_name
=$ac_optarg ;;
1273 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1275 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1276 pdfdir
=$ac_optarg ;;
1278 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1280 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1283 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1284 |
-silent |
--silent |
--silen |
--sile |
--sil)
1287 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1289 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1291 sbindir
=$ac_optarg ;;
1293 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1294 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1295 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1297 ac_prev
=sharedstatedir
;;
1298 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1299 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1300 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1302 sharedstatedir
=$ac_optarg ;;
1304 -site |
--site |
--sit)
1306 -site=* |
--site=* |
--sit=*)
1309 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1311 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1312 srcdir
=$ac_optarg ;;
1314 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1315 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1316 ac_prev
=sysconfdir
;;
1317 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1318 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1319 sysconfdir
=$ac_optarg ;;
1321 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1322 ac_prev
=target_alias
;;
1323 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1324 target_alias
=$ac_optarg ;;
1326 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1329 -version |
--version |
--versio |
--versi |
--vers |
-V)
1330 ac_init_version
=: ;;
1333 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1336 as_fn_error
"invalid package name: $ac_useropt"
1337 ac_useropt_orig
=$ac_useropt
1338 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339 case $ac_user_opts in
1343 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1344 ac_unrecognized_sep
=', ';;
1346 eval with_
$ac_useropt=\
$ac_optarg ;;
1348 -without-* |
--without-*)
1349 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1350 # Reject names that are not valid shell variable names.
1351 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1352 as_fn_error
"invalid package name: $ac_useropt"
1353 ac_useropt_orig
=$ac_useropt
1354 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355 case $ac_user_opts in
1359 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1360 ac_unrecognized_sep
=', ';;
1362 eval with_
$ac_useropt=no
;;
1365 # Obsolete; use --with-x.
1368 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1369 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1370 ac_prev
=x_includes
;;
1371 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1372 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1373 x_includes
=$ac_optarg ;;
1375 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1376 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1377 ac_prev
=x_libraries
;;
1378 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1379 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1380 x_libraries
=$ac_optarg ;;
1382 -*) as_fn_error
"unrecognized option: \`$ac_option'
1383 Try \`$0 --help' for more information."
1387 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1388 # Reject names that are not valid shell variable names.
1389 case $ac_envvar in #(
1390 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1391 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1393 eval $ac_envvar=\
$ac_optarg
1394 export $ac_envvar ;;
1397 # FIXME: should be removed in autoconf 3.0.
1398 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1399 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1400 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1401 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1407 if test -n "$ac_prev"; then
1408 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1409 as_fn_error
"missing argument to $ac_option"
1412 if test -n "$ac_unrecognized_opts"; then
1413 case $enable_option_checking in
1415 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1416 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1420 # Check all directory arguments for consistency.
1421 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1422 datadir sysconfdir sharedstatedir localstatedir includedir \
1423 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1424 libdir localedir mandir
1426 eval ac_val
=\$
$ac_var
1427 # Remove trailing slashes.
1430 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1431 eval $ac_var=\
$ac_val;;
1433 # Be sure to have absolute directory names.
1435 [\\/$
]* | ?
:[\\/]* ) continue;;
1436 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1438 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1441 # There might be people who depend on the old broken behavior: `$host'
1442 # used to hold the argument of --host etc.
1443 # FIXME: To remove some day.
1446 target
=$target_alias
1448 # FIXME: To remove some day.
1449 if test "x$host_alias" != x
; then
1450 if test "x$build_alias" = x
; then
1451 cross_compiling
=maybe
1452 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1453 If a cross compiler is detected then cross compile mode will be used." >&2
1454 elif test "x$build_alias" != "x$host_alias"; then
1460 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1462 test "$silent" = yes && exec 6>/dev
/null
1465 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1466 ac_ls_di
=`ls -di .` &&
1467 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1468 as_fn_error
"working directory cannot be determined"
1469 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470 as_fn_error
"pwd does not report name of working directory"
1473 # Find the source files, if location was not specified.
1474 if test -z "$srcdir"; then
1475 ac_srcdir_defaulted
=yes
1476 # Try the directory containing this script, then the parent directory.
1477 ac_confdir
=`$as_dirname -- "$as_myself" ||
1478 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1479 X"$as_myself" : 'X\(//\)[^/]' \| \
1480 X"$as_myself" : 'X\(//\)$' \| \
1481 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1482 $as_echo X"$as_myself" |
1483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1501 if test ! -r "$srcdir/$ac_unique_file"; then
1505 ac_srcdir_defaulted
=no
1507 if test ! -r "$srcdir/$ac_unique_file"; then
1508 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1509 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1511 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1513 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1515 # When building in place, set srcdir=.
1516 if test "$ac_abs_confdir" = "$ac_pwd"; then
1519 # Remove unnecessary trailing slashes from srcdir.
1520 # Double slashes in file names in object file debugging info
1521 # mess up M-x gdb in Emacs.
1523 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1525 for ac_var
in $ac_precious_vars; do
1526 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1527 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1528 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1529 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1533 # Report the --help message.
1535 if test "$ac_init_help" = "long"; then
1536 # Omit some internal or obsolete options to make the list less imposing.
1537 # This message is too long to be a string in the A/UX 3.1 sh.
1539 \`configure' configures this package to adapt to many kinds of systems.
1541 Usage: $0 [OPTION]... [VAR=VALUE]...
1543 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1544 VAR=VALUE. See below for descriptions of some of the useful variables.
1546 Defaults for the options are specified in brackets.
1549 -h, --help display this help and exit
1550 --help=short display options specific to this package
1551 --help=recursive display the short help of all the included packages
1552 -V, --version display version information and exit
1553 -q, --quiet, --silent do not print \`checking...' messages
1554 --cache-file=FILE cache test results in FILE [disabled]
1555 -C, --config-cache alias for \`--cache-file=config.cache'
1556 -n, --no-create do not create output files
1557 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1559 Installation directories:
1560 --prefix=PREFIX install architecture-independent files in PREFIX
1561 [$ac_default_prefix]
1562 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1565 By default, \`make install' will install all the files in
1566 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1567 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1568 for instance \`--prefix=\$HOME'.
1570 For better control, use the options below.
1572 Fine tuning of the installation directories:
1573 --bindir=DIR user executables [EPREFIX/bin]
1574 --sbindir=DIR system admin executables [EPREFIX/sbin]
1575 --libexecdir=DIR program executables [EPREFIX/libexec]
1576 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1577 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1578 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1579 --libdir=DIR object code libraries [EPREFIX/lib]
1580 --includedir=DIR C header files [PREFIX/include]
1581 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1582 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1583 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1584 --infodir=DIR info documentation [DATAROOTDIR/info]
1585 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1586 --mandir=DIR man documentation [DATAROOTDIR/man]
1587 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1588 --htmldir=DIR html documentation [DOCDIR]
1589 --dvidir=DIR dvi documentation [DOCDIR]
1590 --pdfdir=DIR pdf documentation [DOCDIR]
1591 --psdir=DIR ps documentation [DOCDIR]
1597 --program-prefix=PREFIX prepend PREFIX to installed program names
1598 --program-suffix=SUFFIX append SUFFIX to installed program names
1599 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1602 --x-includes=DIR X include files are
in DIR
1603 --x-libraries=DIR X library files are
in DIR
1606 --build=BUILD configure
for building on BUILD
[guessed
]
1607 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1608 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1612 if test -n "$ac_init_help"; then
1617 --disable-option-checking ignore unrecognized
--enable/--with options
1618 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1619 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1620 --enable-maintainer-mode enable make rules and dependencies not useful
1621 (and sometimes confusing
) to the casual installer
1622 --enable-plugins Enable support
for plugins
(defaults no
)
1623 --disable-largefile omit support
for large files
1624 --disable-dependency-tracking speeds up one-time build
1625 --enable-dependency-tracking do not reject slow dependency extractors
1626 --enable-targets=TARGETS
1627 alternative target configurations
1628 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1629 --disable-gdbcli disable command-line interface
(CLI
)
1630 --disable-gdbmi disable machine-interface
(MI
)
1631 --enable-tui enable full-screen terminal user interface
(TUI
)
1632 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1633 --enable-profiling enable profiling of GDB
1634 --disable-rpath do not hardcode runtime library paths
1635 --enable-werror treat compile warnings as errors
1636 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1637 --enable-gdb-build-warnings
1638 enable GDB specific build-time compiler warnings
if
1640 --enable-sim link gdb with simulator
1641 --enable-multi-ice build the multi-ice-gdb-server
1642 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1646 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1647 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1648 --with-separate-debug-dir=PATH
1649 look for global separate debug info
in this path
1651 --with-gdb-datadir=PATH
look for global separate data files
in this path
1653 --with-relocated-sources=PATH
1654 automatically relocate this path
for source files
1655 --with-libunwind use libunwind frame unwinding support
1656 --with-curses use the curses library instead of the termcap
1658 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1659 --with-bugurl=URL Direct users to URL to report a bug
1660 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1661 --with-libiconv-prefix=DIR
1662 search
for libiconv
in DIR
/include and DIR
/lib
1663 --with-system-readline use installed readline library
1664 --with-expat include expat support
(auto
/yes
/no
)
1665 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1666 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1667 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1668 --with-python[=PYTHON] include python support
1669 (auto/yes/no/<python-program>)
1670 --without-included-regex
1671 don't use included regex
; this is the default on
1672 systems with version
2 of the GNU C library
(use
1673 with caution on other system
)
1674 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1675 --with-system-gdbinit=PATH
1676 automatically load a system-wide gdbinit
file
1677 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1678 --with-tk directory containing tk configuration
(tkConfig.sh
)
1679 --with-x use the X Window System
1681 Some influential environment variables
:
1682 CC C compiler
command
1683 CFLAGS C compiler flags
1684 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1685 nonstandard directory
<lib dir
>
1686 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1687 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1688 you have headers
in a nonstandard directory
<include dir
>
1690 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1691 the first program found out of: `bison
-y', `byacc', `yacc'.
1692 YFLAGS The list of arguments that will be passed by default to $YACC.
1693 This script will default YFLAGS to the empty string to avoid a
1694 default value of `-d' given by some make applications.
1695 XMKMF Path to xmkmf, Makefile generator for X Window System
1697 Use these variables to override the choices made by `configure' or to
help
1698 it to
find libraries and programs with nonstandard names
/locations.
1700 Report bugs to the package provider.
1705 if test "$ac_init_help" = "recursive"; then
1706 # If there are subdirs, report their specific --help.
1707 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1708 test -d "$ac_dir" ||
1709 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1714 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1716 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1717 # A ".." for each directory in $ac_dir_suffix.
1718 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1719 case $ac_top_builddir_sub in
1720 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1721 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1724 ac_abs_top_builddir
=$ac_pwd
1725 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1726 # for backward compatibility:
1727 ac_top_builddir
=$ac_top_build_prefix
1730 .
) # We are building in place.
1732 ac_top_srcdir
=$ac_top_builddir_sub
1733 ac_abs_top_srcdir
=$ac_pwd ;;
1734 [\\/]* | ?
:[\\/]* ) # Absolute name.
1735 ac_srcdir
=$srcdir$ac_dir_suffix;
1736 ac_top_srcdir
=$srcdir
1737 ac_abs_top_srcdir
=$srcdir ;;
1739 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1740 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1741 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1743 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1745 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1746 # Check for guested configure.
1747 if test -f "$ac_srcdir/configure.gnu"; then
1749 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1750 elif test -f "$ac_srcdir/configure"; then
1752 $SHELL "$ac_srcdir/configure" --help=recursive
1754 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1756 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1760 test -n "$ac_init_help" && exit $ac_status
1761 if $ac_init_version; then
1764 generated by GNU Autoconf
2.64
1766 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1767 This configure
script is free software
; the Free Software Foundation
1768 gives unlimited permission to copy
, distribute and modify it.
1773 ## ------------------------ ##
1774 ## Autoconf initialization. ##
1775 ## ------------------------ ##
1777 # ac_fn_c_try_compile LINENO
1778 # --------------------------
1779 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_compile
()
1782 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1783 rm -f conftest.
$ac_objext
1784 if { { ac_try
="$ac_compile"
1786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_compile") 2>conftest.err
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest.$ac_objext; then :
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813 } # ac_fn_c_try_compile
1815 # ac_fn_c_try_cpp LINENO
1816 # ----------------------
1817 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_cpp conftest.$ac_ext"
1823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1824 *) ac_try_echo
=$ac_try;;
1826 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1830 if test -s conftest.err
; then
1831 grep -v '^ *+' conftest.err
>conftest.er1
1832 cat conftest.er1
>&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } >/dev
/null
&& {
1837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.
$ac_ext >&5
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1852 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1853 # -------------------------------------------------------
1854 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1855 # the include files in INCLUDES and setting the cache variable VAR
1857 ac_fn_c_check_header_mongrel
()
1859 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1860 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864 $as_echo_n "(cached) " >&6
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1870 # Is the header compilable?
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1872 $as_echo_n "checking $2 usability... " >&6; }
1873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1878 if ac_fn_c_try_compile
"$LINENO"; then :
1879 ac_header_compiler
=yes
1881 ac_header_compiler
=no
1883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1885 $as_echo "$ac_header_compiler" >&6; }
1887 # Is the header present?
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1889 $as_echo_n "checking $2 presence... " >&6; }
1890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1894 if ac_fn_c_try_cpp
"$LINENO"; then :
1895 ac_header_preproc
=yes
1897 ac_header_preproc
=no
1899 rm -f conftest.err conftest.
$ac_ext
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1901 $as_echo "$ac_header_preproc" >&6; }
1903 # So? What about this header?
1904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1907 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1909 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1913 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1915 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1917 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1919 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1921 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1929 eval "$3=\$ac_header_compiler"
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1937 } # ac_fn_c_check_header_mongrel
1939 # ac_fn_c_try_run LINENO
1940 # ----------------------
1941 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1942 # that executables *can* be run.
1945 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1946 if { { ac_try
="$ac_link"
1948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_link") 2>&5
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1957 { { case "(($ac_try" in
1958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1959 *) ac_try_echo
=$ac_try;;
1961 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_try") 2>&5
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; }; }; then :
1969 $as_echo "$as_me: program exited with status $ac_status" >&5
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.
$ac_ext >&5
1973 ac_retval
=$ac_status
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1981 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1982 # -------------------------------------------------------
1983 # Tests whether HEADER exists and can be compiled using the include files in
1984 # INCLUDES, setting the cache variable VAR accordingly.
1985 ac_fn_c_check_header_compile
()
1987 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1991 $as_echo_n "(cached) " >&6
1993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1998 if ac_fn_c_try_compile
"$LINENO"; then :
2003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2010 } # ac_fn_c_check_header_compile
2012 # ac_fn_c_try_link LINENO
2013 # -----------------------
2014 # Try to link conftest.$ac_ext, and return whether this succeeded.
2017 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2018 rm -f conftest.
$ac_objext conftest
$ac_exeext
2019 if { { ac_try
="$ac_link"
2021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_link") 2>conftest.err
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_c_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest$ac_exeext && {
2038 test "$cross_compiling" = yes ||
2039 $as_test_x conftest$ac_exeext
2043 $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2048 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2049 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2050 # interfere with the next link command; also delete a directory that is
2051 # left behind by Apple's compiler. We do this before executing the actions.
2052 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056 } # ac_fn_c_try_link
2058 # ac_fn_c_check_func LINENO FUNC VAR
2059 # ----------------------------------
2060 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2061 ac_fn_c_check_func ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067 $as_echo_n "(cached) " >&6
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2073 #define $2 innocuous_$2
2075 /* System header to define __stub macros and hopefully few prototypes,
2076 which can conflict with char $2 (); below.
2077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2078 <limits.h> exists even on freestanding compilers. */
2081 # include <limits.h>
2083 # include <assert.h>
2088 /* Override any GCC internal prototype to avoid an error.
2089 Use char because int might match the return type of a GCC
2090 builtin and then its argument prototype would still apply. */
2095 /* The GNU C library defines this for functions which it implements
2096 to always fail with ENOSYS. Some functions are actually named
2097 something starting with __ and the normal name is an alias. */
2098 #if defined __stub_$2 || defined __stub___$2
2110 if ac_fn_c_try_link "$LINENO"; then :
2115 rm -f core conftest.err conftest.$ac_objext \
2116 conftest$ac_exeext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2123 } # ac_fn_c_check_func
2125 # ac_fn_c_check_decl LINENO SYMBOL VAR
2126 # ------------------------------------
2127 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2128 ac_fn_c_check_decl ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2132 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2134 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2135 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2136 $as_echo_n "(cached) " >&6
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2144 #ifndef $as_decl_name
2146 (void) $as_decl_use;
2148 (void) $as_decl_name;
2156 if ac_fn_c_try_compile "$LINENO"; then :
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2168 } # ac_fn_c_check_decl
2170 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2171 # --------------------------------------------
2172 # Tries to find the compile-time value of EXPR in a program that includes
2173 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2175 ac_fn_c_compute_int ()
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 if test "$cross_compiling" = yes; then
2179 # Depending upon the size, compute the lo and hi bounds.
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2186 static int test_array [1 - 2 * !(($2) >= 0)];
2193 if ac_fn_c_try_compile "$LINENO"; then :
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2202 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2209 if ac_fn_c_try_compile "$LINENO"; then :
2210 ac_hi=$ac_mid; break
2212 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2213 if test $ac_lo -le $ac_mid; then
2217 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2228 static int test_array [1 - 2 * !(($2) < 0)];
2235 if ac_fn_c_try_compile "$LINENO"; then :
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2244 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 ac_lo=$ac_mid; break
2254 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2255 if test $ac_mid -le $ac_hi; then
2259 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 # Binary search between lo and hi bounds.
2270 while test "x$ac_lo" != "x$ac_hi"; do
2271 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2278 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2285 if ac_fn_c_try_compile "$LINENO"; then :
2288 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2300 static long int longval () { return $2; }
2301 static unsigned long int ulongval () { return $2; }
2308 FILE *f = fopen ("conftest.val", "w");
2313 long int i = longval ();
2316 fprintf (f, "%ld", i);
2320 unsigned long int i = ulongval ();
2323 fprintf (f, "%lu", i);
2325 /* Do not output a trailing newline, as this causes \r\n confusion
2326 on some platforms. */
2327 return ferror (f) || fclose (f) != 0;
2333 if ac_fn_c_try_run "$LINENO"; then :
2334 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2339 conftest.$ac_objext conftest.beam conftest.$ac_ext
2343 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346 } # ac_fn_c_compute_int
2348 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2349 # ----------------------------------------------------
2350 # Tries to find if the field MEMBER exists in type AGGR, after including
2351 # INCLUDES, setting cache variable VAR accordingly.
2352 ac_fn_c_check_member ()
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2356 $as_echo_n "checking for $2.$3... " >&6; }
2357 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2358 $as_echo_n "(cached) " >&6
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2373 if ac_fn_c_try_compile "$LINENO"; then :
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2383 if (sizeof ac_aggr.$3)
2389 if ac_fn_c_try_compile "$LINENO"; then :
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2403 } # ac_fn_c_check_member
2405 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2406 # -------------------------------------------
2407 # Tests whether TYPE exists after having included INCLUDES, setting cache
2408 # variable VAR accordingly.
2409 ac_fn_c_check_type ()
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413 $as_echo_n "checking for $2... " >&6; }
2414 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2415 $as_echo_n "(cached) " >&6
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2443 if ac_fn_c_try_compile "$LINENO"; then :
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2457 } # ac_fn_c_check_type
2458 cat >config.log <<_ACEOF
2459 This file contains any messages produced by compilers while
2460 running configure, to aid debugging if configure makes a mistake.
2462 It was created by $as_me, which was
2463 generated by GNU Autoconf 2.64. Invocation command line was
2475 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2476 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2477 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2478 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2479 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2481 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2482 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2484 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2485 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2486 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2487 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2488 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2489 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2490 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir=.
2499 $as_echo "PATH: $as_dir"
2515 # Keep a trace of the command line.
2516 # Strip out --no-create and --no-recursion so they do not pile up.
2517 # Strip out --silent because we don't want to record it for future runs.
2518 # Also quote any args containing shell meta-characters.
2519 # Make two passes to allow for proper duplicate-argument suppression.
2523 ac_must_keep_next=false
2529 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2531 | -silent | --silent | --silen | --sile | --sil)
2534 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2537 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2539 as_fn_append ac_configure_args1 " '$ac_arg'"
2540 if test $ac_must_keep_next = true; then
2541 ac_must_keep_next=false # Got value, back to normal.
2544 *=* | --config-cache | -C | -disable-* | --disable-* \
2545 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2546 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2547 | -with-* | --with-* | -without-* | --without-* | --x)
2548 case "$ac_configure_args0 " in
2549 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2552 -* ) ac_must_keep_next=true ;;
2555 as_fn_append ac_configure_args " '$ac_arg'"
2560 { ac_configure_args0=; unset ac_configure_args0;}
2561 { ac_configure_args1=; unset ac_configure_args1;}
2563 # When interrupted or exit'd, cleanup temporary files, and complete
2564 # config.log. We remove comments because anyway the quotes in there
2565 # would cause problems or look ugly.
2566 # WARNING: Use '\'' to represent an apostrophe within the trap.
2567 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2568 trap 'exit_status=$?
2569 # Save into config.log some information that might help in debugging.
2574 ## ---------------- ##
2575 ## Cache variables. ##
2576 ## ---------------- ##
2579 # The following way of writing the cache mishandles newlines in values,
2581 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2582 eval ac_val=\$$ac_var
2586 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2587 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2590 _ | IFS | as_nl) ;; #(
2591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2592 *) { eval $ac_var=; unset $ac_var;} ;;
2597 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2598 *${as_nl}ac_space=\ *)
2600 "s/'\''/'\''\\\\'\'''\''/g;
2601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2612 ## ----------------- ##
2613 ## Output variables. ##
2614 ## ----------------- ##
2617 for ac_var in $ac_subst_vars
2619 eval ac_val=\$$ac_var
2621 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2623 $as_echo "$ac_var='\''$ac_val'\''"
2627 if test -n "$ac_subst_files"; then
2629 ## ------------------- ##
2630 ## File substitutions. ##
2631 ## ------------------- ##
2634 for ac_var in $ac_subst_files
2636 eval ac_val=\$$ac_var
2638 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2640 $as_echo "$ac_var='\''$ac_val'\''"
2645 if test -s confdefs.h; then
2655 test "$ac_signal" != 0 &&
2656 $as_echo "$as_me: caught signal $ac_signal"
2657 $as_echo "$as_me: exit $exit_status"
2659 rm -f core *.core core.conftest.* &&
2660 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2663 for ac_signal in 1 2 13 15; do
2664 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2668 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2669 rm -f -r conftest* confdefs.h
2671 $as_echo "/* confdefs.h */" > confdefs.h
2673 # Predefined preprocessor variables.
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_NAME "$PACKAGE_NAME"
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_STRING "$PACKAGE_STRING"
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_URL "$PACKAGE_URL"
2700 # Let the site file select an alternate cache file if it wants to.
2701 # Prefer an explicitly selected file to automatically selected ones.
2704 if test -n "$CONFIG_SITE"; then
2705 ac_site_file1=$CONFIG_SITE
2706 elif test "x$prefix" != xNONE; then
2707 ac_site_file1=$prefix/share/config.site
2708 ac_site_file2=$prefix/etc/config.site
2710 ac_site_file1=$ac_default_prefix/share/config.site
2711 ac_site_file2=$ac_default_prefix/etc/config.site
2713 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2715 test "x$ac_site_file" = xNONE && continue
2716 if test -r "$ac_site_file"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2718 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2719 sed 's/^/| /' "$ac_site_file" >&5
2724 if test -r "$cache_file"; then
2725 # Some versions of bash will fail to source /dev/null (special
2726 # files actually), so we avoid doing that.
2727 if test -f "$cache_file"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2729 $as_echo "$as_me: loading cache $cache_file" >&6;}
2731 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2732 *) . "./$cache_file";;
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2737 $as_echo "$as_me: creating cache $cache_file" >&6;}
2741 gl_header_list="$gl_header_list sys/mman.h"
2742 gl_func_list="$gl_func_list mprotect"
2743 gl_func_list="$gl_func_list memchr"
2744 gl_header_list="$gl_header_list stddef.h"
2745 gl_header_list="$gl_header_list stdint.h"
2746 gl_header_list="$gl_header_list wchar.h"
2747 gl_header_list="$gl_header_list string.h"
2748 # Check that the precious variables saved in the cache have kept the same
2750 ac_cache_corrupted=false
2751 for ac_var in $ac_precious_vars; do
2752 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2753 eval ac_new_set=\$ac_env_${ac_var}_set
2754 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2755 eval ac_new_val=\$ac_env_${ac_var}_value
2756 case $ac_old_set,$ac_new_set in
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2759 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2760 ac_cache_corrupted=: ;;
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2763 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2764 ac_cache_corrupted=: ;;
2767 if test "x$ac_old_val" != "x$ac_new_val"; then
2768 # differences in whitespace do not lead to failure.
2769 ac_old_val_w=`echo x
$ac_old_val`
2770 ac_new_val_w=`echo x
$ac_new_val`
2771 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2773 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2774 ac_cache_corrupted=:
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2777 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2778 eval $ac_var=\$ac_old_val
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2781 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2783 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2786 # Pass precious variables to config.status.
2787 if test "$ac_new_set" = set; then
2789 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2790 *) ac_arg=$ac_var=$ac_new_val ;;
2792 case " $ac_configure_args " in
2793 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2794 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2798 if $ac_cache_corrupted; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2802 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2803 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2805 ## -------------------- ##
2806 ## Main body of script. ##
2807 ## -------------------- ##
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819 ac_config_headers="$ac_config_headers config.h:config.in"
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2823 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2824 # Check whether --enable-maintainer-mode was given.
2825 if test "${enable_maintainer_mode+set}" = set; then :
2826 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2828 USE_MAINTAINER_MODE=no
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2832 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2833 if test $USE_MAINTAINER_MODE = yes; then
2834 MAINTAINER_MODE_TRUE=
2835 MAINTAINER_MODE_FALSE='#'
2837 MAINTAINER_MODE_TRUE='#'
2838 MAINTAINER_MODE_FALSE=
2841 MAINT=$MAINTAINER_MODE_TRUE
2846 ac_cpp='$CPP $CPPFLAGS'
2847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850 if test -n "$ac_tool_prefix"; then
2851 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2852 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if test "${ac_cv_prog_CC+set}" = set; then :
2856 $as_echo_n "(cached) " >&6
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 if test -n "$CC"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881 $as_echo "$CC" >&6; }
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2889 if test -z "$ac_cv_prog_CC"; then
2891 # Extract the first word of "gcc", so it can be a program name with args.
2892 set dummy gcc; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2896 $as_echo_n "(cached) " >&6
2898 if test -n "$ac_ct_CC"; then
2899 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 ac_cv_prog_ac_ct_CC="gcc"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2919 if test -n "$ac_ct_CC"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2921 $as_echo "$ac_ct_CC" >&6; }
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2927 if test "x$ac_ct_CC" = x; then
2930 case $cross_compiling:$ac_tool_warned in
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934 ac_tool_warned=yes ;;
2942 if test -z "$CC"; then
2943 if test -n "$ac_tool_prefix"; then
2944 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}cc; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if test "${ac_cv_prog_CC+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
2951 if test -n "$CC"; then
2952 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961 ac_cv_prog_CC="${ac_tool_prefix}cc"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 if test -n "$CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974 $as_echo "$CC" >&6; }
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2983 if test -z "$CC"; then
2984 # Extract the first word of "cc", so it can be a program name with args.
2985 set dummy cc; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if test "${ac_cv_prog_CC+set}" = set; then :
2989 $as_echo_n "(cached) " >&6
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3003 ac_prog_rejected=yes
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 if test $ac_prog_rejected = yes; then
3015 # We found a bogon in the path, so make sure we never use it.
3016 set dummy $ac_cv_prog_CC
3018 if test $# != 0; then
3019 # We chose a different compiler from the bogus one.
3020 # However, it has the same basename, so the bogon will be chosen
3021 # first if we set CC to just the basename; use the full file name.
3023 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3029 if test -n "$CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3039 if test -z "$CC"; then
3040 if test -n "$ac_tool_prefix"; then
3041 for ac_prog in cl.exe
3043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if test "${ac_cv_prog_CC+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 if test -n "$CC"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3073 $as_echo "$CC" >&6; }
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3080 test -n "$CC" && break
3083 if test -z "$CC"; then
3085 for ac_prog in cl.exe
3087 # Extract the first word of "$ac_prog", so it can be a program name with args.
3088 set dummy $ac_prog; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3092 $as_echo_n "(cached) " >&6
3094 if test -n "$ac_ct_CC"; then
3095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 ac_cv_prog_ac_ct_CC="$ac_prog"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115 if test -n "$ac_ct_CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3117 $as_echo "$ac_ct_CC" >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3124 test -n "$ac_ct_CC" && break
3127 if test "x$ac_ct_CC" = x; then
3130 case $cross_compiling:$ac_tool_warned in
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3134 ac_tool_warned=yes ;;
3143 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error "no acceptable C compiler found
in \
$PATH
3146 See \
`config.log' for more details." "$LINENO" 5; }
3148 # Provide some information about the compiler.
3149 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3152 for ac_option in --version -v -V -qversion; do
3153 { { ac_try="$ac_compiler $ac_option >&5"
3155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3156 *) ac_try_echo
=$ac_try;;
3158 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3162 if test -s conftest.err
; then
3164 ... rest of stderr output deleted ...
3165 10q' conftest.err
>conftest.er1
3166 cat conftest.er1
>&5
3167 rm -f conftest.er1 conftest.err
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }
3173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3184 ac_clean_files_save
=$ac_clean_files
3185 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3186 # Try to create an executable without -o first, disregard a.out.
3187 # It will help us diagnose broken compilers, and finding out an intuition
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3190 $as_echo_n "checking for C compiler default output file name... " >&6; }
3191 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3193 # The possible output files:
3194 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3197 for ac_file
in $ac_files
3200 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3201 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3206 if { { ac_try
="$ac_link_default"
3208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_link_default") 2>&5
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }; then :
3217 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3218 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3219 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3220 # so that the user can short-circuit this test for compilers unknown to
3222 for ac_file in $ac_files ''
3224 test -f "$ac_file" || continue
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3229 # We found the default executable, but exeext='' is most
3233 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3235 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237 # We set ac_cv_exeext here because the later test for it is not
3238 # safe: cross compilers may not add the suffix if given an `-o'
3239 # argument, so we may need to know it at that point already.
3240 # Even if this section looks crufty: it has the advantage of
3247 test "$ac_cv_exeext" = no && ac_cv_exeext=
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3253 $as_echo "$ac_file" >&6; }
3254 if test -z "$ac_file"; then :
3255 $as_echo "$as_me: failed program was:" >&5
3256 sed 's
/^
/|
/' conftest.$ac_ext >&5
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3260 { as_fn_set_status 77
3261 as_fn_error "C compiler cannot create executables
3262 See \`config.log
' for more details." "$LINENO" 5; }; }
3264 ac_exeext=$ac_cv_exeext
3266 # Check that the compiler produces executables we can run. If not, either
3267 # the compiler is broken, or we cross compile.
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3269 $as_echo_n "checking whether the C compiler works... " >&6; }
3270 # If not cross compiling, check that we can run a simple program.
3271 if test "$cross_compiling" != yes; then
3272 if { ac_try='.
/$ac_file'
3273 { { case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278 $as_echo "$ac_try_echo"; } >&5
3279 (eval "$ac_try") 2>&5
3281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282 test $ac_status = 0; }; }; then
3285 if test "$cross_compiling" = maybe; then
3288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3290 as_fn_error "cannot run C compiled programs.
3291 If you meant to cross compile, use \`--host'.
3292 See \`config.log' for more details.
" "$LINENO" 5; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3297 $as_echo "yes" >&6; }
3299 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3300 ac_clean_files=$ac_clean_files_save
3301 # Check that the compiler produces executables we can run. If not, either
3302 # the compiler is broken, or we cross compile.
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3304 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3306 $as_echo "$cross_compiling" >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3309 $as_echo_n "checking
for suffix of executables...
" >&6; }
3310 if { { ac_try="$ac_link"
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 $as_echo "$ac_try_echo"; } >&5
3317 (eval "$ac_link") 2>&5
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3320 test $ac_status = 0; }; then :
3321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3322 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3323 # work properly (i.e., refer to `conftest.exe'), while it won't with
3325 for ac_file in conftest.exe conftest conftest.*; do
3326 test -f "$ac_file" || continue
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 as_fn_error "cannot compute suffix of executables: cannot compile and link
3338 See \`config.log' for more details.
" "$LINENO" 5; }
3340 rm -f conftest$ac_cv_exeext
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3342 $as_echo "$ac_cv_exeext" >&6; }
3344 rm -f conftest.$ac_ext
3345 EXEEXT=$ac_cv_exeext
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3348 $as_echo_n "checking
for suffix of object files...
" >&6; }
3349 if test "${ac_cv_objext+set}" = set; then :
3350 $as_echo_n "(cached
) " >&6
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3363 rm -f conftest.o conftest.obj
3364 if { { ac_try="$ac_compile"
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_compile") 2>&5
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3374 test $ac_status = 0; }; then :
3375 for ac_file in conftest.o conftest.obj conftest.*; do
3376 test -f "$ac_file" || continue;
3378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3379 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3384 $as_echo "$as_me: failed program was
:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error "cannot compute suffix of object files: cannot compile
3390 See \`config.log' for more details.
" "$LINENO" 5; }
3392 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3395 $as_echo "$ac_cv_objext" >&6; }
3396 OBJEXT=$ac_cv_objext
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3399 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3400 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3401 $as_echo_n "(cached
) " >&6
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3417 if ac_fn_c_try_compile "$LINENO"; then :
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3427 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3428 if test $ac_compiler_gnu = yes; then
3433 ac_test_CFLAGS=${CFLAGS+set}
3434 ac_save_CFLAGS=$CFLAGS
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3436 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3437 if test "${ac_cv_prog_cc_g+set}" = set; then :
3438 $as_echo_n "(cached
) " >&6
3440 ac_save_c_werror_flag=$ac_c_werror_flag
3441 ac_c_werror_flag=yes
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3455 if ac_fn_c_try_compile "$LINENO"; then :
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3470 if ac_fn_c_try_compile "$LINENO"; then :
3473 ac_c_werror_flag=$ac_save_c_werror_flag
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3486 if ac_fn_c_try_compile "$LINENO"; then :
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_c_werror_flag=$ac_save_c_werror_flag
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3497 $as_echo "$ac_cv_prog_cc_g" >&6; }
3498 if test "$ac_test_CFLAGS" = set; then
3499 CFLAGS=$ac_save_CFLAGS
3500 elif test $ac_cv_prog_cc_g = yes; then
3501 if test "$GCC" = yes; then
3507 if test "$GCC" = yes; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3514 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3515 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3516 $as_echo_n "(cached
) " >&6
3518 ac_cv_prog_cc_c89=no
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3524 #include <sys/types.h>
3525 #include <sys/stat.h>
3526 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3527 struct buf { int x; };
3528 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3529 static char *e (p, i)
3535 static char *f (char * (*g) (char **, int), char **p, ...)
3540 s = g (p, va_arg (v,int));
3545 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3546 function prototypes and stuff, but not '\xHH' hex character constants.
3547 These don't provoke an error unfortunately, instead are silently treated
3548 as 'x'. The following induces an error, until -std is added to get
3549 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3550 array size at least. It's necessary to write '\x00'==0 to get something
3551 that's true only with -std. */
3552 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3554 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3555 inside strings and character constants. */
3557 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3559 int test (int i, double x);
3560 struct s1 {int (*f) (int a);};
3561 struct s2 {int (*f) (double a);};
3562 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3568 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3573 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3574 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3576 CC="$ac_save_CC $ac_arg"
3577 if ac_fn_c_try_compile "$LINENO"; then :
3578 ac_cv_prog_cc_c89=$ac_arg
3580 rm -f core conftest.err conftest.$ac_objext
3581 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3583 rm -f conftest.$ac_ext
3588 case "x
$ac_cv_prog_cc_c89" in
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3591 $as_echo "none needed
" >&6; } ;;
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3594 $as_echo "unsupported
" >&6; } ;;
3596 CC="$CC $ac_cv_prog_cc_c89"
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3598 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3600 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3605 ac_cpp='$CPP $CPPFLAGS'
3606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
3612 for ac_t in install-sh install.sh shtool; do
3613 if test -f "$ac_dir/$ac_t"; then
3615 ac_install_sh="$ac_aux_dir/$ac_t -c"
3620 if test -z "$ac_aux_dir"; then
3621 as_fn_error "cannot
find install-sh
, install.sh
, or shtool
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" "$LINENO" 5
3624 # These three variables are undocumented and unsupported,
3625 # and are intended to be withdrawn in a future Autoconf release.
3626 # They can cause serious problems if a builder's source tree is in a directory
3627 # whose full name contains unusual characters.
3628 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
3629 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
3630 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
3633 # Make sure we can run config.sub.
3634 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
3635 as_fn_error "cannot run
$SHELL $ac_aux_dir/config.sub
" "$LINENO" 5
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system
type" >&5
3638 $as_echo_n "checking build system
type...
" >&6; }
3639 if test "${ac_cv_build+set}" = set; then :
3640 $as_echo_n "(cached
) " >&6
3642 ac_build_alias=$build_alias
3643 test "x
$ac_build_alias" = x &&
3644 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
3645 test "x
$ac_build_alias" = x &&
3646 as_fn_error "cannot guess build
type; you must specify one
" "$LINENO" 5
3647 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
3648 as_fn_error "$SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" "$LINENO" 5
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_build" >&5
3652 $as_echo "$ac_cv_build" >&6; }
3653 case $ac_cv_build in
3655 *) as_fn_error "invalid value of canonical build
" "$LINENO" 5;;
3658 ac_save_IFS=$IFS; IFS='-'
3664 # Remember, the first character of IFS is used to create $*,
3665 # except with old shells:
3668 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
host system
type" >&5
3672 $as_echo_n "checking
host system
type...
" >&6; }
3673 if test "${ac_cv_host+set}" = set; then :
3674 $as_echo_n "(cached
) " >&6
3676 if test "x
$host_alias" = x; then
3677 ac_cv_host=$ac_cv_build
3679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
3680 as_fn_error "$SHELL $ac_aux_dir/config.sub
$host_alias failed
" "$LINENO" 5
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_host" >&5
3685 $as_echo "$ac_cv_host" >&6; }
3688 *) as_fn_error "invalid value of canonical
host" "$LINENO" 5;;
3691 ac_save_IFS=$IFS; IFS='-'
3697 # Remember, the first character of IFS is used to create $*,
3698 # except with old shells:
3701 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3711 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3712 # On Suns, sometimes $CPP names a directory.
3713 if test -n "$CPP" && test -d "$CPP"; then
3716 if test -z "$CPP"; then
3717 if test "${ac_cv_prog_CPP+set}" = set; then :
3718 $as_echo_n "(cached
) " >&6
3720 # Double quotes because CPP needs to be expanded
3721 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3724 for ac_c_preproc_warn_flag in '' yes
3726 # Use a header file that comes with gcc, so configuring glibc
3727 # with a fresh cross-compiler works.
3728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3729 # <limits.h> exists even on freestanding compilers.
3730 # On the NeXT, cc -E runs the code through the compiler's parser,
3731 # not just through cpp. "Syntax error
" is here to catch this case.
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3735 # include <limits.h>
3737 # include <assert.h>
3741 if ac_fn_c_try_cpp "$LINENO"; then :
3744 # Broken: fails on valid input.
3747 rm -f conftest.err conftest.$ac_ext
3749 # OK, works on sane cases. Now check whether nonexistent headers
3750 # can be detected and how.
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3753 #include <ac_nonexistent.h>
3755 if ac_fn_c_try_cpp "$LINENO"; then :
3756 # Broken: success on invalid input.
3759 # Passes both tests.
3763 rm -f conftest.err conftest.$ac_ext
3766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3767 rm -f conftest.err conftest.$ac_ext
3768 if $ac_preproc_ok; then :
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3781 $as_echo "$CPP" >&6; }
3783 for ac_c_preproc_warn_flag in '' yes
3785 # Use a header file that comes with gcc, so configuring glibc
3786 # with a fresh cross-compiler works.
3787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3788 # <limits.h> exists even on freestanding compilers.
3789 # On the NeXT, cc -E runs the code through the compiler's parser,
3790 # not just through cpp. "Syntax error
" is here to catch this case.
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3794 # include <limits.h>
3796 # include <assert.h>
3800 if ac_fn_c_try_cpp "$LINENO"; then :
3803 # Broken: fails on valid input.
3806 rm -f conftest.err conftest.$ac_ext
3808 # OK, works on sane cases. Now check whether nonexistent headers
3809 # can be detected and how.
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812 #include <ac_nonexistent.h>
3814 if ac_fn_c_try_cpp "$LINENO"; then :
3815 # Broken: success on invalid input.
3818 # Passes both tests.
3822 rm -f conftest.err conftest.$ac_ext
3825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3826 rm -f conftest.err conftest.$ac_ext
3827 if $ac_preproc_ok; then :
3830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3833 See \`config.log' for more details.
" "$LINENO" 5; }
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3844 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3845 if test "${ac_cv_path_GREP+set}" = set; then :
3846 $as_echo_n "(cached
) " >&6
3848 if test -z "$GREP"; then
3849 ac_path_GREP_found=false
3850 # Loop through the user's path and test for each of PROGNAME-LIST
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3855 test -z "$as_dir" && as_dir=.
3856 for ac_prog in grep ggrep; do
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3859 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3860 # Check for GNU ac_path_GREP and select it if it is found.
3861 # Check for GNU $ac_path_GREP
3862 case `"$ac_path_GREP" --version 2>&1` in
3864 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3867 $as_echo_n 0123456789 >"conftest.
in"
3870 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3871 mv "conftest.tmp
" "conftest.
in"
3872 cp "conftest.
in" "conftest.
nl"
3873 $as_echo 'GREP' >> "conftest.
nl"
3874 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3875 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3876 as_fn_arith $ac_count + 1 && ac_count=$as_val
3877 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3878 # Best one so far, save it but keep looking for a better one
3879 ac_cv_path_GREP="$ac_path_GREP"
3880 ac_path_GREP_max=$ac_count
3882 # 10*(2^10) chars as input seems more than enough
3883 test $ac_count -gt 10 && break
3885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3888 $ac_path_GREP_found && break 3
3893 if test -z "$ac_cv_path_GREP"; then
3894 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3897 ac_cv_path_GREP=$GREP
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3902 $as_echo "$ac_cv_path_GREP" >&6; }
3903 GREP="$ac_cv_path_GREP"
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3907 $as_echo_n "checking
for egrep...
" >&6; }
3908 if test "${ac_cv_path_EGREP+set}" = set; then :
3909 $as_echo_n "(cached
) " >&6
3911 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3912 then ac_cv_path_EGREP="$GREP -E"
3914 if test -z "$EGREP"; then
3915 ac_path_EGREP_found=false
3916 # Loop through the user's path and test for each of PROGNAME-LIST
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3921 test -z "$as_dir" && as_dir=.
3922 for ac_prog in egrep; do
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3925 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3926 # Check for GNU ac_path_EGREP and select it if it is found.
3927 # Check for GNU $ac_path_EGREP
3928 case `"$ac_path_EGREP" --version 2>&1` in
3930 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3933 $as_echo_n 0123456789 >"conftest.
in"
3936 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3937 mv "conftest.tmp
" "conftest.
in"
3938 cp "conftest.
in" "conftest.
nl"
3939 $as_echo 'EGREP' >> "conftest.
nl"
3940 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3941 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3942 as_fn_arith $ac_count + 1 && ac_count=$as_val
3943 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3944 # Best one so far, save it but keep looking for a better one
3945 ac_cv_path_EGREP="$ac_path_EGREP"
3946 ac_path_EGREP_max=$ac_count
3948 # 10*(2^10) chars as input seems more than enough
3949 test $ac_count -gt 10 && break
3951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3954 $ac_path_EGREP_found && break 3
3959 if test -z "$ac_cv_path_EGREP"; then
3960 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3963 ac_cv_path_EGREP=$EGREP
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3969 $as_echo "$ac_cv_path_EGREP" >&6; }
3970 EGREP="$ac_cv_path_EGREP"
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3974 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3975 if test "${ac_cv_header_stdc+set}" = set; then :
3976 $as_echo_n "(cached
) " >&6
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3993 if ac_fn_c_try_compile "$LINENO"; then :
3994 ac_cv_header_stdc=yes
3996 ac_cv_header_stdc=no
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 if test $ac_cv_header_stdc = yes; then
4001 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4007 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4008 $EGREP "memchr
" >/dev/null 2>&1; then :
4011 ac_cv_header_stdc=no
4017 if test $ac_cv_header_stdc = yes; then
4018 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4024 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4025 $EGREP "free
" >/dev/null 2>&1; then :
4028 ac_cv_header_stdc=no
4034 if test $ac_cv_header_stdc = yes; then
4035 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4036 if test "$cross_compiling" = yes; then :
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4043 #if ((' ' & 0x0FF) == 0x020)
4044 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4045 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4047 # define ISLOWER(c) \
4048 (('a' <= (c) && (c) <= 'i') \
4049 || ('j' <= (c) && (c) <= 'r') \
4050 || ('s' <= (c) && (c) <= 'z'))
4051 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4054 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4059 for (i = 0; i < 256; i++)
4060 if (XOR (islower (i), ISLOWER (i))
4061 || toupper (i) != TOUPPER (i))
4066 if ac_fn_c_try_run "$LINENO"; then :
4069 ac_cv_header_stdc=no
4071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4072 conftest.$ac_objext conftest.beam conftest.$ac_ext
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
4078 $as_echo "$ac_cv_header_stdc" >&6; }
4079 if test $ac_cv_header_stdc = yes; then
4081 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4086 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4087 inttypes.h stdint.h unistd.h
4089 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4090 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4092 eval as_val
=\$
$as_ac_Header
4093 if test "x$as_val" = x
""yes; then :
4094 cat >>confdefs.h
<<_ACEOF
4095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4106 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4107 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4114 if test "$MINIX" = yes; then
4116 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4119 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4122 $as_echo "#define _MINIX 1" >>confdefs.h
4129 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4136 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4137 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4138 $as_echo_n "(cached) " >&6
4140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4143 # define __EXTENSIONS__ 1
4144 $ac_includes_default
4153 if ac_fn_c_try_compile
"$LINENO"; then :
4154 ac_cv_safe_to_define___extensions__
=yes
4156 ac_cv_safe_to_define___extensions__
=no
4158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4161 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4162 test $ac_cv_safe_to_define___extensions__ = yes &&
4163 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4165 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4167 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4169 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4171 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4174 if test -n "$ac_tool_prefix"; then
4175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4176 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 $as_echo_n "checking for $ac_word... " >&6; }
4179 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4180 $as_echo_n "(cached) " >&6
4182 if test -n "$RANLIB"; then
4183 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir
=.
4190 for ac_exec_ext
in '' $ac_executable_extensions; do
4191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 RANLIB
=$ac_cv_prog_RANLIB
4203 if test -n "$RANLIB"; then
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4205 $as_echo "$RANLIB" >&6; }
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 $as_echo "no" >&6; }
4213 if test -z "$ac_cv_prog_RANLIB"; then
4214 ac_ct_RANLIB
=$RANLIB
4215 # Extract the first word of "ranlib", so it can be a program name with args.
4216 set dummy ranlib
; ac_word
=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4220 $as_echo_n "(cached) " >&6
4222 if test -n "$ac_ct_RANLIB"; then
4223 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4229 test -z "$as_dir" && as_dir
=.
4230 for ac_exec_ext
in '' $ac_executable_extensions; do
4231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4243 if test -n "$ac_ct_RANLIB"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4245 $as_echo "$ac_ct_RANLIB" >&6; }
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4251 if test "x$ac_ct_RANLIB" = x
; then
4254 case $cross_compiling:$ac_tool_warned in
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4258 ac_tool_warned
=yes ;;
4260 RANLIB
=$ac_ct_RANLIB
4263 RANLIB
="$ac_cv_prog_RANLIB"
4274 # Code from module arg-nonnull:
4275 # Code from module c++defs:
4276 # Code from module extensions:
4278 # Code from module include_next:
4279 # Code from module memchr:
4280 # Code from module memmem:
4281 # Code from module memmem-simple:
4282 # Code from module multiarch:
4283 # Code from module stddef:
4284 # Code from module stdint:
4285 # Code from module string:
4286 # Code from module warn-on-use:
4287 # Code from module wchar:
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4290 $as_echo_n "checking target system type... " >&6; }
4291 if test "${ac_cv_target+set}" = set; then :
4292 $as_echo_n "(cached) " >&6
4294 if test "x$target_alias" = x
; then
4295 ac_cv_target
=$ac_cv_host
4297 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4298 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4303 $as_echo "$ac_cv_target" >&6; }
4304 case $ac_cv_target in
4306 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4308 target
=$ac_cv_target
4309 ac_save_IFS
=$IFS; IFS
='-'
4315 # Remember, the first character of IFS is used to create $*,
4316 # except with old shells:
4319 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4322 # The aliases save the names the user supplied, while $host etc.
4323 # will get canonicalized.
4324 test -n "$target_alias" &&
4325 test "$program_prefix$program_suffix$program_transform_name" = \
4327 program_prefix
=${target_alias}-
4329 # The tests for host and target for $enable_largefile require
4334 # As the $enable_largefile decision depends on --enable-plugins we must set it
4335 # even in directories otherwise not depending on the $plugins option.
4338 # Check whether --enable-plugins was given.
4339 if test "${enable_plugins+set}" = set; then :
4340 enableval
=$enable_plugins; case "${enableval}" in
4341 yes |
"") plugins
=yes ;;
4352 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4353 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4354 # are mutually exclusive; and without procfs support, the bfd/ elf module
4355 # cannot provide certain routines such as elfcore_write_prpsinfo
4356 # or elfcore_write_prstatus. So unless the user explicitly requested
4357 # large-file support through the --enable-largefile switch, disable
4358 # large-file support in favor of procfs support.
4359 test "${target}" = "${host}" -a "x$plugins" = xno \
4360 && : ${enable_largefile="no"}
4364 # Check whether --enable-largefile was given.
4365 if test "${enable_largefile+set}" = set; then :
4366 enableval
=$enable_largefile;
4369 if test "$enable_largefile" != no
; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4372 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4373 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4376 ac_cv_sys_largefile_CC
=no
4377 if test "$GCC" != yes; then
4380 # IRIX 6.2 and later do not support large files by default,
4381 # so use the C compiler's -n32 option if that helps.
4382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384 #include <sys/types.h>
4385 /* Check that off_t can represent 2**63 - 1 correctly.
4386 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4387 since some C++ compilers masquerading as C compilers
4388 incorrectly reject 9223372036854775807. */
4389 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4390 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4391 && LARGE_OFF_T % 2147483647 == 1)
4401 if ac_fn_c_try_compile
"$LINENO"; then :
4404 rm -f core conftest.err conftest.
$ac_objext
4406 if ac_fn_c_try_compile
"$LINENO"; then :
4407 ac_cv_sys_largefile_CC
=' -n32'; break
4409 rm -f core conftest.err conftest.
$ac_objext
4413 rm -f conftest.
$ac_ext
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4417 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4418 if test "$ac_cv_sys_largefile_CC" != no
; then
4419 CC
=$CC$ac_cv_sys_largefile_CC
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4423 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4424 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
4428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430 #include <sys/types.h>
4431 /* Check that off_t can represent 2**63 - 1 correctly.
4432 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4433 since some C++ compilers masquerading as C compilers
4434 incorrectly reject 9223372036854775807. */
4435 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4436 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4437 && LARGE_OFF_T % 2147483647 == 1)
4447 if ac_fn_c_try_compile
"$LINENO"; then :
4448 ac_cv_sys_file_offset_bits
=no
; break
4450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4453 #define _FILE_OFFSET_BITS 64
4454 #include <sys/types.h>
4455 /* Check that off_t can represent 2**63 - 1 correctly.
4456 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4457 since some C++ compilers masquerading as C compilers
4458 incorrectly reject 9223372036854775807. */
4459 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4460 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4461 && LARGE_OFF_T % 2147483647 == 1)
4471 if ac_fn_c_try_compile
"$LINENO"; then :
4472 ac_cv_sys_file_offset_bits
=64; break
4474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4475 ac_cv_sys_file_offset_bits
=unknown
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4480 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4481 case $ac_cv_sys_file_offset_bits in #(
4484 cat >>confdefs.h
<<_ACEOF
4485 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4490 if test $ac_cv_sys_file_offset_bits = unknown
; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4492 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4493 if test "${ac_cv_sys_large_files+set}" = set; then :
4494 $as_echo_n "(cached) " >&6
4497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499 #include <sys/types.h>
4500 /* Check that off_t can represent 2**63 - 1 correctly.
4501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4502 since some C++ compilers masquerading as C compilers
4503 incorrectly reject 9223372036854775807. */
4504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4506 && LARGE_OFF_T % 2147483647 == 1)
4516 if ac_fn_c_try_compile
"$LINENO"; then :
4517 ac_cv_sys_large_files
=no
; break
4519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4522 #define _LARGE_FILES 1
4523 #include <sys/types.h>
4524 /* Check that off_t can represent 2**63 - 1 correctly.
4525 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4526 since some C++ compilers masquerading as C compilers
4527 incorrectly reject 9223372036854775807. */
4528 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4529 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4530 && LARGE_OFF_T % 2147483647 == 1)
4540 if ac_fn_c_try_compile
"$LINENO"; then :
4541 ac_cv_sys_large_files
=1; break
4543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4544 ac_cv_sys_large_files
=unknown
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4549 $as_echo "$ac_cv_sys_large_files" >&6; }
4550 case $ac_cv_sys_large_files in #(
4553 cat >>confdefs.h
<<_ACEOF
4554 #define _LARGE_FILES $ac_cv_sys_large_files
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4567 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4568 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4571 am_cv_prog_cc_stdc
=no
4573 # Don't try gcc -ansi; that turns off useful extensions and
4574 # breaks some systems' header files.
4575 # AIX -qlanglvl=ansi
4576 # Ultrix and OSF/1 -std1
4577 # HP-UX 10.20 and later -Ae
4578 # HP-UX older versions -Aa -D_HPUX_SOURCE
4579 # SVR4 -Xc -D__EXTENSIONS__
4580 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4582 CC
="$ac_save_CC $ac_arg"
4583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4587 #include <sys/types.h>
4588 #include <sys/stat.h>
4589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4590 struct buf { int x; };
4591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4592 static char *e (p, i)
4598 static char *f (char * (*g) (char **, int), char **p, ...)
4603 s = g (p, va_arg (v,int));
4607 int test (int i, double x);
4608 struct s1 {int (*f) (int a);};
4609 struct s2 {int (*f) (double a);};
4610 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4618 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4624 if ac_fn_c_try_compile
"$LINENO"; then :
4625 am_cv_prog_cc_stdc
="$ac_arg"; break
4627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4633 if test -z "$am_cv_prog_cc_stdc"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4635 $as_echo "none needed" >&6; }
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4638 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4640 case "x$am_cv_prog_cc_stdc" in
4642 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4647 for ac_dir
in ..
"$srcdir"/..
; do
4648 for ac_t
in install-sh
install.sh shtool
; do
4649 if test -f "$ac_dir/$ac_t"; then
4651 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4656 if test -z "$ac_aux_dir"; then
4657 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4660 # These three variables are undocumented and unsupported,
4661 # and are intended to be withdrawn in a future Autoconf release.
4662 # They can cause serious problems if a builder's source tree is in a directory
4663 # whose full name contains unusual characters.
4664 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4665 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4666 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4671 # Dependency checking.
4672 rm -rf .tst
2>/dev
/null
4673 mkdir .tst
2>/dev
/null
4674 if test -d .tst
; then
4679 rmdir .tst
2>/dev
/null
4681 DEPDIR
="${am__leading_dot}deps"
4683 ac_config_commands
="$ac_config_commands depdir"
4686 depcc
="$CC" am_compiler_list
=
4688 am_depcomp
=$ac_aux_dir/depcomp
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4690 $as_echo_n "checking dependency style of $depcc... " >&6; }
4691 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -f "$am_depcomp"; then
4695 # We make a subdir and do the tests there. Otherwise we can end up
4696 # making bogus files that we don't know about and never remove. For
4697 # instance it was reported that on HP-UX the gcc test will end up
4698 # making a dummy file named `D' -- because `-MD' means `put the output
4701 # Copy depcomp to subdir because otherwise we won't find it if we're
4702 # using a relative directory.
4703 cp "$am_depcomp" conftest.dir
4705 # We will build objects and dependencies in a subdirectory because
4706 # it helps to detect inapplicable dependency modes. For instance
4707 # both Tru64's cc and ICC support -MD to output dependencies as a
4708 # side effect of compilation, but ICC will put the dependencies in
4709 # the current directory while Tru64 will put them in the object
4713 am_cv_CC_dependencies_compiler_type
=none
4714 if test "$am_compiler_list" = ""; then
4715 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4717 for depmode
in $am_compiler_list; do
4718 if test $depmode = none
; then break; fi
4720 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4721 # Setup a source with many dependencies, because some compilers
4722 # like to wrap large dependency lists on column 80 (with \), and
4723 # we should not choose a depcomp mode which is confused by this.
4725 # We need to recreate these files for each test, as the compiler may
4726 # overwrite some of them when testing with obscure command lines.
4727 # This happens at least with the AIX C compiler.
4729 for i
in 1 2 3 4 5 6; do
4730 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4731 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4732 # Solaris 8's {/usr,}/bin/sh.
4733 touch sub
/conftst
$i.h
4735 echo "include sub/conftest.Po" > confmf
4737 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4738 # mode. It turns out that the SunPro C++ compiler does not properly
4739 # handle `-M -o', and we need to detect this.
4740 depcmd
="depmode=$depmode \
4741 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4742 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4743 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4744 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4745 if env
$depcmd > conftest.err
2>&1 &&
4746 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4747 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4748 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4749 # icc doesn't choke on unknown options, it will just issue warnings
4750 # or remarks (even with -Werror). So we grep stderr for any message
4751 # that says an option was ignored or not supported.
4752 # When given -MP, icc 7.0 and 7.1 complain thusly:
4753 # icc: Command line warning: ignoring option '-M'; no argument required
4754 # The diagnosis changed in icc 8.0:
4755 # icc: Command line remark: option '-MP' not supported
4756 if (grep 'ignoring option' conftest.err ||
4757 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4758 am_cv_CC_dependencies_compiler_type
=$depmode
4759 $as_echo "$as_me:$LINENO: success" >&5
4763 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4764 sed -e 's/^/| /' < conftest.err
>&5
4770 am_cv_CC_dependencies_compiler_type
=none
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4775 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4776 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4777 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4778 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4783 # Check for the 'make' the user wants to use.
4786 # Extract the first word of "$ac_prog", so it can be a program name with args.
4787 set dummy
$ac_prog; ac_word
=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if test "${ac_cv_prog_MAKE+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4793 if test -n "$MAKE"; then
4794 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4800 test -z "$as_dir" && as_dir
=.
4801 for ac_exec_ext
in '' $ac_executable_extensions; do
4802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803 ac_cv_prog_MAKE
="$ac_prog"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 MAKE
=$ac_cv_prog_MAKE
4814 if test -n "$MAKE"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4816 $as_echo "$MAKE" >&6; }
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4823 test -n "$MAKE" && break
4827 case "`$MAKE --version 2>&1 | sed 1q`" in
4832 if test "$MAKE_IS_GNU" = yes; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4841 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4843 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4844 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4845 $as_echo_n "(cached) " >&6
4847 cat >conftest.
make <<\_ACEOF
4850 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4853 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4855 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4857 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4861 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4863 $as_echo "yes" >&6; }
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4868 SET_MAKE
="MAKE=${MAKE-make}"
4883 # If we haven't got the data from the intl directory,
4884 # assume NLS is disabled.
4893 if test -f ..
/intl
/config.intl
; then
4894 . ..
/intl
/config.intl
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4897 $as_echo_n "checking whether NLS is requested... " >&6; }
4898 if test x
"$USE_NLS" != xyes
; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4903 $as_echo "yes" >&6; }
4905 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4909 $as_echo_n "checking for catalogs to be installed... " >&6; }
4910 # Look for .po and .gmo files in the source directory.
4913 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4914 # If there aren't any .gmo files the shell will give us the
4915 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4917 case "$cat" in *\
**)
4920 # The quadruple backslash is collapsed to a double backslash
4921 # by the backticks, then collapsed again by the double quotes,
4922 # leaving us with one backslash in the sed expression (right
4923 # before the dot that mustn't act as a wildcard).
4924 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4925 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4926 # The user is allowed to set LINGUAS to a list of languages to
4927 # install catalogs for. If it's empty that means "all of them."
4928 if test "x$LINGUAS" = x
; then
4929 CATALOGS
="$CATALOGS $cat"
4930 XLINGUAS
="$XLINGUAS $lang"
4932 case "$LINGUAS" in *$lang*)
4933 CATALOGS
="$CATALOGS $cat"
4934 XLINGUAS
="$XLINGUAS $lang"
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4941 $as_echo "$LINGUAS" >&6; }
4954 localedir
='${datadir}/locale'
4957 if test x
"$USE_NLS" = xyes
; then
4958 CONFIG_ALL
="$CONFIG_ALL all-po"
4959 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4960 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4961 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4968 LIBC_FATAL_STDERR_
=1
4969 export LIBC_FATAL_STDERR_
4975 for ac_header
in $gl_header_list
4977 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4978 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4979 eval as_val
=\$
$as_ac_Header
4980 if test "x$as_val" = x
""yes; then :
4981 cat >>confdefs.h
<<_ACEOF
4982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4997 for ac_func
in $gl_func_list
4999 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5000 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5001 eval as_val
=\$
$as_ac_var
5002 if test "x$as_val" = x
""yes; then :
5003 cat >>confdefs.h
<<_ACEOF
5004 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5030 GNULIB_STRCASESTR
=0;
5037 GNULIB_MBSCASECMP
=0;
5038 GNULIB_MBSNCASECMP
=0;
5039 GNULIB_MBSPCASECMP
=0;
5040 GNULIB_MBSCASESTR
=0;
5048 GNULIB_STRVERSCMP
=0;
5053 HAVE_DECL_MEMRCHR
=1;
5059 HAVE_DECL_STRNDUP
=1;
5060 HAVE_DECL_STRNLEN
=1;
5064 HAVE_DECL_STRTOK_R
=1;
5065 HAVE_DECL_STRSIGNAL
=1;
5072 REPLACE_STRCASESTR
=0;
5077 REPLACE_STRSIGNAL
=0;
5079 UNDEFINE_STRTOK_R
=0;
5093 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5094 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5095 # irrelevant for anonymous mappings.
5096 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
5097 if test "x$ac_cv_func_mmap" = x
""yes; then :
5104 # Try to allow MAP_ANONYMOUS.
5105 gl_have_mmap_anonymous
=no
5106 if test $gl_have_mmap = yes; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5108 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5112 #include <sys/mman.h>
5113 #ifdef MAP_ANONYMOUS
5114 I cant identify this map.
5118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5119 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5120 gl_have_mmap_anonymous
=yes
5124 if test $gl_have_mmap_anonymous != yes; then
5125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5128 #include <sys/mman.h>
5130 I cant identify this map.
5134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5135 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5137 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5139 gl_have_mmap_anonymous
=yes
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5145 $as_echo "$gl_have_mmap_anonymous" >&6; }
5146 if test $gl_have_mmap_anonymous = yes; then
5148 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5176 if test $ac_cv_func_memchr = yes; then
5177 # Detect platform-specific bugs in some versions of glibc:
5178 # memchr should not dereference anything with length 0
5179 # http://bugzilla.redhat.com/499689
5180 # memchr should not dereference overestimated length after a match
5181 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5182 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5183 # Assume that memchr works on platforms that lack mprotect.
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5185 $as_echo_n "checking whether memchr works... " >&6; }
5186 if test "${gl_cv_func_memchr_works+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5189 if test "$cross_compiling" = yes; then :
5190 gl_cv_func_memchr_works
="guessing no"
5192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5198 # include <unistd.h>
5199 # include <sys/types.h>
5200 # include <sys/mman.h>
5211 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5212 # if HAVE_MAP_ANONYMOUS
5213 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5215 # else /* !HAVE_MAP_ANONYMOUS */
5216 const int flags = MAP_FILE | MAP_PRIVATE;
5217 int fd = open ("/dev/zero", O_RDONLY, 0666);
5221 int pagesize = getpagesize ();
5223 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5225 if (two_pages != (char *)(-1)
5226 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5227 fence = two_pages + pagesize;
5232 if (memchr (fence, 0, 0))
5234 strcpy (fence - 9, "12345678");
5235 if (memchr (fence - 9, 0, 79) != fence - 1)
5244 if ac_fn_c_try_run
"$LINENO"; then :
5245 gl_cv_func_memchr_works
=yes
5247 gl_cv_func_memchr_works
=no
5249 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5250 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5255 $as_echo "$gl_cv_func_memchr_works" >&6; }
5256 if test "$gl_cv_func_memchr_works" != yes; then
5262 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
5271 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
5274 for ac_header
in bp-sym.h
5276 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5277 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
5278 cat >>confdefs.h
<<_ACEOF
5279 #define HAVE_BP_SYM_H 1
5290 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5291 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
5297 cat >>confdefs.h
<<_ACEOF
5298 #define HAVE_DECL_MEMMEM $ac_have_decl
5314 for ac_func
in memmem
5316 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
5317 if test "x$ac_cv_func_memmem" = x
""yes; then :
5318 cat >>confdefs.h
<<_ACEOF
5319 #define HAVE_MEMMEM 1
5324 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5337 if test $ac_cv_have_decl_memmem = no
; then
5343 gl_cv_c_multiarch
=no
5344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 #ifndef __APPLE_CC__
5347 not a universal capable compiler
5352 if ac_fn_c_try_compile
"$LINENO"; then :
5356 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5357 if test -n "$prev"; then
5359 i?
86 | x86_64 | ppc | ppc64
)
5360 if test -z "$arch" ||
test "$arch" = "$word"; then
5363 gl_cv_c_multiarch
=yes
5369 if test "x$word" = "x-arch"; then
5376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5377 if test $gl_cv_c_multiarch = yes; then
5379 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5381 APPLE_UNIVERSAL_BUILD
=1
5383 APPLE_UNIVERSAL_BUILD
=0
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5394 $as_echo_n "checking for wchar_t... " >&6; }
5395 if test "${gt_cv_c_wchar_t+set}" = set; then :
5396 $as_echo_n "(cached) " >&6
5398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5401 wchar_t foo = (wchar_t)'\0';
5410 if ac_fn_c_try_compile
"$LINENO"; then :
5415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5418 $as_echo "$gt_cv_c_wchar_t" >&6; }
5419 if test $gt_cv_c_wchar_t = yes; then
5421 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5428 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5429 if test "${gl_cv_have_include_next+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5432 rm -rf conftestd1a conftestd1b conftestd2
5433 mkdir conftestd1a conftestd1b conftestd2
5434 cat <<EOF > conftestd1a/conftest.h
5435 #define DEFINED_IN_CONFTESTD1
5436 #include_next <conftest.h>
5437 #ifdef DEFINED_IN_CONFTESTD2
5440 #error "include_next doesn't work"
5443 cat <<EOF > conftestd1b/conftest.h
5444 #define DEFINED_IN_CONFTESTD1
5446 #include_next <conftest.h>
5447 #ifdef DEFINED_IN_CONFTESTD2
5450 #error "include_next doesn't work"
5453 cat <<EOF > conftestd2/conftest.h
5454 #ifndef DEFINED_IN_CONFTESTD1
5455 #error "include_next test doesn't work"
5457 #define DEFINED_IN_CONFTESTD2
5459 gl_save_CPPFLAGS
="$CPPFLAGS"
5460 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 #include <conftest.h>
5465 if ac_fn_c_try_compile
"$LINENO"; then :
5466 gl_cv_have_include_next
=yes
5468 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <conftest.h>
5473 if ac_fn_c_try_compile
"$LINENO"; then :
5474 gl_cv_have_include_next
=buggy
5476 gl_cv_have_include_next
=no
5478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5482 CPPFLAGS
="$gl_save_CPPFLAGS"
5483 rm -rf conftestd1a conftestd1b conftestd2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5487 $as_echo "$gl_cv_have_include_next" >&6; }
5488 PRAGMA_SYSTEM_HEADER
=
5489 if test $gl_cv_have_include_next = yes; then
5490 INCLUDE_NEXT
=include_next
5491 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5492 if test -n "$GCC"; then
5493 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
5496 if test $gl_cv_have_include_next = buggy
; then
5497 INCLUDE_NEXT
=include
5498 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5500 INCLUDE_NEXT
=include
5501 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5515 $as_echo_n "checking for long long int... " >&6; }
5516 if test "${ac_cv_type_long_long_int+set}" = set; then :
5517 $as_echo_n "(cached) " >&6
5519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5522 /* For now, do not test the preprocessor; as of 2007 there are too many
5523 implementations with broken preprocessors. Perhaps this can
5524 be revisited in 2012. In the meantime, code should not expect
5525 #if to work with literals wider than 32 bits. */
5526 /* Test literals. */
5527 long long int ll = 9223372036854775807ll;
5528 long long int nll = -9223372036854775807LL;
5529 unsigned long long int ull = 18446744073709551615ULL;
5530 /* Test constant expressions. */
5531 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5533 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5539 /* Test availability of runtime routines for shift and division. */
5540 long long int llmax = 9223372036854775807ll;
5541 unsigned long long int ullmax = 18446744073709551615ull;
5542 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5543 | (llmax / ll) | (llmax % ll)
5544 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5545 | (ullmax / ull) | (ullmax % ull));
5551 if ac_fn_c_try_link
"$LINENO"; then :
5552 if test "$cross_compiling" = yes; then :
5553 ac_cv_type_long_long_int
=yes
5555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5560 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5561 # define LLONG_MAX (HALF - 1 + HALF)
5566 long long int n = 1;
5570 long long int m = n << i;
5573 if (LLONG_MAX / 2 < m)
5581 if ac_fn_c_try_run
"$LINENO"; then :
5582 ac_cv_type_long_long_int
=yes
5584 ac_cv_type_long_long_int
=no
5586 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5587 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5591 ac_cv_type_long_long_int
=no
5593 rm -f core conftest.err conftest.
$ac_objext \
5594 conftest
$ac_exeext conftest.
$ac_ext
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5597 $as_echo "$ac_cv_type_long_long_int" >&6; }
5598 if test $ac_cv_type_long_long_int = yes; then
5600 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5606 $as_echo_n "checking for unsigned long long int... " >&6; }
5607 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5608 $as_echo_n "(cached) " >&6
5610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5613 /* For now, do not test the preprocessor; as of 2007 there are too many
5614 implementations with broken preprocessors. Perhaps this can
5615 be revisited in 2012. In the meantime, code should not expect
5616 #if to work with literals wider than 32 bits. */
5617 /* Test literals. */
5618 long long int ll = 9223372036854775807ll;
5619 long long int nll = -9223372036854775807LL;
5620 unsigned long long int ull = 18446744073709551615ULL;
5621 /* Test constant expressions. */
5622 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5624 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5630 /* Test availability of runtime routines for shift and division. */
5631 long long int llmax = 9223372036854775807ll;
5632 unsigned long long int ullmax = 18446744073709551615ull;
5633 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5634 | (llmax / ll) | (llmax % ll)
5635 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5636 | (ullmax / ull) | (ullmax % ull));
5642 if ac_fn_c_try_link
"$LINENO"; then :
5643 ac_cv_type_unsigned_long_long_int
=yes
5645 ac_cv_type_unsigned_long_long_int
=no
5647 rm -f core conftest.err conftest.
$ac_objext \
5648 conftest
$ac_exeext conftest.
$ac_ext
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5651 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5652 if test $ac_cv_type_unsigned_long_long_int = yes; then
5654 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5669 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5670 if test "${ac_cv_c_restrict+set}" = set; then :
5671 $as_echo_n "(cached) " >&6
5674 # The order here caters to the fact that C++ does not require restrict.
5675 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
5676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 typedef int * int_ptr;
5679 int foo (int_ptr $ac_kw ip) {
5693 if ac_fn_c_try_compile
"$LINENO"; then :
5694 ac_cv_c_restrict
=$ac_kw
5696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5697 test "$ac_cv_c_restrict" != no
&& break
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5702 $as_echo "$ac_cv_c_restrict" >&6; }
5704 case $ac_cv_c_restrict in
5706 no
) $as_echo "#define restrict /**/" >>confdefs.h
5708 *) cat >>confdefs.h
<<_ACEOF
5709 #define restrict $ac_cv_c_restrict
5734 if test $gl_cv_have_include_next = yes; then
5735 gl_cv_next_string_h
='<'string.h
'>'
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5738 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5739 if test "${gl_cv_next_string_h+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5743 if test $ac_cv_header_string_h = yes; then
5744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5750 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
5751 *) gl_absname_cpp
="$ac_cpp" ;;
5753 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5754 sed -n '\#/string.h#{
5755 s#.*"\(.*/string.h\)".*#\1#
5761 gl_cv_next_string_h
='<'string.h
'>'
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5766 $as_echo "$gl_cv_next_string_h" >&6; }
5768 NEXT_STRING_H
=$gl_cv_next_string_h
5770 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
5771 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5772 gl_next_as_first_directive
='<'string.h
'>'
5774 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5775 gl_next_as_first_directive
=$gl_cv_next_string_h
5777 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
5783 for gl_func
in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp
; do
5784 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5786 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5787 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5788 $as_echo_n "(cached) " >&6
5790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5803 if ac_fn_c_try_compile
"$LINENO"; then :
5804 eval "$as_gl_Symbol=yes"
5806 eval "$as_gl_Symbol=no"
5808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5810 eval ac_res
=\$
$as_gl_Symbol
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5812 $as_echo "$ac_res" >&6; }
5813 eval as_val
=\$
$as_gl_Symbol
5814 if test "x$as_val" = x
""yes; then :
5815 cat >>confdefs.h
<<_ACEOF
5816 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5819 eval ac_cv_have_decl_
$gl_func=yes
5831 GNULIB_MBSNRTOWCS
=0;
5834 GNULIB_WCSNRTOMBS
=0;
5846 HAVE_DECL_WCWIDTH
=1;
5847 REPLACE_MBSTATE_T
=0;
5853 REPLACE_MBSRTOWCS
=0;
5854 REPLACE_MBSNRTOWCS
=0;
5856 REPLACE_WCSRTOMBS
=0;
5857 REPLACE_WCSNRTOMBS
=0;
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5862 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5863 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5864 $as_echo_n "(cached) " >&6
5866 gl_cv_header_wchar_h_correct_inline
=yes
5867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5870 #define wcstod renamed_wcstod
5872 extern int zero (void);
5873 int main () { return zero(); }
5876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5877 (eval $ac_compile) 2>&5
5879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5880 test $ac_status = 0; }; then
5881 mv conftest.
$ac_objext conftest1.
$ac_objext
5882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5885 #define wcstod renamed_wcstod
5887 int zero (void) { return 0; }
5890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5891 (eval $ac_compile) 2>&5
5893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5894 test $ac_status = 0; }; then
5895 mv conftest.
$ac_objext conftest2.
$ac_objext
5896 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
5899 gl_cv_header_wchar_h_correct_inline
=no
5903 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5907 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5908 if test $gl_cv_header_wchar_h_correct_inline = no
; then
5909 as_fn_error
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5910 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5911 C99 mode. You have four options:
5912 - Add the flag -fgnu89-inline to CC and reconfigure, or
5913 - Fix your include files, using parts of
5914 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5915 - Use a gcc version older than 4.3, or
5916 - Don't use the flags -std=c99 or -std=gnu99.
5917 Configuration aborted." "$LINENO" 5
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5922 $as_echo_n "checking for wint_t... " >&6; }
5923 if test "${gt_cv_c_wint_t+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
5926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5929 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5931 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5932 before <wchar.h>. */
5937 wint_t foo = (wchar_t)'\0';
5946 if ac_fn_c_try_compile
"$LINENO"; then :
5951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5954 $as_echo "$gt_cv_c_wint_t" >&6; }
5955 if test $gt_cv_c_wint_t = yes; then
5957 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5963 GL_COND_LIBTOOL_TRUE
=
5964 GL_COND_LIBTOOL_FALSE
='#'
5966 GL_COND_LIBTOOL_TRUE
='#'
5967 GL_COND_LIBTOOL_FALSE
=
5970 gl_cond_libtool
=false
5973 gl_m4_base
='gnulib/m4'
5983 gl_source_base
='gnulib'
5984 # Code from module arg-nonnull:
5985 # Code from module c++defs:
5986 # Code from module extensions:
5987 # Code from module include_next:
5988 # Code from module memchr:
5997 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
6001 # Code from module memmem:
6004 if test $ac_cv_have_decl_memmem = yes; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6006 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6007 if test "${gl_cv_func_memmem_works+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6010 if test "$cross_compiling" = yes; then :
6011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6014 #include <features.h>
6015 #ifdef __GNU_LIBRARY__
6016 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6021 #include <cygwin/version.h>
6022 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6029 $EGREP "Lucky user" >/dev
/null
2>&1; then :
6030 gl_cv_func_memmem_works
=yes
6032 gl_cv_func_memmem_works
="guessing no"
6038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6041 #include <signal.h> /* for signal */
6042 #include <string.h> /* for memmem */
6043 #include <stdlib.h> /* for malloc */
6044 #include <unistd.h> /* for alarm */
6050 char *haystack = (char *) malloc (2 * m + 1);
6051 char *needle = (char *) malloc (m + 1);
6053 /* Failure to compile this test due to missing alarm is okay,
6054 since all such platforms (mingw) also lack memmem. */
6055 signal (SIGALRM, SIG_DFL);
6057 /* Check for quadratic performance. */
6058 if (haystack && needle)
6060 memset (haystack, 'A', 2 * m);
6061 haystack[2 * m] = 'B';
6062 memset (needle, 'A', m);
6064 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6066 /* Check for empty needle behavior. */
6067 return !result || !memmem ("a", 1, 0, 0);
6072 if ac_fn_c_try_run
"$LINENO"; then :
6073 gl_cv_func_memmem_works
=yes
6075 gl_cv_func_memmem_works
=no
6077 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6078 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6084 $as_echo "$gl_cv_func_memmem_works" >&6; }
6085 if test "$gl_cv_func_memmem_works" != yes; then
6095 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
6100 # Code from module memmem-simple:
6113 for ac_func
in memmem
6115 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
6116 if test "x$ac_cv_func_memmem" = x
""yes; then :
6117 cat >>confdefs.h
<<_ACEOF
6118 #define HAVE_MEMMEM 1
6123 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
6136 if test $ac_cv_have_decl_memmem = no
; then
6148 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6152 # Code from module multiarch:
6154 # Code from module stddef:
6158 if test $gt_cv_c_wchar_t = no
; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6163 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6164 if test "${gl_cv_decl_null_works+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6170 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6180 if ac_fn_c_try_compile
"$LINENO"; then :
6181 gl_cv_decl_null_works
=yes
6183 gl_cv_decl_null_works
=no
6185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6188 $as_echo "$gl_cv_decl_null_works" >&6; }
6189 if test $gl_cv_decl_null_works = no
; then
6193 if test -n "$STDDEF_H"; then
6206 if test $gl_cv_have_include_next = yes; then
6207 gl_cv_next_stddef_h
='<'stddef.h
'>'
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6210 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6211 if test "${gl_cv_next_stddef_h+set}" = set; then :
6212 $as_echo_n "(cached) " >&6
6215 if test $ac_cv_header_stddef_h = yes; then
6216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6222 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6223 *) gl_absname_cpp
="$ac_cpp" ;;
6225 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6226 sed -n '\#/stddef.h#{
6227 s#.*"\(.*/stddef.h\)".*#\1#
6233 gl_cv_next_stddef_h
='<'stddef.h
'>'
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6238 $as_echo "$gl_cv_next_stddef_h" >&6; }
6240 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
6242 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6244 gl_next_as_first_directive
='<'stddef.h
'>'
6246 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6247 gl_next_as_first_directive
=$gl_cv_next_stddef_h
6249 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
6255 # Code from module stdint:
6259 if test $ac_cv_type_long_long_int = yes; then
6260 HAVE_LONG_LONG_INT
=1
6262 HAVE_LONG_LONG_INT
=0
6266 if test $ac_cv_type_unsigned_long_long_int = yes; then
6267 HAVE_UNSIGNED_LONG_LONG_INT
=1
6269 HAVE_UNSIGNED_LONG_LONG_INT
=0
6273 if test $ac_cv_header_inttypes_h = yes; then
6280 if test $ac_cv_header_sys_types_h = yes; then
6299 if test $gl_cv_have_include_next = yes; then
6300 gl_cv_next_stdint_h
='<'stdint.h
'>'
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6303 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6304 if test "${gl_cv_next_stdint_h+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6308 if test $ac_cv_header_stdint_h = yes; then
6309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6315 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6316 *) gl_absname_cpp
="$ac_cpp" ;;
6318 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6319 sed -n '\#/stdint.h#{
6320 s#.*"\(.*/stdint.h\)".*#\1#
6326 gl_cv_next_stdint_h
='<'stdint.h
'>'
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6331 $as_echo "$gl_cv_next_stdint_h" >&6; }
6333 NEXT_STDINT_H
=$gl_cv_next_stdint_h
6335 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6336 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6337 gl_next_as_first_directive
='<'stdint.h
'>'
6339 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6340 gl_next_as_first_directive
=$gl_cv_next_stdint_h
6342 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
6346 if test $ac_cv_header_stdint_h = yes; then
6353 if test $ac_cv_header_stdint_h = yes; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6355 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6356 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6357 $as_echo_n "(cached) " >&6
6359 gl_cv_header_working_stdint_h
=no
6360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6364 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6365 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6366 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6368 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6369 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6370 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6374 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6375 included before <wchar.h>. */
6386 int8_t a1 = INT8_MAX;
6387 int8_t a1min = INT8_MIN;
6390 int16_t a2 = INT16_MAX;
6391 int16_t a2min = INT16_MIN;
6394 int32_t a3 = INT32_MAX;
6395 int32_t a3min = INT32_MIN;
6398 int64_t a4 = INT64_MAX;
6399 int64_t a4min = INT64_MIN;
6402 uint8_t b1 = UINT8_MAX;
6404 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6407 uint16_t b2 = UINT16_MAX;
6410 uint32_t b3 = UINT32_MAX;
6413 uint64_t b4 = UINT64_MAX;
6415 int_least8_t c1 = INT8_C (0x7f);
6416 int_least8_t c1max = INT_LEAST8_MAX;
6417 int_least8_t c1min = INT_LEAST8_MIN;
6418 int_least16_t c2 = INT16_C (0x7fff);
6419 int_least16_t c2max = INT_LEAST16_MAX;
6420 int_least16_t c2min = INT_LEAST16_MIN;
6421 int_least32_t c3 = INT32_C (0x7fffffff);
6422 int_least32_t c3max = INT_LEAST32_MAX;
6423 int_least32_t c3min = INT_LEAST32_MIN;
6424 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6425 int_least64_t c4max = INT_LEAST64_MAX;
6426 int_least64_t c4min = INT_LEAST64_MIN;
6427 uint_least8_t d1 = UINT8_C (0xff);
6428 uint_least8_t d1max = UINT_LEAST8_MAX;
6429 uint_least16_t d2 = UINT16_C (0xffff);
6430 uint_least16_t d2max = UINT_LEAST16_MAX;
6431 uint_least32_t d3 = UINT32_C (0xffffffff);
6432 uint_least32_t d3max = UINT_LEAST32_MAX;
6433 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6434 uint_least64_t d4max = UINT_LEAST64_MAX;
6435 int_fast8_t e1 = INT_FAST8_MAX;
6436 int_fast8_t e1min = INT_FAST8_MIN;
6437 int_fast16_t e2 = INT_FAST16_MAX;
6438 int_fast16_t e2min = INT_FAST16_MIN;
6439 int_fast32_t e3 = INT_FAST32_MAX;
6440 int_fast32_t e3min = INT_FAST32_MIN;
6441 int_fast64_t e4 = INT_FAST64_MAX;
6442 int_fast64_t e4min = INT_FAST64_MIN;
6443 uint_fast8_t f1 = UINT_FAST8_MAX;
6444 uint_fast16_t f2 = UINT_FAST16_MAX;
6445 uint_fast32_t f3 = UINT_FAST32_MAX;
6446 uint_fast64_t f4 = UINT_FAST64_MAX;
6448 intptr_t g = INTPTR_MAX;
6449 intptr_t gmin = INTPTR_MIN;
6452 uintptr_t h = UINTPTR_MAX;
6454 intmax_t i = INTMAX_MAX;
6455 uintmax_t j = UINTMAX_MAX;
6457 #include <limits.h> /* for CHAR_BIT */
6458 #define TYPE_MINIMUM(t) \
6459 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6460 #define TYPE_MAXIMUM(t) \
6461 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6464 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6465 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6467 /* Detect bug in FreeBSD 6.0 / ia64. */
6468 int check_SIG_ATOMIC:
6469 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6470 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6472 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6474 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6475 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6477 /* Detect bug in mingw. */
6479 WINT_MIN == TYPE_MINIMUM (wint_t)
6480 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6483 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6485 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6487 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6489 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6491 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6494 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6497 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6500 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6502 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6503 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6504 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6505 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6506 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6507 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6508 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6509 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6510 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6511 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6512 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6523 if ac_fn_c_try_compile
"$LINENO"; then :
6524 if test "$cross_compiling" = yes; then :
6525 gl_cv_header_working_stdint_h
=yes
6528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6532 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6533 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6534 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6538 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6539 included before <wchar.h>. */
6551 #define MVAL(macro) MVAL1(macro)
6552 #define MVAL1(expression) #expression
6553 static const char *macro_values[] =
6587 for (mv = macro_values; *mv != NULL; mv++)
6589 const char *value = *mv;
6590 /* Test whether it looks like a cast expression. */
6591 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6592 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6593 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6594 || strncmp (value, "((int)"/*)*/, 6) == 0
6595 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6596 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6605 if ac_fn_c_try_run
"$LINENO"; then :
6606 gl_cv_header_working_stdint_h
=yes
6608 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6609 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6618 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6620 if test "$gl_cv_header_working_stdint_h" = yes; then
6623 for ac_header
in sys
/inttypes.h sys
/bitypes.h
6625 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6626 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6627 eval as_val
=\$
$as_ac_Header
6628 if test "x$as_val" = x
""yes; then :
6629 cat >>confdefs.h
<<_ACEOF
6630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6637 if test $ac_cv_header_sys_inttypes_h = yes; then
6638 HAVE_SYS_INTTYPES_H
=1
6640 HAVE_SYS_INTTYPES_H
=0
6643 if test $ac_cv_header_sys_bitypes_h = yes; then
6644 HAVE_SYS_BITYPES_H
=1
6646 HAVE_SYS_BITYPES_H
=0
6660 if test $APPLE_UNIVERSAL_BUILD = 0; then
6663 for gltype
in ptrdiff_t size_t
; do
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6665 $as_echo_n "checking for bit size of $gltype... " >&6; }
6666 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6667 $as_echo_n "(cached) " >&6
6669 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6670 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6671 included before <wchar.h>. */
6680 #include <limits.h>"; then :
6686 eval gl_cv_bitsizeof_
${gltype}=\
$result
6689 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6691 $as_echo "$ac_res" >&6; }
6692 eval result
=\
$gl_cv_bitsizeof_${gltype}
6693 if test $result = unknown
; then
6696 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6697 cat >>confdefs.h
<<_ACEOF
6698 #define BITSIZEOF_${GLTYPE} $result
6701 eval BITSIZEOF_
${GLTYPE}=\
$result
6708 for gltype
in sig_atomic_t wchar_t wint_t
; do
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6710 $as_echo_n "checking for bit size of $gltype... " >&6; }
6711 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6712 $as_echo_n "(cached) " >&6
6714 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6715 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6716 included before <wchar.h>. */
6725 #include <limits.h>"; then :
6731 eval gl_cv_bitsizeof_
${gltype}=\
$result
6734 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6736 $as_echo "$ac_res" >&6; }
6737 eval result
=\
$gl_cv_bitsizeof_${gltype}
6738 if test $result = unknown
; then
6741 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6742 cat >>confdefs.h
<<_ACEOF
6743 #define BITSIZEOF_${GLTYPE} $result
6746 eval BITSIZEOF_
${GLTYPE}=\
$result
6752 for gltype
in sig_atomic_t wchar_t wint_t
; do
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6754 $as_echo_n "checking whether $gltype is signed... " >&6; }
6755 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6756 $as_echo_n "(cached) " >&6
6758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6761 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6762 included before <wchar.h>. */
6771 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6780 if ac_fn_c_try_compile
"$LINENO"; then :
6785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6786 eval gl_cv_type_
${gltype}_signed
=\
$result
6789 eval ac_res
=\
$gl_cv_type_${gltype}_signed
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6791 $as_echo "$ac_res" >&6; }
6792 eval result
=\
$gl_cv_type_${gltype}_signed
6793 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6794 if test "$result" = yes; then
6795 cat >>confdefs.h
<<_ACEOF
6796 #define HAVE_SIGNED_${GLTYPE} 1
6799 eval HAVE_SIGNED_
${GLTYPE}=1
6801 eval HAVE_SIGNED_
${GLTYPE}=0
6806 gl_cv_type_ptrdiff_t_signed
=yes
6807 gl_cv_type_size_t_signed
=no
6808 if test $APPLE_UNIVERSAL_BUILD = 0; then
6811 for gltype
in ptrdiff_t size_t
; do
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6813 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6814 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6815 $as_echo_n "(cached) " >&6
6817 eval gl_cv_type_
${gltype}_suffix
=no
6818 eval result
=\
$gl_cv_type_${gltype}_signed
6819 if test "$result" = yes; then
6824 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6827 l
) gltype1
='long int';;
6828 ll
) gltype1
='long long int';;
6829 i64
) gltype1
='__int64';;
6830 u
) gltype1
='unsigned int';;
6831 ul
) gltype1
='unsigned long int';;
6832 ull
) gltype1
='unsigned long long int';;
6833 ui64
)gltype1
='unsigned __int64';;
6835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6838 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6839 included before <wchar.h>. */
6849 extern $gltype1 foo;
6858 if ac_fn_c_try_compile
"$LINENO"; then :
6859 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6862 eval result
=\
$gl_cv_type_${gltype}_suffix
6863 test "$result" != no
&& break
6866 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6868 $as_echo "$ac_res" >&6; }
6869 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6870 eval result
=\
$gl_cv_type_${gltype}_suffix
6871 test "$result" = no
&& result
=
6872 eval ${GLTYPE}_SUFFIX
=\
$result
6873 cat >>confdefs.h
<<_ACEOF
6874 #define ${GLTYPE}_SUFFIX $result
6883 for gltype
in sig_atomic_t wchar_t wint_t
; do
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6885 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6886 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6887 $as_echo_n "(cached) " >&6
6889 eval gl_cv_type_
${gltype}_suffix
=no
6890 eval result
=\
$gl_cv_type_${gltype}_signed
6891 if test "$result" = yes; then
6896 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6899 l
) gltype1
='long int';;
6900 ll
) gltype1
='long long int';;
6901 i64
) gltype1
='__int64';;
6902 u
) gltype1
='unsigned int';;
6903 ul
) gltype1
='unsigned long int';;
6904 ull
) gltype1
='unsigned long long int';;
6905 ui64
)gltype1
='unsigned __int64';;
6907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6910 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6911 included before <wchar.h>. */
6921 extern $gltype1 foo;
6930 if ac_fn_c_try_compile
"$LINENO"; then :
6931 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6934 eval result
=\
$gl_cv_type_${gltype}_suffix
6935 test "$result" != no
&& break
6938 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6940 $as_echo "$ac_res" >&6; }
6941 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6942 eval result
=\
$gl_cv_type_${gltype}_suffix
6943 test "$result" = no
&& result
=
6944 eval ${GLTYPE}_SUFFIX
=\
$result
6945 cat >>confdefs.h
<<_ACEOF
6946 #define ${GLTYPE}_SUFFIX $result
6957 # Code from module string:
6961 # Code from module warn-on-use:
6962 # Code from module wchar:
6985 if test $gl_cv_have_include_next = yes; then
6986 gl_cv_next_wchar_h
='<'wchar.h
'>'
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6989 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6990 if test "${gl_cv_next_wchar_h+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6994 if test $ac_cv_header_wchar_h = yes; then
6995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
7001 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7002 *) gl_absname_cpp
="$ac_cpp" ;;
7004 gl_cv_next_wchar_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7005 sed -n '\#/wchar.h#{
7006 s#.*"\(.*/wchar.h\)".*#\1#
7012 gl_cv_next_wchar_h
='<'wchar.h
'>'
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7017 $as_echo "$gl_cv_next_wchar_h" >&6; }
7019 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
7021 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7022 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7023 gl_next_as_first_directive
='<'wchar.h
'>'
7025 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7026 gl_next_as_first_directive
=$gl_cv_next_wchar_h
7028 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
7032 if test $ac_cv_header_wchar_h = yes; then
7040 if test $gt_cv_c_wint_t = yes; then
7048 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth
; do
7049 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7051 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7052 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7053 $as_echo_n "(cached) " >&6
7055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7058 /* Some systems require additional headers. */
7060 # include <stddef.h>
7075 if ac_fn_c_try_compile
"$LINENO"; then :
7076 eval "$as_gl_Symbol=yes"
7078 eval "$as_gl_Symbol=no"
7080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7082 eval ac_res
=\$
$as_gl_Symbol
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7084 $as_echo "$ac_res" >&6; }
7085 eval as_val
=\$
$as_gl_Symbol
7086 if test "x$as_val" = x
""yes; then :
7087 cat >>confdefs.h
<<_ACEOF
7088 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7091 eval ac_cv_have_decl_
$gl_func=yes
7096 # Code from module dummy:
7097 # End of code from modules
7118 gl_source_base
='tests'
7119 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
7121 gl_module_indicator_condition
=$gltests_WITNESS
7131 LIBGNU_LIBDEPS
="$gl_libdeps"
7133 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
7137 # For Makefile dependencies.
7139 if test x
"$STDINT_H" != x
; then
7140 GNULIB_STDINT_H
=gnulib
/$STDINT_H
7146 cat >>confdefs.h
<<_ACEOF
7147 #define PACKAGE "$PACKAGE"
7152 # GDB does not use automake, but gnulib does. This line lets us
7153 # generate its Makefile.in.
7154 am__api_version
='1.11'
7156 # Find a good install program. We prefer a C program (faster),
7157 # so one script is as good as another. But avoid the broken or
7158 # incompatible versions:
7159 # SysV /etc/install, /usr/sbin/install
7160 # SunOS /usr/etc/install
7161 # IRIX /sbin/install
7163 # AmigaOS /C/install, which installs bootblocks on floppy discs
7164 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7165 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7166 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7167 # OS/2's system install, which has a completely different semantic
7168 # ./install, which can be erroneously created by make from ./install.sh.
7169 # Reject install programs that cannot install multiple files.
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7171 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7172 if test -z "$INSTALL"; then
7173 if test "${ac_cv_path_install+set}" = set; then :
7174 $as_echo_n "(cached) " >&6
7176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir
=.
7181 # Account for people who put trailing slashes in PATH elements.
7182 case $as_dir/ in #((
7183 .
/ | .
// |
/[cC
]/* | \
7184 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7185 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7188 # OSF1 and SCO ODT 3.0 have their own names for install.
7189 # Don't use installbsd from OSF since it installs stuff as root
7191 for ac_prog
in ginstall scoinst
install; do
7192 for ac_exec_ext
in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7194 if test $ac_prog = install &&
7195 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7196 # AIX install. It has an incompatible calling convention.
7198 elif test $ac_prog = install &&
7199 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7200 # program-specific install script used by HP pwplus--don't use.
7203 rm -rf conftest.one conftest.two conftest.dir
7204 echo one
> conftest.one
7205 echo two
> conftest.two
7207 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7208 test -s conftest.one
&& test -s conftest.two
&&
7209 test -s conftest.dir
/conftest.one
&&
7210 test -s conftest.dir
/conftest.two
7212 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7225 rm -rf conftest.one conftest.two conftest.dir
7228 if test "${ac_cv_path_install+set}" = set; then
7229 INSTALL
=$ac_cv_path_install
7231 # As a last resort, use the slow shell script. Don't cache a
7232 # value for INSTALL within a source directory, because that will
7233 # break other packages using the cache if that directory is
7234 # removed, or if the value is a relative name.
7235 INSTALL
=$ac_install_sh
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7239 $as_echo "$INSTALL" >&6; }
7241 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7242 # It thinks the first close brace ends the variable substitution.
7243 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7245 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7247 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7250 $as_echo_n "checking whether build environment is sane... " >&6; }
7253 echo timestamp
> conftest.
file
7254 # Reject unsafe characters in $srcdir or the absolute working directory
7255 # name. Accept space and tab only in the latter.
7259 *[\\\"\
#\$\&\'\`$am_lf]*)
7260 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
7263 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
7264 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7267 # Do `set' in a subshell so we don't clobber the current shell's
7268 # arguments. Must try -L first in case configure is actually a
7269 # symlink; some systems play weird games with the mod time of symlinks
7270 # (eg FreeBSD returns the mod time of the symlink's containing
7273 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7274 if test "$*" = "X"; then
7276 set X
`ls -t "$srcdir/configure" conftest.file`
7279 if test "$*" != "X $srcdir/configure conftest.file" \
7280 && test "$*" != "X conftest.file $srcdir/configure"; then
7282 # If neither matched, then we have a broken ls. This can happen
7283 # if, for instance, CONFIG_SHELL is bash and it inherits a
7284 # broken ls alias from the environment. This has actually
7285 # happened. Such a system could not be considered "sane".
7286 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
7287 alias in your environment" "$LINENO" 5
7290 test "$2" = conftest.
file
7296 as_fn_error
"newly created file is older than distributed files!
7297 Check your system clock" "$LINENO" 5
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7300 $as_echo "yes" >&6; }
7301 test "$program_prefix" != NONE
&&
7302 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
7303 # Use a double $ so make ignores it.
7304 test "$program_suffix" != NONE
&&
7305 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
7306 # Double any \ or $.
7307 # By default was `s,x,x', remove it if useless.
7308 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
7309 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
7311 # expand $ac_aux_dir to an absolute path
7312 am_aux_dir
=`cd $ac_aux_dir && pwd`
7314 if test x
"${MISSING+set}" != xset
; then
7317 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
7319 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
7322 # Use eval to expand $SHELL
7323 if eval "$MISSING --run true"; then
7324 am_missing_run
="$MISSING --run "
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7328 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7331 if test x
"${install_sh}" != xset
; then
7334 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
7336 install_sh
="\${SHELL} $am_aux_dir/install-sh"
7340 # Installed binaries are usually stripped using `strip' when the user
7341 # run `make install-strip'. However `strip' might not be the right
7342 # tool to use in cross-compilation environments, therefore Automake
7343 # will honor the `STRIP' environment variable to overrule this program.
7344 if test "$cross_compiling" != no
; then
7345 if test -n "$ac_tool_prefix"; then
7346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7347 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if test "${ac_cv_prog_STRIP+set}" = set; then :
7351 $as_echo_n "(cached) " >&6
7353 if test -n "$STRIP"; then
7354 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir
=.
7361 for ac_exec_ext
in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 STRIP
=$ac_cv_prog_STRIP
7374 if test -n "$STRIP"; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7376 $as_echo "$STRIP" >&6; }
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7384 if test -z "$ac_cv_prog_STRIP"; then
7386 # Extract the first word of "strip", so it can be a program name with args.
7387 set dummy strip
; ac_word
=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7391 $as_echo_n "(cached) " >&6
7393 if test -n "$ac_ct_STRIP"; then
7394 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir
=.
7401 for ac_exec_ext
in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_prog_ac_ct_STRIP
="strip"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7414 if test -n "$ac_ct_STRIP"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7416 $as_echo "$ac_ct_STRIP" >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7422 if test "x$ac_ct_STRIP" = x
; then
7425 case $cross_compiling:$ac_tool_warned in
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7429 ac_tool_warned
=yes ;;
7434 STRIP
="$ac_cv_prog_STRIP"
7438 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7441 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7442 if test -z "$MKDIR_P"; then
7443 if test "${ac_cv_path_mkdir+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7447 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7450 test -z "$as_dir" && as_dir
=.
7451 for ac_prog
in mkdir gmkdir
; do
7452 for ac_exec_ext
in '' $ac_executable_extensions; do
7453 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
7454 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7455 'mkdir (GNU coreutils) '* | \
7456 'mkdir (coreutils) '* | \
7457 'mkdir (fileutils) '4.1*)
7458 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7468 if test "${ac_cv_path_mkdir+set}" = set; then
7469 MKDIR_P
="$ac_cv_path_mkdir -p"
7471 # As a last resort, use the slow shell script. Don't cache a
7472 # value for MKDIR_P within a source directory, because that will
7473 # break other packages using the cache if that directory is
7474 # removed, or if the value is a relative name.
7475 test -d .
/--version && rmdir .
/--version
7476 MKDIR_P
="$ac_install_sh -d"
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7480 $as_echo "$MKDIR_P" >&6; }
7485 [\\/$
]* | ?
:[\\/]*) ;;
7486 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
7489 for ac_prog
in gawk mawk nawk
awk
7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy
$ac_prog; ac_word
=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if test "${ac_cv_prog_AWK+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7498 if test -n "$AWK"; then
7499 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir
=.
7506 for ac_exec_ext
in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_prog_AWK
="$ac_prog"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 if test -n "$AWK"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7521 $as_echo "$AWK" >&6; }
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7528 test -n "$AWK" && break
7531 ac_config_commands
="$ac_config_commands depfiles"
7534 am_make
=${MAKE-make}
7535 cat > confinc
<< 'END'
7537 @
echo this is the am__doit target
7540 # If we don't find an include directive, just comment out the code.
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7542 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7546 # First try GNU make style include.
7547 echo "include confinc" > confmf
7548 # Ignore all kinds of additional output from `make'.
7549 case `$am_make -s -f confmf 2> /dev/null` in #(
7550 *the\ am__doit\ target
*)
7556 # Now try BSD make style include.
7557 if test "$am__include" = "#"; then
7558 echo '.include "confinc"' > confmf
7559 case `$am_make -s -f confmf 2> /dev/null` in #(
7560 *the\ am__doit\ target
*)
7561 am__include
=.include
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7570 $as_echo "$_am_result" >&6; }
7571 rm -f confinc confmf
7573 # Check whether --enable-dependency-tracking was given.
7574 if test "${enable_dependency_tracking+set}" = set; then :
7575 enableval
=$enable_dependency_tracking;
7578 if test "x$enable_dependency_tracking" != xno
; then
7579 am_depcomp
="$ac_aux_dir/depcomp"
7582 if test "x$enable_dependency_tracking" != xno; then
7591 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7592 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7593 # is not polluted with repeated "-I."
7594 am__isrc
=' -I$(srcdir)'
7595 # test to see if srcdir already configured
7596 if test -f $srcdir/config.status
; then
7597 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7601 # test whether we have cygpath
7602 if test -z "$CYGPATH_W"; then
7603 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
7604 CYGPATH_W
='cygpath -w'
7611 # Define the identity of the package.
7613 VERSION
=UNUSED-VERSION
7616 # Some tools Automake needs.
7618 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7621 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
7624 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7627 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
7630 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
7632 # We need awk for the "check" target. The system "awk" is bad on
7634 # Always define AMTAR for backward compatibility.
7636 AMTAR
=${AMTAR-"${am_missing_run}tar"}
7638 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
7643 depcc
="$CC" am_compiler_list
=
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7646 $as_echo_n "checking dependency style of $depcc... " >&6; }
7647 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7650 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7651 # We make a subdir and do the tests there. Otherwise we can end up
7652 # making bogus files that we don't know about and never remove. For
7653 # instance it was reported that on HP-UX the gcc test will end up
7654 # making a dummy file named `D' -- because `-MD' means `put the output
7657 # Copy depcomp to subdir because otherwise we won't find it if we're
7658 # using a relative directory.
7659 cp "$am_depcomp" conftest.dir
7661 # We will build objects and dependencies in a subdirectory because
7662 # it helps to detect inapplicable dependency modes. For instance
7663 # both Tru64's cc and ICC support -MD to output dependencies as a
7664 # side effect of compilation, but ICC will put the dependencies in
7665 # the current directory while Tru64 will put them in the object
7669 am_cv_CC_dependencies_compiler_type
=none
7670 if test "$am_compiler_list" = ""; then
7671 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7674 case " $depcc " in #(
7675 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
7678 for depmode
in $am_compiler_list; do
7679 # Setup a source with many dependencies, because some compilers
7680 # like to wrap large dependency lists on column 80 (with \), and
7681 # we should not choose a depcomp mode which is confused by this.
7683 # We need to recreate these files for each test, as the compiler may
7684 # overwrite some of them when testing with obscure command lines.
7685 # This happens at least with the AIX C compiler.
7687 for i
in 1 2 3 4 5 6; do
7688 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7689 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7690 # Solaris 8's {/usr,}/bin/sh.
7691 touch sub
/conftst
$i.h
7693 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7695 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7696 # mode. It turns out that the SunPro C++ compiler does not properly
7697 # handle `-M -o', and we need to detect this. Also, some Intel
7698 # versions had trouble with output in subdirs
7699 am__obj
=sub
/conftest.
${OBJEXT-o}
7700 am__minus_obj
="-o $am__obj"
7703 # This depmode causes a compiler race in universal mode.
7704 test "$am__universal" = false ||
continue
7707 # after this tag, mechanisms are not by side-effect, so they'll
7708 # only be used when explicitly requested
7709 if test "x$enable_dependency_tracking" = xyes
; then
7715 msvisualcpp | msvcmsys
)
7716 # This compiler won't grok `-c -o', but also, the minuso test has
7717 # not run yet. These depmodes are late enough in the game, and
7718 # so weak that their functioning should not be impacted.
7719 am__obj
=conftest.
${OBJEXT-o}
7724 if depmode
=$depmode \
7725 source=sub
/conftest.c object
=$am__obj \
7726 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7727 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
7728 >/dev
/null
2>conftest.err
&&
7729 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7730 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7731 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
7732 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7733 # icc doesn't choke on unknown options, it will just issue warnings
7734 # or remarks (even with -Werror). So we grep stderr for any message
7735 # that says an option was ignored or not supported.
7736 # When given -MP, icc 7.0 and 7.1 complain thusly:
7737 # icc: Command line warning: ignoring option '-M'; no argument required
7738 # The diagnosis changed in icc 8.0:
7739 # icc: Command line remark: option '-MP' not supported
7740 if (grep 'ignoring option' conftest.err ||
7741 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7742 am_cv_CC_dependencies_compiler_type
=$depmode
7751 am_cv_CC_dependencies_compiler_type
=none
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7756 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7757 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
7760 test "x$enable_dependency_tracking" != xno \
7761 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
7763 am__fastdepCC_FALSE
='#'
7765 am__fastdepCC_TRUE
='#'
7766 am__fastdepCC_FALSE
=
7774 # Check whether --with-separate-debug-dir was given.
7775 if test "${with_separate_debug_dir+set}" = set; then :
7776 withval
=$with_separate_debug_dir;
7779 DEBUGDIR
=${libdir}/debug
7783 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7784 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7785 ac_define_dir
=`eval echo $DEBUGDIR`
7786 ac_define_dir
=`eval echo $ac_define_dir`
7788 cat >>confdefs.h
<<_ACEOF
7789 #define DEBUGDIR "$ac_define_dir"
7795 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7796 if test "x$prefix" = xNONE
; then
7797 test_prefix
=/usr
/local
7802 test_prefix
=$exec_prefix
7805 case ${ac_define_dir} in
7806 "${test_prefix}"|
"${test_prefix}/"*|\
7807 '${exec_prefix}'|
'${exec_prefix}/'*)
7812 cat >>confdefs.h
<<_ACEOF
7813 #define DEBUGDIR_RELOCATABLE $value
7819 # GDB's datadir relocation
7823 # Check whether --with-gdb-datadir was given.
7824 if test "${with_gdb_datadir+set}" = set; then :
7825 withval
=$with_gdb_datadir;
7826 GDB_DATADIR
=$withval
7828 GDB_DATADIR
=${datadir}/gdb
7832 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7833 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7834 ac_define_dir
=`eval echo $GDB_DATADIR`
7835 ac_define_dir
=`eval echo $ac_define_dir`
7837 cat >>confdefs.h
<<_ACEOF
7838 #define GDB_DATADIR "$ac_define_dir"
7844 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7845 if test "x$prefix" = xNONE
; then
7846 test_prefix
=/usr
/local
7851 test_prefix
=$exec_prefix
7854 case ${ac_define_dir} in
7855 "${test_prefix}"|
"${test_prefix}/"*|\
7856 '${exec_prefix}'|
'${exec_prefix}/'*)
7861 cat >>confdefs.h
<<_ACEOF
7862 #define GDB_DATADIR_RELOCATABLE $value
7869 # Check whether --with-relocated-sources was given.
7870 if test "${with_relocated_sources+set}" = set; then :
7871 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
7873 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7874 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7875 ac_define_dir
=`eval echo $reloc_srcdir`
7876 ac_define_dir
=`eval echo $ac_define_dir`
7878 cat >>confdefs.h
<<_ACEOF
7879 #define RELOC_SRCDIR "$ac_define_dir"
7889 subdirs
="$subdirs testsuite"
7892 # Check whether to support alternative target configurations
7893 # Check whether --enable-targets was given.
7894 if test "${enable_targets+set}" = set; then :
7895 enableval
=$enable_targets; case "${enableval}" in
7896 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
7898 no
) enable_targets
= ;;
7899 *) enable_targets
=$enableval ;;
7904 # Check whether to enable 64-bit support on 32-bit hosts
7905 # Check whether --enable-64-bit-bfd was given.
7906 if test "${enable_64_bit_bfd+set}" = set; then :
7907 enableval
=$enable_64_bit_bfd; case "${enableval}" in
7910 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7916 # Provide defaults for some variables set by the per-host and per-target
7918 gdb_host_obs
=posix-hdep.o
7920 if test "${target}" = "${host}"; then
7926 .
$srcdir/configure.
host
7928 # Accumulate some settings from configure.tgt over all enabled targets
7933 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7935 if test "$targ_alias" = "all"; then
7938 # Canonicalize the secondary target names.
7939 result
=`$ac_config_sub $targ_alias 2>/dev/null`
7940 if test -n "$result"; then
7946 .
${srcdir}/configure.tgt
7948 if test -z "${gdb_target_obs}"; then :
7949 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
7952 # Target-specific object files
7953 for i
in ${gdb_target_obs}; do
7954 case " $TARGET_OBS " in
7957 TARGET_OBS
="$TARGET_OBS ${i}"
7962 # Check whether this target needs 64-bit CORE_ADDR
7963 if test x
${want64} = xfalse
; then
7964 .
${srcdir}/..
/bfd
/config.bfd
7969 if test x
${all_targets} = xtrue
; then
7971 # We want all 64-bit targets if we either:
7972 # - run on a 64-bit host or
7973 # - already require 64-bit support for some other target or
7974 # - the --enable-64-bit-bfd option was supplied
7975 # Otherwise we only support all 32-bit targets.
7977 # NOTE: This test must be in sync with the corresponding
7980 if test x
${want64} = xfalse
; then
7981 # The cast to long int works around a bug in the HP C Compiler
7982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7984 # This bug is HP SR number 8606223364.
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7986 $as_echo_n "checking size of long... " >&6; }
7987 if test "${ac_cv_sizeof_long+set}" = set; then :
7988 $as_echo_n "(cached) " >&6
7990 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7993 if test "$ac_cv_type_long" = yes; then
7994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7996 { as_fn_set_status
77
7997 as_fn_error
"cannot compute sizeof (long)
7998 See \`config.log' for more details." "$LINENO" 5; }; }
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8006 $as_echo "$ac_cv_sizeof_long" >&6; }
8010 cat >>confdefs.h
<<_ACEOF
8011 #define SIZEOF_LONG $ac_cv_sizeof_long
8015 if test "x${ac_cv_sizeof_long}" = "x8"; then
8019 if test x
${want64} = xtrue
; then
8020 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8022 TARGET_OBS
='$(ALL_TARGET_OBS)'
8028 # For other settings, only the main target counts.
8032 targ
=$target; .
${srcdir}/configure.tgt
8034 # Fetch the default architecture and default target vector from BFD.
8035 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
8037 # We only want the first architecture, so strip off the others if
8038 # there is more than one.
8039 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
8041 if test "x$targ_archs" != x
; then
8043 cat >>confdefs.h
<<_ACEOF
8044 #define DEFAULT_BFD_ARCH $targ_archs
8048 if test "x$targ_defvec" != x
; then
8050 cat >>confdefs.h
<<_ACEOF
8051 #define DEFAULT_BFD_VEC $targ_defvec
8056 # The CLI cannot be disabled yet, but may be in the future.
8059 # Check whether --enable-gdbcli was given.
8060 if test "${enable_gdbcli+set}" = set; then :
8061 enableval
=$enable_gdbcli; case $enableval in
8065 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8067 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8073 if test x
"$enable_gdbcli" = xyes
; then
8074 if test -d $srcdir/cli
; then
8075 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8076 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8077 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8078 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8083 # Check whether --enable-gdbmi was given.
8084 if test "${enable_gdbmi+set}" = set; then :
8085 enableval
=$enable_gdbmi; case $enableval in
8089 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8095 if test x
"$enable_gdbmi" = xyes
; then
8096 if test -d $srcdir/mi
; then
8097 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8098 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8099 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8100 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8105 # Check whether --enable-tui was given.
8106 if test "${enable_tui+set}" = set; then :
8107 enableval
=$enable_tui; case $enableval in
8111 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8119 # Check whether --enable-gdbtk was given.
8120 if test "${enable_gdbtk+set}" = set; then :
8121 enableval
=$enable_gdbtk; case $enableval in
8125 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8128 if test -d $srcdir/gdbtk
; then
8135 # We unconditionally disable gdbtk tests on selected platforms.
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8139 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8143 # Libunwind support.
8145 # Check whether --with-libunwind was given.
8146 if test "${with_libunwind+set}" = set; then :
8147 withval
=$with_libunwind; case "${withval}" in
8148 yes) enable_libunwind
=yes ;;
8149 no
) enable_libunwind
=no
;;
8150 *) as_fn_error
"bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8154 for ac_header
in libunwind.h libunwind-ia64.h
8156 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8157 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8158 eval as_val
=\$
$as_ac_Header
8159 if test "x$as_val" = x
""yes; then :
8160 cat >>confdefs.h
<<_ACEOF
8161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8168 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
8169 enable_libunwind
=yes;
8175 if test x
"$enable_libunwind" = xyes
; then
8176 for ac_header
in libunwind.h libunwind-ia64.h
8178 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8179 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8180 eval as_val
=\$
$as_ac_Header
8181 if test "x$as_val" = x
""yes; then :
8182 cat >>confdefs.h
<<_ACEOF
8183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8191 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8193 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
8194 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
8195 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
8200 # Check whether --with-curses was given.
8201 if test "${with_curses+set}" = set; then :
8202 withval
=$with_curses; opt_curses
=$withval
8207 if test "$opt_curses" = "yes"; then
8211 # Profiling support.
8212 # Check whether --enable-profiling was given.
8213 if test "${enable_profiling+set}" = set; then :
8214 enableval
=$enable_profiling; case $enableval in
8218 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8225 for ac_func
in monstartup _mcleanup
8227 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8228 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8229 eval as_val
=\$
$as_ac_var
8230 if test "x$as_val" = x
""yes; then :
8231 cat >>confdefs.h
<<_ACEOF
8232 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8239 $as_echo_n "checking for _etext... " >&6; }
8240 if test "${ac_cv_var__etext+set}" = set; then :
8241 $as_echo_n "(cached) " >&6
8243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8256 if ac_fn_c_try_link
"$LINENO"; then :
8257 ac_cv_var__etext
=yes
8261 rm -f core conftest.err conftest.
$ac_objext \
8262 conftest
$ac_exeext conftest.
$ac_ext
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8265 $as_echo "$ac_cv_var__etext" >&6; }
8266 if test $ac_cv_var__etext = yes; then
8268 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8272 $as_echo_n "checking for etext... " >&6; }
8273 if test "${ac_cv_var_etext+set}" = set; then :
8274 $as_echo_n "(cached) " >&6
8276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8289 if ac_fn_c_try_link
"$LINENO"; then :
8294 rm -f core conftest.err conftest.
$ac_objext \
8295 conftest
$ac_exeext conftest.
$ac_ext
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8298 $as_echo "$ac_cv_var_etext" >&6; }
8299 if test $ac_cv_var_etext = yes; then
8301 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8304 if test "$enable_profiling" = yes ; then
8305 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
8306 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8309 OLD_CFLAGS
="$CFLAGS"
8310 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8313 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8314 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8328 if ac_fn_c_try_compile
"$LINENO"; then :
8329 ac_cv_cc_supports_pg
=yes
8331 ac_cv_cc_supports_pg
=no
8333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8336 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8338 if test $ac_cv_cc_supports_pg = no
; then
8339 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8342 CFLAGS
="$OLD_CFLAGS"
8347 # Check whether --with-pkgversion was given.
8348 if test "${with_pkgversion+set}" = set; then :
8349 withval
=$with_pkgversion; case "$withval" in
8350 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
8352 *) PKGVERSION
="($withval) " ;;
8363 # Check whether --with-bugurl was given.
8364 if test "${with_bugurl+set}" = set; then :
8365 withval
=$with_bugurl; case "$withval" in
8366 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
8369 *) BUGURL
="$withval"
8373 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
8383 REPORT_BUGS_TO
="<$BUGURL>"
8384 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8391 cat >>confdefs.h
<<_ACEOF
8392 #define PKGVERSION "$PKGVERSION"
8396 cat >>confdefs.h
<<_ACEOF
8397 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8401 # --------------------- #
8402 # Checks for programs. #
8403 # --------------------- #
8405 for ac_prog
in gawk mawk nawk
awk
8407 # Extract the first word of "$ac_prog", so it can be a program name with args.
8408 set dummy
$ac_prog; ac_word
=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if test "${ac_cv_prog_AWK+set}" = set; then :
8412 $as_echo_n "(cached) " >&6
8414 if test -n "$AWK"; then
8415 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8421 test -z "$as_dir" && as_dir
=.
8422 for ac_exec_ext
in '' $ac_executable_extensions; do
8423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424 ac_cv_prog_AWK
="$ac_prog"
8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435 if test -n "$AWK"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8437 $as_echo "$AWK" >&6; }
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8444 test -n "$AWK" && break
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8449 $as_echo_n "checking whether ln -s works... " >&6; }
8451 if test "$LN_S" = "ln -s"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8453 $as_echo "yes" >&6; }
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8456 $as_echo "no, using $LN_S" >&6; }
8459 if test -n "$ac_tool_prefix"; then
8460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8461 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 $as_echo_n "checking for $ac_word... " >&6; }
8464 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
8467 if test -n "$RANLIB"; then
8468 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8474 test -z "$as_dir" && as_dir
=.
8475 for ac_exec_ext
in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8477 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 RANLIB
=$ac_cv_prog_RANLIB
8488 if test -n "$RANLIB"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8490 $as_echo "$RANLIB" >&6; }
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8498 if test -z "$ac_cv_prog_RANLIB"; then
8499 ac_ct_RANLIB
=$RANLIB
8500 # Extract the first word of "ranlib", so it can be a program name with args.
8501 set dummy ranlib
; ac_word
=$2
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503 $as_echo_n "checking for $ac_word... " >&6; }
8504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8507 if test -n "$ac_ct_RANLIB"; then
8508 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8514 test -z "$as_dir" && as_dir
=.
8515 for ac_exec_ext
in '' $ac_executable_extensions; do
8516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8517 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8528 if test -n "$ac_ct_RANLIB"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8530 $as_echo "$ac_ct_RANLIB" >&6; }
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8536 if test "x$ac_ct_RANLIB" = x
; then
8539 case $cross_compiling:$ac_tool_warned in
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8543 ac_tool_warned
=yes ;;
8545 RANLIB
=$ac_ct_RANLIB
8548 RANLIB
="$ac_cv_prog_RANLIB"
8551 for ac_prog
in 'bison -y' byacc
8553 # Extract the first word of "$ac_prog", so it can be a program name with args.
8554 set dummy
$ac_prog; ac_word
=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if test "${ac_cv_prog_YACC+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8560 if test -n "$YACC"; then
8561 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
8563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8567 test -z "$as_dir" && as_dir
=.
8568 for ac_exec_ext
in '' $ac_executable_extensions; do
8569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8570 ac_cv_prog_YACC
="$ac_prog"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580 YACC
=$ac_cv_prog_YACC
8581 if test -n "$YACC"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8583 $as_echo "$YACC" >&6; }
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8590 test -n "$YACC" && break
8592 test -n "$YACC" || YACC
="yacc"
8595 if test -n "$ac_tool_prefix"; then
8596 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8597 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if test "${ac_cv_prog_AR+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
8603 if test -n "$AR"; then
8604 ac_cv_prog_AR
="$AR" # Let the user override the test.
8606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8610 test -z "$as_dir" && as_dir
=.
8611 for ac_exec_ext
in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8613 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 if test -n "$AR"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8626 $as_echo "$AR" >&6; }
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8634 if test -z "$ac_cv_prog_AR"; then
8636 # Extract the first word of "ar", so it can be a program name with args.
8637 set dummy
ar; ac_word
=$2
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639 $as_echo_n "checking for $ac_word... " >&6; }
8640 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8643 if test -n "$ac_ct_AR"; then
8644 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8650 test -z "$as_dir" && as_dir
=.
8651 for ac_exec_ext
in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8653 ac_cv_prog_ac_ct_AR
="ar"
8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8664 if test -n "$ac_ct_AR"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8666 $as_echo "$ac_ct_AR" >&6; }
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8672 if test "x$ac_ct_AR" = x
; then
8675 case $cross_compiling:$ac_tool_warned in
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8679 ac_tool_warned
=yes ;;
8687 if test -n "$ac_tool_prefix"; then
8688 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8689 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8693 $as_echo_n "(cached) " >&6
8695 if test -n "$DLLTOOL"; then
8696 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
8698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8702 test -z "$as_dir" && as_dir
=.
8703 for ac_exec_ext
in '' $ac_executable_extensions; do
8704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 DLLTOOL
=$ac_cv_prog_DLLTOOL
8716 if test -n "$DLLTOOL"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8718 $as_echo "$DLLTOOL" >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8726 if test -z "$ac_cv_prog_DLLTOOL"; then
8727 ac_ct_DLLTOOL
=$DLLTOOL
8728 # Extract the first word of "dlltool", so it can be a program name with args.
8729 set dummy dlltool
; ac_word
=$2
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731 $as_echo_n "checking for $ac_word... " >&6; }
8732 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8733 $as_echo_n "(cached) " >&6
8735 if test -n "$ac_ct_DLLTOOL"; then
8736 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
8738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8742 test -z "$as_dir" && as_dir
=.
8743 for ac_exec_ext
in '' $ac_executable_extensions; do
8744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8745 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
8746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
8756 if test -n "$ac_ct_DLLTOOL"; then
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8758 $as_echo "$ac_ct_DLLTOOL" >&6; }
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 $as_echo "no" >&6; }
8764 if test "x$ac_ct_DLLTOOL" = x
; then
8767 case $cross_compiling:$ac_tool_warned in
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8771 ac_tool_warned
=yes ;;
8773 DLLTOOL
=$ac_ct_DLLTOOL
8776 DLLTOOL
="$ac_cv_prog_DLLTOOL"
8779 if test -n "$ac_tool_prefix"; then
8780 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8781 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8787 if test -n "$WINDRES"; then
8788 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
8790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8794 test -z "$as_dir" && as_dir
=.
8795 for ac_exec_ext
in '' $ac_executable_extensions; do
8796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8797 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807 WINDRES
=$ac_cv_prog_WINDRES
8808 if test -n "$WINDRES"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8810 $as_echo "$WINDRES" >&6; }
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8818 if test -z "$ac_cv_prog_WINDRES"; then
8819 ac_ct_WINDRES
=$WINDRES
8820 # Extract the first word of "windres", so it can be a program name with args.
8821 set dummy windres
; ac_word
=$2
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823 $as_echo_n "checking for $ac_word... " >&6; }
8824 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8827 if test -n "$ac_ct_WINDRES"; then
8828 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
8830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8834 test -z "$as_dir" && as_dir
=.
8835 for ac_exec_ext
in '' $ac_executable_extensions; do
8836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8837 ac_cv_prog_ac_ct_WINDRES
="windres"
8838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
8848 if test -n "$ac_ct_WINDRES"; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8850 $as_echo "$ac_ct_WINDRES" >&6; }
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8856 if test "x$ac_ct_WINDRES" = x
; then
8859 case $cross_compiling:$ac_tool_warned in
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8863 ac_tool_warned
=yes ;;
8865 WINDRES
=$ac_ct_WINDRES
8868 WINDRES
="$ac_cv_prog_WINDRES"
8872 # Needed for GNU/Hurd.
8873 if test -n "$ac_tool_prefix"; then
8874 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8875 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if test "${ac_cv_prog_MIG+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8881 if test -n "$MIG"; then
8882 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
8884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8888 test -z "$as_dir" && as_dir
=.
8889 for ac_exec_ext
in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8891 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8902 if test -n "$MIG"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8904 $as_echo "$MIG" >&6; }
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8912 if test -z "$ac_cv_prog_MIG"; then
8914 # Extract the first word of "mig", so it can be a program name with args.
8915 set dummy mig
; ac_word
=$2
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8917 $as_echo_n "checking for $ac_word... " >&6; }
8918 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8919 $as_echo_n "(cached) " >&6
8921 if test -n "$ac_ct_MIG"; then
8922 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
8924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8928 test -z "$as_dir" && as_dir
=.
8929 for ac_exec_ext
in '' $ac_executable_extensions; do
8930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8931 ac_cv_prog_ac_ct_MIG
="mig"
8932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8941 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8942 if test -n "$ac_ct_MIG"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8944 $as_echo "$ac_ct_MIG" >&6; }
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8950 if test "x$ac_ct_MIG" = x
; then
8953 case $cross_compiling:$ac_tool_warned in
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8957 ac_tool_warned
=yes ;;
8962 MIG
="$ac_cv_prog_MIG"
8966 # ---------------------- #
8967 # Checks for libraries. #
8968 # ---------------------- #
8970 # We might need to link with -lm; most simulators need it.
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8972 $as_echo_n "checking for main in -lm... " >&6; }
8973 if test "${ac_cv_lib_m_main+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
8976 ac_check_lib_save_LIBS
=$LIBS
8978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8990 if ac_fn_c_try_link
"$LINENO"; then :
8991 ac_cv_lib_m_main
=yes
8995 rm -f core conftest.err conftest.
$ac_objext \
8996 conftest
$ac_exeext conftest.
$ac_ext
8997 LIBS
=$ac_check_lib_save_LIBS
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
9000 $as_echo "$ac_cv_lib_m_main" >&6; }
9001 if test "x$ac_cv_lib_m_main" = x
""yes; then :
9002 cat >>confdefs.h
<<_ACEOF
9011 # We need to link with -lw to get `wctype' on Solaris before Solaris
9012 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9013 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9014 # is known to have this problem). Therefore we avoid libw if we can.
9015 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
9016 if test "x$ac_cv_func_wctype" = x
""yes; then :
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9020 $as_echo_n "checking for wctype in -lw... " >&6; }
9021 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9022 $as_echo_n "(cached) " >&6
9024 ac_check_lib_save_LIBS
=$LIBS
9026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9029 /* Override any GCC internal prototype to avoid an error.
9030 Use char because int might match the return type of a GCC
9031 builtin and then its argument prototype would still apply. */
9044 if ac_fn_c_try_link
"$LINENO"; then :
9045 ac_cv_lib_w_wctype
=yes
9047 ac_cv_lib_w_wctype
=no
9049 rm -f core conftest.err conftest.
$ac_objext \
9050 conftest
$ac_exeext conftest.
$ac_ext
9051 LIBS
=$ac_check_lib_save_LIBS
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9054 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9055 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
9056 cat >>confdefs.h
<<_ACEOF
9067 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9069 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9070 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9071 $as_echo_n "(cached) " >&6
9073 ac_func_search_save_LIBS
=$LIBS
9074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9077 /* Override any GCC internal prototype to avoid an error.
9078 Use char because int might match the return type of a GCC
9079 builtin and then its argument prototype would still apply. */
9083 char gethostbyname ();
9087 return gethostbyname ();
9092 for ac_lib
in '' nsl
; do
9093 if test -z "$ac_lib"; then
9094 ac_res
="none required"
9097 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9099 if ac_fn_c_try_link
"$LINENO"; then :
9100 ac_cv_search_gethostbyname
=$ac_res
9102 rm -f core conftest.err conftest.
$ac_objext \
9104 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9108 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9111 ac_cv_search_gethostbyname
=no
9114 LIBS
=$ac_func_search_save_LIBS
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9117 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9118 ac_res
=$ac_cv_search_gethostbyname
9119 if test "$ac_res" != no
; then :
9120 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9125 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9127 $as_echo_n "checking for library containing socketpair... " >&6; }
9128 if test "${ac_cv_search_socketpair+set}" = set; then :
9129 $as_echo_n "(cached) " >&6
9131 ac_func_search_save_LIBS
=$LIBS
9132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9135 /* Override any GCC internal prototype to avoid an error.
9136 Use char because int might match the return type of a GCC
9137 builtin and then its argument prototype would still apply. */
9145 return socketpair ();
9150 for ac_lib
in '' socket
; do
9151 if test -z "$ac_lib"; then
9152 ac_res
="none required"
9155 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9157 if ac_fn_c_try_link
"$LINENO"; then :
9158 ac_cv_search_socketpair
=$ac_res
9160 rm -f core conftest.err conftest.
$ac_objext \
9162 if test "${ac_cv_search_socketpair+set}" = set; then :
9166 if test "${ac_cv_search_socketpair+set}" = set; then :
9169 ac_cv_search_socketpair
=no
9172 LIBS
=$ac_func_search_save_LIBS
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9175 $as_echo "$ac_cv_search_socketpair" >&6; }
9176 ac_res
=$ac_cv_search_socketpair
9177 if test "$ac_res" != no
; then :
9178 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9183 # Link in zlib if we can. This allows us to read compressed debug sections.
9185 # See if the user specified whether he wants zlib support or not.
9187 # Check whether --with-zlib was given.
9188 if test "${with_zlib+set}" = set; then :
9195 if test "$with_zlib" != "no"; then
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9197 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9198 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9199 $as_echo_n "(cached) " >&6
9201 ac_func_search_save_LIBS
=$LIBS
9202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9205 /* Override any GCC internal prototype to avoid an error.
9206 Use char because int might match the return type of a GCC
9207 builtin and then its argument prototype would still apply. */
9211 char zlibVersion ();
9215 return zlibVersion ();
9220 for ac_lib
in '' z
; do
9221 if test -z "$ac_lib"; then
9222 ac_res
="none required"
9225 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9227 if ac_fn_c_try_link
"$LINENO"; then :
9228 ac_cv_search_zlibVersion
=$ac_res
9230 rm -f core conftest.err conftest.
$ac_objext \
9232 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9236 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9239 ac_cv_search_zlibVersion
=no
9242 LIBS
=$ac_func_search_save_LIBS
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9245 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9246 ac_res
=$ac_cv_search_zlibVersion
9247 if test "$ac_res" != no
; then :
9248 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9249 for ac_header
in zlib.h
9251 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9252 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
9253 cat >>confdefs.h
<<_ACEOF
9254 #define HAVE_ZLIB_H 1
9263 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9264 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9269 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9271 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9272 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9273 $as_echo_n "(cached) " >&6
9275 ac_func_search_save_LIBS
=$LIBS
9276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9279 /* Override any GCC internal prototype to avoid an error.
9280 Use char because int might match the return type of a GCC
9281 builtin and then its argument prototype would still apply. */
9285 char dlgetmodinfo ();
9289 return dlgetmodinfo ();
9294 for ac_lib
in '' dl xpdl
; do
9295 if test -z "$ac_lib"; then
9296 ac_res
="none required"
9299 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9301 if ac_fn_c_try_link
"$LINENO"; then :
9302 ac_cv_search_dlgetmodinfo
=$ac_res
9304 rm -f core conftest.err conftest.
$ac_objext \
9306 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9310 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9313 ac_cv_search_dlgetmodinfo
=no
9316 LIBS
=$ac_func_search_save_LIBS
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9319 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9320 ac_res
=$ac_cv_search_dlgetmodinfo
9321 if test "$ac_res" != no
; then :
9322 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9330 # Check whether --with-libiconv-prefix was given.
9331 if test "${with_libiconv_prefix+set}" = set; then :
9332 withval
=$with_libiconv_prefix;
9333 for dir
in `echo "$withval" | tr : ' '`; do
9334 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
9335 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
9341 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
9342 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9345 $as_echo_n "checking for iconv... " >&6; }
9346 if test "${am_cv_func_iconv+set}" = set; then :
9347 $as_echo_n "(cached) " >&6
9350 am_cv_func_iconv
="no, consider installing GNU libiconv"
9352 am_cv_use_build_libiconv
=no
9353 am_cv_build_libiconv_path
=
9355 # If libiconv is part of the build tree, then try using it over
9357 if test -d ..
/libiconv
; then
9358 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
9359 am_save_LIBS
="$LIBS"
9360 am_save_CPPFLAGS
="$CPPFLAGS"
9361 LIBS
="$LIBS $lib_dir/libiconv.a"
9362 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9370 iconv_t cd = iconv_open("","");
9371 iconv(cd,NULL,NULL,NULL,NULL);
9377 if ac_fn_c_try_link
"$LINENO"; then :
9378 am_cv_use_build_libiconv
=yes
9379 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
9381 am_cv_func_iconv
=yes
9383 rm -f core conftest.err conftest.
$ac_objext \
9384 conftest
$ac_exeext conftest.
$ac_ext
9385 LIBS
="$am_save_LIBS"
9386 CPPFLAGS
="$am_save_CPPFLAGS"
9387 if test "$am_cv_use_build_libiconv" = "yes"; then
9393 # Next, try to find iconv in libc.
9394 if test "$am_cv_func_iconv" != yes; then
9395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9402 iconv_t cd = iconv_open("","");
9403 iconv(cd,NULL,NULL,NULL,NULL);
9409 if ac_fn_c_try_link
"$LINENO"; then :
9410 am_cv_func_iconv
=yes
9412 rm -f core conftest.err conftest.
$ac_objext \
9413 conftest
$ac_exeext conftest.
$ac_ext
9416 # If iconv was not in libc, try -liconv. In this case, arrange to
9417 # look in the libiconv prefix, if it was specified by the user.
9418 if test "$am_cv_func_iconv" != yes; then
9419 am_save_CPPFLAGS
="$CPPFLAGS"
9420 am_save_LIBS
="$LIBS"
9421 if test -n "$LIBICONV_INCLUDE"; then
9422 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9423 LIBS
="$LIBS $LIBICONV_LIBDIR"
9425 LIBS
="$LIBS -liconv"
9426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9433 iconv_t cd = iconv_open("","");
9434 iconv(cd,NULL,NULL,NULL,NULL);
9440 if ac_fn_c_try_link
"$LINENO"; then :
9442 am_cv_func_iconv
=yes
9444 rm -f core conftest.err conftest.
$ac_objext \
9445 conftest
$ac_exeext conftest.
$ac_ext
9446 LIBS
="$am_save_LIBS"
9447 CPPFLAGS
="$am_save_CPPFLAGS"
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9452 $as_echo "$am_cv_func_iconv" >&6; }
9454 # Set the various flags based on the cache variables. We can't rely
9455 # on the flags to remain set from the above code, due to caching.
9457 if test "$am_cv_lib_iconv" = yes; then
9463 if test "$am_cv_use_build_libiconv" = yes; then
9464 LIBICONV
="$am_cv_build_libiconv_path"
9466 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
9468 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9469 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9471 if test "$am_cv_func_iconv" = yes; then
9473 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9476 $as_echo_n "checking for iconv declaration... " >&6; }
9477 if test "${am_cv_proto_iconv+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9490 #if defined(__STDC__) || defined(__cplusplus)
9491 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9504 if ac_fn_c_try_compile
"$LINENO"; then :
9505 am_cv_proto_iconv_arg1
=""
9507 am_cv_proto_iconv_arg1
="const"
9509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9510 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);"
9513 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9515 }$am_cv_proto_iconv" >&5
9517 }$am_cv_proto_iconv" >&6; }
9519 cat >>confdefs.h
<<_ACEOF
9520 #define ICONV_CONST $am_cv_proto_iconv_arg1
9526 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9527 # There is a very specific comment in /usr/include/curses.h explaining that
9528 # termcap routines built into libcurses must not be used.
9530 # The symptoms we observed so far is GDB unexpectedly changing
9531 # the terminal settings when tgetent is called - this is particularly
9532 # visible as the output is missing carriage returns, and so rapidly
9533 # becomes very hard to read.
9535 # The readline configure script has already decided that libtermcap
9536 # was enough for its purposes, and so decided to build readline using
9537 # libtermcap. Since the TUI mode requires curses, building GDB with
9538 # TUI enabled results in both libraries to be used at the same time,
9539 # which is not allowed. This basically means that GDB with TUI is
9540 # broken on alpha-osf.
9544 if test x
"$enable_tui" = xyes
; then
9545 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9547 if test x
"$enable_tui" = xauto
; then
9553 # For the TUI, we need enhanced curses functionality.
9554 if test x
"$enable_tui" != xno
; then
9559 if test x
"$prefer_curses" = xyes
; then
9560 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9561 # curses library because the latter might not provide all the
9562 # functionality we need. However, this leads to problems on systems
9563 # where the linker searches /usr/local/lib, but the compiler doesn't
9564 # search /usr/local/include, if ncurses is installed in /usr/local. A
9565 # default installation of ncurses on alpha*-dec-osf* will lead to such
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9568 $as_echo_n "checking for library containing waddstr... " >&6; }
9569 if test "${ac_cv_search_waddstr+set}" = set; then :
9570 $as_echo_n "(cached) " >&6
9572 ac_func_search_save_LIBS
=$LIBS
9573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9576 /* Override any GCC internal prototype to avoid an error.
9577 Use char because int might match the return type of a GCC
9578 builtin and then its argument prototype would still apply. */
9591 for ac_lib
in '' ncurses cursesX curses
; do
9592 if test -z "$ac_lib"; then
9593 ac_res
="none required"
9596 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9598 if ac_fn_c_try_link
"$LINENO"; then :
9599 ac_cv_search_waddstr
=$ac_res
9601 rm -f core conftest.err conftest.
$ac_objext \
9603 if test "${ac_cv_search_waddstr+set}" = set; then :
9607 if test "${ac_cv_search_waddstr+set}" = set; then :
9610 ac_cv_search_waddstr
=no
9613 LIBS
=$ac_func_search_save_LIBS
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9616 $as_echo "$ac_cv_search_waddstr" >&6; }
9617 ac_res
=$ac_cv_search_waddstr
9618 if test "$ac_res" != no
; then :
9619 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9624 if test "$ac_cv_search_waddstr" != no
; then
9629 # Check whether we should enable the TUI, but only do so if we really
9631 if test x
"$enable_tui" != xno
; then
9632 if test -d $srcdir/tui
; then
9633 if test "$curses_found" != no
; then
9634 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9635 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9636 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9637 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9638 CONFIG_ALL
="${CONFIG_ALL} all-tui"
9639 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
9640 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
9641 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
9643 if test x
"$enable_tui" = xyes
; then
9644 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9647 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9653 # Since GDB uses Readline, we need termcap functionality. In many
9654 # cases this will be provided by the curses library, but some systems
9655 # have a seperate termcap library, or no curses library at all.
9659 if test -d $srcdir/libtermcap
; then
9660 LIBS
="../libtermcap/libtermcap.a $LIBS"
9661 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9664 ac_cv_search_tgetent
="none required"
9667 ac_cv_search_tgetent
="none required"
9668 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
9672 # These are the libraries checked by Readline.
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9674 $as_echo_n "checking for library containing tgetent... " >&6; }
9675 if test "${ac_cv_search_tgetent+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9678 ac_func_search_save_LIBS
=$LIBS
9679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9682 /* Override any GCC internal prototype to avoid an error.
9683 Use char because int might match the return type of a GCC
9684 builtin and then its argument prototype would still apply. */
9697 for ac_lib
in '' termcap tinfo curses ncurses
; do
9698 if test -z "$ac_lib"; then
9699 ac_res
="none required"
9702 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9704 if ac_fn_c_try_link
"$LINENO"; then :
9705 ac_cv_search_tgetent
=$ac_res
9707 rm -f core conftest.err conftest.
$ac_objext \
9709 if test "${ac_cv_search_tgetent+set}" = set; then :
9713 if test "${ac_cv_search_tgetent+set}" = set; then :
9716 ac_cv_search_tgetent
=no
9719 LIBS
=$ac_func_search_save_LIBS
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9722 $as_echo "$ac_cv_search_tgetent" >&6; }
9723 ac_res
=$ac_cv_search_tgetent
9724 if test "$ac_res" != no
; then :
9725 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9730 if test "$ac_cv_search_tgetent" = no
; then
9731 as_fn_error
"no termcap library found" "$LINENO" 5
9735 # Check whether --with-system-readline was given.
9736 if test "${with_system_readline+set}" = set; then :
9737 withval
=$with_system_readline;
9741 if test "$with_system_readline" = yes; then
9745 READLINE_TEXI_INCFLAG
=
9747 # readline-6.0 started to use the name `_rl_echoing_p'.
9748 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9751 $as_echo_n "checking for readline_echoing_p... " >&6; }
9753 LIBS
="$LIBS $READLINE"
9754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9760 extern int readline_echoing_p;
9761 return readline_echoing_p;
9766 if ac_fn_c_try_link
"$LINENO"; then :
9767 READLINE_ECHOING_P
=yes
9769 READLINE_ECHOING_P
=no
9771 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9774 rm -f core conftest.err conftest.
$ac_objext \
9775 conftest
$ac_exeext conftest.
$ac_ext
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9778 $as_echo "$READLINE_ECHOING_P" >&6; }
9780 READLINE
='$(READLINE_DIR)/libreadline.a'
9781 READLINE_DEPS
='$(READLINE)'
9782 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9783 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9791 # Check whether --with-expat was given.
9792 if test "${with_expat+set}" = set; then :
9793 withval
=$with_expat;
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9799 $as_echo_n "checking whether to use expat... " >&6; }
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9801 $as_echo "$with_expat" >&6; }
9803 if test "${with_expat}" = no
; then
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9805 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9809 if test "X$prefix" = "XNONE"; then
9810 acl_final_prefix
="$ac_default_prefix"
9812 acl_final_prefix
="$prefix"
9814 if test "X$exec_prefix" = "XNONE"; then
9815 acl_final_exec_prefix
='${prefix}'
9817 acl_final_exec_prefix
="$exec_prefix"
9819 acl_save_prefix
="$prefix"
9820 prefix
="$acl_final_prefix"
9821 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9822 prefix
="$acl_save_prefix"
9825 # Check whether --with-gnu-ld was given.
9826 if test "${with_gnu_ld+set}" = set; then :
9827 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9832 # Prepare PATH_SEPARATOR.
9833 # The user is always right.
9834 if test "${PATH_SEPARATOR+set}" != set; then
9835 echo "#! /bin/sh" >conf$$.sh
9836 echo "exit 0" >>conf$$.sh
9838 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9846 if test "$GCC" = yes; then
9847 # Check if gcc -print-prog-name=ld gives a path.
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9849 $as_echo_n "checking for ld used by GCC... " >&6; }
9852 # gcc leaves a trailing carriage return which upsets mingw
9853 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9855 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9858 # Accept absolute paths.
9859 [\\/]* |
[A-Za-z
]:[\\/]*)
9860 re_direlt
='/[^/][^/]*/\.\./'
9861 # Canonicalize the path of ld
9862 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9863 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9864 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9866 test -z "$LD" && LD
="$ac_prog"
9869 # If it fails, then pretend we aren't using GCC.
9873 # If it is relative, then search for the first ld in PATH.
9877 elif test "$with_gnu_ld" = yes; then
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9879 $as_echo_n "checking for GNU ld... " >&6; }
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9882 $as_echo_n "checking for non-GNU ld... " >&6; }
9884 if test "${acl_cv_path_LD+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9887 if test -z "$LD"; then
9888 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9889 for ac_dir
in $PATH; do
9890 test -z "$ac_dir" && ac_dir
=.
9891 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9892 acl_cv_path_LD
="$ac_dir/$ac_prog"
9893 # Check to see if the program is GNU ld. I'd rather use --version,
9894 # but apparently some GNU ld's only accept -v.
9895 # Break only if it was the GNU/non-GNU ld that we prefer.
9896 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9897 test "$with_gnu_ld" != no
&& break
9899 test "$with_gnu_ld" != yes && break
9905 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9909 LD
="$acl_cv_path_LD"
9910 if test -n "$LD"; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9912 $as_echo "$LD" >&6; }
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915 $as_echo "no" >&6; }
9917 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9919 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9920 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9921 $as_echo_n "(cached) " >&6
9923 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9924 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9925 acl_cv_prog_gnu_ld
=yes
9927 acl_cv_prog_gnu_ld
=no
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9931 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9932 with_gnu_ld
=$acl_cv_prog_gnu_ld
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9937 $as_echo_n "checking for shared library run path origin... " >&6; }
9938 if test "${acl_cv_rpath+set}" = set; then :
9939 $as_echo_n "(cached) " >&6
9942 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9943 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9950 $as_echo "$acl_cv_rpath" >&6; }
9952 libext
="$acl_cv_libext"
9953 shlibext
="$acl_cv_shlibext"
9954 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9955 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9956 hardcode_direct
="$acl_cv_hardcode_direct"
9957 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9958 # Check whether --enable-rpath was given.
9959 if test "${enable_rpath+set}" = set; then :
9960 enableval
=$enable_rpath; :
9976 acl_save_prefix
="$prefix"
9977 prefix
="$acl_final_prefix"
9978 acl_save_exec_prefix
="$exec_prefix"
9979 exec_prefix
="$acl_final_exec_prefix"
9981 eval additional_includedir
=\"$includedir\"
9982 eval additional_libdir
=\"$libdir\"
9984 exec_prefix
="$acl_save_exec_prefix"
9985 prefix
="$acl_save_prefix"
9988 # Check whether --with-libexpat-prefix was given.
9989 if test "${with_libexpat_prefix+set}" = set; then :
9990 withval
=$with_libexpat_prefix;
9991 if test "X$withval" = "Xno"; then
9994 if test "X$withval" = "X"; then
9996 acl_save_prefix
="$prefix"
9997 prefix
="$acl_final_prefix"
9998 acl_save_exec_prefix
="$exec_prefix"
9999 exec_prefix
="$acl_final_exec_prefix"
10001 eval additional_includedir
=\"$includedir\"
10002 eval additional_libdir
=\"$libdir\"
10004 exec_prefix
="$acl_save_exec_prefix"
10005 prefix
="$acl_save_prefix"
10008 additional_includedir
="$withval/include"
10009 additional_libdir
="$withval/lib"
10020 names_already_handled
=
10021 names_next_round
='expat '
10022 while test -n "$names_next_round"; do
10023 names_this_round
="$names_next_round"
10025 for name
in $names_this_round; do
10027 for n
in $names_already_handled; do
10028 if test "$n" = "$name"; then
10029 already_handled
=yes
10033 if test -z "$already_handled"; then
10034 names_already_handled
="$names_already_handled $name"
10035 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10036 eval value
=\"\
$HAVE_LIB$uppername\"
10037 if test -n "$value"; then
10038 if test "$value" = yes; then
10039 eval value
=\"\
$LIB$uppername\"
10040 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
10041 eval value
=\"\
$LTLIB$uppername\"
10042 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10051 if test $use_additional = yes; then
10052 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10053 found_dir
="$additional_libdir"
10054 found_so
="$additional_libdir/lib$name.$shlibext"
10055 if test -f "$additional_libdir/lib$name.la"; then
10056 found_la
="$additional_libdir/lib$name.la"
10059 if test -f "$additional_libdir/lib$name.$libext"; then
10060 found_dir
="$additional_libdir"
10061 found_a
="$additional_libdir/lib$name.$libext"
10062 if test -f "$additional_libdir/lib$name.la"; then
10063 found_la
="$additional_libdir/lib$name.la"
10068 if test "X$found_dir" = "X"; then
10069 for x
in $LDFLAGS $LTLIBEXPAT; do
10071 acl_save_prefix
="$prefix"
10072 prefix
="$acl_final_prefix"
10073 acl_save_exec_prefix
="$exec_prefix"
10074 exec_prefix
="$acl_final_exec_prefix"
10076 exec_prefix
="$acl_save_exec_prefix"
10077 prefix
="$acl_save_prefix"
10081 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10082 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10084 found_so
="$dir/lib$name.$shlibext"
10085 if test -f "$dir/lib$name.la"; then
10086 found_la
="$dir/lib$name.la"
10089 if test -f "$dir/lib$name.$libext"; then
10091 found_a
="$dir/lib$name.$libext"
10092 if test -f "$dir/lib$name.la"; then
10093 found_la
="$dir/lib$name.la"
10099 if test "X$found_dir" != "X"; then
10104 if test "X$found_dir" != "X"; then
10105 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10106 if test "X$found_so" != "X"; then
10107 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10108 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10111 for x
in $ltrpathdirs; do
10112 if test "X$x" = "X$found_dir"; then
10117 if test -z "$haveit"; then
10118 ltrpathdirs
="$ltrpathdirs $found_dir"
10120 if test "$hardcode_direct" = yes; then
10121 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10123 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10124 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10126 for x
in $rpathdirs; do
10127 if test "X$x" = "X$found_dir"; then
10132 if test -z "$haveit"; then
10133 rpathdirs
="$rpathdirs $found_dir"
10137 for x
in $LDFLAGS $LIBEXPAT; do
10139 acl_save_prefix
="$prefix"
10140 prefix
="$acl_final_prefix"
10141 acl_save_exec_prefix
="$exec_prefix"
10142 exec_prefix
="$acl_final_exec_prefix"
10144 exec_prefix
="$acl_save_exec_prefix"
10145 prefix
="$acl_save_prefix"
10147 if test "X$x" = "X-L$found_dir"; then
10152 if test -z "$haveit"; then
10153 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10155 if test "$hardcode_minus_L" != no
; then
10156 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10158 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10164 if test "X$found_a" != "X"; then
10165 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10167 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10170 additional_includedir
=
10171 case "$found_dir" in
10173 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10174 additional_includedir
="$basedir/include"
10177 if test "X$additional_includedir" != "X"; then
10178 if test "X$additional_includedir" != "X/usr/include"; then
10180 if test "X$additional_includedir" = "X/usr/local/include"; then
10181 if test -n "$GCC"; then
10183 linux
*) haveit
=yes;;
10187 if test -z "$haveit"; then
10188 for x
in $CPPFLAGS $INCEXPAT; do
10190 acl_save_prefix
="$prefix"
10191 prefix
="$acl_final_prefix"
10192 acl_save_exec_prefix
="$exec_prefix"
10193 exec_prefix
="$acl_final_exec_prefix"
10195 exec_prefix
="$acl_save_exec_prefix"
10196 prefix
="$acl_save_prefix"
10198 if test "X$x" = "X-I$additional_includedir"; then
10203 if test -z "$haveit"; then
10204 if test -d "$additional_includedir"; then
10205 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10211 if test -n "$found_la"; then
10212 save_libdir
="$libdir"
10213 case "$found_la" in
10214 */* |
*\\*) .
"$found_la" ;;
10215 *) .
"./$found_la" ;;
10217 libdir
="$save_libdir"
10218 for dep
in $dependency_libs; do
10221 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10222 if test "X$additional_libdir" != "X/usr/lib"; then
10224 if test "X$additional_libdir" = "X/usr/local/lib"; then
10225 if test -n "$GCC"; then
10227 linux
*) haveit
=yes;;
10231 if test -z "$haveit"; then
10233 for x
in $LDFLAGS $LIBEXPAT; do
10235 acl_save_prefix
="$prefix"
10236 prefix
="$acl_final_prefix"
10237 acl_save_exec_prefix
="$exec_prefix"
10238 exec_prefix
="$acl_final_exec_prefix"
10240 exec_prefix
="$acl_save_exec_prefix"
10241 prefix
="$acl_save_prefix"
10243 if test "X$x" = "X-L$additional_libdir"; then
10248 if test -z "$haveit"; then
10249 if test -d "$additional_libdir"; then
10250 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10254 for x
in $LDFLAGS $LTLIBEXPAT; do
10256 acl_save_prefix
="$prefix"
10257 prefix
="$acl_final_prefix"
10258 acl_save_exec_prefix
="$exec_prefix"
10259 exec_prefix
="$acl_final_exec_prefix"
10261 exec_prefix
="$acl_save_exec_prefix"
10262 prefix
="$acl_save_prefix"
10264 if test "X$x" = "X-L$additional_libdir"; then
10269 if test -z "$haveit"; then
10270 if test -d "$additional_libdir"; then
10271 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10278 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10279 if test "$enable_rpath" != no
; then
10281 for x
in $rpathdirs; do
10282 if test "X$x" = "X$dir"; then
10287 if test -z "$haveit"; then
10288 rpathdirs
="$rpathdirs $dir"
10291 for x
in $ltrpathdirs; do
10292 if test "X$x" = "X$dir"; then
10297 if test -z "$haveit"; then
10298 ltrpathdirs
="$ltrpathdirs $dir"
10303 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10306 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10309 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10310 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10316 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10317 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10323 if test "X$rpathdirs" != "X"; then
10324 if test -n "$hardcode_libdir_separator"; then
10326 for found_dir
in $rpathdirs; do
10327 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10329 acl_save_libdir
="$libdir"
10331 eval flag
=\"$hardcode_libdir_flag_spec\"
10332 libdir
="$acl_save_libdir"
10333 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10335 for found_dir
in $rpathdirs; do
10336 acl_save_libdir
="$libdir"
10337 libdir
="$found_dir"
10338 eval flag
=\"$hardcode_libdir_flag_spec\"
10339 libdir
="$acl_save_libdir"
10340 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10344 if test "X$ltrpathdirs" != "X"; then
10345 for found_dir
in $ltrpathdirs; do
10346 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10351 ac_save_CPPFLAGS
="$CPPFLAGS"
10353 for element
in $INCEXPAT; do
10355 for x
in $CPPFLAGS; do
10357 acl_save_prefix
="$prefix"
10358 prefix
="$acl_final_prefix"
10359 acl_save_exec_prefix
="$exec_prefix"
10360 exec_prefix
="$acl_final_exec_prefix"
10362 exec_prefix
="$acl_save_exec_prefix"
10363 prefix
="$acl_save_prefix"
10365 if test "X$x" = "X$element"; then
10370 if test -z "$haveit"; then
10371 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10377 $as_echo_n "checking for libexpat... " >&6; }
10378 if test "${ac_cv_libexpat+set}" = set; then :
10379 $as_echo_n "(cached) " >&6
10382 ac_save_LIBS
="$LIBS"
10383 LIBS
="$LIBS $LIBEXPAT"
10384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10390 XML_Parser p = XML_ParserCreate (0);
10395 if ac_fn_c_try_link
"$LINENO"; then :
10400 rm -f core conftest.err conftest.
$ac_objext \
10401 conftest
$ac_exeext conftest.
$ac_ext
10402 LIBS
="$ac_save_LIBS"
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10406 $as_echo "$ac_cv_libexpat" >&6; }
10407 if test "$ac_cv_libexpat" = yes; then
10410 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10413 $as_echo_n "checking how to link with libexpat... " >&6; }
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10415 $as_echo "$LIBEXPAT" >&6; }
10418 CPPFLAGS
="$ac_save_CPPFLAGS"
10428 if test "$HAVE_LIBEXPAT" != yes; then
10429 if test "$with_expat" = yes; then
10430 as_fn_error
"expat is missing or unusable" "$LINENO" 5
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10433 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10437 LIBS
="$LIBS $LIBEXPAT"
10438 for ac_func
in XML_StopParser
10440 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10441 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
10442 cat >>confdefs.h
<<_ACEOF
10443 #define HAVE_XML_STOPPARSER 1
10458 # Check whether --with-python was given.
10459 if test "${with_python+set}" = set; then :
10460 withval
=$with_python;
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10466 $as_echo_n "checking whether to use python... " >&6; }
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10468 $as_echo "$with_python" >&6; }
10470 if test "${with_python}" = no
; then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10472 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10475 case "${with_python}" in
10477 if test -d ${with_python}; then
10478 # Assume the python binary is ${with_python}/bin/python.
10479 python_prog
="${with_python}/bin/python"
10481 # If python does not exit ${with_python}/bin, then try in
10482 # ${with_python}. On Windows/MinGW, this is where the Python
10484 if test ! -x "${python_prog}"; then
10485 python_prog
="${with_python}/python"
10488 if test ! -x "${python_prog}"; then
10489 # Fall back to gdb 7.0/7.1 behaviour.
10490 python_prog
=missing
10491 python_prefix
=${with_python}
10493 elif test -x "${with_python}"; then
10494 # While we can't run python compiled for $host (unless host == build),
10495 # the user could write a script that provides the needed information,
10496 # so we support that.
10497 python_prog
=${with_python}
10500 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10504 # Disallow --with-python=foo/bar.
10505 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10508 # The user has either specified auto, yes, or the name of the python
10509 # program assumed to be in $PATH.
10511 case "${with_python}" in
10513 if test ${build} = ${host}; then
10514 # Extract the first word of "python", so it can be a program name with args.
10515 set dummy python
; ac_word
=$2
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10517 $as_echo_n "checking for $ac_word... " >&6; }
10518 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10519 $as_echo_n "(cached) " >&6
10521 case $python_prog_path in
10523 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10527 for as_dir
in $PATH
10530 test -z "$as_dir" && as_dir
=.
10531 for ac_exec_ext
in '' $ac_executable_extensions; do
10532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10533 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10545 python_prog_path
=$ac_cv_path_python_prog_path
10546 if test -n "$python_prog_path"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10548 $as_echo "$python_prog_path" >&6; }
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10555 if test "${python_prog_path}" = missing
; then
10556 python_prog
=missing
10558 python_prog
=${python_prog_path}
10561 # Not much we can do except assume the cross-compiler will find the
10563 python_prog
=missing
10567 # While we can't run python compiled for $host (unless host == build),
10568 # the user could write a script that provides the needed information,
10569 # so we support that.
10570 python_prog
="${with_python}"
10571 # Extract the first word of "${python_prog}", so it can be a program name with args.
10572 set dummy
${python_prog}; ac_word
=$2
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10574 $as_echo_n "checking for $ac_word... " >&6; }
10575 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10576 $as_echo_n "(cached) " >&6
10578 case $python_prog_path in
10580 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10584 for as_dir
in $PATH
10587 test -z "$as_dir" && as_dir
=.
10588 for ac_exec_ext
in '' $ac_executable_extensions; do
10589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10590 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10598 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10602 python_prog_path
=$ac_cv_path_python_prog_path
10603 if test -n "$python_prog_path"; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10605 $as_echo "$python_prog_path" >&6; }
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608 $as_echo "no" >&6; }
10612 if test "${python_prog_path}" = missing
; then
10613 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
10619 if test "${python_prog}" != missing
; then
10620 # We have a python program to use, but it may be too old.
10621 # Don't flag an error for --with-python=auto (the default).
10622 have_python_config
=yes
10623 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10624 if test $?
!= 0; then
10625 have_python_config
=failed
10626 if test "${with_python}" != auto
; then
10627 as_fn_error
"failure running python-config --includes" "$LINENO" 5
10630 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10631 if test $?
!= 0; then
10632 have_python_config
=failed
10633 if test "${with_python}" != auto
; then
10634 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
10637 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10638 if test $?
!= 0; then
10639 have_python_config
=failed
10640 if test "${with_python}" != auto
; then
10641 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
10645 # We do not have a python executable we can use to determine where
10646 # to find the Python headers and libs. We cannot guess the include
10647 # path from the python_prefix either, because that include path
10648 # depends on the Python version. So, there is nothing much we can
10649 # do except assume that the compiler will be able to find those files.
10652 have_python_config
=no
10655 # If we have python-config, only try the configuration it provides.
10656 # Otherwise fallback on the old way of trying different versions of
10660 if test "${have_python_config}" = yes; then
10661 python_version
=`echo " ${python_libs} " \
10662 | sed -e 's,^.* -l\(python[0-9]*[.]\?[0-9]*\).*$,\1,'`
10663 case "${python_version}" in
10666 version
=${python_version}
10668 new_CPPFLAGS
=${python_includes}
10669 new_LIBS
=${python_libs}
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10671 $as_echo_n "checking for ${version}... " >&6; }
10672 save_CPPFLAGS
=$CPPFLAGS
10674 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10675 LIBS
="$LIBS $new_LIBS"
10676 found_usable_python
=no
10677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10679 #include "Python.h"
10688 if ac_fn_c_try_link
"$LINENO"; then :
10689 have_libpython
=${version}
10690 found_usable_python
=yes
10691 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10692 PYTHON_LIBS
=$new_LIBS
10694 rm -f core conftest.err conftest.
$ac_objext \
10695 conftest
$ac_exeext conftest.
$ac_ext
10696 CPPFLAGS
=$save_CPPFLAGS
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10699 $as_echo "${found_usable_python}" >&6; }
10703 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
10706 elif test "${have_python_config}" != failed
; then
10707 if test "${have_libpython}" = no
; then
10711 new_CPPFLAGS
=${python_includes}
10712 new_LIBS
="${python_libs} -lpython2.7"
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10714 $as_echo_n "checking for ${version}... " >&6; }
10715 save_CPPFLAGS
=$CPPFLAGS
10717 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10718 LIBS
="$LIBS $new_LIBS"
10719 found_usable_python
=no
10720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722 #include "Python.h"
10731 if ac_fn_c_try_link
"$LINENO"; then :
10732 have_libpython
=${version}
10733 found_usable_python
=yes
10734 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10735 PYTHON_LIBS
=$new_LIBS
10737 rm -f core conftest.err conftest.
$ac_objext \
10738 conftest
$ac_exeext conftest.
$ac_ext
10739 CPPFLAGS
=$save_CPPFLAGS
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10742 $as_echo "${found_usable_python}" >&6; }
10745 if test "${have_libpython}" = no
; then
10749 new_CPPFLAGS
=${python_includes}
10750 new_LIBS
="${python_libs} -lpython2.6"
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10752 $as_echo_n "checking for ${version}... " >&6; }
10753 save_CPPFLAGS
=$CPPFLAGS
10755 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10756 LIBS
="$LIBS $new_LIBS"
10757 found_usable_python
=no
10758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10760 #include "Python.h"
10769 if ac_fn_c_try_link
"$LINENO"; then :
10770 have_libpython
=${version}
10771 found_usable_python
=yes
10772 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10773 PYTHON_LIBS
=$new_LIBS
10775 rm -f core conftest.err conftest.
$ac_objext \
10776 conftest
$ac_exeext conftest.
$ac_ext
10777 CPPFLAGS
=$save_CPPFLAGS
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10780 $as_echo "${found_usable_python}" >&6; }
10783 if test ${have_libpython} = no
; then
10787 new_CPPFLAGS
=${python_includes}
10788 new_LIBS
="${python_libs} -lpython2.5"
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10790 $as_echo_n "checking for ${version}... " >&6; }
10791 save_CPPFLAGS
=$CPPFLAGS
10793 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10794 LIBS
="$LIBS $new_LIBS"
10795 found_usable_python
=no
10796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10798 #include "Python.h"
10807 if ac_fn_c_try_link
"$LINENO"; then :
10808 have_libpython
=${version}
10809 found_usable_python
=yes
10810 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10811 PYTHON_LIBS
=$new_LIBS
10813 rm -f core conftest.err conftest.
$ac_objext \
10814 conftest
$ac_exeext conftest.
$ac_ext
10815 CPPFLAGS
=$save_CPPFLAGS
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10818 $as_echo "${found_usable_python}" >&6; }
10821 if test ${have_libpython} = no
; then
10825 new_CPPFLAGS
=${python_includes}
10826 new_LIBS
="${python_libs} -lpython2.4"
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10828 $as_echo_n "checking for ${version}... " >&6; }
10829 save_CPPFLAGS
=$CPPFLAGS
10831 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10832 LIBS
="$LIBS $new_LIBS"
10833 found_usable_python
=no
10834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10836 #include "Python.h"
10845 if ac_fn_c_try_link
"$LINENO"; then :
10846 have_libpython
=${version}
10847 found_usable_python
=yes
10848 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10849 PYTHON_LIBS
=$new_LIBS
10851 rm -f core conftest.err conftest.
$ac_objext \
10852 conftest
$ac_exeext conftest.
$ac_ext
10853 CPPFLAGS
=$save_CPPFLAGS
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10856 $as_echo "${found_usable_python}" >&6; }
10860 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
10862 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10864 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
10866 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10868 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
10870 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10872 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
10874 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10878 if test "${have_libpython}" = no
; then
10879 case "${with_python}" in
10881 as_fn_error
"python is missing or unusable" "$LINENO" 5
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10885 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10888 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
10892 if test -n "${python_prefix}"; then
10894 cat >>confdefs.h
<<_ACEOF
10895 #define WITH_PYTHON_PATH "${python_prefix}"
10899 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10900 if test "x$prefix" = xNONE
; then
10901 test_prefix
=/usr
/local
10903 test_prefix
=$prefix
10906 test_prefix
=$exec_prefix
10909 case ${python_prefix} in
10910 "${test_prefix}"|
"${test_prefix}/"*|\
10911 '${exec_prefix}'|
'${exec_prefix}/'*)
10916 cat >>confdefs.h
<<_ACEOF
10917 #define PYTHON_PATH_RELOCATABLE $value
10925 if test "${have_libpython}" != no
; then
10927 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10929 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10930 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10931 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10932 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10933 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10935 # Flags needed to compile Python code (taken from python-config --cflags).
10936 # We cannot call python-config directly because it will output whatever was
10937 # used when compiling the Python interpreter itself, including flags which
10938 # would make the python-related objects be compiled differently from the
10939 # rest of GDB (e.g., -O2 and -fPIC).
10940 if test "${GCC}" = yes; then
10941 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
10944 if test "x${tentative_python_cflags}" != x
; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10946 $as_echo_n "checking compiler flags for python code... " >&6; }
10947 for flag
in ${tentative_python_cflags}; do
10948 # Check that the compiler accepts it
10949 saved_CFLAGS
="$CFLAGS"
10950 CFLAGS
="$CFLAGS $flag"
10951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10962 if ac_fn_c_try_compile
"$LINENO"; then :
10963 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10966 CFLAGS
="$saved_CFLAGS"
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10969 $as_echo "${PYTHON_CFLAGS}" >&6; }
10972 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
10974 # #define siginfo __siginfo
10976 # The problem is that including Python causes some XOPEN macros to be
10977 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
10978 # to false. So, we work around this issue by defining siginfo ourself
10979 # though the command-line.
10980 case "$gdb_host" in
10981 irix
*) if test "${GCC}" = yes; then
10982 CPPFLAGS
="$CPPFLAGS -Dsiginfo=__siginfo"
10987 # Even if Python support is not compiled in, we need to have these files
10989 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10990 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
10991 python/py-prettyprint.c python/py-auto-load.c"
10997 # ------------------------- #
10998 # Checks for header files. #
10999 # ------------------------- #
11001 ac_header_dirent
=no
11002 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11003 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11005 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11006 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11007 $as_echo_n "(cached) " >&6
11009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11011 #include <sys/types.h>
11023 if ac_fn_c_try_compile
"$LINENO"; then :
11024 eval "$as_ac_Header=yes"
11026 eval "$as_ac_Header=no"
11028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11030 eval ac_res
=\$
$as_ac_Header
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11032 $as_echo "$ac_res" >&6; }
11033 eval as_val
=\$
$as_ac_Header
11034 if test "x$as_val" = x
""yes; then :
11035 cat >>confdefs.h
<<_ACEOF
11036 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11039 ac_header_dirent
=$ac_hdr; break
11043 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11044 if test $ac_header_dirent = dirent.h
; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11046 $as_echo_n "checking for library containing opendir... " >&6; }
11047 if test "${ac_cv_search_opendir+set}" = set; then :
11048 $as_echo_n "(cached) " >&6
11050 ac_func_search_save_LIBS
=$LIBS
11051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11054 /* Override any GCC internal prototype to avoid an error.
11055 Use char because int might match the return type of a GCC
11056 builtin and then its argument prototype would still apply. */
11069 for ac_lib
in '' dir
; do
11070 if test -z "$ac_lib"; then
11071 ac_res
="none required"
11074 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11076 if ac_fn_c_try_link
"$LINENO"; then :
11077 ac_cv_search_opendir
=$ac_res
11079 rm -f core conftest.err conftest.
$ac_objext \
11081 if test "${ac_cv_search_opendir+set}" = set; then :
11085 if test "${ac_cv_search_opendir+set}" = set; then :
11088 ac_cv_search_opendir
=no
11090 rm conftest.
$ac_ext
11091 LIBS
=$ac_func_search_save_LIBS
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11094 $as_echo "$ac_cv_search_opendir" >&6; }
11095 ac_res
=$ac_cv_search_opendir
11096 if test "$ac_res" != no
; then :
11097 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11103 $as_echo_n "checking for library containing opendir... " >&6; }
11104 if test "${ac_cv_search_opendir+set}" = set; then :
11105 $as_echo_n "(cached) " >&6
11107 ac_func_search_save_LIBS
=$LIBS
11108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h. */
11111 /* Override any GCC internal prototype to avoid an error.
11112 Use char because int might match the return type of a GCC
11113 builtin and then its argument prototype would still apply. */
11126 for ac_lib
in '' x
; do
11127 if test -z "$ac_lib"; then
11128 ac_res
="none required"
11131 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11133 if ac_fn_c_try_link
"$LINENO"; then :
11134 ac_cv_search_opendir
=$ac_res
11136 rm -f core conftest.err conftest.
$ac_objext \
11138 if test "${ac_cv_search_opendir+set}" = set; then :
11142 if test "${ac_cv_search_opendir+set}" = set; then :
11145 ac_cv_search_opendir
=no
11147 rm conftest.
$ac_ext
11148 LIBS
=$ac_func_search_save_LIBS
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11151 $as_echo "$ac_cv_search_opendir" >&6; }
11152 ac_res
=$ac_cv_search_opendir
11153 if test "$ac_res" != no
; then :
11154 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11161 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11162 if test "${ac_cv_header_stat_broken+set}" = set; then :
11163 $as_echo_n "(cached) " >&6
11165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h. */
11167 #include <sys/types.h>
11168 #include <sys/stat.h>
11170 #if defined S_ISBLK && defined S_IFDIR
11171 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11174 #if defined S_ISBLK && defined S_IFCHR
11175 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11178 #if defined S_ISLNK && defined S_IFREG
11179 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11182 #if defined S_ISSOCK && defined S_IFREG
11183 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11187 if ac_fn_c_try_compile
"$LINENO"; then :
11188 ac_cv_header_stat_broken
=no
11190 ac_cv_header_stat_broken
=yes
11192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11195 $as_echo "$ac_cv_header_stat_broken" >&6; }
11196 if test $ac_cv_header_stat_broken = yes; then
11198 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11203 $as_echo_n "checking for ANSI C header files... " >&6; }
11204 if test "${ac_cv_header_stdc+set}" = set; then :
11205 $as_echo_n "(cached) " >&6
11207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h. */
11209 #include <stdlib.h>
11210 #include <stdarg.h>
11211 #include <string.h>
11222 if ac_fn_c_try_compile
"$LINENO"; then :
11223 ac_cv_header_stdc
=yes
11225 ac_cv_header_stdc
=no
11227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11229 if test $ac_cv_header_stdc = yes; then
11230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11233 #include <string.h>
11236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11237 $EGREP "memchr" >/dev
/null
2>&1; then :
11240 ac_cv_header_stdc
=no
11246 if test $ac_cv_header_stdc = yes; then
11247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11250 #include <stdlib.h>
11253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11254 $EGREP "free" >/dev
/null
2>&1; then :
11257 ac_cv_header_stdc
=no
11263 if test $ac_cv_header_stdc = yes; then
11264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11265 if test "$cross_compiling" = yes; then :
11268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h. */
11271 #include <stdlib.h>
11272 #if ((' ' & 0x0FF) == 0x020)
11273 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11274 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11276 # define ISLOWER(c) \
11277 (('a' <= (c) && (c) <= 'i') \
11278 || ('j' <= (c) && (c) <= 'r') \
11279 || ('s' <= (c) && (c) <= 'z'))
11280 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11283 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11288 for (i = 0; i < 256; i++)
11289 if (XOR (islower (i), ISLOWER (i))
11290 || toupper (i) != TOUPPER (i))
11295 if ac_fn_c_try_run
"$LINENO"; then :
11298 ac_cv_header_stdc
=no
11300 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11301 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11307 $as_echo "$ac_cv_header_stdc" >&6; }
11308 if test $ac_cv_header_stdc = yes; then
11310 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11314 # elf_hp.h is for HP/UX 64-bit shared library support.
11315 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11316 # unconditionally, so what's the point in checking these?
11317 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
11318 thread_db.h gnu
/libc-version.h signal.h stddef.h \
11319 stdlib.h string.h memory.h
strings.h sys
/fault.h \
11320 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11321 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
11322 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
11323 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
11324 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
11326 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11327 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11328 eval as_val
=\$
$as_ac_Header
11329 if test "x$as_val" = x
""yes; then :
11330 cat >>confdefs.h
<<_ACEOF
11331 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11338 for ac_header
in link.h
11340 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11341 # include <sys/types.h>
11344 # include <nlist.h>
11348 if test "x$ac_cv_header_link_h" = x
""yes; then :
11349 cat >>confdefs.h
<<_ACEOF
11350 #define HAVE_LINK_H 1
11357 for ac_header
in sys
/proc.h
11359 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11360 # include <sys/param.h>
11364 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
11365 cat >>confdefs.h
<<_ACEOF
11366 #define HAVE_SYS_PROC_H 1
11373 for ac_header
in sys
/user.h
11375 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11376 # include <sys/param.h>
11380 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
11381 cat >>confdefs.h
<<_ACEOF
11382 #define HAVE_SYS_USER_H 1
11390 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11391 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11392 # think that we don't have <curses.h> if we're using GCC.
11395 if test "$GCC" = yes; then
11397 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11401 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
11403 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11404 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11405 eval as_val
=\$
$as_ac_Header
11406 if test "x$as_val" = x
""yes; then :
11407 cat >>confdefs.h
<<_ACEOF
11408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11415 for ac_header
in term.h
11417 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11418 # include <curses.h>
11422 if test "x$ac_cv_header_term_h" = x
""yes; then :
11423 cat >>confdefs.h
<<_ACEOF
11424 #define HAVE_TERM_H 1
11432 # ------------------------- #
11433 # Checks for declarations. #
11434 # ------------------------- #
11436 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11437 if test "x$ac_cv_have_decl_free" = x
""yes; then :
11443 cat >>confdefs.h
<<_ACEOF
11444 #define HAVE_DECL_FREE $ac_have_decl
11446 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11447 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
11453 cat >>confdefs.h
<<_ACEOF
11454 #define HAVE_DECL_MALLOC $ac_have_decl
11456 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11457 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
11463 cat >>confdefs.h
<<_ACEOF
11464 #define HAVE_DECL_REALLOC $ac_have_decl
11466 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11467 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
11473 cat >>confdefs.h
<<_ACEOF
11474 #define HAVE_DECL_STRERROR $ac_have_decl
11476 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11477 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
11483 cat >>confdefs.h
<<_ACEOF
11484 #define HAVE_DECL_STRSTR $ac_have_decl
11486 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11487 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
11493 cat >>confdefs.h
<<_ACEOF
11494 #define HAVE_DECL_GETOPT $ac_have_decl
11496 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11497 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
11503 cat >>confdefs.h
<<_ACEOF
11504 #define HAVE_DECL_SNPRINTF $ac_have_decl
11506 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11507 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
11513 cat >>confdefs.h
<<_ACEOF
11514 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11519 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11520 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11521 $as_echo_n "(cached) " >&6
11523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11525 #include <locale.h>
11534 if ac_fn_c_try_link
"$LINENO"; then :
11535 am_cv_val_LC_MESSAGES
=yes
11537 am_cv_val_LC_MESSAGES
=no
11539 rm -f core conftest.err conftest.
$ac_objext \
11540 conftest
$ac_exeext conftest.
$ac_ext
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11543 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11544 if test $am_cv_val_LC_MESSAGES = yes; then
11546 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11551 # ----------------------- #
11552 # Checks for structures. #
11553 # ----------------------- #
11555 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11556 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
11558 cat >>confdefs.h
<<_ACEOF
11559 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11564 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11565 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
11567 cat >>confdefs.h
<<_ACEOF
11568 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11575 # ------------------ #
11576 # Checks for types. #
11577 # ------------------ #
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11580 $as_echo_n "checking return type of signal handlers... " >&6; }
11581 if test "${ac_cv_type_signal+set}" = set; then :
11582 $as_echo_n "(cached) " >&6
11584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11586 #include <sys/types.h>
11587 #include <signal.h>
11592 return *(signal (0, 0)) (0) == 1;
11597 if ac_fn_c_try_compile
"$LINENO"; then :
11598 ac_cv_type_signal
=int
11600 ac_cv_type_signal
=void
11602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11605 $as_echo "$ac_cv_type_signal" >&6; }
11607 cat >>confdefs.h
<<_ACEOF
11608 #define RETSIGTYPE $ac_cv_type_signal
11612 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11613 #include <sys/socket.h>
11616 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
11618 cat >>confdefs.h
<<_ACEOF
11619 #define HAVE_SOCKLEN_T 1
11626 # ------------------------------------- #
11627 # Checks for compiler characteristics. #
11628 # ------------------------------------- #
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11631 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11632 if test "${ac_cv_c_const+set}" = set; then :
11633 $as_echo_n "(cached) " >&6
11635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11636 /* end confdefs.h. */
11641 /* FIXME: Include the comments suggested by Paul. */
11642 #ifndef __cplusplus
11643 /* Ultrix mips cc rejects this. */
11644 typedef int charset[2];
11646 /* SunOS 4.1.1 cc rejects this. */
11647 char const *const *pcpcc;
11649 /* NEC SVR4.0.2 mips cc rejects this. */
11650 struct point {int x, y;};
11651 static struct point const zero = {0,0};
11652 /* AIX XL C 1.02.0.0 rejects this.
11653 It does not let you subtract one const X* pointer from another in
11654 an arm of an if-expression whose if-part is not a constant
11656 const char *g = "string";
11657 pcpcc = &g + (g ? g-g : 0);
11658 /* HPUX 7.0 cc rejects these. */
11660 ppc = (char**) pcpcc;
11661 pcpcc = (char const *const *) ppc;
11662 { /* SCO 3.2v4 cc rejects this. */
11664 char const *s = 0 ? (char *) 0 : (char const *) 0;
11669 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11670 int x[] = {25, 17};
11671 const int *foo = &x[0];
11674 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11675 typedef const int *iptr;
11679 { /* AIX XL C 1.02.0.0 rejects this saying
11680 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11681 struct s { int j; const int *ap[3]; };
11682 struct s *b; b->j = 5;
11684 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11685 const int foo = 10;
11686 if (!foo) return 0;
11688 return !cs[0] && !zero.x;
11695 if ac_fn_c_try_compile
"$LINENO"; then :
11700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11703 $as_echo "$ac_cv_c_const" >&6; }
11704 if test $ac_cv_c_const = no
; then
11706 $as_echo "#define const /**/" >>confdefs.h
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11711 $as_echo_n "checking for inline... " >&6; }
11712 if test "${ac_cv_c_inline+set}" = set; then :
11713 $as_echo_n "(cached) " >&6
11716 for ac_kw
in inline __inline__ __inline
; do
11717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11718 /* end confdefs.h. */
11719 #ifndef __cplusplus
11721 static $ac_kw foo_t static_foo () {return 0; }
11722 $ac_kw foo_t foo () {return 0; }
11726 if ac_fn_c_try_compile
"$LINENO"; then :
11727 ac_cv_c_inline
=$ac_kw
11729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11730 test "$ac_cv_c_inline" != no
&& break
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11735 $as_echo "$ac_cv_c_inline" >&6; }
11737 case $ac_cv_c_inline in
11740 case $ac_cv_c_inline in
11742 *) ac_val
=$ac_cv_c_inline;;
11744 cat >>confdefs.h
<<_ACEOF
11745 #ifndef __cplusplus
11746 #define inline $ac_val
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11753 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11754 if test "${ac_cv_c_bigendian+set}" = set; then :
11755 $as_echo_n "(cached) " >&6
11757 ac_cv_c_bigendian
=unknown
11758 # See if we're dealing with a universal compiler.
11759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h. */
11761 #ifndef __APPLE_CC__
11762 not a universal capable compiler
11767 if ac_fn_c_try_compile
"$LINENO"; then :
11769 # Check for potential -arch flags. It is not universal unless
11770 # there are at least two -arch flags with different values.
11773 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11774 if test -n "$ac_prev"; then
11776 i?
86 | x86_64 | ppc | ppc64
)
11777 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11780 ac_cv_c_bigendian
=universal
11786 elif test "x$ac_word" = "x-arch"; then
11791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11792 if test $ac_cv_c_bigendian = unknown
; then
11793 # See if sys/param.h defines the BYTE_ORDER macro.
11794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11796 #include <sys/types.h>
11797 #include <sys/param.h>
11802 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11803 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11805 bogus endian macros
11812 if ac_fn_c_try_compile
"$LINENO"; then :
11813 # It does; now see whether it defined to BIG_ENDIAN or not.
11814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h. */
11816 #include <sys/types.h>
11817 #include <sys/param.h>
11822 #if BYTE_ORDER != BIG_ENDIAN
11830 if ac_fn_c_try_compile
"$LINENO"; then :
11831 ac_cv_c_bigendian
=yes
11833 ac_cv_c_bigendian
=no
11835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11839 if test $ac_cv_c_bigendian = unknown
; then
11840 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11843 #include <limits.h>
11848 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11849 bogus endian macros
11856 if ac_fn_c_try_compile
"$LINENO"; then :
11857 # It does; now see whether it defined to _BIG_ENDIAN or not.
11858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11860 #include <limits.h>
11865 #ifndef _BIG_ENDIAN
11873 if ac_fn_c_try_compile
"$LINENO"; then :
11874 ac_cv_c_bigendian
=yes
11876 ac_cv_c_bigendian
=no
11878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11882 if test $ac_cv_c_bigendian = unknown
; then
11883 # Compile a test program.
11884 if test "$cross_compiling" = yes; then :
11885 # Try to guess by grepping values from an object file.
11886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11888 short int ascii_mm[] =
11889 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11890 short int ascii_ii[] =
11891 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11892 int use_ascii (int i) {
11893 return ascii_mm[i] + ascii_ii[i];
11895 short int ebcdic_ii[] =
11896 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11897 short int ebcdic_mm[] =
11898 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11899 int use_ebcdic (int i) {
11900 return ebcdic_mm[i] + ebcdic_ii[i];
11907 return use_ascii (foo) == use_ebcdic (foo);
11912 if ac_fn_c_try_compile
"$LINENO"; then :
11913 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11914 ac_cv_c_bigendian
=yes
11916 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11917 if test "$ac_cv_c_bigendian" = unknown
; then
11918 ac_cv_c_bigendian
=no
11920 # finding both strings is unlikely to happen, but who knows?
11921 ac_cv_c_bigendian
=unknown
11925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11929 $ac_includes_default
11934 /* Are we little or big endian? From Harbison&Steele. */
11938 char c[sizeof (long int)];
11941 return u.c[sizeof (long int) - 1] == 1;
11947 if ac_fn_c_try_run
"$LINENO"; then :
11948 ac_cv_c_bigendian
=no
11950 ac_cv_c_bigendian
=yes
11952 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11953 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11959 $as_echo "$ac_cv_c_bigendian" >&6; }
11960 case $ac_cv_c_bigendian in #(
11962 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11968 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11972 as_fn_error
"unknown endianness
11973 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11977 # ------------------------------ #
11978 # Checks for library functions. #
11979 # ------------------------------ #
11981 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11982 # for constant arguments. Useless!
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11984 $as_echo_n "checking for working alloca.h... " >&6; }
11985 if test "${ac_cv_working_alloca_h+set}" = set; then :
11986 $as_echo_n "(cached) " >&6
11988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11989 /* end confdefs.h. */
11990 #include <alloca.h>
11994 char *p = (char *) alloca (2 * sizeof (int));
12000 if ac_fn_c_try_link
"$LINENO"; then :
12001 ac_cv_working_alloca_h
=yes
12003 ac_cv_working_alloca_h
=no
12005 rm -f core conftest.err conftest.
$ac_objext \
12006 conftest
$ac_exeext conftest.
$ac_ext
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12009 $as_echo "$ac_cv_working_alloca_h" >&6; }
12010 if test $ac_cv_working_alloca_h = yes; then
12012 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12017 $as_echo_n "checking for alloca... " >&6; }
12018 if test "${ac_cv_func_alloca_works+set}" = set; then :
12019 $as_echo_n "(cached) " >&6
12021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12024 # define alloca __builtin_alloca
12027 # include <malloc.h>
12028 # define alloca _alloca
12030 # ifdef HAVE_ALLOCA_H
12031 # include <alloca.h>
12036 # ifndef alloca /* predefined by HP cc +Olibcalls */
12047 char *p = (char *) alloca (1);
12053 if ac_fn_c_try_link
"$LINENO"; then :
12054 ac_cv_func_alloca_works
=yes
12056 ac_cv_func_alloca_works
=no
12058 rm -f core conftest.err conftest.
$ac_objext \
12059 conftest
$ac_exeext conftest.
$ac_ext
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12062 $as_echo "$ac_cv_func_alloca_works" >&6; }
12064 if test $ac_cv_func_alloca_works = yes; then
12066 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12069 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12070 # that cause trouble. Some versions do not even contain alloca or
12071 # contain a buggy version. If you still want to use their alloca,
12072 # use ar to extract alloca.o from them instead of compiling alloca.c.
12074 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12076 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12080 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12081 if test "${ac_cv_os_cray+set}" = set; then :
12082 $as_echo_n "(cached) " >&6
12084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12086 #if defined CRAY && ! defined CRAY2
12093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12094 $EGREP "webecray" >/dev
/null
2>&1; then :
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12103 $as_echo "$ac_cv_os_cray" >&6; }
12104 if test $ac_cv_os_cray = yes; then
12105 for ac_func
in _getb67 GETB67 getb67
; do
12106 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12107 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12108 eval as_val
=\$
$as_ac_var
12109 if test "x$as_val" = x
""yes; then :
12111 cat >>confdefs.h
<<_ACEOF
12112 #define CRAY_STACKSEG_END $ac_func
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12122 $as_echo_n "checking stack direction for C alloca... " >&6; }
12123 if test "${ac_cv_c_stack_direction+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
12126 if test "$cross_compiling" = yes; then :
12127 ac_cv_c_stack_direction
=0
12129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12131 $ac_includes_default
12133 find_stack_direction ()
12135 static char *addr = 0;
12140 return find_stack_direction ();
12143 return (&dummy > addr) ? 1 : -1;
12149 return find_stack_direction () < 0;
12152 if ac_fn_c_try_run
"$LINENO"; then :
12153 ac_cv_c_stack_direction
=1
12155 ac_cv_c_stack_direction
=-1
12157 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12158 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12163 $as_echo "$ac_cv_c_stack_direction" >&6; }
12164 cat >>confdefs.h
<<_ACEOF
12165 #define STACK_DIRECTION $ac_cv_c_stack_direction
12171 for ac_header
in stdlib.h unistd.h
12173 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12174 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12175 eval as_val
=\$
$as_ac_Header
12176 if test "x$as_val" = x
""yes; then :
12177 cat >>confdefs.h
<<_ACEOF
12178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12185 for ac_func
in getpagesize
12187 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12188 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12189 cat >>confdefs.h
<<_ACEOF
12190 #define HAVE_GETPAGESIZE 1
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12197 $as_echo_n "checking for working mmap... " >&6; }
12198 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12199 $as_echo_n "(cached) " >&6
12201 if test "$cross_compiling" = yes; then :
12202 ac_cv_func_mmap_fixed_mapped
=no
12204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12206 $ac_includes_default
12207 /* malloc might have been renamed as rpl_malloc. */
12210 /* Thanks to Mike Haertel and Jim Avera for this test.
12211 Here is a matrix of mmap possibilities:
12212 mmap private not fixed
12213 mmap private fixed at somewhere currently unmapped
12214 mmap private fixed at somewhere already mapped
12215 mmap shared not fixed
12216 mmap shared fixed at somewhere currently unmapped
12217 mmap shared fixed at somewhere already mapped
12218 For private mappings, we should verify that changes cannot be read()
12219 back from the file, nor mmap's back from the file at a different
12220 address. (There have been systems where private was not correctly
12221 implemented like the infamous i386 svr4.0, and systems where the
12222 VM page cache was not coherent with the file system buffer cache
12223 like early versions of FreeBSD and possibly contemporary NetBSD.)
12224 For shared mappings, we should conversely verify that changes get
12225 propagated back to all the places they're supposed to be.
12227 Grep wants private fixed already mapped.
12228 The main things grep needs to know about mmap are:
12229 * does it exist and is it safe to write into the mmap'd area
12230 * how to use it (BSD variants) */
12233 #include <sys/mman.h>
12235 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12239 /* This mess was copied from the GNU getpagesize.h. */
12240 #ifndef HAVE_GETPAGESIZE
12241 /* Assume that all systems that can run configure have sys/param.h. */
12242 # ifndef HAVE_SYS_PARAM_H
12243 # define HAVE_SYS_PARAM_H 1
12246 # ifdef _SC_PAGESIZE
12247 # define getpagesize() sysconf(_SC_PAGESIZE)
12248 # else /* no _SC_PAGESIZE */
12249 # ifdef HAVE_SYS_PARAM_H
12250 # include <sys/param.h>
12251 # ifdef EXEC_PAGESIZE
12252 # define getpagesize() EXEC_PAGESIZE
12253 # else /* no EXEC_PAGESIZE */
12255 # define getpagesize() NBPG * CLSIZE
12258 # endif /* no CLSIZE */
12259 # else /* no NBPG */
12261 # define getpagesize() NBPC
12262 # else /* no NBPC */
12264 # define getpagesize() PAGESIZE
12265 # endif /* PAGESIZE */
12266 # endif /* no NBPC */
12267 # endif /* no NBPG */
12268 # endif /* no EXEC_PAGESIZE */
12269 # else /* no HAVE_SYS_PARAM_H */
12270 # define getpagesize() 8192 /* punt totally */
12271 # endif /* no HAVE_SYS_PARAM_H */
12272 # endif /* no _SC_PAGESIZE */
12274 #endif /* no HAVE_GETPAGESIZE */
12279 char *data, *data2, *data3;
12283 pagesize = getpagesize ();
12285 /* First, make a file with some known garbage in it. */
12286 data = (char *) malloc (pagesize);
12289 for (i = 0; i < pagesize; ++i)
12290 *(data + i) = rand ();
12292 fd = creat ("conftest.mmap", 0600);
12295 if (write (fd, data, pagesize) != pagesize)
12299 /* Next, try to mmap the file at a fixed address which already has
12300 something else allocated at it. If we can, also make sure that
12301 we see the same garbage. */
12302 fd = open ("conftest.mmap", O_RDWR);
12305 data2 = (char *) malloc (2 * pagesize);
12308 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12309 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12310 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12312 for (i = 0; i < pagesize; ++i)
12313 if (*(data + i) != *(data2 + i))
12316 /* Finally, make sure that changes to the mapped area do not
12317 percolate back to the file as seen by read(). (This is a bug on
12318 some variants of i386 svr4.0.) */
12319 for (i = 0; i < pagesize; ++i)
12320 *(data2 + i) = *(data2 + i) + 1;
12321 data3 = (char *) malloc (pagesize);
12324 if (read (fd, data3, pagesize) != pagesize)
12326 for (i = 0; i < pagesize; ++i)
12327 if (*(data + i) != *(data3 + i))
12333 if ac_fn_c_try_run
"$LINENO"; then :
12334 ac_cv_func_mmap_fixed_mapped
=yes
12336 ac_cv_func_mmap_fixed_mapped
=no
12338 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12339 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12344 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12345 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12347 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12350 rm -f conftest.mmap
12352 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12353 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12357 cat >>confdefs.h
<<_ACEOF
12363 for ac_header
in vfork.h
12365 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12366 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12367 cat >>confdefs.h
<<_ACEOF
12368 #define HAVE_VFORK_H 1
12375 for ac_func
in fork vfork
12377 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12378 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12379 eval as_val
=\$
$as_ac_var
12380 if test "x$as_val" = x
""yes; then :
12381 cat >>confdefs.h
<<_ACEOF
12382 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12388 if test "x$ac_cv_func_fork" = xyes
; then
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12390 $as_echo_n "checking for working fork... " >&6; }
12391 if test "${ac_cv_func_fork_works+set}" = set; then :
12392 $as_echo_n "(cached) " >&6
12394 if test "$cross_compiling" = yes; then :
12395 ac_cv_func_fork_works
=cross
12397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12399 $ac_includes_default
12404 /* By Ruediger Kuhlmann. */
12405 return fork () < 0;
12411 if ac_fn_c_try_run
"$LINENO"; then :
12412 ac_cv_func_fork_works
=yes
12414 ac_cv_func_fork_works
=no
12416 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12417 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12422 $as_echo "$ac_cv_func_fork_works" >&6; }
12425 ac_cv_func_fork_works
=$ac_cv_func_fork
12427 if test "x$ac_cv_func_fork_works" = xcross
; then
12429 *-*-amigaos* |
*-*-msdosdjgpp*)
12430 # Override, as these systems have only a dummy fork() stub
12431 ac_cv_func_fork_works
=no
12434 ac_cv_func_fork_works
=yes
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12438 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12440 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12441 if test "x$ac_cv_func_vfork" = xyes
; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12443 $as_echo_n "checking for working vfork... " >&6; }
12444 if test "${ac_cv_func_vfork_works+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
12447 if test "$cross_compiling" = yes; then :
12448 ac_cv_func_vfork_works
=cross
12450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12452 /* Thanks to Paul Eggert for this test. */
12453 $ac_includes_default
12454 #include <sys/wait.h>
12455 #ifdef HAVE_VFORK_H
12456 # include <vfork.h>
12458 /* On some sparc systems, changes by the child to local and incoming
12459 argument registers are propagated back to the parent. The compiler
12460 is told about this with #include <vfork.h>, but some compilers
12461 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12462 static variable whose address is put into a register that is
12463 clobbered by the vfork. */
12466 sparc_address_test (int arg)
12468 sparc_address_test (arg) int arg;
12471 static pid_t child;
12489 pid_t parent = getpid ();
12492 sparc_address_test (0);
12497 /* Here is another test for sparc vfork register problems. This
12498 test uses lots of local variables, at least as many local
12499 variables as main has allocated so far including compiler
12500 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12501 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12502 reuse the register of parent for one of the local variables,
12503 since it will think that parent can't possibly be used any more
12504 in this routine. Assigning to the local variable will thus
12505 munge parent in the parent process. */
12507 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12508 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12509 /* Convince the compiler that p..p7 are live; otherwise, it might
12510 use the same hardware register for all 8 local variables. */
12511 if (p != p1 || p != p2 || p != p3 || p != p4
12512 || p != p5 || p != p6 || p != p7)
12515 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12516 from child file descriptors. If the child closes a descriptor
12517 before it execs or exits, this munges the parent's descriptor
12518 as well. Test for this by closing stdout in the child. */
12519 _exit(close(fileno(stdout)) != 0);
12524 while (wait(&status) != child)
12527 /* Was there some problem with vforking? */
12530 /* Did the child fail? (This shouldn't happen.) */
12533 /* Did the vfork/compiler bug occur? */
12534 || parent != getpid()
12536 /* Did the file descriptor bug occur? */
12537 || fstat(fileno(stdout), &st) != 0
12542 if ac_fn_c_try_run
"$LINENO"; then :
12543 ac_cv_func_vfork_works
=yes
12545 ac_cv_func_vfork_works
=no
12547 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12548 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12553 $as_echo "$ac_cv_func_vfork_works" >&6; }
12556 if test "x$ac_cv_func_fork_works" = xcross
; then
12557 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12559 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12562 if test "x$ac_cv_func_vfork_works" = xyes
; then
12564 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12568 $as_echo "#define vfork fork" >>confdefs.h
12571 if test "x$ac_cv_func_fork_works" = xyes
; then
12573 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12577 for ac_func
in canonicalize_file_name realpath getrusage getuid \
12578 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
12579 sigaction sigprocmask sigsetmask socketpair syscall \
12580 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12581 setrlimit getrlimit posix_madvise waitpid
12583 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12584 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12585 eval as_val
=\$
$as_ac_var
12586 if test "x$as_val" = x
""yes; then :
12587 cat >>confdefs.h
<<_ACEOF
12588 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12596 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12597 if test "${am_cv_langinfo_codeset+set}" = set; then :
12598 $as_echo_n "(cached) " >&6
12600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h. */
12602 #include <langinfo.h>
12606 char* cs = nl_langinfo(CODESET);
12611 if ac_fn_c_try_link
"$LINENO"; then :
12612 am_cv_langinfo_codeset
=yes
12614 am_cv_langinfo_codeset
=no
12616 rm -f core conftest.err conftest.
$ac_objext \
12617 conftest
$ac_exeext conftest.
$ac_ext
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12621 $as_echo "$am_cv_langinfo_codeset" >&6; }
12622 if test $am_cv_langinfo_codeset = yes; then
12624 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12629 # Check the return and argument types of ptrace. No canned test for
12630 # this, so roll our own.
12631 gdb_ptrace_headers
='
12632 #if HAVE_SYS_TYPES_H
12633 # include <sys/types.h>
12635 #if HAVE_SYS_PTRACE_H
12636 # include <sys/ptrace.h>
12639 # include <unistd.h>
12642 # There is no point in checking if we don't have a prototype.
12643 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12645 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
12651 cat >>confdefs.h
<<_ACEOF
12652 #define HAVE_DECL_PTRACE $ac_have_decl
12654 if test $ac_have_decl = 1; then :
12658 : ${gdb_cv_func_ptrace_ret='int'}
12659 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12663 # Check return type. Varargs (used on GNU/Linux) conflict with the
12664 # empty argument list, so check for that explicitly.
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12666 $as_echo_n "checking return type of ptrace... " >&6; }
12667 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12668 $as_echo_n "(cached) " >&6
12670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12672 $gdb_ptrace_headers
12676 extern long ptrace (enum __ptrace_request, ...);
12681 if ac_fn_c_try_compile
"$LINENO"; then :
12682 gdb_cv_func_ptrace_ret
='long'
12684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686 $gdb_ptrace_headers
12690 extern int ptrace ();
12695 if ac_fn_c_try_compile
"$LINENO"; then :
12696 gdb_cv_func_ptrace_ret
='int'
12698 gdb_cv_func_ptrace_ret
='long'
12700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12705 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12707 cat >>confdefs.h
<<_ACEOF
12708 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12711 # Check argument types.
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12713 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12714 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12715 $as_echo_n "(cached) " >&6
12718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12720 $gdb_ptrace_headers
12724 extern long ptrace (enum __ptrace_request, ...);
12729 if ac_fn_c_try_compile
"$LINENO"; then :
12730 gdb_cv_func_ptrace_args
='int,int,long,long'
12733 for gdb_arg1
in 'int' 'long'; do
12734 for gdb_arg2
in 'pid_t' 'int' 'long'; do
12735 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12736 for gdb_arg4
in 'int' 'long'; do
12737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12739 $gdb_ptrace_headers
12744 extern $gdb_cv_func_ptrace_ret
12745 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12751 if ac_fn_c_try_compile
"$LINENO"; then :
12752 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12756 for gdb_arg5
in 'int *' 'int' 'long'; do
12757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12759 $gdb_ptrace_headers
12764 extern $gdb_cv_func_ptrace_ret
12765 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12771 if ac_fn_c_try_compile
"$LINENO"; then :
12773 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12782 # Provide a safe default value.
12783 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12789 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12790 ac_save_IFS
=$IFS; IFS
=','
12791 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12795 cat >>confdefs.h
<<_ACEOF
12796 #define PTRACE_TYPE_ARG3 $3
12799 if test -n "$5"; then
12801 cat >>confdefs.h
<<_ACEOF
12802 #define PTRACE_TYPE_ARG5 $5
12807 if test "$cross_compiling" = no
; then
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12809 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12810 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12811 $as_echo_n "(cached) " >&6
12813 if test "$cross_compiling" = yes; then :
12814 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
12816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818 $ac_includes_default
12822 /* If this system has a BSD-style setpgrp which takes arguments,
12823 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12824 exit successfully. */
12825 return setpgrp (1,1) != -1;
12830 if ac_fn_c_try_run
"$LINENO"; then :
12831 ac_cv_func_setpgrp_void
=no
12833 ac_cv_func_setpgrp_void
=yes
12835 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12836 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12841 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12842 if test $ac_cv_func_setpgrp_void = yes; then
12844 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12850 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12851 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12852 $as_echo_n "(cached) " >&6
12854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12857 #include <unistd.h>
12863 if (setpgrp(1,1) == -1)
12872 if ac_fn_c_try_compile
"$LINENO"; then :
12873 ac_cv_func_setpgrp_void
=no
12875 ac_cv_func_setpgrp_void
=yes
12877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12880 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12881 if test $ac_cv_func_setpgrp_void = yes; then
12882 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12887 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12888 # since sigsetjmp might only be defined as a macro.
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12890 $as_echo_n "checking for sigsetjmp... " >&6; }
12891 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12892 $as_echo_n "(cached) " >&6
12894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h. */
12897 #include <setjmp.h>
12902 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12907 if ac_fn_c_try_compile
"$LINENO"; then :
12908 gdb_cv_func_sigsetjmp
=yes
12910 gdb_cv_func_sigsetjmp
=no
12912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12915 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12916 if test $gdb_cv_func_sigsetjmp = yes; then
12918 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12922 # Assume we'll default to using the included libiberty regex.
12923 gdb_use_included_regex
=yes
12925 # However, if the system regex is GNU regex, then default to *not*
12926 # using the included regex.
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12928 $as_echo_n "checking for GNU regex... " >&6; }
12929 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12930 $as_echo_n "(cached) " >&6
12932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12933 /* end confdefs.h. */
12934 #include <gnu-versions.h>
12938 #define REGEX_INTERFACE_VERSION 1
12939 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12940 # error "Version mismatch"
12946 if ac_fn_c_try_compile
"$LINENO"; then :
12947 gdb_cv_have_gnu_regex
=yes
12949 gdb_cv_have_gnu_regex
=no
12951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12954 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12955 if test $gdb_cv_have_gnu_regex = yes; then
12956 gdb_use_included_regex
=no
12960 # Check whether --with-included-regex was given.
12961 if test "${with_included_regex+set}" = set; then :
12962 withval
=$with_included_regex; gdb_with_regex
=$withval
12964 gdb_with_regex
=$gdb_use_included_regex
12967 if test "$gdb_with_regex" = yes; then
12969 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12973 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12974 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12975 #include <sys/proc.h>
12978 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
12980 cat >>confdefs.h
<<_ACEOF
12981 #define HAVE_STRUCT_THREAD_TD_PCB 1
12988 # See if <sys/lwp.h> defines `struct lwp`.
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12990 $as_echo_n "checking for struct lwp... " >&6; }
12991 if test "${gdb_cv_struct_lwp+set}" = set; then :
12992 $as_echo_n "(cached) " >&6
12994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12996 #include <sys/param.h>
12997 #include <sys/lwp.h>
13006 if ac_fn_c_try_compile
"$LINENO"; then :
13007 gdb_cv_struct_lwp
=yes
13009 gdb_cv_struct_lwp
=no
13011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13014 $as_echo "$gdb_cv_struct_lwp" >&6; }
13015 if test $gdb_cv_struct_lwp = yes; then
13017 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13021 # See if <machine/reg.h> degines `struct reg'.
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13023 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13024 if test "${gdb_cv_struct_reg+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029 #include <sys/types.h>
13030 #include <machine/reg.h>
13039 if ac_fn_c_try_compile
"$LINENO"; then :
13040 gdb_cv_struct_reg
=yes
13042 gdb_cv_struct_reg
=no
13044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13047 $as_echo "$gdb_cv_struct_reg" >&6; }
13048 if test $gdb_cv_struct_reg = yes; then
13050 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13054 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13055 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13056 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13058 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
13060 cat >>confdefs.h
<<_ACEOF
13061 #define HAVE_STRUCT_REG_R_FS 1
13066 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13068 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
13070 cat >>confdefs.h
<<_ACEOF
13071 #define HAVE_STRUCT_REG_R_GS 1
13078 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13080 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13081 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13082 $as_echo_n "(cached) " >&6
13084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13086 #include <sys/ptrace.h>
13095 if ac_fn_c_try_compile
"$LINENO"; then :
13096 gdb_cv_have_ptrace_getregs
=yes
13098 gdb_cv_have_ptrace_getregs
=no
13100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13104 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13105 if test $gdb_cv_have_ptrace_getregs = yes; then
13107 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13111 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13113 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13114 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13115 $as_echo_n "(cached) " >&6
13117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13119 #include <sys/ptrace.h>
13128 if ac_fn_c_try_compile
"$LINENO"; then :
13129 gdb_cv_have_ptrace_getfpxregs
=yes
13131 gdb_cv_have_ptrace_getfpxregs
=no
13133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13137 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13138 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13140 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13144 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13146 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13147 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13148 $as_echo_n "(cached) " >&6
13150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13152 #include <sys/types.h>
13153 #include <sys/ptrace.h>
13162 if ac_fn_c_try_compile
"$LINENO"; then :
13163 gdb_cv_have_pt_getdbregs
=yes
13165 gdb_cv_have_pt_getdbregs
=no
13167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13171 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13172 if test $gdb_cv_have_pt_getdbregs = yes; then
13174 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13178 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13180 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13181 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13182 $as_echo_n "(cached) " >&6
13184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13186 #include <sys/types.h>
13187 #include <sys/ptrace.h>
13196 if ac_fn_c_try_compile
"$LINENO"; then :
13197 gdb_cv_have_pt_getxmmregs
=yes
13199 gdb_cv_have_pt_getxmmregs
=no
13201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13205 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13206 if test $gdb_cv_have_pt_getxmmregs = yes; then
13208 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13212 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13214 if test "${target}" = "${host}"; then
13216 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
13218 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13221 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
13223 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13227 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13229 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13235 if test "$ac_cv_header_sys_procfs_h" = yes; then
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13237 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13238 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13245 /* Needed for new procfs interface on sparc-solaris. */
13246 #define _STRUCTURED_PROC 1
13247 #include <sys/procfs.h>
13256 if ac_fn_c_try_compile
"$LINENO"; then :
13257 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
13259 bfd_cv_have_sys_procfs_type_pstatus_t
=no
13262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13265 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13267 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13271 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13274 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13275 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13282 /* Needed for new procfs interface on sparc-solaris. */
13283 #define _STRUCTURED_PROC 1
13284 #include <sys/procfs.h>
13293 if ac_fn_c_try_compile
"$LINENO"; then :
13294 bfd_cv_have_sys_procfs_type_prrun_t
=yes
13296 bfd_cv_have_sys_procfs_type_prrun_t
=no
13299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13302 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13304 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13308 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13311 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13312 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13313 $as_echo_n "(cached) " >&6
13315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13319 /* Needed for new procfs interface on sparc-solaris. */
13320 #define _STRUCTURED_PROC 1
13321 #include <sys/procfs.h>
13330 if ac_fn_c_try_compile
"$LINENO"; then :
13331 bfd_cv_have_sys_procfs_type_gregset_t
=yes
13333 bfd_cv_have_sys_procfs_type_gregset_t
=no
13336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13339 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13341 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13345 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13348 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13349 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13350 $as_echo_n "(cached) " >&6
13352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13356 /* Needed for new procfs interface on sparc-solaris. */
13357 #define _STRUCTURED_PROC 1
13358 #include <sys/procfs.h>
13367 if ac_fn_c_try_compile
"$LINENO"; then :
13368 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
13370 bfd_cv_have_sys_procfs_type_fpregset_t
=no
13373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13376 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13378 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13382 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13385 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13386 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13387 $as_echo_n "(cached) " >&6
13389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13393 /* Needed for new procfs interface on sparc-solaris. */
13394 #define _STRUCTURED_PROC 1
13395 #include <sys/procfs.h>
13404 if ac_fn_c_try_compile
"$LINENO"; then :
13405 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
13407 bfd_cv_have_sys_procfs_type_prgregset_t
=no
13410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13413 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13415 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13419 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13422 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13423 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13424 $as_echo_n "(cached) " >&6
13426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h. */
13430 /* Needed for new procfs interface on sparc-solaris. */
13431 #define _STRUCTURED_PROC 1
13432 #include <sys/procfs.h>
13441 if ac_fn_c_try_compile
"$LINENO"; then :
13442 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
13444 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
13447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13450 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13452 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13456 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13459 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13460 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13461 $as_echo_n "(cached) " >&6
13463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13467 /* Needed for new procfs interface on sparc-solaris. */
13468 #define _STRUCTURED_PROC 1
13469 #include <sys/procfs.h>
13478 if ac_fn_c_try_compile
"$LINENO"; then :
13479 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
13481 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
13484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13487 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13489 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13493 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13496 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13497 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13498 $as_echo_n "(cached) " >&6
13500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13504 /* Needed for new procfs interface on sparc-solaris. */
13505 #define _STRUCTURED_PROC 1
13506 #include <sys/procfs.h>
13510 prfpregset32_t avar
13515 if ac_fn_c_try_compile
"$LINENO"; then :
13516 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
13518 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
13521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13524 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13526 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13530 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13533 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13534 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13535 $as_echo_n "(cached) " >&6
13537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13541 /* Needed for new procfs interface on sparc-solaris. */
13542 #define _STRUCTURED_PROC 1
13543 #include <sys/procfs.h>
13552 if ac_fn_c_try_compile
"$LINENO"; then :
13553 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
13555 bfd_cv_have_sys_procfs_type_lwpid_t
=no
13558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13561 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13563 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13567 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13570 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13571 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13572 $as_echo_n "(cached) " >&6
13574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13578 /* Needed for new procfs interface on sparc-solaris. */
13579 #define _STRUCTURED_PROC 1
13580 #include <sys/procfs.h>
13589 if ac_fn_c_try_compile
"$LINENO"; then :
13590 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
13592 bfd_cv_have_sys_procfs_type_psaddr_t
=no
13595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13598 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13600 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13604 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13607 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13608 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13609 $as_echo_n "(cached) " >&6
13611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13615 /* Needed for new procfs interface on sparc-solaris. */
13616 #define _STRUCTURED_PROC 1
13617 #include <sys/procfs.h>
13626 if ac_fn_c_try_compile
"$LINENO"; then :
13627 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
13629 bfd_cv_have_sys_procfs_type_prsysent_t
=no
13632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13635 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13637 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13641 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13644 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13645 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13646 $as_echo_n "(cached) " >&6
13648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13652 /* Needed for new procfs interface on sparc-solaris. */
13653 #define _STRUCTURED_PROC 1
13654 #include <sys/procfs.h>
13663 if ac_fn_c_try_compile
"$LINENO"; then :
13664 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
13666 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
13669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13672 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13674 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13678 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13681 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13682 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13683 $as_echo_n "(cached) " >&6
13685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13689 /* Needed for new procfs interface on sparc-solaris. */
13690 #define _STRUCTURED_PROC 1
13691 #include <sys/procfs.h>
13695 pr_sigaction64_t avar
13700 if ac_fn_c_try_compile
"$LINENO"; then :
13701 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
13703 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
13706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13709 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13711 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13715 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13718 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13719 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13720 $as_echo_n "(cached) " >&6
13722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h. */
13726 /* Needed for new procfs interface on sparc-solaris. */
13727 #define _STRUCTURED_PROC 1
13728 #include <sys/procfs.h>
13732 pr_siginfo64_t avar
13737 if ac_fn_c_try_compile
"$LINENO"; then :
13738 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
13740 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
13743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13746 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13748 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13752 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13758 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13760 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13761 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13762 $as_echo_n "(cached) " >&6
13764 if test "$cross_compiling" = yes; then :
13765 gdb_cv_prfpregset_t_broken
=yes
13767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13769 #include <sys/procfs.h>
13772 if (sizeof (prfpregset_t) == sizeof (void *))
13777 if ac_fn_c_try_run
"$LINENO"; then :
13778 gdb_cv_prfpregset_t_broken
=no
13780 gdb_cv_prfpregset_t_broken
=yes
13782 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13783 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13789 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13790 if test $gdb_cv_prfpregset_t_broken = yes; then
13792 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13799 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13800 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13801 $as_echo_n "(cached) " >&6
13803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13805 #include <unistd.h>
13806 #include <sys/types.h>
13807 #include <sys/procfs.h>
13814 dummy = ioctl(0, PIOCSET, &dummy);
13820 if ac_fn_c_try_compile
"$LINENO"; then :
13821 gdb_cv_have_procfs_piocset
=yes
13823 gdb_cv_have_procfs_piocset
=no
13825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13829 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13830 if test $gdb_cv_have_procfs_piocset = yes; then
13832 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13837 if test ${host} = ${target} ; then
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13840 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13841 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13842 $as_echo_n "(cached) " >&6
13844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13850 struct link_map lm; (void) lm.l_addr;
13855 if ac_fn_c_try_compile
"$LINENO"; then :
13856 gdb_cv_have_struct_link_map_with_l_members
=yes
13858 gdb_cv_have_struct_link_map_with_l_members
=no
13860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13864 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13865 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13867 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13873 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13874 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13875 $as_echo_n "(cached) " >&6
13877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13879 #include <sys/types.h>
13884 struct link_map lm; (void) lm.lm_addr;
13889 if ac_fn_c_try_compile
"$LINENO"; then :
13890 gdb_cv_have_struct_link_map_with_lm_members
=yes
13892 gdb_cv_have_struct_link_map_with_lm_members
=no
13894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13898 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13899 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13901 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13907 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13908 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13909 $as_echo_n "(cached) " >&6
13911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13912 /* end confdefs.h. */
13913 #include <sys/types.h>
13914 #ifdef HAVE_NLIST_H
13921 struct so_map lm; (void) lm.som_addr;
13926 if ac_fn_c_try_compile
"$LINENO"; then :
13927 gdb_cv_have_struct_so_map_with_som_members
=yes
13929 gdb_cv_have_struct_so_map_with_som_members
=no
13931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13935 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13936 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13938 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13944 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13945 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13946 $as_echo_n "(cached) " >&6
13948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13951 #include <sys/link.h>
13955 struct link_map32 l;
13960 if ac_fn_c_try_compile
"$LINENO"; then :
13961 gdb_cv_have_struct_link_map32
=yes
13963 gdb_cv_have_struct_link_map32
=no
13965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13969 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
13970 if test $gdb_cv_have_struct_link_map32 = yes; then
13972 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
13975 $as_echo "#define _SYSCALL32 1" >>confdefs.h
13980 # Check if the compiler supports the `long long' type.
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13983 $as_echo_n "checking for long long support in compiler... " >&6; }
13984 if test "${gdb_cv_c_long_long+set}" = set; then :
13985 $as_echo_n "(cached) " >&6
13987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989 extern long long foo;
13993 switch (foo & 2) { case 0: return 1; }
13998 if ac_fn_c_try_compile
"$LINENO"; then :
13999 gdb_cv_c_long_long
=yes
14001 gdb_cv_c_long_long
=no
14003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14006 $as_echo "$gdb_cv_c_long_long" >&6; }
14007 if test $gdb_cv_c_long_long = yes; then
14009 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
14013 # Check if the compiler and runtime support printing long longs.
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14016 $as_echo_n "checking for long long support in printf... " >&6; }
14017 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14018 $as_echo_n "(cached) " >&6
14020 if test "$cross_compiling" = yes; then :
14021 gdb_cv_printf_has_long_long
=no
14023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14025 $ac_includes_default
14031 l = (l << 16) + 0x0123;
14032 l = (l << 16) + 0x4567;
14033 l = (l << 16) + 0x89ab;
14034 l = (l << 16) + 0xcdef;
14035 sprintf (buf, "0x%016llx", l);
14036 return (strcmp ("0x0123456789abcdef", buf));
14041 if ac_fn_c_try_run
"$LINENO"; then :
14042 gdb_cv_printf_has_long_long
=yes
14044 gdb_cv_printf_has_long_long
=no
14046 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14047 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14052 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14053 if test $gdb_cv_printf_has_long_long = yes; then
14055 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14059 # Check if the compiler and runtime support printing decfloats.
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14062 $as_echo_n "checking for decfloat support in printf... " >&6; }
14063 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14064 $as_echo_n "(cached) " >&6
14066 if test "$cross_compiling" = yes; then :
14067 gdb_cv_printf_has_decfloat
=no
14069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14071 $ac_includes_default
14076 _Decimal32 d32 = 1.2345df;
14077 _Decimal64 d64 = 1.2345dd;
14078 _Decimal128 d128 = 1.2345dl;
14079 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14080 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14085 if ac_fn_c_try_run
"$LINENO"; then :
14086 gdb_cv_printf_has_decfloat
=yes
14088 gdb_cv_printf_has_decfloat
=no
14090 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14091 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14096 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14097 if test $gdb_cv_printf_has_decfloat = yes; then
14099 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14103 # Check if the compiler supports the `long double' type. We can't use
14104 # AC_C_LONG_DOUBLE because that one does additional checks on the
14105 # constants defined in <float.h> that fail on some systems,
14106 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14109 $as_echo_n "checking for long double support in compiler... " >&6; }
14110 if test "${gdb_cv_c_long_double+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
14113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14114 /* end confdefs.h. */
14117 if ac_fn_c_try_compile
"$LINENO"; then :
14118 gdb_cv_c_long_double
=yes
14120 gdb_cv_c_long_double
=no
14122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14125 $as_echo "$gdb_cv_c_long_double" >&6; }
14126 if test $gdb_cv_c_long_double = yes; then
14128 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14132 # Check if the compiler and runtime support printing long doubles.
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14135 $as_echo_n "checking for long double support in printf... " >&6; }
14136 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14137 $as_echo_n "(cached) " >&6
14139 if test "$cross_compiling" = yes; then :
14140 gdb_cv_printf_has_long_double
=no
14142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14144 $ac_includes_default
14149 long double f = 3.141592653;
14150 sprintf (buf, "%Lg", f);
14151 return (strncmp ("3.14159", buf, 7));
14156 if ac_fn_c_try_run
"$LINENO"; then :
14157 gdb_cv_printf_has_long_double
=yes
14159 gdb_cv_printf_has_long_double
=no
14161 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14162 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14167 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14168 if test $gdb_cv_printf_has_long_double = yes; then
14170 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14174 # Check if the compiler and runtime support scanning long doubles.
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14177 $as_echo_n "checking for long double support in scanf... " >&6; }
14178 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14179 $as_echo_n "(cached) " >&6
14181 if test "$cross_compiling" = yes; then :
14182 gdb_cv_scanf_has_long_double
=no
14184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14190 char *buf = "3.141592653";
14192 sscanf (buf, "%Lg", &f);
14193 return !(f > 3.14159 && f < 3.14160);
14198 if ac_fn_c_try_run
"$LINENO"; then :
14199 gdb_cv_scanf_has_long_double
=yes
14201 gdb_cv_scanf_has_long_double
=no
14203 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14204 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14209 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14210 if test $gdb_cv_scanf_has_long_double = yes; then
14212 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14219 $as_echo_n "checking for -bbigtoc option... " >&6; }
14220 if test "${gdb_cv_bigtoc+set}" = set; then :
14221 $as_echo_n "(cached) " >&6
14224 SAVE_LDFLAGS
=$LDFLAGS
14227 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14228 *) gdb_cv_bigtoc
=-bbigtoc ;;
14231 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14243 if ac_fn_c_try_link
"$LINENO"; then :
14248 rm -f core conftest.err conftest.
$ac_objext \
14249 conftest
$ac_exeext conftest.
$ac_ext
14250 LDFLAGS
="${SAVE_LDFLAGS}"
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14254 $as_echo "$gdb_cv_bigtoc" >&6; }
14255 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14260 $as_echo_n "checking for the dynamic export flag... " >&6; }
14262 if test "${gdb_native}" = yes; then
14263 # The dynamically loaded libthread_db needs access to symbols in the gdb
14264 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14265 # may not be supported there.
14266 old_LDFLAGS
="$LDFLAGS"
14267 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14268 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14269 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14270 if test "${have_libpython}" = no
; then
14271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14272 /* end confdefs.h. */
14282 if ac_fn_c_try_link
"$LINENO"; then :
14285 rm -f core conftest.err conftest.
$ac_objext \
14286 conftest
$ac_exeext conftest.
$ac_ext
14288 # Workaround http://bugs.python.org/issue4434 where static
14289 # libpythonX.Y.a would get its symbols required for
14290 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14291 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14292 old_CFLAGS
="$CFLAGS"
14293 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
14294 if test "$cross_compiling" = yes; then :
14297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14299 #include "${have_libpython}/Python.h"
14305 err = PyRun_SimpleString ("import itertools\n");
14307 return err == 0 ? 0 : 1;
14312 if ac_fn_c_try_run
"$LINENO"; then :
14315 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14316 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14319 CFLAGS
="$old_CFLAGS"
14321 LDFLAGS
="$old_LDFLAGS"
14323 if $dynamic_list; then
14324 found
="-Wl,--dynamic-list"
14325 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14328 RDYNAMIC
="-rdynamic"
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14332 $as_echo "$found" >&6; }
14335 if test ${build} = ${host} -a ${host} = ${target} ; then
14338 # See if thread_db library is around for Solaris thread debugging.
14339 # Note that we must explicitly test for version 1 of the library
14340 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14343 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14344 if test -f /usr
/lib
/libthread_db.so
.1 ; then
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14346 $as_echo "yes" >&6; }
14348 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14350 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
14351 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14353 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14354 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14355 $as_echo_n "(cached) " >&6
14357 ac_check_lib_save_LIBS
=$LIBS
14359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14362 /* Override any GCC internal prototype to avoid an error.
14363 Use char because int might match the return type of a GCC
14364 builtin and then its argument prototype would still apply. */
14377 if ac_fn_c_try_link
"$LINENO"; then :
14378 ac_cv_lib_dl_dlopen
=yes
14380 ac_cv_lib_dl_dlopen
=no
14382 rm -f core conftest.err conftest.
$ac_objext \
14383 conftest
$ac_exeext conftest.
$ac_ext
14384 LIBS
=$ac_check_lib_save_LIBS
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14387 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14388 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
14389 cat >>confdefs.h
<<_ACEOF
14390 #define HAVE_LIBDL 1
14397 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
14398 # Sun randomly tweaked the prototypes in <proc_service.h>
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14401 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14402 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14403 $as_echo_n "(cached) " >&6
14406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14409 #include <proc_service.h>
14410 ps_err_e ps_pdwrite
14411 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14421 if ac_fn_c_try_compile
"$LINENO"; then :
14422 gdb_cv_proc_service_is_old
=no
14424 gdb_cv_proc_service_is_old
=yes
14426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14431 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14432 if test $gdb_cv_proc_service_is_old = yes; then
14434 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14439 $as_echo "no" >&6; }
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14444 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14445 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14446 $as_echo_n "(cached) " >&6
14448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14450 #include <sys/pthdebug.h>
14454 #ifndef PTHDB_VERSION_3
14461 if ac_fn_c_try_compile
"$LINENO"; then :
14462 gdb_cv_have_aix_thread_debug
=yes
14464 gdb_cv_have_aix_thread_debug
=no
14466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14470 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14471 if test $gdb_cv_have_aix_thread_debug = yes; then
14472 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
14473 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
14474 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
14481 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14483 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14484 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14485 $as_echo_n "(cached) " >&6
14487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14489 #include <thread_db.h>
14493 int i = TD_NOTALLOC;
14498 if ac_fn_c_try_compile
"$LINENO"; then :
14499 gdb_cv_thread_db_h_has_td_notalloc
=yes
14501 gdb_cv_thread_db_h_has_td_notalloc
=no
14504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14508 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14510 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14511 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14512 $as_echo_n "(cached) " >&6
14514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14516 #include <thread_db.h>
14520 int i = TD_VERSION;
14525 if ac_fn_c_try_compile
"$LINENO"; then :
14526 gdb_cv_thread_db_h_has_td_version
=yes
14528 gdb_cv_thread_db_h_has_td_version
=no
14531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14535 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14537 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14538 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14539 $as_echo_n "(cached) " >&6
14541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h. */
14543 #include <thread_db.h>
14552 if ac_fn_c_try_compile
"$LINENO"; then :
14553 gdb_cv_thread_db_h_has_td_notls
=yes
14555 gdb_cv_thread_db_h_has_td_notls
=no
14558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14562 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14564 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14566 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14569 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14571 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14574 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14576 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14580 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14582 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14583 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14584 $as_echo_n "(cached) " >&6
14586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14587 /* end confdefs.h. */
14588 #include <sys/syscall.h>
14592 int i = __NR_tkill;
14597 if ac_fn_c_try_compile
"$LINENO"; then :
14598 gdb_cv_sys_syscall_h_has_tkill
=yes
14600 gdb_cv_sys_syscall_h_has_tkill
=no
14603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14607 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14609 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14611 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14615 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14617 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
14623 cat >>confdefs.h
<<_ACEOF
14624 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14628 if test "$cross_compiling" = yes; then :
14629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14630 /* end confdefs.h. */
14631 #include <sys/personality.h>
14636 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14637 # define ADDR_NO_RANDOMIZE 0x0040000
14639 /* Test the flag could be set and stays set. */
14640 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14641 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14647 if ac_fn_c_try_link
"$LINENO"; then :
14648 have_personality
=true
14650 have_personality
=false
14652 rm -f core conftest.err conftest.
$ac_objext \
14653 conftest
$ac_exeext conftest.
$ac_ext
14655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14657 #include <sys/personality.h>
14662 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14663 # define ADDR_NO_RANDOMIZE 0x0040000
14665 /* Test the flag could be set and stays set. */
14666 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14667 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14673 if ac_fn_c_try_run
"$LINENO"; then :
14674 have_personality
=true
14676 have_personality
=false
14678 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14679 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14682 if $have_personality
14685 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14690 target_sysroot_reloc
=0
14692 # Check whether --with-sysroot was given.
14693 if test "${with_sysroot+set}" = set; then :
14694 withval
=$with_sysroot;
14695 case ${with_sysroot} in
14696 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
14697 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
14700 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14702 if test "x$prefix" = xNONE
; then
14703 test_prefix
=/usr
/local
14705 test_prefix
=$prefix
14707 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14708 test_exec_prefix
=$test_prefix
14710 test_exec_prefix
=$exec_prefix
14712 case ${TARGET_SYSTEM_ROOT} in
14713 "${test_prefix}"|
"${test_prefix}/"*|\
14714 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
14715 '${prefix}'|
'${prefix}/'*|\
14716 '${exec_prefix}'|
'${exec_prefix}/'*)
14717 target_sysroot_reloc
=1
14723 TARGET_SYSTEM_ROOT
=
14724 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
14728 TARGET_SYSTEM_ROOT_DEFINE
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14734 # Check whether --with-system-gdbinit was given.
14735 if test "${with_system_gdbinit+set}" = set; then :
14736 withval
=$with_system_gdbinit;
14737 SYSTEM_GDBINIT
=$withval
14743 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14744 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14745 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
14746 ac_define_dir
=`eval echo $ac_define_dir`
14748 cat >>confdefs.h
<<_ACEOF
14749 #define SYSTEM_GDBINIT "$ac_define_dir"
14755 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14756 if test "x$prefix" = xNONE
; then
14757 test_prefix
=/usr
/local
14759 test_prefix
=$prefix
14762 test_prefix
=$exec_prefix
14765 case ${ac_define_dir} in
14766 "${test_prefix}"|
"${test_prefix}/"*|\
14767 '${exec_prefix}'|
'${exec_prefix}/'*)
14772 cat >>confdefs.h
<<_ACEOF
14773 #define SYSTEM_GDBINIT_RELOCATABLE $value
14779 # Check whether --enable-werror was given.
14780 if test "${enable_werror+set}" = set; then :
14781 enableval
=$enable_werror; case "${enableval}" in
14782 yes | y
) ERROR_ON_WARNING
="yes" ;;
14783 no | n
) ERROR_ON_WARNING
="no" ;;
14784 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14789 # Enable -Werror by default when using gcc
14790 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14791 ERROR_ON_WARNING
=yes
14795 if test "${ERROR_ON_WARNING}" = yes ; then
14796 WERROR_CFLAGS
="-Werror"
14799 # The entries after -Wno-pointer-sign are disabled warnings which may
14800 # be enabled in the future, which can not currently be used to build
14802 # NOTE: If you change this list, remember to update
14803 # gdb/doc/gdbint.texinfo.
14804 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14805 -Wformat-nonliteral -Wno-pointer-sign \
14806 -Wno-unused -Wunused-value -Wunused-function \
14807 -Wno-switch -Wno-char-subscripts"
14809 # Enable -Wno-format by default when using gcc on mingw since many
14810 # GCC versions complain about %I64.
14812 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
14815 # Check whether --enable-build-warnings was given.
14816 if test "${enable_build_warnings+set}" = set; then :
14817 enableval
=$enable_build_warnings; case "${enableval}" in
14819 no
) build_warnings
="-w";;
14820 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14821 build_warnings
="${build_warnings} ${t}";;
14822 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14823 build_warnings
="${t} ${build_warnings}";;
14824 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14826 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14827 echo "Setting compiler warning flags = $build_warnings" 6>&1
14830 # Check whether --enable-gdb-build-warnings was given.
14831 if test "${enable_gdb_build_warnings+set}" = set; then :
14832 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
14834 no
) build_warnings
="-w";;
14835 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14836 build_warnings
="${build_warnings} ${t}";;
14837 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14838 build_warnings
="${t} ${build_warnings}";;
14839 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14841 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14842 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14846 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14849 $as_echo_n "checking compiler warning flags... " >&6; }
14850 # Separate out the -Werror flag as some files just cannot be
14851 # compiled with it enabled.
14852 for w
in ${build_warnings}; do
14854 -Werr*) WERROR_CFLAGS
=-Werror ;;
14855 *) # Check that GCC accepts it
14856 saved_CFLAGS
="$CFLAGS"
14857 CFLAGS
="$CFLAGS $w"
14858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14869 if ac_fn_c_try_compile
"$LINENO"; then :
14870 WARN_CFLAGS
="${WARN_CFLAGS} $w"
14872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14873 CFLAGS
="$saved_CFLAGS"
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14877 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14882 # In the Cygwin environment, we need some additional flags.
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
14884 $as_echo_n "checking
for cygwin...
" >&6; }
14885 if test "${gdb_cv_os_cygwin+set}" = set; then :
14886 $as_echo_n "(cached
) " >&6
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14891 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14895 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14896 $EGREP "lose
" >/dev/null 2>&1; then :
14897 gdb_cv_os_cygwin=yes
14899 gdb_cv_os_cygwin=no
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
14905 $as_echo "$gdb_cv_os_cygwin" >&6; }
14908 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
14910 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14911 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14912 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
14916 # libreadline needs libuser32.a in a cygwin environment
14918 if test x$gdb_cv_os_cygwin = xyes; then
14919 WIN32LIBS="-luser32"
14920 case "${target}" in
14921 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14926 # The ser-tcp.c module requires sockets.
14930 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14932 WIN32LIBS
="$WIN32LIBS -lws2_32"
14937 # Add ELF support to GDB, but only if BFD includes ELF support.
14939 OLD_LDFLAGS
=$LDFLAGS
14941 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14942 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
14943 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14944 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14945 if test "$plugins" = "yes"; then
14948 LIBS
="-lbfd -liberty $intl $LIBS"
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14950 $as_echo_n "checking for ELF support in BFD... " >&6; }
14951 if test "${gdb_cv_var_elf+set}" = set; then :
14952 $as_echo_n "(cached) " >&6
14954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14956 #include <stdlib.h>
14958 #include "elf-bfd.h"
14963 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14968 if ac_fn_c_try_link
"$LINENO"; then :
14973 rm -f core conftest.err conftest.
$ac_objext \
14974 conftest
$ac_exeext conftest.
$ac_ext
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14977 $as_echo "$gdb_cv_var_elf" >&6; }
14978 if test $gdb_cv_var_elf = yes; then
14979 CONFIG_OBS
="$CONFIG_OBS elfread.o"
14981 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14983 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14984 if test "$plugins" = "yes"; then
14985 OLD_LIBS
="-ldl $OLD_LIBS"
14989 LDFLAGS
=$OLD_LDFLAGS
14992 # Add any host-specific objects to GDB.
14993 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
14995 LIBGUI
="../libgui/src/libgui.a"
14996 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
15005 *-*-cygwin* |
*-*-mingw* )
15014 if test "${enable_gdbtk}" = "yes"; then
15016 # Gdbtk must have an absolute path to srcdir in order to run
15017 # properly when not installed.
15020 GDBTK_SRC_DIR
=`pwd`
15025 # Ok, lets find the tcl configuration
15026 # First, look for one uninstalled.
15027 # the alternative search directory is invoked by --with-tcl
15030 if test x
"${no_tcl}" = x
; then
15031 # we reset no_tcl in case something fails here
15034 # Check whether --with-tcl was given.
15035 if test "${with_tcl+set}" = set; then :
15036 withval
=$with_tcl; with_tclconfig
=${withval}
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15040 $as_echo_n "checking for Tcl configuration... " >&6; }
15041 if test "${ac_cv_c_tclconfig+set}" = set; then :
15042 $as_echo_n "(cached) " >&6
15046 # First check to see if --with-tcl was specified.
15048 *-*-cygwin*) platDir
="win" ;;
15049 *) platDir
="unix" ;;
15051 if test x
"${with_tclconfig}" != x
; then
15052 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15053 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
15055 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15059 # then check for a private Tcl installation
15060 if test x
"${ac_cv_c_tclconfig}" = x
; then
15063 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15064 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15065 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15067 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15068 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15069 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15071 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15072 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15073 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15074 if test -f "$i/$platDir/tclConfig.sh" ; then
15075 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15081 # on Darwin, check in Framework installation locations
15082 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
15083 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15084 `ls -d /Library/Frameworks 2>/dev/null` \
15085 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15086 `ls -d /System/Library/Frameworks 2>/dev/null` \
15088 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15089 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
15095 # check in a few common install locations
15096 if test x
"${ac_cv_c_tclconfig}" = x
; then
15097 for i
in `ls -d ${libdir} 2>/dev/null` \
15098 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15099 `ls -d ${prefix}/lib 2>/dev/null` \
15100 `ls -d /usr/local/lib 2>/dev/null` \
15101 `ls -d /usr/contrib/lib 2>/dev/null` \
15102 `ls -d /usr/lib 2>/dev/null` \
15104 if test -f "$i/tclConfig.sh" ; then
15105 ac_cv_c_tclconfig
=`(cd $i; pwd)`
15111 # check in a few other private locations
15112 if test x
"${ac_cv_c_tclconfig}" = x
; then
15115 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15116 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15117 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15118 if test -f "$i/$platDir/tclConfig.sh" ; then
15119 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15128 if test x
"${ac_cv_c_tclconfig}" = x
; then
15129 TCL_BIN_DIR
="# no Tcl configs found"
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15131 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15134 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15136 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15141 # If $no_tk is nonempty, then we can't do Tk, and there is no
15142 # point to doing Tcl.
15145 # Ok, lets find the tk configuration
15146 # First, look for one uninstalled.
15147 # the alternative search directory is invoked by --with-tk
15150 if test x
"${no_tk}" = x
; then
15151 # we reset no_tk in case something fails here
15154 # Check whether --with-tk was given.
15155 if test "${with_tk+set}" = set; then :
15156 withval
=$with_tk; with_tkconfig
=${withval}
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15160 $as_echo_n "checking for Tk configuration... " >&6; }
15161 if test "${ac_cv_c_tkconfig+set}" = set; then :
15162 $as_echo_n "(cached) " >&6
15166 # First check to see if --with-tkconfig was specified.
15167 if test x
"${with_tkconfig}" != x
; then
15168 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15169 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
15171 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15175 # then check for a private Tk library
15177 *-*-cygwin*) platDir
="win" ;;
15178 *) platDir
="unix" ;;
15180 if test x
"${ac_cv_c_tkconfig}" = x
; then
15183 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15184 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15185 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15187 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15188 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15189 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15191 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15192 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15193 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15194 if test -f "$i/$platDir/tkConfig.sh" ; then
15195 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15201 # on Darwin, check in Framework installation locations
15202 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
15203 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15204 `ls -d /Library/Frameworks 2>/dev/null` \
15205 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15206 `ls -d /System/Library/Frameworks 2>/dev/null` \
15208 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15209 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
15215 # check in a few common install locations
15216 if test x
"${ac_cv_c_tkconfig}" = x
; then
15217 for i
in `ls -d ${libdir} 2>/dev/null` \
15218 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15219 `ls -d ${prefix}/lib 2>/dev/null` \
15220 `ls -d /usr/local/lib 2>/dev/null` \
15221 `ls -d /usr/contrib/lib 2>/dev/null` \
15222 `ls -d /usr/lib 2>/dev/null` \
15224 if test -f "$i/tkConfig.sh" ; then
15225 ac_cv_c_tkconfig
=`(cd $i; pwd)`
15230 # check in a few other private locations
15231 if test x
"${ac_cv_c_tkconfig}" = x
; then
15234 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15235 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15236 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15237 if test -f "$i/$platDir/tkConfig.sh" ; then
15238 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15247 if test x
"${ac_cv_c_tkconfig}" = x
; then
15248 TK_BIN_DIR
="# no Tk configs found"
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15250 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15253 TK_BIN_DIR
=${ac_cv_c_tkconfig}
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15255 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15260 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15263 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15265 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15267 $as_echo "loading" >&6; }
15268 .
${TCL_BIN_DIR}/tclConfig.sh
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15271 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15274 # eval is required to do the TCL_DBGX substitution
15275 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15276 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15278 # If the TCL_BIN_DIR is the build directory (not the install directory),
15279 # then set the common variable name to the value of the build variables.
15280 # For example, the variable TCL_LIB_SPEC will be set to the value
15281 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15282 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15283 # installed and uninstalled version of Tcl.
15284 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15285 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
15286 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
15287 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
15288 elif test "`uname -s`" = "Darwin"; then
15289 # If Tcl was built as a framework, attempt to use the libraries
15290 # from the framework at the given location so that linking works
15291 # against Tcl.framework installed in an arbitary location.
15292 case ${TCL_DEFS} in
15294 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15295 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
15296 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15297 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15298 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15303 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15304 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15305 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15311 # eval is required to do the TCL_DBGX substitution
15312 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15313 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15314 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15315 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15331 # Check for in-tree tcl
15338 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15342 # Find Tcl private headers
15343 if test x
"${intree}" = xno
; then
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15346 $as_echo_n "checking for Tcl private headers... " >&6; }
15348 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15349 if test -f ${dir}/tclInt.h
; then
15353 if test x
"${private_dir}" = x
; then
15354 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
15356 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15358 $as_echo "${private_dir}" >&6; }
15361 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15362 TCL_LIBRARY
="${TCL_LIB_SPEC}"
15365 # If building tcl in the same src tree, private headers
15366 # are not needed, but we need to be sure to use the right
15368 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
15369 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
15370 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15378 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15380 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15382 $as_echo "loading" >&6; }
15383 .
${TK_BIN_DIR}/tkConfig.sh
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15386 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15389 # eval is required to do the TK_DBGX substitution
15390 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15391 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15393 # If the TK_BIN_DIR is the build directory (not the install directory),
15394 # then set the common variable name to the value of the build variables.
15395 # For example, the variable TK_LIB_SPEC will be set to the value
15396 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15397 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15398 # installed and uninstalled version of Tcl.
15399 if test -f "${TK_BIN_DIR}/Makefile" ; then
15400 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
15401 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
15402 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
15403 elif test "`uname -s`" = "Darwin"; then
15404 # If Tk was built as a framework, attempt to use the libraries
15405 # from the framework at the given location so that linking works
15406 # against Tk.framework installed in an arbitary location.
15409 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15410 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
15411 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15412 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15413 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15418 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15419 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15420 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15426 # eval is required to do the TK_DBGX substitution
15427 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15428 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15429 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15430 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15445 # Check for in-tree Tk
15447 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15451 # Find Tk private headers
15452 if test x
"${intree}" = xno
; then
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15455 $as_echo_n "checking for Tk private headers... " >&6; }
15457 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15458 if test -f ${dir}/tkInt.h
; then
15462 if test x
"${private_dir}" = x
; then
15463 as_fn_error
"could not find Tk private headers" "$LINENO" 5
15465 TK_PRIVATE_INCLUDE
="-I${private_dir}"
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15467 $as_echo "${private_dir}" >&6; }
15470 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15471 TK_LIBRARY
=${TK_LIB_SPEC}
15474 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
15475 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
15476 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
15483 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15485 # Include some libraries that Tcl and Tk want.
15486 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15487 # Yes, the ordering seems wrong here. But it isn't.
15488 # TK_LIBS is the list of libraries that need to be linked
15489 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15490 # were in LIBS then any link tests after this point would
15491 # try to include things like `$(LIBGUI)', which wouldn't work.
15492 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
15494 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15495 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15496 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15497 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
15498 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
15499 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
15500 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
15502 if test x
$gdb_cv_os_cygwin = xyes
; then
15503 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15504 WIN32LDAPP
="-Wl,--subsystem,console"
15505 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
15508 subdirs
="$subdirs gdbtk"
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15521 $as_echo_n "checking for X... " >&6; }
15524 # Check whether --with-x was given.
15525 if test "${with_x+set}" = set; then :
15529 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15530 if test "x$with_x" = xno
; then
15531 # The user explicitly disabled X.
15534 case $x_includes,$x_libraries in #(
15535 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
15536 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
15537 $as_echo_n "(cached) " >&6
15539 # One or both of the vars are not set, and there is no cached value.
15540 ac_x_includes
=no ac_x_libraries
=no
15541 rm -f -r conftest.dir
15542 if mkdir conftest.dir
; then
15544 cat >Imakefile
<<'_ACEOF'
15546 @echo incroot='${INCROOT}'
15548 @echo usrlibdir='${USRLIBDIR}'
15550 @echo libdir='${LIBDIR}'
15552 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15553 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15554 for ac_var
in incroot usrlibdir libdir
; do
15555 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15557 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15558 for ac_extension
in a so sl dylib la dll
; do
15559 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15560 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15561 ac_im_usrlibdir
=$ac_im_libdir; break
15564 # Screen out bogus values from the imake configuration. They are
15565 # bogus both because they are the default anyway, and because
15566 # using them would break gcc on systems where it needs fixed includes.
15567 case $ac_im_incroot in
15568 /usr
/include
) ac_x_includes
= ;;
15569 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15571 case $ac_im_usrlibdir in
15572 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15573 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15577 rm -f -r conftest.dir
15580 # Standard set of common directories for X headers.
15581 # Check X11 before X11Rn because it is often a symlink to the current release.
15595 /usr/local/X11/include
15596 /usr/local/X11R7/include
15597 /usr/local/X11R6/include
15598 /usr/local/X11R5/include
15599 /usr/local/X11R4/include
15601 /usr/local/include/X11
15602 /usr/local/include/X11R7
15603 /usr/local/include/X11R6
15604 /usr/local/include/X11R5
15605 /usr/local/include/X11R4
15609 /usr/XFree86/include/X11
15613 /usr/unsupported/include
15614 /usr/athena/include
15615 /usr/local/x11r5/include
15616 /usr/lpp/Xamples/include
15618 /usr/openwin/include
15619 /usr/openwin/share/include'
15621 if test "$ac_x_includes" = no
; then
15622 # Guess where to find include files, by looking for Xlib.h.
15623 # First, try using that file with no special directory specified.
15624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626 #include <X11/Xlib.h>
15628 if ac_fn_c_try_cpp
"$LINENO"; then :
15629 # We can compile using X headers with no special include directory.
15632 for ac_dir
in $ac_x_header_dirs; do
15633 if test -r "$ac_dir/X11/Xlib.h"; then
15634 ac_x_includes
=$ac_dir
15639 rm -f conftest.err conftest.
$ac_ext
15640 fi # $ac_x_includes = no
15642 if test "$ac_x_libraries" = no
; then
15643 # Check for the libraries.
15644 # See if we find them without any special options.
15645 # Don't add to $LIBS permanently.
15648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h. */
15650 #include <X11/Xlib.h>
15659 if ac_fn_c_try_link
"$LINENO"; then :
15661 # We can link X programs with no special library path.
15665 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15667 # Don't even attempt the hair of trying to link an X program!
15668 for ac_extension
in a so sl dylib la dll
; do
15669 if test -r "$ac_dir/libX11.$ac_extension"; then
15670 ac_x_libraries
=$ac_dir
15676 rm -f core conftest.err conftest.
$ac_objext \
15677 conftest
$ac_exeext conftest.
$ac_ext
15678 fi # $ac_x_libraries = no
15680 case $ac_x_includes,$ac_x_libraries in #(
15681 no
,* |
*,no |
*\'*)
15682 # Didn't find X, or a directory has "'" in its name.
15683 ac_cv_have_x
="have_x=no";; #(
15685 # Record where we found X for the cache.
15686 ac_cv_have_x
="have_x=yes\
15687 ac_x_includes='$ac_x_includes'\
15688 ac_x_libraries='$ac_x_libraries'"
15694 eval "$ac_cv_have_x"
15697 if test "$have_x" != yes; then
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15699 $as_echo "$have_x" >&6; }
15702 # If each of the values was on the command line, it overrides each guess.
15703 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15704 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15705 # Update the cache value to reflect the command line values.
15706 ac_cv_have_x
="have_x=yes\
15707 ac_x_includes='$x_includes'\
15708 ac_x_libraries='$x_libraries'"
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15710 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15714 # Unlike the sim directory, whether a simulator is linked is controlled by
15715 # presence of a gdb_sim definition in the target configure.tgt entry.
15716 # This code just checks for a few cases where we'd like to ignore those
15717 # definitions, even when they're present in the '.mt' file. These cases
15718 # are when --disable-sim is specified, or if the simulator directory is
15719 # not part of the source tree.
15721 # Check whether --enable-sim was given.
15722 if test "${enable_sim+set}" = set; then :
15723 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
15724 echo "enableval = ${enableval}";
15725 case "${enableval}" in
15726 yes) ignore_sim
=false
;;
15727 no
) ignore_sim
=true
;;
15728 *) ignore_sim
=false
;;
15735 if test ! -d "${srcdir}/../sim"; then
15741 if test "${ignore_sim}" = "false"; then
15742 if test x
"${gdb_sim}" != x
; then
15744 SIM_OBS
="remote-sim.o"
15746 $as_echo "#define WITH_SIM 1" >>confdefs.h
15764 # List of host floatformats.
15766 cat >>confdefs.h
<<_ACEOF
15767 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15771 cat >>confdefs.h
<<_ACEOF
15772 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15776 cat >>confdefs.h
<<_ACEOF
15777 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15781 # target_subdir is used by the testsuite to find the target libraries.
15783 if test "${host}" != "${target}"; then
15784 target_subdir
="${target_alias}/"
15789 if test "${gdb_native}" = "yes"; then
15790 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15791 if test ! -f ${host_makefile_frag}; then
15792 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15794 frags
="$frags $host_makefile_frag"
15796 host_makefile_frag
=/dev
/null
15802 if test "${gdb_native}" = "yes"; then
15803 # We pick this up from the host configuration file (.mh) because we
15804 # do not have a native configuration Makefile fragment.
15805 nativefile
=`sed -n '
15806 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15807 ' ${host_makefile_frag}`
15811 if test x
"${gdb_osabi}" != x
; then
15813 cat >>confdefs.h
<<_ACEOF
15814 #define GDB_OSABI_DEFAULT $gdb_osabi
15819 # Enable multi-ice-gdb-server.
15820 # Check whether --enable-multi-ice was given.
15821 if test "${enable_multi_ice+set}" = set; then :
15822 enableval
=$enable_multi_ice; case $enableval in
15825 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15829 if test "x$enable_multi_ice" = xyes
; then
15830 subdirs
="$subdirs multi-ice"
15834 # Check whether --enable-gdbserver was given.
15835 if test "${enable_gdbserver+set}" = set; then :
15836 enableval
=$enable_gdbserver; case "${enableval}" in
15838 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15841 enable_gdbserver
=auto
15845 # We only build gdbserver automatically in a native configuration, and
15846 # only if the user did not explicitly disable its build.
15847 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15849 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15850 if test "x$build_gdbserver" = xyes
; then
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15852 $as_echo "yes" >&6; }
15853 subdirs
="$subdirs gdbserver"
15855 gdbserver_build_enabled
=yes
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15858 $as_echo "no" >&6; }
15862 # If the user explicitly request the gdbserver to be built, verify that
15863 # we were in fact able to enable it.
15864 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15865 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15868 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15869 # to an empty version.
15875 if test "${nativefile}" != ""; then
15876 case "${nativefile}" in
15877 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
15878 * ) GDB_NM_FILE
="${nativefile}"
15880 files
="${files} ${GDB_NM_FILE}"
15881 links
="${links} nm.h"
15883 cat >>confdefs.h
<<_ACEOF
15884 #define GDB_NM_FILE "${GDB_NM_FILE}"
15890 ac_sources
="$files"
15892 while test -n "$ac_sources"; do
15893 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
15894 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
15895 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
15897 ac_config_links
="$ac_config_links $ac_config_links_1"
15903 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15906 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directory/Makefile"
15908 ac_config_commands
="$ac_config_commands default"
15910 cat >confcache
<<\_ACEOF
15911 # This file is a shell script that caches the results of configure
15912 # tests run on this system so they can be shared between configure
15913 # scripts and configure runs, see configure's option --config-cache.
15914 # It is not useful on other systems. If it contains results you don't
15915 # want to keep, you may remove or edit it.
15917 # config.status only pays attention to the cache file if you give it
15918 # the --recheck option to rerun configure.
15920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15922 # following values.
15926 # The following way of writing the cache mishandles newlines in values,
15927 # but we know of no workaround that is simple, portable, and efficient.
15928 # So, we kill variables containing newlines.
15929 # Ultrix sh set writes to stderr and can't be redirected directly,
15930 # and sets the high bit in the cache file unless we assign to the vars.
15932 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15933 eval ac_val
=\$
$ac_var
15937 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15941 _ | IFS | as_nl
) ;; #(
15942 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15943 *) { eval $ac_var=; unset $ac_var;} ;;
15949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15950 *${as_nl}ac_space
=\
*)
15951 # `set' does not quote correctly, so add quotes: double-quote
15952 # substitution turns \\\\ into \\, and sed turns \\ into \.
15955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15958 # `set' quotes correctly as required by POSIX, so do not add quotes.
15959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15972 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15973 if test -w "$cache_file"; then
15974 test "x$cache_file" != "x/dev/null" &&
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15976 $as_echo "$as_me: updating cache $cache_file" >&6;}
15977 cat confcache
>$cache_file
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15980 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15985 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15986 # Let make expand exec_prefix.
15987 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15989 DEFS
=-DHAVE_CONFIG_H
15993 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15994 # 1. Remove the extension, and $U if already installed.
15995 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15996 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15997 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15998 # will be set to the directory where LIBOBJS objects are built.
15999 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16000 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16002 LIBOBJS
=$ac_libobjs
16004 LTLIBOBJS
=$ac_ltlibobjs
16007 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16008 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16011 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16012 as_fn_error
"conditional \"GMAKE\" was never defined.
16013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16015 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16016 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
16017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16022 if test -n "$gl_LIBOBJS"; then
16023 # Remove the extension.
16024 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16025 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16026 gl_libobjs
="$gl_libobjs $i.$ac_objext"
16027 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
16030 gl_LIBOBJS
=$gl_libobjs
16032 gl_LTLIBOBJS
=$gl_ltlibobjs
16038 if test -n "$gltests_LIBOBJS"; then
16039 # Remove the extension.
16040 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16041 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16042 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
16043 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
16046 gltests_LIBOBJS
=$gltests_libobjs
16048 gltests_LTLIBOBJS
=$gltests_ltlibobjs
16051 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16052 as_fn_error
"conditional \"AMDEP\" was never defined.
16053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16055 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16056 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16059 if test -n "$EXEEXT"; then
16061 am__EXEEXT_FALSE
='#'
16063 am__EXEEXT_TRUE
='#'
16069 : ${CONFIG_STATUS=./config.status}
16071 ac_clean_files_save
=$ac_clean_files
16072 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16074 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16076 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16078 # Generated by $as_me.
16079 # Run this file to recreate the current configuration.
16080 # Compiler output produced by configure, useful for debugging
16081 # configure, is in config.log if it exists.
16084 ac_cs_recheck=false
16087 SHELL=\${CONFIG_SHELL-$SHELL}
16090 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16091 ## -------------------- ##
16092 ## M4sh Initialization. ##
16093 ## -------------------- ##
16095 # Be more Bourne compatible
16096 DUALCASE
=1; export DUALCASE
# for MKS sh
16097 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16100 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16101 # is contrary to our usage. Disable this feature.
16102 alias -g '${1+"$@"}'='"$@"'
16103 setopt NO_GLOB_SUBST
16105 case `(set -o) 2>/dev/null` in #(
16117 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16118 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16119 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16120 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16121 # Prefer a ksh shell builtin over an external printf program on Solaris,
16122 # but without wasting forks for bash or zsh.
16123 if test -z "$BASH_VERSION$ZSH_VERSION" \
16124 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16125 as_echo='print
-r --'
16126 as_echo_n='print
-rn --'
16127 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16128 as_echo='printf %s
\n'
16129 as_echo_n='printf %s
'
16131 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16132 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16133 as_echo_n='/usr
/ucb
/echo -n'
16135 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16136 as_echo_n_body='eval
16140 expr "X$arg" : "X\\(.*\\)$as_nl";
16141 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16143 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16145 export as_echo_n_body
16146 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16148 export as_echo_body
16149 as_echo='sh
-c $as_echo_body as_echo
'
16152 # The user is always right.
16153 if test "${PATH_SEPARATOR+set}" != set; then
16155 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16156 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16163 # We need space, tab and new line, in precisely that order. Quoting is
16164 # there to prevent editors from complaining about space-tab.
16165 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16166 # splitting by setting IFS to empty value.)
16169 # Find who we are. Look in the path if we contain no directory separator.
16171 *[\\/]* ) as_myself=$0 ;;
16172 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16173 for as_dir in $PATH
16176 test -z "$as_dir" && as_dir=.
16177 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16183 # We did not find ourselves, most probably we were run as `sh COMMAND'
16184 # in which case we are not to be found in the path.
16185 if test "x$as_myself" = x
; then
16188 if test ! -f "$as_myself"; then
16189 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16193 # Unset variables that we do not need and which cause bugs (e.g. in
16194 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16195 # suppresses any "Segmentation fault" message there. '((' could
16196 # trigger a bug in pdksh 5.2.14.
16197 for as_var
in BASH_ENV ENV MAIL MAILPATH
16198 do eval test x\
${$as_var+set} = xset \
16199 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16212 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16215 # as_fn_error ERROR [LINENO LOG_FD]
16216 # ---------------------------------
16217 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16218 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16219 # script with status $?, using 1 if that was 0.
16222 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16224 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16225 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16227 $as_echo "$as_me: error: $1" >&2
16228 as_fn_exit
$as_status
16232 # as_fn_set_status STATUS
16233 # -----------------------
16234 # Set $? to STATUS, without forking.
16235 as_fn_set_status
()
16238 } # as_fn_set_status
16240 # as_fn_exit STATUS
16241 # -----------------
16242 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16246 as_fn_set_status
$1
16252 # Portably unset VAR.
16255 { eval $1=; unset $1;}
16257 as_unset
=as_fn_unset
16258 # as_fn_append VAR VALUE
16259 # ----------------------
16260 # Append the text in VALUE to the end of the definition contained in VAR. Take
16261 # advantage of any shell optimizations that allow amortized linear growth over
16262 # repeated appends, instead of the typical quadratic growth present in naive
16264 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16265 eval 'as_fn_append ()
16276 # as_fn_arith ARG...
16277 # ------------------
16278 # Perform arithmetic evaluation on the ARGs, and store the result in the
16279 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16280 # must be portable across $(()) and expr.
16281 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16282 eval 'as_fn_arith ()
16289 as_val
=`expr "$@" || test $? -eq 1`
16294 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16295 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16301 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16302 as_basename
=basename
16307 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16313 as_me
=`$as_basename -- "$0" ||
16314 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16315 X"$0" : 'X\(//\)$' \| \
16316 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16318 sed '/^.*\/\([^/][^/]*\)\/*$/{
16332 # Avoid depending upon Character Ranges.
16333 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16334 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16335 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16336 as_cr_digits
='0123456789'
16337 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16339 ECHO_C
= ECHO_N
= ECHO_T
=
16340 case `echo -n x` in #(((((
16342 case `echo 'xy\c'` in
16343 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16345 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16352 rm -f conf$$ conf$$.exe conf$$.
file
16353 if test -d conf$$.dir
; then
16354 rm -f conf$$.dir
/conf$$.
file
16357 mkdir conf$$.dir
2>/dev
/null
16359 if (echo >conf$$.
file) 2>/dev
/null
; then
16360 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16362 # ... but there are two gotchas:
16363 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16364 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16365 # In both cases, we have to default to `cp -p'.
16366 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16368 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16376 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16377 rmdir conf$$.dir
2>/dev
/null
16382 # Create "$as_dir" as a directory, including parents if necessary.
16387 -*) as_dir
=.
/$as_dir;;
16389 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16393 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16394 *) as_qdir
=$as_dir;;
16396 as_dirs
="'$as_qdir' $as_dirs"
16397 as_dir
=`$as_dirname -- "$as_dir" ||
16398 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16399 X"$as_dir" : 'X\(//\)[^/]' \| \
16400 X"$as_dir" : 'X\(//\)$' \| \
16401 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16402 $as_echo X"$as_dir" |
16403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16407 /^X\(\/\/\)[^/].*/{
16420 test -d "$as_dir" && break
16422 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16423 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16427 if mkdir
-p .
2>/dev
/null
; then
16428 as_mkdir_p
='mkdir -p "$as_dir"'
16430 test -d .
/-p && rmdir .
/-p
16434 if test -x / >/dev
/null
2>&1; then
16435 as_test_x
='test -x'
16437 if ls -dL / >/dev
/null
2>&1; then
16444 if test -d "$1"; then
16450 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16451 ???[sx]*):;;*)false;;esac;fi
16455 as_executable_p
=$as_test_x
16457 # Sed expression to map a string onto a valid CPP name.
16458 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16460 # Sed expression to map a string onto a valid variable name.
16461 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16465 ## ----------------------------------- ##
16466 ## Main body of $CONFIG_STATUS script. ##
16467 ## ----------------------------------- ##
16469 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16472 # Save the log message, to keep $0 and so on meaningful, and to
16473 # report actual input values of CONFIG_FILES etc. instead of their
16474 # values after options handling.
16476 This file was extended by $as_me, which was
16477 generated by GNU Autoconf 2.64. Invocation command line was
16479 CONFIG_FILES = $CONFIG_FILES
16480 CONFIG_HEADERS = $CONFIG_HEADERS
16481 CONFIG_LINKS = $CONFIG_LINKS
16482 CONFIG_COMMANDS = $CONFIG_COMMANDS
16485 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16490 case $ac_config_files in *"
16491 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16494 case $ac_config_headers in *"
16495 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16500 # Files that config.status was made for.
16501 config_files="$ac_config_files"
16502 config_headers="$ac_config_headers"
16503 config_links="$ac_config_links"
16504 config_commands="$ac_config_commands"
16508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16510 \`$as_me' instantiates files and other configuration actions
16511 from templates according to the current configuration. Unless the files
16512 and actions are specified as TAGs, all are instantiated by default.
16514 Usage: $0 [OPTION]... [TAG]...
16516 -h, --help print this help, then exit
16517 -V, --version print version number and configuration settings, then exit
16518 -q, --quiet, --silent
16519 do not print progress messages
16520 -d, --debug don't remove temporary files
16521 --recheck update $as_me by reconfiguring in the same conditions
16522 --file=FILE[:TEMPLATE]
16523 instantiate the configuration file FILE
16524 --header=FILE[:TEMPLATE]
16525 instantiate the configuration header FILE
16527 Configuration files:
16530 Configuration headers:
16533 Configuration links:
16536 Configuration commands:
16539 Report bugs to the package provider."
16542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16545 configured by $0, generated by GNU Autoconf 2.64,
16546 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16548 Copyright (C) 2009 Free Software Foundation, Inc.
16549 This config.status script is free software; the Free Software Foundation
16550 gives unlimited permission to copy, distribute and modify it."
16557 test -n "\$AWK" || AWK=awk
16560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16561 # The default lists apply if the user does not specify any file.
16567 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16568 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16579 # Handling of the options.
16580 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16582 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16583 $as_echo "$ac_cs_version"; exit ;;
16584 --debug |
--debu |
--deb |
--de |
--d |
-d )
16586 --file |
--fil |
--fi |
--f )
16589 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16591 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16592 ac_need_defaults
=false
;;
16593 --header |
--heade |
--head |
--hea )
16596 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16598 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16599 ac_need_defaults
=false
;;
16601 # Conflict between --help and --header
16602 as_fn_error
"ambiguous option: \`$1'
16603 Try \`$0 --help' for more information.";;
16604 --help |
--hel |
-h )
16605 $as_echo "$ac_cs_usage"; exit ;;
16606 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16607 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16610 # This is an error.
16611 -*) as_fn_error
"unrecognized option: \`$1'
16612 Try \`$0 --help' for more information." ;;
16614 *) as_fn_append ac_config_targets
" $1"
16615 ac_need_defaults
=false
;;
16621 ac_configure_extra_args
=
16623 if $ac_cs_silent; then
16625 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16630 if \$ac_cs_recheck; then
16631 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16633 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16634 CONFIG_SHELL='$SHELL'
16635 export CONFIG_SHELL
16640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16644 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16645 ## Running $as_me. ##
16651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16655 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16656 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16662 # Handling of arguments.
16663 for ac_config_target
in $ac_config_targets
16665 case $ac_config_target in
16666 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16667 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
16668 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16669 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
16670 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16671 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16672 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16673 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
16674 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
16675 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16677 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16682 # If the user did not use the arguments to specify the items to instantiate,
16683 # then the envvar interface is used. Set only those that are not.
16684 # We use the long form for the default assignment because of an extremely
16685 # bizarre bug on SunOS 4.1.3.
16686 if $ac_need_defaults; then
16687 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16688 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16689 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16690 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16693 # Have a temporary directory for convenience. Make it in the build tree
16694 # simply because there is no reason against having it here, and in addition,
16695 # creating and moving files from /tmp can sometimes cause problems.
16696 # Hook for its removal unless debugging.
16697 # Note that there is a small window in which the directory will not be cleaned:
16698 # after its creation but before its name has been assigned to `$tmp'.
16702 trap 'exit_status=$?
16703 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16705 trap 'as_fn_exit 1' 1 2 13 15
16707 # Create a (secure) tmp directory for tmp files.
16710 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16711 test -n "$tmp" && test -d "$tmp"
16714 tmp
=.
/conf$$
-$RANDOM
16715 (umask 077 && mkdir
"$tmp")
16716 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16718 # Set up the scripts for CONFIG_FILES section.
16719 # No need to generate them if there are no CONFIG_FILES.
16720 # This happens for instance with `./config.status config.h'.
16721 if test -n "$CONFIG_FILES"; then
16723 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16724 ac_cs_awk_getline
=:
16725 ac_cs_awk_pipe_init
=
16726 ac_cs_awk_read_file
='
16727 while ((getline aline < (F[key])) > 0)
16730 ac_cs_awk_pipe_fini
=
16732 ac_cs_awk_getline
=false
16733 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16734 ac_cs_awk_read_file
='
16736 print "cat " F[key] " &&"
16737 '$ac_cs_awk_pipe_init
16738 # The final `:' finishes the AND list.
16739 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16741 ac_cr
=`echo X | tr X '\015'`
16742 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16743 # But we know of no other shell where ac_cr would be empty at this
16744 # point, so we can use a bashism as a fallback.
16745 if test "x$ac_cr" = x
; then
16746 eval ac_cr
=\$
\'\\r
\'
16748 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16749 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16752 ac_cs_awk_cr
=$ac_cr
16755 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16758 # Create commands to substitute file output variables.
16760 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16761 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16762 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16765 } >conf$
$files.sh
&&
16766 . .
/conf$
$files.sh ||
16767 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
16768 rm -f conf$
$files.sh
16771 echo "cat >conf$$subs.awk <<_ACEOF" &&
16772 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16774 } >conf$$subs.sh ||
16775 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16776 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16778 for ac_last_try in false false false false false :; do
16779 . ./conf$$subs.sh ||
16780 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16782 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16783 if test $ac_delim_n = $ac_delim_num; then
16785 elif $ac_last_try; then
16786 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16788 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16791 rm -f conf$$subs.sh
16793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16794 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16798 s/^/S["/; s
/!.
*/"]=/
16808 s/\(.\{148\}\).*/\1/
16810 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16815 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16822 s/\(.\{148\}\).*/\1/
16824 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16828 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16833 ' <conf$$subs.awk | sed '
16838 ' >>$CONFIG_STATUS || ac_write_fail=1
16839 rm -f conf$$subs.awk
16840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16842 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16843 for (key in S) S_is_set[key] = 1
16845 \$ac_cs_awk_pipe_init
16849 nfields = split(line, field, "@
")
16851 len = length(field[1])
16852 for (i = 2; i < nfields; i++) {
16854 keylen = length(key)
16855 if (S_is_set[key]) {
16857 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16858 len += length(value) + length(field[++i])
16863 if (nfields == 3 && !substed) {
16865 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16866 \$ac_cs_awk_read_file
16872 \$ac_cs_awk_pipe_fini
16875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16876 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16877 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16880 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16881 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16884 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16885 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16886 # trailing colons and then remove the whole line if VPATH becomes empty
16887 # (actually we leave an empty line to preserve line numbers).
16888 if test "x
$srcdir" = x.; then
16889 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16890 s/:*\$(srcdir):*/:/
16891 s/:*\${srcdir}:*/:/
16893 s/^\([^=]*=[ ]*\):*/\1/
16899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16900 fi # test -n "$CONFIG_FILES"
16902 # Set up the scripts for CONFIG_HEADERS section.
16903 # No need to generate them if there are no CONFIG_HEADERS.
16904 # This happens for instance with `./config.status Makefile'.
16905 if test -n "$CONFIG_HEADERS"; then
16906 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16910 # Transform confdefs.h into an awk script `defines.awk', embedded as
16911 # here-document in config.status, that substitutes the proper values into
16912 # config.h.in to produce config.h.
16914 # Create a delimiter string that does not exist in confdefs.h, to ease
16915 # handling of long lines.
16917 for ac_last_try in false false :; do
16918 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16919 if test -z "$ac_t"; then
16921 elif $ac_last_try; then
16922 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16924 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16928 # For the awk script, D is an array of macro values keyed by name,
16929 # likewise P contains macro parameters if any. Preserve backslash
16930 # newline sequences.
16932 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16934 s/.\{148\}/&'"$ac_delim"'/g
16937 s/^[ ]*#[ ]*define[ ][ ]*/ /
16944 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16946 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16950 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16951 D["\
1"]=" \
3\\\\\\n
"\\/p
16953 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16958 s/.\{148\}/&'"$ac_delim"'/g
16963 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16966 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16968 ' <confdefs.h | sed '
16969 s/'"$ac_delim"'/"\\\
16970 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16973 for (key in D) D_is_set[key] = 1
16976 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16978 split(line, arg, " ")
16979 if (arg[1] == "#") {
16983 defundef
= substr
(arg
[1], 2)
16986 split(mac1
, mac2
, "(") #)
16988 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16989 if (D_is_set
[macro
]) {
16990 # Preserve the white space surrounding the "#".
16991 print prefix
"define", macro P
[macro
] D
[macro
]
16994 # Replace #undef with comments. This is necessary, for example,
16995 # in the case of _POSIX_SOURCE, which is predefined and required
16996 # on some systems where configure will not decide to define it.
16997 if (defundef
== "undef") {
16998 print
"/*", prefix defundef
, macro
, "*/"
17006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17007 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17008 fi # test -n "$CONFIG_HEADERS"
17011 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17016 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17018 case $ac_mode$ac_tag in
17020 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17021 :[FH
]-) ac_tag
=-:-;;
17022 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17039 -) ac_f
="$tmp/stdin";;
17040 *) # Look for the file first in the build tree, then in the source tree
17041 # (if the path is not absolute). The absolute path cannot be DOS-style,
17042 # because $ac_f cannot contain `:'.
17046 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17048 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17050 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17051 as_fn_append ac_file_inputs
" '$ac_f'"
17054 # Let's still pretend it is `configure' which instantiates (i.e., don't
17055 # use $as_me), people would be surprised to read:
17056 # /* config.h. Generated by config.status. */
17057 configure_input
='Generated from '`
17058 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17060 if test x
"$ac_file" != x-
; then
17061 configure_input
="$ac_file. $configure_input"
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17063 $as_echo "$as_me: creating $ac_file" >&6;}
17065 # Neutralize special characters interpreted by sed in replacement strings.
17066 case $configure_input in #(
17067 *\
&* |
*\|
* |
*\\* )
17068 ac_sed_conf_input
=`$as_echo "$configure_input" |
17069 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17070 *) ac_sed_conf_input
=$configure_input;;
17074 *:-:* |
*:-) cat >"$tmp/stdin" \
17075 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17080 ac_dir
=`$as_dirname -- "$ac_file" ||
17081 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17082 X"$ac_file" : 'X\(//\)[^/]' \| \
17083 X"$ac_file" : 'X\(//\)$' \| \
17084 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17085 $as_echo X"$ac_file" |
17086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17090 /^X\(\/\/\)[^/].*/{
17103 as_dir
="$ac_dir"; as_fn_mkdir_p
17107 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17109 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17110 # A ".." for each directory in $ac_dir_suffix.
17111 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17112 case $ac_top_builddir_sub in
17113 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17114 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17117 ac_abs_top_builddir
=$ac_pwd
17118 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17119 # for backward compatibility:
17120 ac_top_builddir
=$ac_top_build_prefix
17123 .
) # We are building in place.
17125 ac_top_srcdir
=$ac_top_builddir_sub
17126 ac_abs_top_srcdir
=$ac_pwd ;;
17127 [\\/]* | ?
:[\\/]* ) # Absolute name.
17128 ac_srcdir
=$srcdir$ac_dir_suffix;
17129 ac_top_srcdir
=$srcdir
17130 ac_abs_top_srcdir
=$srcdir ;;
17131 *) # Relative name.
17132 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17133 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17134 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17136 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17146 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17147 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17149 ac_MKDIR_P
=$MKDIR_P
17151 [\\/$
]* | ?
:[\\/]* ) ;;
17152 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17157 # If the template does not know about datarootdir, expand it.
17158 # FIXME: This hack should be removed a few years after 2.60.
17159 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17170 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17171 *datarootdir
*) ac_datarootdir_seen
=yes;;
17172 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17174 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17177 ac_datarootdir_hack='
17178 s&@datadir@&$datadir&g
17179 s&@docdir@&$docdir&g
17180 s&@infodir@&$infodir&g
17181 s&@localedir@&$localedir&g
17182 s&@mandir@&$mandir&g
17183 s&\\\${datarootdir}&$datarootdir&g' ;;
17187 # Neutralize VPATH when `$srcdir' = `.'.
17188 # Shell code in configure.ac might set extrasub.
17189 # FIXME: do we really want to maintain this feature?
17190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17191 ac_sed_extra="$ac_vpsub
17194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17196 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17197 s|@configure_input@|
$ac_sed_conf_input|
;t t
17198 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17199 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17200 s
&@srcdir@
&$ac_srcdir&;t t
17201 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17202 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17203 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17204 s
&@builddir@
&$ac_builddir&;t t
17205 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17206 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17207 s
&@INSTALL@
&$ac_INSTALL&;t t
17208 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17209 $ac_datarootdir_hack
17211 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17212 if $ac_cs_awk_getline; then
17213 $AWK -f "$tmp/subs.
awk"
17215 $AWK -f "$tmp/subs.
awk" | $SHELL
17217 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17219 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17220 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17221 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17223 which seems to be undefined. Please make sure it is defined." >&5
17224 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17225 which seems to be undefined. Please make sure it is defined." >&2;}
17229 -) cat "$tmp/out" && rm -f "$tmp/out";;
17230 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17232 || as_fn_error "could not create $ac_file" "$LINENO" 5
17238 if test x"$ac_file" != x-; then
17240 $as_echo "/* $configure_input */" \
17241 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17242 } >"$tmp/config.h" \
17243 || as_fn_error "could not create $ac_file" "$LINENO" 5
17244 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17246 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17249 mv "$tmp/config.h" "$ac_file" \
17250 || as_fn_error "could not create $ac_file" "$LINENO" 5
17253 $as_echo "/* $configure_input */" \
17254 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17255 || as_fn_error "could not create -" "$LINENO" 5
17257 # Compute "$ac_file"'s index
in $config_headers.
17260 for _am_header
in $config_headers :; do
17261 case $_am_header in
17262 $_am_arg |
$_am_arg:* )
17265 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17268 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17269 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17270 X"$_am_arg" : 'X\(//\)[^/]' \| \
17271 X"$_am_arg" : 'X\(//\)$' \| \
17272 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17273 $as_echo X"$_am_arg" |
17274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17278 /^X\(\/\/\)[^/].*/{
17290 s/.*/./; q'`/stamp-h
$_am_stamp_count
17297 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17300 # Prefer the file from the source tree if names are identical.
17301 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
17302 ac_source
=$srcdir/$ac_source
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17306 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17308 if test ! -r "$ac_source"; then
17309 as_fn_error
"$ac_source: file not found" "$LINENO" 5
17313 # Try a relative symlink, then a hard link, then a copy.
17315 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
17316 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
17318 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
17319 ln "$ac_source" "$ac_file" 2>/dev
/null ||
17320 cp -p "$ac_source" "$ac_file" ||
17321 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17324 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17325 $as_echo "$as_me: executing $ac_file commands" >&6;}
17330 case $ac_file$ac_mode in
17331 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
17332 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17333 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17334 # are listed without --file. Let's play safe and only enable the eval
17335 # if we detect the quoting.
17336 case $CONFIG_FILES in
17337 *\'*) eval set x
"$CONFIG_FILES" ;;
17338 *) set x
$CONFIG_FILES ;;
17343 # Strip MF so we end up with the name of the file.
17344 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17345 # Check whether this is an Automake generated Makefile or not.
17346 # We used to match only the files named `Makefile.in', but
17347 # some people rename them; so instead we look at the file content.
17348 # Grep'ing the first line is not enough: some people post-process
17349 # each Makefile.in and add a new line on top of each file to say so.
17350 # Grep'ing the whole file is not good either: AIX grep has a line
17351 # limit of 2048, but all sed's we know have understand at least 4000.
17352 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17353 dirpart
=`$as_dirname -- "$mf" ||
17354 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17355 X"$mf" : 'X\(//\)[^/]' \| \
17356 X"$mf" : 'X\(//\)$' \| \
17357 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17363 /^X\(\/\/\)[^/].*/{
17379 # Extract the definition of DEPDIR, am__include, and am__quote
17380 # from the Makefile without running `make'.
17381 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17382 test -z "$DEPDIR" && continue
17383 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17384 test -z "am__include" && continue
17385 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17386 # When using ansi2knr, U may be empty or an underscore; expand it
17387 U
=`sed -n 's/^U = //p' < "$mf"`
17388 # Find all dependency output files, they are included files with
17389 # $(DEPDIR) in their names. We invoke sed twice because it is the
17390 # simplest approach to changing $(DEPDIR) to its actual value in the
17392 for file in `sed -n "
17393 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17394 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17395 # Make sure the directory exists.
17396 test -f "$dirpart/$file" && continue
17397 fdir
=`$as_dirname -- "$file" ||
17398 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17399 X"$file" : 'X\(//\)[^/]' \| \
17400 X"$file" : 'X\(//\)$' \| \
17401 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17402 $as_echo X"$file" |
17403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17407 /^X\(\/\/\)[^/].*/{
17420 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17421 # echo "creating $dirpart/$file"
17422 echo '# dummy' > "$dirpart/$file"
17428 case x
$CONFIG_HEADERS in
17429 xconfig.h
:config.
in)
17440 ac_clean_files
=$ac_clean_files_save
17442 test $ac_write_fail = 0 ||
17443 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17446 # configure is writing to config.log, and then calls config.status.
17447 # config.status does its own redirection, appending to config.log.
17448 # Unfortunately, on DOS this fails, as config.log is still kept open
17449 # by configure, so config.status won't be able to write to it; its
17450 # output is simply discarded. So we exec the FD to /dev/null,
17451 # effectively closing config.log, so it can be properly (re)opened and
17452 # appended to by config.status. When coming back to configure, we
17453 # need to make the FD available again.
17454 if test "$no_create" != yes; then
17456 ac_config_status_args
=
17457 test "$silent" = yes &&
17458 ac_config_status_args
="$ac_config_status_args --quiet"
17460 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17462 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17463 # would make configure fail if this is the last instruction.
17464 $ac_cs_success || as_fn_exit $?
17468 # CONFIG_SUBDIRS section.
17470 if test "$no_recursion" != yes; then
17472 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17473 # so they do not pile up.
17474 ac_sub_configure_args
=
17476 eval "set x $ac_configure_args"
17480 if test -n "$ac_prev"; then
17485 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17486 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17487 ac_prev
=cache_file
;;
17488 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17489 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17492 --config-cache |
-C)
17494 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17496 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17498 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17500 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17502 --disable-option-checking)
17506 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17508 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
17512 # Always prepend --prefix to ensure using the same prefix
17513 # in subdir configurations.
17514 ac_arg
="--prefix=$prefix"
17516 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17518 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
17521 if test "$silent" = yes; then
17522 ac_sub_configure_args
="--silent $ac_sub_configure_args"
17525 # Always prepend --disable-option-checking to silence warnings, since
17526 # different subdirs can have different --enable and --with options.
17527 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
17530 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17532 # Do not complain, so a configure script can configure whichever
17533 # parts of a large source tree are present.
17534 test -d "$srcdir/$ac_dir" ||
continue
17536 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17537 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17538 $as_echo "$ac_msg" >&6
17539 as_dir
="$ac_dir"; as_fn_mkdir_p
17543 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17545 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17546 # A ".." for each directory in $ac_dir_suffix.
17547 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17548 case $ac_top_builddir_sub in
17549 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17550 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17553 ac_abs_top_builddir
=$ac_pwd
17554 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17555 # for backward compatibility:
17556 ac_top_builddir
=$ac_top_build_prefix
17559 .
) # We are building in place.
17561 ac_top_srcdir
=$ac_top_builddir_sub
17562 ac_abs_top_srcdir
=$ac_pwd ;;
17563 [\\/]* | ?
:[\\/]* ) # Absolute name.
17564 ac_srcdir
=$srcdir$ac_dir_suffix;
17565 ac_top_srcdir
=$srcdir
17566 ac_abs_top_srcdir
=$srcdir ;;
17567 *) # Relative name.
17568 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17569 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17570 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17572 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17577 # Check for guested configure; otherwise get Cygnus style configure.
17578 if test -f "$ac_srcdir/configure.gnu"; then
17579 ac_sub_configure
=$ac_srcdir/configure.gnu
17580 elif test -f "$ac_srcdir/configure"; then
17581 ac_sub_configure
=$ac_srcdir/configure
17582 elif test -f "$ac_srcdir/configure.in"; then
17583 # This should be Cygnus configure.
17584 ac_sub_configure
=$ac_aux_dir/configure
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17591 # The recursion is here.
17592 if test -n "$ac_sub_configure"; then
17593 # Make the cache file name correct relative to the subdirectory.
17594 case $cache_file in
17595 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
17596 *) # Relative name.
17597 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
17600 { $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
17601 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17602 # The eval makes quoting arguments work.
17603 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17604 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17605 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17611 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17613 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}