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
697 INSTALL_STRIP_PROGRAM
718 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
754 NEXT_AS_FIRST_DIRECTIVE_STRING_H
764 HAVE_SIGNED_SIG_ATOMIC_T
767 BITSIZEOF_SIG_ATOMIC_T
773 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
777 HAVE_UNSIGNED_LONG_LONG_INT
779 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
782 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
787 APPLE_UNIVERSAL_BUILD
853 GL_COND_LIBTOOL_FALSE
898 MAINTAINER_MODE_FALSE
927 program_transform_name
938 ac_subst_files='host_makefile_frag'
940 enable_option_checking
941 enable_maintainer_mode
944 enable_dependency_tracking
945 with_separate_debug_dir
947 with_relocated_sources
971 enable_build_warnings
972 enable_gdb_build_warnings
980 ac_precious_vars='build_alias
992 ac_subdirs_all='doc testsuite
997 # Initialize some variables set by options.
999 ac_init_version=false
1000 ac_unrecognized_opts=
1001 ac_unrecognized_sep=
1002 # The variables have the same names as the options, with
1003 # dashes changed to underlines.
1004 cache_file=/dev/null
1011 program_transform_name=s,x,x,
1019 # Installation directory options.
1020 # These are left unexpanded so users can "make install exec_prefix=/foo"
1021 # and all the variables that are supposed to be based on exec_prefix
1022 # by default will actually change.
1023 # Use braces instead of parens because sh, perl, etc. also accept them.
1024 # (The list follows the same order as the GNU Coding Standards.)
1025 bindir='${exec_prefix}/bin'
1026 sbindir='${exec_prefix}/sbin'
1027 libexecdir='${exec_prefix}/libexec'
1028 datarootdir='${prefix}/share'
1029 datadir='${datarootdir}'
1030 sysconfdir='${prefix}/etc'
1031 sharedstatedir='${prefix}/com'
1032 localstatedir='${prefix}/var'
1033 includedir='${prefix}/include'
1034 oldincludedir='/usr/include'
1035 docdir='${datarootdir}/doc/${PACKAGE}'
1036 infodir='${datarootdir}/info'
1041 libdir='${exec_prefix}/lib'
1042 localedir='${datarootdir}/locale'
1043 mandir='${datarootdir}/man'
1049 # If the previous option needs an argument, assign it.
1050 if test -n "$ac_prev"; then
1051 eval $ac_prev=\$ac_option
1057 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1061 # Accept the important Cygnus configure options, so we can diagnose typos.
1063 case $ac_dashdash$ac_option in
1067 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1069 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1070 bindir=$ac_optarg ;;
1072 -build | --build | --buil | --bui | --bu)
1073 ac_prev=build_alias ;;
1074 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1075 build_alias=$ac_optarg ;;
1077 -cache-file | --cache-file | --cache-fil | --cache-fi \
1078 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1079 ac_prev=cache_file ;;
1080 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1081 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1082 cache_file=$ac_optarg ;;
1084 --config-cache | -C)
1085 cache_file=config.cache ;;
1087 -datadir | --datadir | --datadi | --datad)
1089 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1090 datadir=$ac_optarg ;;
1092 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1093 | --dataroo | --dataro | --datar)
1094 ac_prev=datarootdir ;;
1095 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1096 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1097 datarootdir=$ac_optarg ;;
1099 -disable-* | --disable-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid feature name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1108 "enable_$ac_useropt"
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1113 eval enable_$ac_useropt=no ;;
1115 -docdir | --docdir | --docdi | --doc | --do)
1117 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1118 docdir=$ac_optarg ;;
1120 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1122 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1123 dvidir=$ac_optarg ;;
1125 -enable-* | --enable-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error "invalid feature name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1134 "enable_$ac_useropt"
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1139 eval enable_$ac_useropt=\$ac_optarg ;;
1141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1143 | --exec | --exe | --ex)
1144 ac_prev=exec_prefix ;;
1145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1147 | --exec=* | --exe=* | --ex=*)
1148 exec_prefix=$ac_optarg ;;
1150 -gas | --gas | --ga | --g)
1151 # Obsolete; use --with-gas.
1154 -help | --help | --hel | --he | -h)
1155 ac_init_help=long ;;
1156 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1157 ac_init_help=recursive ;;
1158 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1159 ac_init_help=short ;;
1161 -host | --host | --hos | --ho)
1162 ac_prev=host_alias ;;
1163 -host=* | --host=* | --hos=* | --ho=*)
1164 host_alias=$ac_optarg ;;
1166 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1168 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1170 htmldir=$ac_optarg ;;
1172 -includedir | --includedir | --includedi | --included | --include \
1173 | --includ | --inclu | --incl | --inc)
1174 ac_prev=includedir ;;
1175 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1176 | --includ=* | --inclu=* | --incl=* | --inc=*)
1177 includedir=$ac_optarg ;;
1179 -infodir | --infodir | --infodi | --infod | --info | --inf)
1181 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1182 infodir=$ac_optarg ;;
1184 -libdir | --libdir | --libdi | --libd)
1186 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1187 libdir=$ac_optarg ;;
1189 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1190 | --libexe | --libex | --libe)
1191 ac_prev=libexecdir ;;
1192 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1193 | --libexe=* | --libex=* | --libe=*)
1194 libexecdir=$ac_optarg ;;
1196 -localedir | --localedir | --localedi | --localed | --locale)
1197 ac_prev=localedir ;;
1198 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1199 localedir=$ac_optarg ;;
1201 -localstatedir | --localstatedir | --localstatedi | --localstated \
1202 | --localstate | --localstat | --localsta | --localst | --locals)
1203 ac_prev=localstatedir ;;
1204 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1205 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1206 localstatedir=$ac_optarg ;;
1208 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1210 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1211 mandir=$ac_optarg ;;
1213 -nfp | --nfp | --nf)
1214 # Obsolete; use --without-fp.
1217 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1218 | --no-cr | --no-c | -n)
1221 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1222 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1225 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1226 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1227 | --oldin | --oldi | --old | --ol | --o)
1228 ac_prev=oldincludedir ;;
1229 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1230 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1231 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1232 oldincludedir=$ac_optarg ;;
1234 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1236 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1237 prefix=$ac_optarg ;;
1239 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1240 | --program-pre | --program-pr | --program-p)
1241 ac_prev=program_prefix ;;
1242 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1243 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1244 program_prefix=$ac_optarg ;;
1246 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1247 | --program-suf | --program-su | --program-s)
1248 ac_prev=program_suffix ;;
1249 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1250 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1251 program_suffix=$ac_optarg ;;
1253 -program-transform-name | --program-transform-name \
1254 | --program-transform-nam | --program-transform-na \
1255 | --program-transform-n | --program-transform- \
1256 | --program-transform | --program-transfor \
1257 | --program-transfo | --program-transf \
1258 | --program-trans | --program-tran \
1259 | --progr-tra | --program-tr | --program-t)
1260 ac_prev=program_transform_name ;;
1261 -program-transform-name=* | --program-transform-name=* \
1262 | --program-transform-nam=* | --program-transform-na=* \
1263 | --program-transform-n=* | --program-transform-=* \
1264 | --program-transform=* | --program-transfor=* \
1265 | --program-transfo=* | --program-transf=* \
1266 | --program-trans=* | --program-tran=* \
1267 | --progr-tra=* | --program-tr=* | --program-t=*)
1268 program_transform_name=$ac_optarg ;;
1270 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1272 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1273 pdfdir=$ac_optarg ;;
1275 -psdir | --psdir | --psdi | --psd | --ps)
1277 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281 | -silent | --silent | --silen | --sile | --sil)
1284 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1286 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1288 sbindir=$ac_optarg ;;
1290 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1291 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1292 | --sharedst | --shareds | --shared | --share | --shar \
1294 ac_prev=sharedstatedir ;;
1295 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1296 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1297 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1299 sharedstatedir=$ac_optarg ;;
1301 -site | --site | --sit)
1303 -site=* | --site=* | --sit=*)
1306 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1308 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1309 srcdir=$ac_optarg ;;
1311 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1312 | --syscon | --sysco | --sysc | --sys | --sy)
1313 ac_prev=sysconfdir ;;
1314 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1315 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1316 sysconfdir=$ac_optarg ;;
1318 -target | --target | --targe | --targ | --tar | --ta | --t)
1319 ac_prev=target_alias ;;
1320 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1321 target_alias=$ac_optarg ;;
1323 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1326 -version | --version | --versio | --versi | --vers | -V)
1327 ac_init_version=: ;;
1330 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333 as_fn_error "invalid package name: $ac_useropt"
1334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1343 eval with_$ac_useropt=\$ac_optarg ;;
1345 -without-* | --without-*)
1346 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1349 as_fn_error "invalid package name: $ac_useropt"
1350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1359 eval with_$ac_useropt=no ;;
1362 # Obsolete; use --with-x.
1365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1366 | --x-incl | --x-inc | --x-in | --x-i)
1367 ac_prev=x_includes ;;
1368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1370 x_includes=$ac_optarg ;;
1372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1374 ac_prev=x_libraries ;;
1375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1377 x_libraries=$ac_optarg ;;
1379 -*) as_fn_error "unrecognized option: \`$ac_option'
1380 Try \`$0 --help' for more information."
1384 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1385 # Reject names that are not valid shell variable names.
1386 case $ac_envvar in #(
1387 '' | [0-9]* | *[!_$as_cr_alnum]* )
1388 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1390 eval $ac_envvar=\$ac_optarg
1391 export $ac_envvar ;;
1394 # FIXME: should be removed in autoconf 3.0.
1395 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1396 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1398 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1404 if test -n "$ac_prev"; then
1405 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1406 as_fn_error "missing argument to $ac_option"
1409 if test -n "$ac_unrecognized_opts"; then
1410 case $enable_option_checking in
1412 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1413 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1417 # Check all directory arguments for consistency.
1418 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1419 datadir sysconfdir sharedstatedir localstatedir includedir \
1420 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1421 libdir localedir mandir
1423 eval ac_val=\$$ac_var
1424 # Remove trailing slashes.
1427 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1428 eval $ac_var=\$ac_val;;
1430 # Be sure to have absolute directory names.
1432 [\\/$]* | ?:[\\/]* ) continue;;
1433 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1435 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1438 # There might be people who depend on the old broken behavior: `$host'
1439 # used to hold the argument of --host etc.
1440 # FIXME: To remove some day.
1443 target=$target_alias
1445 # FIXME: To remove some day.
1446 if test "x$host_alias" != x; then
1447 if test "x$build_alias" = x; then
1448 cross_compiling=maybe
1449 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1450 If a cross compiler is detected then cross compile mode will be used." >&2
1451 elif test "x$build_alias" != "x$host_alias"; then
1457 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1459 test "$silent" = yes && exec 6>/dev/null
1462 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1463 ac_ls_di=`ls -di .` &&
1464 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1465 as_fn_error "working directory cannot be determined"
1466 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1467 as_fn_error "pwd does not report name of working directory"
1470 # Find the source files, if location was not specified.
1471 if test -z "$srcdir"; then
1472 ac_srcdir_defaulted=yes
1473 # Try the directory containing this script, then the parent directory.
1474 ac_confdir=`$as_dirname -- "$as_myself" ||
1475 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1476 X"$as_myself" : 'X\(//\)[^/]' \| \
1477 X"$as_myself" : 'X\(//\)$' \| \
1478 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1479 $as_echo X"$as_myself" |
1480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1498 if test ! -r "$srcdir/$ac_unique_file"; then
1502 ac_srcdir_defaulted=no
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1505 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1506 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1508 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1510 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1512 # When building in place, set srcdir=.
1513 if test "$ac_abs_confdir" = "$ac_pwd"; then
1516 # Remove unnecessary trailing slashes from srcdir.
1517 # Double slashes in file names in object file debugging info
1518 # mess up M-x gdb in Emacs.
1520 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1522 for ac_var in $ac_precious_vars; do
1523 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1524 eval ac_env_${ac_var}_value=\$${ac_var}
1525 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1526 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1530 # Report the --help message.
1532 if test "$ac_init_help" = "long"; then
1533 # Omit some internal or obsolete options to make the list less imposing.
1534 # This message is too long to be a string in the A/UX 3.1 sh.
1536 \`configure' configures this package to adapt to many kinds of systems.
1538 Usage: $0 [OPTION]... [VAR=VALUE]...
1540 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1541 VAR=VALUE. See below for descriptions of some of the useful variables.
1543 Defaults for the options are specified in brackets.
1546 -h, --help display this help and exit
1547 --help=short display options specific to this package
1548 --help=recursive display the short help of all the included packages
1549 -V, --version display version information and exit
1550 -q, --quiet, --silent do not print \`checking...' messages
1551 --cache-file=FILE cache test results in FILE [disabled]
1552 -C, --config-cache alias for \`--cache-file=config.cache'
1553 -n, --no-create do not create output files
1554 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1556 Installation directories:
1557 --prefix=PREFIX install architecture-independent files in PREFIX
1558 [$ac_default_prefix]
1559 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1562 By default, \`make install' will install all the files in
1563 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1564 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1565 for instance \`--prefix=\$HOME'.
1567 For better control, use the options below.
1569 Fine tuning of the installation directories:
1570 --bindir=DIR user executables [EPREFIX/bin]
1571 --sbindir=DIR system admin executables [EPREFIX/sbin]
1572 --libexecdir=DIR program executables [EPREFIX/libexec]
1573 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1574 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1575 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1576 --libdir=DIR object code libraries [EPREFIX/lib]
1577 --includedir=DIR C header files [PREFIX/include]
1578 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1579 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1580 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1581 --infodir=DIR info documentation [DATAROOTDIR/info]
1582 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1583 --mandir=DIR man documentation [DATAROOTDIR/man]
1584 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1585 --htmldir=DIR html documentation [DOCDIR]
1586 --dvidir=DIR dvi documentation [DOCDIR]
1587 --pdfdir=DIR pdf documentation [DOCDIR]
1588 --psdir=DIR ps documentation [DOCDIR]
1594 --program-prefix=PREFIX prepend PREFIX to installed program names
1595 --program-suffix=SUFFIX append SUFFIX to installed program names
1596 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1599 --x-includes=DIR X include files are in DIR
1600 --x-libraries=DIR X library files are in DIR
1603 --build=BUILD configure for building on BUILD [guessed]
1604 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1605 --target=TARGET configure for building compilers for TARGET [HOST]
1609 if test -n "$ac_init_help"; then
1614 --disable-option-checking ignore unrecognized --enable/--with options
1615 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1616 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1617 --enable-maintainer-mode enable make rules and dependencies not useful
1618 (and sometimes confusing) to the casual installer
1619 --enable-plugins Enable support for plugins (defaults no)
1620 --disable-largefile omit support for large files
1621 --disable-dependency-tracking speeds up one-time build
1622 --enable-dependency-tracking do not reject slow dependency extractors
1623 --enable-targets=TARGETS
1624 alternative target configurations
1625 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1626 --disable-gdbcli disable command-line interface (CLI)
1627 --disable-gdbmi disable machine-interface (MI)
1628 --enable-tui enable full-screen terminal user interface (TUI)
1629 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1630 --enable-profiling enable profiling of GDB
1631 --disable-rpath do not hardcode runtime library paths
1632 --enable-werror treat compile warnings as errors
1633 --enable-build-warnings enable build-time compiler warnings if gcc is used
1634 --enable-gdb-build-warnings
1635 enable GDB specific build-time compiler warnings if
1637 --enable-sim link gdb with simulator
1638 --enable-multi-ice build the multi-ice-gdb-server
1639 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1643 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1644 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1645 --with-separate-debug-dir=PATH
1646 look for global separate debug info in this path
1648 --with-gdb-datadir=PATH look for global separate data files in this path
1650 --with-relocated-sources=PATH
1651 automatically relocate this path for source files
1652 --with-libunwind use libunwind frame unwinding support
1653 --with-curses use the curses library instead of the termcap
1655 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1656 --with-bugurl=URL Direct users to URL to report a bug
1657 --with-zlib include zlib support (auto/yes/no) default=auto
1658 --with-libiconv-prefix=DIR
1659 search for libiconv in DIR/include and DIR/lib
1660 --with-system-readline use installed readline library
1661 --with-expat include expat support (auto/yes/no)
1662 --with-gnu-ld assume the C compiler uses GNU ld default=no
1663 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1664 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1665 --with-python[=PYTHON] include python support
1666 (auto/yes/no/<python-program>)
1667 --without-included-regex
1668 don't use included regex; this is the default on
1669 systems with version 2 of the GNU C library (use
1670 with caution on other system)
1671 --with-sysroot[=DIR] search for usr/lib et al within DIR
1672 --with-system-gdbinit=PATH
1673 automatically load a system-wide gdbinit file
1674 --with-tcl directory containing tcl configuration (tclConfig.sh)
1675 --with-tk directory containing tk configuration (tkConfig.sh)
1676 --with-x use the X Window System
1678 Some influential environment variables:
1679 CC C compiler command
1680 CFLAGS C compiler flags
1681 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1682 nonstandard directory <lib dir>
1683 LIBS libraries to pass to the linker, e.g. -l<library>
1684 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1685 you have headers in a nonstandard directory <include dir>
1687 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1688 the first program found out of: `bison -y', `byacc', `yacc'.
1689 YFLAGS The list of arguments that will be passed by default to $YACC.
1690 This script will default YFLAGS to the empty string to avoid a
1691 default value of `-d' given by some make applications.
1692 XMKMF Path to xmkmf, Makefile generator for X Window System
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1697 Report bugs to the package provider.
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1727 .) # We are building in place.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1761 generated by GNU Autoconf 2.64
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 } # ac_fn_c_try_compile
1812 # ac_fn_c_try_cpp LINENO
1813 # ----------------------
1814 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_cpp conftest.$ac_ext"
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } >/dev/null && {
1834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1850 # -------------------------------------------------------
1851 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1852 # the include files in INCLUDES and setting the cache variable VAR
1854 ac_fn_c_check_header_mongrel ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1867 # Is the header compilable?
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1869 $as_echo_n "checking $2 usability... " >&6; }
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876 ac_header_compiler=yes
1878 ac_header_compiler=no
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1882 $as_echo "$ac_header_compiler" >&6; }
1884 # Is the header present?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1886 $as_echo_n "checking $2 presence... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1891 if ac_fn_c_try_cpp "$LINENO"; then :
1892 ac_header_preproc=yes
1894 ac_header_preproc=no
1896 rm -f conftest.err conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1898 $as_echo "$ac_header_preproc" >&6; }
1900 # So? What about this header?
1901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1904 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1910 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1912 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1914 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1916 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1926 eval "$3=\$ac_header_compiler"
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1934 } # ac_fn_c_check_header_mongrel
1936 # ac_fn_c_try_run LINENO
1937 # ----------------------
1938 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1939 # that executables *can* be run.
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if { { ac_try="$ac_link"
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>&5
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1954 { { case "(($ac_try" in
1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956 *) ac_try_echo=$ac_try;;
1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959 $as_echo "$ac_try_echo"; } >&5
1960 (eval "$ac_try") 2>&5
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; }; }; then :
1966 $as_echo "$as_me: program exited with status $ac_status" >&5
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1970 ac_retval=$ac_status
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1979 # -------------------------------------------------------
1980 # Tests whether HEADER exists and can be compiled using the include files in
1981 # INCLUDES, setting the cache variable VAR accordingly.
1982 ac_fn_c_check_header_compile ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 $as_echo_n "(cached) " >&6
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1995 if ac_fn_c_try_compile "$LINENO"; then :
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2007 } # ac_fn_c_check_header_compile
2009 # ac_fn_c_try_link LINENO
2010 # -----------------------
2011 # Try to link conftest.$ac_ext, and return whether this succeeded.
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 rm -f conftest.$ac_objext conftest$ac_exeext
2016 if { { ac_try="$ac_link"
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_link") 2>conftest.err
2025 if test -s conftest.err; then
2026 grep -v '^ *+' conftest.err >conftest.er1
2027 cat conftest.er1 >&5
2028 mv -f conftest.er1 conftest.err
2030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2031 test $ac_status = 0; } && {
2032 test -z "$ac_c_werror_flag" ||
2033 test ! -s conftest.err
2034 } && test -s conftest$ac_exeext && {
2035 test "$cross_compiling" = yes ||
2036 $as_test_x conftest$ac_exeext
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2045 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2046 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2047 # interfere with the next link command; also delete a directory that is
2048 # left behind by Apple's compiler. We do this before executing the actions.
2049 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053 } # ac_fn_c_try_link
2055 # ac_fn_c_check_func LINENO FUNC VAR
2056 # ----------------------------------
2057 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2058 ac_fn_c_check_func ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2064 $as_echo_n "(cached) " >&6
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2068 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2070 #define $2 innocuous_$2
2072 /* System header to define __stub macros and hopefully few prototypes,
2073 which can conflict with char $2 (); below.
2074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2075 <limits.h> exists even on freestanding compilers. */
2078 # include <limits.h>
2080 # include <assert.h>
2085 /* Override any GCC internal prototype to avoid an error.
2086 Use char because int might match the return type of a GCC
2087 builtin and then its argument prototype would still apply. */
2092 /* The GNU C library defines this for functions which it implements
2093 to always fail with ENOSYS. Some functions are actually named
2094 something starting with __ and the normal name is an alias. */
2095 #if defined __stub_$2 || defined __stub___$2
2107 if ac_fn_c_try_link "$LINENO"; then :
2112 rm -f core conftest.err conftest.$ac_objext \
2113 conftest$ac_exeext conftest.$ac_ext
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117 $as_echo "$ac_res" >&6; }
2118 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120 } # ac_fn_c_check_func
2122 # ac_fn_c_check_decl LINENO SYMBOL VAR
2123 # ------------------------------------
2124 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2125 ac_fn_c_check_decl ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 as_decl_name=`echo $2|sed 's/ *(.*//'`
2129 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2131 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2132 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2133 $as_echo_n "(cached) " >&6
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2141 #ifndef $as_decl_name
2143 (void) $as_decl_use;
2145 (void) $as_decl_name;
2153 if ac_fn_c_try_compile "$LINENO"; then :
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2165 } # ac_fn_c_check_decl
2167 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2168 # --------------------------------------------
2169 # Tries to find the compile-time value of EXPR in a program that includes
2170 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2172 ac_fn_c_compute_int ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 if test "$cross_compiling" = yes; then
2176 # Depending upon the size, compute the lo and hi bounds.
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2183 static int test_array [1 - 2 * !(($2) >= 0)];
2190 if ac_fn_c_try_compile "$LINENO"; then :
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2199 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207 ac_hi=$ac_mid; break
2209 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2210 if test $ac_lo -le $ac_mid; then
2214 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2225 static int test_array [1 - 2 * !(($2) < 0)];
2232 if ac_fn_c_try_compile "$LINENO"; then :
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2241 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_lo=$ac_mid; break
2251 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2252 if test $ac_mid -le $ac_hi; then
2256 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 # Binary search between lo and hi bounds.
2267 while test "x$ac_lo" != "x$ac_hi"; do
2268 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2275 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2282 if ac_fn_c_try_compile "$LINENO"; then :
2285 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2297 static long int longval () { return $2; }
2298 static unsigned long int ulongval () { return $2; }
2305 FILE *f = fopen ("conftest.val", "w");
2310 long int i = longval ();
2313 fprintf (f, "%ld", i);
2317 unsigned long int i = ulongval ();
2320 fprintf (f, "%lu", i);
2322 /* Do not output a trailing newline, as this causes \r\n confusion
2323 on some platforms. */
2324 return ferror (f) || fclose (f) != 0;
2330 if ac_fn_c_try_run "$LINENO"; then :
2331 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2336 conftest.$ac_objext conftest.beam conftest.$ac_ext
2340 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2343 } # ac_fn_c_compute_int
2345 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2346 # ----------------------------------------------------
2347 # Tries to find if the field MEMBER exists in type AGGR, after including
2348 # INCLUDES, setting cache variable VAR accordingly.
2349 ac_fn_c_check_member ()
2351 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2353 $as_echo_n "checking for $2.$3... " >&6; }
2354 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2355 $as_echo_n "(cached) " >&6
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2370 if ac_fn_c_try_compile "$LINENO"; then :
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2380 if (sizeof ac_aggr.$3)
2386 if ac_fn_c_try_compile "$LINENO"; then :
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397 $as_echo "$ac_res" >&6; }
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400 } # ac_fn_c_check_member
2402 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2403 # -------------------------------------------
2404 # Tests whether TYPE exists after having included INCLUDES, setting cache
2405 # variable VAR accordingly.
2406 ac_fn_c_check_type ()
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2412 $as_echo_n "(cached) " >&6
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2427 if ac_fn_c_try_compile "$LINENO"; then :
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2440 if ac_fn_c_try_compile "$LINENO"; then :
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2454 } # ac_fn_c_check_type
2455 cat >config.log <<_ACEOF
2456 This file contains any messages produced by compilers while
2457 running configure, to aid debugging if configure makes a mistake.
2459 It was created by $as_me, which was
2460 generated by GNU Autoconf 2.64. Invocation command line was
2472 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2479 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2481 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2482 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2483 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2484 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2485 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2486 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2487 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 test -z "$as_dir" && as_dir=.
2496 $as_echo "PATH: $as_dir"
2512 # Keep a trace of the command line.
2513 # Strip out --no-create and --no-recursion so they do not pile up.
2514 # Strip out --silent because we don't want to record it for future runs.
2515 # Also quote any args containing shell meta-characters.
2516 # Make two passes to allow for proper duplicate-argument suppression.
2520 ac_must_keep_next=false
2526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2528 | -silent | --silent | --silen | --sile | --sil)
2531 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2534 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2536 as_fn_append ac_configure_args1 " '$ac_arg'"
2537 if test $ac_must_keep_next = true; then
2538 ac_must_keep_next=false # Got value, back to normal.
2541 *=* | --config-cache | -C | -disable-* | --disable-* \
2542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2544 | -with-* | --with-* | -without-* | --without-* | --x)
2545 case "$ac_configure_args0 " in
2546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2549 -* ) ac_must_keep_next=true ;;
2552 as_fn_append ac_configure_args " '$ac_arg'"
2557 { ac_configure_args0=; unset ac_configure_args0;}
2558 { ac_configure_args1=; unset ac_configure_args1;}
2560 # When interrupted or exit'd, cleanup temporary files, and complete
2561 # config.log. We remove comments because anyway the quotes in there
2562 # would cause problems or look ugly.
2563 # WARNING: Use '\'' to represent an apostrophe within the trap.
2564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2565 trap 'exit_status=$?
2566 # Save into config.log some information that might help in debugging.
2571 ## ---------------- ##
2572 ## Cache variables. ##
2573 ## ---------------- ##
2576 # The following way of writing the cache mishandles newlines in values,
2578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2579 eval ac_val=\$$ac_var
2583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2584 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2587 _ | IFS | as_nl) ;; #(
2588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2589 *) { eval $ac_var=; unset $ac_var;} ;;
2594 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2595 *${as_nl}ac_space=\ *)
2597 "s/'\''/'\''\\\\'\'''\''/g;
2598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2609 ## ----------------- ##
2610 ## Output variables. ##
2611 ## ----------------- ##
2614 for ac_var in $ac_subst_vars
2616 eval ac_val=\$$ac_var
2618 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2620 $as_echo "$ac_var='\''$ac_val'\''"
2624 if test -n "$ac_subst_files"; then
2626 ## ------------------- ##
2627 ## File substitutions. ##
2628 ## ------------------- ##
2631 for ac_var in $ac_subst_files
2633 eval ac_val=\$$ac_var
2635 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2637 $as_echo "$ac_var='\''$ac_val'\''"
2642 if test -s confdefs.h; then
2652 test "$ac_signal" != 0 &&
2653 $as_echo "$as_me: caught signal $ac_signal"
2654 $as_echo "$as_me: exit $exit_status"
2656 rm -f core *.core core.conftest.* &&
2657 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2660 for ac_signal in 1 2 13 15; do
2661 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2665 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2666 rm -f -r conftest* confdefs.h
2668 $as_echo "/* confdefs.h */" > confdefs.h
2670 # Predefined preprocessor variables.
2672 cat >>confdefs.h <<_ACEOF
2673 #define PACKAGE_NAME "$PACKAGE_NAME"
2676 cat >>confdefs.h <<_ACEOF
2677 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2680 cat >>confdefs.h <<_ACEOF
2681 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2684 cat >>confdefs.h <<_ACEOF
2685 #define PACKAGE_STRING "$PACKAGE_STRING"
2688 cat >>confdefs.h <<_ACEOF
2689 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2692 cat >>confdefs.h <<_ACEOF
2693 #define PACKAGE_URL "$PACKAGE_URL"
2697 # Let the site file select an alternate cache file if it wants to.
2698 # Prefer an explicitly selected file to automatically selected ones.
2701 if test -n "$CONFIG_SITE"; then
2702 ac_site_file1=$CONFIG_SITE
2703 elif test "x$prefix" != xNONE; then
2704 ac_site_file1=$prefix/share/config.site
2705 ac_site_file2=$prefix/etc/config.site
2707 ac_site_file1=$ac_default_prefix/share/config.site
2708 ac_site_file2=$ac_default_prefix/etc/config.site
2710 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2712 test "x$ac_site_file" = xNONE && continue
2713 if test -r "$ac_site_file"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2715 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2716 sed 's/^/| /' "$ac_site_file" >&5
2721 if test -r "$cache_file"; then
2722 # Some versions of bash will fail to source /dev/null (special
2723 # files actually), so we avoid doing that.
2724 if test -f "$cache_file"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2726 $as_echo "$as_me: loading cache $cache_file" >&6;}
2728 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2729 *) . "./$cache_file";;
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2734 $as_echo "$as_me: creating cache $cache_file" >&6;}
2738 gl_header_list="$gl_header_list sys/mman.h"
2739 gl_func_list="$gl_func_list mprotect"
2740 gl_func_list="$gl_func_list memchr"
2741 gl_header_list="$gl_header_list stddef.h"
2742 gl_header_list="$gl_header_list stdint.h"
2743 gl_header_list="$gl_header_list wchar.h"
2744 gl_header_list="$gl_header_list string.h"
2745 # Check that the precious variables saved in the cache have kept the same
2747 ac_cache_corrupted=false
2748 for ac_var in $ac_precious_vars; do
2749 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2750 eval ac_new_set=\$ac_env_${ac_var}_set
2751 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2752 eval ac_new_val=\$ac_env_${ac_var}_value
2753 case $ac_old_set,$ac_new_set in
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2756 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2757 ac_cache_corrupted=: ;;
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2760 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2761 ac_cache_corrupted=: ;;
2764 if test "x$ac_old_val" != "x$ac_new_val"; then
2765 # differences in whitespace do not lead to failure.
2766 ac_old_val_w=`echo x $ac_old_val`
2767 ac_new_val_w=`echo x $ac_new_val`
2768 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2770 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2771 ac_cache_corrupted=:
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2774 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2775 eval $ac_var=\$ac_old_val
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2778 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2780 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2783 # Pass precious variables to config.status.
2784 if test "$ac_new_set" = set; then
2786 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2787 *) ac_arg=$ac_var=$ac_new_val ;;
2789 case " $ac_configure_args " in
2790 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2791 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2795 if $ac_cache_corrupted; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2799 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2800 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2802 ## -------------------- ##
2803 ## Main body of script. ##
2804 ## -------------------- ##
2807 ac_cpp='$CPP $CPPFLAGS'
2808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816 ac_config_headers="$ac_config_headers config.h:config.in"
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2820 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2821 # Check whether --enable-maintainer-mode was given.
2822 if test "${enable_maintainer_mode+set}" = set; then :
2823 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2825 USE_MAINTAINER_MODE=no
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2829 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2830 if test $USE_MAINTAINER_MODE = yes; then
2831 MAINTAINER_MODE_TRUE=
2832 MAINTAINER_MODE_FALSE='#'
2834 MAINTAINER_MODE_TRUE='#'
2835 MAINTAINER_MODE_FALSE=
2838 MAINT=$MAINTAINER_MODE_TRUE
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847 if test -n "$ac_tool_prefix"; then
2848 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2849 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if test "${ac_cv_prog_CC+set}" = set; then :
2853 $as_echo_n "(cached) " >&6
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC="$CC" # Let the user override the test.
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 if test -n "$CC"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878 $as_echo "$CC" >&6; }
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2886 if test -z "$ac_cv_prog_CC"; then
2888 # Extract the first word of "gcc", so it can be a program name with args.
2889 set dummy gcc; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2893 $as_echo_n "(cached) " >&6
2895 if test -n "$ac_ct_CC"; then
2896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905 ac_cv_prog_ac_ct_CC="gcc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2916 if test -n "$ac_ct_CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2918 $as_echo "$ac_ct_CC" >&6; }
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2924 if test "x$ac_ct_CC" = x; then
2927 case $cross_compiling:$ac_tool_warned in
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2939 if test -z "$CC"; then
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}cc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if test "${ac_cv_prog_CC+set}" = set; then :
2946 $as_echo_n "(cached) " >&6
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_CC="${ac_tool_prefix}cc"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 if test -n "$CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2980 if test -z "$CC"; then
2981 # Extract the first word of "cc", so it can be a program name with args.
2982 set dummy cc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if test "${ac_cv_prog_CC+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3000 ac_prog_rejected=yes
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 if test $ac_prog_rejected = yes; then
3012 # We found a bogon in the path, so make sure we never use it.
3013 set dummy $ac_cv_prog_CC
3015 if test $# != 0; then
3016 # We chose a different compiler from the bogus one.
3017 # However, it has the same basename, so the bogon will be chosen
3018 # first if we set CC to just the basename; use the full file name.
3020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3026 if test -n "$CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028 $as_echo "$CC" >&6; }
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3036 if test -z "$CC"; then
3037 if test -n "$ac_tool_prefix"; then
3038 for ac_prog in cl.exe
3040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if test "${ac_cv_prog_CC+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3077 test -n "$CC" && break
3080 if test -z "$CC"; then
3082 for ac_prog in cl.exe
3084 # Extract the first word of "$ac_prog", so it can be a program name with args.
3085 set dummy $ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
3091 if test -n "$ac_ct_CC"; then
3092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101 ac_cv_prog_ac_ct_CC="$ac_prog"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3112 if test -n "$ac_ct_CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114 $as_echo "$ac_ct_CC" >&6; }
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3121 test -n "$ac_ct_CC" && break
3124 if test "x$ac_ct_CC" = x; then
3127 case $cross_compiling:$ac_tool_warned in
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3140 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error "no acceptable C compiler found in \$PATH
3143 See \`config.log' for more details." "$LINENO" 5; }
3145 # Provide some information about the compiler.
3146 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3149 for ac_option in --version -v -V -qversion; do
3150 { { ac_try="$ac_compiler $ac_option >&5"
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3159 if test -s conftest.err; then
3161 ... rest of stderr output deleted ...
3162 10q' conftest.err >conftest.er1
3163 cat conftest.er1 >&5
3164 rm -f conftest.er1 conftest.err
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3181 ac_clean_files_save=$ac_clean_files
3182 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3183 # Try to create an executable without -o first, disregard a.out.
3184 # It will help us diagnose broken compilers, and finding out an intuition
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3187 $as_echo_n "checking for C compiler default output file name... " >&6; }
3188 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190 # The possible output files:
3191 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3194 for ac_file in $ac_files
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3203 if { { ac_try="$ac_link_default"
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link_default") 2>&5
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3215 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3216 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3217 # so that the user can short-circuit this test for compilers unknown to
3219 for ac_file in $ac_files ''
3221 test -f "$ac_file" || continue
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3226 # We found the default executable, but exeext='' is most
3230 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 # We set ac_cv_exeext here because the later test for it is not
3235 # safe: cross compilers may not add the suffix if given an `-o'
3236 # argument, so we may need to know it at that point already.
3237 # Even if this section looks crufty: it has the advantage of
3244 test "$ac_cv_exeext" = no && ac_cv_exeext=
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3250 $as_echo "$ac_file" >&6; }
3251 if test -z "$ac_file"; then :
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 { as_fn_set_status 77
3258 as_fn_error "C compiler cannot create executables
3259 See \`config.log' for more details." "$LINENO" 5; }; }
3261 ac_exeext=$ac_cv_exeext
3263 # Check that the compiler produces executables we can run. If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3266 $as_echo_n "checking whether the C compiler works... " >&6; }
3267 # If not cross compiling, check that we can run a simple program.
3268 if test "$cross_compiling" != yes; then
3269 if { ac_try='./$ac_file'
3270 { { case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_try") 2>&5
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; }; then
3282 if test "$cross_compiling" = maybe; then
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 as_fn_error "cannot run C compiled programs.
3288 If you meant to cross compile, use \`--host'.
3289 See \`config.log' for more details." "$LINENO" 5; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3296 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3297 ac_clean_files=$ac_clean_files_save
3298 # Check that the compiler produces executables we can run. If not, either
3299 # the compiler is broken, or we cross compile.
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3301 $as_echo_n "checking whether we are cross compiling... " >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3303 $as_echo "$cross_compiling" >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3306 $as_echo_n "checking for suffix of executables... " >&6; }
3307 if { { ac_try="$ac_link"
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_link") 2>&5
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
3318 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3319 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3320 # work properly (i.e., refer to `conftest.exe'), while it won't with
3322 for ac_file in conftest.exe conftest conftest.*; do
3323 test -f "$ac_file" || continue
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error "cannot compute suffix of executables: cannot compile and link
3335 See \`config.log' for more details." "$LINENO" 5; }
3337 rm -f conftest$ac_cv_exeext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3339 $as_echo "$ac_cv_exeext" >&6; }
3341 rm -f conftest.$ac_ext
3342 EXEEXT=$ac_cv_exeext
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3345 $as_echo_n "checking for suffix of object files... " >&6; }
3346 if test "${ac_cv_objext+set}" = set; then :
3347 $as_echo_n "(cached) " >&6
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3360 rm -f conftest.o conftest.obj
3361 if { { ac_try="$ac_compile"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_compile") 2>&5
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; then :
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3376 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3381 $as_echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error "cannot compute suffix of object files: cannot compile
3387 See \`config.log' for more details." "$LINENO" 5; }
3389 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3392 $as_echo "$ac_cv_objext" >&6; }
3393 OBJEXT=$ac_cv_objext
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3396 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3397 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3398 $as_echo_n "(cached) " >&6
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3414 if ac_fn_c_try_compile "$LINENO"; then :
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3424 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3425 if test $ac_compiler_gnu = yes; then
3430 ac_test_CFLAGS=${CFLAGS+set}
3431 ac_save_CFLAGS=$CFLAGS
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3433 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3434 if test "${ac_cv_prog_cc_g+set}" = set; then :
3435 $as_echo_n "(cached) " >&6
3437 ac_save_c_werror_flag=$ac_c_werror_flag
3438 ac_c_werror_flag=yes
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3452 if ac_fn_c_try_compile "$LINENO"; then :
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3467 if ac_fn_c_try_compile "$LINENO"; then :
3470 ac_c_werror_flag=$ac_save_c_werror_flag
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3483 if ac_fn_c_try_compile "$LINENO"; then :
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 ac_c_werror_flag=$ac_save_c_werror_flag
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3494 $as_echo "$ac_cv_prog_cc_g" >&6; }
3495 if test "$ac_test_CFLAGS" = set; then
3496 CFLAGS=$ac_save_CFLAGS
3497 elif test $ac_cv_prog_cc_g = yes; then
3498 if test "$GCC" = yes; then
3504 if test "$GCC" = yes; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3511 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3512 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3515 ac_cv_prog_cc_c89=no
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3521 #include <sys/types.h>
3522 #include <sys/stat.h>
3523 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3524 struct buf { int x; };
3525 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3526 static char *e (p, i)
3532 static char *f (char * (*g) (char **, int), char **p, ...)
3537 s = g (p, va_arg (v,int));
3542 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3543 function prototypes and stuff, but not '\xHH' hex character constants.
3544 These don't provoke an error unfortunately, instead are silently treated
3545 as 'x'. The following induces an error, until -std is added to get
3546 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3547 array size at least. It's necessary to write '\x00'==0 to get something
3548 that's true only with -std. */
3549 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3551 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3552 inside strings and character constants. */
3554 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3556 int test (int i, double x);
3557 struct s1 {int (*f) (int a);};
3558 struct s2 {int (*f) (double a);};
3559 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3565 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3570 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3571 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3573 CC="$ac_save_CC $ac_arg"
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_cv_prog_cc_c89=$ac_arg
3577 rm -f core conftest.err conftest.$ac_objext
3578 test "x$ac_cv_prog_cc_c89" != "xno" && break
3580 rm -f conftest.$ac_ext
3585 case "x$ac_cv_prog_cc_c89" in
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3588 $as_echo "none needed" >&6; } ;;
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3591 $as_echo "unsupported" >&6; } ;;
3593 CC="$CC $ac_cv_prog_cc_c89"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3595 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3597 if test "x$ac_cv_prog_cc_c89" != xno; then :
3602 ac_cpp='$CPP $CPPFLAGS'
3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3608 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3609 for ac_t in install-sh install.sh shtool; do
3610 if test -f "$ac_dir/$ac_t"; then
3612 ac_install_sh="$ac_aux_dir/$ac_t -c"
3617 if test -z "$ac_aux_dir"; then
3618 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3621 # These three variables are undocumented and unsupported,
3622 # and are intended to be withdrawn in a future Autoconf release.
3623 # They can cause serious problems if a builder's source tree is in a directory
3624 # whose full name contains unusual characters.
3625 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3626 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3627 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3630 # Make sure we can run config.sub.
3631 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3632 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3635 $as_echo_n "checking build system type... " >&6; }
3636 if test "${ac_cv_build+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3639 ac_build_alias=$build_alias
3640 test "x$ac_build_alias" = x &&
3641 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3642 test "x$ac_build_alias" = x &&
3643 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3644 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3645 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3649 $as_echo "$ac_cv_build" >&6; }
3650 case $ac_cv_build in
3652 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3655 ac_save_IFS=$IFS; IFS='-'
3661 # Remember, the first character of IFS is used to create $*,
3662 # except with old shells:
3665 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3669 $as_echo_n "checking host system type... " >&6; }
3670 if test "${ac_cv_host+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3673 if test "x$host_alias" = x; then
3674 ac_cv_host=$ac_cv_build
3676 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3677 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3682 $as_echo "$ac_cv_host" >&6; }
3685 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3688 ac_save_IFS=$IFS; IFS='-'
3694 # Remember, the first character of IFS is used to create $*,
3695 # except with old shells:
3698 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3708 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3709 # On Suns, sometimes $CPP names a directory.
3710 if test -n "$CPP" && test -d "$CPP"; then
3713 if test -z "$CPP"; then
3714 if test "${ac_cv_prog_CPP+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3717 # Double quotes because CPP needs to be expanded
3718 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3721 for ac_c_preproc_warn_flag in '' yes
3723 # Use a header file that comes with gcc, so configuring glibc
3724 # with a fresh cross-compiler works.
3725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3726 # <limits.h> exists even on freestanding compilers.
3727 # On the NeXT, cc -E runs the code through the compiler's parser,
3728 # not just through cpp. "Syntax error" is here to catch this case.
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3732 # include <limits.h>
3734 # include <assert.h>
3738 if ac_fn_c_try_cpp "$LINENO"; then :
3741 # Broken: fails on valid input.
3744 rm -f conftest.err conftest.$ac_ext
3746 # OK, works on sane cases. Now check whether nonexistent headers
3747 # can be detected and how.
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750 #include <ac_nonexistent.h>
3752 if ac_fn_c_try_cpp "$LINENO"; then :
3753 # Broken: success on invalid input.
3756 # Passes both tests.
3760 rm -f conftest.err conftest.$ac_ext
3763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3764 rm -f conftest.err conftest.$ac_ext
3765 if $ac_preproc_ok; then :
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3778 $as_echo "$CPP" >&6; }
3780 for ac_c_preproc_warn_flag in '' yes
3782 # Use a header file that comes with gcc, so configuring glibc
3783 # with a fresh cross-compiler works.
3784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3785 # <limits.h> exists even on freestanding compilers.
3786 # On the NeXT, cc -E runs the code through the compiler's parser,
3787 # not just through cpp. "Syntax error" is here to catch this case.
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3791 # include <limits.h>
3793 # include <assert.h>
3797 if ac_fn_c_try_cpp "$LINENO"; then :
3800 # Broken: fails on valid input.
3803 rm -f conftest.err conftest.$ac_ext
3805 # OK, works on sane cases. Now check whether nonexistent headers
3806 # can be detected and how.
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3809 #include <ac_nonexistent.h>
3811 if ac_fn_c_try_cpp "$LINENO"; then :
3812 # Broken: success on invalid input.
3815 # Passes both tests.
3819 rm -f conftest.err conftest.$ac_ext
3822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3823 rm -f conftest.err conftest.$ac_ext
3824 if $ac_preproc_ok; then :
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3830 See \`config.log' for more details." "$LINENO" 5; }
3834 ac_cpp='$CPP $CPPFLAGS'
3835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3841 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3842 if test "${ac_cv_path_GREP+set}" = set; then :
3843 $as_echo_n "(cached) " >&6
3845 if test -z "$GREP"; then
3846 ac_path_GREP_found=false
3847 # Loop through the user's path and test for each of PROGNAME-LIST
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3852 test -z "$as_dir" && as_dir=.
3853 for ac_prog in grep ggrep; do
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3856 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3857 # Check for GNU ac_path_GREP and select it if it is found.
3858 # Check for GNU $ac_path_GREP
3859 case `"$ac_path_GREP" --version 2>&1` in
3861 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3864 $as_echo_n 0123456789 >"conftest.in"
3867 cat "conftest.in" "conftest.in" >"conftest.tmp"
3868 mv "conftest.tmp" "conftest.in"
3869 cp "conftest.in" "conftest.nl"
3870 $as_echo 'GREP' >> "conftest.nl"
3871 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3873 as_fn_arith $ac_count + 1 && ac_count=$as_val
3874 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3875 # Best one so far, save it but keep looking for a better one
3876 ac_cv_path_GREP="$ac_path_GREP"
3877 ac_path_GREP_max=$ac_count
3879 # 10*(2^10) chars as input seems more than enough
3880 test $ac_count -gt 10 && break
3882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3885 $ac_path_GREP_found && break 3
3890 if test -z "$ac_cv_path_GREP"; then
3891 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3894 ac_cv_path_GREP=$GREP
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3899 $as_echo "$ac_cv_path_GREP" >&6; }
3900 GREP="$ac_cv_path_GREP"
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3904 $as_echo_n "checking for egrep... " >&6; }
3905 if test "${ac_cv_path_EGREP+set}" = set; then :
3906 $as_echo_n "(cached) " >&6
3908 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3909 then ac_cv_path_EGREP="$GREP -E"
3911 if test -z "$EGREP"; then
3912 ac_path_EGREP_found=false
3913 # Loop through the user's path and test for each of PROGNAME-LIST
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918 test -z "$as_dir" && as_dir=.
3919 for ac_prog in egrep; do
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3922 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3923 # Check for GNU ac_path_EGREP and select it if it is found.
3924 # Check for GNU $ac_path_EGREP
3925 case `"$ac_path_EGREP" --version 2>&1` in
3927 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3930 $as_echo_n 0123456789 >"conftest.in"
3933 cat "conftest.in" "conftest.in" >"conftest.tmp"
3934 mv "conftest.tmp" "conftest.in"
3935 cp "conftest.in" "conftest.nl"
3936 $as_echo 'EGREP' >> "conftest.nl"
3937 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939 as_fn_arith $ac_count + 1 && ac_count=$as_val
3940 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3941 # Best one so far, save it but keep looking for a better one
3942 ac_cv_path_EGREP="$ac_path_EGREP"
3943 ac_path_EGREP_max=$ac_count
3945 # 10*(2^10) chars as input seems more than enough
3946 test $ac_count -gt 10 && break
3948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951 $ac_path_EGREP_found && break 3
3956 if test -z "$ac_cv_path_EGREP"; then
3957 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3960 ac_cv_path_EGREP=$EGREP
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3966 $as_echo "$ac_cv_path_EGREP" >&6; }
3967 EGREP="$ac_cv_path_EGREP"
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3971 $as_echo_n "checking for ANSI C header files... " >&6; }
3972 if test "${ac_cv_header_stdc+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991 ac_cv_header_stdc=yes
3993 ac_cv_header_stdc=no
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 if test $ac_cv_header_stdc = yes; then
3998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4005 $EGREP "memchr" >/dev/null 2>&1; then :
4008 ac_cv_header_stdc=no
4014 if test $ac_cv_header_stdc = yes; then
4015 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4022 $EGREP "free" >/dev/null 2>&1; then :
4025 ac_cv_header_stdc=no
4031 if test $ac_cv_header_stdc = yes; then
4032 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4033 if test "$cross_compiling" = yes; then :
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4040 #if ((' ' & 0x0FF) == 0x020)
4041 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4042 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4044 # define ISLOWER(c) \
4045 (('a' <= (c) && (c) <= 'i') \
4046 || ('j' <= (c) && (c) <= 'r') \
4047 || ('s' <= (c) && (c) <= 'z'))
4048 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4051 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4056 for (i = 0; i < 256; i++)
4057 if (XOR (islower (i), ISLOWER (i))
4058 || toupper (i) != TOUPPER (i))
4063 if ac_fn_c_try_run "$LINENO"; then :
4066 ac_cv_header_stdc=no
4068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4069 conftest.$ac_objext conftest.beam conftest.$ac_ext
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4075 $as_echo "$ac_cv_header_stdc" >&6; }
4076 if test $ac_cv_header_stdc = yes; then
4078 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4082 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4083 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4084 inttypes.h stdint.h unistd.h
4086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4087 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4089 eval as_val=\$$as_ac_Header
4090 if test "x$as_val" = x""yes; then :
4091 cat >>confdefs.h <<_ACEOF
4092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4104 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4111 if test "$MINIX" = yes; then
4113 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4116 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4119 $as_echo "#define _MINIX 1" >>confdefs.h
4126 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4133 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4134 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4140 # define __EXTENSIONS__ 1
4141 $ac_includes_default
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_safe_to_define___extensions__=yes
4153 ac_cv_safe_to_define___extensions__=no
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4158 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4159 test $ac_cv_safe_to_define___extensions__ = yes &&
4160 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4162 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4164 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4166 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4168 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4171 if test -n "$ac_tool_prefix"; then
4172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4173 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4179 if test -n "$RANLIB"; then
4180 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4199 RANLIB=$ac_cv_prog_RANLIB
4200 if test -n "$RANLIB"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4202 $as_echo "$RANLIB" >&6; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4210 if test -z "$ac_cv_prog_RANLIB"; then
4211 ac_ct_RANLIB=$RANLIB
4212 # Extract the first word of "ranlib", so it can be a program name with args.
4213 set dummy ranlib; ac_word=$2
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 $as_echo_n "checking for $ac_word... " >&6; }
4216 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4217 $as_echo_n "(cached) " >&6
4219 if test -n "$ac_ct_RANLIB"; then
4220 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229 ac_cv_prog_ac_ct_RANLIB="ranlib"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4240 if test -n "$ac_ct_RANLIB"; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4242 $as_echo "$ac_ct_RANLIB" >&6; }
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4248 if test "x$ac_ct_RANLIB" = x; then
4251 case $cross_compiling:$ac_tool_warned in
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255 ac_tool_warned=yes ;;
4257 RANLIB=$ac_ct_RANLIB
4260 RANLIB="$ac_cv_prog_RANLIB"
4271 # Code from module arg-nonnull:
4272 # Code from module c++defs:
4273 # Code from module extensions:
4275 # Code from module include_next:
4276 # Code from module memchr:
4277 # Code from module memmem:
4278 # Code from module memmem-simple:
4279 # Code from module multiarch:
4280 # Code from module stddef:
4281 # Code from module stdint:
4282 # Code from module string:
4283 # Code from module warn-on-use:
4284 # Code from module wchar:
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4287 $as_echo_n "checking target system type... " >&6; }
4288 if test "${ac_cv_target+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4291 if test "x$target_alias" = x; then
4292 ac_cv_target=$ac_cv_host
4294 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4295 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4300 $as_echo "$ac_cv_target" >&6; }
4301 case $ac_cv_target in
4303 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4305 target=$ac_cv_target
4306 ac_save_IFS=$IFS; IFS='-'
4312 # Remember, the first character of IFS is used to create $*,
4313 # except with old shells:
4316 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4319 # The aliases save the names the user supplied, while $host etc.
4320 # will get canonicalized.
4321 test -n "$target_alias" &&
4322 test "$program_prefix$program_suffix$program_transform_name" = \
4324 program_prefix=${target_alias}-
4326 # The tests for host and target for $enable_largefile require
4331 # As the $enable_largefile decision depends on --enable-plugins we must set it
4332 # even in directories otherwise not depending on the $plugins option.
4335 # Check whether --enable-plugins was given.
4336 if test "${enable_plugins+set}" = set; then :
4337 enableval=$enable_plugins; case "${enableval}" in
4338 yes | "") plugins=yes ;;
4349 sparc-*-solaris*|i[3-7]86-*-solaris*)
4350 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4351 # are mutually exclusive; and without procfs support, the bfd/ elf module
4352 # cannot provide certain routines such as elfcore_write_prpsinfo
4353 # or elfcore_write_prstatus. So unless the user explicitly requested
4354 # large-file support through the --enable-largefile switch, disable
4355 # large-file support in favor of procfs support.
4356 test "${target}" = "${host}" -a "x$plugins" = xno \
4357 && : ${enable_largefile="no"}
4361 # Check whether --enable-largefile was given.
4362 if test "${enable_largefile+set}" = set; then :
4363 enableval=$enable_largefile;
4366 if test "$enable_largefile" != no; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4369 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4370 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4371 $as_echo_n "(cached) " >&6
4373 ac_cv_sys_largefile_CC=no
4374 if test "$GCC" != yes; then
4377 # IRIX 6.2 and later do not support large files by default,
4378 # so use the C compiler's -n32 option if that helps.
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381 #include <sys/types.h>
4382 /* Check that off_t can represent 2**63 - 1 correctly.
4383 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4384 since some C++ compilers masquerading as C compilers
4385 incorrectly reject 9223372036854775807. */
4386 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4387 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4388 && LARGE_OFF_T % 2147483647 == 1)
4398 if ac_fn_c_try_compile "$LINENO"; then :
4401 rm -f core conftest.err conftest.$ac_objext
4403 if ac_fn_c_try_compile "$LINENO"; then :
4404 ac_cv_sys_largefile_CC=' -n32'; break
4406 rm -f core conftest.err conftest.$ac_objext
4410 rm -f conftest.$ac_ext
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4414 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4415 if test "$ac_cv_sys_largefile_CC" != no; then
4416 CC=$CC$ac_cv_sys_largefile_CC
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4420 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4421 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4422 $as_echo_n "(cached) " >&6
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427 #include <sys/types.h>
4428 /* Check that off_t can represent 2**63 - 1 correctly.
4429 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4430 since some C++ compilers masquerading as C compilers
4431 incorrectly reject 9223372036854775807. */
4432 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4433 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4434 && LARGE_OFF_T % 2147483647 == 1)
4444 if ac_fn_c_try_compile "$LINENO"; then :
4445 ac_cv_sys_file_offset_bits=no; break
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 #define _FILE_OFFSET_BITS 64
4451 #include <sys/types.h>
4452 /* Check that off_t can represent 2**63 - 1 correctly.
4453 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4454 since some C++ compilers masquerading as C compilers
4455 incorrectly reject 9223372036854775807. */
4456 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4457 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4458 && LARGE_OFF_T % 2147483647 == 1)
4468 if ac_fn_c_try_compile "$LINENO"; then :
4469 ac_cv_sys_file_offset_bits=64; break
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 ac_cv_sys_file_offset_bits=unknown
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4477 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4478 case $ac_cv_sys_file_offset_bits in #(
4481 cat >>confdefs.h <<_ACEOF
4482 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4487 if test $ac_cv_sys_file_offset_bits = unknown; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4489 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4490 if test "${ac_cv_sys_large_files+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 #include <sys/types.h>
4497 /* Check that off_t can represent 2**63 - 1 correctly.
4498 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4499 since some C++ compilers masquerading as C compilers
4500 incorrectly reject 9223372036854775807. */
4501 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4502 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4503 && LARGE_OFF_T % 2147483647 == 1)
4513 if ac_fn_c_try_compile "$LINENO"; then :
4514 ac_cv_sys_large_files=no; break
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 #define _LARGE_FILES 1
4520 #include <sys/types.h>
4521 /* Check that off_t can represent 2**63 - 1 correctly.
4522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4523 since some C++ compilers masquerading as C compilers
4524 incorrectly reject 9223372036854775807. */
4525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4527 && LARGE_OFF_T % 2147483647 == 1)
4537 if ac_fn_c_try_compile "$LINENO"; then :
4538 ac_cv_sys_large_files=1; break
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 ac_cv_sys_large_files=unknown
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4546 $as_echo "$ac_cv_sys_large_files" >&6; }
4547 case $ac_cv_sys_large_files in #(
4550 cat >>confdefs.h <<_ACEOF
4551 #define _LARGE_FILES $ac_cv_sys_large_files
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4564 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4565 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4568 am_cv_prog_cc_stdc=no
4570 # Don't try gcc -ansi; that turns off useful extensions and
4571 # breaks some systems' header files.
4572 # AIX -qlanglvl=ansi
4573 # Ultrix and OSF/1 -std1
4574 # HP-UX 10.20 and later -Ae
4575 # HP-UX older versions -Aa -D_HPUX_SOURCE
4576 # SVR4 -Xc -D__EXTENSIONS__
4577 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4579 CC="$ac_save_CC $ac_arg"
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4584 #include <sys/types.h>
4585 #include <sys/stat.h>
4586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4587 struct buf { int x; };
4588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4589 static char *e (p, i)
4595 static char *f (char * (*g) (char **, int), char **p, ...)
4600 s = g (p, va_arg (v,int));
4604 int test (int i, double x);
4605 struct s1 {int (*f) (int a);};
4606 struct s2 {int (*f) (double a);};
4607 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4615 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4621 if ac_fn_c_try_compile "$LINENO"; then :
4622 am_cv_prog_cc_stdc="$ac_arg"; break
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 if test -z "$am_cv_prog_cc_stdc"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4632 $as_echo "none needed" >&6; }
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4635 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4637 case "x$am_cv_prog_cc_stdc" in
4639 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4644 for ac_dir in .. "$srcdir"/..; do
4645 for ac_t in install-sh install.sh shtool; do
4646 if test -f "$ac_dir/$ac_t"; then
4648 ac_install_sh="$ac_aux_dir/$ac_t -c"
4653 if test -z "$ac_aux_dir"; then
4654 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4657 # These three variables are undocumented and unsupported,
4658 # and are intended to be withdrawn in a future Autoconf release.
4659 # They can cause serious problems if a builder's source tree is in a directory
4660 # whose full name contains unusual characters.
4661 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4662 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4663 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4668 # Dependency checking.
4669 rm -rf .tst 2>/dev/null
4670 mkdir .tst 2>/dev/null
4671 if test -d .tst; then
4676 rmdir .tst 2>/dev/null
4678 DEPDIR="${am__leading_dot}deps"
4680 ac_config_commands="$ac_config_commands depdir"
4683 depcc="$CC" am_compiler_list=
4685 am_depcomp=$ac_aux_dir/depcomp
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4687 $as_echo_n "checking dependency style of $depcc... " >&6; }
4688 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4691 if test -f "$am_depcomp"; then
4692 # We make a subdir and do the tests there. Otherwise we can end up
4693 # making bogus files that we don't know about and never remove. For
4694 # instance it was reported that on HP-UX the gcc test will end up
4695 # making a dummy file named `D' -- because `-MD' means `put the output
4698 # Copy depcomp to subdir because otherwise we won't find it if we're
4699 # using a relative directory.
4700 cp "$am_depcomp" conftest.dir
4702 # We will build objects and dependencies in a subdirectory because
4703 # it helps to detect inapplicable dependency modes. For instance
4704 # both Tru64's cc and ICC support -MD to output dependencies as a
4705 # side effect of compilation, but ICC will put the dependencies in
4706 # the current directory while Tru64 will put them in the object
4710 am_cv_CC_dependencies_compiler_type=none
4711 if test "$am_compiler_list" = ""; then
4712 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4714 for depmode in $am_compiler_list; do
4715 if test $depmode = none; then break; fi
4717 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4718 # Setup a source with many dependencies, because some compilers
4719 # like to wrap large dependency lists on column 80 (with \), and
4720 # we should not choose a depcomp mode which is confused by this.
4722 # We need to recreate these files for each test, as the compiler may
4723 # overwrite some of them when testing with obscure command lines.
4724 # This happens at least with the AIX C compiler.
4726 for i in 1 2 3 4 5 6; do
4727 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4728 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4729 # Solaris 8's {/usr,}/bin/sh.
4730 touch sub/conftst$i.h
4732 echo "include sub/conftest.Po" > confmf
4734 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4735 # mode. It turns out that the SunPro C++ compiler does not properly
4736 # handle `-M -o', and we need to detect this.
4737 depcmd="depmode=$depmode \
4738 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4739 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4740 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4741 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4742 if env $depcmd > conftest.err 2>&1 &&
4743 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4744 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4745 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4746 # icc doesn't choke on unknown options, it will just issue warnings
4747 # or remarks (even with -Werror). So we grep stderr for any message
4748 # that says an option was ignored or not supported.
4749 # When given -MP, icc 7.0 and 7.1 complain thusly:
4750 # icc: Command line warning: ignoring option '-M'; no argument required
4751 # The diagnosis changed in icc 8.0:
4752 # icc: Command line remark: option '-MP' not supported
4753 if (grep 'ignoring option' conftest.err ||
4754 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4755 am_cv_CC_dependencies_compiler_type=$depmode
4756 $as_echo "$as_me:$LINENO: success" >&5
4760 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4761 sed -e 's/^/| /' < conftest.err >&5
4767 am_cv_CC_dependencies_compiler_type=none
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4772 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4773 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4774 then as_fn_error "no usable dependency style found" "$LINENO" 5
4775 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4780 # Check for the 'make' the user wants to use.
4783 # Extract the first word of "$ac_prog", so it can be a program name with args.
4784 set dummy $ac_prog; ac_word=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_prog_MAKE+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4790 if test -n "$MAKE"; then
4791 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_MAKE="$ac_prog"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 MAKE=$ac_cv_prog_MAKE
4811 if test -n "$MAKE"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4813 $as_echo "$MAKE" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4820 test -n "$MAKE" && break
4824 case "`$MAKE --version 2>&1 | sed 1q`" in
4829 if test "$MAKE_IS_GNU" = yes; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4838 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4840 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4841 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4842 $as_echo_n "(cached) " >&6
4844 cat >conftest.make <<\_ACEOF
4847 @echo '@@@%%%=$(MAKE)=@@@%%%'
4849 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4850 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4852 eval ac_cv_prog_make_${ac_make}_set=yes;;
4854 eval ac_cv_prog_make_${ac_make}_set=no;;
4858 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4860 $as_echo "yes" >&6; }
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864 $as_echo "no" >&6; }
4865 SET_MAKE="MAKE=${MAKE-make}"
4880 # If we haven't got the data from the intl directory,
4881 # assume NLS is disabled.
4890 if test -f ../intl/config.intl; then
4891 . ../intl/config.intl
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4894 $as_echo_n "checking whether NLS is requested... " >&6; }
4895 if test x"$USE_NLS" != xyes; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4900 $as_echo "yes" >&6; }
4902 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4906 $as_echo_n "checking for catalogs to be installed... " >&6; }
4907 # Look for .po and .gmo files in the source directory.
4910 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4911 # If there aren't any .gmo files the shell will give us the
4912 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4914 case "$cat" in *\**)
4917 # The quadruple backslash is collapsed to a double backslash
4918 # by the backticks, then collapsed again by the double quotes,
4919 # leaving us with one backslash in the sed expression (right
4920 # before the dot that mustn't act as a wildcard).
4921 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4922 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4923 # The user is allowed to set LINGUAS to a list of languages to
4924 # install catalogs for. If it's empty that means "all of them."
4925 if test "x$LINGUAS" = x; then
4926 CATALOGS="$CATALOGS $cat"
4927 XLINGUAS="$XLINGUAS $lang"
4929 case "$LINGUAS" in *$lang*)
4930 CATALOGS="$CATALOGS $cat"
4931 XLINGUAS="$XLINGUAS $lang"
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4938 $as_echo "$LINGUAS" >&6; }
4951 localedir='${datadir}/locale'
4954 if test x"$USE_NLS" = xyes; then
4955 CONFIG_ALL="$CONFIG_ALL all-po"
4956 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4957 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4958 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4965 LIBC_FATAL_STDERR_=1
4966 export LIBC_FATAL_STDERR_
4972 for ac_header in $gl_header_list
4974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4975 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4976 eval as_val=\$$as_ac_Header
4977 if test "x$as_val" = x""yes; then :
4978 cat >>confdefs.h <<_ACEOF
4979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4994 for ac_func in $gl_func_list
4996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4997 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4998 eval as_val=\$$as_ac_var
4999 if test "x$as_val" = x""yes; then :
5000 cat >>confdefs.h <<_ACEOF
5001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5027 GNULIB_STRCASESTR=0;
5034 GNULIB_MBSCASECMP=0;
5035 GNULIB_MBSNCASECMP=0;
5036 GNULIB_MBSPCASECMP=0;
5037 GNULIB_MBSCASESTR=0;
5045 GNULIB_STRVERSCMP=0;
5050 HAVE_DECL_MEMRCHR=1;
5056 HAVE_DECL_STRNDUP=1;
5057 HAVE_DECL_STRNLEN=1;
5061 HAVE_DECL_STRTOK_R=1;
5062 HAVE_DECL_STRSIGNAL=1;
5069 REPLACE_STRCASESTR=0;
5074 REPLACE_STRSIGNAL=0;
5076 UNDEFINE_STRTOK_R=0;
5090 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5091 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5092 # irrelevant for anonymous mappings.
5093 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5094 if test "x$ac_cv_func_mmap" = x""yes; then :
5101 # Try to allow MAP_ANONYMOUS.
5102 gl_have_mmap_anonymous=no
5103 if test $gl_have_mmap = yes; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5105 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5109 #include <sys/mman.h>
5110 #ifdef MAP_ANONYMOUS
5111 I cant identify this map.
5115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5116 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5117 gl_have_mmap_anonymous=yes
5121 if test $gl_have_mmap_anonymous != yes; then
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5125 #include <sys/mman.h>
5127 I cant identify this map.
5131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5132 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5134 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5136 gl_have_mmap_anonymous=yes
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5142 $as_echo "$gl_have_mmap_anonymous" >&6; }
5143 if test $gl_have_mmap_anonymous = yes; then
5145 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5173 if test $ac_cv_func_memchr = yes; then
5174 # Detect platform-specific bugs in some versions of glibc:
5175 # memchr should not dereference anything with length 0
5176 # http://bugzilla.redhat.com/499689
5177 # memchr should not dereference overestimated length after a match
5178 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5179 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5180 # Assume that memchr works on platforms that lack mprotect.
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5182 $as_echo_n "checking whether memchr works... " >&6; }
5183 if test "${gl_cv_func_memchr_works+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5186 if test "$cross_compiling" = yes; then :
5187 gl_cv_func_memchr_works="guessing no"
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5195 # include <unistd.h>
5196 # include <sys/types.h>
5197 # include <sys/mman.h>
5208 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5209 # if HAVE_MAP_ANONYMOUS
5210 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5212 # else /* !HAVE_MAP_ANONYMOUS */
5213 const int flags = MAP_FILE | MAP_PRIVATE;
5214 int fd = open ("/dev/zero", O_RDONLY, 0666);
5218 int pagesize = getpagesize ();
5220 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5222 if (two_pages != (char *)(-1)
5223 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5224 fence = two_pages + pagesize;
5229 if (memchr (fence, 0, 0))
5231 strcpy (fence - 9, "12345678");
5232 if (memchr (fence - 9, 0, 79) != fence - 1)
5241 if ac_fn_c_try_run "$LINENO"; then :
5242 gl_cv_func_memchr_works=yes
5244 gl_cv_func_memchr_works=no
5246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5247 conftest.$ac_objext conftest.beam conftest.$ac_ext
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5252 $as_echo "$gl_cv_func_memchr_works" >&6; }
5253 if test "$gl_cv_func_memchr_works" != yes; then
5259 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5268 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5271 for ac_header in bp-sym.h
5273 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5274 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5275 cat >>confdefs.h <<_ACEOF
5276 #define HAVE_BP_SYM_H 1
5287 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5288 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5294 cat >>confdefs.h <<_ACEOF
5295 #define HAVE_DECL_MEMMEM $ac_have_decl
5311 for ac_func in memmem
5313 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5314 if test "x$ac_cv_func_memmem" = x""yes; then :
5315 cat >>confdefs.h <<_ACEOF
5316 #define HAVE_MEMMEM 1
5321 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5334 if test $ac_cv_have_decl_memmem = no; then
5340 gl_cv_c_multiarch=no
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343 #ifndef __APPLE_CC__
5344 not a universal capable compiler
5349 if ac_fn_c_try_compile "$LINENO"; then :
5353 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5354 if test -n "$prev"; then
5356 i?86 | x86_64 | ppc | ppc64)
5357 if test -z "$arch" || test "$arch" = "$word"; then
5360 gl_cv_c_multiarch=yes
5366 if test "x$word" = "x-arch"; then
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 if test $gl_cv_c_multiarch = yes; then
5376 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5378 APPLE_UNIVERSAL_BUILD=1
5380 APPLE_UNIVERSAL_BUILD=0
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5391 $as_echo_n "checking for wchar_t... " >&6; }
5392 if test "${gt_cv_c_wchar_t+set}" = set; then :
5393 $as_echo_n "(cached) " >&6
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5398 wchar_t foo = (wchar_t)'\0';
5407 if ac_fn_c_try_compile "$LINENO"; then :
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5415 $as_echo "$gt_cv_c_wchar_t" >&6; }
5416 if test $gt_cv_c_wchar_t = yes; then
5418 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5425 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5426 if test "${gl_cv_have_include_next+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5429 rm -rf conftestd1a conftestd1b conftestd2
5430 mkdir conftestd1a conftestd1b conftestd2
5431 cat <<EOF > conftestd1a/conftest.h
5432 #define DEFINED_IN_CONFTESTD1
5433 #include_next <conftest.h>
5434 #ifdef DEFINED_IN_CONFTESTD2
5437 #error "include_next doesn't work"
5440 cat <<EOF > conftestd1b/conftest.h
5441 #define DEFINED_IN_CONFTESTD1
5443 #include_next <conftest.h>
5444 #ifdef DEFINED_IN_CONFTESTD2
5447 #error "include_next doesn't work"
5450 cat <<EOF > conftestd2/conftest.h
5451 #ifndef DEFINED_IN_CONFTESTD1
5452 #error "include_next test doesn't work"
5454 #define DEFINED_IN_CONFTESTD2
5456 gl_save_CPPFLAGS="$CPPFLAGS"
5457 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 #include <conftest.h>
5462 if ac_fn_c_try_compile "$LINENO"; then :
5463 gl_cv_have_include_next=yes
5465 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #include <conftest.h>
5470 if ac_fn_c_try_compile "$LINENO"; then :
5471 gl_cv_have_include_next=buggy
5473 gl_cv_have_include_next=no
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 CPPFLAGS="$gl_save_CPPFLAGS"
5480 rm -rf conftestd1a conftestd1b conftestd2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5484 $as_echo "$gl_cv_have_include_next" >&6; }
5485 PRAGMA_SYSTEM_HEADER=
5486 if test $gl_cv_have_include_next = yes; then
5487 INCLUDE_NEXT=include_next
5488 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5489 if test -n "$GCC"; then
5490 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5493 if test $gl_cv_have_include_next = buggy; then
5494 INCLUDE_NEXT=include
5495 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5497 INCLUDE_NEXT=include
5498 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5512 $as_echo_n "checking for long long int... " >&6; }
5513 if test "${ac_cv_type_long_long_int+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5519 /* For now, do not test the preprocessor; as of 2007 there are too many
5520 implementations with broken preprocessors. Perhaps this can
5521 be revisited in 2012. In the meantime, code should not expect
5522 #if to work with literals wider than 32 bits. */
5523 /* Test literals. */
5524 long long int ll = 9223372036854775807ll;
5525 long long int nll = -9223372036854775807LL;
5526 unsigned long long int ull = 18446744073709551615ULL;
5527 /* Test constant expressions. */
5528 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5530 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5536 /* Test availability of runtime routines for shift and division. */
5537 long long int llmax = 9223372036854775807ll;
5538 unsigned long long int ullmax = 18446744073709551615ull;
5539 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5540 | (llmax / ll) | (llmax % ll)
5541 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5542 | (ullmax / ull) | (ullmax % ull));
5548 if ac_fn_c_try_link "$LINENO"; then :
5549 if test "$cross_compiling" = yes; then :
5550 ac_cv_type_long_long_int=yes
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5557 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5558 # define LLONG_MAX (HALF - 1 + HALF)
5563 long long int n = 1;
5567 long long int m = n << i;
5570 if (LLONG_MAX / 2 < m)
5578 if ac_fn_c_try_run "$LINENO"; then :
5579 ac_cv_type_long_long_int=yes
5581 ac_cv_type_long_long_int=no
5583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5584 conftest.$ac_objext conftest.beam conftest.$ac_ext
5588 ac_cv_type_long_long_int=no
5590 rm -f core conftest.err conftest.$ac_objext \
5591 conftest$ac_exeext conftest.$ac_ext
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5594 $as_echo "$ac_cv_type_long_long_int" >&6; }
5595 if test $ac_cv_type_long_long_int = yes; then
5597 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5603 $as_echo_n "checking for unsigned long long int... " >&6; }
5604 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5610 /* For now, do not test the preprocessor; as of 2007 there are too many
5611 implementations with broken preprocessors. Perhaps this can
5612 be revisited in 2012. In the meantime, code should not expect
5613 #if to work with literals wider than 32 bits. */
5614 /* Test literals. */
5615 long long int ll = 9223372036854775807ll;
5616 long long int nll = -9223372036854775807LL;
5617 unsigned long long int ull = 18446744073709551615ULL;
5618 /* Test constant expressions. */
5619 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5621 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5627 /* Test availability of runtime routines for shift and division. */
5628 long long int llmax = 9223372036854775807ll;
5629 unsigned long long int ullmax = 18446744073709551615ull;
5630 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5631 | (llmax / ll) | (llmax % ll)
5632 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5633 | (ullmax / ull) | (ullmax % ull));
5639 if ac_fn_c_try_link "$LINENO"; then :
5640 ac_cv_type_unsigned_long_long_int=yes
5642 ac_cv_type_unsigned_long_long_int=no
5644 rm -f core conftest.err conftest.$ac_objext \
5645 conftest$ac_exeext conftest.$ac_ext
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5648 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5649 if test $ac_cv_type_unsigned_long_long_int = yes; then
5651 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5666 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5667 if test "${ac_cv_c_restrict+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5671 # The order here caters to the fact that C++ does not require restrict.
5672 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 typedef int * int_ptr;
5676 int foo (int_ptr $ac_kw ip) {
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 ac_cv_c_restrict=$ac_kw
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 test "$ac_cv_c_restrict" != no && break
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5699 $as_echo "$ac_cv_c_restrict" >&6; }
5701 case $ac_cv_c_restrict in
5703 no) $as_echo "#define restrict /**/" >>confdefs.h
5705 *) cat >>confdefs.h <<_ACEOF
5706 #define restrict $ac_cv_c_restrict
5731 if test $gl_cv_have_include_next = yes; then
5732 gl_cv_next_string_h='<'string.h'>'
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5735 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5736 if test "${gl_cv_next_string_h+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5740 if test $ac_cv_header_string_h = yes; then
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5747 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5748 *) gl_absname_cpp="$ac_cpp" ;;
5750 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5751 sed -n '\#/string.h#{
5752 s#.*"\(.*/string.h\)".*#\1#
5758 gl_cv_next_string_h='<'string.h'>'
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5763 $as_echo "$gl_cv_next_string_h" >&6; }
5765 NEXT_STRING_H=$gl_cv_next_string_h
5767 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5768 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5769 gl_next_as_first_directive='<'string.h'>'
5771 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5772 gl_next_as_first_directive=$gl_cv_next_string_h
5774 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5780 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
5781 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5783 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5784 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5785 $as_echo_n "(cached) " >&6
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5800 if ac_fn_c_try_compile "$LINENO"; then :
5801 eval "$as_gl_Symbol=yes"
5803 eval "$as_gl_Symbol=no"
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 eval ac_res=\$$as_gl_Symbol
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5809 $as_echo "$ac_res" >&6; }
5810 eval as_val=\$$as_gl_Symbol
5811 if test "x$as_val" = x""yes; then :
5812 cat >>confdefs.h <<_ACEOF
5813 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5816 eval ac_cv_have_decl_$gl_func=yes
5828 GNULIB_MBSNRTOWCS=0;
5831 GNULIB_WCSNRTOMBS=0;
5843 HAVE_DECL_WCWIDTH=1;
5844 REPLACE_MBSTATE_T=0;
5850 REPLACE_MBSRTOWCS=0;
5851 REPLACE_MBSNRTOWCS=0;
5853 REPLACE_WCSRTOMBS=0;
5854 REPLACE_WCSNRTOMBS=0;
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5859 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5860 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5861 $as_echo_n "(cached) " >&6
5863 gl_cv_header_wchar_h_correct_inline=yes
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5867 #define wcstod renamed_wcstod
5869 extern int zero (void);
5870 int main () { return zero(); }
5873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5874 (eval $ac_compile) 2>&5
5876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5877 test $ac_status = 0; }; then
5878 mv conftest.$ac_objext conftest1.$ac_objext
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5882 #define wcstod renamed_wcstod
5884 int zero (void) { return 0; }
5887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5888 (eval $ac_compile) 2>&5
5890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5891 test $ac_status = 0; }; then
5892 mv conftest.$ac_objext conftest2.$ac_objext
5893 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5896 gl_cv_header_wchar_h_correct_inline=no
5900 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5904 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5905 if test $gl_cv_header_wchar_h_correct_inline = no; then
5906 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5907 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5908 C99 mode. You have four options:
5909 - Add the flag -fgnu89-inline to CC and reconfigure, or
5910 - Fix your include files, using parts of
5911 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5912 - Use a gcc version older than 4.3, or
5913 - Don't use the flags -std=c99 or -std=gnu99.
5914 Configuration aborted." "$LINENO" 5
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5919 $as_echo_n "checking for wint_t... " >&6; }
5920 if test "${gt_cv_c_wint_t+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5926 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5928 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5929 before <wchar.h>. */
5934 wint_t foo = (wchar_t)'\0';
5943 if ac_fn_c_try_compile "$LINENO"; then :
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5951 $as_echo "$gt_cv_c_wint_t" >&6; }
5952 if test $gt_cv_c_wint_t = yes; then
5954 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5960 GL_COND_LIBTOOL_TRUE=
5961 GL_COND_LIBTOOL_FALSE='#'
5963 GL_COND_LIBTOOL_TRUE='#'
5964 GL_COND_LIBTOOL_FALSE=
5967 gl_cond_libtool=false
5970 gl_m4_base='gnulib/m4'
5980 gl_source_base='gnulib'
5981 # Code from module arg-nonnull:
5982 # Code from module c++defs:
5983 # Code from module extensions:
5984 # Code from module include_next:
5985 # Code from module memchr:
5994 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
5998 # Code from module memmem:
6001 if test $ac_cv_have_decl_memmem = yes; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6003 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6004 if test "${gl_cv_func_memmem_works+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6007 if test "$cross_compiling" = yes; then :
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6011 #include <features.h>
6012 #ifdef __GNU_LIBRARY__
6013 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6018 #include <cygwin/version.h>
6019 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6026 $EGREP "Lucky user" >/dev/null 2>&1; then :
6027 gl_cv_func_memmem_works=yes
6029 gl_cv_func_memmem_works="guessing no"
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6038 #include <signal.h> /* for signal */
6039 #include <string.h> /* for memmem */
6040 #include <stdlib.h> /* for malloc */
6041 #include <unistd.h> /* for alarm */
6047 char *haystack = (char *) malloc (2 * m + 1);
6048 char *needle = (char *) malloc (m + 1);
6050 /* Failure to compile this test due to missing alarm is okay,
6051 since all such platforms (mingw) also lack memmem. */
6052 signal (SIGALRM, SIG_DFL);
6054 /* Check for quadratic performance. */
6055 if (haystack && needle)
6057 memset (haystack, 'A', 2 * m);
6058 haystack[2 * m] = 'B';
6059 memset (needle, 'A', m);
6061 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6063 /* Check for empty needle behavior. */
6064 return !result || !memmem ("a", 1, 0, 0);
6069 if ac_fn_c_try_run "$LINENO"; then :
6070 gl_cv_func_memmem_works=yes
6072 gl_cv_func_memmem_works=no
6074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6075 conftest.$ac_objext conftest.beam conftest.$ac_ext
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6081 $as_echo "$gl_cv_func_memmem_works" >&6; }
6082 if test "$gl_cv_func_memmem_works" != yes; then
6092 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6097 # Code from module memmem-simple:
6110 for ac_func in memmem
6112 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6113 if test "x$ac_cv_func_memmem" = x""yes; then :
6114 cat >>confdefs.h <<_ACEOF
6115 #define HAVE_MEMMEM 1
6120 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6133 if test $ac_cv_have_decl_memmem = no; then
6145 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6149 # Code from module multiarch:
6151 # Code from module stddef:
6155 if test $gt_cv_c_wchar_t = no; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6160 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6161 if test "${gl_cv_decl_null_works+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6167 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6177 if ac_fn_c_try_compile "$LINENO"; then :
6178 gl_cv_decl_null_works=yes
6180 gl_cv_decl_null_works=no
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6185 $as_echo "$gl_cv_decl_null_works" >&6; }
6186 if test $gl_cv_decl_null_works = no; then
6190 if test -n "$STDDEF_H"; then
6203 if test $gl_cv_have_include_next = yes; then
6204 gl_cv_next_stddef_h='<'stddef.h'>'
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6207 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6208 if test "${gl_cv_next_stddef_h+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6212 if test $ac_cv_header_stddef_h = yes; then
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6219 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6220 *) gl_absname_cpp="$ac_cpp" ;;
6222 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6223 sed -n '\#/stddef.h#{
6224 s#.*"\(.*/stddef.h\)".*#\1#
6230 gl_cv_next_stddef_h='<'stddef.h'>'
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6235 $as_echo "$gl_cv_next_stddef_h" >&6; }
6237 NEXT_STDDEF_H=$gl_cv_next_stddef_h
6239 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6241 gl_next_as_first_directive='<'stddef.h'>'
6243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6244 gl_next_as_first_directive=$gl_cv_next_stddef_h
6246 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6252 # Code from module stdint:
6256 if test $ac_cv_type_long_long_int = yes; then
6257 HAVE_LONG_LONG_INT=1
6259 HAVE_LONG_LONG_INT=0
6263 if test $ac_cv_type_unsigned_long_long_int = yes; then
6264 HAVE_UNSIGNED_LONG_LONG_INT=1
6266 HAVE_UNSIGNED_LONG_LONG_INT=0
6270 if test $ac_cv_header_inttypes_h = yes; then
6277 if test $ac_cv_header_sys_types_h = yes; then
6296 if test $gl_cv_have_include_next = yes; then
6297 gl_cv_next_stdint_h='<'stdint.h'>'
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6300 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6301 if test "${gl_cv_next_stdint_h+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
6305 if test $ac_cv_header_stdint_h = yes; then
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6312 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6313 *) gl_absname_cpp="$ac_cpp" ;;
6315 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6316 sed -n '\#/stdint.h#{
6317 s#.*"\(.*/stdint.h\)".*#\1#
6323 gl_cv_next_stdint_h='<'stdint.h'>'
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6328 $as_echo "$gl_cv_next_stdint_h" >&6; }
6330 NEXT_STDINT_H=$gl_cv_next_stdint_h
6332 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6334 gl_next_as_first_directive='<'stdint.h'>'
6336 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6337 gl_next_as_first_directive=$gl_cv_next_stdint_h
6339 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6343 if test $ac_cv_header_stdint_h = yes; then
6350 if test $ac_cv_header_stdint_h = yes; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6352 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6353 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6356 gl_cv_header_working_stdint_h=no
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6361 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6362 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6363 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6365 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6366 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6367 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6371 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6372 included before <wchar.h>. */
6383 int8_t a1 = INT8_MAX;
6384 int8_t a1min = INT8_MIN;
6387 int16_t a2 = INT16_MAX;
6388 int16_t a2min = INT16_MIN;
6391 int32_t a3 = INT32_MAX;
6392 int32_t a3min = INT32_MIN;
6395 int64_t a4 = INT64_MAX;
6396 int64_t a4min = INT64_MIN;
6399 uint8_t b1 = UINT8_MAX;
6401 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6404 uint16_t b2 = UINT16_MAX;
6407 uint32_t b3 = UINT32_MAX;
6410 uint64_t b4 = UINT64_MAX;
6412 int_least8_t c1 = INT8_C (0x7f);
6413 int_least8_t c1max = INT_LEAST8_MAX;
6414 int_least8_t c1min = INT_LEAST8_MIN;
6415 int_least16_t c2 = INT16_C (0x7fff);
6416 int_least16_t c2max = INT_LEAST16_MAX;
6417 int_least16_t c2min = INT_LEAST16_MIN;
6418 int_least32_t c3 = INT32_C (0x7fffffff);
6419 int_least32_t c3max = INT_LEAST32_MAX;
6420 int_least32_t c3min = INT_LEAST32_MIN;
6421 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6422 int_least64_t c4max = INT_LEAST64_MAX;
6423 int_least64_t c4min = INT_LEAST64_MIN;
6424 uint_least8_t d1 = UINT8_C (0xff);
6425 uint_least8_t d1max = UINT_LEAST8_MAX;
6426 uint_least16_t d2 = UINT16_C (0xffff);
6427 uint_least16_t d2max = UINT_LEAST16_MAX;
6428 uint_least32_t d3 = UINT32_C (0xffffffff);
6429 uint_least32_t d3max = UINT_LEAST32_MAX;
6430 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6431 uint_least64_t d4max = UINT_LEAST64_MAX;
6432 int_fast8_t e1 = INT_FAST8_MAX;
6433 int_fast8_t e1min = INT_FAST8_MIN;
6434 int_fast16_t e2 = INT_FAST16_MAX;
6435 int_fast16_t e2min = INT_FAST16_MIN;
6436 int_fast32_t e3 = INT_FAST32_MAX;
6437 int_fast32_t e3min = INT_FAST32_MIN;
6438 int_fast64_t e4 = INT_FAST64_MAX;
6439 int_fast64_t e4min = INT_FAST64_MIN;
6440 uint_fast8_t f1 = UINT_FAST8_MAX;
6441 uint_fast16_t f2 = UINT_FAST16_MAX;
6442 uint_fast32_t f3 = UINT_FAST32_MAX;
6443 uint_fast64_t f4 = UINT_FAST64_MAX;
6445 intptr_t g = INTPTR_MAX;
6446 intptr_t gmin = INTPTR_MIN;
6449 uintptr_t h = UINTPTR_MAX;
6451 intmax_t i = INTMAX_MAX;
6452 uintmax_t j = UINTMAX_MAX;
6454 #include <limits.h> /* for CHAR_BIT */
6455 #define TYPE_MINIMUM(t) \
6456 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6457 #define TYPE_MAXIMUM(t) \
6458 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6461 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6462 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6464 /* Detect bug in FreeBSD 6.0 / ia64. */
6465 int check_SIG_ATOMIC:
6466 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6467 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6469 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6471 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6472 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6474 /* Detect bug in mingw. */
6476 WINT_MIN == TYPE_MINIMUM (wint_t)
6477 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6480 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6482 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6484 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6486 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6488 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6491 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6494 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6497 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6499 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6500 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6501 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6502 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6503 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6504 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6505 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6506 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6507 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6508 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6509 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6520 if ac_fn_c_try_compile "$LINENO"; then :
6521 if test "$cross_compiling" = yes; then :
6522 gl_cv_header_working_stdint_h=yes
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6529 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6530 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6531 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6535 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6536 included before <wchar.h>. */
6548 #define MVAL(macro) MVAL1(macro)
6549 #define MVAL1(expression) #expression
6550 static const char *macro_values[] =
6584 for (mv = macro_values; *mv != NULL; mv++)
6586 const char *value = *mv;
6587 /* Test whether it looks like a cast expression. */
6588 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6589 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6590 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6591 || strncmp (value, "((int)"/*)*/, 6) == 0
6592 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6593 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6602 if ac_fn_c_try_run "$LINENO"; then :
6603 gl_cv_header_working_stdint_h=yes
6605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6606 conftest.$ac_objext conftest.beam conftest.$ac_ext
6611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6615 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6617 if test "$gl_cv_header_working_stdint_h" = yes; then
6620 for ac_header in sys/inttypes.h sys/bitypes.h
6622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6623 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6624 eval as_val=\$$as_ac_Header
6625 if test "x$as_val" = x""yes; then :
6626 cat >>confdefs.h <<_ACEOF
6627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6634 if test $ac_cv_header_sys_inttypes_h = yes; then
6635 HAVE_SYS_INTTYPES_H=1
6637 HAVE_SYS_INTTYPES_H=0
6640 if test $ac_cv_header_sys_bitypes_h = yes; then
6641 HAVE_SYS_BITYPES_H=1
6643 HAVE_SYS_BITYPES_H=0
6657 if test $APPLE_UNIVERSAL_BUILD = 0; then
6660 for gltype in ptrdiff_t size_t ; do
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6662 $as_echo_n "checking for bit size of $gltype... " >&6; }
6663 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6664 $as_echo_n "(cached) " >&6
6666 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6667 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6668 included before <wchar.h>. */
6677 #include <limits.h>"; then :
6683 eval gl_cv_bitsizeof_${gltype}=\$result
6686 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6688 $as_echo "$ac_res" >&6; }
6689 eval result=\$gl_cv_bitsizeof_${gltype}
6690 if test $result = unknown; then
6693 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6694 cat >>confdefs.h <<_ACEOF
6695 #define BITSIZEOF_${GLTYPE} $result
6698 eval BITSIZEOF_${GLTYPE}=\$result
6705 for gltype in sig_atomic_t wchar_t wint_t ; do
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6707 $as_echo_n "checking for bit size of $gltype... " >&6; }
6708 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6709 $as_echo_n "(cached) " >&6
6711 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6712 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6713 included before <wchar.h>. */
6722 #include <limits.h>"; then :
6728 eval gl_cv_bitsizeof_${gltype}=\$result
6731 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6733 $as_echo "$ac_res" >&6; }
6734 eval result=\$gl_cv_bitsizeof_${gltype}
6735 if test $result = unknown; then
6738 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6739 cat >>confdefs.h <<_ACEOF
6740 #define BITSIZEOF_${GLTYPE} $result
6743 eval BITSIZEOF_${GLTYPE}=\$result
6749 for gltype in sig_atomic_t wchar_t wint_t ; do
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6751 $as_echo_n "checking whether $gltype is signed... " >&6; }
6752 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6753 $as_echo_n "(cached) " >&6
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6758 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6759 included before <wchar.h>. */
6768 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6777 if ac_fn_c_try_compile "$LINENO"; then :
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 eval gl_cv_type_${gltype}_signed=\$result
6786 eval ac_res=\$gl_cv_type_${gltype}_signed
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6788 $as_echo "$ac_res" >&6; }
6789 eval result=\$gl_cv_type_${gltype}_signed
6790 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6791 if test "$result" = yes; then
6792 cat >>confdefs.h <<_ACEOF
6793 #define HAVE_SIGNED_${GLTYPE} 1
6796 eval HAVE_SIGNED_${GLTYPE}=1
6798 eval HAVE_SIGNED_${GLTYPE}=0
6803 gl_cv_type_ptrdiff_t_signed=yes
6804 gl_cv_type_size_t_signed=no
6805 if test $APPLE_UNIVERSAL_BUILD = 0; then
6808 for gltype in ptrdiff_t size_t ; do
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6810 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6811 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6812 $as_echo_n "(cached) " >&6
6814 eval gl_cv_type_${gltype}_suffix=no
6815 eval result=\$gl_cv_type_${gltype}_signed
6816 if test "$result" = yes; then
6821 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6824 l) gltype1='long int';;
6825 ll) gltype1='long long int';;
6826 i64) gltype1='__int64';;
6827 u) gltype1='unsigned int';;
6828 ul) gltype1='unsigned long int';;
6829 ull) gltype1='unsigned long long int';;
6830 ui64)gltype1='unsigned __int64';;
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6835 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6836 included before <wchar.h>. */
6846 extern $gltype1 foo;
6855 if ac_fn_c_try_compile "$LINENO"; then :
6856 eval gl_cv_type_${gltype}_suffix=\$glsuf
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 eval result=\$gl_cv_type_${gltype}_suffix
6860 test "$result" != no && break
6863 eval ac_res=\$gl_cv_type_${gltype}_suffix
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6865 $as_echo "$ac_res" >&6; }
6866 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6867 eval result=\$gl_cv_type_${gltype}_suffix
6868 test "$result" = no && result=
6869 eval ${GLTYPE}_SUFFIX=\$result
6870 cat >>confdefs.h <<_ACEOF
6871 #define ${GLTYPE}_SUFFIX $result
6880 for gltype in sig_atomic_t wchar_t wint_t ; do
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6882 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6883 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6884 $as_echo_n "(cached) " >&6
6886 eval gl_cv_type_${gltype}_suffix=no
6887 eval result=\$gl_cv_type_${gltype}_signed
6888 if test "$result" = yes; then
6893 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6896 l) gltype1='long int';;
6897 ll) gltype1='long long int';;
6898 i64) gltype1='__int64';;
6899 u) gltype1='unsigned int';;
6900 ul) gltype1='unsigned long int';;
6901 ull) gltype1='unsigned long long int';;
6902 ui64)gltype1='unsigned __int64';;
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6907 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6908 included before <wchar.h>. */
6918 extern $gltype1 foo;
6927 if ac_fn_c_try_compile "$LINENO"; then :
6928 eval gl_cv_type_${gltype}_suffix=\$glsuf
6930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6931 eval result=\$gl_cv_type_${gltype}_suffix
6932 test "$result" != no && break
6935 eval ac_res=\$gl_cv_type_${gltype}_suffix
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6937 $as_echo "$ac_res" >&6; }
6938 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6939 eval result=\$gl_cv_type_${gltype}_suffix
6940 test "$result" = no && result=
6941 eval ${GLTYPE}_SUFFIX=\$result
6942 cat >>confdefs.h <<_ACEOF
6943 #define ${GLTYPE}_SUFFIX $result
6954 # Code from module string:
6958 # Code from module warn-on-use:
6959 # Code from module wchar:
6982 if test $gl_cv_have_include_next = yes; then
6983 gl_cv_next_wchar_h='<'wchar.h'>'
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6986 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6987 if test "${gl_cv_next_wchar_h+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6991 if test $ac_cv_header_wchar_h = yes; then
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6998 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6999 *) gl_absname_cpp="$ac_cpp" ;;
7001 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7002 sed -n '\#/wchar.h#{
7003 s#.*"\(.*/wchar.h\)".*#\1#
7009 gl_cv_next_wchar_h='<'wchar.h'>'
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7014 $as_echo "$gl_cv_next_wchar_h" >&6; }
7016 NEXT_WCHAR_H=$gl_cv_next_wchar_h
7018 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7020 gl_next_as_first_directive='<'wchar.h'>'
7022 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7023 gl_next_as_first_directive=$gl_cv_next_wchar_h
7025 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7029 if test $ac_cv_header_wchar_h = yes; then
7037 if test $gt_cv_c_wint_t = yes; then
7045 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
7046 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7048 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7049 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7050 $as_echo_n "(cached) " >&6
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7055 /* Some systems require additional headers. */
7057 # include <stddef.h>
7072 if ac_fn_c_try_compile "$LINENO"; then :
7073 eval "$as_gl_Symbol=yes"
7075 eval "$as_gl_Symbol=no"
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 eval ac_res=\$$as_gl_Symbol
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7081 $as_echo "$ac_res" >&6; }
7082 eval as_val=\$$as_gl_Symbol
7083 if test "x$as_val" = x""yes; then :
7084 cat >>confdefs.h <<_ACEOF
7085 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7088 eval ac_cv_have_decl_$gl_func=yes
7093 # Code from module dummy:
7094 # End of code from modules
7115 gl_source_base='tests'
7116 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
7118 gl_module_indicator_condition=$gltests_WITNESS
7128 LIBGNU_LIBDEPS="$gl_libdeps"
7130 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7134 # For Makefile dependencies.
7136 if test x"$STDINT_H" != x; then
7137 GNULIB_STDINT_H=gnulib/$STDINT_H
7143 cat >>confdefs.h <<_ACEOF
7144 #define PACKAGE "$PACKAGE"
7149 # GDB does not use automake, but gnulib does. This line lets us
7150 # generate its Makefile.in.
7151 am__api_version='1.11'
7153 # Find a good install program. We prefer a C program (faster),
7154 # so one script is as good as another. But avoid the broken or
7155 # incompatible versions:
7156 # SysV /etc/install, /usr/sbin/install
7157 # SunOS /usr/etc/install
7158 # IRIX /sbin/install
7160 # AmigaOS /C/install, which installs bootblocks on floppy discs
7161 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7162 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7163 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7164 # OS/2's system install, which has a completely different semantic
7165 # ./install, which can be erroneously created by make from ./install.sh.
7166 # Reject install programs that cannot install multiple files.
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7168 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7169 if test -z "$INSTALL"; then
7170 if test "${ac_cv_path_install+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 # Account for people who put trailing slashes in PATH elements.
7179 case $as_dir/ in #((
7180 ./ | .// | /[cC]/* | \
7181 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7182 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7185 # OSF1 and SCO ODT 3.0 have their own names for install.
7186 # Don't use installbsd from OSF since it installs stuff as root
7188 for ac_prog in ginstall scoinst install; do
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7191 if test $ac_prog = install &&
7192 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7193 # AIX install. It has an incompatible calling convention.
7195 elif test $ac_prog = install &&
7196 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7197 # program-specific install script used by HP pwplus--don't use.
7200 rm -rf conftest.one conftest.two conftest.dir
7201 echo one > conftest.one
7202 echo two > conftest.two
7204 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7205 test -s conftest.one && test -s conftest.two &&
7206 test -s conftest.dir/conftest.one &&
7207 test -s conftest.dir/conftest.two
7209 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7222 rm -rf conftest.one conftest.two conftest.dir
7225 if test "${ac_cv_path_install+set}" = set; then
7226 INSTALL=$ac_cv_path_install
7228 # As a last resort, use the slow shell script. Don't cache a
7229 # value for INSTALL within a source directory, because that will
7230 # break other packages using the cache if that directory is
7231 # removed, or if the value is a relative name.
7232 INSTALL=$ac_install_sh
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7236 $as_echo "$INSTALL" >&6; }
7238 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7239 # It thinks the first close brace ends the variable substitution.
7240 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7242 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7244 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7247 $as_echo_n "checking whether build environment is sane... " >&6; }
7250 echo timestamp > conftest.file
7251 # Reject unsafe characters in $srcdir or the absolute working directory
7252 # name. Accept space and tab only in the latter.
7256 *[\\\"\#\$\&\'\`$am_lf]*)
7257 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7260 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
7261 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7264 # Do `set' in a subshell so we don't clobber the current shell's
7265 # arguments. Must try -L first in case configure is actually a
7266 # symlink; some systems play weird games with the mod time of symlinks
7267 # (eg FreeBSD returns the mod time of the symlink's containing
7270 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7271 if test "$*" = "X"; then
7273 set X `ls -t "$srcdir/configure" conftest.file`
7276 if test "$*" != "X $srcdir/configure conftest.file" \
7277 && test "$*" != "X conftest.file $srcdir/configure"; then
7279 # If neither matched, then we have a broken ls. This can happen
7280 # if, for instance, CONFIG_SHELL is bash and it inherits a
7281 # broken ls alias from the environment. This has actually
7282 # happened. Such a system could not be considered "sane".
7283 as_fn_error "ls -t appears to fail. Make sure there is not a broken
7284 alias in your environment" "$LINENO" 5
7287 test "$2" = conftest.file
7293 as_fn_error "newly created file is older than distributed files!
7294 Check your system clock" "$LINENO" 5
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7297 $as_echo "yes" >&6; }
7298 test "$program_prefix" != NONE &&
7299 program_transform_name="s&^&$program_prefix&;$program_transform_name"
7300 # Use a double $ so make ignores it.
7301 test "$program_suffix" != NONE &&
7302 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7303 # Double any \ or $.
7304 # By default was `s,x,x', remove it if useless.
7305 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7306 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7308 # expand $ac_aux_dir to an absolute path
7309 am_aux_dir=`cd $ac_aux_dir && pwd`
7311 if test x"${MISSING+set}" != xset; then
7314 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7316 MISSING="\${SHELL} $am_aux_dir/missing" ;;
7319 # Use eval to expand $SHELL
7320 if eval "$MISSING --run true"; then
7321 am_missing_run="$MISSING --run "
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7325 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7328 if test x"${install_sh}" != xset; then
7331 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7333 install_sh="\${SHELL} $am_aux_dir/install-sh"
7337 # Installed binaries are usually stripped using `strip' when the user
7338 # run `make install-strip'. However `strip' might not be the right
7339 # tool to use in cross-compilation environments, therefore Automake
7340 # will honor the `STRIP' environment variable to overrule this program.
7341 if test "$cross_compiling" != no; then
7342 if test -n "$ac_tool_prefix"; then
7343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7344 set dummy ${ac_tool_prefix}strip; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if test "${ac_cv_prog_STRIP+set}" = set; then :
7348 $as_echo_n "(cached) " >&6
7350 if test -n "$STRIP"; then
7351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 STRIP=$ac_cv_prog_STRIP
7371 if test -n "$STRIP"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7373 $as_echo "$STRIP" >&6; }
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7381 if test -z "$ac_cv_prog_STRIP"; then
7383 # Extract the first word of "strip", so it can be a program name with args.
7384 set dummy strip; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7388 $as_echo_n "(cached) " >&6
7390 if test -n "$ac_ct_STRIP"; then
7391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_prog_ac_ct_STRIP="strip"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7411 if test -n "$ac_ct_STRIP"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7413 $as_echo "$ac_ct_STRIP" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7419 if test "x$ac_ct_STRIP" = x; then
7422 case $cross_compiling:$ac_tool_warned in
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7426 ac_tool_warned=yes ;;
7431 STRIP="$ac_cv_prog_STRIP"
7435 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7438 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7439 if test -z "$MKDIR_P"; then
7440 if test "${ac_cv_path_mkdir+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7447 test -z "$as_dir" && as_dir=.
7448 for ac_prog in mkdir gmkdir; do
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7451 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7452 'mkdir (GNU coreutils) '* | \
7453 'mkdir (coreutils) '* | \
7454 'mkdir (fileutils) '4.1*)
7455 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7465 if test "${ac_cv_path_mkdir+set}" = set; then
7466 MKDIR_P="$ac_cv_path_mkdir -p"
7468 # As a last resort, use the slow shell script. Don't cache a
7469 # value for MKDIR_P within a source directory, because that will
7470 # break other packages using the cache if that directory is
7471 # removed, or if the value is a relative name.
7472 test -d ./--version && rmdir ./--version
7473 MKDIR_P="$ac_install_sh -d"
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7477 $as_echo "$MKDIR_P" >&6; }
7482 [\\/$]* | ?:[\\/]*) ;;
7483 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7486 for ac_prog in gawk mawk nawk awk
7488 # Extract the first word of "$ac_prog", so it can be a program name with args.
7489 set dummy $ac_prog; ac_word=$2
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491 $as_echo_n "checking for $ac_word... " >&6; }
7492 if test "${ac_cv_prog_AWK+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
7495 if test -n "$AWK"; then
7496 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_prog_AWK="$ac_prog"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 if test -n "$AWK"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7518 $as_echo "$AWK" >&6; }
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7525 test -n "$AWK" && break
7528 ac_config_commands="$ac_config_commands depfiles"
7531 am_make=${MAKE-make}
7532 cat > confinc << 'END'
7534 @echo this is the am__doit target
7537 # If we don't find an include directive, just comment out the code.
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7539 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7543 # First try GNU make style include.
7544 echo "include confinc" > confmf
7545 # Ignore all kinds of additional output from `make'.
7546 case `$am_make -s -f confmf 2> /dev/null` in #(
7547 *the\ am__doit\ target*)
7553 # Now try BSD make style include.
7554 if test "$am__include" = "#"; then
7555 echo '.include "confinc"' > confmf
7556 case `$am_make -s -f confmf 2> /dev/null` in #(
7557 *the\ am__doit\ target*)
7558 am__include=.include
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7567 $as_echo "$_am_result" >&6; }
7568 rm -f confinc confmf
7570 # Check whether --enable-dependency-tracking was given.
7571 if test "${enable_dependency_tracking+set}" = set; then :
7572 enableval=$enable_dependency_tracking;
7575 if test "x$enable_dependency_tracking" != xno; then
7576 am_depcomp="$ac_aux_dir/depcomp"
7579 if test "x$enable_dependency_tracking" != xno; then
7588 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7589 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7590 # is not polluted with repeated "-I."
7591 am__isrc=' -I$(srcdir)'
7592 # test to see if srcdir already configured
7593 if test -f $srcdir/config.status; then
7594 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7598 # test whether we have cygpath
7599 if test -z "$CYGPATH_W"; then
7600 if (cygpath --version) >/dev/null 2>/dev/null; then
7601 CYGPATH_W='cygpath -w'
7608 # Define the identity of the package.
7610 VERSION=UNUSED-VERSION
7613 # Some tools Automake needs.
7615 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7618 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7621 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7624 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7627 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7629 # We need awk for the "check" target. The system "awk" is bad on
7631 # Always define AMTAR for backward compatibility.
7633 AMTAR=${AMTAR-"${am_missing_run}tar"}
7635 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7640 depcc="$CC" am_compiler_list=
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7643 $as_echo_n "checking dependency style of $depcc... " >&6; }
7644 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
7647 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7648 # We make a subdir and do the tests there. Otherwise we can end up
7649 # making bogus files that we don't know about and never remove. For
7650 # instance it was reported that on HP-UX the gcc test will end up
7651 # making a dummy file named `D' -- because `-MD' means `put the output
7654 # Copy depcomp to subdir because otherwise we won't find it if we're
7655 # using a relative directory.
7656 cp "$am_depcomp" conftest.dir
7658 # We will build objects and dependencies in a subdirectory because
7659 # it helps to detect inapplicable dependency modes. For instance
7660 # both Tru64's cc and ICC support -MD to output dependencies as a
7661 # side effect of compilation, but ICC will put the dependencies in
7662 # the current directory while Tru64 will put them in the object
7666 am_cv_CC_dependencies_compiler_type=none
7667 if test "$am_compiler_list" = ""; then
7668 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7671 case " $depcc " in #(
7672 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7675 for depmode in $am_compiler_list; do
7676 # Setup a source with many dependencies, because some compilers
7677 # like to wrap large dependency lists on column 80 (with \), and
7678 # we should not choose a depcomp mode which is confused by this.
7680 # We need to recreate these files for each test, as the compiler may
7681 # overwrite some of them when testing with obscure command lines.
7682 # This happens at least with the AIX C compiler.
7684 for i in 1 2 3 4 5 6; do
7685 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7686 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7687 # Solaris 8's {/usr,}/bin/sh.
7688 touch sub/conftst$i.h
7690 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7692 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7693 # mode. It turns out that the SunPro C++ compiler does not properly
7694 # handle `-M -o', and we need to detect this. Also, some Intel
7695 # versions had trouble with output in subdirs
7696 am__obj=sub/conftest.${OBJEXT-o}
7697 am__minus_obj="-o $am__obj"
7700 # This depmode causes a compiler race in universal mode.
7701 test "$am__universal" = false || continue
7704 # after this tag, mechanisms are not by side-effect, so they'll
7705 # only be used when explicitly requested
7706 if test "x$enable_dependency_tracking" = xyes; then
7712 msvisualcpp | msvcmsys)
7713 # This compiler won't grok `-c -o', but also, the minuso test has
7714 # not run yet. These depmodes are late enough in the game, and
7715 # so weak that their functioning should not be impacted.
7716 am__obj=conftest.${OBJEXT-o}
7721 if depmode=$depmode \
7722 source=sub/conftest.c object=$am__obj \
7723 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7724 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7725 >/dev/null 2>conftest.err &&
7726 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7727 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7728 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7729 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7730 # icc doesn't choke on unknown options, it will just issue warnings
7731 # or remarks (even with -Werror). So we grep stderr for any message
7732 # that says an option was ignored or not supported.
7733 # When given -MP, icc 7.0 and 7.1 complain thusly:
7734 # icc: Command line warning: ignoring option '-M'; no argument required
7735 # The diagnosis changed in icc 8.0:
7736 # icc: Command line remark: option '-MP' not supported
7737 if (grep 'ignoring option' conftest.err ||
7738 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7739 am_cv_CC_dependencies_compiler_type=$depmode
7748 am_cv_CC_dependencies_compiler_type=none
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7753 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7754 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7757 test "x$enable_dependency_tracking" != xno \
7758 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7760 am__fastdepCC_FALSE='#'
7762 am__fastdepCC_TRUE='#'
7763 am__fastdepCC_FALSE=
7771 # Check whether --with-separate-debug-dir was given.
7772 if test "${with_separate_debug_dir+set}" = set; then :
7773 withval=$with_separate_debug_dir;
7776 DEBUGDIR=${libdir}/debug
7780 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7781 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7782 ac_define_dir=`eval echo $DEBUGDIR`
7783 ac_define_dir=`eval echo $ac_define_dir`
7785 cat >>confdefs.h <<_ACEOF
7786 #define DEBUGDIR "$ac_define_dir"
7792 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7793 if test "x$prefix" = xNONE; then
7794 test_prefix=/usr/local
7799 test_prefix=$exec_prefix
7802 case ${ac_define_dir} in
7803 "${test_prefix}"|"${test_prefix}/"*|\
7804 '${exec_prefix}'|'${exec_prefix}/'*)
7809 cat >>confdefs.h <<_ACEOF
7810 #define DEBUGDIR_RELOCATABLE $value
7816 # GDB's datadir relocation
7820 # Check whether --with-gdb-datadir was given.
7821 if test "${with_gdb_datadir+set}" = set; then :
7822 withval=$with_gdb_datadir;
7823 GDB_DATADIR=$withval
7825 GDB_DATADIR=${datadir}/gdb
7829 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7830 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7831 ac_define_dir=`eval echo $GDB_DATADIR`
7832 ac_define_dir=`eval echo $ac_define_dir`
7834 cat >>confdefs.h <<_ACEOF
7835 #define GDB_DATADIR "$ac_define_dir"
7841 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7842 if test "x$prefix" = xNONE; then
7843 test_prefix=/usr/local
7848 test_prefix=$exec_prefix
7851 case ${ac_define_dir} in
7852 "${test_prefix}"|"${test_prefix}/"*|\
7853 '${exec_prefix}'|'${exec_prefix}/'*)
7858 cat >>confdefs.h <<_ACEOF
7859 #define GDB_DATADIR_RELOCATABLE $value
7866 # Check whether --with-relocated-sources was given.
7867 if test "${with_relocated_sources+set}" = set; then :
7868 withval=$with_relocated_sources; reloc_srcdir="${withval}"
7870 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7872 ac_define_dir=`eval echo $reloc_srcdir`
7873 ac_define_dir=`eval echo $ac_define_dir`
7875 cat >>confdefs.h <<_ACEOF
7876 #define RELOC_SRCDIR "$ac_define_dir"
7886 subdirs="$subdirs doc testsuite"
7889 # Check whether to support alternative target configurations
7890 # Check whether --enable-targets was given.
7891 if test "${enable_targets+set}" = set; then :
7892 enableval=$enable_targets; case "${enableval}" in
7893 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
7895 no) enable_targets= ;;
7896 *) enable_targets=$enableval ;;
7901 # Check whether to enable 64-bit support on 32-bit hosts
7902 # Check whether --enable-64-bit-bfd was given.
7903 if test "${enable_64_bit_bfd+set}" = set; then :
7904 enableval=$enable_64_bit_bfd; case "${enableval}" in
7907 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7913 # Provide defaults for some variables set by the per-host and per-target
7915 gdb_host_obs=posix-hdep.o
7917 if test "${target}" = "${host}"; then
7923 . $srcdir/configure.host
7925 # Accumulate some settings from configure.tgt over all enabled targets
7930 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7932 if test "$targ_alias" = "all"; then
7935 # Canonicalize the secondary target names.
7936 result=`$ac_config_sub $targ_alias 2>/dev/null`
7937 if test -n "$result"; then
7943 . ${srcdir}/configure.tgt
7945 if test -z "${gdb_target_obs}"; then :
7946 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
7949 # Target-specific object files
7950 for i in ${gdb_target_obs}; do
7951 case " $TARGET_OBS " in
7954 TARGET_OBS="$TARGET_OBS ${i}"
7959 # Check whether this target needs 64-bit CORE_ADDR
7960 if test x${want64} = xfalse; then
7961 . ${srcdir}/../bfd/config.bfd
7966 if test x${all_targets} = xtrue; then
7968 # We want all 64-bit targets if we either:
7969 # - run on a 64-bit host or
7970 # - already require 64-bit support for some other target or
7971 # - the --enable-64-bit-bfd option was supplied
7972 # Otherwise we only support all 32-bit targets.
7974 # NOTE: This test must be in sync with the corresponding
7977 if test x${want64} = xfalse; then
7978 # The cast to long int works around a bug in the HP C Compiler
7979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7981 # This bug is HP SR number 8606223364.
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7983 $as_echo_n "checking size of long... " >&6; }
7984 if test "${ac_cv_sizeof_long+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7987 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7990 if test "$ac_cv_type_long" = yes; then
7991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7993 { as_fn_set_status 77
7994 as_fn_error "cannot compute sizeof (long)
7995 See \`config.log' for more details." "$LINENO" 5; }; }
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8003 $as_echo "$ac_cv_sizeof_long" >&6; }
8007 cat >>confdefs.h <<_ACEOF
8008 #define SIZEOF_LONG $ac_cv_sizeof_long
8012 if test "x${ac_cv_sizeof_long}" = "x8"; then
8016 if test x${want64} = xtrue; then
8017 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8019 TARGET_OBS='$(ALL_TARGET_OBS)'
8025 # For other settings, only the main target counts.
8029 targ=$target; . ${srcdir}/configure.tgt
8031 # Fetch the default architecture and default target vector from BFD.
8032 targ=$target; . $srcdir/../bfd/config.bfd
8034 # We only want the first architecture, so strip off the others if
8035 # there is more than one.
8036 targ_archs=`echo $targ_archs | sed 's/ .*//'`
8038 if test "x$targ_archs" != x; then
8040 cat >>confdefs.h <<_ACEOF
8041 #define DEFAULT_BFD_ARCH $targ_archs
8045 if test "x$targ_defvec" != x; then
8047 cat >>confdefs.h <<_ACEOF
8048 #define DEFAULT_BFD_VEC $targ_defvec
8053 # The CLI cannot be disabled yet, but may be in the future.
8056 # Check whether --enable-gdbcli was given.
8057 if test "${enable_gdbcli+set}" = set; then :
8058 enableval=$enable_gdbcli; case $enableval in
8062 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8064 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8070 if test x"$enable_gdbcli" = xyes; then
8071 if test -d $srcdir/cli; then
8072 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8073 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8074 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8075 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8080 # Check whether --enable-gdbmi was given.
8081 if test "${enable_gdbmi+set}" = set; then :
8082 enableval=$enable_gdbmi; case $enableval in
8086 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8092 if test x"$enable_gdbmi" = xyes; then
8093 if test -d $srcdir/mi; then
8094 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8095 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8096 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8097 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8102 # Check whether --enable-tui was given.
8103 if test "${enable_tui+set}" = set; then :
8104 enableval=$enable_tui; case $enableval in
8108 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8116 # Check whether --enable-gdbtk was given.
8117 if test "${enable_gdbtk+set}" = set; then :
8118 enableval=$enable_gdbtk; case $enableval in
8122 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8125 if test -d $srcdir/gdbtk; then
8132 # We unconditionally disable gdbtk tests on selected platforms.
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8136 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8140 # Libunwind support.
8142 # Check whether --with-libunwind was given.
8143 if test "${with_libunwind+set}" = set; then :
8144 withval=$with_libunwind; case "${withval}" in
8145 yes) enable_libunwind=yes ;;
8146 no) enable_libunwind=no ;;
8147 *) as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8151 for ac_header in libunwind.h libunwind-ia64.h
8153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8154 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8155 eval as_val=\$$as_ac_Header
8156 if test "x$as_val" = x""yes; then :
8157 cat >>confdefs.h <<_ACEOF
8158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8165 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8166 enable_libunwind=yes;
8172 if test x"$enable_libunwind" = xyes; then
8173 for ac_header in libunwind.h libunwind-ia64.h
8175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8176 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8177 eval as_val=\$$as_ac_Header
8178 if test "x$as_val" = x""yes; then :
8179 cat >>confdefs.h <<_ACEOF
8180 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8188 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8190 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8191 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8192 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8197 # Check whether --with-curses was given.
8198 if test "${with_curses+set}" = set; then :
8199 withval=$with_curses; opt_curses=$withval
8204 if test "$opt_curses" = "yes"; then
8208 # Profiling support.
8209 # Check whether --enable-profiling was given.
8210 if test "${enable_profiling+set}" = set; then :
8211 enableval=$enable_profiling; case $enableval in
8215 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8222 for ac_func in monstartup _mcleanup
8224 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8225 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8226 eval as_val=\$$as_ac_var
8227 if test "x$as_val" = x""yes; then :
8228 cat >>confdefs.h <<_ACEOF
8229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8236 $as_echo_n "checking for _etext... " >&6; }
8237 if test "${ac_cv_var__etext+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8253 if ac_fn_c_try_link "$LINENO"; then :
8254 ac_cv_var__etext=yes
8258 rm -f core conftest.err conftest.$ac_objext \
8259 conftest$ac_exeext conftest.$ac_ext
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8262 $as_echo "$ac_cv_var__etext" >&6; }
8263 if test $ac_cv_var__etext = yes; then
8265 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8269 $as_echo_n "checking for etext... " >&6; }
8270 if test "${ac_cv_var_etext+set}" = set; then :
8271 $as_echo_n "(cached) " >&6
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8286 if ac_fn_c_try_link "$LINENO"; then :
8291 rm -f core conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext conftest.$ac_ext
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8295 $as_echo "$ac_cv_var_etext" >&6; }
8296 if test $ac_cv_var_etext = yes; then
8298 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8301 if test "$enable_profiling" = yes ; then
8302 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8303 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8306 OLD_CFLAGS="$CFLAGS"
8307 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8310 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8311 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8325 if ac_fn_c_try_compile "$LINENO"; then :
8326 ac_cv_cc_supports_pg=yes
8328 ac_cv_cc_supports_pg=no
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8333 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8335 if test $ac_cv_cc_supports_pg = no; then
8336 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8339 CFLAGS="$OLD_CFLAGS"
8344 # Check whether --with-pkgversion was given.
8345 if test "${with_pkgversion+set}" = set; then :
8346 withval=$with_pkgversion; case "$withval" in
8347 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
8349 *) PKGVERSION="($withval) " ;;
8360 # Check whether --with-bugurl was given.
8361 if test "${with_bugurl+set}" = set; then :
8362 withval=$with_bugurl; case "$withval" in
8363 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
8366 *) BUGURL="$withval"
8370 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8380 REPORT_BUGS_TO="<$BUGURL>"
8381 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8388 cat >>confdefs.h <<_ACEOF
8389 #define PKGVERSION "$PKGVERSION"
8393 cat >>confdefs.h <<_ACEOF
8394 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8398 # --------------------- #
8399 # Checks for programs. #
8400 # --------------------- #
8402 for ac_prog in gawk mawk nawk awk
8404 # Extract the first word of "$ac_prog", so it can be a program name with args.
8405 set dummy $ac_prog; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if test "${ac_cv_prog_AWK+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8411 if test -n "$AWK"; then
8412 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_prog_AWK="$ac_prog"
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 if test -n "$AWK"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8434 $as_echo "$AWK" >&6; }
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8441 test -n "$AWK" && break
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8446 $as_echo_n "checking whether ln -s works... " >&6; }
8448 if test "$LN_S" = "ln -s"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8450 $as_echo "yes" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8453 $as_echo "no, using $LN_S" >&6; }
8456 if test -n "$ac_tool_prefix"; then
8457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8458 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8460 $as_echo_n "checking for $ac_word... " >&6; }
8461 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8462 $as_echo_n "(cached) " >&6
8464 if test -n "$RANLIB"; then
8465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 test -z "$as_dir" && as_dir=.
8472 for ac_exec_ext in '' $ac_executable_extensions; do
8473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8474 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 RANLIB=$ac_cv_prog_RANLIB
8485 if test -n "$RANLIB"; then
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8487 $as_echo "$RANLIB" >&6; }
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8490 $as_echo "no" >&6; }
8495 if test -z "$ac_cv_prog_RANLIB"; then
8496 ac_ct_RANLIB=$RANLIB
8497 # Extract the first word of "ranlib", so it can be a program name with args.
8498 set dummy ranlib; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8504 if test -n "$ac_ct_RANLIB"; then
8505 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514 ac_cv_prog_ac_ct_RANLIB="ranlib"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8524 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8525 if test -n "$ac_ct_RANLIB"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8527 $as_echo "$ac_ct_RANLIB" >&6; }
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8533 if test "x$ac_ct_RANLIB" = x; then
8536 case $cross_compiling:$ac_tool_warned in
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8540 ac_tool_warned=yes ;;
8542 RANLIB=$ac_ct_RANLIB
8545 RANLIB="$ac_cv_prog_RANLIB"
8548 for ac_prog in 'bison -y' byacc
8550 # Extract the first word of "$ac_prog", so it can be a program name with args.
8551 set dummy $ac_prog; ac_word=$2
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553 $as_echo_n "checking for $ac_word... " >&6; }
8554 if test "${ac_cv_prog_YACC+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8557 if test -n "$YACC"; then
8558 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 test -z "$as_dir" && as_dir=.
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8567 ac_cv_prog_YACC="$ac_prog"
8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 YACC=$ac_cv_prog_YACC
8578 if test -n "$YACC"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8580 $as_echo "$YACC" >&6; }
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8587 test -n "$YACC" && break
8589 test -n "$YACC" || YACC="yacc"
8592 if test -n "$ac_tool_prefix"; then
8593 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8594 set dummy ${ac_tool_prefix}ar; ac_word=$2
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596 $as_echo_n "checking for $ac_word... " >&6; }
8597 if test "${ac_cv_prog_AR+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8600 if test -n "$AR"; then
8601 ac_cv_prog_AR="$AR" # Let the user override the test.
8603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 test -z "$as_dir" && as_dir=.
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8610 ac_cv_prog_AR="${ac_tool_prefix}ar"
8611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 if test -n "$AR"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8623 $as_echo "$AR" >&6; }
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8631 if test -z "$ac_cv_prog_AR"; then
8633 # Extract the first word of "ar", so it can be a program name with args.
8634 set dummy ar; ac_word=$2
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636 $as_echo_n "checking for $ac_word... " >&6; }
8637 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8640 if test -n "$ac_ct_AR"; then
8641 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 test -z "$as_dir" && as_dir=.
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8650 ac_cv_prog_ac_ct_AR="ar"
8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8661 if test -n "$ac_ct_AR"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8663 $as_echo "$ac_ct_AR" >&6; }
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8669 if test "x$ac_ct_AR" = x; then
8672 case $cross_compiling:$ac_tool_warned in
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8676 ac_tool_warned=yes ;;
8684 if test -n "$ac_tool_prefix"; then
8685 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8686 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688 $as_echo_n "checking for $ac_word... " >&6; }
8689 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8690 $as_echo_n "(cached) " >&6
8692 if test -n "$DLLTOOL"; then
8693 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 test -z "$as_dir" && as_dir=.
8700 for ac_exec_ext in '' $ac_executable_extensions; do
8701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8702 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712 DLLTOOL=$ac_cv_prog_DLLTOOL
8713 if test -n "$DLLTOOL"; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8715 $as_echo "$DLLTOOL" >&6; }
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718 $as_echo "no" >&6; }
8723 if test -z "$ac_cv_prog_DLLTOOL"; then
8724 ac_ct_DLLTOOL=$DLLTOOL
8725 # Extract the first word of "dlltool", so it can be a program name with args.
8726 set dummy dlltool; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8732 if test -n "$ac_ct_DLLTOOL"; then
8733 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8742 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8753 if test -n "$ac_ct_DLLTOOL"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8755 $as_echo "$ac_ct_DLLTOOL" >&6; }
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8761 if test "x$ac_ct_DLLTOOL" = x; then
8764 case $cross_compiling:$ac_tool_warned in
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8768 ac_tool_warned=yes ;;
8770 DLLTOOL=$ac_ct_DLLTOOL
8773 DLLTOOL="$ac_cv_prog_DLLTOOL"
8776 if test -n "$ac_tool_prefix"; then
8777 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8778 set dummy ${ac_tool_prefix}windres; ac_word=$2
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8780 $as_echo_n "checking for $ac_word... " >&6; }
8781 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
8784 if test -n "$WINDRES"; then
8785 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 test -z "$as_dir" && as_dir=.
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8794 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 WINDRES=$ac_cv_prog_WINDRES
8805 if test -n "$WINDRES"; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8807 $as_echo "$WINDRES" >&6; }
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8815 if test -z "$ac_cv_prog_WINDRES"; then
8816 ac_ct_WINDRES=$WINDRES
8817 # Extract the first word of "windres", so it can be a program name with args.
8818 set dummy windres; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8822 $as_echo_n "(cached) " >&6
8824 if test -n "$ac_ct_WINDRES"; then
8825 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 test -z "$as_dir" && as_dir=.
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8834 ac_cv_prog_ac_ct_WINDRES="windres"
8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8845 if test -n "$ac_ct_WINDRES"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8847 $as_echo "$ac_ct_WINDRES" >&6; }
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8853 if test "x$ac_ct_WINDRES" = x; then
8856 case $cross_compiling:$ac_tool_warned in
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8860 ac_tool_warned=yes ;;
8862 WINDRES=$ac_ct_WINDRES
8865 WINDRES="$ac_cv_prog_WINDRES"
8869 # Needed for GNU/Hurd.
8870 if test -n "$ac_tool_prefix"; then
8871 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8872 set dummy ${ac_tool_prefix}mig; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if test "${ac_cv_prog_MIG+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
8878 if test -n "$MIG"; then
8879 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8899 if test -n "$MIG"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8901 $as_echo "$MIG" >&6; }
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8909 if test -z "$ac_cv_prog_MIG"; then
8911 # Extract the first word of "mig", so it can be a program name with args.
8912 set dummy mig; ac_word=$2
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914 $as_echo_n "checking for $ac_word... " >&6; }
8915 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
8918 if test -n "$ac_ct_MIG"; then
8919 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925 test -z "$as_dir" && as_dir=.
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8928 ac_cv_prog_ac_ct_MIG="mig"
8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8939 if test -n "$ac_ct_MIG"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8941 $as_echo "$ac_ct_MIG" >&6; }
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8947 if test "x$ac_ct_MIG" = x; then
8950 case $cross_compiling:$ac_tool_warned in
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8954 ac_tool_warned=yes ;;
8959 MIG="$ac_cv_prog_MIG"
8963 # ---------------------- #
8964 # Checks for libraries. #
8965 # ---------------------- #
8967 # We might need to link with -lm; most simulators need it.
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8969 $as_echo_n "checking for main in -lm... " >&6; }
8970 if test "${ac_cv_lib_m_main+set}" = set; then :
8971 $as_echo_n "(cached) " >&6
8973 ac_check_lib_save_LIBS=$LIBS
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8987 if ac_fn_c_try_link "$LINENO"; then :
8988 ac_cv_lib_m_main=yes
8992 rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 LIBS=$ac_check_lib_save_LIBS
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8997 $as_echo "$ac_cv_lib_m_main" >&6; }
8998 if test "x$ac_cv_lib_m_main" = x""yes; then :
8999 cat >>confdefs.h <<_ACEOF
9008 # We need to link with -lw to get `wctype' on Solaris before Solaris
9009 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9010 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9011 # is known to have this problem). Therefore we avoid libw if we can.
9012 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
9013 if test "x$ac_cv_func_wctype" = x""yes; then :
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9017 $as_echo_n "checking for wctype in -lw... " >&6; }
9018 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9019 $as_echo_n "(cached) " >&6
9021 ac_check_lib_save_LIBS=$LIBS
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9026 /* Override any GCC internal prototype to avoid an error.
9027 Use char because int might match the return type of a GCC
9028 builtin and then its argument prototype would still apply. */
9041 if ac_fn_c_try_link "$LINENO"; then :
9042 ac_cv_lib_w_wctype=yes
9044 ac_cv_lib_w_wctype=no
9046 rm -f core conftest.err conftest.$ac_objext \
9047 conftest$ac_exeext conftest.$ac_ext
9048 LIBS=$ac_check_lib_save_LIBS
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9051 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9052 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
9053 cat >>confdefs.h <<_ACEOF
9064 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9066 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9067 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9068 $as_echo_n "(cached) " >&6
9070 ac_func_search_save_LIBS=$LIBS
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9074 /* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
9080 char gethostbyname ();
9084 return gethostbyname ();
9089 for ac_lib in '' nsl; do
9090 if test -z "$ac_lib"; then
9091 ac_res="none required"
9094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9096 if ac_fn_c_try_link "$LINENO"; then :
9097 ac_cv_search_gethostbyname=$ac_res
9099 rm -f core conftest.err conftest.$ac_objext \
9101 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9105 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9108 ac_cv_search_gethostbyname=no
9111 LIBS=$ac_func_search_save_LIBS
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9114 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9115 ac_res=$ac_cv_search_gethostbyname
9116 if test "$ac_res" != no; then :
9117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9122 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9124 $as_echo_n "checking for library containing socketpair... " >&6; }
9125 if test "${ac_cv_search_socketpair+set}" = set; then :
9126 $as_echo_n "(cached) " >&6
9128 ac_func_search_save_LIBS=$LIBS
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9132 /* Override any GCC internal prototype to avoid an error.
9133 Use char because int might match the return type of a GCC
9134 builtin and then its argument prototype would still apply. */
9142 return socketpair ();
9147 for ac_lib in '' socket; do
9148 if test -z "$ac_lib"; then
9149 ac_res="none required"
9152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9154 if ac_fn_c_try_link "$LINENO"; then :
9155 ac_cv_search_socketpair=$ac_res
9157 rm -f core conftest.err conftest.$ac_objext \
9159 if test "${ac_cv_search_socketpair+set}" = set; then :
9163 if test "${ac_cv_search_socketpair+set}" = set; then :
9166 ac_cv_search_socketpair=no
9169 LIBS=$ac_func_search_save_LIBS
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9172 $as_echo "$ac_cv_search_socketpair" >&6; }
9173 ac_res=$ac_cv_search_socketpair
9174 if test "$ac_res" != no; then :
9175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9180 # Link in zlib if we can. This allows us to read compressed debug sections.
9182 # See if the user specified whether he wants zlib support or not.
9184 # Check whether --with-zlib was given.
9185 if test "${with_zlib+set}" = set; then :
9192 if test "$with_zlib" != "no"; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9194 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9195 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
9198 ac_func_search_save_LIBS=$LIBS
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9202 /* Override any GCC internal prototype to avoid an error.
9203 Use char because int might match the return type of a GCC
9204 builtin and then its argument prototype would still apply. */
9208 char zlibVersion ();
9212 return zlibVersion ();
9217 for ac_lib in '' z; do
9218 if test -z "$ac_lib"; then
9219 ac_res="none required"
9222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9224 if ac_fn_c_try_link "$LINENO"; then :
9225 ac_cv_search_zlibVersion=$ac_res
9227 rm -f core conftest.err conftest.$ac_objext \
9229 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9233 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9236 ac_cv_search_zlibVersion=no
9239 LIBS=$ac_func_search_save_LIBS
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9242 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9243 ac_res=$ac_cv_search_zlibVersion
9244 if test "$ac_res" != no; then :
9245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9246 for ac_header in zlib.h
9248 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9249 if test "x$ac_cv_header_zlib_h" = x""yes; then :
9250 cat >>confdefs.h <<_ACEOF
9251 #define HAVE_ZLIB_H 1
9260 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9261 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9266 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9268 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9269 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9270 $as_echo_n "(cached) " >&6
9272 ac_func_search_save_LIBS=$LIBS
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9276 /* Override any GCC internal prototype to avoid an error.
9277 Use char because int might match the return type of a GCC
9278 builtin and then its argument prototype would still apply. */
9282 char dlgetmodinfo ();
9286 return dlgetmodinfo ();
9291 for ac_lib in '' dl xpdl; do
9292 if test -z "$ac_lib"; then
9293 ac_res="none required"
9296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 ac_cv_search_dlgetmodinfo=$ac_res
9301 rm -f core conftest.err conftest.$ac_objext \
9303 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9307 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9310 ac_cv_search_dlgetmodinfo=no
9313 LIBS=$ac_func_search_save_LIBS
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9316 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9317 ac_res=$ac_cv_search_dlgetmodinfo
9318 if test "$ac_res" != no; then :
9319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9327 # Check whether --with-libiconv-prefix was given.
9328 if test "${with_libiconv_prefix+set}" = set; then :
9329 withval=$with_libiconv_prefix;
9330 for dir in `echo "$withval" | tr : ' '`; do
9331 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9332 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
9338 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
9339 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9342 $as_echo_n "checking for iconv... " >&6; }
9343 if test "${am_cv_func_iconv+set}" = set; then :
9344 $as_echo_n "(cached) " >&6
9347 am_cv_func_iconv="no, consider installing GNU libiconv"
9349 am_cv_use_build_libiconv=no
9350 am_cv_build_libiconv_path=
9352 # If libiconv is part of the build tree, then try using it over
9354 if test -d ../libiconv; then
9355 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9356 am_save_LIBS="$LIBS"
9357 am_save_CPPFLAGS="$CPPFLAGS"
9358 LIBS="$LIBS $lib_dir/libiconv.a"
9359 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9367 iconv_t cd = iconv_open("","");
9368 iconv(cd,NULL,NULL,NULL,NULL);
9374 if ac_fn_c_try_link "$LINENO"; then :
9375 am_cv_use_build_libiconv=yes
9376 am_cv_build_libiconv_path=$lib_dir/libiconv.a
9378 am_cv_func_iconv=yes
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9382 LIBS="$am_save_LIBS"
9383 CPPFLAGS="$am_save_CPPFLAGS"
9384 if test "$am_cv_use_build_libiconv" = "yes"; then
9390 # Next, try to find iconv in libc.
9391 if test "$am_cv_func_iconv" != yes; then
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9399 iconv_t cd = iconv_open("","");
9400 iconv(cd,NULL,NULL,NULL,NULL);
9406 if ac_fn_c_try_link "$LINENO"; then :
9407 am_cv_func_iconv=yes
9409 rm -f core conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
9413 # If iconv was not in libc, try -liconv. In this case, arrange to
9414 # look in the libiconv prefix, if it was specified by the user.
9415 if test "$am_cv_func_iconv" != yes; then
9416 am_save_CPPFLAGS="$CPPFLAGS"
9417 am_save_LIBS="$LIBS"
9418 if test -n "$LIBICONV_INCLUDE"; then
9419 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9420 LIBS="$LIBS $LIBICONV_LIBDIR"
9422 LIBS="$LIBS -liconv"
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9430 iconv_t cd = iconv_open("","");
9431 iconv(cd,NULL,NULL,NULL,NULL);
9437 if ac_fn_c_try_link "$LINENO"; then :
9439 am_cv_func_iconv=yes
9441 rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9443 LIBS="$am_save_LIBS"
9444 CPPFLAGS="$am_save_CPPFLAGS"
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9449 $as_echo "$am_cv_func_iconv" >&6; }
9451 # Set the various flags based on the cache variables. We can't rely
9452 # on the flags to remain set from the above code, due to caching.
9454 if test "$am_cv_lib_iconv" = yes; then
9460 if test "$am_cv_use_build_libiconv" = yes; then
9461 LIBICONV="$am_cv_build_libiconv_path"
9463 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9465 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9466 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9468 if test "$am_cv_func_iconv" = yes; then
9470 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9473 $as_echo_n "checking for iconv declaration... " >&6; }
9474 if test "${am_cv_proto_iconv+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9487 #if defined(__STDC__) || defined(__cplusplus)
9488 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9501 if ac_fn_c_try_compile "$LINENO"; then :
9502 am_cv_proto_iconv_arg1=""
9504 am_cv_proto_iconv_arg1="const"
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507 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);"
9510 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9512 }$am_cv_proto_iconv" >&5
9514 }$am_cv_proto_iconv" >&6; }
9516 cat >>confdefs.h <<_ACEOF
9517 #define ICONV_CONST $am_cv_proto_iconv_arg1
9523 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9524 # There is a very specific comment in /usr/include/curses.h explaining that
9525 # termcap routines built into libcurses must not be used.
9527 # The symptoms we observed so far is GDB unexpectedly changing
9528 # the terminal settings when tgetent is called - this is particularly
9529 # visible as the output is missing carriage returns, and so rapidly
9530 # becomes very hard to read.
9532 # The readline configure script has already decided that libtermcap
9533 # was enough for its purposes, and so decided to build readline using
9534 # libtermcap. Since the TUI mode requires curses, building GDB with
9535 # TUI enabled results in both libraries to be used at the same time,
9536 # which is not allowed. This basically means that GDB with TUI is
9537 # broken on alpha-osf.
9541 if test x"$enable_tui" = xyes; then
9542 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9544 if test x"$enable_tui" = xauto; then
9550 # For the TUI, we need enhanced curses functionality.
9551 if test x"$enable_tui" != xno; then
9556 if test x"$prefer_curses" = xyes; then
9557 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9558 # curses library because the latter might not provide all the
9559 # functionality we need. However, this leads to problems on systems
9560 # where the linker searches /usr/local/lib, but the compiler doesn't
9561 # search /usr/local/include, if ncurses is installed in /usr/local. A
9562 # default installation of ncurses on alpha*-dec-osf* will lead to such
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9565 $as_echo_n "checking for library containing waddstr... " >&6; }
9566 if test "${ac_cv_search_waddstr+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9569 ac_func_search_save_LIBS=$LIBS
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9573 /* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply. */
9588 for ac_lib in '' ncurses cursesX curses; do
9589 if test -z "$ac_lib"; then
9590 ac_res="none required"
9593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9595 if ac_fn_c_try_link "$LINENO"; then :
9596 ac_cv_search_waddstr=$ac_res
9598 rm -f core conftest.err conftest.$ac_objext \
9600 if test "${ac_cv_search_waddstr+set}" = set; then :
9604 if test "${ac_cv_search_waddstr+set}" = set; then :
9607 ac_cv_search_waddstr=no
9610 LIBS=$ac_func_search_save_LIBS
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9613 $as_echo "$ac_cv_search_waddstr" >&6; }
9614 ac_res=$ac_cv_search_waddstr
9615 if test "$ac_res" != no; then :
9616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9621 if test "$ac_cv_search_waddstr" != no; then
9626 # Check whether we should enable the TUI, but only do so if we really
9628 if test x"$enable_tui" != xno; then
9629 if test -d $srcdir/tui; then
9630 if test "$curses_found" != no; then
9631 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9632 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9633 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9634 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9635 CONFIG_ALL="${CONFIG_ALL} all-tui"
9636 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
9637 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
9638 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
9640 if test x"$enable_tui" = xyes; then
9641 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9644 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9650 # Since GDB uses Readline, we need termcap functionality. In many
9651 # cases this will be provided by the curses library, but some systems
9652 # have a seperate termcap library, or no curses library at all.
9656 if test -d $srcdir/libtermcap; then
9657 LIBS="../libtermcap/libtermcap.a $LIBS"
9658 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9661 ac_cv_search_tgetent="none required"
9664 ac_cv_search_tgetent="none required"
9665 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9669 # These are the libraries checked by Readline.
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9671 $as_echo_n "checking for library containing tgetent... " >&6; }
9672 if test "${ac_cv_search_tgetent+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9675 ac_func_search_save_LIBS=$LIBS
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9694 for ac_lib in '' termcap tinfo curses ncurses; do
9695 if test -z "$ac_lib"; then
9696 ac_res="none required"
9699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9701 if ac_fn_c_try_link "$LINENO"; then :
9702 ac_cv_search_tgetent=$ac_res
9704 rm -f core conftest.err conftest.$ac_objext \
9706 if test "${ac_cv_search_tgetent+set}" = set; then :
9710 if test "${ac_cv_search_tgetent+set}" = set; then :
9713 ac_cv_search_tgetent=no
9716 LIBS=$ac_func_search_save_LIBS
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9719 $as_echo "$ac_cv_search_tgetent" >&6; }
9720 ac_res=$ac_cv_search_tgetent
9721 if test "$ac_res" != no; then :
9722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9727 if test "$ac_cv_search_tgetent" = no; then
9728 as_fn_error "no termcap library found" "$LINENO" 5
9732 # Check whether --with-system-readline was given.
9733 if test "${with_system_readline+set}" = set; then :
9734 withval=$with_system_readline;
9738 if test "$with_system_readline" = yes; then
9743 # readline-6.0 started to use the name `_rl_echoing_p'.
9744 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9747 $as_echo_n "checking for readline_echoing_p... " >&6; }
9749 LIBS="$LIBS $READLINE"
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9756 extern int readline_echoing_p;
9757 return readline_echoing_p;
9762 if ac_fn_c_try_link "$LINENO"; then :
9763 READLINE_ECHOING_P=yes
9765 READLINE_ECHOING_P=no
9767 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9770 rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9774 $as_echo "$READLINE_ECHOING_P" >&6; }
9776 READLINE='$(READLINE_DIR)/libreadline.a'
9777 READLINE_DEPS='$(READLINE)'
9778 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9785 # Check whether --with-expat was given.
9786 if test "${with_expat+set}" = set; then :
9787 withval=$with_expat;
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9793 $as_echo_n "checking whether to use expat... " >&6; }
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9795 $as_echo "$with_expat" >&6; }
9797 if test "${with_expat}" = no; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9799 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9803 if test "X$prefix" = "XNONE"; then
9804 acl_final_prefix="$ac_default_prefix"
9806 acl_final_prefix="$prefix"
9808 if test "X$exec_prefix" = "XNONE"; then
9809 acl_final_exec_prefix='${prefix}'
9811 acl_final_exec_prefix="$exec_prefix"
9813 acl_save_prefix="$prefix"
9814 prefix="$acl_final_prefix"
9815 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9816 prefix="$acl_save_prefix"
9819 # Check whether --with-gnu-ld was given.
9820 if test "${with_gnu_ld+set}" = set; then :
9821 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9826 # Prepare PATH_SEPARATOR.
9827 # The user is always right.
9828 if test "${PATH_SEPARATOR+set}" != set; then
9829 echo "#! /bin/sh" >conf$$.sh
9830 echo "exit 0" >>conf$$.sh
9832 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9840 if test "$GCC" = yes; then
9841 # Check if gcc -print-prog-name=ld gives a path.
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9843 $as_echo_n "checking for ld used by GCC... " >&6; }
9846 # gcc leaves a trailing carriage return which upsets mingw
9847 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9849 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9852 # Accept absolute paths.
9853 [\\/]* | [A-Za-z]:[\\/]*)
9854 re_direlt='/[^/][^/]*/\.\./'
9855 # Canonicalize the path of ld
9856 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9857 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9858 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9860 test -z "$LD" && LD="$ac_prog"
9863 # If it fails, then pretend we aren't using GCC.
9867 # If it is relative, then search for the first ld in PATH.
9871 elif test "$with_gnu_ld" = yes; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9873 $as_echo_n "checking for GNU ld... " >&6; }
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9876 $as_echo_n "checking for non-GNU ld... " >&6; }
9878 if test "${acl_cv_path_LD+set}" = set; then :
9879 $as_echo_n "(cached) " >&6
9881 if test -z "$LD"; then
9882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9883 for ac_dir in $PATH; do
9884 test -z "$ac_dir" && ac_dir=.
9885 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9886 acl_cv_path_LD="$ac_dir/$ac_prog"
9887 # Check to see if the program is GNU ld. I'd rather use --version,
9888 # but apparently some GNU ld's only accept -v.
9889 # Break only if it was the GNU/non-GNU ld that we prefer.
9890 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9891 test "$with_gnu_ld" != no && break
9893 test "$with_gnu_ld" != yes && break
9899 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9903 LD="$acl_cv_path_LD"
9904 if test -n "$LD"; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9906 $as_echo "$LD" >&6; }
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9911 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9913 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9914 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9915 $as_echo_n "(cached) " >&6
9917 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9918 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9919 acl_cv_prog_gnu_ld=yes
9921 acl_cv_prog_gnu_ld=no
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9925 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9926 with_gnu_ld=$acl_cv_prog_gnu_ld
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9931 $as_echo_n "checking for shared library run path origin... " >&6; }
9932 if test "${acl_cv_rpath+set}" = set; then :
9933 $as_echo_n "(cached) " >&6
9936 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9937 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9944 $as_echo "$acl_cv_rpath" >&6; }
9946 libext="$acl_cv_libext"
9947 shlibext="$acl_cv_shlibext"
9948 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9949 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9950 hardcode_direct="$acl_cv_hardcode_direct"
9951 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9952 # Check whether --enable-rpath was given.
9953 if test "${enable_rpath+set}" = set; then :
9954 enableval=$enable_rpath; :
9970 acl_save_prefix="$prefix"
9971 prefix="$acl_final_prefix"
9972 acl_save_exec_prefix="$exec_prefix"
9973 exec_prefix="$acl_final_exec_prefix"
9975 eval additional_includedir=\"$includedir\"
9976 eval additional_libdir=\"$libdir\"
9978 exec_prefix="$acl_save_exec_prefix"
9979 prefix="$acl_save_prefix"
9982 # Check whether --with-libexpat-prefix was given.
9983 if test "${with_libexpat_prefix+set}" = set; then :
9984 withval=$with_libexpat_prefix;
9985 if test "X$withval" = "Xno"; then
9988 if test "X$withval" = "X"; then
9990 acl_save_prefix="$prefix"
9991 prefix="$acl_final_prefix"
9992 acl_save_exec_prefix="$exec_prefix"
9993 exec_prefix="$acl_final_exec_prefix"
9995 eval additional_includedir=\"$includedir\"
9996 eval additional_libdir=\"$libdir\"
9998 exec_prefix="$acl_save_exec_prefix"
9999 prefix="$acl_save_prefix"
10002 additional_includedir="$withval/include"
10003 additional_libdir="$withval/lib"
10014 names_already_handled=
10015 names_next_round='expat '
10016 while test -n "$names_next_round"; do
10017 names_this_round="$names_next_round"
10019 for name in $names_this_round; do
10021 for n in $names_already_handled; do
10022 if test "$n" = "$name"; then
10023 already_handled=yes
10027 if test -z "$already_handled"; then
10028 names_already_handled="$names_already_handled $name"
10029 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10030 eval value=\"\$HAVE_LIB$uppername\"
10031 if test -n "$value"; then
10032 if test "$value" = yes; then
10033 eval value=\"\$LIB$uppername\"
10034 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10035 eval value=\"\$LTLIB$uppername\"
10036 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10045 if test $use_additional = yes; then
10046 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10047 found_dir="$additional_libdir"
10048 found_so="$additional_libdir/lib$name.$shlibext"
10049 if test -f "$additional_libdir/lib$name.la"; then
10050 found_la="$additional_libdir/lib$name.la"
10053 if test -f "$additional_libdir/lib$name.$libext"; then
10054 found_dir="$additional_libdir"
10055 found_a="$additional_libdir/lib$name.$libext"
10056 if test -f "$additional_libdir/lib$name.la"; then
10057 found_la="$additional_libdir/lib$name.la"
10062 if test "X$found_dir" = "X"; then
10063 for x in $LDFLAGS $LTLIBEXPAT; do
10065 acl_save_prefix="$prefix"
10066 prefix="$acl_final_prefix"
10067 acl_save_exec_prefix="$exec_prefix"
10068 exec_prefix="$acl_final_exec_prefix"
10070 exec_prefix="$acl_save_exec_prefix"
10071 prefix="$acl_save_prefix"
10075 dir=`echo "X$x" | sed -e 's/^X-L//'`
10076 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10078 found_so="$dir/lib$name.$shlibext"
10079 if test -f "$dir/lib$name.la"; then
10080 found_la="$dir/lib$name.la"
10083 if test -f "$dir/lib$name.$libext"; then
10085 found_a="$dir/lib$name.$libext"
10086 if test -f "$dir/lib$name.la"; then
10087 found_la="$dir/lib$name.la"
10093 if test "X$found_dir" != "X"; then
10098 if test "X$found_dir" != "X"; then
10099 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10100 if test "X$found_so" != "X"; then
10101 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10102 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10105 for x in $ltrpathdirs; do
10106 if test "X$x" = "X$found_dir"; then
10111 if test -z "$haveit"; then
10112 ltrpathdirs="$ltrpathdirs $found_dir"
10114 if test "$hardcode_direct" = yes; then
10115 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10117 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10118 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10120 for x in $rpathdirs; do
10121 if test "X$x" = "X$found_dir"; then
10126 if test -z "$haveit"; then
10127 rpathdirs="$rpathdirs $found_dir"
10131 for x in $LDFLAGS $LIBEXPAT; do
10133 acl_save_prefix="$prefix"
10134 prefix="$acl_final_prefix"
10135 acl_save_exec_prefix="$exec_prefix"
10136 exec_prefix="$acl_final_exec_prefix"
10138 exec_prefix="$acl_save_exec_prefix"
10139 prefix="$acl_save_prefix"
10141 if test "X$x" = "X-L$found_dir"; then
10146 if test -z "$haveit"; then
10147 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10149 if test "$hardcode_minus_L" != no; then
10150 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10152 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10158 if test "X$found_a" != "X"; then
10159 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10161 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10164 additional_includedir=
10165 case "$found_dir" in
10167 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10168 additional_includedir="$basedir/include"
10171 if test "X$additional_includedir" != "X"; then
10172 if test "X$additional_includedir" != "X/usr/include"; then
10174 if test "X$additional_includedir" = "X/usr/local/include"; then
10175 if test -n "$GCC"; then
10177 linux*) haveit=yes;;
10181 if test -z "$haveit"; then
10182 for x in $CPPFLAGS $INCEXPAT; do
10184 acl_save_prefix="$prefix"
10185 prefix="$acl_final_prefix"
10186 acl_save_exec_prefix="$exec_prefix"
10187 exec_prefix="$acl_final_exec_prefix"
10189 exec_prefix="$acl_save_exec_prefix"
10190 prefix="$acl_save_prefix"
10192 if test "X$x" = "X-I$additional_includedir"; then
10197 if test -z "$haveit"; then
10198 if test -d "$additional_includedir"; then
10199 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10205 if test -n "$found_la"; then
10206 save_libdir="$libdir"
10207 case "$found_la" in
10208 */* | *\\*) . "$found_la" ;;
10209 *) . "./$found_la" ;;
10211 libdir="$save_libdir"
10212 for dep in $dependency_libs; do
10215 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10216 if test "X$additional_libdir" != "X/usr/lib"; then
10218 if test "X$additional_libdir" = "X/usr/local/lib"; then
10219 if test -n "$GCC"; then
10221 linux*) haveit=yes;;
10225 if test -z "$haveit"; then
10227 for x in $LDFLAGS $LIBEXPAT; do
10229 acl_save_prefix="$prefix"
10230 prefix="$acl_final_prefix"
10231 acl_save_exec_prefix="$exec_prefix"
10232 exec_prefix="$acl_final_exec_prefix"
10234 exec_prefix="$acl_save_exec_prefix"
10235 prefix="$acl_save_prefix"
10237 if test "X$x" = "X-L$additional_libdir"; then
10242 if test -z "$haveit"; then
10243 if test -d "$additional_libdir"; then
10244 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10248 for x in $LDFLAGS $LTLIBEXPAT; do
10250 acl_save_prefix="$prefix"
10251 prefix="$acl_final_prefix"
10252 acl_save_exec_prefix="$exec_prefix"
10253 exec_prefix="$acl_final_exec_prefix"
10255 exec_prefix="$acl_save_exec_prefix"
10256 prefix="$acl_save_prefix"
10258 if test "X$x" = "X-L$additional_libdir"; then
10263 if test -z "$haveit"; then
10264 if test -d "$additional_libdir"; then
10265 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10272 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10273 if test "$enable_rpath" != no; then
10275 for x in $rpathdirs; do
10276 if test "X$x" = "X$dir"; then
10281 if test -z "$haveit"; then
10282 rpathdirs="$rpathdirs $dir"
10285 for x in $ltrpathdirs; do
10286 if test "X$x" = "X$dir"; then
10291 if test -z "$haveit"; then
10292 ltrpathdirs="$ltrpathdirs $dir"
10297 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10300 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10303 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10304 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10310 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10311 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10317 if test "X$rpathdirs" != "X"; then
10318 if test -n "$hardcode_libdir_separator"; then
10320 for found_dir in $rpathdirs; do
10321 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10323 acl_save_libdir="$libdir"
10325 eval flag=\"$hardcode_libdir_flag_spec\"
10326 libdir="$acl_save_libdir"
10327 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10329 for found_dir in $rpathdirs; do
10330 acl_save_libdir="$libdir"
10331 libdir="$found_dir"
10332 eval flag=\"$hardcode_libdir_flag_spec\"
10333 libdir="$acl_save_libdir"
10334 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10338 if test "X$ltrpathdirs" != "X"; then
10339 for found_dir in $ltrpathdirs; do
10340 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10345 ac_save_CPPFLAGS="$CPPFLAGS"
10347 for element in $INCEXPAT; do
10349 for x in $CPPFLAGS; do
10351 acl_save_prefix="$prefix"
10352 prefix="$acl_final_prefix"
10353 acl_save_exec_prefix="$exec_prefix"
10354 exec_prefix="$acl_final_exec_prefix"
10356 exec_prefix="$acl_save_exec_prefix"
10357 prefix="$acl_save_prefix"
10359 if test "X$x" = "X$element"; then
10364 if test -z "$haveit"; then
10365 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10371 $as_echo_n "checking for libexpat... " >&6; }
10372 if test "${ac_cv_libexpat+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
10376 ac_save_LIBS="$LIBS"
10377 LIBS="$LIBS $LIBEXPAT"
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10384 XML_Parser p = XML_ParserCreate (0);
10389 if ac_fn_c_try_link "$LINENO"; then :
10394 rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396 LIBS="$ac_save_LIBS"
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10400 $as_echo "$ac_cv_libexpat" >&6; }
10401 if test "$ac_cv_libexpat" = yes; then
10404 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10407 $as_echo_n "checking how to link with libexpat... " >&6; }
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10409 $as_echo "$LIBEXPAT" >&6; }
10412 CPPFLAGS="$ac_save_CPPFLAGS"
10422 if test "$HAVE_LIBEXPAT" != yes; then
10423 if test "$with_expat" = yes; then
10424 as_fn_error "expat is missing or unusable" "$LINENO" 5
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10427 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10431 LIBS="$LIBS $LIBEXPAT"
10432 for ac_func in XML_StopParser
10434 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10435 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
10436 cat >>confdefs.h <<_ACEOF
10437 #define HAVE_XML_STOPPARSER 1
10452 # Check whether --with-python was given.
10453 if test "${with_python+set}" = set; then :
10454 withval=$with_python;
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10460 $as_echo_n "checking whether to use python... " >&6; }
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10462 $as_echo "$with_python" >&6; }
10464 if test "${with_python}" = no; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10466 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10469 case "${with_python}" in
10471 if test -d ${with_python}; then
10472 # Assume the python binary is ${with_python}/bin/python.
10473 python_prog="${with_python}/bin/python"
10475 if test ! -x "${python_prog}"; then
10476 # Fall back to gdb 7.0/7.1 behaviour.
10477 python_prog=missing
10478 python_prefix=${with_python}
10480 elif test -x "${with_python}"; then
10481 # While we can't run python compiled for $host (unless host == build),
10482 # the user could write a script that provides the needed information,
10483 # so we support that.
10484 python_prog=${with_python}
10487 as_fn_error "invalid value for --with-python" "$LINENO" 5
10491 # Disallow --with-python=foo/bar.
10492 as_fn_error "invalid value for --with-python" "$LINENO" 5
10495 # The user has either specified auto, yes, or the name of the python
10496 # program assumed to be in $PATH.
10498 case "${with_python}" in
10500 if test ${build} = ${host}; then
10501 # Extract the first word of "python", so it can be a program name with args.
10502 set dummy python; ac_word=$2
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504 $as_echo_n "checking for $ac_word... " >&6; }
10505 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10508 case $python_prog_path in
10510 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514 for as_dir in $PATH
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10520 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10532 python_prog_path=$ac_cv_path_python_prog_path
10533 if test -n "$python_prog_path"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10535 $as_echo "$python_prog_path" >&6; }
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10542 if test "${python_prog_path}" = missing; then
10543 python_prog=missing
10545 python_prog=${python_prog_path}
10548 # Not much we can do except assume the cross-compiler will find the
10550 python_prog=missing
10554 # While we can't run python compiled for $host (unless host == build),
10555 # the user could write a script that provides the needed information,
10556 # so we support that.
10557 python_prog="${with_python}"
10558 # Extract the first word of "${python_prog}", so it can be a program name with args.
10559 set dummy ${python_prog}; ac_word=$2
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561 $as_echo_n "checking for $ac_word... " >&6; }
10562 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10563 $as_echo_n "(cached) " >&6
10565 case $python_prog_path in
10567 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10577 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10585 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10589 python_prog_path=$ac_cv_path_python_prog_path
10590 if test -n "$python_prog_path"; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10592 $as_echo "$python_prog_path" >&6; }
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595 $as_echo "no" >&6; }
10599 if test "${python_prog_path}" = missing; then
10600 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
10606 if test "${python_prog}" != missing; then
10607 # We have a python program to use, but it may be too old.
10608 # Don't flag an error for --with-python=auto (the default).
10609 have_python_config=yes
10610 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10611 if test $? != 0; then
10612 have_python_config=failed
10613 if test "${with_python}" != auto; then
10614 as_fn_error "failure running python-config --includes" "$LINENO" 5
10617 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10618 if test $? != 0; then
10619 have_python_config=failed
10620 if test "${with_python}" != auto; then
10621 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
10624 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10625 if test $? != 0; then
10626 have_python_config=failed
10627 if test "${with_python}" != auto; then
10628 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
10632 # Fall back to gdb 7.0/7.1 behaviour.
10633 if test -z ${python_prefix}; then
10637 python_includes="-I${python_prefix}/include"
10638 python_libs="-L${python_prefix}/lib"
10640 have_python_config=no
10643 # Having "/pythonX.Y" in the include path is awkward.
10644 # All those python headers get bubbled up to the top inviting lots
10645 # of random collisions. GDB originally didn't use python-config to
10646 # find the compilation parameters and includes "pythonX.Y/" in the
10647 # path of the, umm, include file. So strip away this part of the
10648 # output of python-config --includes.
10649 python_includes=`echo "${python_includes} " \
10650 | sed -e 's,/python[0-9]*[.][0-9]* , ,g'`
10652 # If we have python-config, only try the configuration it provides.
10653 # Otherwise fallback on the old way of trying different versions of
10657 if test "${have_python_config}" = yes; then
10658 python_version=`echo " ${python_libs} " \
10659 | sed -e 's,^.* -l\(python[0-9]*[.][0-9]*\) .*$,\1,'`
10660 case "${python_version}" in
10663 version=${python_version}
10665 new_CPPFLAGS=${python_includes}
10666 new_LIBS=${python_libs}
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10668 $as_echo_n "checking for ${version}... " >&6; }
10669 save_CPPFLAGS=$CPPFLAGS
10671 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10672 LIBS="$LIBS $new_LIBS"
10673 found_usable_python=no
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676 #include "${version}/Python.h"
10685 if ac_fn_c_try_link "$LINENO"; then :
10686 have_libpython=${version}
10687 found_usable_python=yes
10689 CPPFLAGS=$save_CPPFLAGS
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10695 $as_echo "${found_usable_python}" >&6; }
10699 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
10702 elif test "${have_python_config}" != failed; then
10703 if test "${have_libpython}" = no; then
10707 new_CPPFLAGS=${python_includes}
10708 new_LIBS="${python_libs} -lpython2.7"
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10710 $as_echo_n "checking for ${version}... " >&6; }
10711 save_CPPFLAGS=$CPPFLAGS
10713 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10714 LIBS="$LIBS $new_LIBS"
10715 found_usable_python=no
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 #include "${version}/Python.h"
10727 if ac_fn_c_try_link "$LINENO"; then :
10728 have_libpython=${version}
10729 found_usable_python=yes
10731 CPPFLAGS=$save_CPPFLAGS
10734 rm -f core conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10737 $as_echo "${found_usable_python}" >&6; }
10740 if test "${have_libpython}" = no; then
10744 new_CPPFLAGS=${python_includes}
10745 new_LIBS="${python_libs} -lpython2.6"
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10747 $as_echo_n "checking for ${version}... " >&6; }
10748 save_CPPFLAGS=$CPPFLAGS
10750 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10751 LIBS="$LIBS $new_LIBS"
10752 found_usable_python=no
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10755 #include "${version}/Python.h"
10764 if ac_fn_c_try_link "$LINENO"; then :
10765 have_libpython=${version}
10766 found_usable_python=yes
10768 CPPFLAGS=$save_CPPFLAGS
10771 rm -f core conftest.err conftest.$ac_objext \
10772 conftest$ac_exeext conftest.$ac_ext
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10774 $as_echo "${found_usable_python}" >&6; }
10777 if test ${have_libpython} = no; then
10781 new_CPPFLAGS=${python_includes}
10782 new_LIBS="${python_libs} -lpython2.5"
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10784 $as_echo_n "checking for ${version}... " >&6; }
10785 save_CPPFLAGS=$CPPFLAGS
10787 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10788 LIBS="$LIBS $new_LIBS"
10789 found_usable_python=no
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10792 #include "${version}/Python.h"
10801 if ac_fn_c_try_link "$LINENO"; then :
10802 have_libpython=${version}
10803 found_usable_python=yes
10805 CPPFLAGS=$save_CPPFLAGS
10808 rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10811 $as_echo "${found_usable_python}" >&6; }
10814 if test ${have_libpython} = no; then
10818 new_CPPFLAGS=${python_includes}
10819 new_LIBS="${python_libs} -lpython2.4"
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10821 $as_echo_n "checking for ${version}... " >&6; }
10822 save_CPPFLAGS=$CPPFLAGS
10824 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10825 LIBS="$LIBS $new_LIBS"
10826 found_usable_python=no
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10829 #include "${version}/Python.h"
10838 if ac_fn_c_try_link "$LINENO"; then :
10839 have_libpython=${version}
10840 found_usable_python=yes
10842 CPPFLAGS=$save_CPPFLAGS
10845 rm -f core conftest.err conftest.$ac_objext \
10846 conftest$ac_exeext conftest.$ac_ext
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10848 $as_echo "${found_usable_python}" >&6; }
10852 if test "${have_libpython}" = python2.7; then
10854 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10856 elif test "${have_libpython}" = python2.6; then
10858 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10860 elif test "${have_libpython}" = python2.5; then
10862 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10864 elif test "${have_libpython}" = python2.4; then
10866 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10870 if test "${have_libpython}" = no; then
10871 case "${with_python}" in
10873 as_fn_error "python is missing or unusable" "$LINENO" 5
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10877 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10880 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
10884 if test -n "${python_prefix}"; then
10886 cat >>confdefs.h <<_ACEOF
10887 #define WITH_PYTHON_PATH "${python_prefix}"
10891 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10892 if test "x$prefix" = xNONE; then
10893 test_prefix=/usr/local
10895 test_prefix=$prefix
10898 test_prefix=$exec_prefix
10901 case ${python_prefix} in
10902 "${test_prefix}"|"${test_prefix}/"*|\
10903 '${exec_prefix}'|'${exec_prefix}/'*)
10908 cat >>confdefs.h <<_ACEOF
10909 #define PYTHON_PATH_RELOCATABLE $value
10917 if test "${have_libpython}" != no; then
10919 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10921 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10922 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10923 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10924 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
10925 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10927 # Flags needed to compile Python code (taken from python-config --cflags).
10928 # We cannot call python-config directly because it will output whatever was
10929 # used when compiling the Python interpreter itself, including flags which
10930 # would make the python-related objects be compiled differently from the
10931 # rest of GDB (e.g., -O2 and -fPIC).
10932 if test "${GCC}" = yes; then
10933 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
10936 if test "x${tentative_python_cflags}" != x; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10938 $as_echo_n "checking compiler flags for python code... " >&6; }
10939 for flag in ${tentative_python_cflags}; do
10940 # Check that the compiler accepts it
10941 saved_CFLAGS="$CFLAGS"
10942 CFLAGS="$CFLAGS $flag"
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10954 if ac_fn_c_try_compile "$LINENO"; then :
10955 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958 CFLAGS="$saved_CFLAGS"
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10961 $as_echo "${PYTHON_CFLAGS}" >&6; }
10964 # Even if Python support is not compiled in, we need to have these files
10966 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10967 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
10968 python/py-prettyprint.c python/py-auto-load.c"
10972 # ------------------------- #
10973 # Checks for header files. #
10974 # ------------------------- #
10976 ac_header_dirent=no
10977 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10978 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10980 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10982 $as_echo_n "(cached) " >&6
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10986 #include <sys/types.h>
10998 if ac_fn_c_try_compile "$LINENO"; then :
10999 eval "$as_ac_Header=yes"
11001 eval "$as_ac_Header=no"
11003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 eval ac_res=\$$as_ac_Header
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11007 $as_echo "$ac_res" >&6; }
11008 eval as_val=\$$as_ac_Header
11009 if test "x$as_val" = x""yes; then :
11010 cat >>confdefs.h <<_ACEOF
11011 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11014 ac_header_dirent=$ac_hdr; break
11018 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11019 if test $ac_header_dirent = dirent.h; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11021 $as_echo_n "checking for library containing opendir... " >&6; }
11022 if test "${ac_cv_search_opendir+set}" = set; then :
11023 $as_echo_n "(cached) " >&6
11025 ac_func_search_save_LIBS=$LIBS
11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h. */
11029 /* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
11044 for ac_lib in '' dir; do
11045 if test -z "$ac_lib"; then
11046 ac_res="none required"
11049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11051 if ac_fn_c_try_link "$LINENO"; then :
11052 ac_cv_search_opendir=$ac_res
11054 rm -f core conftest.err conftest.$ac_objext \
11056 if test "${ac_cv_search_opendir+set}" = set; then :
11060 if test "${ac_cv_search_opendir+set}" = set; then :
11063 ac_cv_search_opendir=no
11065 rm conftest.$ac_ext
11066 LIBS=$ac_func_search_save_LIBS
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11069 $as_echo "$ac_cv_search_opendir" >&6; }
11070 ac_res=$ac_cv_search_opendir
11071 if test "$ac_res" != no; then :
11072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11078 $as_echo_n "checking for library containing opendir... " >&6; }
11079 if test "${ac_cv_search_opendir+set}" = set; then :
11080 $as_echo_n "(cached) " >&6
11082 ac_func_search_save_LIBS=$LIBS
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11086 /* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
11101 for ac_lib in '' x; do
11102 if test -z "$ac_lib"; then
11103 ac_res="none required"
11106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11108 if ac_fn_c_try_link "$LINENO"; then :
11109 ac_cv_search_opendir=$ac_res
11111 rm -f core conftest.err conftest.$ac_objext \
11113 if test "${ac_cv_search_opendir+set}" = set; then :
11117 if test "${ac_cv_search_opendir+set}" = set; then :
11120 ac_cv_search_opendir=no
11122 rm conftest.$ac_ext
11123 LIBS=$ac_func_search_save_LIBS
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11126 $as_echo "$ac_cv_search_opendir" >&6; }
11127 ac_res=$ac_cv_search_opendir
11128 if test "$ac_res" != no; then :
11129 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11136 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11137 if test "${ac_cv_header_stat_broken+set}" = set; then :
11138 $as_echo_n "(cached) " >&6
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11142 #include <sys/types.h>
11143 #include <sys/stat.h>
11145 #if defined S_ISBLK && defined S_IFDIR
11146 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11149 #if defined S_ISBLK && defined S_IFCHR
11150 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11153 #if defined S_ISLNK && defined S_IFREG
11154 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11157 #if defined S_ISSOCK && defined S_IFREG
11158 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11162 if ac_fn_c_try_compile "$LINENO"; then :
11163 ac_cv_header_stat_broken=no
11165 ac_cv_header_stat_broken=yes
11167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11170 $as_echo "$ac_cv_header_stat_broken" >&6; }
11171 if test $ac_cv_header_stat_broken = yes; then
11173 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11178 $as_echo_n "checking for ANSI C header files... " >&6; }
11179 if test "${ac_cv_header_stdc+set}" = set; then :
11180 $as_echo_n "(cached) " >&6
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11184 #include <stdlib.h>
11185 #include <stdarg.h>
11186 #include <string.h>
11197 if ac_fn_c_try_compile "$LINENO"; then :
11198 ac_cv_header_stdc=yes
11200 ac_cv_header_stdc=no
11202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11204 if test $ac_cv_header_stdc = yes; then
11205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207 /* end confdefs.h. */
11208 #include <string.h>
11211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11212 $EGREP "memchr" >/dev/null 2>&1; then :
11215 ac_cv_header_stdc=no
11221 if test $ac_cv_header_stdc = yes; then
11222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11225 #include <stdlib.h>
11228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11229 $EGREP "free" >/dev/null 2>&1; then :
11232 ac_cv_header_stdc=no
11238 if test $ac_cv_header_stdc = yes; then
11239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11240 if test "$cross_compiling" = yes; then :
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11246 #include <stdlib.h>
11247 #if ((' ' & 0x0FF) == 0x020)
11248 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11249 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11251 # define ISLOWER(c) \
11252 (('a' <= (c) && (c) <= 'i') \
11253 || ('j' <= (c) && (c) <= 'r') \
11254 || ('s' <= (c) && (c) <= 'z'))
11255 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11258 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11263 for (i = 0; i < 256; i++)
11264 if (XOR (islower (i), ISLOWER (i))
11265 || toupper (i) != TOUPPER (i))
11270 if ac_fn_c_try_run "$LINENO"; then :
11273 ac_cv_header_stdc=no
11275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11276 conftest.$ac_objext conftest.beam conftest.$ac_ext
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11282 $as_echo "$ac_cv_header_stdc" >&6; }
11283 if test $ac_cv_header_stdc = yes; then
11285 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11289 # elf_hp.h is for HP/UX 64-bit shared library support.
11290 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11291 # unconditionally, so what's the point in checking these?
11292 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11293 thread_db.h gnu/libc-version.h signal.h stddef.h \
11294 stdlib.h string.h memory.h strings.h sys/fault.h \
11295 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11296 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11297 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11298 sys/types.h sys/wait.h wait.h termios.h termio.h \
11299 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
11301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11302 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11303 eval as_val=\$$as_ac_Header
11304 if test "x$as_val" = x""yes; then :
11305 cat >>confdefs.h <<_ACEOF
11306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11313 for ac_header in link.h
11315 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11316 # include <sys/types.h>
11319 # include <nlist.h>
11323 if test "x$ac_cv_header_link_h" = x""yes; then :
11324 cat >>confdefs.h <<_ACEOF
11325 #define HAVE_LINK_H 1
11332 for ac_header in sys/proc.h
11334 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11335 # include <sys/param.h>
11339 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11340 cat >>confdefs.h <<_ACEOF
11341 #define HAVE_SYS_PROC_H 1
11348 for ac_header in sys/user.h
11350 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11351 # include <sys/param.h>
11355 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11356 cat >>confdefs.h <<_ACEOF
11357 #define HAVE_SYS_USER_H 1
11365 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11366 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11367 # think that we don't have <curses.h> if we're using GCC.
11370 if test "$GCC" = yes; then
11372 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11376 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11378 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11379 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11380 eval as_val=\$$as_ac_Header
11381 if test "x$as_val" = x""yes; then :
11382 cat >>confdefs.h <<_ACEOF
11383 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11390 for ac_header in term.h
11392 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11393 # include <curses.h>
11397 if test "x$ac_cv_header_term_h" = x""yes; then :
11398 cat >>confdefs.h <<_ACEOF
11399 #define HAVE_TERM_H 1
11407 # ------------------------- #
11408 # Checks for declarations. #
11409 # ------------------------- #
11411 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11412 if test "x$ac_cv_have_decl_free" = x""yes; then :
11418 cat >>confdefs.h <<_ACEOF
11419 #define HAVE_DECL_FREE $ac_have_decl
11421 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11422 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11428 cat >>confdefs.h <<_ACEOF
11429 #define HAVE_DECL_MALLOC $ac_have_decl
11431 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11432 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11438 cat >>confdefs.h <<_ACEOF
11439 #define HAVE_DECL_REALLOC $ac_have_decl
11441 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11442 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11448 cat >>confdefs.h <<_ACEOF
11449 #define HAVE_DECL_STRERROR $ac_have_decl
11451 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11452 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11458 cat >>confdefs.h <<_ACEOF
11459 #define HAVE_DECL_STRSTR $ac_have_decl
11461 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11462 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11468 cat >>confdefs.h <<_ACEOF
11469 #define HAVE_DECL_GETOPT $ac_have_decl
11471 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11472 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11478 cat >>confdefs.h <<_ACEOF
11479 #define HAVE_DECL_SNPRINTF $ac_have_decl
11481 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11482 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11488 cat >>confdefs.h <<_ACEOF
11489 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11494 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11495 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11496 $as_echo_n "(cached) " >&6
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11500 #include <locale.h>
11509 if ac_fn_c_try_link "$LINENO"; then :
11510 am_cv_val_LC_MESSAGES=yes
11512 am_cv_val_LC_MESSAGES=no
11514 rm -f core conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11518 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11519 if test $am_cv_val_LC_MESSAGES = yes; then
11521 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11526 # ----------------------- #
11527 # Checks for structures. #
11528 # ----------------------- #
11530 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11531 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11533 cat >>confdefs.h <<_ACEOF
11534 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11539 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11540 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11542 cat >>confdefs.h <<_ACEOF
11543 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11550 # ------------------ #
11551 # Checks for types. #
11552 # ------------------ #
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11555 $as_echo_n "checking return type of signal handlers... " >&6; }
11556 if test "${ac_cv_type_signal+set}" = set; then :
11557 $as_echo_n "(cached) " >&6
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561 #include <sys/types.h>
11562 #include <signal.h>
11567 return *(signal (0, 0)) (0) == 1;
11572 if ac_fn_c_try_compile "$LINENO"; then :
11573 ac_cv_type_signal=int
11575 ac_cv_type_signal=void
11577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11580 $as_echo "$ac_cv_type_signal" >&6; }
11582 cat >>confdefs.h <<_ACEOF
11583 #define RETSIGTYPE $ac_cv_type_signal
11587 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11588 #include <sys/socket.h>
11591 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11593 cat >>confdefs.h <<_ACEOF
11594 #define HAVE_SOCKLEN_T 1
11601 # ------------------------------------- #
11602 # Checks for compiler characteristics. #
11603 # ------------------------------------- #
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11606 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11607 if test "${ac_cv_c_const+set}" = set; then :
11608 $as_echo_n "(cached) " >&6
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11616 /* FIXME: Include the comments suggested by Paul. */
11617 #ifndef __cplusplus
11618 /* Ultrix mips cc rejects this. */
11619 typedef int charset[2];
11621 /* SunOS 4.1.1 cc rejects this. */
11622 char const *const *pcpcc;
11624 /* NEC SVR4.0.2 mips cc rejects this. */
11625 struct point {int x, y;};
11626 static struct point const zero = {0,0};
11627 /* AIX XL C 1.02.0.0 rejects this.
11628 It does not let you subtract one const X* pointer from another in
11629 an arm of an if-expression whose if-part is not a constant
11631 const char *g = "string";
11632 pcpcc = &g + (g ? g-g : 0);
11633 /* HPUX 7.0 cc rejects these. */
11635 ppc = (char**) pcpcc;
11636 pcpcc = (char const *const *) ppc;
11637 { /* SCO 3.2v4 cc rejects this. */
11639 char const *s = 0 ? (char *) 0 : (char const *) 0;
11644 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11645 int x[] = {25, 17};
11646 const int *foo = &x[0];
11649 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11650 typedef const int *iptr;
11654 { /* AIX XL C 1.02.0.0 rejects this saying
11655 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11656 struct s { int j; const int *ap[3]; };
11657 struct s *b; b->j = 5;
11659 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11660 const int foo = 10;
11661 if (!foo) return 0;
11663 return !cs[0] && !zero.x;
11670 if ac_fn_c_try_compile "$LINENO"; then :
11675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11678 $as_echo "$ac_cv_c_const" >&6; }
11679 if test $ac_cv_c_const = no; then
11681 $as_echo "#define const /**/" >>confdefs.h
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11686 $as_echo_n "checking for inline... " >&6; }
11687 if test "${ac_cv_c_inline+set}" = set; then :
11688 $as_echo_n "(cached) " >&6
11691 for ac_kw in inline __inline__ __inline; do
11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h. */
11694 #ifndef __cplusplus
11696 static $ac_kw foo_t static_foo () {return 0; }
11697 $ac_kw foo_t foo () {return 0; }
11701 if ac_fn_c_try_compile "$LINENO"; then :
11702 ac_cv_c_inline=$ac_kw
11704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11705 test "$ac_cv_c_inline" != no && break
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11710 $as_echo "$ac_cv_c_inline" >&6; }
11712 case $ac_cv_c_inline in
11715 case $ac_cv_c_inline in
11717 *) ac_val=$ac_cv_c_inline;;
11719 cat >>confdefs.h <<_ACEOF
11720 #ifndef __cplusplus
11721 #define inline $ac_val
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11728 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11729 if test "${ac_cv_c_bigendian+set}" = set; then :
11730 $as_echo_n "(cached) " >&6
11732 ac_cv_c_bigendian=unknown
11733 # See if we're dealing with a universal compiler.
11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h. */
11736 #ifndef __APPLE_CC__
11737 not a universal capable compiler
11742 if ac_fn_c_try_compile "$LINENO"; then :
11744 # Check for potential -arch flags. It is not universal unless
11745 # there are at least two -arch flags with different values.
11748 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11749 if test -n "$ac_prev"; then
11751 i?86 | x86_64 | ppc | ppc64)
11752 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11755 ac_cv_c_bigendian=universal
11761 elif test "x$ac_word" = "x-arch"; then
11766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11767 if test $ac_cv_c_bigendian = unknown; then
11768 # See if sys/param.h defines the BYTE_ORDER macro.
11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770 /* end confdefs.h. */
11771 #include <sys/types.h>
11772 #include <sys/param.h>
11777 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11778 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11780 bogus endian macros
11787 if ac_fn_c_try_compile "$LINENO"; then :
11788 # It does; now see whether it defined to BIG_ENDIAN or not.
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11791 #include <sys/types.h>
11792 #include <sys/param.h>
11797 #if BYTE_ORDER != BIG_ENDIAN
11805 if ac_fn_c_try_compile "$LINENO"; then :
11806 ac_cv_c_bigendian=yes
11808 ac_cv_c_bigendian=no
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11814 if test $ac_cv_c_bigendian = unknown; then
11815 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11818 #include <limits.h>
11823 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11824 bogus endian macros
11831 if ac_fn_c_try_compile "$LINENO"; then :
11832 # It does; now see whether it defined to _BIG_ENDIAN or not.
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11835 #include <limits.h>
11840 #ifndef _BIG_ENDIAN
11848 if ac_fn_c_try_compile "$LINENO"; then :
11849 ac_cv_c_bigendian=yes
11851 ac_cv_c_bigendian=no
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857 if test $ac_cv_c_bigendian = unknown; then
11858 # Compile a test program.
11859 if test "$cross_compiling" = yes; then :
11860 # Try to guess by grepping values from an object file.
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11863 short int ascii_mm[] =
11864 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11865 short int ascii_ii[] =
11866 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11867 int use_ascii (int i) {
11868 return ascii_mm[i] + ascii_ii[i];
11870 short int ebcdic_ii[] =
11871 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11872 short int ebcdic_mm[] =
11873 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11874 int use_ebcdic (int i) {
11875 return ebcdic_mm[i] + ebcdic_ii[i];
11882 return use_ascii (foo) == use_ebcdic (foo);
11887 if ac_fn_c_try_compile "$LINENO"; then :
11888 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11889 ac_cv_c_bigendian=yes
11891 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11892 if test "$ac_cv_c_bigendian" = unknown; then
11893 ac_cv_c_bigendian=no
11895 # finding both strings is unlikely to happen, but who knows?
11896 ac_cv_c_bigendian=unknown
11900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904 $ac_includes_default
11909 /* Are we little or big endian? From Harbison&Steele. */
11913 char c[sizeof (long int)];
11916 return u.c[sizeof (long int) - 1] == 1;
11922 if ac_fn_c_try_run "$LINENO"; then :
11923 ac_cv_c_bigendian=no
11925 ac_cv_c_bigendian=yes
11927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11928 conftest.$ac_objext conftest.beam conftest.$ac_ext
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11934 $as_echo "$ac_cv_c_bigendian" >&6; }
11935 case $ac_cv_c_bigendian in #(
11937 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11943 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11947 as_fn_error "unknown endianness
11948 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11952 # ------------------------------ #
11953 # Checks for library functions. #
11954 # ------------------------------ #
11956 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11957 # for constant arguments. Useless!
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11959 $as_echo_n "checking for working alloca.h... " >&6; }
11960 if test "${ac_cv_working_alloca_h+set}" = set; then :
11961 $as_echo_n "(cached) " >&6
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11965 #include <alloca.h>
11969 char *p = (char *) alloca (2 * sizeof (int));
11975 if ac_fn_c_try_link "$LINENO"; then :
11976 ac_cv_working_alloca_h=yes
11978 ac_cv_working_alloca_h=no
11980 rm -f core conftest.err conftest.$ac_objext \
11981 conftest$ac_exeext conftest.$ac_ext
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11984 $as_echo "$ac_cv_working_alloca_h" >&6; }
11985 if test $ac_cv_working_alloca_h = yes; then
11987 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11992 $as_echo_n "checking for alloca... " >&6; }
11993 if test "${ac_cv_func_alloca_works+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11999 # define alloca __builtin_alloca
12002 # include <malloc.h>
12003 # define alloca _alloca
12005 # ifdef HAVE_ALLOCA_H
12006 # include <alloca.h>
12011 # ifndef alloca /* predefined by HP cc +Olibcalls */
12022 char *p = (char *) alloca (1);
12028 if ac_fn_c_try_link "$LINENO"; then :
12029 ac_cv_func_alloca_works=yes
12031 ac_cv_func_alloca_works=no
12033 rm -f core conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12037 $as_echo "$ac_cv_func_alloca_works" >&6; }
12039 if test $ac_cv_func_alloca_works = yes; then
12041 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12044 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12045 # that cause trouble. Some versions do not even contain alloca or
12046 # contain a buggy version. If you still want to use their alloca,
12047 # use ar to extract alloca.o from them instead of compiling alloca.c.
12049 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12051 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12055 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12056 if test "${ac_cv_os_cray+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061 #if defined CRAY && ! defined CRAY2
12068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12069 $EGREP "webecray" >/dev/null 2>&1; then :
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12078 $as_echo "$ac_cv_os_cray" >&6; }
12079 if test $ac_cv_os_cray = yes; then
12080 for ac_func in _getb67 GETB67 getb67; do
12081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12083 eval as_val=\$$as_ac_var
12084 if test "x$as_val" = x""yes; then :
12086 cat >>confdefs.h <<_ACEOF
12087 #define CRAY_STACKSEG_END $ac_func
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12097 $as_echo_n "checking stack direction for C alloca... " >&6; }
12098 if test "${ac_cv_c_stack_direction+set}" = set; then :
12099 $as_echo_n "(cached) " >&6
12101 if test "$cross_compiling" = yes; then :
12102 ac_cv_c_stack_direction=0
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106 $ac_includes_default
12108 find_stack_direction ()
12110 static char *addr = 0;
12115 return find_stack_direction ();
12118 return (&dummy > addr) ? 1 : -1;
12124 return find_stack_direction () < 0;
12127 if ac_fn_c_try_run "$LINENO"; then :
12128 ac_cv_c_stack_direction=1
12130 ac_cv_c_stack_direction=-1
12132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12133 conftest.$ac_objext conftest.beam conftest.$ac_ext
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12138 $as_echo "$ac_cv_c_stack_direction" >&6; }
12139 cat >>confdefs.h <<_ACEOF
12140 #define STACK_DIRECTION $ac_cv_c_stack_direction
12146 for ac_header in stdlib.h unistd.h
12148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12149 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12150 eval as_val=\$$as_ac_Header
12151 if test "x$as_val" = x""yes; then :
12152 cat >>confdefs.h <<_ACEOF
12153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12160 for ac_func in getpagesize
12162 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12163 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12164 cat >>confdefs.h <<_ACEOF
12165 #define HAVE_GETPAGESIZE 1
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12172 $as_echo_n "checking for working mmap... " >&6; }
12173 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
12176 if test "$cross_compiling" = yes; then :
12177 ac_cv_func_mmap_fixed_mapped=no
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h. */
12181 $ac_includes_default
12182 /* malloc might have been renamed as rpl_malloc. */
12185 /* Thanks to Mike Haertel and Jim Avera for this test.
12186 Here is a matrix of mmap possibilities:
12187 mmap private not fixed
12188 mmap private fixed at somewhere currently unmapped
12189 mmap private fixed at somewhere already mapped
12190 mmap shared not fixed
12191 mmap shared fixed at somewhere currently unmapped
12192 mmap shared fixed at somewhere already mapped
12193 For private mappings, we should verify that changes cannot be read()
12194 back from the file, nor mmap's back from the file at a different
12195 address. (There have been systems where private was not correctly
12196 implemented like the infamous i386 svr4.0, and systems where the
12197 VM page cache was not coherent with the file system buffer cache
12198 like early versions of FreeBSD and possibly contemporary NetBSD.)
12199 For shared mappings, we should conversely verify that changes get
12200 propagated back to all the places they're supposed to be.
12202 Grep wants private fixed already mapped.
12203 The main things grep needs to know about mmap are:
12204 * does it exist and is it safe to write into the mmap'd area
12205 * how to use it (BSD variants) */
12208 #include <sys/mman.h>
12210 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12214 /* This mess was copied from the GNU getpagesize.h. */
12215 #ifndef HAVE_GETPAGESIZE
12216 /* Assume that all systems that can run configure have sys/param.h. */
12217 # ifndef HAVE_SYS_PARAM_H
12218 # define HAVE_SYS_PARAM_H 1
12221 # ifdef _SC_PAGESIZE
12222 # define getpagesize() sysconf(_SC_PAGESIZE)
12223 # else /* no _SC_PAGESIZE */
12224 # ifdef HAVE_SYS_PARAM_H
12225 # include <sys/param.h>
12226 # ifdef EXEC_PAGESIZE
12227 # define getpagesize() EXEC_PAGESIZE
12228 # else /* no EXEC_PAGESIZE */
12230 # define getpagesize() NBPG * CLSIZE
12233 # endif /* no CLSIZE */
12234 # else /* no NBPG */
12236 # define getpagesize() NBPC
12237 # else /* no NBPC */
12239 # define getpagesize() PAGESIZE
12240 # endif /* PAGESIZE */
12241 # endif /* no NBPC */
12242 # endif /* no NBPG */
12243 # endif /* no EXEC_PAGESIZE */
12244 # else /* no HAVE_SYS_PARAM_H */
12245 # define getpagesize() 8192 /* punt totally */
12246 # endif /* no HAVE_SYS_PARAM_H */
12247 # endif /* no _SC_PAGESIZE */
12249 #endif /* no HAVE_GETPAGESIZE */
12254 char *data, *data2, *data3;
12258 pagesize = getpagesize ();
12260 /* First, make a file with some known garbage in it. */
12261 data = (char *) malloc (pagesize);
12264 for (i = 0; i < pagesize; ++i)
12265 *(data + i) = rand ();
12267 fd = creat ("conftest.mmap", 0600);
12270 if (write (fd, data, pagesize) != pagesize)
12274 /* Next, try to mmap the file at a fixed address which already has
12275 something else allocated at it. If we can, also make sure that
12276 we see the same garbage. */
12277 fd = open ("conftest.mmap", O_RDWR);
12280 data2 = (char *) malloc (2 * pagesize);
12283 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12284 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12285 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12287 for (i = 0; i < pagesize; ++i)
12288 if (*(data + i) != *(data2 + i))
12291 /* Finally, make sure that changes to the mapped area do not
12292 percolate back to the file as seen by read(). (This is a bug on
12293 some variants of i386 svr4.0.) */
12294 for (i = 0; i < pagesize; ++i)
12295 *(data2 + i) = *(data2 + i) + 1;
12296 data3 = (char *) malloc (pagesize);
12299 if (read (fd, data3, pagesize) != pagesize)
12301 for (i = 0; i < pagesize; ++i)
12302 if (*(data + i) != *(data3 + i))
12308 if ac_fn_c_try_run "$LINENO"; then :
12309 ac_cv_func_mmap_fixed_mapped=yes
12311 ac_cv_func_mmap_fixed_mapped=no
12313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12314 conftest.$ac_objext conftest.beam conftest.$ac_ext
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12319 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12320 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12322 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12325 rm -f conftest.mmap
12327 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12328 if test "x$ac_cv_type_pid_t" = x""yes; then :
12332 cat >>confdefs.h <<_ACEOF
12338 for ac_header in vfork.h
12340 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12341 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12342 cat >>confdefs.h <<_ACEOF
12343 #define HAVE_VFORK_H 1
12350 for ac_func in fork vfork
12352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12353 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12354 eval as_val=\$$as_ac_var
12355 if test "x$as_val" = x""yes; then :
12356 cat >>confdefs.h <<_ACEOF
12357 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12363 if test "x$ac_cv_func_fork" = xyes; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12365 $as_echo_n "checking for working fork... " >&6; }
12366 if test "${ac_cv_func_fork_works+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12369 if test "$cross_compiling" = yes; then :
12370 ac_cv_func_fork_works=cross
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374 $ac_includes_default
12379 /* By Ruediger Kuhlmann. */
12380 return fork () < 0;
12386 if ac_fn_c_try_run "$LINENO"; then :
12387 ac_cv_func_fork_works=yes
12389 ac_cv_func_fork_works=no
12391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12392 conftest.$ac_objext conftest.beam conftest.$ac_ext
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12397 $as_echo "$ac_cv_func_fork_works" >&6; }
12400 ac_cv_func_fork_works=$ac_cv_func_fork
12402 if test "x$ac_cv_func_fork_works" = xcross; then
12404 *-*-amigaos* | *-*-msdosdjgpp*)
12405 # Override, as these systems have only a dummy fork() stub
12406 ac_cv_func_fork_works=no
12409 ac_cv_func_fork_works=yes
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12413 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12415 ac_cv_func_vfork_works=$ac_cv_func_vfork
12416 if test "x$ac_cv_func_vfork" = xyes; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12418 $as_echo_n "checking for working vfork... " >&6; }
12419 if test "${ac_cv_func_vfork_works+set}" = set; then :
12420 $as_echo_n "(cached) " >&6
12422 if test "$cross_compiling" = yes; then :
12423 ac_cv_func_vfork_works=cross
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12427 /* Thanks to Paul Eggert for this test. */
12428 $ac_includes_default
12429 #include <sys/wait.h>
12430 #ifdef HAVE_VFORK_H
12431 # include <vfork.h>
12433 /* On some sparc systems, changes by the child to local and incoming
12434 argument registers are propagated back to the parent. The compiler
12435 is told about this with #include <vfork.h>, but some compilers
12436 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12437 static variable whose address is put into a register that is
12438 clobbered by the vfork. */
12441 sparc_address_test (int arg)
12443 sparc_address_test (arg) int arg;
12446 static pid_t child;
12464 pid_t parent = getpid ();
12467 sparc_address_test (0);
12472 /* Here is another test for sparc vfork register problems. This
12473 test uses lots of local variables, at least as many local
12474 variables as main has allocated so far including compiler
12475 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12476 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12477 reuse the register of parent for one of the local variables,
12478 since it will think that parent can't possibly be used any more
12479 in this routine. Assigning to the local variable will thus
12480 munge parent in the parent process. */
12482 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12483 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12484 /* Convince the compiler that p..p7 are live; otherwise, it might
12485 use the same hardware register for all 8 local variables. */
12486 if (p != p1 || p != p2 || p != p3 || p != p4
12487 || p != p5 || p != p6 || p != p7)
12490 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12491 from child file descriptors. If the child closes a descriptor
12492 before it execs or exits, this munges the parent's descriptor
12493 as well. Test for this by closing stdout in the child. */
12494 _exit(close(fileno(stdout)) != 0);
12499 while (wait(&status) != child)
12502 /* Was there some problem with vforking? */
12505 /* Did the child fail? (This shouldn't happen.) */
12508 /* Did the vfork/compiler bug occur? */
12509 || parent != getpid()
12511 /* Did the file descriptor bug occur? */
12512 || fstat(fileno(stdout), &st) != 0
12517 if ac_fn_c_try_run "$LINENO"; then :
12518 ac_cv_func_vfork_works=yes
12520 ac_cv_func_vfork_works=no
12522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12523 conftest.$ac_objext conftest.beam conftest.$ac_ext
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12528 $as_echo "$ac_cv_func_vfork_works" >&6; }
12531 if test "x$ac_cv_func_fork_works" = xcross; then
12532 ac_cv_func_vfork_works=$ac_cv_func_vfork
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12534 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12537 if test "x$ac_cv_func_vfork_works" = xyes; then
12539 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12543 $as_echo "#define vfork fork" >>confdefs.h
12546 if test "x$ac_cv_func_fork_works" = xyes; then
12548 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12552 for ac_func in canonicalize_file_name realpath getrusage getuid \
12553 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
12554 sigaction sigprocmask sigsetmask socketpair syscall \
12555 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12556 setrlimit getrlimit posix_madvise waitpid
12558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12559 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12560 eval as_val=\$$as_ac_var
12561 if test "x$as_val" = x""yes; then :
12562 cat >>confdefs.h <<_ACEOF
12563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12571 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12572 if test "${am_cv_langinfo_codeset+set}" = set; then :
12573 $as_echo_n "(cached) " >&6
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577 #include <langinfo.h>
12581 char* cs = nl_langinfo(CODESET);
12586 if ac_fn_c_try_link "$LINENO"; then :
12587 am_cv_langinfo_codeset=yes
12589 am_cv_langinfo_codeset=no
12591 rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12596 $as_echo "$am_cv_langinfo_codeset" >&6; }
12597 if test $am_cv_langinfo_codeset = yes; then
12599 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12604 # Check the return and argument types of ptrace. No canned test for
12605 # this, so roll our own.
12606 gdb_ptrace_headers='
12607 #if HAVE_SYS_TYPES_H
12608 # include <sys/types.h>
12610 #if HAVE_SYS_PTRACE_H
12611 # include <sys/ptrace.h>
12614 # include <unistd.h>
12617 # There is no point in checking if we don't have a prototype.
12618 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12620 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12626 cat >>confdefs.h <<_ACEOF
12627 #define HAVE_DECL_PTRACE $ac_have_decl
12629 if test $ac_have_decl = 1; then :
12633 : ${gdb_cv_func_ptrace_ret='int'}
12634 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12638 # Check return type. Varargs (used on GNU/Linux) conflict with the
12639 # empty argument list, so check for that explicitly.
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12641 $as_echo_n "checking return type of ptrace... " >&6; }
12642 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12643 $as_echo_n "(cached) " >&6
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647 $gdb_ptrace_headers
12651 extern long ptrace (enum __ptrace_request, ...);
12656 if ac_fn_c_try_compile "$LINENO"; then :
12657 gdb_cv_func_ptrace_ret='long'
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12661 $gdb_ptrace_headers
12665 extern int ptrace ();
12670 if ac_fn_c_try_compile "$LINENO"; then :
12671 gdb_cv_func_ptrace_ret='int'
12673 gdb_cv_func_ptrace_ret='long'
12675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12680 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12682 cat >>confdefs.h <<_ACEOF
12683 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12686 # Check argument types.
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12688 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12689 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695 $gdb_ptrace_headers
12699 extern long ptrace (enum __ptrace_request, ...);
12704 if ac_fn_c_try_compile "$LINENO"; then :
12705 gdb_cv_func_ptrace_args='int,int,long,long'
12708 for gdb_arg1 in 'int' 'long'; do
12709 for gdb_arg2 in 'pid_t' 'int' 'long'; do
12710 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12711 for gdb_arg4 in 'int' 'long'; do
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12714 $gdb_ptrace_headers
12719 extern $gdb_cv_func_ptrace_ret
12720 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12726 if ac_fn_c_try_compile "$LINENO"; then :
12727 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12731 for gdb_arg5 in 'int *' 'int' 'long'; do
12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12734 $gdb_ptrace_headers
12739 extern $gdb_cv_func_ptrace_ret
12740 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12746 if ac_fn_c_try_compile "$LINENO"; then :
12748 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12757 # Provide a safe default value.
12758 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12764 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12765 ac_save_IFS=$IFS; IFS=','
12766 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12770 cat >>confdefs.h <<_ACEOF
12771 #define PTRACE_TYPE_ARG3 $3
12774 if test -n "$5"; then
12776 cat >>confdefs.h <<_ACEOF
12777 #define PTRACE_TYPE_ARG5 $5
12782 if test "$cross_compiling" = no; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12784 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12785 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
12788 if test "$cross_compiling" = yes; then :
12789 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12793 $ac_includes_default
12797 /* If this system has a BSD-style setpgrp which takes arguments,
12798 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12799 exit successfully. */
12800 return setpgrp (1,1) != -1;
12805 if ac_fn_c_try_run "$LINENO"; then :
12806 ac_cv_func_setpgrp_void=no
12808 ac_cv_func_setpgrp_void=yes
12810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12811 conftest.$ac_objext conftest.beam conftest.$ac_ext
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12816 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12817 if test $ac_cv_func_setpgrp_void = yes; then
12819 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12825 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12826 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12827 $as_echo_n "(cached) " >&6
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12832 #include <unistd.h>
12838 if (setpgrp(1,1) == -1)
12847 if ac_fn_c_try_compile "$LINENO"; then :
12848 ac_cv_func_setpgrp_void=no
12850 ac_cv_func_setpgrp_void=yes
12852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12855 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12856 if test $ac_cv_func_setpgrp_void = yes; then
12857 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12862 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12863 # since sigsetjmp might only be defined as a macro.
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12865 $as_echo_n "checking for sigsetjmp... " >&6; }
12866 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12872 #include <setjmp.h>
12877 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12882 if ac_fn_c_try_compile "$LINENO"; then :
12883 gdb_cv_func_sigsetjmp=yes
12885 gdb_cv_func_sigsetjmp=no
12887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12890 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12891 if test $gdb_cv_func_sigsetjmp = yes; then
12893 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12897 # Assume we'll default to using the included libiberty regex.
12898 gdb_use_included_regex=yes
12900 # However, if the system regex is GNU regex, then default to *not*
12901 # using the included regex.
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12903 $as_echo_n "checking for GNU regex... " >&6; }
12904 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12905 $as_echo_n "(cached) " >&6
12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12909 #include <gnu-versions.h>
12913 #define REGEX_INTERFACE_VERSION 1
12914 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12915 # error "Version mismatch"
12921 if ac_fn_c_try_compile "$LINENO"; then :
12922 gdb_cv_have_gnu_regex=yes
12924 gdb_cv_have_gnu_regex=no
12926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12929 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12930 if test $gdb_cv_have_gnu_regex = yes; then
12931 gdb_use_included_regex=no
12935 # Check whether --with-included-regex was given.
12936 if test "${with_included_regex+set}" = set; then :
12937 withval=$with_included_regex; gdb_with_regex=$withval
12939 gdb_with_regex=$gdb_use_included_regex
12942 if test "$gdb_with_regex" = yes; then
12944 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12948 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12949 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12950 #include <sys/proc.h>
12953 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12955 cat >>confdefs.h <<_ACEOF
12956 #define HAVE_STRUCT_THREAD_TD_PCB 1
12963 # See if <sys/lwp.h> defines `struct lwp`.
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12965 $as_echo_n "checking for struct lwp... " >&6; }
12966 if test "${gdb_cv_struct_lwp+set}" = set; then :
12967 $as_echo_n "(cached) " >&6
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h. */
12971 #include <sys/param.h>
12972 #include <sys/lwp.h>
12981 if ac_fn_c_try_compile "$LINENO"; then :
12982 gdb_cv_struct_lwp=yes
12984 gdb_cv_struct_lwp=no
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12989 $as_echo "$gdb_cv_struct_lwp" >&6; }
12990 if test $gdb_cv_struct_lwp = yes; then
12992 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12996 # See if <machine/reg.h> degines `struct reg'.
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12998 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12999 if test "${gdb_cv_struct_reg+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h. */
13004 #include <sys/types.h>
13005 #include <machine/reg.h>
13014 if ac_fn_c_try_compile "$LINENO"; then :
13015 gdb_cv_struct_reg=yes
13017 gdb_cv_struct_reg=no
13019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13022 $as_echo "$gdb_cv_struct_reg" >&6; }
13023 if test $gdb_cv_struct_reg = yes; then
13025 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13029 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13030 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13031 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13033 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
13035 cat >>confdefs.h <<_ACEOF
13036 #define HAVE_STRUCT_REG_R_FS 1
13041 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13043 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
13045 cat >>confdefs.h <<_ACEOF
13046 #define HAVE_STRUCT_REG_R_GS 1
13053 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13055 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13056 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13057 $as_echo_n "(cached) " >&6
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061 #include <sys/ptrace.h>
13070 if ac_fn_c_try_compile "$LINENO"; then :
13071 gdb_cv_have_ptrace_getregs=yes
13073 gdb_cv_have_ptrace_getregs=no
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13079 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13080 if test $gdb_cv_have_ptrace_getregs = yes; then
13082 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13086 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13088 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13089 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13090 $as_echo_n "(cached) " >&6
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13094 #include <sys/ptrace.h>
13103 if ac_fn_c_try_compile "$LINENO"; then :
13104 gdb_cv_have_ptrace_getfpxregs=yes
13106 gdb_cv_have_ptrace_getfpxregs=no
13108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13112 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13113 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13115 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13119 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13121 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13122 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13123 $as_echo_n "(cached) " >&6
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127 #include <sys/types.h>
13128 #include <sys/ptrace.h>
13137 if ac_fn_c_try_compile "$LINENO"; then :
13138 gdb_cv_have_pt_getdbregs=yes
13140 gdb_cv_have_pt_getdbregs=no
13142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13146 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13147 if test $gdb_cv_have_pt_getdbregs = yes; then
13149 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13153 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13155 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13156 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13157 $as_echo_n "(cached) " >&6
13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13161 #include <sys/types.h>
13162 #include <sys/ptrace.h>
13171 if ac_fn_c_try_compile "$LINENO"; then :
13172 gdb_cv_have_pt_getxmmregs=yes
13174 gdb_cv_have_pt_getxmmregs=no
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13180 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13181 if test $gdb_cv_have_pt_getxmmregs = yes; then
13183 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13187 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13189 if test "${target}" = "${host}"; then
13191 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
13193 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13196 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
13198 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13202 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13204 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13210 if test "$ac_cv_header_sys_procfs_h" = yes; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13212 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13213 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13220 /* Needed for new procfs interface on sparc-solaris. */
13221 #define _STRUCTURED_PROC 1
13222 #include <sys/procfs.h>
13231 if ac_fn_c_try_compile "$LINENO"; then :
13232 bfd_cv_have_sys_procfs_type_pstatus_t=yes
13234 bfd_cv_have_sys_procfs_type_pstatus_t=no
13237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13240 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13242 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13246 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13249 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13250 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13251 $as_echo_n "(cached) " >&6
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13257 /* Needed for new procfs interface on sparc-solaris. */
13258 #define _STRUCTURED_PROC 1
13259 #include <sys/procfs.h>
13268 if ac_fn_c_try_compile "$LINENO"; then :
13269 bfd_cv_have_sys_procfs_type_prrun_t=yes
13271 bfd_cv_have_sys_procfs_type_prrun_t=no
13274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13279 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13283 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13286 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13287 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13294 /* Needed for new procfs interface on sparc-solaris. */
13295 #define _STRUCTURED_PROC 1
13296 #include <sys/procfs.h>
13305 if ac_fn_c_try_compile "$LINENO"; then :
13306 bfd_cv_have_sys_procfs_type_gregset_t=yes
13308 bfd_cv_have_sys_procfs_type_gregset_t=no
13311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13316 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13320 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13323 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13324 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13325 $as_echo_n "(cached) " >&6
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13331 /* Needed for new procfs interface on sparc-solaris. */
13332 #define _STRUCTURED_PROC 1
13333 #include <sys/procfs.h>
13342 if ac_fn_c_try_compile "$LINENO"; then :
13343 bfd_cv_have_sys_procfs_type_fpregset_t=yes
13345 bfd_cv_have_sys_procfs_type_fpregset_t=no
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13353 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13357 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13360 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13361 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13362 $as_echo_n "(cached) " >&6
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13368 /* Needed for new procfs interface on sparc-solaris. */
13369 #define _STRUCTURED_PROC 1
13370 #include <sys/procfs.h>
13379 if ac_fn_c_try_compile "$LINENO"; then :
13380 bfd_cv_have_sys_procfs_type_prgregset_t=yes
13382 bfd_cv_have_sys_procfs_type_prgregset_t=no
13385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13388 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13390 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13394 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13397 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13398 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13399 $as_echo_n "(cached) " >&6
13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402 /* end confdefs.h. */
13405 /* Needed for new procfs interface on sparc-solaris. */
13406 #define _STRUCTURED_PROC 1
13407 #include <sys/procfs.h>
13416 if ac_fn_c_try_compile "$LINENO"; then :
13417 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13419 bfd_cv_have_sys_procfs_type_prfpregset_t=no
13422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13425 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13427 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13431 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13434 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13435 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13436 $as_echo_n "(cached) " >&6
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13442 /* Needed for new procfs interface on sparc-solaris. */
13443 #define _STRUCTURED_PROC 1
13444 #include <sys/procfs.h>
13453 if ac_fn_c_try_compile "$LINENO"; then :
13454 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13456 bfd_cv_have_sys_procfs_type_prgregset32_t=no
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13464 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13468 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13471 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13472 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13473 $as_echo_n "(cached) " >&6
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13479 /* Needed for new procfs interface on sparc-solaris. */
13480 #define _STRUCTURED_PROC 1
13481 #include <sys/procfs.h>
13485 prfpregset32_t avar
13490 if ac_fn_c_try_compile "$LINENO"; then :
13491 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
13493 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
13496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13499 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13501 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13505 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13508 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13509 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13510 $as_echo_n "(cached) " >&6
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13516 /* Needed for new procfs interface on sparc-solaris. */
13517 #define _STRUCTURED_PROC 1
13518 #include <sys/procfs.h>
13527 if ac_fn_c_try_compile "$LINENO"; then :
13528 bfd_cv_have_sys_procfs_type_lwpid_t=yes
13530 bfd_cv_have_sys_procfs_type_lwpid_t=no
13533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13538 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13542 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13545 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13546 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13547 $as_echo_n "(cached) " >&6
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13553 /* Needed for new procfs interface on sparc-solaris. */
13554 #define _STRUCTURED_PROC 1
13555 #include <sys/procfs.h>
13564 if ac_fn_c_try_compile "$LINENO"; then :
13565 bfd_cv_have_sys_procfs_type_psaddr_t=yes
13567 bfd_cv_have_sys_procfs_type_psaddr_t=no
13570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13575 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13579 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13582 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13583 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13584 $as_echo_n "(cached) " >&6
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13590 /* Needed for new procfs interface on sparc-solaris. */
13591 #define _STRUCTURED_PROC 1
13592 #include <sys/procfs.h>
13601 if ac_fn_c_try_compile "$LINENO"; then :
13602 bfd_cv_have_sys_procfs_type_prsysent_t=yes
13604 bfd_cv_have_sys_procfs_type_prsysent_t=no
13607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13610 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13612 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13616 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13619 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13620 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13621 $as_echo_n "(cached) " >&6
13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13627 /* Needed for new procfs interface on sparc-solaris. */
13628 #define _STRUCTURED_PROC 1
13629 #include <sys/procfs.h>
13638 if ac_fn_c_try_compile "$LINENO"; then :
13639 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13641 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13647 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13649 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13653 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13656 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13657 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13658 $as_echo_n "(cached) " >&6
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13664 /* Needed for new procfs interface on sparc-solaris. */
13665 #define _STRUCTURED_PROC 1
13666 #include <sys/procfs.h>
13670 pr_sigaction64_t avar
13675 if ac_fn_c_try_compile "$LINENO"; then :
13676 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13678 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13684 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13686 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13690 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13693 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13694 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13695 $as_echo_n "(cached) " >&6
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13701 /* Needed for new procfs interface on sparc-solaris. */
13702 #define _STRUCTURED_PROC 1
13703 #include <sys/procfs.h>
13707 pr_siginfo64_t avar
13712 if ac_fn_c_try_compile "$LINENO"; then :
13713 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13715 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13721 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13723 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13727 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13733 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13735 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13736 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13737 $as_echo_n "(cached) " >&6
13739 if test "$cross_compiling" = yes; then :
13740 gdb_cv_prfpregset_t_broken=yes
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13744 #include <sys/procfs.h>
13747 if (sizeof (prfpregset_t) == sizeof (void *))
13752 if ac_fn_c_try_run "$LINENO"; then :
13753 gdb_cv_prfpregset_t_broken=no
13755 gdb_cv_prfpregset_t_broken=yes
13757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13758 conftest.$ac_objext conftest.beam conftest.$ac_ext
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13764 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13765 if test $gdb_cv_prfpregset_t_broken = yes; then
13767 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13774 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13775 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13776 $as_echo_n "(cached) " >&6
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13780 #include <unistd.h>
13781 #include <sys/types.h>
13782 #include <sys/procfs.h>
13789 dummy = ioctl(0, PIOCSET, &dummy);
13795 if ac_fn_c_try_compile "$LINENO"; then :
13796 gdb_cv_have_procfs_piocset=yes
13798 gdb_cv_have_procfs_piocset=no
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13804 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13805 if test $gdb_cv_have_procfs_piocset = yes; then
13807 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13812 if test ${host} = ${target} ; then
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13815 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13816 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13817 $as_echo_n "(cached) " >&6
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13825 struct link_map lm; (void) lm.l_addr;
13830 if ac_fn_c_try_compile "$LINENO"; then :
13831 gdb_cv_have_struct_link_map_with_l_members=yes
13833 gdb_cv_have_struct_link_map_with_l_members=no
13835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13839 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13840 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13842 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13848 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13849 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13850 $as_echo_n "(cached) " >&6
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13854 #include <sys/types.h>
13859 struct link_map lm; (void) lm.lm_addr;
13864 if ac_fn_c_try_compile "$LINENO"; then :
13865 gdb_cv_have_struct_link_map_with_lm_members=yes
13867 gdb_cv_have_struct_link_map_with_lm_members=no
13869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13873 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13874 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13876 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13882 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13883 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13884 $as_echo_n "(cached) " >&6
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888 #include <sys/types.h>
13889 #ifdef HAVE_NLIST_H
13896 struct so_map lm; (void) lm.som_addr;
13901 if ac_fn_c_try_compile "$LINENO"; then :
13902 gdb_cv_have_struct_so_map_with_som_members=yes
13904 gdb_cv_have_struct_so_map_with_som_members=no
13906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13910 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13911 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13913 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13919 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13920 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13921 $as_echo_n "(cached) " >&6
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13926 #include <sys/link.h>
13930 struct link_map32 l;
13935 if ac_fn_c_try_compile "$LINENO"; then :
13936 gdb_cv_have_struct_link_map32=yes
13938 gdb_cv_have_struct_link_map32=no
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13944 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
13945 if test $gdb_cv_have_struct_link_map32 = yes; then
13947 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
13950 $as_echo "#define _SYSCALL32 1" >>confdefs.h
13955 # Check if the compiler supports the `long long' type.
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13958 $as_echo_n "checking for long long support in compiler... " >&6; }
13959 if test "${gdb_cv_c_long_long+set}" = set; then :
13960 $as_echo_n "(cached) " >&6
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13964 extern long long foo;
13968 switch (foo & 2) { case 0: return 1; }
13973 if ac_fn_c_try_compile "$LINENO"; then :
13974 gdb_cv_c_long_long=yes
13976 gdb_cv_c_long_long=no
13978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13981 $as_echo "$gdb_cv_c_long_long" >&6; }
13982 if test $gdb_cv_c_long_long = yes; then
13984 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
13988 # Check if the compiler and runtime support printing long longs.
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13991 $as_echo_n "checking for long long support in printf... " >&6; }
13992 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13993 $as_echo_n "(cached) " >&6
13995 if test "$cross_compiling" = yes; then :
13996 gdb_cv_printf_has_long_long=no
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14000 $ac_includes_default
14006 l = (l << 16) + 0x0123;
14007 l = (l << 16) + 0x4567;
14008 l = (l << 16) + 0x89ab;
14009 l = (l << 16) + 0xcdef;
14010 sprintf (buf, "0x%016llx", l);
14011 return (strcmp ("0x0123456789abcdef", buf));
14016 if ac_fn_c_try_run "$LINENO"; then :
14017 gdb_cv_printf_has_long_long=yes
14019 gdb_cv_printf_has_long_long=no
14021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14022 conftest.$ac_objext conftest.beam conftest.$ac_ext
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14027 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14028 if test $gdb_cv_printf_has_long_long = yes; then
14030 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14034 # Check if the compiler and runtime support printing decfloats.
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14037 $as_echo_n "checking for decfloat support in printf... " >&6; }
14038 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14041 if test "$cross_compiling" = yes; then :
14042 gdb_cv_printf_has_decfloat=no
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046 $ac_includes_default
14051 _Decimal32 d32 = 1.2345df;
14052 _Decimal64 d64 = 1.2345dd;
14053 _Decimal128 d128 = 1.2345dl;
14054 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14055 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14060 if ac_fn_c_try_run "$LINENO"; then :
14061 gdb_cv_printf_has_decfloat=yes
14063 gdb_cv_printf_has_decfloat=no
14065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14066 conftest.$ac_objext conftest.beam conftest.$ac_ext
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14071 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14072 if test $gdb_cv_printf_has_decfloat = yes; then
14074 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14078 # Check if the compiler supports the `long double' type. We can't use
14079 # AC_C_LONG_DOUBLE because that one does additional checks on the
14080 # constants defined in <float.h> that fail on some systems,
14081 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14084 $as_echo_n "checking for long double support in compiler... " >&6; }
14085 if test "${gdb_cv_c_long_double+set}" = set; then :
14086 $as_echo_n "(cached) " >&6
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14092 if ac_fn_c_try_compile "$LINENO"; then :
14093 gdb_cv_c_long_double=yes
14095 gdb_cv_c_long_double=no
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14100 $as_echo "$gdb_cv_c_long_double" >&6; }
14101 if test $gdb_cv_c_long_double = yes; then
14103 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14107 # Check if the compiler and runtime support printing long doubles.
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14110 $as_echo_n "checking for long double support in printf... " >&6; }
14111 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14112 $as_echo_n "(cached) " >&6
14114 if test "$cross_compiling" = yes; then :
14115 gdb_cv_printf_has_long_double=no
14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h. */
14119 $ac_includes_default
14124 long double f = 3.141592653;
14125 sprintf (buf, "%Lg", f);
14126 return (strncmp ("3.14159", buf, 7));
14131 if ac_fn_c_try_run "$LINENO"; then :
14132 gdb_cv_printf_has_long_double=yes
14134 gdb_cv_printf_has_long_double=no
14136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14137 conftest.$ac_objext conftest.beam conftest.$ac_ext
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14142 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14143 if test $gdb_cv_printf_has_long_double = yes; then
14145 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14149 # Check if the compiler and runtime support scanning long doubles.
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14152 $as_echo_n "checking for long double support in scanf... " >&6; }
14153 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14154 $as_echo_n "(cached) " >&6
14156 if test "$cross_compiling" = yes; then :
14157 gdb_cv_scanf_has_long_double=no
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14165 char *buf = "3.141592653";
14167 sscanf (buf, "%Lg", &f);
14168 return !(f > 3.14159 && f < 3.14160);
14173 if ac_fn_c_try_run "$LINENO"; then :
14174 gdb_cv_scanf_has_long_double=yes
14176 gdb_cv_scanf_has_long_double=no
14178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14179 conftest.$ac_objext conftest.beam conftest.$ac_ext
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14184 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14185 if test $gdb_cv_scanf_has_long_double = yes; then
14187 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14194 $as_echo_n "checking for -bbigtoc option... " >&6; }
14195 if test "${gdb_cv_bigtoc+set}" = set; then :
14196 $as_echo_n "(cached) " >&6
14199 SAVE_LDFLAGS=$LDFLAGS
14202 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14203 *) gdb_cv_bigtoc=-bbigtoc ;;
14206 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h. */
14218 if ac_fn_c_try_link "$LINENO"; then :
14223 rm -f core conftest.err conftest.$ac_objext \
14224 conftest$ac_exeext conftest.$ac_ext
14225 LDFLAGS="${SAVE_LDFLAGS}"
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14229 $as_echo "$gdb_cv_bigtoc" >&6; }
14230 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14235 $as_echo_n "checking for the dynamic export flag... " >&6; }
14237 if test "${gdb_native}" = yes; then
14238 # The dynamically loaded libthread_db needs access to symbols in the gdb
14239 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14240 # may not be supported there.
14241 old_LDFLAGS="$LDFLAGS"
14242 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14243 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14244 LDFLAGS="$LDFLAGS $RDYNAMIC"
14245 if test "${have_libpython}" = no; then
14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14257 if ac_fn_c_try_link "$LINENO"; then :
14260 rm -f core conftest.err conftest.$ac_objext \
14261 conftest$ac_exeext conftest.$ac_ext
14263 # Workaround http://bugs.python.org/issue4434 where static
14264 # libpythonX.Y.a would get its symbols required for
14265 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14266 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14267 old_CFLAGS="$CFLAGS"
14268 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14269 if test "$cross_compiling" = yes; then :
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 #include "${have_libpython}/Python.h"
14280 err = PyRun_SimpleString ("import itertools\n");
14282 return err == 0 ? 0 : 1;
14287 if ac_fn_c_try_run "$LINENO"; then :
14290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14291 conftest.$ac_objext conftest.beam conftest.$ac_ext
14294 CFLAGS="$old_CFLAGS"
14296 LDFLAGS="$old_LDFLAGS"
14298 if $dynamic_list; then
14299 found="-Wl,--dynamic-list"
14300 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14303 RDYNAMIC="-rdynamic"
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14307 $as_echo "$found" >&6; }
14310 if test ${build} = ${host} -a ${host} = ${target} ; then
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
14314 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
14315 if test -f /usr/include/dce/cma_config.h ; then
14316 if test "$GCC" = "yes" ; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14318 $as_echo "yes" >&6; }
14320 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
14322 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
14323 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
14326 $as_echo "no (suppressed because you are not using GCC)" >&6; }
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330 $as_echo "no" >&6; }
14334 # See if thread_db library is around for Solaris thread debugging.
14335 # Note that we must explicitly test for version 1 of the library
14336 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14339 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14340 if test -f /usr/lib/libthread_db.so.1 ; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14342 $as_echo "yes" >&6; }
14344 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14346 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
14347 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14349 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14350 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14351 $as_echo_n "(cached) " >&6
14353 ac_check_lib_save_LIBS=$LIBS
14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14358 /* Override any GCC internal prototype to avoid an error.
14359 Use char because int might match the return type of a GCC
14360 builtin and then its argument prototype would still apply. */
14373 if ac_fn_c_try_link "$LINENO"; then :
14374 ac_cv_lib_dl_dlopen=yes
14376 ac_cv_lib_dl_dlopen=no
14378 rm -f core conftest.err conftest.$ac_objext \
14379 conftest$ac_exeext conftest.$ac_ext
14380 LIBS=$ac_check_lib_save_LIBS
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14383 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14384 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14385 cat >>confdefs.h <<_ACEOF
14386 #define HAVE_LIBDL 1
14393 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
14394 # Sun randomly tweaked the prototypes in <proc_service.h>
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14397 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14398 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14399 $as_echo_n "(cached) " >&6
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14405 #include <proc_service.h>
14406 ps_err_e ps_pdwrite
14407 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14417 if ac_fn_c_try_compile "$LINENO"; then :
14418 gdb_cv_proc_service_is_old=no
14420 gdb_cv_proc_service_is_old=yes
14422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14427 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14428 if test $gdb_cv_proc_service_is_old = yes; then
14430 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14435 $as_echo "no" >&6; }
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14440 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14441 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 #include <sys/pthdebug.h>
14450 #ifndef PTHDB_VERSION_3
14457 if ac_fn_c_try_compile "$LINENO"; then :
14458 gdb_cv_have_aix_thread_debug=yes
14460 gdb_cv_have_aix_thread_debug=no
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14466 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14467 if test $gdb_cv_have_aix_thread_debug = yes; then
14468 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14469 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14470 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14477 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14479 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14480 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14481 $as_echo_n "(cached) " >&6
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14485 #include <thread_db.h>
14489 int i = TD_NOTALLOC;
14494 if ac_fn_c_try_compile "$LINENO"; then :
14495 gdb_cv_thread_db_h_has_td_notalloc=yes
14497 gdb_cv_thread_db_h_has_td_notalloc=no
14500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14504 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14506 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14507 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14508 $as_echo_n "(cached) " >&6
14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511 /* end confdefs.h. */
14512 #include <thread_db.h>
14516 int i = TD_VERSION;
14521 if ac_fn_c_try_compile "$LINENO"; then :
14522 gdb_cv_thread_db_h_has_td_version=yes
14524 gdb_cv_thread_db_h_has_td_version=no
14527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14531 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14533 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14534 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14535 $as_echo_n "(cached) " >&6
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14539 #include <thread_db.h>
14548 if ac_fn_c_try_compile "$LINENO"; then :
14549 gdb_cv_thread_db_h_has_td_notls=yes
14551 gdb_cv_thread_db_h_has_td_notls=no
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14558 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14560 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14562 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14565 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14567 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14570 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14572 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14576 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14578 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14579 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14580 $as_echo_n "(cached) " >&6
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 #include <sys/syscall.h>
14588 int i = __NR_tkill;
14593 if ac_fn_c_try_compile "$LINENO"; then :
14594 gdb_cv_sys_syscall_h_has_tkill=yes
14596 gdb_cv_sys_syscall_h_has_tkill=no
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14603 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14605 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14607 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14611 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14613 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14619 cat >>confdefs.h <<_ACEOF
14620 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14624 if test "$cross_compiling" = yes; then :
14625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626 /* end confdefs.h. */
14627 #include <sys/personality.h>
14632 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14633 # define ADDR_NO_RANDOMIZE 0x0040000
14635 /* Test the flag could be set and stays set. */
14636 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14637 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14643 if ac_fn_c_try_link "$LINENO"; then :
14644 have_personality=true
14646 have_personality=false
14648 rm -f core conftest.err conftest.$ac_objext \
14649 conftest$ac_exeext conftest.$ac_ext
14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652 /* end confdefs.h. */
14653 #include <sys/personality.h>
14658 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14659 # define ADDR_NO_RANDOMIZE 0x0040000
14661 /* Test the flag could be set and stays set. */
14662 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14663 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14669 if ac_fn_c_try_run "$LINENO"; then :
14670 have_personality=true
14672 have_personality=false
14674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14675 conftest.$ac_objext conftest.beam conftest.$ac_ext
14678 if $have_personality
14681 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14686 target_sysroot_reloc=0
14688 # Check whether --with-sysroot was given.
14689 if test "${with_sysroot+set}" = set; then :
14690 withval=$with_sysroot;
14691 case ${with_sysroot} in
14692 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
14693 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
14696 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14698 if test "x$prefix" = xNONE; then
14699 test_prefix=/usr/local
14701 test_prefix=$prefix
14703 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14704 test_exec_prefix=$test_prefix
14706 test_exec_prefix=$exec_prefix
14708 case ${TARGET_SYSTEM_ROOT} in
14709 "${test_prefix}"|"${test_prefix}/"*|\
14710 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
14711 '${prefix}'|'${prefix}/'*|\
14712 '${exec_prefix}'|'${exec_prefix}/'*)
14713 target_sysroot_reloc=1
14719 TARGET_SYSTEM_ROOT=
14720 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
14724 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14730 # Check whether --with-system-gdbinit was given.
14731 if test "${with_system_gdbinit+set}" = set; then :
14732 withval=$with_system_gdbinit;
14733 SYSTEM_GDBINIT=$withval
14739 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14740 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14741 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14742 ac_define_dir=`eval echo $ac_define_dir`
14744 cat >>confdefs.h <<_ACEOF
14745 #define SYSTEM_GDBINIT "$ac_define_dir"
14751 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14752 if test "x$prefix" = xNONE; then
14753 test_prefix=/usr/local
14755 test_prefix=$prefix
14758 test_prefix=$exec_prefix
14761 case ${ac_define_dir} in
14762 "${test_prefix}"|"${test_prefix}/"*|\
14763 '${exec_prefix}'|'${exec_prefix}/'*)
14768 cat >>confdefs.h <<_ACEOF
14769 #define SYSTEM_GDBINIT_RELOCATABLE $value
14775 # Check whether --enable-werror was given.
14776 if test "${enable_werror+set}" = set; then :
14777 enableval=$enable_werror; case "${enableval}" in
14778 yes | y) ERROR_ON_WARNING="yes" ;;
14779 no | n) ERROR_ON_WARNING="no" ;;
14780 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14785 # Enable -Werror by default when using gcc
14786 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14787 ERROR_ON_WARNING=yes
14791 if test "${ERROR_ON_WARNING}" = yes ; then
14792 WERROR_CFLAGS="-Werror"
14795 # The entries after -Wno-pointer-sign are disabled warnings which may
14796 # be enabled in the future, which can not currently be used to build
14798 # NOTE: If you change this list, remember to update
14799 # gdb/doc/gdbint.texinfo.
14800 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14801 -Wformat-nonliteral -Wno-pointer-sign \
14802 -Wno-unused -Wunused-value -Wunused-function \
14803 -Wno-switch -Wno-char-subscripts"
14805 # Enable -Wno-format by default when using gcc on mingw since many
14806 # GCC versions complain about %I64.
14808 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14811 # Check whether --enable-build-warnings was given.
14812 if test "${enable_build_warnings+set}" = set; then :
14813 enableval=$enable_build_warnings; case "${enableval}" in
14815 no) build_warnings="-w";;
14816 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14817 build_warnings="${build_warnings} ${t}";;
14818 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14819 build_warnings="${t} ${build_warnings}";;
14820 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14822 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14823 echo "Setting compiler warning flags = $build_warnings" 6>&1
14826 # Check whether --enable-gdb-build-warnings was given.
14827 if test "${enable_gdb_build_warnings+set}" = set; then :
14828 enableval=$enable_gdb_build_warnings; case "${enableval}" in
14830 no) build_warnings="-w";;
14831 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14832 build_warnings="${build_warnings} ${t}";;
14833 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14834 build_warnings="${t} ${build_warnings}";;
14835 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14837 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14838 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14842 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14845 $as_echo_n "checking compiler warning flags... " >&6; }
14846 # Separate out the -Werror flag as some files just cannot be
14847 # compiled with it enabled.
14848 for w in ${build_warnings}; do
14850 -Werr*) WERROR_CFLAGS=-Werror ;;
14851 *) # Check that GCC accepts it
14852 saved_CFLAGS="$CFLAGS"
14853 CFLAGS="$CFLAGS $w"
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14865 if ac_fn_c_try_compile "$LINENO"; then :
14866 WARN_CFLAGS="${WARN_CFLAGS} $w"
14868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14869 CFLAGS="$saved_CFLAGS"
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14873 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14878 # In the Cygwin environment, we need some additional flags.
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14880 $as_echo_n "checking for cygwin... " >&6; }
14881 if test "${gdb_cv_os_cygwin+set}" = set; then :
14882 $as_echo_n "(cached) " >&6
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14887 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14892 $EGREP "lose" >/dev/null 2>&1; then :
14893 gdb_cv_os_cygwin=yes
14895 gdb_cv_os_cygwin=no
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14901 $as_echo "$gdb_cv_os_cygwin" >&6; }
14904 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14906 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14907 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14908 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14912 # libreadline needs libuser32.a in a cygwin environment
14914 if test x$gdb_cv_os_cygwin = xyes; then
14915 WIN32LIBS="-luser32"
14916 case "${target}" in
14917 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14922 # The ser-tcp.c module requires sockets.
14926 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14928 WIN32LIBS="$WIN32LIBS -lws2_32"
14933 # Add ELF support to GDB, but only if BFD includes ELF support.
14935 OLD_LDFLAGS=$LDFLAGS
14937 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14938 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
14939 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14940 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14941 if test "$plugins" = "yes"; then
14944 LIBS="-lbfd -liberty $intl $LIBS"
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14946 $as_echo_n "checking for ELF support in BFD... " >&6; }
14947 if test "${gdb_cv_var_elf+set}" = set; then :
14948 $as_echo_n "(cached) " >&6
14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14952 #include <stdlib.h>
14954 #include "elf-bfd.h"
14959 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14964 if ac_fn_c_try_link "$LINENO"; then :
14969 rm -f core conftest.err conftest.$ac_objext \
14970 conftest$ac_exeext conftest.$ac_ext
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14973 $as_echo "$gdb_cv_var_elf" >&6; }
14974 if test $gdb_cv_var_elf = yes; then
14975 CONFIG_OBS="$CONFIG_OBS elfread.o"
14977 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14979 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14980 if test "$plugins" = "yes"; then
14981 OLD_LIBS="-ldl $OLD_LIBS"
14985 LDFLAGS=$OLD_LDFLAGS
14988 # Add any host-specific objects to GDB.
14989 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14991 LIBGUI="../libgui/src/libgui.a"
14992 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
15001 *-*-cygwin* | *-*-mingw* )
15010 if test "${enable_gdbtk}" = "yes"; then
15012 # Gdbtk must have an absolute path to srcdir in order to run
15013 # properly when not installed.
15016 GDBTK_SRC_DIR=`pwd`
15021 # Ok, lets find the tcl configuration
15022 # First, look for one uninstalled.
15023 # the alternative search directory is invoked by --with-tcl
15026 if test x"${no_tcl}" = x ; then
15027 # we reset no_tcl in case something fails here
15030 # Check whether --with-tcl was given.
15031 if test "${with_tcl+set}" = set; then :
15032 withval=$with_tcl; with_tclconfig=${withval}
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15036 $as_echo_n "checking for Tcl configuration... " >&6; }
15037 if test "${ac_cv_c_tclconfig+set}" = set; then :
15038 $as_echo_n "(cached) " >&6
15042 # First check to see if --with-tcl was specified.
15044 *-*-cygwin*) platDir="win" ;;
15045 *) platDir="unix" ;;
15047 if test x"${with_tclconfig}" != x ; then
15048 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15049 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15051 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15055 # then check for a private Tcl installation
15056 if test x"${ac_cv_c_tclconfig}" = x ; then
15059 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15060 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15061 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
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` ; do
15070 if test -f "$i/$platDir/tclConfig.sh" ; then
15071 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15077 # on Darwin, check in Framework installation locations
15078 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15079 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15080 `ls -d /Library/Frameworks 2>/dev/null` \
15081 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15082 `ls -d /System/Library/Frameworks 2>/dev/null` \
15084 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15085 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15091 # check in a few common install locations
15092 if test x"${ac_cv_c_tclconfig}" = x ; then
15093 for i in `ls -d ${libdir} 2>/dev/null` \
15094 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15095 `ls -d ${prefix}/lib 2>/dev/null` \
15096 `ls -d /usr/local/lib 2>/dev/null` \
15097 `ls -d /usr/contrib/lib 2>/dev/null` \
15098 `ls -d /usr/lib 2>/dev/null` \
15100 if test -f "$i/tclConfig.sh" ; then
15101 ac_cv_c_tclconfig=`(cd $i; pwd)`
15107 # check in a few other private locations
15108 if test x"${ac_cv_c_tclconfig}" = x ; then
15111 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15112 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15113 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15114 if test -f "$i/$platDir/tclConfig.sh" ; then
15115 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15124 if test x"${ac_cv_c_tclconfig}" = x ; then
15125 TCL_BIN_DIR="# no Tcl configs found"
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15127 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15130 TCL_BIN_DIR=${ac_cv_c_tclconfig}
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15132 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15137 # If $no_tk is nonempty, then we can't do Tk, and there is no
15138 # point to doing Tcl.
15141 # Ok, lets find the tk configuration
15142 # First, look for one uninstalled.
15143 # the alternative search directory is invoked by --with-tk
15146 if test x"${no_tk}" = x ; then
15147 # we reset no_tk in case something fails here
15150 # Check whether --with-tk was given.
15151 if test "${with_tk+set}" = set; then :
15152 withval=$with_tk; with_tkconfig=${withval}
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15156 $as_echo_n "checking for Tk configuration... " >&6; }
15157 if test "${ac_cv_c_tkconfig+set}" = set; then :
15158 $as_echo_n "(cached) " >&6
15162 # First check to see if --with-tkconfig was specified.
15163 if test x"${with_tkconfig}" != x ; then
15164 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15165 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15167 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15171 # then check for a private Tk library
15173 *-*-cygwin*) platDir="win" ;;
15174 *) platDir="unix" ;;
15176 if test x"${ac_cv_c_tkconfig}" = x ; then
15179 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15180 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15181 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
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` ; do
15190 if test -f "$i/$platDir/tkConfig.sh" ; then
15191 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15197 # on Darwin, check in Framework installation locations
15198 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15199 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15200 `ls -d /Library/Frameworks 2>/dev/null` \
15201 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15202 `ls -d /System/Library/Frameworks 2>/dev/null` \
15204 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15205 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15211 # check in a few common install locations
15212 if test x"${ac_cv_c_tkconfig}" = x ; then
15213 for i in `ls -d ${libdir} 2>/dev/null` \
15214 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15215 `ls -d ${prefix}/lib 2>/dev/null` \
15216 `ls -d /usr/local/lib 2>/dev/null` \
15217 `ls -d /usr/contrib/lib 2>/dev/null` \
15218 `ls -d /usr/lib 2>/dev/null` \
15220 if test -f "$i/tkConfig.sh" ; then
15221 ac_cv_c_tkconfig=`(cd $i; pwd)`
15226 # check in a few other private locations
15227 if test x"${ac_cv_c_tkconfig}" = x ; then
15230 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15231 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15232 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15233 if test -f "$i/$platDir/tkConfig.sh" ; then
15234 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15243 if test x"${ac_cv_c_tkconfig}" = x ; then
15244 TK_BIN_DIR="# no Tk configs found"
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15246 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15249 TK_BIN_DIR=${ac_cv_c_tkconfig}
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15251 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15256 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15259 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15261 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15263 $as_echo "loading" >&6; }
15264 . ${TCL_BIN_DIR}/tclConfig.sh
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15267 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15270 # eval is required to do the TCL_DBGX substitution
15271 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15272 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15274 # If the TCL_BIN_DIR is the build directory (not the install directory),
15275 # then set the common variable name to the value of the build variables.
15276 # For example, the variable TCL_LIB_SPEC will be set to the value
15277 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15278 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15279 # installed and uninstalled version of Tcl.
15280 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15281 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15282 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15283 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15284 elif test "`uname -s`" = "Darwin"; then
15285 # If Tcl was built as a framework, attempt to use the libraries
15286 # from the framework at the given location so that linking works
15287 # against Tcl.framework installed in an arbitary location.
15288 case ${TCL_DEFS} in
15290 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15291 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15292 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15293 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15294 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15299 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15300 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15301 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15307 # eval is required to do the TCL_DBGX substitution
15308 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15309 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15310 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15311 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15327 # Check for in-tree tcl
15334 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15338 # Find Tcl private headers
15339 if test x"${intree}" = xno; then
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15342 $as_echo_n "checking for Tcl private headers... " >&6; }
15344 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15345 if test -f ${dir}/tclInt.h ; then
15349 if test x"${private_dir}" = x; then
15350 as_fn_error "could not find private Tcl headers" "$LINENO" 5
15352 TCL_PRIVATE_INCLUDE="-I${private_dir}"
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15354 $as_echo "${private_dir}" >&6; }
15357 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15358 TCL_LIBRARY="${TCL_LIB_SPEC}"
15361 # If building tcl in the same src tree, private headers
15362 # are not needed, but we need to be sure to use the right
15364 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15365 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15366 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15374 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15376 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15378 $as_echo "loading" >&6; }
15379 . ${TK_BIN_DIR}/tkConfig.sh
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15382 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15385 # eval is required to do the TK_DBGX substitution
15386 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15387 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15389 # If the TK_BIN_DIR is the build directory (not the install directory),
15390 # then set the common variable name to the value of the build variables.
15391 # For example, the variable TK_LIB_SPEC will be set to the value
15392 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15393 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15394 # installed and uninstalled version of Tcl.
15395 if test -f "${TK_BIN_DIR}/Makefile" ; then
15396 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15397 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15398 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15399 elif test "`uname -s`" = "Darwin"; then
15400 # If Tk was built as a framework, attempt to use the libraries
15401 # from the framework at the given location so that linking works
15402 # against Tk.framework installed in an arbitary location.
15405 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15406 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15407 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15408 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15409 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15414 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15415 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15416 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15422 # eval is required to do the TK_DBGX substitution
15423 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15424 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15425 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15426 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15441 # Check for in-tree Tk
15443 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15447 # Find Tk private headers
15448 if test x"${intree}" = xno; then
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15451 $as_echo_n "checking for Tk private headers... " >&6; }
15453 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15454 if test -f ${dir}/tkInt.h; then
15458 if test x"${private_dir}" = x; then
15459 as_fn_error "could not find Tk private headers" "$LINENO" 5
15461 TK_PRIVATE_INCLUDE="-I${private_dir}"
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15463 $as_echo "${private_dir}" >&6; }
15466 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15467 TK_LIBRARY=${TK_LIB_SPEC}
15470 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15471 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15472 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15479 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15481 # Include some libraries that Tcl and Tk want.
15482 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15483 # Yes, the ordering seems wrong here. But it isn't.
15484 # TK_LIBS is the list of libraries that need to be linked
15485 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15486 # were in LIBS then any link tests after this point would
15487 # try to include things like `$(LIBGUI)', which wouldn't work.
15488 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15490 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15491 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15492 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15493 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15494 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15495 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15496 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15498 if test x$gdb_cv_os_cygwin = xyes; then
15499 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15500 WIN32LDAPP="-Wl,--subsystem,console"
15501 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15504 subdirs="$subdirs gdbtk"
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15517 $as_echo_n "checking for X... " >&6; }
15520 # Check whether --with-x was given.
15521 if test "${with_x+set}" = set; then :
15525 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15526 if test "x$with_x" = xno; then
15527 # The user explicitly disabled X.
15530 case $x_includes,$x_libraries in #(
15531 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15532 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15533 $as_echo_n "(cached) " >&6
15535 # One or both of the vars are not set, and there is no cached value.
15536 ac_x_includes=no ac_x_libraries=no
15537 rm -f -r conftest.dir
15538 if mkdir conftest.dir; then
15540 cat >Imakefile <<'_ACEOF'
15542 @echo incroot='${INCROOT}'
15544 @echo usrlibdir='${USRLIBDIR}'
15546 @echo libdir='${LIBDIR}'
15548 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15549 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15550 for ac_var in incroot usrlibdir libdir; do
15551 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15553 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15554 for ac_extension in a so sl dylib la dll; do
15555 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15556 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15557 ac_im_usrlibdir=$ac_im_libdir; break
15560 # Screen out bogus values from the imake configuration. They are
15561 # bogus both because they are the default anyway, and because
15562 # using them would break gcc on systems where it needs fixed includes.
15563 case $ac_im_incroot in
15564 /usr/include) ac_x_includes= ;;
15565 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15567 case $ac_im_usrlibdir in
15568 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15569 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15573 rm -f -r conftest.dir
15576 # Standard set of common directories for X headers.
15577 # Check X11 before X11Rn because it is often a symlink to the current release.
15591 /usr/local/X11/include
15592 /usr/local/X11R7/include
15593 /usr/local/X11R6/include
15594 /usr/local/X11R5/include
15595 /usr/local/X11R4/include
15597 /usr/local/include/X11
15598 /usr/local/include/X11R7
15599 /usr/local/include/X11R6
15600 /usr/local/include/X11R5
15601 /usr/local/include/X11R4
15605 /usr/XFree86/include/X11
15609 /usr/unsupported/include
15610 /usr/athena/include
15611 /usr/local/x11r5/include
15612 /usr/lpp/Xamples/include
15614 /usr/openwin/include
15615 /usr/openwin/share/include'
15617 if test "$ac_x_includes" = no; then
15618 # Guess where to find include files, by looking for Xlib.h.
15619 # First, try using that file with no special directory specified.
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15622 #include <X11/Xlib.h>
15624 if ac_fn_c_try_cpp "$LINENO"; then :
15625 # We can compile using X headers with no special include directory.
15628 for ac_dir in $ac_x_header_dirs; do
15629 if test -r "$ac_dir/X11/Xlib.h"; then
15630 ac_x_includes=$ac_dir
15635 rm -f conftest.err conftest.$ac_ext
15636 fi # $ac_x_includes = no
15638 if test "$ac_x_libraries" = no; then
15639 # Check for the libraries.
15640 # See if we find them without any special options.
15641 # Don't add to $LIBS permanently.
15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15646 #include <X11/Xlib.h>
15655 if ac_fn_c_try_link "$LINENO"; then :
15657 # We can link X programs with no special library path.
15661 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15663 # Don't even attempt the hair of trying to link an X program!
15664 for ac_extension in a so sl dylib la dll; do
15665 if test -r "$ac_dir/libX11.$ac_extension"; then
15666 ac_x_libraries=$ac_dir
15672 rm -f core conftest.err conftest.$ac_objext \
15673 conftest$ac_exeext conftest.$ac_ext
15674 fi # $ac_x_libraries = no
15676 case $ac_x_includes,$ac_x_libraries in #(
15677 no,* | *,no | *\'*)
15678 # Didn't find X, or a directory has "'" in its name.
15679 ac_cv_have_x="have_x=no";; #(
15681 # Record where we found X for the cache.
15682 ac_cv_have_x="have_x=yes\
15683 ac_x_includes='$ac_x_includes'\
15684 ac_x_libraries='$ac_x_libraries'"
15690 eval "$ac_cv_have_x"
15693 if test "$have_x" != yes; then
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15695 $as_echo "$have_x" >&6; }
15698 # If each of the values was on the command line, it overrides each guess.
15699 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15700 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15701 # Update the cache value to reflect the command line values.
15702 ac_cv_have_x="have_x=yes\
15703 ac_x_includes='$x_includes'\
15704 ac_x_libraries='$x_libraries'"
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15706 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15710 # Unlike the sim directory, whether a simulator is linked is controlled by
15711 # presence of a gdb_sim definition in the target configure.tgt entry.
15712 # This code just checks for a few cases where we'd like to ignore those
15713 # definitions, even when they're present in the '.mt' file. These cases
15714 # are when --disable-sim is specified, or if the simulator directory is
15715 # not part of the source tree.
15717 # Check whether --enable-sim was given.
15718 if test "${enable_sim+set}" = set; then :
15719 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15720 echo "enableval = ${enableval}";
15721 case "${enableval}" in
15722 yes) ignore_sim=false ;;
15723 no) ignore_sim=true ;;
15724 *) ignore_sim=false ;;
15731 if test ! -d "${srcdir}/../sim"; then
15737 if test "${ignore_sim}" = "false"; then
15738 if test x"${gdb_sim}" != x ; then
15740 SIM_OBS="remote-sim.o"
15742 $as_echo "#define WITH_SIM 1" >>confdefs.h
15760 # List of host floatformats.
15762 cat >>confdefs.h <<_ACEOF
15763 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15767 cat >>confdefs.h <<_ACEOF
15768 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15772 cat >>confdefs.h <<_ACEOF
15773 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15777 # target_subdir is used by the testsuite to find the target libraries.
15779 if test "${host}" != "${target}"; then
15780 target_subdir="${target_alias}/"
15785 if test "${gdb_native}" = "yes"; then
15786 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15787 if test ! -f ${host_makefile_frag}; then
15788 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15790 frags="$frags $host_makefile_frag"
15792 host_makefile_frag=/dev/null
15798 if test "${gdb_native}" = "yes"; then
15799 # We pick this up from the host configuration file (.mh) because we
15800 # do not have a native configuration Makefile fragment.
15801 nativefile=`sed -n '
15802 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15803 ' ${host_makefile_frag}`
15807 if test x"${gdb_osabi}" != x ; then
15809 cat >>confdefs.h <<_ACEOF
15810 #define GDB_OSABI_DEFAULT $gdb_osabi
15815 # Enable multi-ice-gdb-server.
15816 # Check whether --enable-multi-ice was given.
15817 if test "${enable_multi_ice+set}" = set; then :
15818 enableval=$enable_multi_ice; case $enableval in
15821 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15825 if test "x$enable_multi_ice" = xyes; then
15826 subdirs="$subdirs multi-ice"
15830 # Check whether --enable-gdbserver was given.
15831 if test "${enable_gdbserver+set}" = set; then :
15832 enableval=$enable_gdbserver; case "${enableval}" in
15834 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15837 enable_gdbserver=auto
15841 # We only build gdbserver automatically in a native configuration, and
15842 # only if the user did not explicitly disable its build.
15843 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15845 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15846 if test "x$build_gdbserver" = xyes; then
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15848 $as_echo "yes" >&6; }
15849 subdirs="$subdirs gdbserver"
15851 gdbserver_build_enabled=yes
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15854 $as_echo "no" >&6; }
15858 # If the user explicitly request the gdbserver to be built, verify that
15859 # we were in fact able to enable it.
15860 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15861 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15864 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15865 # to an empty version.
15871 if test "${nativefile}" != ""; then
15872 case "${nativefile}" in
15873 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15874 * ) GDB_NM_FILE="${nativefile}"
15876 files="${files} ${GDB_NM_FILE}"
15877 links="${links} nm.h"
15879 cat >>confdefs.h <<_ACEOF
15880 #define GDB_NM_FILE "${GDB_NM_FILE}"
15886 ac_sources="$files"
15888 while test -n "$ac_sources"; do
15889 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15890 set $ac_sources; ac_source=$1; shift; ac_sources=$*
15891 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15893 ac_config_links="$ac_config_links $ac_config_links_1"
15899 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15902 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile data-directory/Makefile"
15904 ac_config_commands="$ac_config_commands default"
15906 cat >confcache <<\_ACEOF
15907 # This file is a shell script that caches the results of configure
15908 # tests run on this system so they can be shared between configure
15909 # scripts and configure runs, see configure's option --config-cache.
15910 # It is not useful on other systems. If it contains results you don't
15911 # want to keep, you may remove or edit it.
15913 # config.status only pays attention to the cache file if you give it
15914 # the --recheck option to rerun configure.
15916 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15917 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15918 # following values.
15922 # The following way of writing the cache mishandles newlines in values,
15923 # but we know of no workaround that is simple, portable, and efficient.
15924 # So, we kill variables containing newlines.
15925 # Ultrix sh set writes to stderr and can't be redirected directly,
15926 # and sets the high bit in the cache file unless we assign to the vars.
15928 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15929 eval ac_val=\$$ac_var
15933 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15934 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15937 _ | IFS | as_nl) ;; #(
15938 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15939 *) { eval $ac_var=; unset $ac_var;} ;;
15945 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15946 *${as_nl}ac_space=\ *)
15947 # `set' does not quote correctly, so add quotes: double-quote
15948 # substitution turns \\\\ into \\, and sed turns \\ into \.
15951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15954 # `set' quotes correctly as required by POSIX, so do not add quotes.
15955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15964 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15966 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15968 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15969 if test -w "$cache_file"; then
15970 test "x$cache_file" != "x/dev/null" &&
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15972 $as_echo "$as_me: updating cache $cache_file" >&6;}
15973 cat confcache >$cache_file
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15976 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15981 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15982 # Let make expand exec_prefix.
15983 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15985 DEFS=-DHAVE_CONFIG_H
15989 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15990 # 1. Remove the extension, and $U if already installed.
15991 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15992 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15993 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15994 # will be set to the directory where LIBOBJS objects are built.
15995 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15996 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15998 LIBOBJS=$ac_libobjs
16000 LTLIBOBJS=$ac_ltlibobjs
16003 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16004 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16007 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16008 as_fn_error "conditional \"GMAKE\" was never defined.
16009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16011 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16012 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16018 if test -n "$gl_LIBOBJS"; then
16019 # Remove the extension.
16020 sed_drop_objext='s/\.o$//;s/\.obj$//'
16021 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16022 gl_libobjs="$gl_libobjs $i.$ac_objext"
16023 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16026 gl_LIBOBJS=$gl_libobjs
16028 gl_LTLIBOBJS=$gl_ltlibobjs
16034 if test -n "$gltests_LIBOBJS"; then
16035 # Remove the extension.
16036 sed_drop_objext='s/\.o$//;s/\.obj$//'
16037 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16038 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16039 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16042 gltests_LIBOBJS=$gltests_libobjs
16044 gltests_LTLIBOBJS=$gltests_ltlibobjs
16047 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16048 as_fn_error "conditional \"AMDEP\" was never defined.
16049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16051 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16052 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16055 if test -n "$EXEEXT"; then
16057 am__EXEEXT_FALSE='#'
16059 am__EXEEXT_TRUE='#'
16065 : ${CONFIG_STATUS=./config.status}
16067 ac_clean_files_save=$ac_clean_files
16068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16070 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16072 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16074 # Generated by $as_me.
16075 # Run this file to recreate the current configuration.
16076 # Compiler output produced by configure, useful for debugging
16077 # configure, is in config.log if it exists.
16080 ac_cs_recheck=false
16083 SHELL=\${CONFIG_SHELL-$SHELL}
16086 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16087 ## -------------------- ##
16088 ## M4sh Initialization. ##
16089 ## -------------------- ##
16091 # Be more Bourne compatible
16092 DUALCASE=1; export DUALCASE # for MKS sh
16093 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16096 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16097 # is contrary to our usage. Disable this feature.
16098 alias -g '${1+"$@"}'='"$@"'
16099 setopt NO_GLOB_SUBST
16101 case `(set -o) 2>/dev/null` in #(
16113 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16114 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16116 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16117 # Prefer a ksh shell builtin over an external printf program on Solaris,
16118 # but without wasting forks for bash or zsh.
16119 if test -z "$BASH_VERSION$ZSH_VERSION" \
16120 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16121 as_echo='print -r --'
16122 as_echo_n='print -rn --'
16123 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16124 as_echo='printf %s\n'
16125 as_echo_n='printf %s'
16127 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16128 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16129 as_echo_n='/usr/ucb/echo -n'
16131 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16132 as_echo_n_body='eval
16136 expr "X$arg" : "X\\(.*\\)$as_nl";
16137 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16139 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16141 export as_echo_n_body
16142 as_echo_n='sh -c $as_echo_n_body as_echo'
16144 export as_echo_body
16145 as_echo='sh -c $as_echo_body as_echo'
16148 # The user is always right.
16149 if test "${PATH_SEPARATOR+set}" != set; then
16151 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16152 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16159 # We need space, tab and new line, in precisely that order. Quoting is
16160 # there to prevent editors from complaining about space-tab.
16161 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16162 # splitting by setting IFS to empty value.)
16165 # Find who we are. Look in the path if we contain no directory separator.
16167 *[\\/]* ) as_myself=$0 ;;
16168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16169 for as_dir in $PATH
16172 test -z "$as_dir" && as_dir=.
16173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16179 # We did not find ourselves, most probably we were run as `sh COMMAND'
16180 # in which case we are not to be found in the path.
16181 if test "x$as_myself" = x; then
16184 if test ! -f "$as_myself"; then
16185 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16189 # Unset variables that we do not need and which cause bugs (e.g. in
16190 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16191 # suppresses any "Segmentation fault" message there. '((' could
16192 # trigger a bug in pdksh 5.2.14.
16193 for as_var in BASH_ENV ENV MAIL MAILPATH
16194 do eval test x\${$as_var+set} = xset \
16195 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16211 # as_fn_error ERROR [LINENO LOG_FD]
16212 # ---------------------------------
16213 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16214 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16215 # script with status $?, using 1 if that was 0.
16218 as_status=$?; test $as_status -eq 0 && as_status=1
16220 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16221 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16223 $as_echo "$as_me: error: $1" >&2
16224 as_fn_exit $as_status
16228 # as_fn_set_status STATUS
16229 # -----------------------
16230 # Set $? to STATUS, without forking.
16231 as_fn_set_status ()
16234 } # as_fn_set_status
16236 # as_fn_exit STATUS
16237 # -----------------
16238 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16242 as_fn_set_status $1
16248 # Portably unset VAR.
16251 { eval $1=; unset $1;}
16253 as_unset=as_fn_unset
16254 # as_fn_append VAR VALUE
16255 # ----------------------
16256 # Append the text in VALUE to the end of the definition contained in VAR. Take
16257 # advantage of any shell optimizations that allow amortized linear growth over
16258 # repeated appends, instead of the typical quadratic growth present in naive
16260 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16261 eval 'as_fn_append ()
16272 # as_fn_arith ARG...
16273 # ------------------
16274 # Perform arithmetic evaluation on the ARGs, and store the result in the
16275 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16276 # must be portable across $(()) and expr.
16277 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16278 eval 'as_fn_arith ()
16285 as_val=`expr "$@" || test $? -eq 1`
16290 if expr a : '\(a\)' >/dev/null 2>&1 &&
16291 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16297 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16298 as_basename=basename
16303 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16309 as_me=`$as_basename -- "$0" ||
16310 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16311 X"$0" : 'X\(//\)$' \| \
16312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16314 sed '/^.*\/\([^/][^/]*\)\/*$/{
16328 # Avoid depending upon Character Ranges.
16329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16332 as_cr_digits='0123456789'
16333 as_cr_alnum=$as_cr_Letters$as_cr_digits
16335 ECHO_C= ECHO_N= ECHO_T=
16336 case `echo -n x` in #(((((
16338 case `echo 'xy\c'` in
16339 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16341 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16348 rm -f conf$$ conf$$.exe conf$$.file
16349 if test -d conf$$.dir; then
16350 rm -f conf$$.dir/conf$$.file
16353 mkdir conf$$.dir 2>/dev/null
16355 if (echo >conf$$.file) 2>/dev/null; then
16356 if ln -s conf$$.file conf$$ 2>/dev/null; then
16358 # ... but there are two gotchas:
16359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16361 # In both cases, we have to default to `cp -p'.
16362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16364 elif ln conf$$.file conf$$ 2>/dev/null; then
16372 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16373 rmdir conf$$.dir 2>/dev/null
16378 # Create "$as_dir" as a directory, including parents if necessary.
16383 -*) as_dir=./$as_dir;;
16385 test -d "$as_dir" || eval $as_mkdir_p || {
16389 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16390 *) as_qdir=$as_dir;;
16392 as_dirs="'$as_qdir' $as_dirs"
16393 as_dir=`$as_dirname -- "$as_dir" ||
16394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16395 X"$as_dir" : 'X\(//\)[^/]' \| \
16396 X"$as_dir" : 'X\(//\)$' \| \
16397 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16398 $as_echo X"$as_dir" |
16399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16403 /^X\(\/\/\)[^/].*/{
16416 test -d "$as_dir" && break
16418 test -z "$as_dirs" || eval "mkdir $as_dirs"
16419 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16423 if mkdir -p . 2>/dev/null; then
16424 as_mkdir_p='mkdir -p "$as_dir"'
16426 test -d ./-p && rmdir ./-p
16430 if test -x / >/dev/null 2>&1; then
16431 as_test_x='test -x'
16433 if ls -dL / >/dev/null 2>&1; then
16440 if test -d "$1"; then
16446 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16447 ???[sx]*):;;*)false;;esac;fi
16451 as_executable_p=$as_test_x
16453 # Sed expression to map a string onto a valid CPP name.
16454 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16456 # Sed expression to map a string onto a valid variable name.
16457 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16461 ## ----------------------------------- ##
16462 ## Main body of $CONFIG_STATUS script. ##
16463 ## ----------------------------------- ##
16465 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16468 # Save the log message, to keep $0 and so on meaningful, and to
16469 # report actual input values of CONFIG_FILES etc. instead of their
16470 # values after options handling.
16472 This file was extended by $as_me, which was
16473 generated by GNU Autoconf 2.64. Invocation command line was
16475 CONFIG_FILES = $CONFIG_FILES
16476 CONFIG_HEADERS = $CONFIG_HEADERS
16477 CONFIG_LINKS = $CONFIG_LINKS
16478 CONFIG_COMMANDS = $CONFIG_COMMANDS
16481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16486 case $ac_config_files in *"
16487 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16490 case $ac_config_headers in *"
16491 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16496 # Files that config.status was made for.
16497 config_files="$ac_config_files"
16498 config_headers="$ac_config_headers"
16499 config_links="$ac_config_links"
16500 config_commands="$ac_config_commands"
16504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16506 \`$as_me' instantiates files and other configuration actions
16507 from templates according to the current configuration. Unless the files
16508 and actions are specified as TAGs, all are instantiated by default.
16510 Usage: $0 [OPTION]... [TAG]...
16512 -h, --help print this help, then exit
16513 -V, --version print version number and configuration settings, then exit
16514 -q, --quiet, --silent
16515 do not print progress messages
16516 -d, --debug don't remove temporary files
16517 --recheck update $as_me by reconfiguring in the same conditions
16518 --file=FILE[:TEMPLATE]
16519 instantiate the configuration file FILE
16520 --header=FILE[:TEMPLATE]
16521 instantiate the configuration header FILE
16523 Configuration files:
16526 Configuration headers:
16529 Configuration links:
16532 Configuration commands:
16535 Report bugs to the package provider."
16538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16541 configured by $0, generated by GNU Autoconf 2.64,
16542 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16544 Copyright (C) 2009 Free Software Foundation, Inc.
16545 This config.status script is free software; the Free Software Foundation
16546 gives unlimited permission to copy, distribute and modify it."
16553 test -n "\$AWK" || AWK=awk
16556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16557 # The default lists apply if the user does not specify any file.
16563 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16564 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16575 # Handling of the options.
16576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16578 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16579 $as_echo "$ac_cs_version"; exit ;;
16580 --debug | --debu | --deb | --de | --d | -d )
16582 --file | --fil | --fi | --f )
16585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16587 as_fn_append CONFIG_FILES " '$ac_optarg'"
16588 ac_need_defaults=false;;
16589 --header | --heade | --head | --hea )
16592 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16594 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16595 ac_need_defaults=false;;
16597 # Conflict between --help and --header
16598 as_fn_error "ambiguous option: \`$1'
16599 Try \`$0 --help' for more information.";;
16600 --help | --hel | -h )
16601 $as_echo "$ac_cs_usage"; exit ;;
16602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16603 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16606 # This is an error.
16607 -*) as_fn_error "unrecognized option: \`$1'
16608 Try \`$0 --help' for more information." ;;
16610 *) as_fn_append ac_config_targets " $1"
16611 ac_need_defaults=false ;;
16617 ac_configure_extra_args=
16619 if $ac_cs_silent; then
16621 ac_configure_extra_args="$ac_configure_extra_args --silent"
16625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16626 if \$ac_cs_recheck; then
16627 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16629 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16630 CONFIG_SHELL='$SHELL'
16631 export CONFIG_SHELL
16636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16640 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16641 ## Running $as_me. ##
16647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16651 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16652 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16658 # Handling of arguments.
16659 for ac_config_target in $ac_config_targets
16661 case $ac_config_target in
16662 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16663 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16664 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16665 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16666 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16667 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16668 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
16669 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
16670 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16672 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16677 # If the user did not use the arguments to specify the items to instantiate,
16678 # then the envvar interface is used. Set only those that are not.
16679 # We use the long form for the default assignment because of an extremely
16680 # bizarre bug on SunOS 4.1.3.
16681 if $ac_need_defaults; then
16682 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16683 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16684 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16685 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16688 # Have a temporary directory for convenience. Make it in the build tree
16689 # simply because there is no reason against having it here, and in addition,
16690 # creating and moving files from /tmp can sometimes cause problems.
16691 # Hook for its removal unless debugging.
16692 # Note that there is a small window in which the directory will not be cleaned:
16693 # after its creation but before its name has been assigned to `$tmp'.
16697 trap 'exit_status=$?
16698 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16700 trap 'as_fn_exit 1' 1 2 13 15
16702 # Create a (secure) tmp directory for tmp files.
16705 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16706 test -n "$tmp" && test -d "$tmp"
16709 tmp=./conf$$-$RANDOM
16710 (umask 077 && mkdir "$tmp")
16711 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16713 # Set up the scripts for CONFIG_FILES section.
16714 # No need to generate them if there are no CONFIG_FILES.
16715 # This happens for instance with `./config.status config.h'.
16716 if test -n "$CONFIG_FILES"; then
16718 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16719 ac_cs_awk_getline=:
16720 ac_cs_awk_pipe_init=
16721 ac_cs_awk_read_file='
16722 while ((getline aline < (F[key])) > 0)
16725 ac_cs_awk_pipe_fini=
16727 ac_cs_awk_getline=false
16728 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16729 ac_cs_awk_read_file='
16731 print "cat " F[key] " &&"
16732 '$ac_cs_awk_pipe_init
16733 # The final `:' finishes the AND list.
16734 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16736 ac_cr=`echo X | tr X '\015'`
16737 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16738 # But we know of no other shell where ac_cr would be empty at this
16739 # point, so we can use a bashism as a fallback.
16740 if test "x$ac_cr" = x; then
16741 eval ac_cr=\$\'\\r\'
16743 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16744 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16747 ac_cs_awk_cr=$ac_cr
16750 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16753 # Create commands to substitute file output variables.
16755 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16756 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16757 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16760 } >conf$$files.sh &&
16761 . ./conf$$files.sh ||
16762 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16763 rm -f conf$$files.sh
16766 echo "cat >conf$$subs.awk <<_ACEOF" &&
16767 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16769 } >conf$$subs.sh ||
16770 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16771 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16773 for ac_last_try in false false false false false :; do
16774 . ./conf$$subs.sh ||
16775 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16777 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16778 if test $ac_delim_n = $ac_delim_num; then
16780 elif $ac_last_try; then
16781 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16783 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16786 rm -f conf$$subs.sh
16788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16789 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16793 s/^/S["/; s/!.*/"]=/
16803 s/\(.\{148\}\).*/\1/
16805 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16810 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16817 s/\(.\{148\}\).*/\1/
16819 s/["\\]/\\&/g; s/^/"/; s/$/"/
16823 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16828 ' <conf$$subs.awk | sed '
16833 ' >>$CONFIG_STATUS || ac_write_fail=1
16834 rm -f conf$$subs.awk
16835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16837 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16838 for (key in S) S_is_set[key] = 1
16840 \$ac_cs_awk_pipe_init
16844 nfields = split(line, field, "@")
16846 len = length(field[1])
16847 for (i = 2; i < nfields; i++) {
16849 keylen = length(key)
16850 if (S_is_set[key]) {
16852 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16853 len += length(value) + length(field[++i])
16858 if (nfields == 3 && !substed) {
16860 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16861 \$ac_cs_awk_read_file
16867 \$ac_cs_awk_pipe_fini
16870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16871 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16872 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16875 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16876 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16879 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16881 # trailing colons and then remove the whole line if VPATH becomes empty
16882 # (actually we leave an empty line to preserve line numbers).
16883 if test "x$srcdir" = x.; then
16884 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16885 s/:*\$(srcdir):*/:/
16886 s/:*\${srcdir}:*/:/
16888 s/^\([^=]*=[ ]*\):*/\1/
16894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16895 fi # test -n "$CONFIG_FILES"
16897 # Set up the scripts for CONFIG_HEADERS section.
16898 # No need to generate them if there are no CONFIG_HEADERS.
16899 # This happens for instance with `./config.status Makefile'.
16900 if test -n "$CONFIG_HEADERS"; then
16901 cat >"$tmp/defines.awk" <<\_ACAWK ||
16905 # Transform confdefs.h into an awk script `defines.awk', embedded as
16906 # here-document in config.status, that substitutes the proper values into
16907 # config.h.in to produce config.h.
16909 # Create a delimiter string that does not exist in confdefs.h, to ease
16910 # handling of long lines.
16912 for ac_last_try in false false :; do
16913 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16914 if test -z "$ac_t"; then
16916 elif $ac_last_try; then
16917 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16919 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16923 # For the awk script, D is an array of macro values keyed by name,
16924 # likewise P contains macro parameters if any. Preserve backslash
16925 # newline sequences.
16927 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16929 s/.\{148\}/&'"$ac_delim"'/g
16932 s/^[ ]*#[ ]*define[ ][ ]*/ /
16939 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16941 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16945 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16946 D["\1"]=" \3\\\\\\n"\\/p
16948 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16953 s/.\{148\}/&'"$ac_delim"'/g
16958 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16961 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16963 ' <confdefs.h | sed '
16964 s/'"$ac_delim"'/"\\\
16965 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16968 for (key in D) D_is_set[key] = 1
16971 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16973 split(line, arg, " ")
16974 if (arg[1] == "#") {
16978 defundef = substr(arg[1], 2)
16981 split(mac1, mac2, "(") #)
16983 prefix = substr(line, 1, index(line, defundef) - 1)
16984 if (D_is_set[macro]) {
16985 # Preserve the white space surrounding the "#".
16986 print prefix "define", macro P[macro] D[macro]
16989 # Replace #undef with comments. This is necessary, for example,
16990 # in the case of _POSIX_SOURCE, which is predefined and required
16991 # on some systems where configure will not decide to define it.
16992 if (defundef == "undef") {
16993 print "/*", prefix defundef, macro, "*/"
17001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17002 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17003 fi # test -n "$CONFIG_HEADERS"
17006 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17011 :[FHLC]) ac_mode=$ac_tag; continue;;
17013 case $ac_mode$ac_tag in
17015 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17016 :[FH]-) ac_tag=-:-;;
17017 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17034 -) ac_f="$tmp/stdin";;
17035 *) # Look for the file first in the build tree, then in the source tree
17036 # (if the path is not absolute). The absolute path cannot be DOS-style,
17037 # because $ac_f cannot contain `:'.
17041 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17043 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17045 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17046 as_fn_append ac_file_inputs " '$ac_f'"
17049 # Let's still pretend it is `configure' which instantiates (i.e., don't
17050 # use $as_me), people would be surprised to read:
17051 # /* config.h. Generated by config.status. */
17052 configure_input='Generated from '`
17053 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17055 if test x"$ac_file" != x-; then
17056 configure_input="$ac_file. $configure_input"
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17058 $as_echo "$as_me: creating $ac_file" >&6;}
17060 # Neutralize special characters interpreted by sed in replacement strings.
17061 case $configure_input in #(
17062 *\&* | *\|* | *\\* )
17063 ac_sed_conf_input=`$as_echo "$configure_input" |
17064 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17065 *) ac_sed_conf_input=$configure_input;;
17069 *:-:* | *:-) cat >"$tmp/stdin" \
17070 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17075 ac_dir=`$as_dirname -- "$ac_file" ||
17076 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17077 X"$ac_file" : 'X\(//\)[^/]' \| \
17078 X"$ac_file" : 'X\(//\)$' \| \
17079 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17080 $as_echo X"$ac_file" |
17081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17085 /^X\(\/\/\)[^/].*/{
17098 as_dir="$ac_dir"; as_fn_mkdir_p
17102 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17104 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17105 # A ".." for each directory in $ac_dir_suffix.
17106 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17107 case $ac_top_builddir_sub in
17108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17112 ac_abs_top_builddir=$ac_pwd
17113 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17114 # for backward compatibility:
17115 ac_top_builddir=$ac_top_build_prefix
17118 .) # We are building in place.
17120 ac_top_srcdir=$ac_top_builddir_sub
17121 ac_abs_top_srcdir=$ac_pwd ;;
17122 [\\/]* | ?:[\\/]* ) # Absolute name.
17123 ac_srcdir=$srcdir$ac_dir_suffix;
17124 ac_top_srcdir=$srcdir
17125 ac_abs_top_srcdir=$srcdir ;;
17126 *) # Relative name.
17127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17128 ac_top_srcdir=$ac_top_build_prefix$srcdir
17129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17131 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17141 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17142 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17144 ac_MKDIR_P=$MKDIR_P
17146 [\\/$]* | ?:[\\/]* ) ;;
17147 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17152 # If the template does not know about datarootdir, expand it.
17153 # FIXME: This hack should be removed a few years after 2.60.
17154 ac_datarootdir_hack=; ac_datarootdir_seen=
17165 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17166 *datarootdir*) ac_datarootdir_seen=yes;;
17167 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17169 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17172 ac_datarootdir_hack='
17173 s&@datadir@&$datadir&g
17174 s&@docdir@&$docdir&g
17175 s&@infodir@&$infodir&g
17176 s&@localedir@&$localedir&g
17177 s&@mandir@&$mandir&g
17178 s&\\\${datarootdir}&$datarootdir&g' ;;
17182 # Neutralize VPATH when `$srcdir' = `.'.
17183 # Shell code in configure.ac might set extrasub.
17184 # FIXME: do we really want to maintain this feature?
17185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17186 ac_sed_extra="$ac_vpsub
17189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17191 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17192 s|@configure_input@|$ac_sed_conf_input|;t t
17193 s&@top_builddir@&$ac_top_builddir_sub&;t t
17194 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17195 s&@srcdir@&$ac_srcdir&;t t
17196 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17197 s&@top_srcdir@&$ac_top_srcdir&;t t
17198 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17199 s&@builddir@&$ac_builddir&;t t
17200 s&@abs_builddir@&$ac_abs_builddir&;t t
17201 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17202 s&@INSTALL@&$ac_INSTALL&;t t
17203 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17204 $ac_datarootdir_hack
17206 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17207 if $ac_cs_awk_getline; then
17208 $AWK -f "$tmp/subs.awk"
17210 $AWK -f "$tmp/subs.awk" | $SHELL
17212 || as_fn_error "could not create $ac_file" "$LINENO" 5
17214 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17215 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17216 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17218 which seems to be undefined. Please make sure it is defined." >&5
17219 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17220 which seems to be undefined. Please make sure it is defined." >&2;}
17224 -) cat "$tmp/out" && rm -f "$tmp/out";;
17225 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17227 || as_fn_error "could not create $ac_file" "$LINENO" 5
17233 if test x"$ac_file" != x-; then
17235 $as_echo "/* $configure_input */" \
17236 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17237 } >"$tmp/config.h" \
17238 || as_fn_error "could not create $ac_file" "$LINENO" 5
17239 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17241 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17244 mv "$tmp/config.h" "$ac_file" \
17245 || as_fn_error "could not create $ac_file" "$LINENO" 5
17248 $as_echo "/* $configure_input */" \
17249 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17250 || as_fn_error "could not create -" "$LINENO" 5
17252 # Compute "$ac_file"'s index in $config_headers.
17255 for _am_header in $config_headers :; do
17256 case $_am_header in
17257 $_am_arg | $_am_arg:* )
17260 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17263 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17264 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17265 X"$_am_arg" : 'X\(//\)[^/]' \| \
17266 X"$_am_arg" : 'X\(//\)$' \| \
17267 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17268 $as_echo X"$_am_arg" |
17269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17273 /^X\(\/\/\)[^/].*/{
17285 s/.*/./; q'`/stamp-h$_am_stamp_count
17292 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17295 # Prefer the file from the source tree if names are identical.
17296 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17297 ac_source=$srcdir/$ac_source
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17301 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17303 if test ! -r "$ac_source"; then
17304 as_fn_error "$ac_source: file not found" "$LINENO" 5
17308 # Try a relative symlink, then a hard link, then a copy.
17310 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17311 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17313 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17314 ln "$ac_source" "$ac_file" 2>/dev/null ||
17315 cp -p "$ac_source" "$ac_file" ||
17316 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17319 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17320 $as_echo "$as_me: executing $ac_file commands" >&6;}
17325 case $ac_file$ac_mode in
17326 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17327 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17328 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17329 # are listed without --file. Let's play safe and only enable the eval
17330 # if we detect the quoting.
17331 case $CONFIG_FILES in
17332 *\'*) eval set x "$CONFIG_FILES" ;;
17333 *) set x $CONFIG_FILES ;;
17338 # Strip MF so we end up with the name of the file.
17339 mf=`echo "$mf" | sed -e 's/:.*$//'`
17340 # Check whether this is an Automake generated Makefile or not.
17341 # We used to match only the files named `Makefile.in', but
17342 # some people rename them; so instead we look at the file content.
17343 # Grep'ing the first line is not enough: some people post-process
17344 # each Makefile.in and add a new line on top of each file to say so.
17345 # Grep'ing the whole file is not good either: AIX grep has a line
17346 # limit of 2048, but all sed's we know have understand at least 4000.
17347 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17348 dirpart=`$as_dirname -- "$mf" ||
17349 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17350 X"$mf" : 'X\(//\)[^/]' \| \
17351 X"$mf" : 'X\(//\)$' \| \
17352 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17358 /^X\(\/\/\)[^/].*/{
17374 # Extract the definition of DEPDIR, am__include, and am__quote
17375 # from the Makefile without running `make'.
17376 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17377 test -z "$DEPDIR" && continue
17378 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17379 test -z "am__include" && continue
17380 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17381 # When using ansi2knr, U may be empty or an underscore; expand it
17382 U=`sed -n 's/^U = //p' < "$mf"`
17383 # Find all dependency output files, they are included files with
17384 # $(DEPDIR) in their names. We invoke sed twice because it is the
17385 # simplest approach to changing $(DEPDIR) to its actual value in the
17387 for file in `sed -n "
17388 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17389 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17390 # Make sure the directory exists.
17391 test -f "$dirpart/$file" && continue
17392 fdir=`$as_dirname -- "$file" ||
17393 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17394 X"$file" : 'X\(//\)[^/]' \| \
17395 X"$file" : 'X\(//\)$' \| \
17396 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17397 $as_echo X"$file" |
17398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17402 /^X\(\/\/\)[^/].*/{
17415 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17416 # echo "creating $dirpart/$file"
17417 echo '# dummy' > "$dirpart/$file"
17423 case x$CONFIG_HEADERS in
17424 xconfig.h:config.in)
17435 ac_clean_files=$ac_clean_files_save
17437 test $ac_write_fail = 0 ||
17438 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17441 # configure is writing to config.log, and then calls config.status.
17442 # config.status does its own redirection, appending to config.log.
17443 # Unfortunately, on DOS this fails, as config.log is still kept open
17444 # by configure, so config.status won't be able to write to it; its
17445 # output is simply discarded. So we exec the FD to /dev/null,
17446 # effectively closing config.log, so it can be properly (re)opened and
17447 # appended to by config.status. When coming back to configure, we
17448 # need to make the FD available again.
17449 if test "$no_create" != yes; then
17451 ac_config_status_args=
17452 test "$silent" = yes &&
17453 ac_config_status_args="$ac_config_status_args --quiet"
17455 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17457 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17458 # would make configure fail if this is the last instruction.
17459 $ac_cs_success || as_fn_exit $?
17463 # CONFIG_SUBDIRS section.
17465 if test "$no_recursion" != yes; then
17467 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17468 # so they do not pile up.
17469 ac_sub_configure_args=
17471 eval "set x $ac_configure_args"
17475 if test -n "$ac_prev"; then
17480 -cache-file | --cache-file | --cache-fil | --cache-fi \
17481 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17482 ac_prev=cache_file ;;
17483 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17484 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17487 --config-cache | -C)
17489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17493 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17495 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17497 --disable-option-checking)
17501 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17503 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17507 # Always prepend --prefix to ensure using the same prefix
17508 # in subdir configurations.
17509 ac_arg="--prefix=$prefix"
17511 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17513 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17516 if test "$silent" = yes; then
17517 ac_sub_configure_args="--silent $ac_sub_configure_args"
17520 # Always prepend --disable-option-checking to silence warnings, since
17521 # different subdirs can have different --enable and --with options.
17522 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17525 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17527 # Do not complain, so a configure script can configure whichever
17528 # parts of a large source tree are present.
17529 test -d "$srcdir/$ac_dir" || continue
17531 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17532 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17533 $as_echo "$ac_msg" >&6
17534 as_dir="$ac_dir"; as_fn_mkdir_p
17538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17541 # A ".." for each directory in $ac_dir_suffix.
17542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17543 case $ac_top_builddir_sub in
17544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17548 ac_abs_top_builddir=$ac_pwd
17549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17550 # for backward compatibility:
17551 ac_top_builddir=$ac_top_build_prefix
17554 .) # We are building in place.
17556 ac_top_srcdir=$ac_top_builddir_sub
17557 ac_abs_top_srcdir=$ac_pwd ;;
17558 [\\/]* | ?:[\\/]* ) # Absolute name.
17559 ac_srcdir=$srcdir$ac_dir_suffix;
17560 ac_top_srcdir=$srcdir
17561 ac_abs_top_srcdir=$srcdir ;;
17562 *) # Relative name.
17563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17564 ac_top_srcdir=$ac_top_build_prefix$srcdir
17565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17572 # Check for guested configure; otherwise get Cygnus style configure.
17573 if test -f "$ac_srcdir/configure.gnu"; then
17574 ac_sub_configure=$ac_srcdir/configure.gnu
17575 elif test -f "$ac_srcdir/configure"; then
17576 ac_sub_configure=$ac_srcdir/configure
17577 elif test -f "$ac_srcdir/configure.in"; then
17578 # This should be Cygnus configure.
17579 ac_sub_configure=$ac_aux_dir/configure
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17586 # The recursion is here.
17587 if test -n "$ac_sub_configure"; then
17588 # Make the cache file name correct relative to the subdirectory.
17589 case $cache_file in
17590 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17591 *) # Relative name.
17592 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17595 { $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
17596 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17597 # The eval makes quoting arguments work.
17598 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17599 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17600 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17606 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17608 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}