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
670 READLINE_TEXI_INCFLAG
701 INSTALL_STRIP_PROGRAM
724 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
760 NEXT_AS_FIRST_DIRECTIVE_STRING_H
762 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
832 UINT64_MAX_EQ_ULONG_MAX
833 UINT32_MAX_LT_UINTMAX_MAX
834 INT64_MAX_EQ_LONG_MAX
835 INT32_MAX_LT_INTMAX_MAX
837 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
856 HAVE_SIGNED_SIG_ATOMIC_T
859 BITSIZEOF_SIG_ATOMIC_T
862 APPLE_UNIVERSAL_BUILD
866 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
869 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
873 HAVE_UNSIGNED_LONG_LONG_INT
875 GL_COND_LIBTOOL_FALSE
920 MAINTAINER_MODE_FALSE
949 program_transform_name
960 ac_subst_files='host_makefile_frag'
962 enable_option_checking
963 enable_maintainer_mode
966 enable_dependency_tracking
967 with_separate_debug_dir
969 with_relocated_sources
995 enable_build_warnings
996 enable_gdb_build_warnings
1004 ac_precious_vars='build_alias
1018 ac_subdirs_all='testsuite
1023 # Initialize some variables set by options.
1025 ac_init_version=false
1026 ac_unrecognized_opts=
1027 ac_unrecognized_sep=
1028 # The variables have the same names as the options, with
1029 # dashes changed to underlines.
1030 cache_file=/dev/null
1037 program_transform_name=s,x,x,
1045 # Installation directory options.
1046 # These are left unexpanded so users can "make install exec_prefix=/foo"
1047 # and all the variables that are supposed to be based on exec_prefix
1048 # by default will actually change.
1049 # Use braces instead of parens because sh, perl, etc. also accept them.
1050 # (The list follows the same order as the GNU Coding Standards.)
1051 bindir='${exec_prefix}/bin'
1052 sbindir='${exec_prefix}/sbin'
1053 libexecdir='${exec_prefix}/libexec'
1054 datarootdir='${prefix}/share'
1055 datadir='${datarootdir}'
1056 sysconfdir='${prefix}/etc'
1057 sharedstatedir='${prefix}/com'
1058 localstatedir='${prefix}/var'
1059 includedir='${prefix}/include'
1060 oldincludedir='/usr/include'
1061 docdir='${datarootdir}/doc/${PACKAGE}'
1062 infodir='${datarootdir}/info'
1067 libdir='${exec_prefix}/lib'
1068 localedir='${datarootdir}/locale'
1069 mandir='${datarootdir}/man'
1075 # If the previous option needs an argument, assign it.
1076 if test -n "$ac_prev"; then
1077 eval $ac_prev=\$ac_option
1083 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1087 # Accept the important Cygnus configure options, so we can diagnose typos.
1089 case $ac_dashdash$ac_option in
1093 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1095 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1096 bindir=$ac_optarg ;;
1098 -build | --build | --buil | --bui | --bu)
1099 ac_prev=build_alias ;;
1100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1101 build_alias=$ac_optarg ;;
1103 -cache-file | --cache-file | --cache-fil | --cache-fi \
1104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1105 ac_prev=cache_file ;;
1106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1108 cache_file=$ac_optarg ;;
1110 --config-cache | -C)
1111 cache_file=config.cache ;;
1113 -datadir | --datadir | --datadi | --datad)
1115 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1116 datadir=$ac_optarg ;;
1118 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1119 | --dataroo | --dataro | --datar)
1120 ac_prev=datarootdir ;;
1121 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1122 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1123 datarootdir=$ac_optarg ;;
1125 -disable-* | --disable-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1139 eval enable_$ac_useropt=no ;;
1141 -docdir | --docdir | --docdi | --doc | --do)
1143 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1144 docdir=$ac_optarg ;;
1146 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1148 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1149 dvidir=$ac_optarg ;;
1151 -enable-* | --enable-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error "invalid feature name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1160 "enable_$ac_useropt"
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1165 eval enable_$ac_useropt=\$ac_optarg ;;
1167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1169 | --exec | --exe | --ex)
1170 ac_prev=exec_prefix ;;
1171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1173 | --exec=* | --exe=* | --ex=*)
1174 exec_prefix=$ac_optarg ;;
1176 -gas | --gas | --ga | --g)
1177 # Obsolete; use --with-gas.
1180 -help | --help | --hel | --he | -h)
1181 ac_init_help=long ;;
1182 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1183 ac_init_help=recursive ;;
1184 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1185 ac_init_help=short ;;
1187 -host | --host | --hos | --ho)
1188 ac_prev=host_alias ;;
1189 -host=* | --host=* | --hos=* | --ho=*)
1190 host_alias=$ac_optarg ;;
1192 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1194 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1196 htmldir=$ac_optarg ;;
1198 -includedir | --includedir | --includedi | --included | --include \
1199 | --includ | --inclu | --incl | --inc)
1200 ac_prev=includedir ;;
1201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1202 | --includ=* | --inclu=* | --incl=* | --inc=*)
1203 includedir=$ac_optarg ;;
1205 -infodir | --infodir | --infodi | --infod | --info | --inf)
1207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1208 infodir=$ac_optarg ;;
1210 -libdir | --libdir | --libdi | --libd)
1212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1213 libdir=$ac_optarg ;;
1215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1216 | --libexe | --libex | --libe)
1217 ac_prev=libexecdir ;;
1218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1219 | --libexe=* | --libex=* | --libe=*)
1220 libexecdir=$ac_optarg ;;
1222 -localedir | --localedir | --localedi | --localed | --locale)
1223 ac_prev=localedir ;;
1224 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1225 localedir=$ac_optarg ;;
1227 -localstatedir | --localstatedir | --localstatedi | --localstated \
1228 | --localstate | --localstat | --localsta | --localst | --locals)
1229 ac_prev=localstatedir ;;
1230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1231 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1232 localstatedir=$ac_optarg ;;
1234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1237 mandir=$ac_optarg ;;
1239 -nfp | --nfp | --nf)
1240 # Obsolete; use --without-fp.
1243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1244 | --no-cr | --no-c | -n)
1247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1253 | --oldin | --oldi | --old | --ol | --o)
1254 ac_prev=oldincludedir ;;
1255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1258 oldincludedir=$ac_optarg ;;
1260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1263 prefix=$ac_optarg ;;
1265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1266 | --program-pre | --program-pr | --program-p)
1267 ac_prev=program_prefix ;;
1268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1270 program_prefix=$ac_optarg ;;
1272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1273 | --program-suf | --program-su | --program-s)
1274 ac_prev=program_suffix ;;
1275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1277 program_suffix=$ac_optarg ;;
1279 -program-transform-name | --program-transform-name \
1280 | --program-transform-nam | --program-transform-na \
1281 | --program-transform-n | --program-transform- \
1282 | --program-transform | --program-transfor \
1283 | --program-transfo | --program-transf \
1284 | --program-trans | --program-tran \
1285 | --progr-tra | --program-tr | --program-t)
1286 ac_prev=program_transform_name ;;
1287 -program-transform-name=* | --program-transform-name=* \
1288 | --program-transform-nam=* | --program-transform-na=* \
1289 | --program-transform-n=* | --program-transform-=* \
1290 | --program-transform=* | --program-transfor=* \
1291 | --program-transfo=* | --program-transf=* \
1292 | --program-trans=* | --program-tran=* \
1293 | --progr-tra=* | --program-tr=* | --program-t=*)
1294 program_transform_name=$ac_optarg ;;
1296 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1298 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1299 pdfdir=$ac_optarg ;;
1301 -psdir | --psdir | --psdi | --psd | --ps)
1303 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1307 | -silent | --silent | --silen | --sile | --sil)
1310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1314 sbindir=$ac_optarg ;;
1316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1318 | --sharedst | --shareds | --shared | --share | --shar \
1320 ac_prev=sharedstatedir ;;
1321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1325 sharedstatedir=$ac_optarg ;;
1327 -site | --site | --sit)
1329 -site=* | --site=* | --sit=*)
1332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1335 srcdir=$ac_optarg ;;
1337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1338 | --syscon | --sysco | --sysc | --sys | --sy)
1339 ac_prev=sysconfdir ;;
1340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1342 sysconfdir=$ac_optarg ;;
1344 -target | --target | --targe | --targ | --tar | --ta | --t)
1345 ac_prev=target_alias ;;
1346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1347 target_alias=$ac_optarg ;;
1349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1352 -version | --version | --versio | --versi | --vers | -V)
1353 ac_init_version=: ;;
1356 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1359 as_fn_error "invalid package name: $ac_useropt"
1360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1369 eval with_$ac_useropt=\$ac_optarg ;;
1371 -without-* | --without-*)
1372 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375 as_fn_error "invalid package name: $ac_useropt"
1376 ac_useropt_orig=$ac_useropt
1377 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378 case $ac_user_opts in
1382 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1383 ac_unrecognized_sep=', ';;
1385 eval with_$ac_useropt=no ;;
1388 # Obsolete; use --with-x.
1391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1392 | --x-incl | --x-inc | --x-in | --x-i)
1393 ac_prev=x_includes ;;
1394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1396 x_includes=$ac_optarg ;;
1398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1400 ac_prev=x_libraries ;;
1401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1403 x_libraries=$ac_optarg ;;
1405 -*) as_fn_error "unrecognized option: \`$ac_option'
1406 Try \`$0 --help' for more information."
1410 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1411 # Reject names that are not valid shell variable names.
1412 case $ac_envvar in #(
1413 '' | [0-9]* | *[!_$as_cr_alnum]* )
1414 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1416 eval $ac_envvar=\$ac_optarg
1417 export $ac_envvar ;;
1420 # FIXME: should be removed in autoconf 3.0.
1421 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1422 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1423 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1424 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1430 if test -n "$ac_prev"; then
1431 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1432 as_fn_error "missing argument to $ac_option"
1435 if test -n "$ac_unrecognized_opts"; then
1436 case $enable_option_checking in
1438 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1439 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1443 # Check all directory arguments for consistency.
1444 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1445 datadir sysconfdir sharedstatedir localstatedir includedir \
1446 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1447 libdir localedir mandir
1449 eval ac_val=\$$ac_var
1450 # Remove trailing slashes.
1453 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1454 eval $ac_var=\$ac_val;;
1456 # Be sure to have absolute directory names.
1458 [\\/$]* | ?:[\\/]* ) continue;;
1459 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1464 # There might be people who depend on the old broken behavior: `$host'
1465 # used to hold the argument of --host etc.
1466 # FIXME: To remove some day.
1469 target=$target_alias
1471 # FIXME: To remove some day.
1472 if test "x$host_alias" != x; then
1473 if test "x$build_alias" = x; then
1474 cross_compiling=maybe
1475 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1476 If a cross compiler is detected then cross compile mode will be used." >&2
1477 elif test "x$build_alias" != "x$host_alias"; then
1483 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1485 test "$silent" = yes && exec 6>/dev/null
1488 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1489 ac_ls_di=`ls -di .` &&
1490 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1491 as_fn_error "working directory cannot be determined"
1492 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1493 as_fn_error "pwd does not report name of working directory"
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498 ac_srcdir_defaulted=yes
1499 # Try the directory containing this script, then the parent directory.
1500 ac_confdir=`$as_dirname -- "$as_myself" ||
1501 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502 X"$as_myself" : 'X\(//\)[^/]' \| \
1503 X"$as_myself" : 'X\(//\)$' \| \
1504 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1505 $as_echo X"$as_myself" |
1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1528 ac_srcdir_defaulted=no
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1534 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1546 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1548 for ac_var in $ac_precious_vars; do
1549 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550 eval ac_env_${ac_var}_value=\$${ac_var}
1551 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1556 # Report the --help message.
1558 if test "$ac_init_help" = "long"; then
1559 # Omit some internal or obsolete options to make the list less imposing.
1560 # This message is too long to be a string in the A/UX 3.1 sh.
1562 \`configure' configures this package to adapt to many kinds of systems.
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE. See below for descriptions of some of the useful variables.
1569 Defaults for the options are specified in brackets.
1572 -h, --help display this help and exit
1573 --help=short display options specific to this package
1574 --help=recursive display the short help of all the included packages
1575 -V, --version display version information and exit
1576 -q, --quiet, --silent do not print \`checking...' messages
1577 --cache-file=FILE cache test results in FILE [disabled]
1578 -C, --config-cache alias for \`--cache-file=config.cache'
1579 -n, --no-create do not create output files
1580 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1582 Installation directories:
1583 --prefix=PREFIX install architecture-independent files in PREFIX
1584 [$ac_default_prefix]
1585 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1593 For better control, use the options below.
1595 Fine tuning of the installation directories:
1596 --bindir=DIR user executables [EPREFIX/bin]
1597 --sbindir=DIR system admin executables [EPREFIX/sbin]
1598 --libexecdir=DIR program executables [EPREFIX/libexec]
1599 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1600 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1601 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1602 --libdir=DIR object code libraries [EPREFIX/lib]
1603 --includedir=DIR C header files [PREFIX/include]
1604 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1605 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1606 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1607 --infodir=DIR info documentation [DATAROOTDIR/info]
1608 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1609 --mandir=DIR man documentation [DATAROOTDIR/man]
1610 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1611 --htmldir=DIR html documentation [DOCDIR]
1612 --dvidir=DIR dvi documentation [DOCDIR]
1613 --pdfdir=DIR pdf documentation [DOCDIR]
1614 --psdir=DIR ps documentation [DOCDIR]
1620 --program-prefix=PREFIX prepend PREFIX to installed program names
1621 --program-suffix=SUFFIX append SUFFIX to installed program names
1622 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1625 --x-includes=DIR X include files are in DIR
1626 --x-libraries=DIR X library files are in DIR
1629 --build=BUILD configure for building on BUILD [guessed]
1630 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1631 --target=TARGET configure for building compilers for TARGET [HOST]
1635 if test -n "$ac_init_help"; then
1640 --disable-option-checking ignore unrecognized --enable/--with options
1641 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1642 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1643 --enable-maintainer-mode enable make rules and dependencies not useful
1644 (and sometimes confusing) to the casual installer
1645 --enable-plugins Enable support for plugins (defaults no)
1646 --disable-largefile omit support for large files
1647 --disable-dependency-tracking speeds up one-time build
1648 --enable-dependency-tracking do not reject slow dependency extractors
1649 --enable-targets=TARGETS
1650 alternative target configurations
1651 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1652 --disable-gdbcli disable command-line interface (CLI)
1653 --disable-gdbmi disable machine-interface (MI)
1654 --enable-tui enable full-screen terminal user interface (TUI)
1655 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1656 --enable-profiling enable profiling of GDB
1657 --disable-rpath do not hardcode runtime library paths
1658 --enable-werror treat compile warnings as errors
1659 --enable-build-warnings enable build-time compiler warnings if gcc is used
1660 --enable-gdb-build-warnings
1661 enable GDB specific build-time compiler warnings if
1663 --enable-sim link gdb with simulator
1664 --enable-multi-ice build the multi-ice-gdb-server
1665 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1669 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1670 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1671 --with-separate-debug-dir=PATH
1672 look for global separate debug info in this path
1674 --with-gdb-datadir=PATH look for global separate data files in this path
1676 --with-relocated-sources=PATH
1677 automatically relocate this path for source files
1678 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1679 --with-curses use the curses library instead of the termcap
1681 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1682 --with-bugurl=URL Direct users to URL to report a bug
1683 --with-zlib include zlib support (auto/yes/no) default=auto
1684 --with-libiconv-prefix=DIR
1685 search for libiconv in DIR/include and DIR/lib
1686 --with-iconv-bin=PATH specify where to find the iconv program
1687 --with-system-readline use installed readline library
1688 --with-jit-reader-dir=PATH
1689 directory to load the JIT readers from
1690 --with-expat include expat support (auto/yes/no)
1691 --with-gnu-ld assume the C compiler uses GNU ld default=no
1692 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1693 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1694 --with-python[=PYTHON] include python support
1695 (auto/yes/no/<python-program>)
1696 --without-included-regex
1697 don't use included regex; this is the default on
1698 systems with version 2 of the GNU C library (use
1699 with caution on other system)
1700 --with-sysroot[=DIR] search for usr/lib et al within DIR
1701 --with-system-gdbinit=PATH
1702 automatically load a system-wide gdbinit file
1703 --with-tcl directory containing tcl configuration (tclConfig.sh)
1704 --with-tk directory containing tk configuration (tkConfig.sh)
1705 --with-x use the X Window System
1707 Some influential environment variables:
1708 CC C compiler command
1709 CFLAGS C compiler flags
1710 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1711 nonstandard directory <lib dir>
1712 LIBS libraries to pass to the linker, e.g. -l<library>
1713 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1714 you have headers in a nonstandard directory <include dir>
1716 MAKEINFO Parent configure detects if it is of sufficient version.
1718 Parameters for MAKEINFO.
1719 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1720 the first program found out of: `bison -y', `byacc', `yacc'.
1721 YFLAGS The list of arguments that will be passed by default to $YACC.
1722 This script will default YFLAGS to the empty string to avoid a
1723 default value of `-d' given by some make applications.
1724 XMKMF Path to xmkmf, Makefile generator for X Window System
1726 Use these variables to override the choices made by `configure' or to help
1727 it to find libraries and programs with nonstandard names/locations.
1729 Report bugs to the package provider.
1734 if test "$ac_init_help" = "recursive"; then
1735 # If there are subdirs, report their specific --help.
1736 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1737 test -d "$ac_dir" ||
1738 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1746 # A ".." for each directory in $ac_dir_suffix.
1747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1748 case $ac_top_builddir_sub in
1749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1753 ac_abs_top_builddir=$ac_pwd
1754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1755 # for backward compatibility:
1756 ac_top_builddir=$ac_top_build_prefix
1759 .) # We are building in place.
1761 ac_top_srcdir=$ac_top_builddir_sub
1762 ac_abs_top_srcdir=$ac_pwd ;;
1763 [\\/]* | ?:[\\/]* ) # Absolute name.
1764 ac_srcdir=$srcdir$ac_dir_suffix;
1765 ac_top_srcdir=$srcdir
1766 ac_abs_top_srcdir=$srcdir ;;
1768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1769 ac_top_srcdir=$ac_top_build_prefix$srcdir
1770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1774 cd "$ac_dir" || { ac_status=$?; continue; }
1775 # Check for guested configure.
1776 if test -f "$ac_srcdir/configure.gnu"; then
1778 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1779 elif test -f "$ac_srcdir/configure"; then
1781 $SHELL "$ac_srcdir/configure" --help=recursive
1783 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1785 cd "$ac_pwd" || { ac_status=$?; break; }
1789 test -n "$ac_init_help" && exit $ac_status
1790 if $ac_init_version; then
1793 generated by GNU Autoconf 2.64
1795 Copyright (C) 2009 Free Software Foundation, Inc.
1796 This configure script is free software; the Free Software Foundation
1797 gives unlimited permission to copy, distribute and modify it.
1802 ## ------------------------ ##
1803 ## Autoconf initialization. ##
1804 ## ------------------------ ##
1806 # ac_fn_c_try_compile LINENO
1807 # --------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_compile ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext
1813 if { { ac_try="$ac_compile"
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_compile") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest.$ac_objext; then :
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 } # ac_fn_c_try_compile
1844 # ac_fn_c_try_cpp LINENO
1845 # ----------------------
1846 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_cpp conftest.$ac_ext"
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } >/dev/null && {
1866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1867 test ! -s conftest.err
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1882 # -------------------------------------------------------
1883 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1884 # the include files in INCLUDES and setting the cache variable VAR
1886 ac_fn_c_check_header_mongrel ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1893 $as_echo_n "(cached) " >&6
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1899 # Is the header compilable?
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1901 $as_echo_n "checking $2 usability... " >&6; }
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908 ac_header_compiler=yes
1910 ac_header_compiler=no
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1914 $as_echo "$ac_header_compiler" >&6; }
1916 # Is the header present?
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1918 $as_echo_n "checking $2 presence... " >&6; }
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1923 if ac_fn_c_try_cpp "$LINENO"; then :
1924 ac_header_preproc=yes
1926 ac_header_preproc=no
1928 rm -f conftest.err conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1930 $as_echo "$ac_header_preproc" >&6; }
1932 # So? What about this header?
1933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1936 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1938 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1942 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1944 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1946 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1948 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1950 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1956 $as_echo_n "(cached) " >&6
1958 eval "$3=\$ac_header_compiler"
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966 } # ac_fn_c_check_header_mongrel
1968 # ac_fn_c_try_run LINENO
1969 # ----------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1971 # that executables *can* be run.
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if { { ac_try="$ac_link"
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_link") 2>&5
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1986 { { case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_try") 2>&5
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; }; }; then :
1998 $as_echo "$as_me: program exited with status $ac_status" >&5
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2002 ac_retval=$ac_status
2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2011 # -------------------------------------------------------
2012 # Tests whether HEADER exists and can be compiled using the include files in
2013 # INCLUDES, setting the cache variable VAR accordingly.
2014 ac_fn_c_check_header_compile ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2020 $as_echo_n "(cached) " >&6
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2027 if ac_fn_c_try_compile "$LINENO"; then :
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039 } # ac_fn_c_check_header_compile
2041 # ac_fn_c_try_link LINENO
2042 # -----------------------
2043 # Try to link conftest.$ac_ext, and return whether this succeeded.
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 rm -f conftest.$ac_objext conftest$ac_exeext
2048 if { { ac_try="$ac_link"
2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051 *) ac_try_echo=$ac_try;;
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055 (eval "$ac_link") 2>conftest.err
2057 if test -s conftest.err; then
2058 grep -v '^ *+' conftest.err >conftest.er1
2059 cat conftest.er1 >&5
2060 mv -f conftest.er1 conftest.err
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; } && {
2064 test -z "$ac_c_werror_flag" ||
2065 test ! -s conftest.err
2066 } && test -s conftest$ac_exeext && {
2067 test "$cross_compiling" = yes ||
2068 $as_test_x conftest$ac_exeext
2072 $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2077 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2078 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2079 # interfere with the next link command; also delete a directory that is
2080 # left behind by Apple's compiler. We do this before executing the actions.
2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2085 } # ac_fn_c_try_link
2087 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2088 # --------------------------------------------
2089 # Tries to find the compile-time value of EXPR in a program that includes
2090 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2092 ac_fn_c_compute_int ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 if test "$cross_compiling" = yes; then
2096 # Depending upon the size, compute the lo and hi bounds.
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 static int test_array [1 - 2 * !(($2) >= 0)];
2110 if ac_fn_c_try_compile "$LINENO"; then :
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2119 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_hi=$ac_mid; break
2129 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2130 if test $ac_lo -le $ac_mid; then
2134 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2145 static int test_array [1 - 2 * !(($2) < 0)];
2152 if ac_fn_c_try_compile "$LINENO"; then :
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2161 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169 ac_lo=$ac_mid; break
2171 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2172 if test $ac_mid -le $ac_hi; then
2176 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 # Binary search between lo and hi bounds.
2187 while test "x$ac_lo" != "x$ac_hi"; do
2188 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2195 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2202 if ac_fn_c_try_compile "$LINENO"; then :
2205 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2217 static long int longval () { return $2; }
2218 static unsigned long int ulongval () { return $2; }
2225 FILE *f = fopen ("conftest.val", "w");
2230 long int i = longval ();
2233 fprintf (f, "%ld", i);
2237 unsigned long int i = ulongval ();
2240 fprintf (f, "%lu", i);
2242 /* Do not output a trailing newline, as this causes \r\n confusion
2243 on some platforms. */
2244 return ferror (f) || fclose (f) != 0;
2250 if ac_fn_c_try_run "$LINENO"; then :
2251 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2256 conftest.$ac_objext conftest.beam conftest.$ac_ext
2260 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2263 } # ac_fn_c_compute_int
2265 # ac_fn_c_check_decl LINENO SYMBOL VAR
2266 # ------------------------------------
2267 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2268 ac_fn_c_check_decl ()
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 as_decl_name=`echo $2|sed 's/ *(.*//'`
2272 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2274 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2275 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2276 $as_echo_n "(cached) " >&6
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2284 #ifndef $as_decl_name
2286 (void) $as_decl_use;
2288 (void) $as_decl_name;
2296 if ac_fn_c_try_compile "$LINENO"; then :
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2308 } # ac_fn_c_check_decl
2310 # ac_fn_c_check_func LINENO FUNC VAR
2311 # ----------------------------------
2312 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2313 ac_fn_c_check_func ()
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317 $as_echo_n "checking for $2... " >&6; }
2318 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2319 $as_echo_n "(cached) " >&6
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2323 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2325 #define $2 innocuous_$2
2327 /* System header to define __stub macros and hopefully few prototypes,
2328 which can conflict with char $2 (); below.
2329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2330 <limits.h> exists even on freestanding compilers. */
2333 # include <limits.h>
2335 # include <assert.h>
2340 /* Override any GCC internal prototype to avoid an error.
2341 Use char because int might match the return type of a GCC
2342 builtin and then its argument prototype would still apply. */
2347 /* The GNU C library defines this for functions which it implements
2348 to always fail with ENOSYS. Some functions are actually named
2349 something starting with __ and the normal name is an alias. */
2350 #if defined __stub_$2 || defined __stub___$2
2362 if ac_fn_c_try_link "$LINENO"; then :
2367 rm -f core conftest.err conftest.$ac_objext \
2368 conftest$ac_exeext conftest.$ac_ext
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372 $as_echo "$ac_res" >&6; }
2373 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375 } # ac_fn_c_check_func
2377 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2378 # ----------------------------------------------------
2379 # Tries to find if the field MEMBER exists in type AGGR, after including
2380 # INCLUDES, setting cache variable VAR accordingly.
2381 ac_fn_c_check_member ()
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2385 $as_echo_n "checking for $2.$3... " >&6; }
2386 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2387 $as_echo_n "(cached) " >&6
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2402 if ac_fn_c_try_compile "$LINENO"; then :
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2412 if (sizeof ac_aggr.$3)
2418 if ac_fn_c_try_compile "$LINENO"; then :
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429 $as_echo "$ac_res" >&6; }
2430 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2432 } # ac_fn_c_check_member
2434 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2435 # -------------------------------------------
2436 # Tests whether TYPE exists after having included INCLUDES, setting cache
2437 # variable VAR accordingly.
2438 ac_fn_c_check_type ()
2440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2442 $as_echo_n "checking for $2... " >&6; }
2443 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2444 $as_echo_n "(cached) " >&6
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2459 if ac_fn_c_try_compile "$LINENO"; then :
2460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2472 if ac_fn_c_try_compile "$LINENO"; then :
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2483 $as_echo "$ac_res" >&6; }
2484 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2486 } # ac_fn_c_check_type
2487 cat >config.log <<_ACEOF
2488 This file contains any messages produced by compilers while
2489 running configure, to aid debugging if configure makes a mistake.
2491 It was created by $as_me, which was
2492 generated by GNU Autoconf 2.64. Invocation command line was
2504 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2505 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2506 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2507 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2508 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2510 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2511 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2513 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2514 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2515 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2516 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2517 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2518 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2519 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 $as_echo "PATH: $as_dir"
2544 # Keep a trace of the command line.
2545 # Strip out --no-create and --no-recursion so they do not pile up.
2546 # Strip out --silent because we don't want to record it for future runs.
2547 # Also quote any args containing shell meta-characters.
2548 # Make two passes to allow for proper duplicate-argument suppression.
2552 ac_must_keep_next=false
2558 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2560 | -silent | --silent | --silen | --sile | --sil)
2563 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2566 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2568 as_fn_append ac_configure_args1 " '$ac_arg'"
2569 if test $ac_must_keep_next = true; then
2570 ac_must_keep_next=false # Got value, back to normal.
2573 *=* | --config-cache | -C | -disable-* | --disable-* \
2574 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2575 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2576 | -with-* | --with-* | -without-* | --without-* | --x)
2577 case "$ac_configure_args0 " in
2578 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2581 -* ) ac_must_keep_next=true ;;
2584 as_fn_append ac_configure_args " '$ac_arg'"
2589 { ac_configure_args0=; unset ac_configure_args0;}
2590 { ac_configure_args1=; unset ac_configure_args1;}
2592 # When interrupted or exit'd, cleanup temporary files, and complete
2593 # config.log. We remove comments because anyway the quotes in there
2594 # would cause problems or look ugly.
2595 # WARNING: Use '\'' to represent an apostrophe within the trap.
2596 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2597 trap 'exit_status=$?
2598 # Save into config.log some information that might help in debugging.
2603 ## ---------------- ##
2604 ## Cache variables. ##
2605 ## ---------------- ##
2608 # The following way of writing the cache mishandles newlines in values,
2610 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2611 eval ac_val=\$$ac_var
2615 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2616 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2619 _ | IFS | as_nl) ;; #(
2620 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2621 *) { eval $ac_var=; unset $ac_var;} ;;
2626 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2627 *${as_nl}ac_space=\ *)
2629 "s/'\''/'\''\\\\'\'''\''/g;
2630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2641 ## ----------------- ##
2642 ## Output variables. ##
2643 ## ----------------- ##
2646 for ac_var in $ac_subst_vars
2648 eval ac_val=\$$ac_var
2650 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2652 $as_echo "$ac_var='\''$ac_val'\''"
2656 if test -n "$ac_subst_files"; then
2658 ## ------------------- ##
2659 ## File substitutions. ##
2660 ## ------------------- ##
2663 for ac_var in $ac_subst_files
2665 eval ac_val=\$$ac_var
2667 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2669 $as_echo "$ac_var='\''$ac_val'\''"
2674 if test -s confdefs.h; then
2684 test "$ac_signal" != 0 &&
2685 $as_echo "$as_me: caught signal $ac_signal"
2686 $as_echo "$as_me: exit $exit_status"
2688 rm -f core *.core core.conftest.* &&
2689 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2692 for ac_signal in 1 2 13 15; do
2693 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2697 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2698 rm -f -r conftest* confdefs.h
2700 $as_echo "/* confdefs.h */" > confdefs.h
2702 # Predefined preprocessor variables.
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_NAME "$PACKAGE_NAME"
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2716 cat >>confdefs.h <<_ACEOF
2717 #define PACKAGE_STRING "$PACKAGE_STRING"
2720 cat >>confdefs.h <<_ACEOF
2721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2724 cat >>confdefs.h <<_ACEOF
2725 #define PACKAGE_URL "$PACKAGE_URL"
2729 # Let the site file select an alternate cache file if it wants to.
2730 # Prefer an explicitly selected file to automatically selected ones.
2733 if test -n "$CONFIG_SITE"; then
2734 ac_site_file1=$CONFIG_SITE
2735 elif test "x$prefix" != xNONE; then
2736 ac_site_file1=$prefix/share/config.site
2737 ac_site_file2=$prefix/etc/config.site
2739 ac_site_file1=$ac_default_prefix/share/config.site
2740 ac_site_file2=$ac_default_prefix/etc/config.site
2742 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2744 test "x$ac_site_file" = xNONE && continue
2745 if test -r "$ac_site_file"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2747 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2748 sed 's/^/| /' "$ac_site_file" >&5
2753 if test -r "$cache_file"; then
2754 # Some versions of bash will fail to source /dev/null (special
2755 # files actually), so we avoid doing that.
2756 if test -f "$cache_file"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2758 $as_echo "$as_me: loading cache $cache_file" >&6;}
2760 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2761 *) . "./$cache_file";;
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2766 $as_echo "$as_me: creating cache $cache_file" >&6;}
2770 gl_header_list="$gl_header_list stdint.h"
2771 gl_header_list="$gl_header_list wchar.h"
2772 gl_header_list="$gl_header_list inttypes.h"
2773 gl_header_list="$gl_header_list sys/mman.h"
2774 gl_func_list="$gl_func_list mprotect"
2775 gl_func_list="$gl_func_list memchr"
2776 gl_header_list="$gl_header_list stddef.h"
2777 gl_header_list="$gl_header_list string.h"
2778 # Check that the precious variables saved in the cache have kept the same
2780 ac_cache_corrupted=false
2781 for ac_var in $ac_precious_vars; do
2782 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2783 eval ac_new_set=\$ac_env_${ac_var}_set
2784 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2785 eval ac_new_val=\$ac_env_${ac_var}_value
2786 case $ac_old_set,$ac_new_set in
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2789 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2790 ac_cache_corrupted=: ;;
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2793 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2794 ac_cache_corrupted=: ;;
2797 if test "x$ac_old_val" != "x$ac_new_val"; then
2798 # differences in whitespace do not lead to failure.
2799 ac_old_val_w=`echo x $ac_old_val`
2800 ac_new_val_w=`echo x $ac_new_val`
2801 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2803 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2804 ac_cache_corrupted=:
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2807 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2808 eval $ac_var=\$ac_old_val
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2811 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2813 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2816 # Pass precious variables to config.status.
2817 if test "$ac_new_set" = set; then
2819 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2820 *) ac_arg=$ac_var=$ac_new_val ;;
2822 case " $ac_configure_args " in
2823 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2824 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2828 if $ac_cache_corrupted; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2832 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2833 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2835 ## -------------------- ##
2836 ## Main body of script. ##
2837 ## -------------------- ##
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849 ac_config_headers="$ac_config_headers config.h:config.in"
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2853 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2854 # Check whether --enable-maintainer-mode was given.
2855 if test "${enable_maintainer_mode+set}" = set; then :
2856 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2858 USE_MAINTAINER_MODE=no
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2862 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2863 if test $USE_MAINTAINER_MODE = yes; then
2864 MAINTAINER_MODE_TRUE=
2865 MAINTAINER_MODE_FALSE='#'
2867 MAINTAINER_MODE_TRUE='#'
2868 MAINTAINER_MODE_FALSE=
2871 MAINT=$MAINTAINER_MODE_TRUE
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 if test -n "$ac_tool_prefix"; then
2881 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2882 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if test "${ac_cv_prog_CC+set}" = set; then :
2886 $as_echo_n "(cached) " >&6
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2919 if test -z "$ac_cv_prog_CC"; then
2921 # Extract the first word of "gcc", so it can be a program name with args.
2922 set dummy gcc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2926 $as_echo_n "(cached) " >&6
2928 if test -n "$ac_ct_CC"; then
2929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938 ac_cv_prog_ac_ct_CC="gcc"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949 if test -n "$ac_ct_CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2951 $as_echo "$ac_ct_CC" >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2957 if test "x$ac_ct_CC" = x; then
2960 case $cross_compiling:$ac_tool_warned in
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2964 ac_tool_warned=yes ;;
2972 if test -z "$CC"; then
2973 if test -n "$ac_tool_prefix"; then
2974 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2975 set dummy ${ac_tool_prefix}cc; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if test "${ac_cv_prog_CC+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_CC="${ac_tool_prefix}cc"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 if test -n "$CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3013 if test -z "$CC"; then
3014 # Extract the first word of "cc", so it can be a program name with args.
3015 set dummy cc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if test "${ac_cv_prog_CC+set}" = set; then :
3019 $as_echo_n "(cached) " >&6
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3033 ac_prog_rejected=yes
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 if test $ac_prog_rejected = yes; then
3045 # We found a bogon in the path, so make sure we never use it.
3046 set dummy $ac_cv_prog_CC
3048 if test $# != 0; then
3049 # We chose a different compiler from the bogus one.
3050 # However, it has the same basename, so the bogon will be chosen
3051 # first if we set CC to just the basename; use the full file name.
3053 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3059 if test -n "$CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3069 if test -z "$CC"; then
3070 if test -n "$ac_tool_prefix"; then
3071 for ac_prog in cl.exe
3073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if test "${ac_cv_prog_CC+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3080 if test -n "$CC"; then
3081 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 if test -n "$CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3110 test -n "$CC" && break
3113 if test -z "$CC"; then
3115 for ac_prog in cl.exe
3117 # Extract the first word of "$ac_prog", so it can be a program name with args.
3118 set dummy $ac_prog; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3122 $as_echo_n "(cached) " >&6
3124 if test -n "$ac_ct_CC"; then
3125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134 ac_cv_prog_ac_ct_CC="$ac_prog"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3145 if test -n "$ac_ct_CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3147 $as_echo "$ac_ct_CC" >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3154 test -n "$ac_ct_CC" && break
3157 if test "x$ac_ct_CC" = x; then
3160 case $cross_compiling:$ac_tool_warned in
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164 ac_tool_warned=yes ;;
3173 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error "no acceptable C compiler found in \$PATH
3176 See \`config.log' for more details." "$LINENO" 5; }
3178 # Provide some information about the compiler.
3179 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3182 for ac_option in --version -v -V -qversion; do
3183 { { ac_try="$ac_compiler $ac_option >&5"
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3192 if test -s conftest.err; then
3194 ... rest of stderr output deleted ...
3195 10q' conftest.err >conftest.er1
3196 cat conftest.er1 >&5
3197 rm -f conftest.er1 conftest.err
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3214 ac_clean_files_save=$ac_clean_files
3215 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3216 # Try to create an executable without -o first, disregard a.out.
3217 # It will help us diagnose broken compilers, and finding out an intuition
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3220 $as_echo_n "checking for C compiler default output file name... " >&6; }
3221 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3223 # The possible output files:
3224 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3227 for ac_file in $ac_files
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3236 if { { ac_try="$ac_link_default"
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_link_default") 2>&5
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }; then :
3247 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3248 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3249 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3250 # so that the user can short-circuit this test for compilers unknown to
3252 for ac_file in $ac_files ''
3254 test -f "$ac_file" || continue
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3259 # We found the default executable, but exeext='' is most
3263 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3265 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3267 # We set ac_cv_exeext here because the later test for it is not
3268 # safe: cross compilers may not add the suffix if given an `-o'
3269 # argument, so we may need to know it at that point already.
3270 # Even if this section looks crufty: it has the advantage of
3277 test "$ac_cv_exeext" = no && ac_cv_exeext=
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3283 $as_echo "$ac_file" >&6; }
3284 if test -z "$ac_file"; then :
3285 $as_echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 { as_fn_set_status 77
3291 as_fn_error "C compiler cannot create executables
3292 See \`config.log' for more details." "$LINENO" 5; }; }
3294 ac_exeext=$ac_cv_exeext
3296 # Check that the compiler produces executables we can run. If not, either
3297 # the compiler is broken, or we cross compile.
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3299 $as_echo_n "checking whether the C compiler works... " >&6; }
3300 # If not cross compiling, check that we can run a simple program.
3301 if test "$cross_compiling" != yes; then
3302 if { ac_try='./$ac_file'
3303 { { case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_try") 2>&5
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; }; then
3315 if test "$cross_compiling" = maybe; then
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error "cannot run C compiled programs.
3321 If you meant to cross compile, use \`--host'.
3322 See \`config.log' for more details." "$LINENO" 5; }
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3327 $as_echo "yes" >&6; }
3329 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3330 ac_clean_files=$ac_clean_files_save
3331 # Check that the compiler produces executables we can run. If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3334 $as_echo_n "checking whether we are cross compiling... " >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3336 $as_echo "$cross_compiling" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3339 $as_echo_n "checking for suffix of executables... " >&6; }
3340 if { { ac_try="$ac_link"
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347 (eval "$ac_link") 2>&5
3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }; then :
3351 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3352 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3353 # work properly (i.e., refer to `conftest.exe'), while it won't with
3355 for ac_file in conftest.exe conftest conftest.*; do
3356 test -f "$ac_file" || continue
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 as_fn_error "cannot compute suffix of executables: cannot compile and link
3368 See \`config.log' for more details." "$LINENO" 5; }
3370 rm -f conftest$ac_cv_exeext
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3372 $as_echo "$ac_cv_exeext" >&6; }
3374 rm -f conftest.$ac_ext
3375 EXEEXT=$ac_cv_exeext
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3378 $as_echo_n "checking for suffix of object files... " >&6; }
3379 if test "${ac_cv_objext+set}" = set; then :
3380 $as_echo_n "(cached) " >&6
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3393 rm -f conftest.o conftest.obj
3394 if { { ac_try="$ac_compile"
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400 $as_echo "$ac_try_echo"; } >&5
3401 (eval "$ac_compile") 2>&5
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }; then :
3405 for ac_file in conftest.o conftest.obj conftest.*; do
3406 test -f "$ac_file" || continue;
3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3409 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3414 $as_echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419 as_fn_error "cannot compute suffix of object files: cannot compile
3420 See \`config.log' for more details." "$LINENO" 5; }
3422 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3425 $as_echo "$ac_cv_objext" >&6; }
3426 OBJEXT=$ac_cv_objext
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3429 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3430 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3431 $as_echo_n "(cached) " >&6
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3447 if ac_fn_c_try_compile "$LINENO"; then :
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3457 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3458 if test $ac_compiler_gnu = yes; then
3463 ac_test_CFLAGS=${CFLAGS+set}
3464 ac_save_CFLAGS=$CFLAGS
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3466 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3467 if test "${ac_cv_prog_cc_g+set}" = set; then :
3468 $as_echo_n "(cached) " >&6
3470 ac_save_c_werror_flag=$ac_c_werror_flag
3471 ac_c_werror_flag=yes
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3485 if ac_fn_c_try_compile "$LINENO"; then :
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3500 if ac_fn_c_try_compile "$LINENO"; then :
3503 ac_c_werror_flag=$ac_save_c_werror_flag
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3516 if ac_fn_c_try_compile "$LINENO"; then :
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 ac_c_werror_flag=$ac_save_c_werror_flag
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3527 $as_echo "$ac_cv_prog_cc_g" >&6; }
3528 if test "$ac_test_CFLAGS" = set; then
3529 CFLAGS=$ac_save_CFLAGS
3530 elif test $ac_cv_prog_cc_g = yes; then
3531 if test "$GCC" = yes; then
3537 if test "$GCC" = yes; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3544 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3545 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3546 $as_echo_n "(cached) " >&6
3548 ac_cv_prog_cc_c89=no
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3554 #include <sys/types.h>
3555 #include <sys/stat.h>
3556 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3557 struct buf { int x; };
3558 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3559 static char *e (p, i)
3565 static char *f (char * (*g) (char **, int), char **p, ...)
3570 s = g (p, va_arg (v,int));
3575 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3576 function prototypes and stuff, but not '\xHH' hex character constants.
3577 These don't provoke an error unfortunately, instead are silently treated
3578 as 'x'. The following induces an error, until -std is added to get
3579 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3580 array size at least. It's necessary to write '\x00'==0 to get something
3581 that's true only with -std. */
3582 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3584 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3585 inside strings and character constants. */
3587 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3589 int test (int i, double x);
3590 struct s1 {int (*f) (int a);};
3591 struct s2 {int (*f) (double a);};
3592 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3598 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3603 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3604 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3606 CC="$ac_save_CC $ac_arg"
3607 if ac_fn_c_try_compile "$LINENO"; then :
3608 ac_cv_prog_cc_c89=$ac_arg
3610 rm -f core conftest.err conftest.$ac_objext
3611 test "x$ac_cv_prog_cc_c89" != "xno" && break
3613 rm -f conftest.$ac_ext
3618 case "x$ac_cv_prog_cc_c89" in
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3621 $as_echo "none needed" >&6; } ;;
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3624 $as_echo "unsupported" >&6; } ;;
3626 CC="$CC $ac_cv_prog_cc_c89"
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3628 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3630 if test "x$ac_cv_prog_cc_c89" != xno; then :
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3642 for ac_t in install-sh install.sh shtool; do
3643 if test -f "$ac_dir/$ac_t"; then
3645 ac_install_sh="$ac_aux_dir/$ac_t -c"
3650 if test -z "$ac_aux_dir"; then
3651 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3654 # These three variables are undocumented and unsupported,
3655 # and are intended to be withdrawn in a future Autoconf release.
3656 # They can cause serious problems if a builder's source tree is in a directory
3657 # whose full name contains unusual characters.
3658 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3659 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3660 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3663 # Make sure we can run config.sub.
3664 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3665 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3668 $as_echo_n "checking build system type... " >&6; }
3669 if test "${ac_cv_build+set}" = set; then :
3670 $as_echo_n "(cached) " >&6
3672 ac_build_alias=$build_alias
3673 test "x$ac_build_alias" = x &&
3674 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3675 test "x$ac_build_alias" = x &&
3676 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3677 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3678 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3682 $as_echo "$ac_cv_build" >&6; }
3683 case $ac_cv_build in
3685 *) as_fn_error "invalid value of canonical build" "$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 $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3702 $as_echo_n "checking host system type... " >&6; }
3703 if test "${ac_cv_host+set}" = set; then :
3704 $as_echo_n "(cached) " >&6
3706 if test "x$host_alias" = x; then
3707 ac_cv_host=$ac_cv_build
3709 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3710 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3715 $as_echo "$ac_cv_host" >&6; }
3718 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3721 ac_save_IFS=$IFS; IFS='-'
3727 # Remember, the first character of IFS is used to create $*,
3728 # except with old shells:
3731 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3741 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3742 # On Suns, sometimes $CPP names a directory.
3743 if test -n "$CPP" && test -d "$CPP"; then
3746 if test -z "$CPP"; then
3747 if test "${ac_cv_prog_CPP+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3750 # Double quotes because CPP needs to be expanded
3751 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3754 for ac_c_preproc_warn_flag in '' yes
3756 # Use a header file that comes with gcc, so configuring glibc
3757 # with a fresh cross-compiler works.
3758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3759 # <limits.h> exists even on freestanding compilers.
3760 # On the NeXT, cc -E runs the code through the compiler's parser,
3761 # not just through cpp. "Syntax error" is here to catch this case.
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3765 # include <limits.h>
3767 # include <assert.h>
3771 if ac_fn_c_try_cpp "$LINENO"; then :
3774 # Broken: fails on valid input.
3777 rm -f conftest.err conftest.$ac_ext
3779 # OK, works on sane cases. Now check whether nonexistent headers
3780 # can be detected and how.
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783 #include <ac_nonexistent.h>
3785 if ac_fn_c_try_cpp "$LINENO"; then :
3786 # Broken: success on invalid input.
3789 # Passes both tests.
3793 rm -f conftest.err conftest.$ac_ext
3796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3797 rm -f conftest.err conftest.$ac_ext
3798 if $ac_preproc_ok; then :
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3811 $as_echo "$CPP" >&6; }
3813 for ac_c_preproc_warn_flag in '' yes
3815 # Use a header file that comes with gcc, so configuring glibc
3816 # with a fresh cross-compiler works.
3817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 # <limits.h> exists even on freestanding compilers.
3819 # On the NeXT, cc -E runs the code through the compiler's parser,
3820 # not just through cpp. "Syntax error" is here to catch this case.
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3824 # include <limits.h>
3826 # include <assert.h>
3830 if ac_fn_c_try_cpp "$LINENO"; then :
3833 # Broken: fails on valid input.
3836 rm -f conftest.err conftest.$ac_ext
3838 # OK, works on sane cases. Now check whether nonexistent headers
3839 # can be detected and how.
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <ac_nonexistent.h>
3844 if ac_fn_c_try_cpp "$LINENO"; then :
3845 # Broken: success on invalid input.
3848 # Passes both tests.
3852 rm -f conftest.err conftest.$ac_ext
3855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3856 rm -f conftest.err conftest.$ac_ext
3857 if $ac_preproc_ok; then :
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3863 See \`config.log' for more details." "$LINENO" 5; }
3867 ac_cpp='$CPP $CPPFLAGS'
3868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3874 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3875 if test "${ac_cv_path_GREP+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3878 if test -z "$GREP"; then
3879 ac_path_GREP_found=false
3880 # Loop through the user's path and test for each of PROGNAME-LIST
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3885 test -z "$as_dir" && as_dir=.
3886 for ac_prog in grep ggrep; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3889 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3890 # Check for GNU ac_path_GREP and select it if it is found.
3891 # Check for GNU $ac_path_GREP
3892 case `"$ac_path_GREP" --version 2>&1` in
3894 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3897 $as_echo_n 0123456789 >"conftest.in"
3900 cat "conftest.in" "conftest.in" >"conftest.tmp"
3901 mv "conftest.tmp" "conftest.in"
3902 cp "conftest.in" "conftest.nl"
3903 $as_echo 'GREP' >> "conftest.nl"
3904 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906 as_fn_arith $ac_count + 1 && ac_count=$as_val
3907 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3908 # Best one so far, save it but keep looking for a better one
3909 ac_cv_path_GREP="$ac_path_GREP"
3910 ac_path_GREP_max=$ac_count
3912 # 10*(2^10) chars as input seems more than enough
3913 test $ac_count -gt 10 && break
3915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3918 $ac_path_GREP_found && break 3
3923 if test -z "$ac_cv_path_GREP"; then
3924 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3927 ac_cv_path_GREP=$GREP
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3932 $as_echo "$ac_cv_path_GREP" >&6; }
3933 GREP="$ac_cv_path_GREP"
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3937 $as_echo_n "checking for egrep... " >&6; }
3938 if test "${ac_cv_path_EGREP+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3941 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3942 then ac_cv_path_EGREP="$GREP -E"
3944 if test -z "$EGREP"; then
3945 ac_path_EGREP_found=false
3946 # Loop through the user's path and test for each of PROGNAME-LIST
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3951 test -z "$as_dir" && as_dir=.
3952 for ac_prog in egrep; do
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3955 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3956 # Check for GNU ac_path_EGREP and select it if it is found.
3957 # Check for GNU $ac_path_EGREP
3958 case `"$ac_path_EGREP" --version 2>&1` in
3960 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3963 $as_echo_n 0123456789 >"conftest.in"
3966 cat "conftest.in" "conftest.in" >"conftest.tmp"
3967 mv "conftest.tmp" "conftest.in"
3968 cp "conftest.in" "conftest.nl"
3969 $as_echo 'EGREP' >> "conftest.nl"
3970 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3972 as_fn_arith $ac_count + 1 && ac_count=$as_val
3973 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3974 # Best one so far, save it but keep looking for a better one
3975 ac_cv_path_EGREP="$ac_path_EGREP"
3976 ac_path_EGREP_max=$ac_count
3978 # 10*(2^10) chars as input seems more than enough
3979 test $ac_count -gt 10 && break
3981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3984 $ac_path_EGREP_found && break 3
3989 if test -z "$ac_cv_path_EGREP"; then
3990 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3993 ac_cv_path_EGREP=$EGREP
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3999 $as_echo "$ac_cv_path_EGREP" >&6; }
4000 EGREP="$ac_cv_path_EGREP"
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4004 $as_echo_n "checking for ANSI C header files... " >&6; }
4005 if test "${ac_cv_header_stdc+set}" = set; then :
4006 $as_echo_n "(cached) " >&6
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4023 if ac_fn_c_try_compile "$LINENO"; then :
4024 ac_cv_header_stdc=yes
4026 ac_cv_header_stdc=no
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 if test $ac_cv_header_stdc = yes; then
4031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4038 $EGREP "memchr" >/dev/null 2>&1; then :
4041 ac_cv_header_stdc=no
4047 if test $ac_cv_header_stdc = yes; then
4048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4055 $EGREP "free" >/dev/null 2>&1; then :
4058 ac_cv_header_stdc=no
4064 if test $ac_cv_header_stdc = yes; then
4065 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4066 if test "$cross_compiling" = yes; then :
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4073 #if ((' ' & 0x0FF) == 0x020)
4074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4077 # define ISLOWER(c) \
4078 (('a' <= (c) && (c) <= 'i') \
4079 || ('j' <= (c) && (c) <= 'r') \
4080 || ('s' <= (c) && (c) <= 'z'))
4081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4089 for (i = 0; i < 256; i++)
4090 if (XOR (islower (i), ISLOWER (i))
4091 || toupper (i) != TOUPPER (i))
4096 if ac_fn_c_try_run "$LINENO"; then :
4099 ac_cv_header_stdc=no
4101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4102 conftest.$ac_objext conftest.beam conftest.$ac_ext
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4108 $as_echo "$ac_cv_header_stdc" >&6; }
4109 if test $ac_cv_header_stdc = yes; then
4111 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4115 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4116 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4117 inttypes.h stdint.h unistd.h
4119 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4120 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4122 eval as_val=\$$as_ac_Header
4123 if test "x$as_val" = x""yes; then :
4124 cat >>confdefs.h <<_ACEOF
4125 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4136 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4137 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4144 if test "$MINIX" = yes; then
4146 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4149 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4152 $as_echo "#define _MINIX 1" >>confdefs.h
4159 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4166 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4167 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4173 # define __EXTENSIONS__ 1
4174 $ac_includes_default
4183 if ac_fn_c_try_compile "$LINENO"; then :
4184 ac_cv_safe_to_define___extensions__=yes
4186 ac_cv_safe_to_define___extensions__=no
4188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4191 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4192 test $ac_cv_safe_to_define___extensions__ = yes &&
4193 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4195 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4197 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4199 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4201 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4204 if test -n "$ac_tool_prefix"; then
4205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4210 $as_echo_n "(cached) " >&6
4212 if test -n "$RANLIB"; then
4213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 RANLIB=$ac_cv_prog_RANLIB
4233 if test -n "$RANLIB"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4235 $as_echo "$RANLIB" >&6; }
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4243 if test -z "$ac_cv_prog_RANLIB"; then
4244 ac_ct_RANLIB=$RANLIB
4245 # Extract the first word of "ranlib", so it can be a program name with args.
4246 set dummy ranlib; ac_word=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4252 if test -n "$ac_ct_RANLIB"; then
4253 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4262 ac_cv_prog_ac_ct_RANLIB="ranlib"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4273 if test -n "$ac_ct_RANLIB"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4275 $as_echo "$ac_ct_RANLIB" >&6; }
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4281 if test "x$ac_ct_RANLIB" = x; then
4284 case $cross_compiling:$ac_tool_warned in
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4288 ac_tool_warned=yes ;;
4290 RANLIB=$ac_ct_RANLIB
4293 RANLIB="$ac_cv_prog_RANLIB"
4304 # Code from module arg-nonnull:
4305 # Code from module c++defs:
4306 # Code from module extensions:
4308 # Code from module include_next:
4309 # Code from module inttypes:
4310 # Code from module memchr:
4311 # Code from module memmem:
4312 # Code from module memmem-simple:
4313 # Code from module multiarch:
4314 # Code from module stddef:
4315 # Code from module stdint:
4316 # Code from module string:
4317 # Code from module warn-on-use:
4318 # Code from module wchar:
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4321 $as_echo_n "checking target system type... " >&6; }
4322 if test "${ac_cv_target+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4325 if test "x$target_alias" = x; then
4326 ac_cv_target=$ac_cv_host
4328 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4329 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4334 $as_echo "$ac_cv_target" >&6; }
4335 case $ac_cv_target in
4337 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4339 target=$ac_cv_target
4340 ac_save_IFS=$IFS; IFS='-'
4346 # Remember, the first character of IFS is used to create $*,
4347 # except with old shells:
4350 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4353 # The aliases save the names the user supplied, while $host etc.
4354 # will get canonicalized.
4355 test -n "$target_alias" &&
4356 test "$program_prefix$program_suffix$program_transform_name" = \
4358 program_prefix=${target_alias}-
4360 # The tests for host and target for $enable_largefile require
4365 # As the $enable_largefile decision depends on --enable-plugins we must set it
4366 # even in directories otherwise not depending on the $plugins option.
4369 # Check whether --enable-plugins was given.
4370 if test "${enable_plugins+set}" = set; then :
4371 enableval=$enable_plugins; case "${enableval}" in
4372 yes | "") plugins=yes ;;
4383 sparc-*-solaris*|i[3-7]86-*-solaris*)
4384 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4385 # are mutually exclusive; and without procfs support, the bfd/ elf module
4386 # cannot provide certain routines such as elfcore_write_prpsinfo
4387 # or elfcore_write_prstatus. So unless the user explicitly requested
4388 # large-file support through the --enable-largefile switch, disable
4389 # large-file support in favor of procfs support.
4390 test "${target}" = "${host}" -a "x$plugins" = xno \
4391 && : ${enable_largefile="no"}
4395 # Check whether --enable-largefile was given.
4396 if test "${enable_largefile+set}" = set; then :
4397 enableval=$enable_largefile;
4400 if test "$enable_largefile" != no; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4403 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4404 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4407 ac_cv_sys_largefile_CC=no
4408 if test "$GCC" != yes; then
4411 # IRIX 6.2 and later do not support large files by default,
4412 # so use the C compiler's -n32 option if that helps.
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415 #include <sys/types.h>
4416 /* Check that off_t can represent 2**63 - 1 correctly.
4417 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4418 since some C++ compilers masquerading as C compilers
4419 incorrectly reject 9223372036854775807. */
4420 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4421 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4422 && LARGE_OFF_T % 2147483647 == 1)
4432 if ac_fn_c_try_compile "$LINENO"; then :
4435 rm -f core conftest.err conftest.$ac_objext
4437 if ac_fn_c_try_compile "$LINENO"; then :
4438 ac_cv_sys_largefile_CC=' -n32'; break
4440 rm -f core conftest.err conftest.$ac_objext
4444 rm -f conftest.$ac_ext
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4448 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4449 if test "$ac_cv_sys_largefile_CC" != no; then
4450 CC=$CC$ac_cv_sys_largefile_CC
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4454 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4455 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 #include <sys/types.h>
4462 /* Check that off_t can represent 2**63 - 1 correctly.
4463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4464 since some C++ compilers masquerading as C compilers
4465 incorrectly reject 9223372036854775807. */
4466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4468 && LARGE_OFF_T % 2147483647 == 1)
4478 if ac_fn_c_try_compile "$LINENO"; then :
4479 ac_cv_sys_file_offset_bits=no; break
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4484 #define _FILE_OFFSET_BITS 64
4485 #include <sys/types.h>
4486 /* Check that off_t can represent 2**63 - 1 correctly.
4487 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4488 since some C++ compilers masquerading as C compilers
4489 incorrectly reject 9223372036854775807. */
4490 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4491 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4492 && LARGE_OFF_T % 2147483647 == 1)
4502 if ac_fn_c_try_compile "$LINENO"; then :
4503 ac_cv_sys_file_offset_bits=64; break
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 ac_cv_sys_file_offset_bits=unknown
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4511 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4512 case $ac_cv_sys_file_offset_bits in #(
4515 cat >>confdefs.h <<_ACEOF
4516 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4521 if test $ac_cv_sys_file_offset_bits = unknown; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4523 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4524 if test "${ac_cv_sys_large_files+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530 #include <sys/types.h>
4531 /* Check that off_t can represent 2**63 - 1 correctly.
4532 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4533 since some C++ compilers masquerading as C compilers
4534 incorrectly reject 9223372036854775807. */
4535 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4536 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4537 && LARGE_OFF_T % 2147483647 == 1)
4547 if ac_fn_c_try_compile "$LINENO"; then :
4548 ac_cv_sys_large_files=no; break
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4553 #define _LARGE_FILES 1
4554 #include <sys/types.h>
4555 /* Check that off_t can represent 2**63 - 1 correctly.
4556 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4557 since some C++ compilers masquerading as C compilers
4558 incorrectly reject 9223372036854775807. */
4559 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4560 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4561 && LARGE_OFF_T % 2147483647 == 1)
4571 if ac_fn_c_try_compile "$LINENO"; then :
4572 ac_cv_sys_large_files=1; break
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 ac_cv_sys_large_files=unknown
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4580 $as_echo "$ac_cv_sys_large_files" >&6; }
4581 case $ac_cv_sys_large_files in #(
4584 cat >>confdefs.h <<_ACEOF
4585 #define _LARGE_FILES $ac_cv_sys_large_files
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4598 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4599 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4602 am_cv_prog_cc_stdc=no
4604 # Don't try gcc -ansi; that turns off useful extensions and
4605 # breaks some systems' header files.
4606 # AIX -qlanglvl=ansi
4607 # Ultrix and OSF/1 -std1
4608 # HP-UX 10.20 and later -Ae
4609 # HP-UX older versions -Aa -D_HPUX_SOURCE
4610 # SVR4 -Xc -D__EXTENSIONS__
4611 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4613 CC="$ac_save_CC $ac_arg"
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4618 #include <sys/types.h>
4619 #include <sys/stat.h>
4620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4621 struct buf { int x; };
4622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4623 static char *e (p, i)
4629 static char *f (char * (*g) (char **, int), char **p, ...)
4634 s = g (p, va_arg (v,int));
4638 int test (int i, double x);
4639 struct s1 {int (*f) (int a);};
4640 struct s2 {int (*f) (double a);};
4641 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4649 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656 am_cv_prog_cc_stdc="$ac_arg"; break
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 if test -z "$am_cv_prog_cc_stdc"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4666 $as_echo "none needed" >&6; }
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4669 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4671 case "x$am_cv_prog_cc_stdc" in
4673 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4678 for ac_dir in .. "$srcdir"/..; do
4679 for ac_t in install-sh install.sh shtool; do
4680 if test -f "$ac_dir/$ac_t"; then
4682 ac_install_sh="$ac_aux_dir/$ac_t -c"
4687 if test -z "$ac_aux_dir"; then
4688 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4691 # These three variables are undocumented and unsupported,
4692 # and are intended to be withdrawn in a future Autoconf release.
4693 # They can cause serious problems if a builder's source tree is in a directory
4694 # whose full name contains unusual characters.
4695 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4696 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4697 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4702 # Dependency checking.
4703 rm -rf .tst 2>/dev/null
4704 mkdir .tst 2>/dev/null
4705 if test -d .tst; then
4710 rmdir .tst 2>/dev/null
4712 DEPDIR="${am__leading_dot}deps"
4714 ac_config_commands="$ac_config_commands depdir"
4717 depcc="$CC" am_compiler_list=
4719 am_depcomp=$ac_aux_dir/depcomp
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4721 $as_echo_n "checking dependency style of $depcc... " >&6; }
4722 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4725 if test -f "$am_depcomp"; then
4726 # We make a subdir and do the tests there. Otherwise we can end up
4727 # making bogus files that we don't know about and never remove. For
4728 # instance it was reported that on HP-UX the gcc test will end up
4729 # making a dummy file named `D' -- because `-MD' means `put the output
4732 # Copy depcomp to subdir because otherwise we won't find it if we're
4733 # using a relative directory.
4734 cp "$am_depcomp" conftest.dir
4736 # We will build objects and dependencies in a subdirectory because
4737 # it helps to detect inapplicable dependency modes. For instance
4738 # both Tru64's cc and ICC support -MD to output dependencies as a
4739 # side effect of compilation, but ICC will put the dependencies in
4740 # the current directory while Tru64 will put them in the object
4744 am_cv_CC_dependencies_compiler_type=none
4745 if test "$am_compiler_list" = ""; then
4746 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4748 for depmode in $am_compiler_list; do
4749 if test $depmode = none; then break; fi
4751 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4752 # Setup a source with many dependencies, because some compilers
4753 # like to wrap large dependency lists on column 80 (with \), and
4754 # we should not choose a depcomp mode which is confused by this.
4756 # We need to recreate these files for each test, as the compiler may
4757 # overwrite some of them when testing with obscure command lines.
4758 # This happens at least with the AIX C compiler.
4760 for i in 1 2 3 4 5 6; do
4761 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4762 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4763 # Solaris 8's {/usr,}/bin/sh.
4764 touch sub/conftst$i.h
4766 echo "include sub/conftest.Po" > confmf
4768 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4769 # mode. It turns out that the SunPro C++ compiler does not properly
4770 # handle `-M -o', and we need to detect this.
4771 depcmd="depmode=$depmode \
4772 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4773 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4774 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4775 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4776 if env $depcmd > conftest.err 2>&1 &&
4777 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4778 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4779 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4780 # icc doesn't choke on unknown options, it will just issue warnings
4781 # or remarks (even with -Werror). So we grep stderr for any message
4782 # that says an option was ignored or not supported.
4783 # When given -MP, icc 7.0 and 7.1 complain thusly:
4784 # icc: Command line warning: ignoring option '-M'; no argument required
4785 # The diagnosis changed in icc 8.0:
4786 # icc: Command line remark: option '-MP' not supported
4787 if (grep 'ignoring option' conftest.err ||
4788 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4789 am_cv_CC_dependencies_compiler_type=$depmode
4790 $as_echo "$as_me:$LINENO: success" >&5
4794 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4795 sed -e 's/^/| /' < conftest.err >&5
4801 am_cv_CC_dependencies_compiler_type=none
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4806 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4807 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4808 then as_fn_error "no usable dependency style found" "$LINENO" 5
4809 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4814 # Check for the 'make' the user wants to use.
4817 # Extract the first word of "$ac_prog", so it can be a program name with args.
4818 set dummy $ac_prog; ac_word=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if test "${ac_cv_prog_MAKE+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4824 if test -n "$MAKE"; then
4825 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_MAKE="$ac_prog"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 MAKE=$ac_cv_prog_MAKE
4845 if test -n "$MAKE"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4847 $as_echo "$MAKE" >&6; }
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4854 test -n "$MAKE" && break
4858 case "`$MAKE --version 2>&1 | sed 1q`" in
4863 if test "$MAKE_IS_GNU" = yes; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4872 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4874 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4875 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4876 $as_echo_n "(cached) " >&6
4878 cat >conftest.make <<\_ACEOF
4881 @echo '@@@%%%=$(MAKE)=@@@%%%'
4883 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4884 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4886 eval ac_cv_prog_make_${ac_make}_set=yes;;
4888 eval ac_cv_prog_make_${ac_make}_set=no;;
4892 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4894 $as_echo "yes" >&6; }
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4899 SET_MAKE="MAKE=${MAKE-make}"
4914 # If we haven't got the data from the intl directory,
4915 # assume NLS is disabled.
4924 if test -f ../intl/config.intl; then
4925 . ../intl/config.intl
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4928 $as_echo_n "checking whether NLS is requested... " >&6; }
4929 if test x"$USE_NLS" != xyes; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4934 $as_echo "yes" >&6; }
4936 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4940 $as_echo_n "checking for catalogs to be installed... " >&6; }
4941 # Look for .po and .gmo files in the source directory.
4944 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4945 # If there aren't any .gmo files the shell will give us the
4946 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4948 case "$cat" in *\**)
4951 # The quadruple backslash is collapsed to a double backslash
4952 # by the backticks, then collapsed again by the double quotes,
4953 # leaving us with one backslash in the sed expression (right
4954 # before the dot that mustn't act as a wildcard).
4955 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4956 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4957 # The user is allowed to set LINGUAS to a list of languages to
4958 # install catalogs for. If it's empty that means "all of them."
4959 if test "x$LINGUAS" = x; then
4960 CATALOGS="$CATALOGS $cat"
4961 XLINGUAS="$XLINGUAS $lang"
4963 case "$LINGUAS" in *$lang*)
4964 CATALOGS="$CATALOGS $cat"
4965 XLINGUAS="$XLINGUAS $lang"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4972 $as_echo "$LINGUAS" >&6; }
4985 localedir='${datadir}/locale'
4988 if test x"$USE_NLS" = xyes; then
4989 CONFIG_ALL="$CONFIG_ALL all-po"
4990 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4991 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4992 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4999 LIBC_FATAL_STDERR_=1
5000 export LIBC_FATAL_STDERR_
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5004 $as_echo_n "checking for long long int... " >&6; }
5005 if test "${ac_cv_type_long_long_int+set}" = set; then :
5006 $as_echo_n "(cached) " >&6
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5011 /* For now, do not test the preprocessor; as of 2007 there are too many
5012 implementations with broken preprocessors. Perhaps this can
5013 be revisited in 2012. In the meantime, code should not expect
5014 #if to work with literals wider than 32 bits. */
5015 /* Test literals. */
5016 long long int ll = 9223372036854775807ll;
5017 long long int nll = -9223372036854775807LL;
5018 unsigned long long int ull = 18446744073709551615ULL;
5019 /* Test constant expressions. */
5020 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5022 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5028 /* Test availability of runtime routines for shift and division. */
5029 long long int llmax = 9223372036854775807ll;
5030 unsigned long long int ullmax = 18446744073709551615ull;
5031 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5032 | (llmax / ll) | (llmax % ll)
5033 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5034 | (ullmax / ull) | (ullmax % ull));
5040 if ac_fn_c_try_link "$LINENO"; then :
5041 if test "$cross_compiling" = yes; then :
5042 ac_cv_type_long_long_int=yes
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5049 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5050 # define LLONG_MAX (HALF - 1 + HALF)
5055 long long int n = 1;
5059 long long int m = n << i;
5062 if (LLONG_MAX / 2 < m)
5070 if ac_fn_c_try_run "$LINENO"; then :
5071 ac_cv_type_long_long_int=yes
5073 ac_cv_type_long_long_int=no
5075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5076 conftest.$ac_objext conftest.beam conftest.$ac_ext
5080 ac_cv_type_long_long_int=no
5082 rm -f core conftest.err conftest.$ac_objext \
5083 conftest$ac_exeext conftest.$ac_ext
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5086 $as_echo "$ac_cv_type_long_long_int" >&6; }
5087 if test $ac_cv_type_long_long_int = yes; then
5089 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5095 $as_echo_n "checking for unsigned long long int... " >&6; }
5096 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5102 /* For now, do not test the preprocessor; as of 2007 there are too many
5103 implementations with broken preprocessors. Perhaps this can
5104 be revisited in 2012. In the meantime, code should not expect
5105 #if to work with literals wider than 32 bits. */
5106 /* Test literals. */
5107 long long int ll = 9223372036854775807ll;
5108 long long int nll = -9223372036854775807LL;
5109 unsigned long long int ull = 18446744073709551615ULL;
5110 /* Test constant expressions. */
5111 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5113 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5119 /* Test availability of runtime routines for shift and division. */
5120 long long int llmax = 9223372036854775807ll;
5121 unsigned long long int ullmax = 18446744073709551615ull;
5122 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5123 | (llmax / ll) | (llmax % ll)
5124 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5125 | (ullmax / ull) | (ullmax % ull));
5131 if ac_fn_c_try_link "$LINENO"; then :
5132 ac_cv_type_unsigned_long_long_int=yes
5134 ac_cv_type_unsigned_long_long_int=no
5136 rm -f core conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5140 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5141 if test $ac_cv_type_unsigned_long_long_int = yes; then
5143 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5150 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5151 if test "${gl_cv_have_include_next+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5154 rm -rf conftestd1a conftestd1b conftestd2
5155 mkdir conftestd1a conftestd1b conftestd2
5156 cat <<EOF > conftestd1a/conftest.h
5157 #define DEFINED_IN_CONFTESTD1
5158 #include_next <conftest.h>
5159 #ifdef DEFINED_IN_CONFTESTD2
5162 #error "include_next doesn't work"
5165 cat <<EOF > conftestd1b/conftest.h
5166 #define DEFINED_IN_CONFTESTD1
5168 #include_next <conftest.h>
5169 #ifdef DEFINED_IN_CONFTESTD2
5172 #error "include_next doesn't work"
5175 cat <<EOF > conftestd2/conftest.h
5176 #ifndef DEFINED_IN_CONFTESTD1
5177 #error "include_next test doesn't work"
5179 #define DEFINED_IN_CONFTESTD2
5181 gl_save_CPPFLAGS="$CPPFLAGS"
5182 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185 #include <conftest.h>
5187 if ac_fn_c_try_compile "$LINENO"; then :
5188 gl_cv_have_include_next=yes
5190 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 #include <conftest.h>
5195 if ac_fn_c_try_compile "$LINENO"; then :
5196 gl_cv_have_include_next=buggy
5198 gl_cv_have_include_next=no
5200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204 CPPFLAGS="$gl_save_CPPFLAGS"
5205 rm -rf conftestd1a conftestd1b conftestd2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5209 $as_echo "$gl_cv_have_include_next" >&6; }
5210 PRAGMA_SYSTEM_HEADER=
5211 if test $gl_cv_have_include_next = yes; then
5212 INCLUDE_NEXT=include_next
5213 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5214 if test -n "$GCC"; then
5215 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5218 if test $gl_cv_have_include_next = buggy; then
5219 INCLUDE_NEXT=include
5220 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5222 INCLUDE_NEXT=include
5223 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5234 for ac_header in $gl_header_list
5236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5237 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5238 eval as_val=\$$as_ac_Header
5239 if test "x$as_val" = x""yes; then :
5240 cat >>confdefs.h <<_ACEOF
5241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5258 gl_cv_c_multiarch=no
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261 #ifndef __APPLE_CC__
5262 not a universal capable compiler
5267 if ac_fn_c_try_compile "$LINENO"; then :
5271 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5272 if test -n "$prev"; then
5274 i?86 | x86_64 | ppc | ppc64)
5275 if test -z "$arch" || test "$arch" = "$word"; then
5278 gl_cv_c_multiarch=yes
5284 if test "x$word" = "x-arch"; then
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 if test $gl_cv_c_multiarch = yes; then
5294 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5296 APPLE_UNIVERSAL_BUILD=1
5298 APPLE_UNIVERSAL_BUILD=0
5305 if test $ac_cv_type_long_long_int = yes; then
5306 HAVE_LONG_LONG_INT=1
5308 HAVE_LONG_LONG_INT=0
5312 if test $ac_cv_type_unsigned_long_long_int = yes; then
5313 HAVE_UNSIGNED_LONG_LONG_INT=1
5315 HAVE_UNSIGNED_LONG_LONG_INT=0
5319 if test $ac_cv_header_inttypes_h = yes; then
5326 if test $ac_cv_header_sys_types_h = yes; then
5345 if test $gl_cv_have_include_next = yes; then
5346 gl_cv_next_stdint_h='<'stdint.h'>'
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5349 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5350 if test "${gl_cv_next_stdint_h+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5354 if test $ac_cv_header_stdint_h = yes; then
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5361 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5362 *) gl_absname_cpp="$ac_cpp" ;;
5364 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5365 sed -n '\#/stdint.h#{
5366 s#.*"\(.*/stdint.h\)".*#\1#
5372 gl_cv_next_stdint_h='<'stdint.h'>'
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5377 $as_echo "$gl_cv_next_stdint_h" >&6; }
5379 NEXT_STDINT_H=$gl_cv_next_stdint_h
5381 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5383 gl_next_as_first_directive='<'stdint.h'>'
5385 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5386 gl_next_as_first_directive=$gl_cv_next_stdint_h
5388 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
5392 if test $ac_cv_header_stdint_h = yes; then
5399 if test $ac_cv_header_stdint_h = yes; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5401 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5402 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5403 $as_echo_n "(cached) " >&6
5405 gl_cv_header_working_stdint_h=no
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5410 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5411 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5412 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5414 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5415 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5416 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5420 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5421 included before <wchar.h>. */
5432 int8_t a1 = INT8_MAX;
5433 int8_t a1min = INT8_MIN;
5436 int16_t a2 = INT16_MAX;
5437 int16_t a2min = INT16_MIN;
5440 int32_t a3 = INT32_MAX;
5441 int32_t a3min = INT32_MIN;
5444 int64_t a4 = INT64_MAX;
5445 int64_t a4min = INT64_MIN;
5448 uint8_t b1 = UINT8_MAX;
5450 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5453 uint16_t b2 = UINT16_MAX;
5456 uint32_t b3 = UINT32_MAX;
5459 uint64_t b4 = UINT64_MAX;
5461 int_least8_t c1 = INT8_C (0x7f);
5462 int_least8_t c1max = INT_LEAST8_MAX;
5463 int_least8_t c1min = INT_LEAST8_MIN;
5464 int_least16_t c2 = INT16_C (0x7fff);
5465 int_least16_t c2max = INT_LEAST16_MAX;
5466 int_least16_t c2min = INT_LEAST16_MIN;
5467 int_least32_t c3 = INT32_C (0x7fffffff);
5468 int_least32_t c3max = INT_LEAST32_MAX;
5469 int_least32_t c3min = INT_LEAST32_MIN;
5470 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5471 int_least64_t c4max = INT_LEAST64_MAX;
5472 int_least64_t c4min = INT_LEAST64_MIN;
5473 uint_least8_t d1 = UINT8_C (0xff);
5474 uint_least8_t d1max = UINT_LEAST8_MAX;
5475 uint_least16_t d2 = UINT16_C (0xffff);
5476 uint_least16_t d2max = UINT_LEAST16_MAX;
5477 uint_least32_t d3 = UINT32_C (0xffffffff);
5478 uint_least32_t d3max = UINT_LEAST32_MAX;
5479 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5480 uint_least64_t d4max = UINT_LEAST64_MAX;
5481 int_fast8_t e1 = INT_FAST8_MAX;
5482 int_fast8_t e1min = INT_FAST8_MIN;
5483 int_fast16_t e2 = INT_FAST16_MAX;
5484 int_fast16_t e2min = INT_FAST16_MIN;
5485 int_fast32_t e3 = INT_FAST32_MAX;
5486 int_fast32_t e3min = INT_FAST32_MIN;
5487 int_fast64_t e4 = INT_FAST64_MAX;
5488 int_fast64_t e4min = INT_FAST64_MIN;
5489 uint_fast8_t f1 = UINT_FAST8_MAX;
5490 uint_fast16_t f2 = UINT_FAST16_MAX;
5491 uint_fast32_t f3 = UINT_FAST32_MAX;
5492 uint_fast64_t f4 = UINT_FAST64_MAX;
5494 intptr_t g = INTPTR_MAX;
5495 intptr_t gmin = INTPTR_MIN;
5498 uintptr_t h = UINTPTR_MAX;
5500 intmax_t i = INTMAX_MAX;
5501 uintmax_t j = UINTMAX_MAX;
5503 #include <limits.h> /* for CHAR_BIT */
5504 #define TYPE_MINIMUM(t) \
5505 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5506 #define TYPE_MAXIMUM(t) \
5507 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5510 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5511 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5513 /* Detect bug in FreeBSD 6.0 / ia64. */
5514 int check_SIG_ATOMIC:
5515 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5516 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5518 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5520 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5521 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5523 /* Detect bug in mingw. */
5525 WINT_MIN == TYPE_MINIMUM (wint_t)
5526 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5529 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5531 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5533 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5535 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5537 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5540 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5543 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5546 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5548 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5549 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5550 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5551 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5552 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5553 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5554 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5555 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5556 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5557 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5558 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5569 if ac_fn_c_try_compile "$LINENO"; then :
5570 if test "$cross_compiling" = yes; then :
5571 gl_cv_header_working_stdint_h=yes
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5578 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5579 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5580 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5584 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5585 included before <wchar.h>. */
5597 #define MVAL(macro) MVAL1(macro)
5598 #define MVAL1(expression) #expression
5599 static const char *macro_values[] =
5633 for (mv = macro_values; *mv != NULL; mv++)
5635 const char *value = *mv;
5636 /* Test whether it looks like a cast expression. */
5637 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
5638 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
5639 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
5640 || strncmp (value, "((int)"/*)*/, 6) == 0
5641 || strncmp (value, "((signed short)"/*)*/, 15) == 0
5642 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
5651 if ac_fn_c_try_run "$LINENO"; then :
5652 gl_cv_header_working_stdint_h=yes
5654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5655 conftest.$ac_objext conftest.beam conftest.$ac_ext
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5664 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5666 if test "$gl_cv_header_working_stdint_h" = yes; then
5669 for ac_header in sys/inttypes.h sys/bitypes.h
5671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5672 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5673 eval as_val=\$$as_ac_Header
5674 if test "x$as_val" = x""yes; then :
5675 cat >>confdefs.h <<_ACEOF
5676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5683 if test $ac_cv_header_sys_inttypes_h = yes; then
5684 HAVE_SYS_INTTYPES_H=1
5686 HAVE_SYS_INTTYPES_H=0
5689 if test $ac_cv_header_sys_bitypes_h = yes; then
5690 HAVE_SYS_BITYPES_H=1
5692 HAVE_SYS_BITYPES_H=0
5706 if test $APPLE_UNIVERSAL_BUILD = 0; then
5709 for gltype in ptrdiff_t size_t ; do
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5711 $as_echo_n "checking for bit size of $gltype... " >&6; }
5712 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5713 $as_echo_n "(cached) " >&6
5715 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5716 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5717 included before <wchar.h>. */
5726 #include <limits.h>"; then :
5732 eval gl_cv_bitsizeof_${gltype}=\$result
5735 eval ac_res=\$gl_cv_bitsizeof_${gltype}
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5737 $as_echo "$ac_res" >&6; }
5738 eval result=\$gl_cv_bitsizeof_${gltype}
5739 if test $result = unknown; then
5742 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5743 cat >>confdefs.h <<_ACEOF
5744 #define BITSIZEOF_${GLTYPE} $result
5747 eval BITSIZEOF_${GLTYPE}=\$result
5754 for gltype in sig_atomic_t wchar_t wint_t ; do
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5756 $as_echo_n "checking for bit size of $gltype... " >&6; }
5757 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5758 $as_echo_n "(cached) " >&6
5760 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5761 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5762 included before <wchar.h>. */
5771 #include <limits.h>"; then :
5777 eval gl_cv_bitsizeof_${gltype}=\$result
5780 eval ac_res=\$gl_cv_bitsizeof_${gltype}
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5782 $as_echo "$ac_res" >&6; }
5783 eval result=\$gl_cv_bitsizeof_${gltype}
5784 if test $result = unknown; then
5787 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5788 cat >>confdefs.h <<_ACEOF
5789 #define BITSIZEOF_${GLTYPE} $result
5792 eval BITSIZEOF_${GLTYPE}=\$result
5798 for gltype in sig_atomic_t wchar_t wint_t ; do
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5800 $as_echo_n "checking whether $gltype is signed... " >&6; }
5801 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5802 $as_echo_n "(cached) " >&6
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5807 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5808 included before <wchar.h>. */
5817 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5826 if ac_fn_c_try_compile "$LINENO"; then :
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 eval gl_cv_type_${gltype}_signed=\$result
5835 eval ac_res=\$gl_cv_type_${gltype}_signed
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5837 $as_echo "$ac_res" >&6; }
5838 eval result=\$gl_cv_type_${gltype}_signed
5839 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5840 if test "$result" = yes; then
5841 cat >>confdefs.h <<_ACEOF
5842 #define HAVE_SIGNED_${GLTYPE} 1
5845 eval HAVE_SIGNED_${GLTYPE}=1
5847 eval HAVE_SIGNED_${GLTYPE}=0
5852 gl_cv_type_ptrdiff_t_signed=yes
5853 gl_cv_type_size_t_signed=no
5854 if test $APPLE_UNIVERSAL_BUILD = 0; then
5857 for gltype in ptrdiff_t size_t ; do
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5859 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5860 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5861 $as_echo_n "(cached) " >&6
5863 eval gl_cv_type_${gltype}_suffix=no
5864 eval result=\$gl_cv_type_${gltype}_signed
5865 if test "$result" = yes; then
5870 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
5873 l) gltype1='long int';;
5874 ll) gltype1='long long int';;
5875 i64) gltype1='__int64';;
5876 u) gltype1='unsigned int';;
5877 ul) gltype1='unsigned long int';;
5878 ull) gltype1='unsigned long long int';;
5879 ui64)gltype1='unsigned __int64';;
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5884 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5885 included before <wchar.h>. */
5895 extern $gltype1 foo;
5904 if ac_fn_c_try_compile "$LINENO"; then :
5905 eval gl_cv_type_${gltype}_suffix=\$glsuf
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 eval result=\$gl_cv_type_${gltype}_suffix
5909 test "$result" != no && break
5912 eval ac_res=\$gl_cv_type_${gltype}_suffix
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5914 $as_echo "$ac_res" >&6; }
5915 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5916 eval result=\$gl_cv_type_${gltype}_suffix
5917 test "$result" = no && result=
5918 eval ${GLTYPE}_SUFFIX=\$result
5919 cat >>confdefs.h <<_ACEOF
5920 #define ${GLTYPE}_SUFFIX $result
5929 for gltype in sig_atomic_t wchar_t wint_t ; do
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5931 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5932 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5933 $as_echo_n "(cached) " >&6
5935 eval gl_cv_type_${gltype}_suffix=no
5936 eval result=\$gl_cv_type_${gltype}_signed
5937 if test "$result" = yes; then
5942 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
5945 l) gltype1='long int';;
5946 ll) gltype1='long long int';;
5947 i64) gltype1='__int64';;
5948 u) gltype1='unsigned int';;
5949 ul) gltype1='unsigned long int';;
5950 ull) gltype1='unsigned long long int';;
5951 ui64)gltype1='unsigned __int64';;
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5956 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5957 included before <wchar.h>. */
5967 extern $gltype1 foo;
5976 if ac_fn_c_try_compile "$LINENO"; then :
5977 eval gl_cv_type_${gltype}_suffix=\$glsuf
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980 eval result=\$gl_cv_type_${gltype}_suffix
5981 test "$result" != no && break
5984 eval ac_res=\$gl_cv_type_${gltype}_suffix
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5986 $as_echo "$ac_res" >&6; }
5987 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5988 eval result=\$gl_cv_type_${gltype}_suffix
5989 test "$result" = no && result=
5990 eval ${GLTYPE}_SUFFIX=\$result
5991 cat >>confdefs.h <<_ACEOF
5992 #define ${GLTYPE}_SUFFIX $result
6004 for ac_header in inttypes.h
6006 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6007 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
6008 cat >>confdefs.h <<_ACEOF
6009 #define HAVE_INTTYPES_H 1
6016 if test $ac_cv_header_inttypes_h = yes; then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6018 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6019 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025 #include <inttypes.h>
6038 if ac_fn_c_try_compile "$LINENO"; then :
6039 gt_cv_inttypes_pri_broken=no
6041 gt_cv_inttypes_pri_broken=yes
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6047 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6049 if test "$gt_cv_inttypes_pri_broken" = yes; then
6051 cat >>confdefs.h <<_ACEOF
6052 #define PRI_MACROS_BROKEN 1
6067 ac_fn_c_check_decl "$LINENO" "imaxabs" "ac_cv_have_decl_imaxabs" "$ac_includes_default"
6068 if test "x$ac_cv_have_decl_imaxabs" = x""yes; then :
6074 cat >>confdefs.h <<_ACEOF
6075 #define HAVE_DECL_IMAXABS $ac_have_decl
6080 ac_fn_c_check_decl "$LINENO" "imaxdiv" "ac_cv_have_decl_imaxdiv" "$ac_includes_default"
6081 if test "x$ac_cv_have_decl_imaxdiv" = x""yes; then :
6087 cat >>confdefs.h <<_ACEOF
6088 #define HAVE_DECL_IMAXDIV $ac_have_decl
6093 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
6094 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
6100 cat >>confdefs.h <<_ACEOF
6101 #define HAVE_DECL_STRTOIMAX $ac_have_decl
6106 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
6107 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
6113 cat >>confdefs.h <<_ACEOF
6114 #define HAVE_DECL_STRTOUMAX $ac_have_decl
6123 HAVE_DECL_IMAXABS=1;
6124 HAVE_DECL_IMAXDIV=1;
6125 HAVE_DECL_STRTOIMAX=1;
6126 HAVE_DECL_STRTOUMAX=1;
6137 for ac_func in $gl_func_list
6139 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6140 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6141 eval as_val=\$$as_ac_var
6142 if test "x$as_val" = x""yes; then :
6143 cat >>confdefs.h <<_ACEOF
6144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6170 GNULIB_STRCASESTR=0;
6177 GNULIB_MBSCASECMP=0;
6178 GNULIB_MBSNCASECMP=0;
6179 GNULIB_MBSPCASECMP=0;
6180 GNULIB_MBSCASESTR=0;
6188 GNULIB_STRVERSCMP=0;
6193 HAVE_DECL_MEMRCHR=1;
6199 HAVE_DECL_STRNDUP=1;
6200 HAVE_DECL_STRNLEN=1;
6204 HAVE_DECL_STRTOK_R=1;
6205 HAVE_DECL_STRSIGNAL=1;
6212 REPLACE_STRCASESTR=0;
6217 REPLACE_STRSIGNAL=0;
6219 UNDEFINE_STRTOK_R=0;
6233 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
6234 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
6235 # irrelevant for anonymous mappings.
6236 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
6237 if test "x$ac_cv_func_mmap" = x""yes; then :
6244 # Try to allow MAP_ANONYMOUS.
6245 gl_have_mmap_anonymous=no
6246 if test $gl_have_mmap = yes; then
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
6248 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6252 #include <sys/mman.h>
6253 #ifdef MAP_ANONYMOUS
6254 I cant identify this map.
6258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6259 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
6260 gl_have_mmap_anonymous=yes
6264 if test $gl_have_mmap_anonymous != yes; then
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6268 #include <sys/mman.h>
6270 I cant identify this map.
6274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6275 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
6277 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
6279 gl_have_mmap_anonymous=yes
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
6285 $as_echo "$gl_have_mmap_anonymous" >&6; }
6286 if test $gl_have_mmap_anonymous = yes; then
6288 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
6316 if test $ac_cv_func_memchr = yes; then
6317 # Detect platform-specific bugs in some versions of glibc:
6318 # memchr should not dereference anything with length 0
6319 # http://bugzilla.redhat.com/499689
6320 # memchr should not dereference overestimated length after a match
6321 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
6322 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
6323 # Assume that memchr works on platforms that lack mprotect.
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
6325 $as_echo_n "checking whether memchr works... " >&6; }
6326 if test "${gl_cv_func_memchr_works+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6329 if test "$cross_compiling" = yes; then :
6330 gl_cv_func_memchr_works="guessing no"
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6338 # include <unistd.h>
6339 # include <sys/types.h>
6340 # include <sys/mman.h>
6351 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
6352 # if HAVE_MAP_ANONYMOUS
6353 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
6355 # else /* !HAVE_MAP_ANONYMOUS */
6356 const int flags = MAP_FILE | MAP_PRIVATE;
6357 int fd = open ("/dev/zero", O_RDONLY, 0666);
6361 int pagesize = getpagesize ();
6363 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
6365 if (two_pages != (char *)(-1)
6366 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
6367 fence = two_pages + pagesize;
6372 if (memchr (fence, 0, 0))
6374 strcpy (fence - 9, "12345678");
6375 if (memchr (fence - 9, 0, 79) != fence - 1)
6384 if ac_fn_c_try_run "$LINENO"; then :
6385 gl_cv_func_memchr_works=yes
6387 gl_cv_func_memchr_works=no
6389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6390 conftest.$ac_objext conftest.beam conftest.$ac_ext
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
6395 $as_echo "$gl_cv_func_memchr_works" >&6; }
6396 if test "$gl_cv_func_memchr_works" != yes; then
6402 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
6411 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
6414 for ac_header in bp-sym.h
6416 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
6417 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
6418 cat >>confdefs.h <<_ACEOF
6419 #define HAVE_BP_SYM_H 1
6430 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
6431 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
6437 cat >>confdefs.h <<_ACEOF
6438 #define HAVE_DECL_MEMMEM $ac_have_decl
6454 for ac_func in memmem
6456 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6457 if test "x$ac_cv_func_memmem" = x""yes; then :
6458 cat >>confdefs.h <<_ACEOF
6459 #define HAVE_MEMMEM 1
6464 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6477 if test $ac_cv_have_decl_memmem = no; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6489 $as_echo_n "checking for wchar_t... " >&6; }
6490 if test "${gt_cv_c_wchar_t+set}" = set; then :
6491 $as_echo_n "(cached) " >&6
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6496 wchar_t foo = (wchar_t)'\0';
6505 if ac_fn_c_try_compile "$LINENO"; then :
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6513 $as_echo "$gt_cv_c_wchar_t" >&6; }
6514 if test $gt_cv_c_wchar_t = yes; then
6516 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6526 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6527 if test "${ac_cv_c_restrict+set}" = set; then :
6528 $as_echo_n "(cached) " >&6
6531 # The order here caters to the fact that C++ does not require restrict.
6532 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 typedef int * int_ptr;
6536 int foo (int_ptr $ac_kw ip) {
6550 if ac_fn_c_try_compile "$LINENO"; then :
6551 ac_cv_c_restrict=$ac_kw
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 test "$ac_cv_c_restrict" != no && break
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6559 $as_echo "$ac_cv_c_restrict" >&6; }
6561 case $ac_cv_c_restrict in
6563 no) $as_echo "#define restrict /**/" >>confdefs.h
6565 *) cat >>confdefs.h <<_ACEOF
6566 #define restrict $ac_cv_c_restrict
6591 if test $gl_cv_have_include_next = yes; then
6592 gl_cv_next_string_h='<'string.h'>'
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
6595 $as_echo_n "checking absolute name of <string.h>... " >&6; }
6596 if test "${gl_cv_next_string_h+set}" = set; then :
6597 $as_echo_n "(cached) " >&6
6600 if test $ac_cv_header_string_h = yes; then
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6607 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6608 *) gl_absname_cpp="$ac_cpp" ;;
6610 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6611 sed -n '\#/string.h#{
6612 s#.*"\(.*/string.h\)".*#\1#
6618 gl_cv_next_string_h='<'string.h'>'
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
6623 $as_echo "$gl_cv_next_string_h" >&6; }
6625 NEXT_STRING_H=$gl_cv_next_string_h
6627 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6628 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6629 gl_next_as_first_directive='<'string.h'>'
6631 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6632 gl_next_as_first_directive=$gl_cv_next_string_h
6634 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
6640 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
6641 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6643 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6644 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6645 $as_echo_n "(cached) " >&6
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6660 if ac_fn_c_try_compile "$LINENO"; then :
6661 eval "$as_gl_Symbol=yes"
6663 eval "$as_gl_Symbol=no"
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 eval ac_res=\$$as_gl_Symbol
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6669 $as_echo "$ac_res" >&6; }
6670 eval as_val=\$$as_gl_Symbol
6671 if test "x$as_val" = x""yes; then :
6672 cat >>confdefs.h <<_ACEOF
6673 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
6676 eval ac_cv_have_decl_$gl_func=yes
6688 GNULIB_MBSNRTOWCS=0;
6691 GNULIB_WCSNRTOMBS=0;
6703 HAVE_DECL_WCWIDTH=1;
6704 REPLACE_MBSTATE_T=0;
6710 REPLACE_MBSRTOWCS=0;
6711 REPLACE_MBSNRTOWCS=0;
6713 REPLACE_WCSRTOMBS=0;
6714 REPLACE_WCSNRTOMBS=0;
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
6719 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
6720 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
6721 $as_echo_n "(cached) " >&6
6723 gl_cv_header_wchar_h_correct_inline=yes
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6727 #define wcstod renamed_wcstod
6729 extern int zero (void);
6730 int main () { return zero(); }
6733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6734 (eval $ac_compile) 2>&5
6736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6737 test $ac_status = 0; }; then
6738 mv conftest.$ac_objext conftest1.$ac_objext
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6742 #define wcstod renamed_wcstod
6744 int zero (void) { return 0; }
6747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6748 (eval $ac_compile) 2>&5
6750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6751 test $ac_status = 0; }; then
6752 mv conftest.$ac_objext conftest2.$ac_objext
6753 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
6756 gl_cv_header_wchar_h_correct_inline=no
6760 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
6764 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
6765 if test $gl_cv_header_wchar_h_correct_inline = no; then
6766 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
6767 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
6768 C99 mode. You have four options:
6769 - Add the flag -fgnu89-inline to CC and reconfigure, or
6770 - Fix your include files, using parts of
6771 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
6772 - Use a gcc version older than 4.3, or
6773 - Don't use the flags -std=c99 or -std=gnu99.
6774 Configuration aborted." "$LINENO" 5
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6779 $as_echo_n "checking for wint_t... " >&6; }
6780 if test "${gt_cv_c_wint_t+set}" = set; then :
6781 $as_echo_n "(cached) " >&6
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6786 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6788 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
6789 before <wchar.h>. */
6794 wint_t foo = (wchar_t)'\0';
6803 if ac_fn_c_try_compile "$LINENO"; then :
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6811 $as_echo "$gt_cv_c_wint_t" >&6; }
6812 if test $gt_cv_c_wint_t = yes; then
6814 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6820 GL_COND_LIBTOOL_TRUE=
6821 GL_COND_LIBTOOL_FALSE='#'
6823 GL_COND_LIBTOOL_TRUE='#'
6824 GL_COND_LIBTOOL_FALSE=
6827 gl_cond_libtool=false
6830 gl_m4_base='gnulib/m4'
6840 gl_source_base='gnulib'
6841 # Code from module arg-nonnull:
6842 # Code from module c++defs:
6843 # Code from module extensions:
6844 # Code from module include_next:
6845 # Code from module inttypes:
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inttypes.h conforms to C99" >&5
6886 $as_echo_n "checking whether inttypes.h conforms to C99... " >&6; }
6887 if test "${gl_cv_header_working_inttypes_h+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
6890 gl_cv_header_working_inttypes_h=no
6891 if test "$gl_cv_header_working_stdint_h" = yes \
6892 && test $ac_cv_header_inttypes_h = yes \
6893 && test "$ac_cv_have_decl_imaxabs" = yes \
6894 && test "$ac_cv_have_decl_imaxdiv" = yes \
6895 && test "$ac_cv_have_decl_strtoimax" = yes \
6896 && test "$ac_cv_have_decl_strtoumax" = yes; then
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6902 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6903 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6904 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
6905 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
6906 #include <inttypes.h>
6908 /* No need to duplicate the tests of stdint.m4; they are subsumed by
6909 $gl_cv_header_working_stdint_h = yes. */
6911 /* Tests for macros supposed to be defined in inttypes.h. */
6913 const char *k = /* implicit string concatenation */
6918 PRIo8 PRIu8 PRIx8 PRIX8
6924 PRIo16 PRIu16 PRIx16 PRIX16
6930 PRIo32 PRIu32 PRIx32 PRIX32
6936 PRIo64 PRIu64 PRIx64 PRIX64
6938 PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
6939 PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
6940 PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
6941 PRIdLEAST64 PRIiLEAST64
6942 PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
6943 PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
6944 PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
6945 PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
6946 PRIdFAST64 PRIiFAST64
6947 PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
6948 PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
6953 PRIoPTR PRIuPTR PRIxPTR PRIXPTR
6956 const char *l = /* implicit string concatenation */
6967 SCNo16 SCNu16 SCNx16
6973 SCNo32 SCNu32 SCNx32
6979 SCNo64 SCNu64 SCNx64
6981 SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
6982 SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
6983 SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
6984 SCNdLEAST64 SCNiLEAST64
6985 SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
6986 SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
6987 SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
6988 SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
6989 SCNdFAST64 SCNiFAST64
6990 SCNoFAST64 SCNuFAST64 SCNxFAST64
6991 SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
6996 SCNoPTR SCNuPTR SCNxPTR
7008 if ac_fn_c_try_compile "$LINENO"; then :
7009 gl_cv_header_working_inttypes_h=yes
7011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_inttypes_h" >&5
7015 $as_echo "$gl_cv_header_working_inttypes_h" >&6; }
7030 if test $gl_cv_have_include_next = yes; then
7031 gl_cv_next_inttypes_h='<'inttypes.h'>'
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7034 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7035 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7036 $as_echo_n "(cached) " >&6
7039 if test $ac_cv_header_inttypes_h = yes; then
7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h. */
7042 #include <inttypes.h>
7046 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7047 *) gl_absname_cpp="$ac_cpp" ;;
7049 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7050 sed -n '\#/inttypes.h#{
7051 s#.*"\(.*/inttypes.h\)".*#\1#
7057 gl_cv_next_inttypes_h='<'inttypes.h'>'
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7062 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7064 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7066 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7067 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7068 gl_next_as_first_directive='<'inttypes.h'>'
7070 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7071 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7073 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7081 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
7086 if test -n "$STDINT_H"; then
7089 for glpfx in '' l ll I64; do
7092 l) gltype1='long int';;
7093 ll) gltype1='long long int';;
7094 I64) gltype1='__int64';;
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7099 extern intptr_t foo;
7100 extern $gltype1 foo;
7109 if ac_fn_c_try_compile "$LINENO"; then :
7110 PRIPTR_PREFIX='"'$glpfx'"'
7112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7113 test -n "$PRIPTR_PREFIX" && break
7118 if test "$ac_cv_have_decl_imaxabs" = yes; then
7124 if test "$ac_cv_have_decl_imaxdiv" = yes; then
7130 if test "$ac_cv_have_decl_strtoimax" = yes; then
7131 HAVE_DECL_STRTOIMAX=1
7133 HAVE_DECL_STRTOIMAX=0
7136 if test "$ac_cv_have_decl_strtoumax" = yes; then
7137 HAVE_DECL_STRTOUMAX=1
7139 HAVE_DECL_STRTOUMAX=0
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
7144 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
7145 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
7146 $as_echo_n "(cached) " >&6
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 /* Work also in C++ mode. */
7151 #define __STDC_LIMIT_MACROS 1
7153 /* Work if build is not clean. */
7154 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7161 #if defined INT32_MAX && defined INTMAX_MAX
7162 #define CONDITION (INT32_MAX < INTMAX_MAX)
7163 #elif HAVE_LONG_LONG_INT
7164 #define CONDITION (sizeof (int) < sizeof (long long int))
7168 int test[CONDITION ? 1 : -1];
7177 if ac_fn_c_try_compile "$LINENO"; then :
7178 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
7180 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
7185 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
7186 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
7187 INT32_MAX_LT_INTMAX_MAX=1;
7189 INT32_MAX_LT_INTMAX_MAX=0;
7193 if test $APPLE_UNIVERSAL_BUILD = 0; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
7196 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
7197 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
7198 $as_echo_n "(cached) " >&6
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7202 /* Work also in C++ mode. */
7203 #define __STDC_LIMIT_MACROS 1
7205 /* Work if build is not clean. */
7206 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7213 #if defined INT64_MAX
7214 #define CONDITION (INT64_MAX == LONG_MAX)
7215 #elif HAVE_LONG_LONG_INT
7216 #define CONDITION (sizeof (long long int) == sizeof (long int))
7220 int test[CONDITION ? 1 : -1];
7229 if ac_fn_c_try_compile "$LINENO"; then :
7230 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
7232 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
7234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
7237 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
7238 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
7239 INT64_MAX_EQ_LONG_MAX=1;
7241 INT64_MAX_EQ_LONG_MAX=0;
7246 INT64_MAX_EQ_LONG_MAX=-1
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
7250 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
7251 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
7252 $as_echo_n "(cached) " >&6
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7256 /* Work also in C++ mode. */
7257 #define __STDC_LIMIT_MACROS 1
7259 /* Work if build is not clean. */
7260 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7267 #if defined UINT32_MAX && defined UINTMAX_MAX
7268 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
7269 #elif HAVE_LONG_LONG_INT
7270 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
7274 int test[CONDITION ? 1 : -1];
7283 if ac_fn_c_try_compile "$LINENO"; then :
7284 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
7286 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
7291 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
7292 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
7293 UINT32_MAX_LT_UINTMAX_MAX=1;
7295 UINT32_MAX_LT_UINTMAX_MAX=0;
7299 if test $APPLE_UNIVERSAL_BUILD = 0; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
7302 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
7303 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7308 /* Work also in C++ mode. */
7309 #define __STDC_LIMIT_MACROS 1
7311 /* Work if build is not clean. */
7312 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7319 #if defined UINT64_MAX
7320 #define CONDITION (UINT64_MAX == ULONG_MAX)
7321 #elif HAVE_LONG_LONG_INT
7322 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
7326 int test[CONDITION ? 1 : -1];
7335 if ac_fn_c_try_compile "$LINENO"; then :
7336 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
7338 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
7343 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
7344 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
7345 UINT64_MAX_EQ_ULONG_MAX=1;
7347 UINT64_MAX_EQ_ULONG_MAX=0;
7352 UINT64_MAX_EQ_ULONG_MAX=-1
7356 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7357 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7359 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7360 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7361 $as_echo_n "(cached) " >&6
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365 #include <inttypes.h>
7376 if ac_fn_c_try_compile "$LINENO"; then :
7377 eval "$as_gl_Symbol=yes"
7379 eval "$as_gl_Symbol=no"
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 eval ac_res=\$$as_gl_Symbol
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7385 $as_echo "$ac_res" >&6; }
7386 eval as_val=\$$as_gl_Symbol
7387 if test "x$as_val" = x""yes; then :
7388 cat >>confdefs.h <<_ACEOF
7389 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7392 eval ac_cv_have_decl_$gl_func=yes
7397 # Code from module memchr:
7406 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
7410 # Code from module memmem:
7413 if test $ac_cv_have_decl_memmem = yes; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
7415 $as_echo_n "checking whether memmem works in linear time... " >&6; }
7416 if test "${gl_cv_func_memmem_works+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7419 if test "$cross_compiling" = yes; then :
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7423 #include <features.h>
7424 #ifdef __GNU_LIBRARY__
7425 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
7430 #include <cygwin/version.h>
7431 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
7437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7438 $EGREP "Lucky user" >/dev/null 2>&1; then :
7439 gl_cv_func_memmem_works=yes
7441 gl_cv_func_memmem_works="guessing no"
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7450 #include <signal.h> /* for signal */
7451 #include <string.h> /* for memmem */
7452 #include <stdlib.h> /* for malloc */
7453 #include <unistd.h> /* for alarm */
7459 char *haystack = (char *) malloc (2 * m + 1);
7460 char *needle = (char *) malloc (m + 1);
7462 /* Failure to compile this test due to missing alarm is okay,
7463 since all such platforms (mingw) also lack memmem. */
7464 signal (SIGALRM, SIG_DFL);
7466 /* Check for quadratic performance. */
7467 if (haystack && needle)
7469 memset (haystack, 'A', 2 * m);
7470 haystack[2 * m] = 'B';
7471 memset (needle, 'A', m);
7473 result = memmem (haystack, 2 * m + 1, needle, m + 1);
7475 /* Check for empty needle behavior. */
7476 return !result || !memmem ("a", 1, 0, 0);
7481 if ac_fn_c_try_run "$LINENO"; then :
7482 gl_cv_func_memmem_works=yes
7484 gl_cv_func_memmem_works=no
7486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7487 conftest.$ac_objext conftest.beam conftest.$ac_ext
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
7493 $as_echo "$gl_cv_func_memmem_works" >&6; }
7494 if test "$gl_cv_func_memmem_works" != yes; then
7504 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
7509 # Code from module memmem-simple:
7522 for ac_func in memmem
7524 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
7525 if test "x$ac_cv_func_memmem" = x""yes; then :
7526 cat >>confdefs.h <<_ACEOF
7527 #define HAVE_MEMMEM 1
7532 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
7545 if test $ac_cv_have_decl_memmem = no; then
7557 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
7561 # Code from module multiarch:
7563 # Code from module stddef:
7567 if test $gt_cv_c_wchar_t = no; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
7572 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
7573 if test "${gl_cv_decl_null_works+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7579 int test[2 * (sizeof NULL == sizeof (void *)) -1];
7589 if ac_fn_c_try_compile "$LINENO"; then :
7590 gl_cv_decl_null_works=yes
7592 gl_cv_decl_null_works=no
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
7597 $as_echo "$gl_cv_decl_null_works" >&6; }
7598 if test $gl_cv_decl_null_works = no; then
7602 if test -n "$STDDEF_H"; then
7615 if test $gl_cv_have_include_next = yes; then
7616 gl_cv_next_stddef_h='<'stddef.h'>'
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
7619 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
7620 if test "${gl_cv_next_stddef_h+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
7624 if test $ac_cv_header_stddef_h = yes; then
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7631 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7632 *) gl_absname_cpp="$ac_cpp" ;;
7634 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7635 sed -n '\#/stddef.h#{
7636 s#.*"\(.*/stddef.h\)".*#\1#
7642 gl_cv_next_stddef_h='<'stddef.h'>'
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
7647 $as_echo "$gl_cv_next_stddef_h" >&6; }
7649 NEXT_STDDEF_H=$gl_cv_next_stddef_h
7651 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7652 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7653 gl_next_as_first_directive='<'stddef.h'>'
7655 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7656 gl_next_as_first_directive=$gl_cv_next_stddef_h
7658 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
7664 # Code from module stdint:
7668 if test $ac_cv_type_long_long_int = yes; then
7669 HAVE_LONG_LONG_INT=1
7671 HAVE_LONG_LONG_INT=0
7675 if test $ac_cv_type_unsigned_long_long_int = yes; then
7676 HAVE_UNSIGNED_LONG_LONG_INT=1
7678 HAVE_UNSIGNED_LONG_LONG_INT=0
7682 if test $ac_cv_header_inttypes_h = yes; then
7689 if test $ac_cv_header_sys_types_h = yes; then
7708 if test $gl_cv_have_include_next = yes; then
7709 gl_cv_next_stdint_h='<'stdint.h'>'
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7712 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7713 if test "${gl_cv_next_stdint_h+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7717 if test $ac_cv_header_stdint_h = yes; then
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7724 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7725 *) gl_absname_cpp="$ac_cpp" ;;
7727 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7728 sed -n '\#/stdint.h#{
7729 s#.*"\(.*/stdint.h\)".*#\1#
7735 gl_cv_next_stdint_h='<'stdint.h'>'
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7740 $as_echo "$gl_cv_next_stdint_h" >&6; }
7742 NEXT_STDINT_H=$gl_cv_next_stdint_h
7744 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7745 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7746 gl_next_as_first_directive='<'stdint.h'>'
7748 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7749 gl_next_as_first_directive=$gl_cv_next_stdint_h
7751 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7755 if test $ac_cv_header_stdint_h = yes; then
7762 if test $ac_cv_header_stdint_h = yes; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7764 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7765 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7768 gl_cv_header_working_stdint_h=no
7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7773 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
7774 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
7775 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7777 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7778 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7779 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7783 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7784 included before <wchar.h>. */
7795 int8_t a1 = INT8_MAX;
7796 int8_t a1min = INT8_MIN;
7799 int16_t a2 = INT16_MAX;
7800 int16_t a2min = INT16_MIN;
7803 int32_t a3 = INT32_MAX;
7804 int32_t a3min = INT32_MIN;
7807 int64_t a4 = INT64_MAX;
7808 int64_t a4min = INT64_MIN;
7811 uint8_t b1 = UINT8_MAX;
7813 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7816 uint16_t b2 = UINT16_MAX;
7819 uint32_t b3 = UINT32_MAX;
7822 uint64_t b4 = UINT64_MAX;
7824 int_least8_t c1 = INT8_C (0x7f);
7825 int_least8_t c1max = INT_LEAST8_MAX;
7826 int_least8_t c1min = INT_LEAST8_MIN;
7827 int_least16_t c2 = INT16_C (0x7fff);
7828 int_least16_t c2max = INT_LEAST16_MAX;
7829 int_least16_t c2min = INT_LEAST16_MIN;
7830 int_least32_t c3 = INT32_C (0x7fffffff);
7831 int_least32_t c3max = INT_LEAST32_MAX;
7832 int_least32_t c3min = INT_LEAST32_MIN;
7833 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7834 int_least64_t c4max = INT_LEAST64_MAX;
7835 int_least64_t c4min = INT_LEAST64_MIN;
7836 uint_least8_t d1 = UINT8_C (0xff);
7837 uint_least8_t d1max = UINT_LEAST8_MAX;
7838 uint_least16_t d2 = UINT16_C (0xffff);
7839 uint_least16_t d2max = UINT_LEAST16_MAX;
7840 uint_least32_t d3 = UINT32_C (0xffffffff);
7841 uint_least32_t d3max = UINT_LEAST32_MAX;
7842 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7843 uint_least64_t d4max = UINT_LEAST64_MAX;
7844 int_fast8_t e1 = INT_FAST8_MAX;
7845 int_fast8_t e1min = INT_FAST8_MIN;
7846 int_fast16_t e2 = INT_FAST16_MAX;
7847 int_fast16_t e2min = INT_FAST16_MIN;
7848 int_fast32_t e3 = INT_FAST32_MAX;
7849 int_fast32_t e3min = INT_FAST32_MIN;
7850 int_fast64_t e4 = INT_FAST64_MAX;
7851 int_fast64_t e4min = INT_FAST64_MIN;
7852 uint_fast8_t f1 = UINT_FAST8_MAX;
7853 uint_fast16_t f2 = UINT_FAST16_MAX;
7854 uint_fast32_t f3 = UINT_FAST32_MAX;
7855 uint_fast64_t f4 = UINT_FAST64_MAX;
7857 intptr_t g = INTPTR_MAX;
7858 intptr_t gmin = INTPTR_MIN;
7861 uintptr_t h = UINTPTR_MAX;
7863 intmax_t i = INTMAX_MAX;
7864 uintmax_t j = UINTMAX_MAX;
7866 #include <limits.h> /* for CHAR_BIT */
7867 #define TYPE_MINIMUM(t) \
7868 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
7869 #define TYPE_MAXIMUM(t) \
7870 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
7873 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7874 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7876 /* Detect bug in FreeBSD 6.0 / ia64. */
7877 int check_SIG_ATOMIC:
7878 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7879 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7881 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7883 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7884 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7886 /* Detect bug in mingw. */
7888 WINT_MIN == TYPE_MINIMUM (wint_t)
7889 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7892 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7894 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7896 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7898 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7900 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7903 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7906 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7909 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7911 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7912 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7913 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7914 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7915 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7916 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7917 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7918 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7919 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7920 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7921 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7932 if ac_fn_c_try_compile "$LINENO"; then :
7933 if test "$cross_compiling" = yes; then :
7934 gl_cv_header_working_stdint_h=yes
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7941 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
7942 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
7943 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7947 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7948 included before <wchar.h>. */
7960 #define MVAL(macro) MVAL1(macro)
7961 #define MVAL1(expression) #expression
7962 static const char *macro_values[] =
7996 for (mv = macro_values; *mv != NULL; mv++)
7998 const char *value = *mv;
7999 /* Test whether it looks like a cast expression. */
8000 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8001 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8002 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8003 || strncmp (value, "((int)"/*)*/, 6) == 0
8004 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8005 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8014 if ac_fn_c_try_run "$LINENO"; then :
8015 gl_cv_header_working_stdint_h=yes
8017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8018 conftest.$ac_objext conftest.beam conftest.$ac_ext
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8027 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8029 if test "$gl_cv_header_working_stdint_h" = yes; then
8032 for ac_header in sys/inttypes.h sys/bitypes.h
8034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8035 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8036 eval as_val=\$$as_ac_Header
8037 if test "x$as_val" = x""yes; then :
8038 cat >>confdefs.h <<_ACEOF
8039 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8046 if test $ac_cv_header_sys_inttypes_h = yes; then
8047 HAVE_SYS_INTTYPES_H=1
8049 HAVE_SYS_INTTYPES_H=0
8052 if test $ac_cv_header_sys_bitypes_h = yes; then
8053 HAVE_SYS_BITYPES_H=1
8055 HAVE_SYS_BITYPES_H=0
8069 if test $APPLE_UNIVERSAL_BUILD = 0; then
8072 for gltype in ptrdiff_t size_t ; do
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8074 $as_echo_n "checking for bit size of $gltype... " >&6; }
8075 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8076 $as_echo_n "(cached) " >&6
8078 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8079 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8080 included before <wchar.h>. */
8089 #include <limits.h>"; then :
8095 eval gl_cv_bitsizeof_${gltype}=\$result
8098 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8100 $as_echo "$ac_res" >&6; }
8101 eval result=\$gl_cv_bitsizeof_${gltype}
8102 if test $result = unknown; then
8105 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8106 cat >>confdefs.h <<_ACEOF
8107 #define BITSIZEOF_${GLTYPE} $result
8110 eval BITSIZEOF_${GLTYPE}=\$result
8117 for gltype in sig_atomic_t wchar_t wint_t ; do
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8119 $as_echo_n "checking for bit size of $gltype... " >&6; }
8120 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8121 $as_echo_n "(cached) " >&6
8123 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8124 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8125 included before <wchar.h>. */
8134 #include <limits.h>"; then :
8140 eval gl_cv_bitsizeof_${gltype}=\$result
8143 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8145 $as_echo "$ac_res" >&6; }
8146 eval result=\$gl_cv_bitsizeof_${gltype}
8147 if test $result = unknown; then
8150 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8151 cat >>confdefs.h <<_ACEOF
8152 #define BITSIZEOF_${GLTYPE} $result
8155 eval BITSIZEOF_${GLTYPE}=\$result
8161 for gltype in sig_atomic_t wchar_t wint_t ; do
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8163 $as_echo_n "checking whether $gltype is signed... " >&6; }
8164 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8165 $as_echo_n "(cached) " >&6
8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8170 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8171 included before <wchar.h>. */
8180 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8189 if ac_fn_c_try_compile "$LINENO"; then :
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 eval gl_cv_type_${gltype}_signed=\$result
8198 eval ac_res=\$gl_cv_type_${gltype}_signed
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8200 $as_echo "$ac_res" >&6; }
8201 eval result=\$gl_cv_type_${gltype}_signed
8202 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8203 if test "$result" = yes; then
8204 cat >>confdefs.h <<_ACEOF
8205 #define HAVE_SIGNED_${GLTYPE} 1
8208 eval HAVE_SIGNED_${GLTYPE}=1
8210 eval HAVE_SIGNED_${GLTYPE}=0
8215 gl_cv_type_ptrdiff_t_signed=yes
8216 gl_cv_type_size_t_signed=no
8217 if test $APPLE_UNIVERSAL_BUILD = 0; then
8220 for gltype in ptrdiff_t size_t ; do
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8222 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8223 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8224 $as_echo_n "(cached) " >&6
8226 eval gl_cv_type_${gltype}_suffix=no
8227 eval result=\$gl_cv_type_${gltype}_signed
8228 if test "$result" = yes; then
8233 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8236 l) gltype1='long int';;
8237 ll) gltype1='long long int';;
8238 i64) gltype1='__int64';;
8239 u) gltype1='unsigned int';;
8240 ul) gltype1='unsigned long int';;
8241 ull) gltype1='unsigned long long int';;
8242 ui64)gltype1='unsigned __int64';;
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8247 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8248 included before <wchar.h>. */
8258 extern $gltype1 foo;
8267 if ac_fn_c_try_compile "$LINENO"; then :
8268 eval gl_cv_type_${gltype}_suffix=\$glsuf
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 eval result=\$gl_cv_type_${gltype}_suffix
8272 test "$result" != no && break
8275 eval ac_res=\$gl_cv_type_${gltype}_suffix
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8277 $as_echo "$ac_res" >&6; }
8278 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8279 eval result=\$gl_cv_type_${gltype}_suffix
8280 test "$result" = no && result=
8281 eval ${GLTYPE}_SUFFIX=\$result
8282 cat >>confdefs.h <<_ACEOF
8283 #define ${GLTYPE}_SUFFIX $result
8292 for gltype in sig_atomic_t wchar_t wint_t ; do
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8294 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8295 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8296 $as_echo_n "(cached) " >&6
8298 eval gl_cv_type_${gltype}_suffix=no
8299 eval result=\$gl_cv_type_${gltype}_signed
8300 if test "$result" = yes; then
8305 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8308 l) gltype1='long int';;
8309 ll) gltype1='long long int';;
8310 i64) gltype1='__int64';;
8311 u) gltype1='unsigned int';;
8312 ul) gltype1='unsigned long int';;
8313 ull) gltype1='unsigned long long int';;
8314 ui64)gltype1='unsigned __int64';;
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8319 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8320 included before <wchar.h>. */
8330 extern $gltype1 foo;
8339 if ac_fn_c_try_compile "$LINENO"; then :
8340 eval gl_cv_type_${gltype}_suffix=\$glsuf
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 eval result=\$gl_cv_type_${gltype}_suffix
8344 test "$result" != no && break
8347 eval ac_res=\$gl_cv_type_${gltype}_suffix
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8349 $as_echo "$ac_res" >&6; }
8350 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8351 eval result=\$gl_cv_type_${gltype}_suffix
8352 test "$result" = no && result=
8353 eval ${GLTYPE}_SUFFIX=\$result
8354 cat >>confdefs.h <<_ACEOF
8355 #define ${GLTYPE}_SUFFIX $result
8366 # Code from module string:
8370 # Code from module warn-on-use:
8371 # Code from module wchar:
8394 if test $gl_cv_have_include_next = yes; then
8395 gl_cv_next_wchar_h='<'wchar.h'>'
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
8398 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
8399 if test "${gl_cv_next_wchar_h+set}" = set; then :
8400 $as_echo_n "(cached) " >&6
8403 if test $ac_cv_header_wchar_h = yes; then
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8410 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8411 *) gl_absname_cpp="$ac_cpp" ;;
8413 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8414 sed -n '\#/wchar.h#{
8415 s#.*"\(.*/wchar.h\)".*#\1#
8421 gl_cv_next_wchar_h='<'wchar.h'>'
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
8426 $as_echo "$gl_cv_next_wchar_h" >&6; }
8428 NEXT_WCHAR_H=$gl_cv_next_wchar_h
8430 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8431 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8432 gl_next_as_first_directive='<'wchar.h'>'
8434 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8435 gl_next_as_first_directive=$gl_cv_next_wchar_h
8437 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
8441 if test $ac_cv_header_wchar_h = yes; then
8449 if test $gt_cv_c_wint_t = yes; then
8457 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
8458 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8460 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8461 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8462 $as_echo_n "(cached) " >&6
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8467 /* Some systems require additional headers. */
8469 # include <stddef.h>
8484 if ac_fn_c_try_compile "$LINENO"; then :
8485 eval "$as_gl_Symbol=yes"
8487 eval "$as_gl_Symbol=no"
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491 eval ac_res=\$$as_gl_Symbol
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8493 $as_echo "$ac_res" >&6; }
8494 eval as_val=\$$as_gl_Symbol
8495 if test "x$as_val" = x""yes; then :
8496 cat >>confdefs.h <<_ACEOF
8497 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8500 eval ac_cv_have_decl_$gl_func=yes
8505 # Code from module dummy:
8506 # End of code from modules
8527 gl_source_base='tests'
8528 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
8530 gl_module_indicator_condition=$gltests_WITNESS
8540 LIBGNU_LIBDEPS="$gl_libdeps"
8542 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
8546 # For Makefile dependencies.
8548 if test x"$STDINT_H" != x; then
8549 GNULIB_STDINT_H=gnulib/$STDINT_H
8555 cat >>confdefs.h <<_ACEOF
8556 #define PACKAGE "$PACKAGE"
8561 # We never need to detect it in this sub-configure.
8562 # But preserve it for config.status --recheck.
8566 MAKEINFO_EXTRA_FLAGS=""
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
8568 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
8569 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
8570 $as_echo_n "(cached) " >&6
8572 echo '@clicksequence{a @click{} b}' >conftest.texinfo
8573 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
8574 gdb_cv_have_makeinfo_click=yes
8576 gdb_cv_have_makeinfo_click=no
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
8580 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
8581 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
8582 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
8586 # GDB does not use automake, but gnulib does. This line lets us
8587 # generate its Makefile.in.
8588 am__api_version='1.11'
8590 # Find a good install program. We prefer a C program (faster),
8591 # so one script is as good as another. But avoid the broken or
8592 # incompatible versions:
8593 # SysV /etc/install, /usr/sbin/install
8594 # SunOS /usr/etc/install
8595 # IRIX /sbin/install
8597 # AmigaOS /C/install, which installs bootblocks on floppy discs
8598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8601 # OS/2's system install, which has a completely different semantic
8602 # ./install, which can be erroneously created by make from ./install.sh.
8603 # Reject install programs that cannot install multiple files.
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8605 $as_echo_n "checking for a BSD-compatible install... " >&6; }
8606 if test -z "$INSTALL"; then
8607 if test "${ac_cv_path_install+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614 test -z "$as_dir" && as_dir=.
8615 # Account for people who put trailing slashes in PATH elements.
8616 case $as_dir/ in #((
8617 ./ | .// | /[cC]/* | \
8618 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8619 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8622 # OSF1 and SCO ODT 3.0 have their own names for install.
8623 # Don't use installbsd from OSF since it installs stuff as root
8625 for ac_prog in ginstall scoinst install; do
8626 for ac_exec_ext in '' $ac_executable_extensions; do
8627 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
8628 if test $ac_prog = install &&
8629 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8630 # AIX install. It has an incompatible calling convention.
8632 elif test $ac_prog = install &&
8633 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8634 # program-specific install script used by HP pwplus--don't use.
8637 rm -rf conftest.one conftest.two conftest.dir
8638 echo one > conftest.one
8639 echo two > conftest.two
8641 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8642 test -s conftest.one && test -s conftest.two &&
8643 test -s conftest.dir/conftest.one &&
8644 test -s conftest.dir/conftest.two
8646 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8659 rm -rf conftest.one conftest.two conftest.dir
8662 if test "${ac_cv_path_install+set}" = set; then
8663 INSTALL=$ac_cv_path_install
8665 # As a last resort, use the slow shell script. Don't cache a
8666 # value for INSTALL within a source directory, because that will
8667 # break other packages using the cache if that directory is
8668 # removed, or if the value is a relative name.
8669 INSTALL=$ac_install_sh
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8673 $as_echo "$INSTALL" >&6; }
8675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8676 # It thinks the first close brace ends the variable substitution.
8677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8684 $as_echo_n "checking whether build environment is sane... " >&6; }
8687 echo timestamp > conftest.file
8688 # Reject unsafe characters in $srcdir or the absolute working directory
8689 # name. Accept space and tab only in the latter.
8693 *[\\\"\#\$\&\'\`$am_lf]*)
8694 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
8697 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
8698 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
8701 # Do `set' in a subshell so we don't clobber the current shell's
8702 # arguments. Must try -L first in case configure is actually a
8703 # symlink; some systems play weird games with the mod time of symlinks
8704 # (eg FreeBSD returns the mod time of the symlink's containing
8707 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
8708 if test "$*" = "X"; then
8710 set X `ls -t "$srcdir/configure" conftest.file`
8713 if test "$*" != "X $srcdir/configure conftest.file" \
8714 && test "$*" != "X conftest.file $srcdir/configure"; then
8716 # If neither matched, then we have a broken ls. This can happen
8717 # if, for instance, CONFIG_SHELL is bash and it inherits a
8718 # broken ls alias from the environment. This has actually
8719 # happened. Such a system could not be considered "sane".
8720 as_fn_error "ls -t appears to fail. Make sure there is not a broken
8721 alias in your environment" "$LINENO" 5
8724 test "$2" = conftest.file
8730 as_fn_error "newly created file is older than distributed files!
8731 Check your system clock" "$LINENO" 5
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8734 $as_echo "yes" >&6; }
8735 test "$program_prefix" != NONE &&
8736 program_transform_name="s&^&$program_prefix&;$program_transform_name"
8737 # Use a double $ so make ignores it.
8738 test "$program_suffix" != NONE &&
8739 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8740 # Double any \ or $.
8741 # By default was `s,x,x', remove it if useless.
8742 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
8743 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
8745 # expand $ac_aux_dir to an absolute path
8746 am_aux_dir=`cd $ac_aux_dir && pwd`
8748 if test x"${MISSING+set}" != xset; then
8751 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
8753 MISSING="\${SHELL} $am_aux_dir/missing" ;;
8756 # Use eval to expand $SHELL
8757 if eval "$MISSING --run true"; then
8758 am_missing_run="$MISSING --run "
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
8762 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8765 if test x"${install_sh}" != xset; then
8768 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
8770 install_sh="\${SHELL} $am_aux_dir/install-sh"
8774 # Installed binaries are usually stripped using `strip' when the user
8775 # run `make install-strip'. However `strip' might not be the right
8776 # tool to use in cross-compilation environments, therefore Automake
8777 # will honor the `STRIP' environment variable to overrule this program.
8778 if test "$cross_compiling" != no; then
8779 if test -n "$ac_tool_prefix"; then
8780 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8781 set dummy ${ac_tool_prefix}strip; ac_word=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if test "${ac_cv_prog_STRIP+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8787 if test -n "$STRIP"; then
8788 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 test -z "$as_dir" && as_dir=.
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8797 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807 STRIP=$ac_cv_prog_STRIP
8808 if test -n "$STRIP"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8810 $as_echo "$STRIP" >&6; }
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8818 if test -z "$ac_cv_prog_STRIP"; then
8820 # Extract the first word of "strip", so it can be a program name with args.
8821 set dummy strip; ac_word=$2
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823 $as_echo_n "checking for $ac_word... " >&6; }
8824 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8827 if test -n "$ac_ct_STRIP"; then
8828 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834 test -z "$as_dir" && as_dir=.
8835 for ac_exec_ext in '' $ac_executable_extensions; do
8836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8837 ac_cv_prog_ac_ct_STRIP="strip"
8838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8848 if test -n "$ac_ct_STRIP"; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8850 $as_echo "$ac_ct_STRIP" >&6; }
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8856 if test "x$ac_ct_STRIP" = x; then
8859 case $cross_compiling:$ac_tool_warned in
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8863 ac_tool_warned=yes ;;
8868 STRIP="$ac_cv_prog_STRIP"
8872 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8875 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
8876 if test -z "$MKDIR_P"; then
8877 if test "${ac_cv_path_mkdir+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
8880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8881 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8884 test -z "$as_dir" && as_dir=.
8885 for ac_prog in mkdir gmkdir; do
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
8888 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
8889 'mkdir (GNU coreutils) '* | \
8890 'mkdir (coreutils) '* | \
8891 'mkdir (fileutils) '4.1*)
8892 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
8902 if test "${ac_cv_path_mkdir+set}" = set; then
8903 MKDIR_P="$ac_cv_path_mkdir -p"
8905 # As a last resort, use the slow shell script. Don't cache a
8906 # value for MKDIR_P within a source directory, because that will
8907 # break other packages using the cache if that directory is
8908 # removed, or if the value is a relative name.
8909 test -d ./--version && rmdir ./--version
8910 MKDIR_P="$ac_install_sh -d"
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8914 $as_echo "$MKDIR_P" >&6; }
8919 [\\/$]* | ?:[\\/]*) ;;
8920 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
8923 for ac_prog in gawk mawk nawk awk
8925 # Extract the first word of "$ac_prog", so it can be a program name with args.
8926 set dummy $ac_prog; ac_word=$2
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928 $as_echo_n "checking for $ac_word... " >&6; }
8929 if test "${ac_cv_prog_AWK+set}" = set; then :
8930 $as_echo_n "(cached) " >&6
8932 if test -n "$AWK"; then
8933 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939 test -z "$as_dir" && as_dir=.
8940 for ac_exec_ext in '' $ac_executable_extensions; do
8941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8942 ac_cv_prog_AWK="$ac_prog"
8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 if test -n "$AWK"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8955 $as_echo "$AWK" >&6; }
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958 $as_echo "no" >&6; }
8962 test -n "$AWK" && break
8965 ac_config_commands="$ac_config_commands depfiles"
8968 am_make=${MAKE-make}
8969 cat > confinc << 'END'
8971 @echo this is the am__doit target
8974 # If we don't find an include directive, just comment out the code.
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8976 $as_echo_n "checking for style of include used by $am_make... " >&6; }
8980 # First try GNU make style include.
8981 echo "include confinc" > confmf
8982 # Ignore all kinds of additional output from `make'.
8983 case `$am_make -s -f confmf 2> /dev/null` in #(
8984 *the\ am__doit\ target*)
8990 # Now try BSD make style include.
8991 if test "$am__include" = "#"; then
8992 echo '.include "confinc"' > confmf
8993 case `$am_make -s -f confmf 2> /dev/null` in #(
8994 *the\ am__doit\ target*)
8995 am__include=.include
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
9004 $as_echo "$_am_result" >&6; }
9005 rm -f confinc confmf
9007 # Check whether --enable-dependency-tracking was given.
9008 if test "${enable_dependency_tracking+set}" = set; then :
9009 enableval=$enable_dependency_tracking;
9012 if test "x$enable_dependency_tracking" != xno; then
9013 am_depcomp="$ac_aux_dir/depcomp"
9016 if test "x$enable_dependency_tracking" != xno; then
9025 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9026 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9027 # is not polluted with repeated "-I."
9028 am__isrc=' -I$(srcdir)'
9029 # test to see if srcdir already configured
9030 if test -f $srcdir/config.status; then
9031 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9035 # test whether we have cygpath
9036 if test -z "$CYGPATH_W"; then
9037 if (cygpath --version) >/dev/null 2>/dev/null; then
9038 CYGPATH_W='cygpath -w'
9045 # Define the identity of the package.
9047 VERSION=UNUSED-VERSION
9050 # Some tools Automake needs.
9052 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9055 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9058 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9061 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9064 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9066 # We need awk for the "check" target. The system "awk" is bad on
9068 # Always define AMTAR for backward compatibility.
9070 AMTAR=${AMTAR-"${am_missing_run}tar"}
9072 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
9077 depcc="$CC" am_compiler_list=
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9080 $as_echo_n "checking dependency style of $depcc... " >&6; }
9081 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
9082 $as_echo_n "(cached) " >&6
9084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9085 # We make a subdir and do the tests there. Otherwise we can end up
9086 # making bogus files that we don't know about and never remove. For
9087 # instance it was reported that on HP-UX the gcc test will end up
9088 # making a dummy file named `D' -- because `-MD' means `put the output
9091 # Copy depcomp to subdir because otherwise we won't find it if we're
9092 # using a relative directory.
9093 cp "$am_depcomp" conftest.dir
9095 # We will build objects and dependencies in a subdirectory because
9096 # it helps to detect inapplicable dependency modes. For instance
9097 # both Tru64's cc and ICC support -MD to output dependencies as a
9098 # side effect of compilation, but ICC will put the dependencies in
9099 # the current directory while Tru64 will put them in the object
9103 am_cv_CC_dependencies_compiler_type=none
9104 if test "$am_compiler_list" = ""; then
9105 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9108 case " $depcc " in #(
9109 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9112 for depmode in $am_compiler_list; do
9113 # Setup a source with many dependencies, because some compilers
9114 # like to wrap large dependency lists on column 80 (with \), and
9115 # we should not choose a depcomp mode which is confused by this.
9117 # We need to recreate these files for each test, as the compiler may
9118 # overwrite some of them when testing with obscure command lines.
9119 # This happens at least with the AIX C compiler.
9121 for i in 1 2 3 4 5 6; do
9122 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9123 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9124 # Solaris 8's {/usr,}/bin/sh.
9125 touch sub/conftst$i.h
9127 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9129 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9130 # mode. It turns out that the SunPro C++ compiler does not properly
9131 # handle `-M -o', and we need to detect this. Also, some Intel
9132 # versions had trouble with output in subdirs
9133 am__obj=sub/conftest.${OBJEXT-o}
9134 am__minus_obj="-o $am__obj"
9137 # This depmode causes a compiler race in universal mode.
9138 test "$am__universal" = false || continue
9141 # after this tag, mechanisms are not by side-effect, so they'll
9142 # only be used when explicitly requested
9143 if test "x$enable_dependency_tracking" = xyes; then
9149 msvisualcpp | msvcmsys)
9150 # This compiler won't grok `-c -o', but also, the minuso test has
9151 # not run yet. These depmodes are late enough in the game, and
9152 # so weak that their functioning should not be impacted.
9153 am__obj=conftest.${OBJEXT-o}
9158 if depmode=$depmode \
9159 source=sub/conftest.c object=$am__obj \
9160 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9161 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9162 >/dev/null 2>conftest.err &&
9163 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9164 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9165 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9166 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9167 # icc doesn't choke on unknown options, it will just issue warnings
9168 # or remarks (even with -Werror). So we grep stderr for any message
9169 # that says an option was ignored or not supported.
9170 # When given -MP, icc 7.0 and 7.1 complain thusly:
9171 # icc: Command line warning: ignoring option '-M'; no argument required
9172 # The diagnosis changed in icc 8.0:
9173 # icc: Command line remark: option '-MP' not supported
9174 if (grep 'ignoring option' conftest.err ||
9175 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9176 am_cv_CC_dependencies_compiler_type=$depmode
9185 am_cv_CC_dependencies_compiler_type=none
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9190 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9191 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9194 test "x$enable_dependency_tracking" != xno \
9195 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9197 am__fastdepCC_FALSE='#'
9199 am__fastdepCC_TRUE='#'
9200 am__fastdepCC_FALSE=
9208 # Check whether --with-separate-debug-dir was given.
9209 if test "${with_separate_debug_dir+set}" = set; then :
9210 withval=$with_separate_debug_dir;
9213 DEBUGDIR=${libdir}/debug
9217 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9218 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9219 ac_define_dir=`eval echo $DEBUGDIR`
9220 ac_define_dir=`eval echo $ac_define_dir`
9222 cat >>confdefs.h <<_ACEOF
9223 #define DEBUGDIR "$ac_define_dir"
9229 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9230 if test "x$prefix" = xNONE; then
9231 test_prefix=/usr/local
9236 test_prefix=$exec_prefix
9239 case ${ac_define_dir} in
9240 "${test_prefix}"|"${test_prefix}/"*|\
9241 '${exec_prefix}'|'${exec_prefix}/'*)
9246 cat >>confdefs.h <<_ACEOF
9247 #define DEBUGDIR_RELOCATABLE $value
9253 # We can't pass paths as command line arguments.
9254 # Mingw32 tries to be clever and will convert the paths for us.
9255 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
9256 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
9257 # This breaks GDB's relocatable path conversions since paths passed in
9258 # config.h would not get so translated, the path prefixes no longer match.
9260 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9261 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9262 ac_define_dir=`eval echo $bindir`
9263 ac_define_dir=`eval echo $ac_define_dir`
9265 cat >>confdefs.h <<_ACEOF
9266 #define BINDIR "$ac_define_dir"
9271 # GDB's datadir relocation
9275 # Check whether --with-gdb-datadir was given.
9276 if test "${with_gdb_datadir+set}" = set; then :
9277 withval=$with_gdb_datadir;
9278 GDB_DATADIR=$withval
9280 GDB_DATADIR=${datadir}/gdb
9284 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9285 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9286 ac_define_dir=`eval echo $GDB_DATADIR`
9287 ac_define_dir=`eval echo $ac_define_dir`
9289 cat >>confdefs.h <<_ACEOF
9290 #define GDB_DATADIR "$ac_define_dir"
9296 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9297 if test "x$prefix" = xNONE; then
9298 test_prefix=/usr/local
9303 test_prefix=$exec_prefix
9306 case ${ac_define_dir} in
9307 "${test_prefix}"|"${test_prefix}/"*|\
9308 '${exec_prefix}'|'${exec_prefix}/'*)
9313 cat >>confdefs.h <<_ACEOF
9314 #define GDB_DATADIR_RELOCATABLE $value
9321 # Check whether --with-relocated-sources was given.
9322 if test "${with_relocated_sources+set}" = set; then :
9323 withval=$with_relocated_sources; reloc_srcdir="${withval}"
9325 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9326 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9327 ac_define_dir=`eval echo $reloc_srcdir`
9328 ac_define_dir=`eval echo $ac_define_dir`
9330 cat >>confdefs.h <<_ACEOF
9331 #define RELOC_SRCDIR "$ac_define_dir"
9341 subdirs="$subdirs testsuite"
9344 # Check whether to support alternative target configurations
9345 # Check whether --enable-targets was given.
9346 if test "${enable_targets+set}" = set; then :
9347 enableval=$enable_targets; case "${enableval}" in
9348 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
9350 no) enable_targets= ;;
9351 *) enable_targets=$enableval ;;
9356 # Check whether to enable 64-bit support on 32-bit hosts
9357 # Check whether --enable-64-bit-bfd was given.
9358 if test "${enable_64_bit_bfd+set}" = set; then :
9359 enableval=$enable_64_bit_bfd; case "${enableval}" in
9362 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
9368 # Provide defaults for some variables set by the per-host and per-target
9370 gdb_host_obs=posix-hdep.o
9372 if test "${target}" = "${host}"; then
9378 . $srcdir/configure.host
9380 # Accumulate some settings from configure.tgt over all enabled targets
9385 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9387 if test "$targ_alias" = "all"; then
9390 # Canonicalize the secondary target names.
9391 result=`$ac_config_sub $targ_alias 2>/dev/null`
9392 if test -n "$result"; then
9398 . ${srcdir}/configure.tgt
9400 if test -z "${gdb_target_obs}"; then :
9401 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
9404 # Target-specific object files
9405 for i in ${gdb_target_obs}; do
9406 case " $TARGET_OBS " in
9409 TARGET_OBS="$TARGET_OBS ${i}"
9414 # Check whether this target needs 64-bit CORE_ADDR
9415 if test x${want64} = xfalse; then
9416 . ${srcdir}/../bfd/config.bfd
9421 if test x${all_targets} = xtrue; then
9423 # We want all 64-bit targets if we either:
9424 # - run on a 64-bit host or
9425 # - already require 64-bit support for some other target or
9426 # - the --enable-64-bit-bfd option was supplied
9427 # Otherwise we only support all 32-bit targets.
9429 # NOTE: This test must be in sync with the corresponding
9432 if test x${want64} = xfalse; then
9433 # The cast to long int works around a bug in the HP C Compiler
9434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9436 # This bug is HP SR number 8606223364.
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9438 $as_echo_n "checking size of long... " >&6; }
9439 if test "${ac_cv_sizeof_long+set}" = set; then :
9440 $as_echo_n "(cached) " >&6
9442 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
9445 if test "$ac_cv_type_long" = yes; then
9446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9448 { as_fn_set_status 77
9449 as_fn_error "cannot compute sizeof (long)
9450 See \`config.log' for more details." "$LINENO" 5; }; }
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9458 $as_echo "$ac_cv_sizeof_long" >&6; }
9462 cat >>confdefs.h <<_ACEOF
9463 #define SIZEOF_LONG $ac_cv_sizeof_long
9467 if test "x${ac_cv_sizeof_long}" = "x8"; then
9471 if test x${want64} = xtrue; then
9472 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
9474 TARGET_OBS='$(ALL_TARGET_OBS)'
9480 # For other settings, only the main target counts.
9484 targ=$target; . ${srcdir}/configure.tgt
9486 # Fetch the default architecture and default target vector from BFD.
9487 targ=$target; . $srcdir/../bfd/config.bfd
9489 # We only want the first architecture, so strip off the others if
9490 # there is more than one.
9491 targ_archs=`echo $targ_archs | sed 's/ .*//'`
9493 if test "x$targ_archs" != x; then
9495 cat >>confdefs.h <<_ACEOF
9496 #define DEFAULT_BFD_ARCH $targ_archs
9500 if test "x$targ_defvec" != x; then
9502 cat >>confdefs.h <<_ACEOF
9503 #define DEFAULT_BFD_VEC $targ_defvec
9508 # The CLI cannot be disabled yet, but may be in the future.
9511 # Check whether --enable-gdbcli was given.
9512 if test "${enable_gdbcli+set}" = set; then :
9513 enableval=$enable_gdbcli; case $enableval in
9517 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
9519 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
9525 if test x"$enable_gdbcli" = xyes; then
9526 if test -d $srcdir/cli; then
9527 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
9528 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
9529 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
9530 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
9535 # Check whether --enable-gdbmi was given.
9536 if test "${enable_gdbmi+set}" = set; then :
9537 enableval=$enable_gdbmi; case $enableval in
9541 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
9547 if test x"$enable_gdbmi" = xyes; then
9548 if test -d $srcdir/mi; then
9549 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
9550 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
9551 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
9552 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
9557 # Check whether --enable-tui was given.
9558 if test "${enable_tui+set}" = set; then :
9559 enableval=$enable_tui; case $enableval in
9563 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
9571 # Check whether --enable-gdbtk was given.
9572 if test "${enable_gdbtk+set}" = set; then :
9573 enableval=$enable_gdbtk; case $enableval in
9577 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
9580 if test -d $srcdir/gdbtk; then
9587 # We unconditionally disable gdbtk tests on selected platforms.
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
9591 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
9595 # Libunwind support for ia64.
9598 # Check whether --with-libunwind-ia64 was given.
9599 if test "${with_libunwind_ia64+set}" = set; then :
9600 withval=$with_libunwind_ia64;
9602 with_libunwind_ia64=auto
9606 # Backward compatibility option.
9607 if test "${with_libunwind+set}" = set; then
9608 if test x"$with_libunwind_ia64" != xauto; then
9609 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
9612 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
9613 with_libunwind_ia64="$with_libunwind"
9616 case "$with_libunwind_ia64" in
9620 for ac_header in libunwind-ia64.h
9622 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
9623 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
9624 cat >>confdefs.h <<_ACEOF
9625 #define HAVE_LIBUNWIND_IA64_H 1
9632 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
9635 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
9639 if test x"$with_libunwind_ia64" = xyes; then
9640 for ac_header in libunwind-ia64.h
9642 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
9643 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
9644 cat >>confdefs.h <<_ACEOF
9645 #define HAVE_LIBUNWIND_IA64_H 1
9652 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
9653 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
9655 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
9656 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
9657 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
9662 # Check whether --with-curses was given.
9663 if test "${with_curses+set}" = set; then :
9664 withval=$with_curses; opt_curses=$withval
9669 if test "$opt_curses" = "yes"; then
9673 # Profiling support.
9674 # Check whether --enable-profiling was given.
9675 if test "${enable_profiling+set}" = set; then :
9676 enableval=$enable_profiling; case $enableval in
9680 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
9687 for ac_func in monstartup _mcleanup
9689 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9690 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9691 eval as_val=\$$as_ac_var
9692 if test "x$as_val" = x""yes; then :
9693 cat >>confdefs.h <<_ACEOF
9694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
9701 $as_echo_n "checking for _etext... " >&6; }
9702 if test "${ac_cv_var__etext+set}" = set; then :
9703 $as_echo_n "(cached) " >&6
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9718 if ac_fn_c_try_link "$LINENO"; then :
9719 ac_cv_var__etext=yes
9723 rm -f core conftest.err conftest.$ac_objext \
9724 conftest$ac_exeext conftest.$ac_ext
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
9727 $as_echo "$ac_cv_var__etext" >&6; }
9728 if test $ac_cv_var__etext = yes; then
9730 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
9734 $as_echo_n "checking for etext... " >&6; }
9735 if test "${ac_cv_var_etext+set}" = set; then :
9736 $as_echo_n "(cached) " >&6
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9751 if ac_fn_c_try_link "$LINENO"; then :
9756 rm -f core conftest.err conftest.$ac_objext \
9757 conftest$ac_exeext conftest.$ac_ext
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
9760 $as_echo "$ac_cv_var_etext" >&6; }
9761 if test $ac_cv_var_etext = yes; then
9763 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
9766 if test "$enable_profiling" = yes ; then
9767 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
9768 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
9771 OLD_CFLAGS="$CFLAGS"
9772 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
9775 $as_echo_n "checking whether $CC supports -pg... " >&6; }
9776 if test "${ac_cv_cc_supports_pg+set}" = set; then :
9777 $as_echo_n "(cached) " >&6
9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h. */
9790 if ac_fn_c_try_compile "$LINENO"; then :
9791 ac_cv_cc_supports_pg=yes
9793 ac_cv_cc_supports_pg=no
9795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
9798 $as_echo "$ac_cv_cc_supports_pg" >&6; }
9800 if test $ac_cv_cc_supports_pg = no; then
9801 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
9804 CFLAGS="$OLD_CFLAGS"
9809 # Check whether --with-pkgversion was given.
9810 if test "${with_pkgversion+set}" = set; then :
9811 withval=$with_pkgversion; case "$withval" in
9812 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
9814 *) PKGVERSION="($withval) " ;;
9825 # Check whether --with-bugurl was given.
9826 if test "${with_bugurl+set}" = set; then :
9827 withval=$with_bugurl; case "$withval" in
9828 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
9831 *) BUGURL="$withval"
9835 BUGURL="http://www.gnu.org/software/gdb/bugs/"
9845 REPORT_BUGS_TO="<$BUGURL>"
9846 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
9853 cat >>confdefs.h <<_ACEOF
9854 #define PKGVERSION "$PKGVERSION"
9858 cat >>confdefs.h <<_ACEOF
9859 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
9863 # --------------------- #
9864 # Checks for programs. #
9865 # --------------------- #
9867 for ac_prog in gawk mawk nawk awk
9869 # Extract the first word of "$ac_prog", so it can be a program name with args.
9870 set dummy $ac_prog; ac_word=$2
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9872 $as_echo_n "checking for $ac_word... " >&6; }
9873 if test "${ac_cv_prog_AWK+set}" = set; then :
9874 $as_echo_n "(cached) " >&6
9876 if test -n "$AWK"; then
9877 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9883 test -z "$as_dir" && as_dir=.
9884 for ac_exec_ext in '' $ac_executable_extensions; do
9885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9886 ac_cv_prog_AWK="$ac_prog"
9887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9897 if test -n "$AWK"; then
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9899 $as_echo "$AWK" >&6; }
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902 $as_echo "no" >&6; }
9906 test -n "$AWK" && break
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9911 $as_echo_n "checking whether ln -s works... " >&6; }
9913 if test "$LN_S" = "ln -s"; then
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9915 $as_echo "yes" >&6; }
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9918 $as_echo "no, using $LN_S" >&6; }
9921 if test -n "$ac_tool_prefix"; then
9922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925 $as_echo_n "checking for $ac_word... " >&6; }
9926 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9929 if test -n "$RANLIB"; then
9930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 test -z "$as_dir" && as_dir=.
9937 for ac_exec_ext in '' $ac_executable_extensions; do
9938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9949 RANLIB=$ac_cv_prog_RANLIB
9950 if test -n "$RANLIB"; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9952 $as_echo "$RANLIB" >&6; }
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9960 if test -z "$ac_cv_prog_RANLIB"; then
9961 ac_ct_RANLIB=$RANLIB
9962 # Extract the first word of "ranlib", so it can be a program name with args.
9963 set dummy ranlib; ac_word=$2
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9965 $as_echo_n "checking for $ac_word... " >&6; }
9966 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9967 $as_echo_n "(cached) " >&6
9969 if test -n "$ac_ct_RANLIB"; then
9970 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976 test -z "$as_dir" && as_dir=.
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9979 ac_cv_prog_ac_ct_RANLIB="ranlib"
9980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9989 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9990 if test -n "$ac_ct_RANLIB"; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9992 $as_echo "$ac_ct_RANLIB" >&6; }
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995 $as_echo "no" >&6; }
9998 if test "x$ac_ct_RANLIB" = x; then
10001 case $cross_compiling:$ac_tool_warned in
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10005 ac_tool_warned=yes ;;
10007 RANLIB=$ac_ct_RANLIB
10010 RANLIB="$ac_cv_prog_RANLIB"
10013 for ac_prog in 'bison -y' byacc
10015 # Extract the first word of "$ac_prog", so it can be a program name with args.
10016 set dummy $ac_prog; ac_word=$2
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018 $as_echo_n "checking for $ac_word... " >&6; }
10019 if test "${ac_cv_prog_YACC+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
10022 if test -n "$YACC"; then
10023 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026 for as_dir in $PATH
10029 test -z "$as_dir" && as_dir=.
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10032 ac_cv_prog_YACC="$ac_prog"
10033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042 YACC=$ac_cv_prog_YACC
10043 if test -n "$YACC"; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10045 $as_echo "$YACC" >&6; }
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048 $as_echo "no" >&6; }
10052 test -n "$YACC" && break
10054 test -n "$YACC" || YACC="yacc"
10057 if test -n "$ac_tool_prefix"; then
10058 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10059 set dummy ${ac_tool_prefix}ar; ac_word=$2
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if test "${ac_cv_prog_AR+set}" = set; then :
10063 $as_echo_n "(cached) " >&6
10065 if test -n "$AR"; then
10066 ac_cv_prog_AR="$AR" # Let the user override the test.
10068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069 for as_dir in $PATH
10072 test -z "$as_dir" && as_dir=.
10073 for ac_exec_ext in '' $ac_executable_extensions; do
10074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10075 ac_cv_prog_AR="${ac_tool_prefix}ar"
10076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 if test -n "$AR"; then
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10088 $as_echo "$AR" >&6; }
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10091 $as_echo "no" >&6; }
10096 if test -z "$ac_cv_prog_AR"; then
10098 # Extract the first word of "ar", so it can be a program name with args.
10099 set dummy ar; ac_word=$2
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10101 $as_echo_n "checking for $ac_word... " >&6; }
10102 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10103 $as_echo_n "(cached) " >&6
10105 if test -n "$ac_ct_AR"; then
10106 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10115 ac_cv_prog_ac_ct_AR="ar"
10116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10125 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10126 if test -n "$ac_ct_AR"; then
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10128 $as_echo "$ac_ct_AR" >&6; }
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10134 if test "x$ac_ct_AR" = x; then
10137 case $cross_compiling:$ac_tool_warned in
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10141 ac_tool_warned=yes ;;
10146 AR="$ac_cv_prog_AR"
10149 if test -n "$ac_tool_prefix"; then
10150 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10151 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10153 $as_echo_n "checking for $ac_word... " >&6; }
10154 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
10155 $as_echo_n "(cached) " >&6
10157 if test -n "$DLLTOOL"; then
10158 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161 for as_dir in $PATH
10164 test -z "$as_dir" && as_dir=.
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10167 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10177 DLLTOOL=$ac_cv_prog_DLLTOOL
10178 if test -n "$DLLTOOL"; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10180 $as_echo "$DLLTOOL" >&6; }
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183 $as_echo "no" >&6; }
10188 if test -z "$ac_cv_prog_DLLTOOL"; then
10189 ac_ct_DLLTOOL=$DLLTOOL
10190 # Extract the first word of "dlltool", so it can be a program name with args.
10191 set dummy dlltool; ac_word=$2
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193 $as_echo_n "checking for $ac_word... " >&6; }
10194 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10197 if test -n "$ac_ct_DLLTOOL"; then
10198 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10201 for as_dir in $PATH
10204 test -z "$as_dir" && as_dir=.
10205 for ac_exec_ext in '' $ac_executable_extensions; do
10206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10207 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10218 if test -n "$ac_ct_DLLTOOL"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10220 $as_echo "$ac_ct_DLLTOOL" >&6; }
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10226 if test "x$ac_ct_DLLTOOL" = x; then
10229 case $cross_compiling:$ac_tool_warned in
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10233 ac_tool_warned=yes ;;
10235 DLLTOOL=$ac_ct_DLLTOOL
10238 DLLTOOL="$ac_cv_prog_DLLTOOL"
10241 if test -n "$ac_tool_prefix"; then
10242 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10243 set dummy ${ac_tool_prefix}windres; ac_word=$2
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10245 $as_echo_n "checking for $ac_word... " >&6; }
10246 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10247 $as_echo_n "(cached) " >&6
10249 if test -n "$WINDRES"; then
10250 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in $PATH
10256 test -z "$as_dir" && as_dir=.
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10259 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10269 WINDRES=$ac_cv_prog_WINDRES
10270 if test -n "$WINDRES"; then
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10272 $as_echo "$WINDRES" >&6; }
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 $as_echo "no" >&6; }
10280 if test -z "$ac_cv_prog_WINDRES"; then
10281 ac_ct_WINDRES=$WINDRES
10282 # Extract the first word of "windres", so it can be a program name with args.
10283 set dummy windres; ac_word=$2
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10285 $as_echo_n "checking for $ac_word... " >&6; }
10286 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10287 $as_echo_n "(cached) " >&6
10289 if test -n "$ac_ct_WINDRES"; then
10290 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10293 for as_dir in $PATH
10296 test -z "$as_dir" && as_dir=.
10297 for ac_exec_ext in '' $ac_executable_extensions; do
10298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10299 ac_cv_prog_ac_ct_WINDRES="windres"
10300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10309 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10310 if test -n "$ac_ct_WINDRES"; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10312 $as_echo "$ac_ct_WINDRES" >&6; }
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315 $as_echo "no" >&6; }
10318 if test "x$ac_ct_WINDRES" = x; then
10321 case $cross_compiling:$ac_tool_warned in
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10325 ac_tool_warned=yes ;;
10327 WINDRES=$ac_ct_WINDRES
10330 WINDRES="$ac_cv_prog_WINDRES"
10334 # Needed for GNU/Hurd.
10335 if test -n "$ac_tool_prefix"; then
10336 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
10337 set dummy ${ac_tool_prefix}mig; ac_word=$2
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10339 $as_echo_n "checking for $ac_word... " >&6; }
10340 if test "${ac_cv_prog_MIG+set}" = set; then :
10341 $as_echo_n "(cached) " >&6
10343 if test -n "$MIG"; then
10344 ac_cv_prog_MIG="$MIG" # Let the user override the test.
10346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347 for as_dir in $PATH
10350 test -z "$as_dir" && as_dir=.
10351 for ac_exec_ext in '' $ac_executable_extensions; do
10352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10353 ac_cv_prog_MIG="${ac_tool_prefix}mig"
10354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 MIG=$ac_cv_prog_MIG
10364 if test -n "$MIG"; then
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
10366 $as_echo "$MIG" >&6; }
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369 $as_echo "no" >&6; }
10374 if test -z "$ac_cv_prog_MIG"; then
10376 # Extract the first word of "mig", so it can be a program name with args.
10377 set dummy mig; ac_word=$2
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10379 $as_echo_n "checking for $ac_word... " >&6; }
10380 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
10381 $as_echo_n "(cached) " >&6
10383 if test -n "$ac_ct_MIG"; then
10384 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
10386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387 for as_dir in $PATH
10390 test -z "$as_dir" && as_dir=.
10391 for ac_exec_ext in '' $ac_executable_extensions; do
10392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10393 ac_cv_prog_ac_ct_MIG="mig"
10394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10403 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
10404 if test -n "$ac_ct_MIG"; then
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
10406 $as_echo "$ac_ct_MIG" >&6; }
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409 $as_echo "no" >&6; }
10412 if test "x$ac_ct_MIG" = x; then
10415 case $cross_compiling:$ac_tool_warned in
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10419 ac_tool_warned=yes ;;
10424 MIG="$ac_cv_prog_MIG"
10428 # ---------------------- #
10429 # Checks for libraries. #
10430 # ---------------------- #
10432 # We might need to link with -lm; most simulators need it.
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
10434 $as_echo_n "checking for main in -lm... " >&6; }
10435 if test "${ac_cv_lib_m_main+set}" = set; then :
10436 $as_echo_n "(cached) " >&6
10438 ac_check_lib_save_LIBS=$LIBS
10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10452 if ac_fn_c_try_link "$LINENO"; then :
10453 ac_cv_lib_m_main=yes
10455 ac_cv_lib_m_main=no
10457 rm -f core conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10459 LIBS=$ac_check_lib_save_LIBS
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
10462 $as_echo "$ac_cv_lib_m_main" >&6; }
10463 if test "x$ac_cv_lib_m_main" = x""yes; then :
10464 cat >>confdefs.h <<_ACEOF
10465 #define HAVE_LIBM 1
10473 # We need to link with -lw to get `wctype' on Solaris before Solaris
10474 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
10475 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
10476 # is known to have this problem). Therefore we avoid libw if we can.
10477 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
10478 if test "x$ac_cv_func_wctype" = x""yes; then :
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
10482 $as_echo_n "checking for wctype in -lw... " >&6; }
10483 if test "${ac_cv_lib_w_wctype+set}" = set; then :
10484 $as_echo_n "(cached) " >&6
10486 ac_check_lib_save_LIBS=$LIBS
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10491 /* Override any GCC internal prototype to avoid an error.
10492 Use char because int might match the return type of a GCC
10493 builtin and then its argument prototype would still apply. */
10506 if ac_fn_c_try_link "$LINENO"; then :
10507 ac_cv_lib_w_wctype=yes
10509 ac_cv_lib_w_wctype=no
10511 rm -f core conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
10513 LIBS=$ac_check_lib_save_LIBS
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
10516 $as_echo "$ac_cv_lib_w_wctype" >&6; }
10517 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
10518 cat >>confdefs.h <<_ACEOF
10519 #define HAVE_LIBW 1
10529 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10531 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10532 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10533 $as_echo_n "(cached) " >&6
10535 ac_func_search_save_LIBS=$LIBS
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10539 /* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
10545 char gethostbyname ();
10549 return gethostbyname ();
10554 for ac_lib in '' nsl; do
10555 if test -z "$ac_lib"; then
10556 ac_res="none required"
10559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10561 if ac_fn_c_try_link "$LINENO"; then :
10562 ac_cv_search_gethostbyname=$ac_res
10564 rm -f core conftest.err conftest.$ac_objext \
10566 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10570 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10573 ac_cv_search_gethostbyname=no
10575 rm conftest.$ac_ext
10576 LIBS=$ac_func_search_save_LIBS
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10579 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10580 ac_res=$ac_cv_search_gethostbyname
10581 if test "$ac_res" != no; then :
10582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10587 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
10589 $as_echo_n "checking for library containing socketpair... " >&6; }
10590 if test "${ac_cv_search_socketpair+set}" = set; then :
10591 $as_echo_n "(cached) " >&6
10593 ac_func_search_save_LIBS=$LIBS
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h. */
10597 /* Override any GCC internal prototype to avoid an error.
10598 Use char because int might match the return type of a GCC
10599 builtin and then its argument prototype would still apply. */
10603 char socketpair ();
10607 return socketpair ();
10612 for ac_lib in '' socket; do
10613 if test -z "$ac_lib"; then
10614 ac_res="none required"
10617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10619 if ac_fn_c_try_link "$LINENO"; then :
10620 ac_cv_search_socketpair=$ac_res
10622 rm -f core conftest.err conftest.$ac_objext \
10624 if test "${ac_cv_search_socketpair+set}" = set; then :
10628 if test "${ac_cv_search_socketpair+set}" = set; then :
10631 ac_cv_search_socketpair=no
10633 rm conftest.$ac_ext
10634 LIBS=$ac_func_search_save_LIBS
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
10637 $as_echo "$ac_cv_search_socketpair" >&6; }
10638 ac_res=$ac_cv_search_socketpair
10639 if test "$ac_res" != no; then :
10640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10645 # Link in zlib if we can. This allows us to read compressed debug sections.
10647 # See if the user specified whether he wants zlib support or not.
10649 # Check whether --with-zlib was given.
10650 if test "${with_zlib+set}" = set; then :
10651 withval=$with_zlib;
10657 if test "$with_zlib" != "no"; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
10659 $as_echo_n "checking for library containing zlibVersion... " >&6; }
10660 if test "${ac_cv_search_zlibVersion+set}" = set; then :
10661 $as_echo_n "(cached) " >&6
10663 ac_func_search_save_LIBS=$LIBS
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10667 /* Override any GCC internal prototype to avoid an error.
10668 Use char because int might match the return type of a GCC
10669 builtin and then its argument prototype would still apply. */
10673 char zlibVersion ();
10677 return zlibVersion ();
10682 for ac_lib in '' z; do
10683 if test -z "$ac_lib"; then
10684 ac_res="none required"
10687 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10689 if ac_fn_c_try_link "$LINENO"; then :
10690 ac_cv_search_zlibVersion=$ac_res
10692 rm -f core conftest.err conftest.$ac_objext \
10694 if test "${ac_cv_search_zlibVersion+set}" = set; then :
10698 if test "${ac_cv_search_zlibVersion+set}" = set; then :
10701 ac_cv_search_zlibVersion=no
10703 rm conftest.$ac_ext
10704 LIBS=$ac_func_search_save_LIBS
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
10707 $as_echo "$ac_cv_search_zlibVersion" >&6; }
10708 ac_res=$ac_cv_search_zlibVersion
10709 if test "$ac_res" != no; then :
10710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10711 for ac_header in zlib.h
10713 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
10714 if test "x$ac_cv_header_zlib_h" = x""yes; then :
10715 cat >>confdefs.h <<_ACEOF
10716 #define HAVE_ZLIB_H 1
10725 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
10726 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
10731 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
10733 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
10734 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10737 ac_func_search_save_LIBS=$LIBS
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10741 /* Override any GCC internal prototype to avoid an error.
10742 Use char because int might match the return type of a GCC
10743 builtin and then its argument prototype would still apply. */
10747 char dlgetmodinfo ();
10751 return dlgetmodinfo ();
10756 for ac_lib in '' dl xpdl; do
10757 if test -z "$ac_lib"; then
10758 ac_res="none required"
10761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10763 if ac_fn_c_try_link "$LINENO"; then :
10764 ac_cv_search_dlgetmodinfo=$ac_res
10766 rm -f core conftest.err conftest.$ac_objext \
10768 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
10772 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
10775 ac_cv_search_dlgetmodinfo=no
10777 rm conftest.$ac_ext
10778 LIBS=$ac_func_search_save_LIBS
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
10781 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
10782 ac_res=$ac_cv_search_dlgetmodinfo
10783 if test "$ac_res" != no; then :
10784 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10792 # Check whether --with-libiconv-prefix was given.
10793 if test "${with_libiconv_prefix+set}" = set; then :
10794 withval=$with_libiconv_prefix;
10795 for dir in `echo "$withval" | tr : ' '`; do
10796 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
10797 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
10803 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
10804 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10807 $as_echo_n "checking for iconv... " >&6; }
10808 if test "${am_cv_func_iconv+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10812 am_cv_func_iconv="no, consider installing GNU libiconv"
10814 am_cv_use_build_libiconv=no
10815 am_cv_build_libiconv_path=
10817 # If libiconv is part of the build tree, then try using it over
10818 # any system iconv.
10819 if test -d ../libiconv; then
10820 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
10821 am_save_LIBS="$LIBS"
10822 am_save_CPPFLAGS="$CPPFLAGS"
10823 LIBS="$LIBS $lib_dir/libiconv.a"
10824 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10827 #include <stdlib.h>
10832 iconv_t cd = iconv_open("","");
10833 iconv(cd,NULL,NULL,NULL,NULL);
10839 if ac_fn_c_try_link "$LINENO"; then :
10840 am_cv_use_build_libiconv=yes
10841 am_cv_build_libiconv_path=$lib_dir/libiconv.a
10842 am_cv_lib_iconv=yes
10843 am_cv_func_iconv=yes
10845 rm -f core conftest.err conftest.$ac_objext \
10846 conftest$ac_exeext conftest.$ac_ext
10847 LIBS="$am_save_LIBS"
10848 CPPFLAGS="$am_save_CPPFLAGS"
10849 if test "$am_cv_use_build_libiconv" = "yes"; then
10855 # Next, try to find iconv in libc.
10856 if test "$am_cv_func_iconv" != yes; then
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859 #include <stdlib.h>
10864 iconv_t cd = iconv_open("","");
10865 iconv(cd,NULL,NULL,NULL,NULL);
10871 if ac_fn_c_try_link "$LINENO"; then :
10872 am_cv_func_iconv=yes
10874 rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10878 # If iconv was not in libc, try -liconv. In this case, arrange to
10879 # look in the libiconv prefix, if it was specified by the user.
10880 if test "$am_cv_func_iconv" != yes; then
10881 am_save_CPPFLAGS="$CPPFLAGS"
10882 am_save_LIBS="$LIBS"
10883 if test -n "$LIBICONV_INCLUDE"; then
10884 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10885 LIBS="$LIBS $LIBICONV_LIBDIR"
10887 LIBS="$LIBS -liconv"
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10890 #include <stdlib.h>
10895 iconv_t cd = iconv_open("","");
10896 iconv(cd,NULL,NULL,NULL,NULL);
10902 if ac_fn_c_try_link "$LINENO"; then :
10903 am_cv_lib_iconv=yes
10904 am_cv_func_iconv=yes
10906 rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908 LIBS="$am_save_LIBS"
10909 CPPFLAGS="$am_save_CPPFLAGS"
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10914 $as_echo "$am_cv_func_iconv" >&6; }
10916 # Set the various flags based on the cache variables. We can't rely
10917 # on the flags to remain set from the above code, due to caching.
10919 if test "$am_cv_lib_iconv" = yes; then
10925 if test "$am_cv_use_build_libiconv" = yes; then
10926 LIBICONV="$am_cv_build_libiconv_path"
10928 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
10930 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10931 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
10933 if test "$am_cv_func_iconv" = yes; then
10935 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10938 $as_echo_n "checking for iconv declaration... " >&6; }
10939 if test "${am_cv_proto_iconv+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10946 #include <stdlib.h>
10952 #if defined(__STDC__) || defined(__cplusplus)
10953 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10966 if ac_fn_c_try_compile "$LINENO"; then :
10967 am_cv_proto_iconv_arg1=""
10969 am_cv_proto_iconv_arg1="const"
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 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);"
10975 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10977 }$am_cv_proto_iconv" >&5
10979 }$am_cv_proto_iconv" >&6; }
10981 cat >>confdefs.h <<_ACEOF
10982 #define ICONV_CONST $am_cv_proto_iconv_arg1
10988 # GDB may fork/exec the iconv program to get the list of supported character
10989 # sets. Allow the user to specify where to find it.
10990 # There are several factors affecting the choice of option name:
10991 # - There is already --with-libiconv-prefix but we can't use it, it specifies
10992 # the build-time location of libiconv files.
10993 # - The program we need to find is iconv, which comes with glibc. The user
10994 # doesn't necessarily have libiconv installed. Therefore naming this
10995 # --with-libiconv-foo feels wrong.
10996 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
10997 # defined to work on directories not files (though it really doesn't know
10999 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
11000 # with --with-libiconv-prefix.
11001 # Putting these together is why the option name is --with-iconv-bin.
11004 # Check whether --with-iconv-bin was given.
11005 if test "${with_iconv_bin+set}" = set; then :
11006 withval=$with_iconv_bin; iconv_bin="${withval}"
11008 cat >>confdefs.h <<_ACEOF
11009 #define ICONV_BIN "${iconv_bin}"
11013 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
11014 if test "x$prefix" = xNONE; then
11015 test_prefix=/usr/local
11017 test_prefix=$prefix
11020 test_prefix=$exec_prefix
11023 case ${iconv_bin} in
11024 "${test_prefix}"|"${test_prefix}/"*|\
11025 '${exec_prefix}'|'${exec_prefix}/'*)
11030 cat >>confdefs.h <<_ACEOF
11031 #define ICONV_BIN_RELOCATABLE $value
11039 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
11040 # There is a very specific comment in /usr/include/curses.h explaining that
11041 # termcap routines built into libcurses must not be used.
11043 # The symptoms we observed so far is GDB unexpectedly changing
11044 # the terminal settings when tgetent is called - this is particularly
11045 # visible as the output is missing carriage returns, and so rapidly
11046 # becomes very hard to read.
11048 # The readline configure script has already decided that libtermcap
11049 # was enough for its purposes, and so decided to build readline using
11050 # libtermcap. Since the TUI mode requires curses, building GDB with
11051 # TUI enabled results in both libraries to be used at the same time,
11052 # which is not allowed. This basically means that GDB with TUI is
11053 # broken on alpha-osf.
11057 if test x"$enable_tui" = xyes; then
11058 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
11060 if test x"$enable_tui" = xauto; then
11066 # For the TUI, we need enhanced curses functionality.
11067 if test x"$enable_tui" != xno; then
11072 if test x"$prefer_curses" = xyes; then
11073 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
11074 # curses library because the latter might not provide all the
11075 # functionality we need. However, this leads to problems on systems
11076 # where the linker searches /usr/local/lib, but the compiler doesn't
11077 # search /usr/local/include, if ncurses is installed in /usr/local. A
11078 # default installation of ncurses on alpha*-dec-osf* will lead to such
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
11081 $as_echo_n "checking for library containing waddstr... " >&6; }
11082 if test "${ac_cv_search_waddstr+set}" = set; then :
11083 $as_echo_n "(cached) " >&6
11085 ac_func_search_save_LIBS=$LIBS
11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h. */
11089 /* Override any GCC internal prototype to avoid an error.
11090 Use char because int might match the return type of a GCC
11091 builtin and then its argument prototype would still apply. */
11104 for ac_lib in '' ncurses cursesX curses; do
11105 if test -z "$ac_lib"; then
11106 ac_res="none required"
11109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11111 if ac_fn_c_try_link "$LINENO"; then :
11112 ac_cv_search_waddstr=$ac_res
11114 rm -f core conftest.err conftest.$ac_objext \
11116 if test "${ac_cv_search_waddstr+set}" = set; then :
11120 if test "${ac_cv_search_waddstr+set}" = set; then :
11123 ac_cv_search_waddstr=no
11125 rm conftest.$ac_ext
11126 LIBS=$ac_func_search_save_LIBS
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
11129 $as_echo "$ac_cv_search_waddstr" >&6; }
11130 ac_res=$ac_cv_search_waddstr
11131 if test "$ac_res" != no; then :
11132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11137 if test "$ac_cv_search_waddstr" != no; then
11142 # Check whether we should enable the TUI, but only do so if we really
11144 if test x"$enable_tui" != xno; then
11145 if test -d $srcdir/tui; then
11146 if test "$curses_found" != no; then
11147 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
11148 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
11149 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
11150 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
11152 if test x"$enable_tui" = xyes; then
11153 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
11156 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
11162 # Since GDB uses Readline, we need termcap functionality. In many
11163 # cases this will be provided by the curses library, but some systems
11164 # have a seperate termcap library, or no curses library at all.
11168 if test -d $srcdir/libtermcap; then
11169 LIBS="../libtermcap/libtermcap.a $LIBS"
11170 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
11173 ac_cv_search_tgetent="none required"
11176 ac_cv_search_tgetent="none required"
11177 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
11181 # These are the libraries checked by Readline.
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
11183 $as_echo_n "checking for library containing tgetent... " >&6; }
11184 if test "${ac_cv_search_tgetent+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
11187 ac_func_search_save_LIBS=$LIBS
11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11191 /* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11206 for ac_lib in '' termcap tinfo curses ncurses; do
11207 if test -z "$ac_lib"; then
11208 ac_res="none required"
11211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11213 if ac_fn_c_try_link "$LINENO"; then :
11214 ac_cv_search_tgetent=$ac_res
11216 rm -f core conftest.err conftest.$ac_objext \
11218 if test "${ac_cv_search_tgetent+set}" = set; then :
11222 if test "${ac_cv_search_tgetent+set}" = set; then :
11225 ac_cv_search_tgetent=no
11227 rm conftest.$ac_ext
11228 LIBS=$ac_func_search_save_LIBS
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11231 $as_echo "$ac_cv_search_tgetent" >&6; }
11232 ac_res=$ac_cv_search_tgetent
11233 if test "$ac_res" != no; then :
11234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11239 if test "$ac_cv_search_tgetent" = no; then
11240 as_fn_error "no termcap library found" "$LINENO" 5
11244 # Check whether --with-system-readline was given.
11245 if test "${with_system_readline+set}" = set; then :
11246 withval=$with_system_readline;
11250 if test "$with_system_readline" = yes; then
11251 READLINE=-lreadline
11254 READLINE_TEXI_INCFLAG=
11256 READLINE='$(READLINE_DIR)/libreadline.a'
11257 READLINE_DEPS='$(READLINE)'
11258 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
11259 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
11266 # Generate jit-reader.h
11268 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
11271 # The cast to long int works around a bug in the HP C Compiler
11272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11274 # This bug is HP SR number 8606223364.
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
11276 $as_echo_n "checking size of unsigned long long... " >&6; }
11277 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
11278 $as_echo_n "(cached) " >&6
11280 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
11283 if test "$ac_cv_type_unsigned_long_long" = yes; then
11284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11286 { as_fn_set_status 77
11287 as_fn_error "cannot compute sizeof (unsigned long long)
11288 See \`config.log' for more details." "$LINENO" 5; }; }
11290 ac_cv_sizeof_unsigned_long_long=0
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
11296 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
11300 cat >>confdefs.h <<_ACEOF
11301 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
11305 # The cast to long int works around a bug in the HP C Compiler
11306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11308 # This bug is HP SR number 8606223364.
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
11310 $as_echo_n "checking size of unsigned long... " >&6; }
11311 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
11312 $as_echo_n "(cached) " >&6
11314 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
11317 if test "$ac_cv_type_unsigned_long" = yes; then
11318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11320 { as_fn_set_status 77
11321 as_fn_error "cannot compute sizeof (unsigned long)
11322 See \`config.log' for more details." "$LINENO" 5; }; }
11324 ac_cv_sizeof_unsigned_long=0
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
11330 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
11334 cat >>confdefs.h <<_ACEOF
11335 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
11339 # The cast to long int works around a bug in the HP C Compiler
11340 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11341 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11342 # This bug is HP SR number 8606223364.
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
11344 $as_echo_n "checking size of unsigned __int128... " >&6; }
11345 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
11346 $as_echo_n "(cached) " >&6
11348 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
11351 if test "$ac_cv_type_unsigned___int128" = yes; then
11352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11354 { as_fn_set_status 77
11355 as_fn_error "cannot compute sizeof (unsigned __int128)
11356 See \`config.log' for more details." "$LINENO" 5; }; }
11358 ac_cv_sizeof_unsigned___int128=0
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
11364 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
11368 cat >>confdefs.h <<_ACEOF
11369 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
11374 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
11375 TARGET_PTR="unsigned long"
11376 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
11377 TARGET_PTR="unsigned long long"
11378 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
11379 TARGET_PTR="unsigned __int128"
11381 TARGET_PTR="unsigned long"
11385 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11389 $as_echo_n "checking for library containing dlopen... " >&6; }
11390 if test "${ac_cv_search_dlopen+set}" = set; then :
11391 $as_echo_n "(cached) " >&6
11393 ac_func_search_save_LIBS=$LIBS
11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11397 /* Override any GCC internal prototype to avoid an error.
11398 Use char because int might match the return type of a GCC
11399 builtin and then its argument prototype would still apply. */
11412 for ac_lib in '' dl; do
11413 if test -z "$ac_lib"; then
11414 ac_res="none required"
11417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11419 if ac_fn_c_try_link "$LINENO"; then :
11420 ac_cv_search_dlopen=$ac_res
11422 rm -f core conftest.err conftest.$ac_objext \
11424 if test "${ac_cv_search_dlopen+set}" = set; then :
11428 if test "${ac_cv_search_dlopen+set}" = set; then :
11431 ac_cv_search_dlopen=no
11433 rm conftest.$ac_ext
11434 LIBS=$ac_func_search_save_LIBS
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11437 $as_echo "$ac_cv_search_dlopen" >&6; }
11438 ac_res=$ac_cv_search_dlopen
11439 if test "$ac_res" != no; then :
11440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11447 # Check whether --with-jit-reader-dir was given.
11448 if test "${with_jit_reader_dir+set}" = set; then :
11449 withval=$with_jit_reader_dir;
11450 JIT_READER_DIR=$withval
11452 JIT_READER_DIR=${libdir}/gdb
11456 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
11457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11458 ac_define_dir=`eval echo $JIT_READER_DIR`
11459 ac_define_dir=`eval echo $ac_define_dir`
11461 cat >>confdefs.h <<_ACEOF
11462 #define JIT_READER_DIR "$ac_define_dir"
11468 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
11469 if test "x$prefix" = xNONE; then
11470 test_prefix=/usr/local
11472 test_prefix=$prefix
11475 test_prefix=$exec_prefix
11478 case ${ac_define_dir} in
11479 "${test_prefix}"|"${test_prefix}/"*|\
11480 '${exec_prefix}'|'${exec_prefix}/'*)
11485 cat >>confdefs.h <<_ACEOF
11486 #define JIT_READER_DIR_RELOCATABLE $value
11493 # Check whether --with-expat was given.
11494 if test "${with_expat+set}" = set; then :
11495 withval=$with_expat;
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
11501 $as_echo_n "checking whether to use expat... " >&6; }
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
11503 $as_echo "$with_expat" >&6; }
11505 if test "${with_expat}" = no; then
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
11507 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
11511 if test "X$prefix" = "XNONE"; then
11512 acl_final_prefix="$ac_default_prefix"
11514 acl_final_prefix="$prefix"
11516 if test "X$exec_prefix" = "XNONE"; then
11517 acl_final_exec_prefix='${prefix}'
11519 acl_final_exec_prefix="$exec_prefix"
11521 acl_save_prefix="$prefix"
11522 prefix="$acl_final_prefix"
11523 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11524 prefix="$acl_save_prefix"
11527 # Check whether --with-gnu-ld was given.
11528 if test "${with_gnu_ld+set}" = set; then :
11529 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11534 # Prepare PATH_SEPARATOR.
11535 # The user is always right.
11536 if test "${PATH_SEPARATOR+set}" != set; then
11537 echo "#! /bin/sh" >conf$$.sh
11538 echo "exit 0" >>conf$$.sh
11540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11548 if test "$GCC" = yes; then
11549 # Check if gcc -print-prog-name=ld gives a path.
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11551 $as_echo_n "checking for ld used by GCC... " >&6; }
11554 # gcc leaves a trailing carriage return which upsets mingw
11555 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11557 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11560 # Accept absolute paths.
11561 [\\/]* | [A-Za-z]:[\\/]*)
11562 re_direlt='/[^/][^/]*/\.\./'
11563 # Canonicalize the path of ld
11564 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11565 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11566 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11568 test -z "$LD" && LD="$ac_prog"
11571 # If it fails, then pretend we aren't using GCC.
11575 # If it is relative, then search for the first ld in PATH.
11576 with_gnu_ld=unknown
11579 elif test "$with_gnu_ld" = yes; then
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11581 $as_echo_n "checking for GNU ld... " >&6; }
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11584 $as_echo_n "checking for non-GNU ld... " >&6; }
11586 if test "${acl_cv_path_LD+set}" = set; then :
11587 $as_echo_n "(cached) " >&6
11589 if test -z "$LD"; then
11590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11591 for ac_dir in $PATH; do
11592 test -z "$ac_dir" && ac_dir=.
11593 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11594 acl_cv_path_LD="$ac_dir/$ac_prog"
11595 # Check to see if the program is GNU ld. I'd rather use --version,
11596 # but apparently some GNU ld's only accept -v.
11597 # Break only if it was the GNU/non-GNU ld that we prefer.
11598 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11599 test "$with_gnu_ld" != no && break
11601 test "$with_gnu_ld" != yes && break
11607 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11611 LD="$acl_cv_path_LD"
11612 if test -n "$LD"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11614 $as_echo "$LD" >&6; }
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11619 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11621 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11622 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
11623 $as_echo_n "(cached) " >&6
11625 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11626 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11627 acl_cv_prog_gnu_ld=yes
11629 acl_cv_prog_gnu_ld=no
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11633 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11634 with_gnu_ld=$acl_cv_prog_gnu_ld
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11639 $as_echo_n "checking for shared library run path origin... " >&6; }
11640 if test "${acl_cv_rpath+set}" = set; then :
11641 $as_echo_n "(cached) " >&6
11644 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11645 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11647 rm -f ./conftest.sh
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11652 $as_echo "$acl_cv_rpath" >&6; }
11654 libext="$acl_cv_libext"
11655 shlibext="$acl_cv_shlibext"
11656 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11657 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11658 hardcode_direct="$acl_cv_hardcode_direct"
11659 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11660 # Check whether --enable-rpath was given.
11661 if test "${enable_rpath+set}" = set; then :
11662 enableval=$enable_rpath; :
11678 acl_save_prefix="$prefix"
11679 prefix="$acl_final_prefix"
11680 acl_save_exec_prefix="$exec_prefix"
11681 exec_prefix="$acl_final_exec_prefix"
11683 eval additional_includedir=\"$includedir\"
11684 eval additional_libdir=\"$libdir\"
11686 exec_prefix="$acl_save_exec_prefix"
11687 prefix="$acl_save_prefix"
11690 # Check whether --with-libexpat-prefix was given.
11691 if test "${with_libexpat_prefix+set}" = set; then :
11692 withval=$with_libexpat_prefix;
11693 if test "X$withval" = "Xno"; then
11696 if test "X$withval" = "X"; then
11698 acl_save_prefix="$prefix"
11699 prefix="$acl_final_prefix"
11700 acl_save_exec_prefix="$exec_prefix"
11701 exec_prefix="$acl_final_exec_prefix"
11703 eval additional_includedir=\"$includedir\"
11704 eval additional_libdir=\"$libdir\"
11706 exec_prefix="$acl_save_exec_prefix"
11707 prefix="$acl_save_prefix"
11710 additional_includedir="$withval/include"
11711 additional_libdir="$withval/lib"
11722 names_already_handled=
11723 names_next_round='expat '
11724 while test -n "$names_next_round"; do
11725 names_this_round="$names_next_round"
11727 for name in $names_this_round; do
11729 for n in $names_already_handled; do
11730 if test "$n" = "$name"; then
11731 already_handled=yes
11735 if test -z "$already_handled"; then
11736 names_already_handled="$names_already_handled $name"
11737 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11738 eval value=\"\$HAVE_LIB$uppername\"
11739 if test -n "$value"; then
11740 if test "$value" = yes; then
11741 eval value=\"\$LIB$uppername\"
11742 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
11743 eval value=\"\$LTLIB$uppername\"
11744 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
11753 if test $use_additional = yes; then
11754 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11755 found_dir="$additional_libdir"
11756 found_so="$additional_libdir/lib$name.$shlibext"
11757 if test -f "$additional_libdir/lib$name.la"; then
11758 found_la="$additional_libdir/lib$name.la"
11761 if test -f "$additional_libdir/lib$name.$libext"; then
11762 found_dir="$additional_libdir"
11763 found_a="$additional_libdir/lib$name.$libext"
11764 if test -f "$additional_libdir/lib$name.la"; then
11765 found_la="$additional_libdir/lib$name.la"
11770 if test "X$found_dir" = "X"; then
11771 for x in $LDFLAGS $LTLIBEXPAT; do
11773 acl_save_prefix="$prefix"
11774 prefix="$acl_final_prefix"
11775 acl_save_exec_prefix="$exec_prefix"
11776 exec_prefix="$acl_final_exec_prefix"
11778 exec_prefix="$acl_save_exec_prefix"
11779 prefix="$acl_save_prefix"
11783 dir=`echo "X$x" | sed -e 's/^X-L//'`
11784 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11786 found_so="$dir/lib$name.$shlibext"
11787 if test -f "$dir/lib$name.la"; then
11788 found_la="$dir/lib$name.la"
11791 if test -f "$dir/lib$name.$libext"; then
11793 found_a="$dir/lib$name.$libext"
11794 if test -f "$dir/lib$name.la"; then
11795 found_la="$dir/lib$name.la"
11801 if test "X$found_dir" != "X"; then
11806 if test "X$found_dir" != "X"; then
11807 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
11808 if test "X$found_so" != "X"; then
11809 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11810 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11813 for x in $ltrpathdirs; do
11814 if test "X$x" = "X$found_dir"; then
11819 if test -z "$haveit"; then
11820 ltrpathdirs="$ltrpathdirs $found_dir"
11822 if test "$hardcode_direct" = yes; then
11823 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11825 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11826 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11828 for x in $rpathdirs; do
11829 if test "X$x" = "X$found_dir"; then
11834 if test -z "$haveit"; then
11835 rpathdirs="$rpathdirs $found_dir"
11839 for x in $LDFLAGS $LIBEXPAT; do
11841 acl_save_prefix="$prefix"
11842 prefix="$acl_final_prefix"
11843 acl_save_exec_prefix="$exec_prefix"
11844 exec_prefix="$acl_final_exec_prefix"
11846 exec_prefix="$acl_save_exec_prefix"
11847 prefix="$acl_save_prefix"
11849 if test "X$x" = "X-L$found_dir"; then
11854 if test -z "$haveit"; then
11855 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11857 if test "$hardcode_minus_L" != no; then
11858 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11860 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11866 if test "X$found_a" != "X"; then
11867 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11869 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11872 additional_includedir=
11873 case "$found_dir" in
11875 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11876 additional_includedir="$basedir/include"
11879 if test "X$additional_includedir" != "X"; then
11880 if test "X$additional_includedir" != "X/usr/include"; then
11882 if test "X$additional_includedir" = "X/usr/local/include"; then
11883 if test -n "$GCC"; then
11885 linux*) haveit=yes;;
11889 if test -z "$haveit"; then
11890 for x in $CPPFLAGS $INCEXPAT; do
11892 acl_save_prefix="$prefix"
11893 prefix="$acl_final_prefix"
11894 acl_save_exec_prefix="$exec_prefix"
11895 exec_prefix="$acl_final_exec_prefix"
11897 exec_prefix="$acl_save_exec_prefix"
11898 prefix="$acl_save_prefix"
11900 if test "X$x" = "X-I$additional_includedir"; then
11905 if test -z "$haveit"; then
11906 if test -d "$additional_includedir"; then
11907 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11913 if test -n "$found_la"; then
11914 save_libdir="$libdir"
11915 case "$found_la" in
11916 */* | *\\*) . "$found_la" ;;
11917 *) . "./$found_la" ;;
11919 libdir="$save_libdir"
11920 for dep in $dependency_libs; do
11923 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11924 if test "X$additional_libdir" != "X/usr/lib"; then
11926 if test "X$additional_libdir" = "X/usr/local/lib"; then
11927 if test -n "$GCC"; then
11929 linux*) haveit=yes;;
11933 if test -z "$haveit"; then
11935 for x in $LDFLAGS $LIBEXPAT; do
11937 acl_save_prefix="$prefix"
11938 prefix="$acl_final_prefix"
11939 acl_save_exec_prefix="$exec_prefix"
11940 exec_prefix="$acl_final_exec_prefix"
11942 exec_prefix="$acl_save_exec_prefix"
11943 prefix="$acl_save_prefix"
11945 if test "X$x" = "X-L$additional_libdir"; then
11950 if test -z "$haveit"; then
11951 if test -d "$additional_libdir"; then
11952 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11956 for x in $LDFLAGS $LTLIBEXPAT; do
11958 acl_save_prefix="$prefix"
11959 prefix="$acl_final_prefix"
11960 acl_save_exec_prefix="$exec_prefix"
11961 exec_prefix="$acl_final_exec_prefix"
11963 exec_prefix="$acl_save_exec_prefix"
11964 prefix="$acl_save_prefix"
11966 if test "X$x" = "X-L$additional_libdir"; then
11971 if test -z "$haveit"; then
11972 if test -d "$additional_libdir"; then
11973 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11980 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11981 if test "$enable_rpath" != no; then
11983 for x in $rpathdirs; do
11984 if test "X$x" = "X$dir"; then
11989 if test -z "$haveit"; then
11990 rpathdirs="$rpathdirs $dir"
11993 for x in $ltrpathdirs; do
11994 if test "X$x" = "X$dir"; then
11999 if test -z "$haveit"; then
12000 ltrpathdirs="$ltrpathdirs $dir"
12005 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12008 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12011 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
12012 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
12018 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
12019 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
12025 if test "X$rpathdirs" != "X"; then
12026 if test -n "$hardcode_libdir_separator"; then
12028 for found_dir in $rpathdirs; do
12029 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12031 acl_save_libdir="$libdir"
12033 eval flag=\"$hardcode_libdir_flag_spec\"
12034 libdir="$acl_save_libdir"
12035 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
12037 for found_dir in $rpathdirs; do
12038 acl_save_libdir="$libdir"
12039 libdir="$found_dir"
12040 eval flag=\"$hardcode_libdir_flag_spec\"
12041 libdir="$acl_save_libdir"
12042 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
12046 if test "X$ltrpathdirs" != "X"; then
12047 for found_dir in $ltrpathdirs; do
12048 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
12053 ac_save_CPPFLAGS="$CPPFLAGS"
12055 for element in $INCEXPAT; do
12057 for x in $CPPFLAGS; do
12059 acl_save_prefix="$prefix"
12060 prefix="$acl_final_prefix"
12061 acl_save_exec_prefix="$exec_prefix"
12062 exec_prefix="$acl_final_exec_prefix"
12064 exec_prefix="$acl_save_exec_prefix"
12065 prefix="$acl_save_prefix"
12067 if test "X$x" = "X$element"; then
12072 if test -z "$haveit"; then
12073 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
12079 $as_echo_n "checking for libexpat... " >&6; }
12080 if test "${ac_cv_libexpat+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
12084 ac_save_LIBS="$LIBS"
12085 LIBS="$LIBS $LIBEXPAT"
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12092 XML_Parser p = XML_ParserCreate (0);
12097 if ac_fn_c_try_link "$LINENO"; then :
12102 rm -f core conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104 LIBS="$ac_save_LIBS"
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
12108 $as_echo "$ac_cv_libexpat" >&6; }
12109 if test "$ac_cv_libexpat" = yes; then
12112 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
12115 $as_echo_n "checking how to link with libexpat... " >&6; }
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
12117 $as_echo "$LIBEXPAT" >&6; }
12120 CPPFLAGS="$ac_save_CPPFLAGS"
12130 if test "$HAVE_LIBEXPAT" != yes; then
12131 if test "$with_expat" = yes; then
12132 as_fn_error "expat is missing or unusable" "$LINENO" 5
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
12135 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
12139 LIBS="$LIBS $LIBEXPAT"
12140 for ac_func in XML_StopParser
12142 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
12143 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
12144 cat >>confdefs.h <<_ACEOF
12145 #define HAVE_XML_STOPPARSER 1
12160 # Check whether --with-python was given.
12161 if test "${with_python+set}" = set; then :
12162 withval=$with_python;
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
12168 $as_echo_n "checking whether to use python... " >&6; }
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
12170 $as_echo "$with_python" >&6; }
12172 if test "${with_python}" = no; then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
12174 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
12177 case "${with_python}" in
12179 if test -d ${with_python}; then
12180 # Assume the python binary is ${with_python}/bin/python.
12181 python_prog="${with_python}/bin/python"
12183 # If python does not exit ${with_python}/bin, then try in
12184 # ${with_python}. On Windows/MinGW, this is where the Python
12186 if test ! -x "${python_prog}"; then
12187 python_prog="${with_python}/python"
12190 if test ! -x "${python_prog}"; then
12191 # Fall back to gdb 7.0/7.1 behaviour.
12192 python_prog=missing
12193 python_prefix=${with_python}
12195 elif test -x "${with_python}"; then
12196 # While we can't run python compiled for $host (unless host == build),
12197 # the user could write a script that provides the needed information,
12198 # so we support that.
12199 python_prog=${with_python}
12202 as_fn_error "invalid value for --with-python" "$LINENO" 5
12206 # Disallow --with-python=foo/bar.
12207 as_fn_error "invalid value for --with-python" "$LINENO" 5
12210 # The user has either specified auto, yes, or the name of the python
12211 # program assumed to be in $PATH.
12213 case "${with_python}" in
12215 if test ${build} = ${host}; then
12216 # Extract the first word of "python", so it can be a program name with args.
12217 set dummy python; ac_word=$2
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12219 $as_echo_n "checking for $ac_word... " >&6; }
12220 if test "${ac_cv_path_python_prog_path+set}" = set; then :
12221 $as_echo_n "(cached) " >&6
12223 case $python_prog_path in
12225 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12235 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12243 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
12247 python_prog_path=$ac_cv_path_python_prog_path
12248 if test -n "$python_prog_path"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
12250 $as_echo "$python_prog_path" >&6; }
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 $as_echo "no" >&6; }
12257 if test "${python_prog_path}" = missing; then
12258 python_prog=missing
12260 python_prog=${python_prog_path}
12263 # Not much we can do except assume the cross-compiler will find the
12265 python_prog=missing
12269 # While we can't run python compiled for $host (unless host == build),
12270 # the user could write a script that provides the needed information,
12271 # so we support that.
12272 python_prog="${with_python}"
12273 # Extract the first word of "${python_prog}", so it can be a program name with args.
12274 set dummy ${python_prog}; ac_word=$2
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276 $as_echo_n "checking for $ac_word... " >&6; }
12277 if test "${ac_cv_path_python_prog_path+set}" = set; then :
12278 $as_echo_n "(cached) " >&6
12280 case $python_prog_path in
12282 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12292 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12300 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
12304 python_prog_path=$ac_cv_path_python_prog_path
12305 if test -n "$python_prog_path"; then
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
12307 $as_echo "$python_prog_path" >&6; }
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310 $as_echo "no" >&6; }
12314 if test "${python_prog_path}" = missing; then
12315 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
12321 if test "${python_prog}" != missing; then
12322 # We have a python program to use, but it may be too old.
12323 # Don't flag an error for --with-python=auto (the default).
12324 have_python_config=yes
12325 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
12326 if test $? != 0; then
12327 have_python_config=failed
12328 if test "${with_python}" != auto; then
12329 as_fn_error "failure running python-config --includes" "$LINENO" 5
12332 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
12333 if test $? != 0; then
12334 have_python_config=failed
12335 if test "${with_python}" != auto; then
12336 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
12339 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
12340 if test $? != 0; then
12341 have_python_config=failed
12342 if test "${with_python}" != auto; then
12343 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
12347 # We do not have a python executable we can use to determine where
12348 # to find the Python headers and libs. We cannot guess the include
12349 # path from the python_prefix either, because that include path
12350 # depends on the Python version. So, there is nothing much we can
12351 # do except assume that the compiler will be able to find those files.
12354 have_python_config=no
12357 # If we have python-config, only try the configuration it provides.
12358 # Otherwise fallback on the old way of trying different versions of
12362 if test "${have_python_config}" = yes; then
12363 # Determine the Python version by extracting "-lpython<version>"
12364 # part of the python_libs. <version> is usually X.Y with X and Y
12365 # being decimal numbers, but can also be XY (seen on Windows).
12367 # The extraction is performed using sed with a regular expression.
12368 # Initially, the regexp used was using the '?' quantifier to make
12369 # the dot in the version number optional. Unfortunately, this
12370 # does not work with non-GNU versions of sed because, because of
12371 # what looks like a limitation (the '?' quantifier does not work
12372 # with back-references). We work around this limitation by using
12373 # the '*' quantifier instead. It means that, in theory, we might
12374 # match unexpected version strings such as "-lpython2..7", but
12375 # this seems unlikely in practice. And even if that happens,
12376 # an error will be triggered later on, when checking that version
12378 python_version=`echo " ${python_libs} " \
12379 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
12380 case "${python_version}" in
12383 version=${python_version}
12385 new_CPPFLAGS=${python_includes}
12386 new_LIBS=${python_libs}
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12388 $as_echo_n "checking for ${version}... " >&6; }
12389 save_CPPFLAGS=$CPPFLAGS
12391 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
12392 LIBS="$LIBS $new_LIBS"
12393 found_usable_python=no
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h. */
12396 #include "Python.h"
12405 if ac_fn_c_try_link "$LINENO"; then :
12406 have_libpython=${version}
12407 found_usable_python=yes
12408 PYTHON_CPPFLAGS=$new_CPPFLAGS
12409 PYTHON_LIBS=$new_LIBS
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 CPPFLAGS=$save_CPPFLAGS
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12416 $as_echo "${found_usable_python}" >&6; }
12420 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
12423 elif test "${have_python_config}" != failed; then
12424 if test "${have_libpython}" = no; then
12428 new_CPPFLAGS=${python_includes}
12429 new_LIBS="${python_libs} -lpython2.7"
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12431 $as_echo_n "checking for ${version}... " >&6; }
12432 save_CPPFLAGS=$CPPFLAGS
12434 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
12435 LIBS="$LIBS $new_LIBS"
12436 found_usable_python=no
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12439 #include "Python.h"
12448 if ac_fn_c_try_link "$LINENO"; then :
12449 have_libpython=${version}
12450 found_usable_python=yes
12451 PYTHON_CPPFLAGS=$new_CPPFLAGS
12452 PYTHON_LIBS=$new_LIBS
12454 rm -f core conftest.err conftest.$ac_objext \
12455 conftest$ac_exeext conftest.$ac_ext
12456 CPPFLAGS=$save_CPPFLAGS
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12459 $as_echo "${found_usable_python}" >&6; }
12462 if test "${have_libpython}" = no; then
12466 new_CPPFLAGS=${python_includes}
12467 new_LIBS="${python_libs} -lpython2.6"
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12469 $as_echo_n "checking for ${version}... " >&6; }
12470 save_CPPFLAGS=$CPPFLAGS
12472 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
12473 LIBS="$LIBS $new_LIBS"
12474 found_usable_python=no
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12477 #include "Python.h"
12486 if ac_fn_c_try_link "$LINENO"; then :
12487 have_libpython=${version}
12488 found_usable_python=yes
12489 PYTHON_CPPFLAGS=$new_CPPFLAGS
12490 PYTHON_LIBS=$new_LIBS
12492 rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494 CPPFLAGS=$save_CPPFLAGS
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12497 $as_echo "${found_usable_python}" >&6; }
12500 if test ${have_libpython} = no; then
12504 new_CPPFLAGS=${python_includes}
12505 new_LIBS="${python_libs} -lpython2.5"
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12507 $as_echo_n "checking for ${version}... " >&6; }
12508 save_CPPFLAGS=$CPPFLAGS
12510 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
12511 LIBS="$LIBS $new_LIBS"
12512 found_usable_python=no
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515 #include "Python.h"
12524 if ac_fn_c_try_link "$LINENO"; then :
12525 have_libpython=${version}
12526 found_usable_python=yes
12527 PYTHON_CPPFLAGS=$new_CPPFLAGS
12528 PYTHON_LIBS=$new_LIBS
12530 rm -f core conftest.err conftest.$ac_objext \
12531 conftest$ac_exeext conftest.$ac_ext
12532 CPPFLAGS=$save_CPPFLAGS
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12535 $as_echo "${found_usable_python}" >&6; }
12538 if test ${have_libpython} = no; then
12542 new_CPPFLAGS=${python_includes}
12543 new_LIBS="${python_libs} -lpython2.4"
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12545 $as_echo_n "checking for ${version}... " >&6; }
12546 save_CPPFLAGS=$CPPFLAGS
12548 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
12549 LIBS="$LIBS $new_LIBS"
12550 found_usable_python=no
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12553 #include "Python.h"
12562 if ac_fn_c_try_link "$LINENO"; then :
12563 have_libpython=${version}
12564 found_usable_python=yes
12565 PYTHON_CPPFLAGS=$new_CPPFLAGS
12566 PYTHON_LIBS=$new_LIBS
12568 rm -f core conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
12570 CPPFLAGS=$save_CPPFLAGS
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12573 $as_echo "${found_usable_python}" >&6; }
12577 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
12579 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
12581 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
12583 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
12585 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
12587 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
12589 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
12591 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
12595 if test "${have_libpython}" = no; then
12596 case "${with_python}" in
12598 as_fn_error "python is missing or unusable" "$LINENO" 5
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
12602 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
12605 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
12609 if test -n "${python_prefix}"; then
12611 cat >>confdefs.h <<_ACEOF
12612 #define WITH_PYTHON_PATH "${python_prefix}"
12616 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12617 if test "x$prefix" = xNONE; then
12618 test_prefix=/usr/local
12620 test_prefix=$prefix
12623 test_prefix=$exec_prefix
12626 case ${python_prefix} in
12627 "${test_prefix}"|"${test_prefix}/"*|\
12628 '${exec_prefix}'|'${exec_prefix}/'*)
12633 cat >>confdefs.h <<_ACEOF
12634 #define PYTHON_PATH_RELOCATABLE $value
12642 if test "${have_libpython}" != no; then
12644 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
12646 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
12647 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
12648 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
12649 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
12650 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
12652 # Flags needed to compile Python code (taken from python-config --cflags).
12653 # We cannot call python-config directly because it will output whatever was
12654 # used when compiling the Python interpreter itself, including flags which
12655 # would make the python-related objects be compiled differently from the
12656 # rest of GDB (e.g., -O2 and -fPIC).
12657 if test "${GCC}" = yes; then
12658 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
12661 if test "x${tentative_python_cflags}" != x; then
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
12663 $as_echo_n "checking compiler flags for python code... " >&6; }
12664 for flag in ${tentative_python_cflags}; do
12665 # Check that the compiler accepts it
12666 saved_CFLAGS="$CFLAGS"
12667 CFLAGS="$CFLAGS $flag"
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12679 if ac_fn_c_try_compile "$LINENO"; then :
12680 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
12682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12683 CFLAGS="$saved_CFLAGS"
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
12686 $as_echo "${PYTHON_CFLAGS}" >&6; }
12689 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
12691 # #define siginfo __siginfo
12693 # The problem is that including Python causes some XOPEN macros to be
12694 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
12695 # to false. So, we work around this issue by defining siginfo ourself
12696 # though the command-line.
12697 case "$gdb_host" in
12698 irix*) if test "${GCC}" = yes; then
12699 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
12704 # Even if Python support is not compiled in, we need to have these files
12706 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
12707 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
12708 python/py-prettyprint.c python/py-auto-load.c"
12714 # ------------------------- #
12715 # Checks for header files. #
12716 # ------------------------- #
12718 ac_header_dirent=no
12719 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12720 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12722 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12724 $as_echo_n "(cached) " >&6
12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12728 #include <sys/types.h>
12740 if ac_fn_c_try_compile "$LINENO"; then :
12741 eval "$as_ac_Header=yes"
12743 eval "$as_ac_Header=no"
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12747 eval ac_res=\$$as_ac_Header
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12749 $as_echo "$ac_res" >&6; }
12750 eval as_val=\$$as_ac_Header
12751 if test "x$as_val" = x""yes; then :
12752 cat >>confdefs.h <<_ACEOF
12753 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12756 ac_header_dirent=$ac_hdr; break
12760 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12761 if test $ac_header_dirent = dirent.h; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12763 $as_echo_n "checking for library containing opendir... " >&6; }
12764 if test "${ac_cv_search_opendir+set}" = set; then :
12765 $as_echo_n "(cached) " >&6
12767 ac_func_search_save_LIBS=$LIBS
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12771 /* Override any GCC internal prototype to avoid an error.
12772 Use char because int might match the return type of a GCC
12773 builtin and then its argument prototype would still apply. */
12786 for ac_lib in '' dir; do
12787 if test -z "$ac_lib"; then
12788 ac_res="none required"
12791 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12793 if ac_fn_c_try_link "$LINENO"; then :
12794 ac_cv_search_opendir=$ac_res
12796 rm -f core conftest.err conftest.$ac_objext \
12798 if test "${ac_cv_search_opendir+set}" = set; then :
12802 if test "${ac_cv_search_opendir+set}" = set; then :
12805 ac_cv_search_opendir=no
12807 rm conftest.$ac_ext
12808 LIBS=$ac_func_search_save_LIBS
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12811 $as_echo "$ac_cv_search_opendir" >&6; }
12812 ac_res=$ac_cv_search_opendir
12813 if test "$ac_res" != no; then :
12814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12820 $as_echo_n "checking for library containing opendir... " >&6; }
12821 if test "${ac_cv_search_opendir+set}" = set; then :
12822 $as_echo_n "(cached) " >&6
12824 ac_func_search_save_LIBS=$LIBS
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12828 /* Override any GCC internal prototype to avoid an error.
12829 Use char because int might match the return type of a GCC
12830 builtin and then its argument prototype would still apply. */
12843 for ac_lib in '' x; do
12844 if test -z "$ac_lib"; then
12845 ac_res="none required"
12848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12850 if ac_fn_c_try_link "$LINENO"; then :
12851 ac_cv_search_opendir=$ac_res
12853 rm -f core conftest.err conftest.$ac_objext \
12855 if test "${ac_cv_search_opendir+set}" = set; then :
12859 if test "${ac_cv_search_opendir+set}" = set; then :
12862 ac_cv_search_opendir=no
12864 rm conftest.$ac_ext
12865 LIBS=$ac_func_search_save_LIBS
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12868 $as_echo "$ac_cv_search_opendir" >&6; }
12869 ac_res=$ac_cv_search_opendir
12870 if test "$ac_res" != no; then :
12871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12878 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
12879 if test "${ac_cv_header_stat_broken+set}" = set; then :
12880 $as_echo_n "(cached) " >&6
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12884 #include <sys/types.h>
12885 #include <sys/stat.h>
12887 #if defined S_ISBLK && defined S_IFDIR
12888 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12891 #if defined S_ISBLK && defined S_IFCHR
12892 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12895 #if defined S_ISLNK && defined S_IFREG
12896 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12899 #if defined S_ISSOCK && defined S_IFREG
12900 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12904 if ac_fn_c_try_compile "$LINENO"; then :
12905 ac_cv_header_stat_broken=no
12907 ac_cv_header_stat_broken=yes
12909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12912 $as_echo "$ac_cv_header_stat_broken" >&6; }
12913 if test $ac_cv_header_stat_broken = yes; then
12915 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12920 $as_echo_n "checking for ANSI C header files... " >&6; }
12921 if test "${ac_cv_header_stdc+set}" = set; then :
12922 $as_echo_n "(cached) " >&6
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12926 #include <stdlib.h>
12927 #include <stdarg.h>
12928 #include <string.h>
12939 if ac_fn_c_try_compile "$LINENO"; then :
12940 ac_cv_header_stdc=yes
12942 ac_cv_header_stdc=no
12944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12946 if test $ac_cv_header_stdc = yes; then
12947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h. */
12950 #include <string.h>
12953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12954 $EGREP "memchr" >/dev/null 2>&1; then :
12957 ac_cv_header_stdc=no
12963 if test $ac_cv_header_stdc = yes; then
12964 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12967 #include <stdlib.h>
12970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12971 $EGREP "free" >/dev/null 2>&1; then :
12974 ac_cv_header_stdc=no
12980 if test $ac_cv_header_stdc = yes; then
12981 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12982 if test "$cross_compiling" = yes; then :
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12988 #include <stdlib.h>
12989 #if ((' ' & 0x0FF) == 0x020)
12990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12993 # define ISLOWER(c) \
12994 (('a' <= (c) && (c) <= 'i') \
12995 || ('j' <= (c) && (c) <= 'r') \
12996 || ('s' <= (c) && (c) <= 'z'))
12997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13005 for (i = 0; i < 256; i++)
13006 if (XOR (islower (i), ISLOWER (i))
13007 || toupper (i) != TOUPPER (i))
13012 if ac_fn_c_try_run "$LINENO"; then :
13015 ac_cv_header_stdc=no
13017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13018 conftest.$ac_objext conftest.beam conftest.$ac_ext
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13024 $as_echo "$ac_cv_header_stdc" >&6; }
13025 if test $ac_cv_header_stdc = yes; then
13027 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13031 # elf_hp.h is for HP/UX 64-bit shared library support.
13032 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
13033 # unconditionally, so what's the point in checking these?
13034 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
13035 thread_db.h gnu/libc-version.h signal.h stddef.h \
13036 stdlib.h string.h memory.h strings.h sys/fault.h \
13037 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
13038 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
13039 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
13040 sys/types.h sys/wait.h wait.h termios.h termio.h \
13041 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h \
13042 dlfcn.h sys/socket.h sys/un.h
13044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13045 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13046 eval as_val=\$$as_ac_Header
13047 if test "x$as_val" = x""yes; then :
13048 cat >>confdefs.h <<_ACEOF
13049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13056 for ac_header in link.h
13058 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
13059 # include <sys/types.h>
13062 # include <nlist.h>
13066 if test "x$ac_cv_header_link_h" = x""yes; then :
13067 cat >>confdefs.h <<_ACEOF
13068 #define HAVE_LINK_H 1
13075 for ac_header in sys/proc.h
13077 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
13078 # include <sys/param.h>
13082 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
13083 cat >>confdefs.h <<_ACEOF
13084 #define HAVE_SYS_PROC_H 1
13091 for ac_header in sys/user.h
13093 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
13094 # include <sys/param.h>
13098 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
13099 cat >>confdefs.h <<_ACEOF
13100 #define HAVE_SYS_USER_H 1
13108 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
13109 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
13110 # think that we don't have <curses.h> if we're using GCC.
13113 if test "$GCC" = yes; then
13115 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
13119 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
13121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13122 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13123 eval as_val=\$$as_ac_Header
13124 if test "x$as_val" = x""yes; then :
13125 cat >>confdefs.h <<_ACEOF
13126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13133 for ac_header in term.h
13135 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
13136 # include <curses.h>
13140 if test "x$ac_cv_header_term_h" = x""yes; then :
13141 cat >>confdefs.h <<_ACEOF
13142 #define HAVE_TERM_H 1
13150 # ------------------------- #
13151 # Checks for declarations. #
13152 # ------------------------- #
13154 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13155 if test "x$ac_cv_have_decl_free" = x""yes; then :
13161 cat >>confdefs.h <<_ACEOF
13162 #define HAVE_DECL_FREE $ac_have_decl
13164 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13165 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13171 cat >>confdefs.h <<_ACEOF
13172 #define HAVE_DECL_MALLOC $ac_have_decl
13174 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13175 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13181 cat >>confdefs.h <<_ACEOF
13182 #define HAVE_DECL_REALLOC $ac_have_decl
13184 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13185 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
13191 cat >>confdefs.h <<_ACEOF
13192 #define HAVE_DECL_STRERROR $ac_have_decl
13194 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13195 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13201 cat >>confdefs.h <<_ACEOF
13202 #define HAVE_DECL_STRSTR $ac_have_decl
13204 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
13205 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
13211 cat >>confdefs.h <<_ACEOF
13212 #define HAVE_DECL_GETOPT $ac_have_decl
13214 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13215 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13221 cat >>confdefs.h <<_ACEOF
13222 #define HAVE_DECL_SNPRINTF $ac_have_decl
13224 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13225 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13231 cat >>confdefs.h <<_ACEOF
13232 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13237 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13238 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13243 #include <locale.h>
13252 if ac_fn_c_try_link "$LINENO"; then :
13253 am_cv_val_LC_MESSAGES=yes
13255 am_cv_val_LC_MESSAGES=no
13257 rm -f core conftest.err conftest.$ac_objext \
13258 conftest$ac_exeext conftest.$ac_ext
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13261 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13262 if test $am_cv_val_LC_MESSAGES = yes; then
13264 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13269 # ----------------------- #
13270 # Checks for structures. #
13271 # ----------------------- #
13273 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13274 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13276 cat >>confdefs.h <<_ACEOF
13277 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13282 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13283 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
13285 cat >>confdefs.h <<_ACEOF
13286 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13293 # ------------------ #
13294 # Checks for types. #
13295 # ------------------ #
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13298 $as_echo_n "checking return type of signal handlers... " >&6; }
13299 if test "${ac_cv_type_signal+set}" = set; then :
13300 $as_echo_n "(cached) " >&6
13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13304 #include <sys/types.h>
13305 #include <signal.h>
13310 return *(signal (0, 0)) (0) == 1;
13315 if ac_fn_c_try_compile "$LINENO"; then :
13316 ac_cv_type_signal=int
13318 ac_cv_type_signal=void
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13323 $as_echo "$ac_cv_type_signal" >&6; }
13325 cat >>confdefs.h <<_ACEOF
13326 #define RETSIGTYPE $ac_cv_type_signal
13330 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13331 #include <sys/socket.h>
13334 if test "x$ac_cv_type_socklen_t" = x""yes; then :
13336 cat >>confdefs.h <<_ACEOF
13337 #define HAVE_SOCKLEN_T 1
13344 # ------------------------------------- #
13345 # Checks for compiler characteristics. #
13346 # ------------------------------------- #
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13349 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13350 if test "${ac_cv_c_const+set}" = set; then :
13351 $as_echo_n "(cached) " >&6
13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13359 /* FIXME: Include the comments suggested by Paul. */
13360 #ifndef __cplusplus
13361 /* Ultrix mips cc rejects this. */
13362 typedef int charset[2];
13364 /* SunOS 4.1.1 cc rejects this. */
13365 char const *const *pcpcc;
13367 /* NEC SVR4.0.2 mips cc rejects this. */
13368 struct point {int x, y;};
13369 static struct point const zero = {0,0};
13370 /* AIX XL C 1.02.0.0 rejects this.
13371 It does not let you subtract one const X* pointer from another in
13372 an arm of an if-expression whose if-part is not a constant
13374 const char *g = "string";
13375 pcpcc = &g + (g ? g-g : 0);
13376 /* HPUX 7.0 cc rejects these. */
13378 ppc = (char**) pcpcc;
13379 pcpcc = (char const *const *) ppc;
13380 { /* SCO 3.2v4 cc rejects this. */
13382 char const *s = 0 ? (char *) 0 : (char const *) 0;
13387 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13388 int x[] = {25, 17};
13389 const int *foo = &x[0];
13392 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13393 typedef const int *iptr;
13397 { /* AIX XL C 1.02.0.0 rejects this saying
13398 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13399 struct s { int j; const int *ap[3]; };
13400 struct s *b; b->j = 5;
13402 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13403 const int foo = 10;
13404 if (!foo) return 0;
13406 return !cs[0] && !zero.x;
13413 if ac_fn_c_try_compile "$LINENO"; then :
13418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13421 $as_echo "$ac_cv_c_const" >&6; }
13422 if test $ac_cv_c_const = no; then
13424 $as_echo "#define const /**/" >>confdefs.h
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13429 $as_echo_n "checking for inline... " >&6; }
13430 if test "${ac_cv_c_inline+set}" = set; then :
13431 $as_echo_n "(cached) " >&6
13434 for ac_kw in inline __inline__ __inline; do
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13437 #ifndef __cplusplus
13439 static $ac_kw foo_t static_foo () {return 0; }
13440 $ac_kw foo_t foo () {return 0; }
13444 if ac_fn_c_try_compile "$LINENO"; then :
13445 ac_cv_c_inline=$ac_kw
13447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 test "$ac_cv_c_inline" != no && break
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13453 $as_echo "$ac_cv_c_inline" >&6; }
13455 case $ac_cv_c_inline in
13458 case $ac_cv_c_inline in
13460 *) ac_val=$ac_cv_c_inline;;
13462 cat >>confdefs.h <<_ACEOF
13463 #ifndef __cplusplus
13464 #define inline $ac_val
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13471 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13472 if test "${ac_cv_c_bigendian+set}" = set; then :
13473 $as_echo_n "(cached) " >&6
13475 ac_cv_c_bigendian=unknown
13476 # See if we're dealing with a universal compiler.
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13479 #ifndef __APPLE_CC__
13480 not a universal capable compiler
13485 if ac_fn_c_try_compile "$LINENO"; then :
13487 # Check for potential -arch flags. It is not universal unless
13488 # there are at least two -arch flags with different values.
13491 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13492 if test -n "$ac_prev"; then
13494 i?86 | x86_64 | ppc | ppc64)
13495 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13498 ac_cv_c_bigendian=universal
13504 elif test "x$ac_word" = "x-arch"; then
13509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13510 if test $ac_cv_c_bigendian = unknown; then
13511 # See if sys/param.h defines the BYTE_ORDER macro.
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13514 #include <sys/types.h>
13515 #include <sys/param.h>
13520 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13521 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13523 bogus endian macros
13530 if ac_fn_c_try_compile "$LINENO"; then :
13531 # It does; now see whether it defined to BIG_ENDIAN or not.
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13534 #include <sys/types.h>
13535 #include <sys/param.h>
13540 #if BYTE_ORDER != BIG_ENDIAN
13548 if ac_fn_c_try_compile "$LINENO"; then :
13549 ac_cv_c_bigendian=yes
13551 ac_cv_c_bigendian=no
13553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13557 if test $ac_cv_c_bigendian = unknown; then
13558 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13561 #include <limits.h>
13566 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13567 bogus endian macros
13574 if ac_fn_c_try_compile "$LINENO"; then :
13575 # It does; now see whether it defined to _BIG_ENDIAN or not.
13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h. */
13578 #include <limits.h>
13583 #ifndef _BIG_ENDIAN
13591 if ac_fn_c_try_compile "$LINENO"; then :
13592 ac_cv_c_bigendian=yes
13594 ac_cv_c_bigendian=no
13596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600 if test $ac_cv_c_bigendian = unknown; then
13601 # Compile a test program.
13602 if test "$cross_compiling" = yes; then :
13603 # Try to guess by grepping values from an object file.
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606 short int ascii_mm[] =
13607 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13608 short int ascii_ii[] =
13609 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13610 int use_ascii (int i) {
13611 return ascii_mm[i] + ascii_ii[i];
13613 short int ebcdic_ii[] =
13614 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13615 short int ebcdic_mm[] =
13616 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13617 int use_ebcdic (int i) {
13618 return ebcdic_mm[i] + ebcdic_ii[i];
13625 return use_ascii (foo) == use_ebcdic (foo);
13630 if ac_fn_c_try_compile "$LINENO"; then :
13631 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13632 ac_cv_c_bigendian=yes
13634 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13635 if test "$ac_cv_c_bigendian" = unknown; then
13636 ac_cv_c_bigendian=no
13638 # finding both strings is unlikely to happen, but who knows?
13639 ac_cv_c_bigendian=unknown
13643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13646 /* end confdefs.h. */
13647 $ac_includes_default
13652 /* Are we little or big endian? From Harbison&Steele. */
13656 char c[sizeof (long int)];
13659 return u.c[sizeof (long int) - 1] == 1;
13665 if ac_fn_c_try_run "$LINENO"; then :
13666 ac_cv_c_bigendian=no
13668 ac_cv_c_bigendian=yes
13670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13671 conftest.$ac_objext conftest.beam conftest.$ac_ext
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13677 $as_echo "$ac_cv_c_bigendian" >&6; }
13678 case $ac_cv_c_bigendian in #(
13680 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13686 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13690 as_fn_error "unknown endianness
13691 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13695 # ------------------------------ #
13696 # Checks for library functions. #
13697 # ------------------------------ #
13699 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13700 # for constant arguments. Useless!
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13702 $as_echo_n "checking for working alloca.h... " >&6; }
13703 if test "${ac_cv_working_alloca_h+set}" = set; then :
13704 $as_echo_n "(cached) " >&6
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13708 #include <alloca.h>
13712 char *p = (char *) alloca (2 * sizeof (int));
13718 if ac_fn_c_try_link "$LINENO"; then :
13719 ac_cv_working_alloca_h=yes
13721 ac_cv_working_alloca_h=no
13723 rm -f core conftest.err conftest.$ac_objext \
13724 conftest$ac_exeext conftest.$ac_ext
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13727 $as_echo "$ac_cv_working_alloca_h" >&6; }
13728 if test $ac_cv_working_alloca_h = yes; then
13730 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13735 $as_echo_n "checking for alloca... " >&6; }
13736 if test "${ac_cv_func_alloca_works+set}" = set; then :
13737 $as_echo_n "(cached) " >&6
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13742 # define alloca __builtin_alloca
13745 # include <malloc.h>
13746 # define alloca _alloca
13748 # ifdef HAVE_ALLOCA_H
13749 # include <alloca.h>
13754 # ifndef alloca /* predefined by HP cc +Olibcalls */
13765 char *p = (char *) alloca (1);
13771 if ac_fn_c_try_link "$LINENO"; then :
13772 ac_cv_func_alloca_works=yes
13774 ac_cv_func_alloca_works=no
13776 rm -f core conftest.err conftest.$ac_objext \
13777 conftest$ac_exeext conftest.$ac_ext
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13780 $as_echo "$ac_cv_func_alloca_works" >&6; }
13782 if test $ac_cv_func_alloca_works = yes; then
13784 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13787 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13788 # that cause trouble. Some versions do not even contain alloca or
13789 # contain a buggy version. If you still want to use their alloca,
13790 # use ar to extract alloca.o from them instead of compiling alloca.c.
13792 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13794 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13798 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13799 if test "${ac_cv_os_cray+set}" = set; then :
13800 $as_echo_n "(cached) " >&6
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 #if defined CRAY && ! defined CRAY2
13811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812 $EGREP "webecray" >/dev/null 2>&1; then :
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13821 $as_echo "$ac_cv_os_cray" >&6; }
13822 if test $ac_cv_os_cray = yes; then
13823 for ac_func in _getb67 GETB67 getb67; do
13824 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13825 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13826 eval as_val=\$$as_ac_var
13827 if test "x$as_val" = x""yes; then :
13829 cat >>confdefs.h <<_ACEOF
13830 #define CRAY_STACKSEG_END $ac_func
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13840 $as_echo_n "checking stack direction for C alloca... " >&6; }
13841 if test "${ac_cv_c_stack_direction+set}" = set; then :
13842 $as_echo_n "(cached) " >&6
13844 if test "$cross_compiling" = yes; then :
13845 ac_cv_c_stack_direction=0
13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13849 $ac_includes_default
13851 find_stack_direction ()
13853 static char *addr = 0;
13858 return find_stack_direction ();
13861 return (&dummy > addr) ? 1 : -1;
13867 return find_stack_direction () < 0;
13870 if ac_fn_c_try_run "$LINENO"; then :
13871 ac_cv_c_stack_direction=1
13873 ac_cv_c_stack_direction=-1
13875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13876 conftest.$ac_objext conftest.beam conftest.$ac_ext
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13881 $as_echo "$ac_cv_c_stack_direction" >&6; }
13882 cat >>confdefs.h <<_ACEOF
13883 #define STACK_DIRECTION $ac_cv_c_stack_direction
13889 for ac_header in stdlib.h unistd.h
13891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13892 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13893 eval as_val=\$$as_ac_Header
13894 if test "x$as_val" = x""yes; then :
13895 cat >>confdefs.h <<_ACEOF
13896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13903 for ac_func in getpagesize
13905 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13906 if test "x$ac_cv_func_getpagesize" = x""yes; then :
13907 cat >>confdefs.h <<_ACEOF
13908 #define HAVE_GETPAGESIZE 1
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13915 $as_echo_n "checking for working mmap... " >&6; }
13916 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
13917 $as_echo_n "(cached) " >&6
13919 if test "$cross_compiling" = yes; then :
13920 ac_cv_func_mmap_fixed_mapped=no
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13924 $ac_includes_default
13925 /* malloc might have been renamed as rpl_malloc. */
13928 /* Thanks to Mike Haertel and Jim Avera for this test.
13929 Here is a matrix of mmap possibilities:
13930 mmap private not fixed
13931 mmap private fixed at somewhere currently unmapped
13932 mmap private fixed at somewhere already mapped
13933 mmap shared not fixed
13934 mmap shared fixed at somewhere currently unmapped
13935 mmap shared fixed at somewhere already mapped
13936 For private mappings, we should verify that changes cannot be read()
13937 back from the file, nor mmap's back from the file at a different
13938 address. (There have been systems where private was not correctly
13939 implemented like the infamous i386 svr4.0, and systems where the
13940 VM page cache was not coherent with the file system buffer cache
13941 like early versions of FreeBSD and possibly contemporary NetBSD.)
13942 For shared mappings, we should conversely verify that changes get
13943 propagated back to all the places they're supposed to be.
13945 Grep wants private fixed already mapped.
13946 The main things grep needs to know about mmap are:
13947 * does it exist and is it safe to write into the mmap'd area
13948 * how to use it (BSD variants) */
13951 #include <sys/mman.h>
13953 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13957 /* This mess was copied from the GNU getpagesize.h. */
13958 #ifndef HAVE_GETPAGESIZE
13959 /* Assume that all systems that can run configure have sys/param.h. */
13960 # ifndef HAVE_SYS_PARAM_H
13961 # define HAVE_SYS_PARAM_H 1
13964 # ifdef _SC_PAGESIZE
13965 # define getpagesize() sysconf(_SC_PAGESIZE)
13966 # else /* no _SC_PAGESIZE */
13967 # ifdef HAVE_SYS_PARAM_H
13968 # include <sys/param.h>
13969 # ifdef EXEC_PAGESIZE
13970 # define getpagesize() EXEC_PAGESIZE
13971 # else /* no EXEC_PAGESIZE */
13973 # define getpagesize() NBPG * CLSIZE
13976 # endif /* no CLSIZE */
13977 # else /* no NBPG */
13979 # define getpagesize() NBPC
13980 # else /* no NBPC */
13982 # define getpagesize() PAGESIZE
13983 # endif /* PAGESIZE */
13984 # endif /* no NBPC */
13985 # endif /* no NBPG */
13986 # endif /* no EXEC_PAGESIZE */
13987 # else /* no HAVE_SYS_PARAM_H */
13988 # define getpagesize() 8192 /* punt totally */
13989 # endif /* no HAVE_SYS_PARAM_H */
13990 # endif /* no _SC_PAGESIZE */
13992 #endif /* no HAVE_GETPAGESIZE */
13997 char *data, *data2, *data3;
14001 pagesize = getpagesize ();
14003 /* First, make a file with some known garbage in it. */
14004 data = (char *) malloc (pagesize);
14007 for (i = 0; i < pagesize; ++i)
14008 *(data + i) = rand ();
14010 fd = creat ("conftest.mmap", 0600);
14013 if (write (fd, data, pagesize) != pagesize)
14017 /* Next, try to mmap the file at a fixed address which already has
14018 something else allocated at it. If we can, also make sure that
14019 we see the same garbage. */
14020 fd = open ("conftest.mmap", O_RDWR);
14023 data2 = (char *) malloc (2 * pagesize);
14026 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
14027 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14028 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14030 for (i = 0; i < pagesize; ++i)
14031 if (*(data + i) != *(data2 + i))
14034 /* Finally, make sure that changes to the mapped area do not
14035 percolate back to the file as seen by read(). (This is a bug on
14036 some variants of i386 svr4.0.) */
14037 for (i = 0; i < pagesize; ++i)
14038 *(data2 + i) = *(data2 + i) + 1;
14039 data3 = (char *) malloc (pagesize);
14042 if (read (fd, data3, pagesize) != pagesize)
14044 for (i = 0; i < pagesize; ++i)
14045 if (*(data + i) != *(data3 + i))
14051 if ac_fn_c_try_run "$LINENO"; then :
14052 ac_cv_func_mmap_fixed_mapped=yes
14054 ac_cv_func_mmap_fixed_mapped=no
14056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14057 conftest.$ac_objext conftest.beam conftest.$ac_ext
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14062 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14063 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14065 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14068 rm -f conftest.mmap
14070 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14071 if test "x$ac_cv_type_pid_t" = x""yes; then :
14075 cat >>confdefs.h <<_ACEOF
14081 for ac_header in vfork.h
14083 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14084 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14085 cat >>confdefs.h <<_ACEOF
14086 #define HAVE_VFORK_H 1
14093 for ac_func in fork vfork
14095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14097 eval as_val=\$$as_ac_var
14098 if test "x$as_val" = x""yes; then :
14099 cat >>confdefs.h <<_ACEOF
14100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14106 if test "x$ac_cv_func_fork" = xyes; then
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14108 $as_echo_n "checking for working fork... " >&6; }
14109 if test "${ac_cv_func_fork_works+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14112 if test "$cross_compiling" = yes; then :
14113 ac_cv_func_fork_works=cross
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14117 $ac_includes_default
14122 /* By Ruediger Kuhlmann. */
14123 return fork () < 0;
14129 if ac_fn_c_try_run "$LINENO"; then :
14130 ac_cv_func_fork_works=yes
14132 ac_cv_func_fork_works=no
14134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14135 conftest.$ac_objext conftest.beam conftest.$ac_ext
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14140 $as_echo "$ac_cv_func_fork_works" >&6; }
14143 ac_cv_func_fork_works=$ac_cv_func_fork
14145 if test "x$ac_cv_func_fork_works" = xcross; then
14147 *-*-amigaos* | *-*-msdosdjgpp*)
14148 # Override, as these systems have only a dummy fork() stub
14149 ac_cv_func_fork_works=no
14152 ac_cv_func_fork_works=yes
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14156 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14158 ac_cv_func_vfork_works=$ac_cv_func_vfork
14159 if test "x$ac_cv_func_vfork" = xyes; then
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14161 $as_echo_n "checking for working vfork... " >&6; }
14162 if test "${ac_cv_func_vfork_works+set}" = set; then :
14163 $as_echo_n "(cached) " >&6
14165 if test "$cross_compiling" = yes; then :
14166 ac_cv_func_vfork_works=cross
14168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14169 /* end confdefs.h. */
14170 /* Thanks to Paul Eggert for this test. */
14171 $ac_includes_default
14172 #include <sys/wait.h>
14173 #ifdef HAVE_VFORK_H
14174 # include <vfork.h>
14176 /* On some sparc systems, changes by the child to local and incoming
14177 argument registers are propagated back to the parent. The compiler
14178 is told about this with #include <vfork.h>, but some compilers
14179 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14180 static variable whose address is put into a register that is
14181 clobbered by the vfork. */
14184 sparc_address_test (int arg)
14186 sparc_address_test (arg) int arg;
14189 static pid_t child;
14207 pid_t parent = getpid ();
14210 sparc_address_test (0);
14215 /* Here is another test for sparc vfork register problems. This
14216 test uses lots of local variables, at least as many local
14217 variables as main has allocated so far including compiler
14218 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14219 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14220 reuse the register of parent for one of the local variables,
14221 since it will think that parent can't possibly be used any more
14222 in this routine. Assigning to the local variable will thus
14223 munge parent in the parent process. */
14225 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14226 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14227 /* Convince the compiler that p..p7 are live; otherwise, it might
14228 use the same hardware register for all 8 local variables. */
14229 if (p != p1 || p != p2 || p != p3 || p != p4
14230 || p != p5 || p != p6 || p != p7)
14233 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14234 from child file descriptors. If the child closes a descriptor
14235 before it execs or exits, this munges the parent's descriptor
14236 as well. Test for this by closing stdout in the child. */
14237 _exit(close(fileno(stdout)) != 0);
14242 while (wait(&status) != child)
14245 /* Was there some problem with vforking? */
14248 /* Did the child fail? (This shouldn't happen.) */
14251 /* Did the vfork/compiler bug occur? */
14252 || parent != getpid()
14254 /* Did the file descriptor bug occur? */
14255 || fstat(fileno(stdout), &st) != 0
14260 if ac_fn_c_try_run "$LINENO"; then :
14261 ac_cv_func_vfork_works=yes
14263 ac_cv_func_vfork_works=no
14265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14266 conftest.$ac_objext conftest.beam conftest.$ac_ext
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14271 $as_echo "$ac_cv_func_vfork_works" >&6; }
14274 if test "x$ac_cv_func_fork_works" = xcross; then
14275 ac_cv_func_vfork_works=$ac_cv_func_vfork
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14277 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14280 if test "x$ac_cv_func_vfork_works" = xyes; then
14282 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14286 $as_echo "#define vfork fork" >>confdefs.h
14289 if test "x$ac_cv_func_fork_works" = xyes; then
14291 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14295 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
14296 pipe poll pread pread64 pwrite readlink resize_term \
14297 sbrk setpgid setpgrp setsid \
14298 sigaction sigprocmask sigsetmask socketpair syscall \
14299 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
14300 setrlimit getrlimit posix_madvise waitpid lstat
14302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14304 eval as_val=\$$as_ac_var
14305 if test "x$as_val" = x""yes; then :
14306 cat >>confdefs.h <<_ACEOF
14307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14315 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14316 if test "${am_cv_langinfo_codeset+set}" = set; then :
14317 $as_echo_n "(cached) " >&6
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14321 #include <langinfo.h>
14325 char* cs = nl_langinfo(CODESET);
14330 if ac_fn_c_try_link "$LINENO"; then :
14331 am_cv_langinfo_codeset=yes
14333 am_cv_langinfo_codeset=no
14335 rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext conftest.$ac_ext
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14340 $as_echo "$am_cv_langinfo_codeset" >&6; }
14341 if test $am_cv_langinfo_codeset = yes; then
14343 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14348 # Check the return and argument types of ptrace. No canned test for
14349 # this, so roll our own.
14350 gdb_ptrace_headers='
14351 #if HAVE_SYS_TYPES_H
14352 # include <sys/types.h>
14354 #if HAVE_SYS_PTRACE_H
14355 # include <sys/ptrace.h>
14358 # include <unistd.h>
14361 # There is no point in checking if we don't have a prototype.
14362 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
14364 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
14370 cat >>confdefs.h <<_ACEOF
14371 #define HAVE_DECL_PTRACE $ac_have_decl
14373 if test $ac_have_decl = 1; then :
14377 : ${gdb_cv_func_ptrace_ret='int'}
14378 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
14382 # Check return type. Varargs (used on GNU/Linux) conflict with the
14383 # empty argument list, so check for that explicitly.
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
14385 $as_echo_n "checking return type of ptrace... " >&6; }
14386 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
14387 $as_echo_n "(cached) " >&6
14389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14390 /* end confdefs.h. */
14391 $gdb_ptrace_headers
14395 extern long ptrace (enum __ptrace_request, ...);
14400 if ac_fn_c_try_compile "$LINENO"; then :
14401 gdb_cv_func_ptrace_ret='long'
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405 $gdb_ptrace_headers
14409 extern int ptrace ();
14414 if ac_fn_c_try_compile "$LINENO"; then :
14415 gdb_cv_func_ptrace_ret='int'
14417 gdb_cv_func_ptrace_ret='long'
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
14424 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
14426 cat >>confdefs.h <<_ACEOF
14427 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
14430 # Check argument types.
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
14432 $as_echo_n "checking types of arguments for ptrace... " >&6; }
14433 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
14434 $as_echo_n "(cached) " >&6
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14439 $gdb_ptrace_headers
14443 extern long ptrace (enum __ptrace_request, ...);
14448 if ac_fn_c_try_compile "$LINENO"; then :
14449 gdb_cv_func_ptrace_args='int,int,long,long'
14452 for gdb_arg1 in 'int' 'long'; do
14453 for gdb_arg2 in 'pid_t' 'int' 'long'; do
14454 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
14455 for gdb_arg4 in 'int' 'long'; do
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14458 $gdb_ptrace_headers
14463 extern $gdb_cv_func_ptrace_ret
14464 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
14470 if ac_fn_c_try_compile "$LINENO"; then :
14471 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475 for gdb_arg5 in 'int *' 'int' 'long'; do
14476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477 /* end confdefs.h. */
14478 $gdb_ptrace_headers
14483 extern $gdb_cv_func_ptrace_ret
14484 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
14490 if ac_fn_c_try_compile "$LINENO"; then :
14492 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
14495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14501 # Provide a safe default value.
14502 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
14505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
14508 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
14509 ac_save_IFS=$IFS; IFS=','
14510 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
14514 cat >>confdefs.h <<_ACEOF
14515 #define PTRACE_TYPE_ARG3 $3
14518 if test -n "$5"; then
14520 cat >>confdefs.h <<_ACEOF
14521 #define PTRACE_TYPE_ARG5 $5
14526 if test "$cross_compiling" = no; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14528 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14529 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
14530 $as_echo_n "(cached) " >&6
14532 if test "$cross_compiling" = yes; then :
14533 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
14535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14536 /* end confdefs.h. */
14537 $ac_includes_default
14541 /* If this system has a BSD-style setpgrp which takes arguments,
14542 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14543 exit successfully. */
14544 return setpgrp (1,1) != -1;
14549 if ac_fn_c_try_run "$LINENO"; then :
14550 ac_cv_func_setpgrp_void=no
14552 ac_cv_func_setpgrp_void=yes
14554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14555 conftest.$ac_objext conftest.beam conftest.$ac_ext
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14560 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14561 if test $ac_cv_func_setpgrp_void = yes; then
14563 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14569 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14570 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
14571 $as_echo_n "(cached) " >&6
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14576 #include <unistd.h>
14582 if (setpgrp(1,1) == -1)
14591 if ac_fn_c_try_compile "$LINENO"; then :
14592 ac_cv_func_setpgrp_void=no
14594 ac_cv_func_setpgrp_void=yes
14596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14599 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14600 if test $ac_cv_func_setpgrp_void = yes; then
14601 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14606 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
14607 # since sigsetjmp might only be defined as a macro.
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14609 $as_echo_n "checking for sigsetjmp... " >&6; }
14610 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
14611 $as_echo_n "(cached) " >&6
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14616 #include <setjmp.h>
14621 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14626 if ac_fn_c_try_compile "$LINENO"; then :
14627 gdb_cv_func_sigsetjmp=yes
14629 gdb_cv_func_sigsetjmp=no
14631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14634 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14635 if test $gdb_cv_func_sigsetjmp = yes; then
14637 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14641 # Assume we'll default to using the included libiberty regex.
14642 gdb_use_included_regex=yes
14644 # However, if the system regex is GNU regex, then default to *not*
14645 # using the included regex.
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14647 $as_echo_n "checking for GNU regex... " >&6; }
14648 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
14649 $as_echo_n "(cached) " >&6
14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652 /* end confdefs.h. */
14653 #include <gnu-versions.h>
14657 #define REGEX_INTERFACE_VERSION 1
14658 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14659 # error "Version mismatch"
14665 if ac_fn_c_try_compile "$LINENO"; then :
14666 gdb_cv_have_gnu_regex=yes
14668 gdb_cv_have_gnu_regex=no
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14673 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14674 if test $gdb_cv_have_gnu_regex = yes; then
14675 gdb_use_included_regex=no
14679 # Check whether --with-included-regex was given.
14680 if test "${with_included_regex+set}" = set; then :
14681 withval=$with_included_regex; gdb_with_regex=$withval
14683 gdb_with_regex=$gdb_use_included_regex
14686 if test "$gdb_with_regex" = yes; then
14688 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14692 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14693 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14694 #include <sys/proc.h>
14697 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
14699 cat >>confdefs.h <<_ACEOF
14700 #define HAVE_STRUCT_THREAD_TD_PCB 1
14707 # See if <sys/lwp.h> defines `struct lwp`.
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14709 $as_echo_n "checking for struct lwp... " >&6; }
14710 if test "${gdb_cv_struct_lwp+set}" = set; then :
14711 $as_echo_n "(cached) " >&6
14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714 /* end confdefs.h. */
14715 #include <sys/param.h>
14716 #include <sys/lwp.h>
14725 if ac_fn_c_try_compile "$LINENO"; then :
14726 gdb_cv_struct_lwp=yes
14728 gdb_cv_struct_lwp=no
14730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14733 $as_echo "$gdb_cv_struct_lwp" >&6; }
14734 if test $gdb_cv_struct_lwp = yes; then
14736 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14740 # See if <machine/reg.h> degines `struct reg'.
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14742 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14743 if test "${gdb_cv_struct_reg+set}" = set; then :
14744 $as_echo_n "(cached) " >&6
14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h. */
14748 #include <sys/types.h>
14749 #include <machine/reg.h>
14758 if ac_fn_c_try_compile "$LINENO"; then :
14759 gdb_cv_struct_reg=yes
14761 gdb_cv_struct_reg=no
14763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14766 $as_echo "$gdb_cv_struct_reg" >&6; }
14767 if test $gdb_cv_struct_reg = yes; then
14769 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14773 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14774 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14775 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
14777 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
14779 cat >>confdefs.h <<_ACEOF
14780 #define HAVE_STRUCT_REG_R_FS 1
14785 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
14787 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
14789 cat >>confdefs.h <<_ACEOF
14790 #define HAVE_STRUCT_REG_R_GS 1
14797 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14799 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14800 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
14801 $as_echo_n "(cached) " >&6
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14805 #include <sys/ptrace.h>
14814 if ac_fn_c_try_compile "$LINENO"; then :
14815 gdb_cv_have_ptrace_getregs=yes
14817 gdb_cv_have_ptrace_getregs=no
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14823 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14824 if test $gdb_cv_have_ptrace_getregs = yes; then
14826 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14830 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14832 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14833 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
14834 $as_echo_n "(cached) " >&6
14836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837 /* end confdefs.h. */
14838 #include <sys/ptrace.h>
14847 if ac_fn_c_try_compile "$LINENO"; then :
14848 gdb_cv_have_ptrace_getfpxregs=yes
14850 gdb_cv_have_ptrace_getfpxregs=no
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14856 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14857 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14859 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14863 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14865 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14866 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
14867 $as_echo_n "(cached) " >&6
14869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h. */
14871 #include <sys/types.h>
14872 #include <sys/ptrace.h>
14881 if ac_fn_c_try_compile "$LINENO"; then :
14882 gdb_cv_have_pt_getdbregs=yes
14884 gdb_cv_have_pt_getdbregs=no
14886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14890 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14891 if test $gdb_cv_have_pt_getdbregs = yes; then
14893 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14897 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14899 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14900 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
14901 $as_echo_n "(cached) " >&6
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14905 #include <sys/types.h>
14906 #include <sys/ptrace.h>
14915 if ac_fn_c_try_compile "$LINENO"; then :
14916 gdb_cv_have_pt_getxmmregs=yes
14918 gdb_cv_have_pt_getxmmregs=no
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14924 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14925 if test $gdb_cv_have_pt_getxmmregs = yes; then
14927 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14931 # Detect which type of /proc is in use, such as for Unixware or Solaris.
14933 if test "${target}" = "${host}"; then
14935 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
14937 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
14940 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
14942 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
14946 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
14948 $as_echo "#define _KMEMUSER 1" >>confdefs.h
14954 if test "$ac_cv_header_sys_procfs_h" = yes; then
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
14956 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
14957 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
14958 $as_echo_n "(cached) " >&6
14960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h. */
14964 /* Needed for new procfs interface on sparc-solaris. */
14965 #define _STRUCTURED_PROC 1
14966 #include <sys/procfs.h>
14975 if ac_fn_c_try_compile "$LINENO"; then :
14976 bfd_cv_have_sys_procfs_type_pstatus_t=yes
14978 bfd_cv_have_sys_procfs_type_pstatus_t=no
14981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14984 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
14986 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
14990 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
14993 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
14994 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
14995 $as_echo_n "(cached) " >&6
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15001 /* Needed for new procfs interface on sparc-solaris. */
15002 #define _STRUCTURED_PROC 1
15003 #include <sys/procfs.h>
15012 if ac_fn_c_try_compile "$LINENO"; then :
15013 bfd_cv_have_sys_procfs_type_prrun_t=yes
15015 bfd_cv_have_sys_procfs_type_prrun_t=no
15018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15021 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
15023 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
15027 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15030 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15031 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
15032 $as_echo_n "(cached) " >&6
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15038 /* Needed for new procfs interface on sparc-solaris. */
15039 #define _STRUCTURED_PROC 1
15040 #include <sys/procfs.h>
15049 if ac_fn_c_try_compile "$LINENO"; then :
15050 bfd_cv_have_sys_procfs_type_gregset_t=yes
15052 bfd_cv_have_sys_procfs_type_gregset_t=no
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15060 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15064 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15067 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15068 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
15069 $as_echo_n "(cached) " >&6
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15075 /* Needed for new procfs interface on sparc-solaris. */
15076 #define _STRUCTURED_PROC 1
15077 #include <sys/procfs.h>
15086 if ac_fn_c_try_compile "$LINENO"; then :
15087 bfd_cv_have_sys_procfs_type_fpregset_t=yes
15089 bfd_cv_have_sys_procfs_type_fpregset_t=no
15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15097 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15101 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15104 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15105 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
15106 $as_echo_n "(cached) " >&6
15108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15109 /* end confdefs.h. */
15112 /* Needed for new procfs interface on sparc-solaris. */
15113 #define _STRUCTURED_PROC 1
15114 #include <sys/procfs.h>
15123 if ac_fn_c_try_compile "$LINENO"; then :
15124 bfd_cv_have_sys_procfs_type_prgregset_t=yes
15126 bfd_cv_have_sys_procfs_type_prgregset_t=no
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15132 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15134 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15138 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15141 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15142 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
15143 $as_echo_n "(cached) " >&6
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15149 /* Needed for new procfs interface on sparc-solaris. */
15150 #define _STRUCTURED_PROC 1
15151 #include <sys/procfs.h>
15160 if ac_fn_c_try_compile "$LINENO"; then :
15161 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
15163 bfd_cv_have_sys_procfs_type_prfpregset_t=no
15166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15169 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15171 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15175 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15178 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15179 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
15180 $as_echo_n "(cached) " >&6
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15186 /* Needed for new procfs interface on sparc-solaris. */
15187 #define _STRUCTURED_PROC 1
15188 #include <sys/procfs.h>
15197 if ac_fn_c_try_compile "$LINENO"; then :
15198 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
15200 bfd_cv_have_sys_procfs_type_prgregset32_t=no
15203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15206 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15208 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15212 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
15215 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
15216 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
15217 $as_echo_n "(cached) " >&6
15219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h. */
15223 /* Needed for new procfs interface on sparc-solaris. */
15224 #define _STRUCTURED_PROC 1
15225 #include <sys/procfs.h>
15229 prfpregset32_t avar
15234 if ac_fn_c_try_compile "$LINENO"; then :
15235 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
15237 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
15240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15243 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
15245 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
15249 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15252 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15253 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
15254 $as_echo_n "(cached) " >&6
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15260 /* Needed for new procfs interface on sparc-solaris. */
15261 #define _STRUCTURED_PROC 1
15262 #include <sys/procfs.h>
15271 if ac_fn_c_try_compile "$LINENO"; then :
15272 bfd_cv_have_sys_procfs_type_lwpid_t=yes
15274 bfd_cv_have_sys_procfs_type_lwpid_t=no
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15282 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15286 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15289 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15290 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
15291 $as_echo_n "(cached) " >&6
15293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294 /* end confdefs.h. */
15297 /* Needed for new procfs interface on sparc-solaris. */
15298 #define _STRUCTURED_PROC 1
15299 #include <sys/procfs.h>
15308 if ac_fn_c_try_compile "$LINENO"; then :
15309 bfd_cv_have_sys_procfs_type_psaddr_t=yes
15311 bfd_cv_have_sys_procfs_type_psaddr_t=no
15314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15317 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15319 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15323 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
15326 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
15327 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
15328 $as_echo_n "(cached) " >&6
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15334 /* Needed for new procfs interface on sparc-solaris. */
15335 #define _STRUCTURED_PROC 1
15336 #include <sys/procfs.h>
15345 if ac_fn_c_try_compile "$LINENO"; then :
15346 bfd_cv_have_sys_procfs_type_prsysent_t=yes
15348 bfd_cv_have_sys_procfs_type_prsysent_t=no
15351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15354 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
15356 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
15360 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
15363 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
15364 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
15365 $as_echo_n "(cached) " >&6
15367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h. */
15371 /* Needed for new procfs interface on sparc-solaris. */
15372 #define _STRUCTURED_PROC 1
15373 #include <sys/procfs.h>
15382 if ac_fn_c_try_compile "$LINENO"; then :
15383 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
15385 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
15388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15391 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
15393 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
15397 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
15400 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
15401 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
15402 $as_echo_n "(cached) " >&6
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15408 /* Needed for new procfs interface on sparc-solaris. */
15409 #define _STRUCTURED_PROC 1
15410 #include <sys/procfs.h>
15414 pr_sigaction64_t avar
15419 if ac_fn_c_try_compile "$LINENO"; then :
15420 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
15422 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
15425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15428 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
15430 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
15434 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
15437 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
15438 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
15439 $as_echo_n "(cached) " >&6
15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442 /* end confdefs.h. */
15445 /* Needed for new procfs interface on sparc-solaris. */
15446 #define _STRUCTURED_PROC 1
15447 #include <sys/procfs.h>
15451 pr_siginfo64_t avar
15456 if ac_fn_c_try_compile "$LINENO"; then :
15457 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
15459 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15465 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
15467 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
15471 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
15477 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
15479 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
15480 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
15481 $as_echo_n "(cached) " >&6
15483 if test "$cross_compiling" = yes; then :
15484 gdb_cv_prfpregset_t_broken=yes
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15488 #include <sys/procfs.h>
15491 if (sizeof (prfpregset_t) == sizeof (void *))
15496 if ac_fn_c_try_run "$LINENO"; then :
15497 gdb_cv_prfpregset_t_broken=no
15499 gdb_cv_prfpregset_t_broken=yes
15501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15502 conftest.$ac_objext conftest.beam conftest.$ac_ext
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
15508 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
15509 if test $gdb_cv_prfpregset_t_broken = yes; then
15511 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
15518 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
15519 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
15520 $as_echo_n "(cached) " >&6
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15524 #include <unistd.h>
15525 #include <sys/types.h>
15526 #include <sys/procfs.h>
15533 dummy = ioctl(0, PIOCSET, &dummy);
15539 if ac_fn_c_try_compile "$LINENO"; then :
15540 gdb_cv_have_procfs_piocset=yes
15542 gdb_cv_have_procfs_piocset=no
15544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
15548 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
15549 if test $gdb_cv_have_procfs_piocset = yes; then
15551 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
15556 if test ${host} = ${target} ; then
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
15559 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
15560 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
15561 $as_echo_n "(cached) " >&6
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15569 struct link_map lm; (void) lm.l_addr;
15574 if ac_fn_c_try_compile "$LINENO"; then :
15575 gdb_cv_have_struct_link_map_with_l_members=yes
15577 gdb_cv_have_struct_link_map_with_l_members=no
15579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
15583 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
15584 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
15586 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
15592 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
15593 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
15594 $as_echo_n "(cached) " >&6
15596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597 /* end confdefs.h. */
15598 #include <sys/types.h>
15603 struct link_map lm; (void) lm.lm_addr;
15608 if ac_fn_c_try_compile "$LINENO"; then :
15609 gdb_cv_have_struct_link_map_with_lm_members=yes
15611 gdb_cv_have_struct_link_map_with_lm_members=no
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
15617 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
15618 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
15620 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
15626 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
15627 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
15628 $as_echo_n "(cached) " >&6
15630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631 /* end confdefs.h. */
15632 #include <sys/types.h>
15633 #ifdef HAVE_NLIST_H
15640 struct so_map lm; (void) lm.som_addr;
15645 if ac_fn_c_try_compile "$LINENO"; then :
15646 gdb_cv_have_struct_so_map_with_som_members=yes
15648 gdb_cv_have_struct_so_map_with_som_members=no
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
15654 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
15655 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
15657 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
15663 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
15664 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
15665 $as_echo_n "(cached) " >&6
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15670 #include <sys/link.h>
15674 struct link_map32 l;
15679 if ac_fn_c_try_compile "$LINENO"; then :
15680 gdb_cv_have_struct_link_map32=yes
15682 gdb_cv_have_struct_link_map32=no
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
15688 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
15689 if test $gdb_cv_have_struct_link_map32 = yes; then
15691 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
15694 $as_echo "#define _SYSCALL32 1" >>confdefs.h
15699 # Check if the compiler supports the `long long' type.
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
15702 $as_echo_n "checking for long long support in compiler... " >&6; }
15703 if test "${gdb_cv_c_long_long+set}" = set; then :
15704 $as_echo_n "(cached) " >&6
15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15708 extern long long foo;
15712 switch (foo & 2) { case 0: return 1; }
15717 if ac_fn_c_try_compile "$LINENO"; then :
15718 gdb_cv_c_long_long=yes
15720 gdb_cv_c_long_long=no
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
15725 $as_echo "$gdb_cv_c_long_long" >&6; }
15726 if test $gdb_cv_c_long_long = yes; then
15728 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
15732 # Check if the compiler and runtime support printing long longs.
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15735 $as_echo_n "checking for long long support in printf... " >&6; }
15736 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
15737 $as_echo_n "(cached) " >&6
15739 if test "$cross_compiling" = yes; then :
15740 gdb_cv_printf_has_long_long=no
15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h. */
15744 $ac_includes_default
15750 l = (l << 16) + 0x0123;
15751 l = (l << 16) + 0x4567;
15752 l = (l << 16) + 0x89ab;
15753 l = (l << 16) + 0xcdef;
15754 sprintf (buf, "0x%016llx", l);
15755 return (strcmp ("0x0123456789abcdef", buf));
15760 if ac_fn_c_try_run "$LINENO"; then :
15761 gdb_cv_printf_has_long_long=yes
15763 gdb_cv_printf_has_long_long=no
15765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15766 conftest.$ac_objext conftest.beam conftest.$ac_ext
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15771 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15772 if test $gdb_cv_printf_has_long_long = yes; then
15774 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15778 # Check if the compiler and runtime support printing decfloats.
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
15781 $as_echo_n "checking for decfloat support in printf... " >&6; }
15782 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
15783 $as_echo_n "(cached) " >&6
15785 if test "$cross_compiling" = yes; then :
15786 gdb_cv_printf_has_decfloat=no
15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15790 $ac_includes_default
15795 _Decimal32 d32 = 1.2345df;
15796 _Decimal64 d64 = 1.2345dd;
15797 _Decimal128 d128 = 1.2345dl;
15798 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
15799 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
15804 if ac_fn_c_try_run "$LINENO"; then :
15805 gdb_cv_printf_has_decfloat=yes
15807 gdb_cv_printf_has_decfloat=no
15809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15810 conftest.$ac_objext conftest.beam conftest.$ac_ext
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
15815 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15816 if test $gdb_cv_printf_has_decfloat = yes; then
15818 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15822 # Check if the compiler supports the `long double' type. We can't use
15823 # AC_C_LONG_DOUBLE because that one does additional checks on the
15824 # constants defined in <float.h> that fail on some systems,
15825 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15828 $as_echo_n "checking for long double support in compiler... " >&6; }
15829 if test "${gdb_cv_c_long_double+set}" = set; then :
15830 $as_echo_n "(cached) " >&6
15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833 /* end confdefs.h. */
15836 if ac_fn_c_try_compile "$LINENO"; then :
15837 gdb_cv_c_long_double=yes
15839 gdb_cv_c_long_double=no
15841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15844 $as_echo "$gdb_cv_c_long_double" >&6; }
15845 if test $gdb_cv_c_long_double = yes; then
15847 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15851 # Check if the compiler and runtime support printing long doubles.
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15854 $as_echo_n "checking for long double support in printf... " >&6; }
15855 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
15856 $as_echo_n "(cached) " >&6
15858 if test "$cross_compiling" = yes; then :
15859 gdb_cv_printf_has_long_double=no
15861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15862 /* end confdefs.h. */
15863 $ac_includes_default
15868 long double f = 3.141592653;
15869 sprintf (buf, "%Lg", f);
15870 return (strncmp ("3.14159", buf, 7));
15875 if ac_fn_c_try_run "$LINENO"; then :
15876 gdb_cv_printf_has_long_double=yes
15878 gdb_cv_printf_has_long_double=no
15880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15881 conftest.$ac_objext conftest.beam conftest.$ac_ext
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
15886 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
15887 if test $gdb_cv_printf_has_long_double = yes; then
15889 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
15893 # Check if the compiler and runtime support scanning long doubles.
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
15896 $as_echo_n "checking for long double support in scanf... " >&6; }
15897 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
15898 $as_echo_n "(cached) " >&6
15900 if test "$cross_compiling" = yes; then :
15901 gdb_cv_scanf_has_long_double=no
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15909 char *buf = "3.141592653";
15911 sscanf (buf, "%Lg", &f);
15912 return !(f > 3.14159 && f < 3.14160);
15917 if ac_fn_c_try_run "$LINENO"; then :
15918 gdb_cv_scanf_has_long_double=yes
15920 gdb_cv_scanf_has_long_double=no
15922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15923 conftest.$ac_objext conftest.beam conftest.$ac_ext
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
15928 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
15929 if test $gdb_cv_scanf_has_long_double = yes; then
15931 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
15938 $as_echo_n "checking for -bbigtoc option... " >&6; }
15939 if test "${gdb_cv_bigtoc+set}" = set; then :
15940 $as_echo_n "(cached) " >&6
15943 SAVE_LDFLAGS=$LDFLAGS
15946 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
15947 *) gdb_cv_bigtoc=-bbigtoc ;;
15950 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952 /* end confdefs.h. */
15962 if ac_fn_c_try_link "$LINENO"; then :
15967 rm -f core conftest.err conftest.$ac_objext \
15968 conftest$ac_exeext conftest.$ac_ext
15969 LDFLAGS="${SAVE_LDFLAGS}"
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
15973 $as_echo "$gdb_cv_bigtoc" >&6; }
15974 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
15979 $as_echo_n "checking for the dynamic export flag... " >&6; }
15981 if test "${gdb_native}" = yes; then
15982 # The dynamically loaded libthread_db needs access to symbols in the gdb
15983 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
15984 # may not be supported there.
15985 old_LDFLAGS="$LDFLAGS"
15986 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
15987 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
15988 LDFLAGS="$LDFLAGS $RDYNAMIC"
15989 if test "${have_libpython}" = no; then
15990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15991 /* end confdefs.h. */
16001 if ac_fn_c_try_link "$LINENO"; then :
16004 rm -f core conftest.err conftest.$ac_objext \
16005 conftest$ac_exeext conftest.$ac_ext
16007 # Workaround http://bugs.python.org/issue4434 where static
16008 # libpythonX.Y.a would get its symbols required for
16009 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16010 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16011 old_CFLAGS="$CFLAGS"
16012 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
16013 if test "$cross_compiling" = yes; then :
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16018 #include "${have_libpython}/Python.h"
16024 err = PyRun_SimpleString ("import itertools\n");
16026 return err == 0 ? 0 : 1;
16031 if ac_fn_c_try_run "$LINENO"; then :
16034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16035 conftest.$ac_objext conftest.beam conftest.$ac_ext
16038 CFLAGS="$old_CFLAGS"
16040 LDFLAGS="$old_LDFLAGS"
16042 if $dynamic_list; then
16043 found="-Wl,--dynamic-list"
16044 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16047 RDYNAMIC="-rdynamic"
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16051 $as_echo "$found" >&6; }
16054 if test ${build} = ${host} -a ${host} = ${target} ; then
16057 # See if thread_db library is around for Solaris thread debugging.
16058 # Note that we must explicitly test for version 1 of the library
16059 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
16062 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
16063 if test -f /usr/lib/libthread_db.so.1 ; then
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16065 $as_echo "yes" >&6; }
16067 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
16069 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
16070 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16072 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16074 $as_echo_n "(cached) " >&6
16076 ac_check_lib_save_LIBS=$LIBS
16078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079 /* end confdefs.h. */
16081 /* Override any GCC internal prototype to avoid an error.
16082 Use char because int might match the return type of a GCC
16083 builtin and then its argument prototype would still apply. */
16096 if ac_fn_c_try_link "$LINENO"; then :
16097 ac_cv_lib_dl_dlopen=yes
16099 ac_cv_lib_dl_dlopen=no
16101 rm -f core conftest.err conftest.$ac_objext \
16102 conftest$ac_exeext conftest.$ac_ext
16103 LIBS=$ac_check_lib_save_LIBS
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16106 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16107 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16108 cat >>confdefs.h <<_ACEOF
16109 #define HAVE_LIBDL 1
16116 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
16117 # Sun randomly tweaked the prototypes in <proc_service.h>
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
16120 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
16121 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
16122 $as_echo_n "(cached) " >&6
16125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h. */
16128 #include <proc_service.h>
16129 ps_err_e ps_pdwrite
16130 (struct ps_prochandle*, psaddr_t, const void*, size_t);
16140 if ac_fn_c_try_compile "$LINENO"; then :
16141 gdb_cv_proc_service_is_old=no
16143 gdb_cv_proc_service_is_old=yes
16145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
16150 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
16151 if test $gdb_cv_proc_service_is_old = yes; then
16153 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16158 $as_echo "no" >&6; }
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16163 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16164 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
16165 $as_echo_n "(cached) " >&6
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16169 #include <sys/pthdebug.h>
16173 #ifndef PTHDB_VERSION_3
16180 if ac_fn_c_try_compile "$LINENO"; then :
16181 gdb_cv_have_aix_thread_debug=yes
16183 gdb_cv_have_aix_thread_debug=no
16185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16189 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16190 if test $gdb_cv_have_aix_thread_debug = yes; then
16191 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
16192 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
16193 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
16195 # Older versions of AIX do not provide the declaration for
16196 # the getthrds function (it appears that it was introduced
16198 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16200 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
16206 cat >>confdefs.h <<_ACEOF
16207 #define HAVE_DECL_GETTHRDS $ac_have_decl
16216 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16218 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16219 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
16220 $as_echo_n "(cached) " >&6
16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h. */
16224 #include <thread_db.h>
16228 int i = TD_NOTALLOC;
16233 if ac_fn_c_try_compile "$LINENO"; then :
16234 gdb_cv_thread_db_h_has_td_notalloc=yes
16236 gdb_cv_thread_db_h_has_td_notalloc=no
16239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16243 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16245 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16246 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
16247 $as_echo_n "(cached) " >&6
16249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250 /* end confdefs.h. */
16251 #include <thread_db.h>
16255 int i = TD_VERSION;
16260 if ac_fn_c_try_compile "$LINENO"; then :
16261 gdb_cv_thread_db_h_has_td_version=yes
16263 gdb_cv_thread_db_h_has_td_version=no
16266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16270 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16272 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16273 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
16274 $as_echo_n "(cached) " >&6
16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277 /* end confdefs.h. */
16278 #include <thread_db.h>
16287 if ac_fn_c_try_compile "$LINENO"; then :
16288 gdb_cv_thread_db_h_has_td_notls=yes
16290 gdb_cv_thread_db_h_has_td_notls=no
16293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16297 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16299 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16301 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16304 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16306 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16309 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16311 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16315 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
16317 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
16318 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
16319 $as_echo_n "(cached) " >&6
16321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322 /* end confdefs.h. */
16323 #include <sys/syscall.h>
16327 int i = __NR_tkill;
16332 if ac_fn_c_try_compile "$LINENO"; then :
16333 gdb_cv_sys_syscall_h_has_tkill=yes
16335 gdb_cv_sys_syscall_h_has_tkill=no
16338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
16342 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
16344 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
16346 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
16350 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
16352 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
16358 cat >>confdefs.h <<_ACEOF
16359 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
16363 if test "$cross_compiling" = yes; then :
16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h. */
16366 #include <sys/personality.h>
16371 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
16372 # define ADDR_NO_RANDOMIZE 0x0040000
16374 /* Test the flag could be set and stays set. */
16375 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
16376 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
16382 if ac_fn_c_try_link "$LINENO"; then :
16383 have_personality=true
16385 have_personality=false
16387 rm -f core conftest.err conftest.$ac_objext \
16388 conftest$ac_exeext conftest.$ac_ext
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16392 #include <sys/personality.h>
16397 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
16398 # define ADDR_NO_RANDOMIZE 0x0040000
16400 /* Test the flag could be set and stays set. */
16401 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
16402 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
16408 if ac_fn_c_try_run "$LINENO"; then :
16409 have_personality=true
16411 have_personality=false
16413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16414 conftest.$ac_objext conftest.beam conftest.$ac_ext
16417 if $have_personality
16420 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
16425 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16426 # except that the argument to --with-sysroot is optional.
16427 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16428 if test "x$with_sysroot" = xyes; then
16429 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
16432 # Check whether --with-sysroot was given.
16433 if test "${with_sysroot+set}" = set; then :
16434 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
16436 TARGET_SYSTEM_ROOT=
16440 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16441 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16442 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
16443 ac_define_dir=`eval echo $ac_define_dir`
16445 cat >>confdefs.h <<_ACEOF
16446 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16452 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
16453 if test "x$prefix" = xNONE; then
16454 test_prefix=/usr/local
16456 test_prefix=$prefix
16459 test_prefix=$exec_prefix
16462 case ${ac_define_dir} in
16463 "${test_prefix}"|"${test_prefix}/"*|\
16464 '${exec_prefix}'|'${exec_prefix}/'*)
16469 cat >>confdefs.h <<_ACEOF
16470 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16477 # Check whether --with-system-gdbinit was given.
16478 if test "${with_system_gdbinit+set}" = set; then :
16479 withval=$with_system_gdbinit;
16480 SYSTEM_GDBINIT=$withval
16486 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16488 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
16489 ac_define_dir=`eval echo $ac_define_dir`
16491 cat >>confdefs.h <<_ACEOF
16492 #define SYSTEM_GDBINIT "$ac_define_dir"
16498 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
16499 if test "x$prefix" = xNONE; then
16500 test_prefix=/usr/local
16502 test_prefix=$prefix
16505 test_prefix=$exec_prefix
16508 case ${ac_define_dir} in
16509 "${test_prefix}"|"${test_prefix}/"*|\
16510 '${exec_prefix}'|'${exec_prefix}/'*)
16515 cat >>confdefs.h <<_ACEOF
16516 #define SYSTEM_GDBINIT_RELOCATABLE $value
16522 # Check whether --enable-werror was given.
16523 if test "${enable_werror+set}" = set; then :
16524 enableval=$enable_werror; case "${enableval}" in
16525 yes | y) ERROR_ON_WARNING="yes" ;;
16526 no | n) ERROR_ON_WARNING="no" ;;
16527 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16532 # Enable -Werror by default when using gcc
16533 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16534 ERROR_ON_WARNING=yes
16538 if test "${ERROR_ON_WARNING}" = yes ; then
16539 WERROR_CFLAGS="-Werror"
16542 # The entries after -Wno-pointer-sign are disabled warnings which may
16543 # be enabled in the future, which can not currently be used to build
16545 # NOTE: If you change this list, remember to update
16546 # gdb/doc/gdbint.texinfo.
16547 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
16548 -Wformat-nonliteral -Wno-pointer-sign \
16549 -Wno-unused -Wunused-value -Wunused-function \
16550 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
16552 # Enable -Wno-format by default when using gcc on mingw since many
16553 # GCC versions complain about %I64.
16555 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
16558 # Check whether --enable-build-warnings was given.
16559 if test "${enable_build_warnings+set}" = set; then :
16560 enableval=$enable_build_warnings; case "${enableval}" in
16562 no) build_warnings="-w";;
16563 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16564 build_warnings="${build_warnings} ${t}";;
16565 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16566 build_warnings="${t} ${build_warnings}";;
16567 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16569 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16570 echo "Setting compiler warning flags = $build_warnings" 6>&1
16573 # Check whether --enable-gdb-build-warnings was given.
16574 if test "${enable_gdb_build_warnings+set}" = set; then :
16575 enableval=$enable_gdb_build_warnings; case "${enableval}" in
16577 no) build_warnings="-w";;
16578 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16579 build_warnings="${build_warnings} ${t}";;
16580 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16581 build_warnings="${t} ${build_warnings}";;
16582 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16584 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16585 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16589 if test "x${build_warnings}" != x -a "x$GCC" = xyes
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16592 $as_echo_n "checking compiler warning flags... " >&6; }
16593 # Separate out the -Werror flag as some files just cannot be
16594 # compiled with it enabled.
16595 for w in ${build_warnings}; do
16597 -Werr*) WERROR_CFLAGS=-Werror ;;
16598 *) # Check that GCC accepts it
16599 saved_CFLAGS="$CFLAGS"
16600 CFLAGS="$CFLAGS $w"
16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h. */
16612 if ac_fn_c_try_compile "$LINENO"; then :
16613 WARN_CFLAGS="${WARN_CFLAGS} $w"
16615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16616 CFLAGS="$saved_CFLAGS"
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16620 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16625 # In the Cygwin environment, we need some additional flags.
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
16627 $as_echo_n "checking for cygwin... " >&6; }
16628 if test "${gdb_cv_os_cygwin+set}" = set; then :
16629 $as_echo_n "(cached) " >&6
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h. */
16634 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
16638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16639 $EGREP "lose" >/dev/null 2>&1; then :
16640 gdb_cv_os_cygwin=yes
16642 gdb_cv_os_cygwin=no
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
16648 $as_echo "$gdb_cv_os_cygwin" >&6; }
16651 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
16653 *go32* ) SER_HARDWIRE=ser-go32.o ;;
16654 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
16655 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
16659 # libreadline needs libuser32.a in a cygwin environment
16661 if test x$gdb_cv_os_cygwin = xyes; then
16662 WIN32LIBS="-luser32"
16663 case "${target}" in
16664 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
16669 # The ser-tcp.c module requires sockets.
16673 $as_echo "#define USE_WIN32API 1" >>confdefs.h
16675 WIN32LIBS="$WIN32LIBS -lws2_32"
16680 # Add ELF support to GDB, but only if BFD includes ELF support.
16682 OLD_LDFLAGS=$LDFLAGS
16684 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16685 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16686 # always want our bfd.
16687 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16688 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
16689 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16690 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16691 if test "$plugins" = "yes"; then
16694 LIBS="-lbfd -liberty $intl $LIBS"
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
16696 $as_echo_n "checking for ELF support in BFD... " >&6; }
16697 if test "${gdb_cv_var_elf+set}" = set; then :
16698 $as_echo_n "(cached) " >&6
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h. */
16702 #include <stdlib.h>
16704 #include "elf-bfd.h"
16709 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
16714 if ac_fn_c_try_link "$LINENO"; then :
16719 rm -f core conftest.err conftest.$ac_objext \
16720 conftest$ac_exeext conftest.$ac_ext
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
16723 $as_echo "$gdb_cv_var_elf" >&6; }
16724 if test $gdb_cv_var_elf = yes; then
16725 CONFIG_OBS="$CONFIG_OBS elfread.o"
16727 $as_echo "#define HAVE_ELF 1" >>confdefs.h
16729 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16730 if test "$plugins" = "yes"; then
16731 OLD_LIBS="-ldl $OLD_LIBS"
16735 LDFLAGS=$OLD_LDFLAGS
16738 # Add any host-specific objects to GDB.
16739 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
16741 LIBGUI="../libgui/src/libgui.a"
16742 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
16751 *-*-cygwin* | *-*-mingw* )
16760 if test "${enable_gdbtk}" = "yes"; then
16762 # Gdbtk must have an absolute path to srcdir in order to run
16763 # properly when not installed.
16766 GDBTK_SRC_DIR=`pwd`
16771 # Ok, lets find the tcl configuration
16772 # First, look for one uninstalled.
16773 # the alternative search directory is invoked by --with-tcl
16776 if test x"${no_tcl}" = x ; then
16777 # we reset no_tcl in case something fails here
16780 # Check whether --with-tcl was given.
16781 if test "${with_tcl+set}" = set; then :
16782 withval=$with_tcl; with_tclconfig=${withval}
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16786 $as_echo_n "checking for Tcl configuration... " >&6; }
16787 if test "${ac_cv_c_tclconfig+set}" = set; then :
16788 $as_echo_n "(cached) " >&6
16792 # First check to see if --with-tcl was specified.
16794 *-*-cygwin*) platDir="win" ;;
16795 *) platDir="unix" ;;
16797 if test x"${with_tclconfig}" != x ; then
16798 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16799 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
16801 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16805 # then check for a private Tcl installation
16806 if test x"${ac_cv_c_tclconfig}" = x ; then
16809 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16810 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16811 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16813 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16814 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16815 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16817 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16818 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16819 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16820 if test -f "$i/$platDir/tclConfig.sh" ; then
16821 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16827 # on Darwin, check in Framework installation locations
16828 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
16829 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16830 `ls -d /Library/Frameworks 2>/dev/null` \
16831 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16832 `ls -d /System/Library/Frameworks 2>/dev/null` \
16834 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16835 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
16841 # check in a few common install locations
16842 if test x"${ac_cv_c_tclconfig}" = x ; then
16843 for i in `ls -d ${libdir} 2>/dev/null` \
16844 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16845 `ls -d ${prefix}/lib 2>/dev/null` \
16846 `ls -d /usr/local/lib 2>/dev/null` \
16847 `ls -d /usr/contrib/lib 2>/dev/null` \
16848 `ls -d /usr/lib 2>/dev/null` \
16850 if test -f "$i/tclConfig.sh" ; then
16851 ac_cv_c_tclconfig=`(cd $i; pwd)`
16857 # check in a few other private locations
16858 if test x"${ac_cv_c_tclconfig}" = x ; then
16861 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16862 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16863 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16864 if test -f "$i/$platDir/tclConfig.sh" ; then
16865 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16874 if test x"${ac_cv_c_tclconfig}" = x ; then
16875 TCL_BIN_DIR="# no Tcl configs found"
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16877 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16880 TCL_BIN_DIR=${ac_cv_c_tclconfig}
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16882 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16887 # If $no_tk is nonempty, then we can't do Tk, and there is no
16888 # point to doing Tcl.
16891 # Ok, lets find the tk configuration
16892 # First, look for one uninstalled.
16893 # the alternative search directory is invoked by --with-tk
16896 if test x"${no_tk}" = x ; then
16897 # we reset no_tk in case something fails here
16900 # Check whether --with-tk was given.
16901 if test "${with_tk+set}" = set; then :
16902 withval=$with_tk; with_tkconfig=${withval}
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16906 $as_echo_n "checking for Tk configuration... " >&6; }
16907 if test "${ac_cv_c_tkconfig+set}" = set; then :
16908 $as_echo_n "(cached) " >&6
16912 # First check to see if --with-tkconfig was specified.
16913 if test x"${with_tkconfig}" != x ; then
16914 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16915 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
16917 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16921 # then check for a private Tk library
16923 *-*-cygwin*) platDir="win" ;;
16924 *) platDir="unix" ;;
16926 if test x"${ac_cv_c_tkconfig}" = x ; then
16929 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16930 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16931 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16933 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16934 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16935 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16937 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16938 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16939 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16940 if test -f "$i/$platDir/tkConfig.sh" ; then
16941 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16947 # on Darwin, check in Framework installation locations
16948 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
16949 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16950 `ls -d /Library/Frameworks 2>/dev/null` \
16951 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16952 `ls -d /System/Library/Frameworks 2>/dev/null` \
16954 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16955 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
16961 # check in a few common install locations
16962 if test x"${ac_cv_c_tkconfig}" = x ; then
16963 for i in `ls -d ${libdir} 2>/dev/null` \
16964 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16965 `ls -d ${prefix}/lib 2>/dev/null` \
16966 `ls -d /usr/local/lib 2>/dev/null` \
16967 `ls -d /usr/contrib/lib 2>/dev/null` \
16968 `ls -d /usr/lib 2>/dev/null` \
16970 if test -f "$i/tkConfig.sh" ; then
16971 ac_cv_c_tkconfig=`(cd $i; pwd)`
16976 # check in a few other private locations
16977 if test x"${ac_cv_c_tkconfig}" = x ; then
16980 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16981 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16982 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16983 if test -f "$i/$platDir/tkConfig.sh" ; then
16984 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16993 if test x"${ac_cv_c_tkconfig}" = x ; then
16994 TK_BIN_DIR="# no Tk configs found"
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16996 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16999 TK_BIN_DIR=${ac_cv_c_tkconfig}
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
17001 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17006 if test -z "${no_tcl}" -a -z "${no_tk}"; then
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
17009 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
17011 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17013 $as_echo "loading" >&6; }
17014 . ${TCL_BIN_DIR}/tclConfig.sh
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
17017 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17020 # eval is required to do the TCL_DBGX substitution
17021 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
17022 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
17024 # If the TCL_BIN_DIR is the build directory (not the install directory),
17025 # then set the common variable name to the value of the build variables.
17026 # For example, the variable TCL_LIB_SPEC will be set to the value
17027 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
17028 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
17029 # installed and uninstalled version of Tcl.
17030 if test -f "${TCL_BIN_DIR}/Makefile" ; then
17031 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
17032 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
17033 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
17034 elif test "`uname -s`" = "Darwin"; then
17035 # If Tcl was built as a framework, attempt to use the libraries
17036 # from the framework at the given location so that linking works
17037 # against Tcl.framework installed in an arbitary location.
17038 case ${TCL_DEFS} in
17040 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
17041 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
17042 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
17043 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
17044 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
17049 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
17050 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
17051 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
17057 # eval is required to do the TCL_DBGX substitution
17058 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
17059 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
17060 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
17061 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
17077 # Check for in-tree tcl
17084 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
17088 # Find Tcl private headers
17089 if test x"${intree}" = xno; then
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
17092 $as_echo_n "checking for Tcl private headers... " >&6; }
17094 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
17095 if test -f ${dir}/tclInt.h ; then
17099 if test x"${private_dir}" = x; then
17100 as_fn_error "could not find private Tcl headers" "$LINENO" 5
17102 TCL_PRIVATE_INCLUDE="-I${private_dir}"
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17104 $as_echo "${private_dir}" >&6; }
17107 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
17108 TCL_LIBRARY="${TCL_LIB_SPEC}"
17111 # If building tcl in the same src tree, private headers
17112 # are not needed, but we need to be sure to use the right
17114 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
17115 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
17116 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
17124 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
17126 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17128 $as_echo "loading" >&6; }
17129 . ${TK_BIN_DIR}/tkConfig.sh
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
17132 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17135 # eval is required to do the TK_DBGX substitution
17136 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
17137 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
17139 # If the TK_BIN_DIR is the build directory (not the install directory),
17140 # then set the common variable name to the value of the build variables.
17141 # For example, the variable TK_LIB_SPEC will be set to the value
17142 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
17143 # instead of TK_BUILD_LIB_SPEC since it will work with both an
17144 # installed and uninstalled version of Tcl.
17145 if test -f "${TK_BIN_DIR}/Makefile" ; then
17146 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
17147 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
17148 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
17149 elif test "`uname -s`" = "Darwin"; then
17150 # If Tk was built as a framework, attempt to use the libraries
17151 # from the framework at the given location so that linking works
17152 # against Tk.framework installed in an arbitary location.
17155 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
17156 for i in "`cd ${TK_BIN_DIR}; pwd`" \
17157 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
17158 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
17159 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
17164 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
17165 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
17166 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
17172 # eval is required to do the TK_DBGX substitution
17173 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
17174 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
17175 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
17176 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
17191 # Check for in-tree Tk
17193 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
17197 # Find Tk private headers
17198 if test x"${intree}" = xno; then
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
17201 $as_echo_n "checking for Tk private headers... " >&6; }
17203 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
17204 if test -f ${dir}/tkInt.h; then
17208 if test x"${private_dir}" = x; then
17209 as_fn_error "could not find Tk private headers" "$LINENO" 5
17211 TK_PRIVATE_INCLUDE="-I${private_dir}"
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17213 $as_echo "${private_dir}" >&6; }
17216 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
17217 TK_LIBRARY=${TK_LIB_SPEC}
17220 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
17221 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
17222 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
17229 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
17231 # Include some libraries that Tcl and Tk want.
17232 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
17233 # Yes, the ordering seems wrong here. But it isn't.
17234 # TK_LIBS is the list of libraries that need to be linked
17235 # after Tcl/Tk. Note that this isn't put into LIBS. If it
17236 # were in LIBS then any link tests after this point would
17237 # try to include things like `$(LIBGUI)', which wouldn't work.
17238 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
17240 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
17241 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
17242 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
17243 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
17244 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
17245 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
17246 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
17248 if test x$gdb_cv_os_cygwin = xyes; then
17249 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
17250 WIN32LDAPP="-Wl,--subsystem,console"
17251 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
17254 subdirs="$subdirs gdbtk"
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17267 $as_echo_n "checking for X... " >&6; }
17270 # Check whether --with-x was given.
17271 if test "${with_x+set}" = set; then :
17275 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17276 if test "x$with_x" = xno; then
17277 # The user explicitly disabled X.
17280 case $x_includes,$x_libraries in #(
17281 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
17282 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
17283 $as_echo_n "(cached) " >&6
17285 # One or both of the vars are not set, and there is no cached value.
17286 ac_x_includes=no ac_x_libraries=no
17287 rm -f -r conftest.dir
17288 if mkdir conftest.dir; then
17290 cat >Imakefile <<'_ACEOF'
17292 @echo incroot='${INCROOT}'
17294 @echo usrlibdir='${USRLIBDIR}'
17296 @echo libdir='${LIBDIR}'
17298 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17299 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17300 for ac_var in incroot usrlibdir libdir; do
17301 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17303 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17304 for ac_extension in a so sl dylib la dll; do
17305 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17306 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17307 ac_im_usrlibdir=$ac_im_libdir; break
17310 # Screen out bogus values from the imake configuration. They are
17311 # bogus both because they are the default anyway, and because
17312 # using them would break gcc on systems where it needs fixed includes.
17313 case $ac_im_incroot in
17314 /usr/include) ac_x_includes= ;;
17315 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17317 case $ac_im_usrlibdir in
17318 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
17319 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17323 rm -f -r conftest.dir
17326 # Standard set of common directories for X headers.
17327 # Check X11 before X11Rn because it is often a symlink to the current release.
17341 /usr/local/X11/include
17342 /usr/local/X11R7/include
17343 /usr/local/X11R6/include
17344 /usr/local/X11R5/include
17345 /usr/local/X11R4/include
17347 /usr/local/include/X11
17348 /usr/local/include/X11R7
17349 /usr/local/include/X11R6
17350 /usr/local/include/X11R5
17351 /usr/local/include/X11R4
17355 /usr/XFree86/include/X11
17359 /usr/unsupported/include
17360 /usr/athena/include
17361 /usr/local/x11r5/include
17362 /usr/lpp/Xamples/include
17364 /usr/openwin/include
17365 /usr/openwin/share/include'
17367 if test "$ac_x_includes" = no; then
17368 # Guess where to find include files, by looking for Xlib.h.
17369 # First, try using that file with no special directory specified.
17370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17371 /* end confdefs.h. */
17372 #include <X11/Xlib.h>
17374 if ac_fn_c_try_cpp "$LINENO"; then :
17375 # We can compile using X headers with no special include directory.
17378 for ac_dir in $ac_x_header_dirs; do
17379 if test -r "$ac_dir/X11/Xlib.h"; then
17380 ac_x_includes=$ac_dir
17385 rm -f conftest.err conftest.$ac_ext
17386 fi # $ac_x_includes = no
17388 if test "$ac_x_libraries" = no; then
17389 # Check for the libraries.
17390 # See if we find them without any special options.
17391 # Don't add to $LIBS permanently.
17394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395 /* end confdefs.h. */
17396 #include <X11/Xlib.h>
17405 if ac_fn_c_try_link "$LINENO"; then :
17407 # We can link X programs with no special library path.
17411 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17413 # Don't even attempt the hair of trying to link an X program!
17414 for ac_extension in a so sl dylib la dll; do
17415 if test -r "$ac_dir/libX11.$ac_extension"; then
17416 ac_x_libraries=$ac_dir
17422 rm -f core conftest.err conftest.$ac_objext \
17423 conftest$ac_exeext conftest.$ac_ext
17424 fi # $ac_x_libraries = no
17426 case $ac_x_includes,$ac_x_libraries in #(
17427 no,* | *,no | *\'*)
17428 # Didn't find X, or a directory has "'" in its name.
17429 ac_cv_have_x="have_x=no";; #(
17431 # Record where we found X for the cache.
17432 ac_cv_have_x="have_x=yes\
17433 ac_x_includes='$ac_x_includes'\
17434 ac_x_libraries='$ac_x_libraries'"
17440 eval "$ac_cv_have_x"
17443 if test "$have_x" != yes; then
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17445 $as_echo "$have_x" >&6; }
17448 # If each of the values was on the command line, it overrides each guess.
17449 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17450 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17451 # Update the cache value to reflect the command line values.
17452 ac_cv_have_x="have_x=yes\
17453 ac_x_includes='$x_includes'\
17454 ac_x_libraries='$x_libraries'"
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17456 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17460 # Unlike the sim directory, whether a simulator is linked is controlled by
17461 # presence of a gdb_sim definition in the target configure.tgt entry.
17462 # This code just checks for a few cases where we'd like to ignore those
17463 # definitions, even when they're present in the '.mt' file. These cases
17464 # are when --disable-sim is specified, or if the simulator directory is
17465 # not part of the source tree.
17467 # Check whether --enable-sim was given.
17468 if test "${enable_sim+set}" = set; then :
17469 enableval=$enable_sim; echo "enable_sim = $enable_sim";
17470 echo "enableval = ${enableval}";
17471 case "${enableval}" in
17472 yes) ignore_sim=false ;;
17473 no) ignore_sim=true ;;
17474 *) ignore_sim=false ;;
17481 if test ! -d "${srcdir}/../sim"; then
17487 if test "${ignore_sim}" = "false"; then
17488 if test x"${gdb_sim}" != x ; then
17490 SIM_OBS="remote-sim.o"
17492 $as_echo "#define WITH_SIM 1" >>confdefs.h
17510 # List of host floatformats.
17512 cat >>confdefs.h <<_ACEOF
17513 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17517 cat >>confdefs.h <<_ACEOF
17518 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17522 cat >>confdefs.h <<_ACEOF
17523 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17527 # target_subdir is used by the testsuite to find the target libraries.
17529 if test "${host}" != "${target}"; then
17530 target_subdir="${target_alias}/"
17535 if test "${gdb_native}" = "yes"; then
17536 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
17537 if test ! -f ${host_makefile_frag}; then
17538 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
17540 frags="$frags $host_makefile_frag"
17542 host_makefile_frag=/dev/null
17548 if test "${gdb_native}" = "yes"; then
17549 # We pick this up from the host configuration file (.mh) because we
17550 # do not have a native configuration Makefile fragment.
17551 nativefile=`sed -n '
17552 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
17553 ' ${host_makefile_frag}`
17557 if test x"${gdb_osabi}" != x ; then
17559 cat >>confdefs.h <<_ACEOF
17560 #define GDB_OSABI_DEFAULT $gdb_osabi
17565 # Enable multi-ice-gdb-server.
17566 # Check whether --enable-multi-ice was given.
17567 if test "${enable_multi_ice+set}" = set; then :
17568 enableval=$enable_multi_ice; case $enableval in
17571 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
17575 if test "x$enable_multi_ice" = xyes; then
17576 subdirs="$subdirs multi-ice"
17580 # Check whether --enable-gdbserver was given.
17581 if test "${enable_gdbserver+set}" = set; then :
17582 enableval=$enable_gdbserver; case "${enableval}" in
17584 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17587 enable_gdbserver=auto
17591 # We only build gdbserver automatically in a native configuration, and
17592 # only if the user did not explicitly disable its build.
17593 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17595 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17596 if test "x$build_gdbserver" = xyes; then
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17598 $as_echo "yes" >&6; }
17599 subdirs="$subdirs gdbserver"
17601 gdbserver_build_enabled=yes
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17604 $as_echo "no" >&6; }
17608 # If the user explicitly request the gdbserver to be built, verify that
17609 # we were in fact able to enable it.
17610 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17611 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17614 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
17615 # to an empty version.
17621 if test "${nativefile}" != ""; then
17622 case "${nativefile}" in
17623 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
17624 * ) GDB_NM_FILE="${nativefile}"
17626 files="${files} ${GDB_NM_FILE}"
17627 links="${links} nm.h"
17629 cat >>confdefs.h <<_ACEOF
17630 #define GDB_NM_FILE "${GDB_NM_FILE}"
17636 ac_sources="$files"
17638 while test -n "$ac_sources"; do
17639 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17640 set $ac_sources; ac_source=$1; shift; ac_sources=$*
17641 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
17643 ac_config_links="$ac_config_links $ac_config_links_1"
17649 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17652 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directory/Makefile"
17654 ac_config_commands="$ac_config_commands default"
17656 cat >confcache <<\_ACEOF
17657 # This file is a shell script that caches the results of configure
17658 # tests run on this system so they can be shared between configure
17659 # scripts and configure runs, see configure's option --config-cache.
17660 # It is not useful on other systems. If it contains results you don't
17661 # want to keep, you may remove or edit it.
17663 # config.status only pays attention to the cache file if you give it
17664 # the --recheck option to rerun configure.
17666 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17667 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17668 # following values.
17672 # The following way of writing the cache mishandles newlines in values,
17673 # but we know of no workaround that is simple, portable, and efficient.
17674 # So, we kill variables containing newlines.
17675 # Ultrix sh set writes to stderr and can't be redirected directly,
17676 # and sets the high bit in the cache file unless we assign to the vars.
17678 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17679 eval ac_val=\$$ac_var
17683 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17684 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17687 _ | IFS | as_nl) ;; #(
17688 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17689 *) { eval $ac_var=; unset $ac_var;} ;;
17695 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17696 *${as_nl}ac_space=\ *)
17697 # `set' does not quote correctly, so add quotes: double-quote
17698 # substitution turns \\\\ into \\, and sed turns \\ into \.
17701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17704 # `set' quotes correctly as required by POSIX, so do not add quotes.
17705 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17716 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17718 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17719 if test -w "$cache_file"; then
17720 test "x$cache_file" != "x/dev/null" &&
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17722 $as_echo "$as_me: updating cache $cache_file" >&6;}
17723 cat confcache >$cache_file
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17726 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17732 # Let make expand exec_prefix.
17733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17735 DEFS=-DHAVE_CONFIG_H
17739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17740 # 1. Remove the extension, and $U if already installed.
17741 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17742 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17743 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17744 # will be set to the directory where LIBOBJS objects are built.
17745 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17746 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17748 LIBOBJS=$ac_libobjs
17750 LTLIBOBJS=$ac_ltlibobjs
17753 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17754 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17757 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
17758 as_fn_error "conditional \"GMAKE\" was never defined.
17759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17761 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17762 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
17763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17768 if test -n "$gl_LIBOBJS"; then
17769 # Remove the extension.
17770 sed_drop_objext='s/\.o$//;s/\.obj$//'
17771 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17772 gl_libobjs="$gl_libobjs $i.$ac_objext"
17773 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17776 gl_LIBOBJS=$gl_libobjs
17778 gl_LTLIBOBJS=$gl_ltlibobjs
17784 if test -n "$gltests_LIBOBJS"; then
17785 # Remove the extension.
17786 sed_drop_objext='s/\.o$//;s/\.obj$//'
17787 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17788 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17789 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17792 gltests_LIBOBJS=$gltests_libobjs
17794 gltests_LTLIBOBJS=$gltests_ltlibobjs
17797 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17798 as_fn_error "conditional \"AMDEP\" was never defined.
17799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17801 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17802 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17805 if test -n "$EXEEXT"; then
17807 am__EXEEXT_FALSE='#'
17809 am__EXEEXT_TRUE='#'
17815 : ${CONFIG_STATUS=./config.status}
17817 ac_clean_files_save=$ac_clean_files
17818 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17820 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17822 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17824 # Generated by $as_me.
17825 # Run this file to recreate the current configuration.
17826 # Compiler output produced by configure, useful for debugging
17827 # configure, is in config.log if it exists.
17830 ac_cs_recheck=false
17833 SHELL=\${CONFIG_SHELL-$SHELL}
17836 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17837 ## -------------------- ##
17838 ## M4sh Initialization. ##
17839 ## -------------------- ##
17841 # Be more Bourne compatible
17842 DUALCASE=1; export DUALCASE # for MKS sh
17843 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17846 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17847 # is contrary to our usage. Disable this feature.
17848 alias -g '${1+"$@"}'='"$@"'
17849 setopt NO_GLOB_SUBST
17851 case `(set -o) 2>/dev/null` in #(
17863 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17864 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17867 # Prefer a ksh shell builtin over an external printf program on Solaris,
17868 # but without wasting forks for bash or zsh.
17869 if test -z "$BASH_VERSION$ZSH_VERSION" \
17870 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17871 as_echo='print -r --'
17872 as_echo_n='print -rn --'
17873 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17874 as_echo='printf %s\n'
17875 as_echo_n='printf %s'
17877 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17878 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17879 as_echo_n='/usr/ucb/echo -n'
17881 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17882 as_echo_n_body='eval
17886 expr "X$arg" : "X\\(.*\\)$as_nl";
17887 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17889 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17891 export as_echo_n_body
17892 as_echo_n='sh -c $as_echo_n_body as_echo'
17894 export as_echo_body
17895 as_echo='sh -c $as_echo_body as_echo'
17898 # The user is always right.
17899 if test "${PATH_SEPARATOR+set}" != set; then
17901 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17902 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17909 # We need space, tab and new line, in precisely that order. Quoting is
17910 # there to prevent editors from complaining about space-tab.
17911 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17912 # splitting by setting IFS to empty value.)
17915 # Find who we are. Look in the path if we contain no directory separator.
17917 *[\\/]* ) as_myself=$0 ;;
17918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17919 for as_dir in $PATH
17922 test -z "$as_dir" && as_dir=.
17923 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17929 # We did not find ourselves, most probably we were run as `sh COMMAND'
17930 # in which case we are not to be found in the path.
17931 if test "x$as_myself" = x; then
17934 if test ! -f "$as_myself"; then
17935 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17939 # Unset variables that we do not need and which cause bugs (e.g. in
17940 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17941 # suppresses any "Segmentation fault" message there. '((' could
17942 # trigger a bug in pdksh 5.2.14.
17943 for as_var in BASH_ENV ENV MAIL MAILPATH
17944 do eval test x\${$as_var+set} = xset \
17945 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17958 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17961 # as_fn_error ERROR [LINENO LOG_FD]
17962 # ---------------------------------
17963 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17964 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17965 # script with status $?, using 1 if that was 0.
17968 as_status=$?; test $as_status -eq 0 && as_status=1
17970 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17971 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17973 $as_echo "$as_me: error: $1" >&2
17974 as_fn_exit $as_status
17978 # as_fn_set_status STATUS
17979 # -----------------------
17980 # Set $? to STATUS, without forking.
17981 as_fn_set_status ()
17984 } # as_fn_set_status
17986 # as_fn_exit STATUS
17987 # -----------------
17988 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17992 as_fn_set_status $1
17998 # Portably unset VAR.
18001 { eval $1=; unset $1;}
18003 as_unset=as_fn_unset
18004 # as_fn_append VAR VALUE
18005 # ----------------------
18006 # Append the text in VALUE to the end of the definition contained in VAR. Take
18007 # advantage of any shell optimizations that allow amortized linear growth over
18008 # repeated appends, instead of the typical quadratic growth present in naive
18010 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18011 eval 'as_fn_append ()
18022 # as_fn_arith ARG...
18023 # ------------------
18024 # Perform arithmetic evaluation on the ARGs, and store the result in the
18025 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18026 # must be portable across $(()) and expr.
18027 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18028 eval 'as_fn_arith ()
18035 as_val=`expr "$@" || test $? -eq 1`
18040 if expr a : '\(a\)' >/dev/null 2>&1 &&
18041 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18047 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18048 as_basename=basename
18053 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18059 as_me=`$as_basename -- "$0" ||
18060 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18061 X"$0" : 'X\(//\)$' \| \
18062 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18064 sed '/^.*\/\([^/][^/]*\)\/*$/{
18078 # Avoid depending upon Character Ranges.
18079 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18080 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18081 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18082 as_cr_digits='0123456789'
18083 as_cr_alnum=$as_cr_Letters$as_cr_digits
18085 ECHO_C= ECHO_N= ECHO_T=
18086 case `echo -n x` in #(((((
18088 case `echo 'xy\c'` in
18089 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18091 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18098 rm -f conf$$ conf$$.exe conf$$.file
18099 if test -d conf$$.dir; then
18100 rm -f conf$$.dir/conf$$.file
18103 mkdir conf$$.dir 2>/dev/null
18105 if (echo >conf$$.file) 2>/dev/null; then
18106 if ln -s conf$$.file conf$$ 2>/dev/null; then
18108 # ... but there are two gotchas:
18109 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18110 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18111 # In both cases, we have to default to `cp -p'.
18112 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18114 elif ln conf$$.file conf$$ 2>/dev/null; then
18122 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18123 rmdir conf$$.dir 2>/dev/null
18128 # Create "$as_dir" as a directory, including parents if necessary.
18133 -*) as_dir=./$as_dir;;
18135 test -d "$as_dir" || eval $as_mkdir_p || {
18139 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18140 *) as_qdir=$as_dir;;
18142 as_dirs="'$as_qdir' $as_dirs"
18143 as_dir=`$as_dirname -- "$as_dir" ||
18144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18145 X"$as_dir" : 'X\(//\)[^/]' \| \
18146 X"$as_dir" : 'X\(//\)$' \| \
18147 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18148 $as_echo X"$as_dir" |
18149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18153 /^X\(\/\/\)[^/].*/{
18166 test -d "$as_dir" && break
18168 test -z "$as_dirs" || eval "mkdir $as_dirs"
18169 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18173 if mkdir -p . 2>/dev/null; then
18174 as_mkdir_p='mkdir -p "$as_dir"'
18176 test -d ./-p && rmdir ./-p
18180 if test -x / >/dev/null 2>&1; then
18181 as_test_x='test -x'
18183 if ls -dL / >/dev/null 2>&1; then
18190 if test -d "$1"; then
18196 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18197 ???[sx]*):;;*)false;;esac;fi
18201 as_executable_p=$as_test_x
18203 # Sed expression to map a string onto a valid CPP name.
18204 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18206 # Sed expression to map a string onto a valid variable name.
18207 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18211 ## ----------------------------------- ##
18212 ## Main body of $CONFIG_STATUS script. ##
18213 ## ----------------------------------- ##
18215 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18218 # Save the log message, to keep $0 and so on meaningful, and to
18219 # report actual input values of CONFIG_FILES etc. instead of their
18220 # values after options handling.
18222 This file was extended by $as_me, which was
18223 generated by GNU Autoconf 2.64. Invocation command line was
18225 CONFIG_FILES = $CONFIG_FILES
18226 CONFIG_HEADERS = $CONFIG_HEADERS
18227 CONFIG_LINKS = $CONFIG_LINKS
18228 CONFIG_COMMANDS = $CONFIG_COMMANDS
18231 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18236 case $ac_config_files in *"
18237 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18240 case $ac_config_headers in *"
18241 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18246 # Files that config.status was made for.
18247 config_files="$ac_config_files"
18248 config_headers="$ac_config_headers"
18249 config_links="$ac_config_links"
18250 config_commands="$ac_config_commands"
18254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18256 \`$as_me' instantiates files and other configuration actions
18257 from templates according to the current configuration. Unless the files
18258 and actions are specified as TAGs, all are instantiated by default.
18260 Usage: $0 [OPTION]... [TAG]...
18262 -h, --help print this help, then exit
18263 -V, --version print version number and configuration settings, then exit
18264 -q, --quiet, --silent
18265 do not print progress messages
18266 -d, --debug don't remove temporary files
18267 --recheck update $as_me by reconfiguring in the same conditions
18268 --file=FILE[:TEMPLATE]
18269 instantiate the configuration file FILE
18270 --header=FILE[:TEMPLATE]
18271 instantiate the configuration header FILE
18273 Configuration files:
18276 Configuration headers:
18279 Configuration links:
18282 Configuration commands:
18285 Report bugs to the package provider."
18288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18291 configured by $0, generated by GNU Autoconf 2.64,
18292 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18294 Copyright (C) 2009 Free Software Foundation, Inc.
18295 This config.status script is free software; the Free Software Foundation
18296 gives unlimited permission to copy, distribute and modify it."
18303 test -n "\$AWK" || AWK=awk
18306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18307 # The default lists apply if the user does not specify any file.
18313 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18314 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18325 # Handling of the options.
18326 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18328 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18329 $as_echo "$ac_cs_version"; exit ;;
18330 --debug | --debu | --deb | --de | --d | -d )
18332 --file | --fil | --fi | --f )
18335 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18337 as_fn_append CONFIG_FILES " '$ac_optarg'"
18338 ac_need_defaults=false;;
18339 --header | --heade | --head | --hea )
18342 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18344 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18345 ac_need_defaults=false;;
18347 # Conflict between --help and --header
18348 as_fn_error "ambiguous option: \`$1'
18349 Try \`$0 --help' for more information.";;
18350 --help | --hel | -h )
18351 $as_echo "$ac_cs_usage"; exit ;;
18352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18353 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18356 # This is an error.
18357 -*) as_fn_error "unrecognized option: \`$1'
18358 Try \`$0 --help' for more information." ;;
18360 *) as_fn_append ac_config_targets " $1"
18361 ac_need_defaults=false ;;
18367 ac_configure_extra_args=
18369 if $ac_cs_silent; then
18371 ac_configure_extra_args="$ac_configure_extra_args --silent"
18375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18376 if \$ac_cs_recheck; then
18377 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18379 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18380 CONFIG_SHELL='$SHELL'
18381 export CONFIG_SHELL
18386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18391 ## Running $as_me. ##
18397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18401 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18402 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18408 # Handling of arguments.
18409 for ac_config_target in $ac_config_targets
18411 case $ac_config_target in
18412 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18413 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
18414 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18415 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18416 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
18417 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18418 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
18419 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18420 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
18421 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
18422 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18424 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18429 # If the user did not use the arguments to specify the items to instantiate,
18430 # then the envvar interface is used. Set only those that are not.
18431 # We use the long form for the default assignment because of an extremely
18432 # bizarre bug on SunOS 4.1.3.
18433 if $ac_need_defaults; then
18434 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18435 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18436 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18437 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18440 # Have a temporary directory for convenience. Make it in the build tree
18441 # simply because there is no reason against having it here, and in addition,
18442 # creating and moving files from /tmp can sometimes cause problems.
18443 # Hook for its removal unless debugging.
18444 # Note that there is a small window in which the directory will not be cleaned:
18445 # after its creation but before its name has been assigned to `$tmp'.
18449 trap 'exit_status=$?
18450 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18452 trap 'as_fn_exit 1' 1 2 13 15
18454 # Create a (secure) tmp directory for tmp files.
18457 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18458 test -n "$tmp" && test -d "$tmp"
18461 tmp=./conf$$-$RANDOM
18462 (umask 077 && mkdir "$tmp")
18463 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18465 # Set up the scripts for CONFIG_FILES section.
18466 # No need to generate them if there are no CONFIG_FILES.
18467 # This happens for instance with `./config.status config.h'.
18468 if test -n "$CONFIG_FILES"; then
18470 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18471 ac_cs_awk_getline=:
18472 ac_cs_awk_pipe_init=
18473 ac_cs_awk_read_file='
18474 while ((getline aline < (F[key])) > 0)
18477 ac_cs_awk_pipe_fini=
18479 ac_cs_awk_getline=false
18480 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18481 ac_cs_awk_read_file='
18483 print "cat " F[key] " &&"
18484 '$ac_cs_awk_pipe_init
18485 # The final `:' finishes the AND list.
18486 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18488 ac_cr=`echo X | tr X '\015'`
18489 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18490 # But we know of no other shell where ac_cr would be empty at this
18491 # point, so we can use a bashism as a fallback.
18492 if test "x$ac_cr" = x; then
18493 eval ac_cr=\$\'\\r\'
18495 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18496 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18499 ac_cs_awk_cr=$ac_cr
18502 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18505 # Create commands to substitute file output variables.
18507 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18508 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18509 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18512 } >conf$$files.sh &&
18513 . ./conf$$files.sh ||
18514 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18515 rm -f conf$$files.sh
18518 echo "cat >conf$$subs.awk <<_ACEOF" &&
18519 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18521 } >conf$$subs.sh ||
18522 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18523 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18525 for ac_last_try in false false false false false :; do
18526 . ./conf$$subs.sh ||
18527 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18529 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18530 if test $ac_delim_n = $ac_delim_num; then
18532 elif $ac_last_try; then
18533 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18535 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18538 rm -f conf$$subs.sh
18540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18541 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18545 s/^/S["/; s/!.*/"]=/
18555 s/\(.\{148\}\).*/\1/
18557 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18562 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18569 s/\(.\{148\}\).*/\1/
18571 s/["\\]/\\&/g; s/^/"/; s/$/"/
18575 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18580 ' <conf$$subs.awk | sed '
18585 ' >>$CONFIG_STATUS || ac_write_fail=1
18586 rm -f conf$$subs.awk
18587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18589 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18590 for (key in S) S_is_set[key] = 1
18592 \$ac_cs_awk_pipe_init
18596 nfields = split(line, field, "@")
18598 len = length(field[1])
18599 for (i = 2; i < nfields; i++) {
18601 keylen = length(key)
18602 if (S_is_set[key]) {
18604 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18605 len += length(value) + length(field[++i])
18610 if (nfields == 3 && !substed) {
18612 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18613 \$ac_cs_awk_read_file
18619 \$ac_cs_awk_pipe_fini
18622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18623 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18624 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18627 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18628 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18631 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18632 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18633 # trailing colons and then remove the whole line if VPATH becomes empty
18634 # (actually we leave an empty line to preserve line numbers).
18635 if test "x$srcdir" = x.; then
18636 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18637 s/:*\$(srcdir):*/:/
18638 s/:*\${srcdir}:*/:/
18640 s/^\([^=]*=[ ]*\):*/\1/
18646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18647 fi # test -n "$CONFIG_FILES"
18649 # Set up the scripts for CONFIG_HEADERS section.
18650 # No need to generate them if there are no CONFIG_HEADERS.
18651 # This happens for instance with `./config.status Makefile'.
18652 if test -n "$CONFIG_HEADERS"; then
18653 cat >"$tmp/defines.awk" <<\_ACAWK ||
18657 # Transform confdefs.h into an awk script `defines.awk', embedded as
18658 # here-document in config.status, that substitutes the proper values into
18659 # config.h.in to produce config.h.
18661 # Create a delimiter string that does not exist in confdefs.h, to ease
18662 # handling of long lines.
18664 for ac_last_try in false false :; do
18665 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18666 if test -z "$ac_t"; then
18668 elif $ac_last_try; then
18669 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18675 # For the awk script, D is an array of macro values keyed by name,
18676 # likewise P contains macro parameters if any. Preserve backslash
18677 # newline sequences.
18679 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18681 s/.\{148\}/&'"$ac_delim"'/g
18684 s/^[ ]*#[ ]*define[ ][ ]*/ /
18691 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18693 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18697 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18698 D["\1"]=" \3\\\\\\n"\\/p
18700 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18705 s/.\{148\}/&'"$ac_delim"'/g
18710 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18713 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18715 ' <confdefs.h | sed '
18716 s/'"$ac_delim"'/"\\\
18717 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18720 for (key in D) D_is_set[key] = 1
18723 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18725 split(line, arg, " ")
18726 if (arg[1] == "#") {
18730 defundef = substr(arg[1], 2)
18733 split(mac1, mac2, "(") #)
18735 prefix = substr(line, 1, index(line, defundef) - 1)
18736 if (D_is_set[macro]) {
18737 # Preserve the white space surrounding the "#".
18738 print prefix "define", macro P[macro] D[macro]
18741 # Replace #undef with comments. This is necessary, for example,
18742 # in the case of _POSIX_SOURCE, which is predefined and required
18743 # on some systems where configure will not decide to define it.
18744 if (defundef == "undef") {
18745 print "/*", prefix defundef, macro, "*/"
18753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18754 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18755 fi # test -n "$CONFIG_HEADERS"
18758 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18763 :[FHLC]) ac_mode=$ac_tag; continue;;
18765 case $ac_mode$ac_tag in
18767 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18768 :[FH]-) ac_tag=-:-;;
18769 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18786 -) ac_f="$tmp/stdin";;
18787 *) # Look for the file first in the build tree, then in the source tree
18788 # (if the path is not absolute). The absolute path cannot be DOS-style,
18789 # because $ac_f cannot contain `:'.
18793 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18795 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18797 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18798 as_fn_append ac_file_inputs " '$ac_f'"
18801 # Let's still pretend it is `configure' which instantiates (i.e., don't
18802 # use $as_me), people would be surprised to read:
18803 # /* config.h. Generated by config.status. */
18804 configure_input='Generated from '`
18805 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18807 if test x"$ac_file" != x-; then
18808 configure_input="$ac_file. $configure_input"
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18810 $as_echo "$as_me: creating $ac_file" >&6;}
18812 # Neutralize special characters interpreted by sed in replacement strings.
18813 case $configure_input in #(
18814 *\&* | *\|* | *\\* )
18815 ac_sed_conf_input=`$as_echo "$configure_input" |
18816 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18817 *) ac_sed_conf_input=$configure_input;;
18821 *:-:* | *:-) cat >"$tmp/stdin" \
18822 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18827 ac_dir=`$as_dirname -- "$ac_file" ||
18828 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18829 X"$ac_file" : 'X\(//\)[^/]' \| \
18830 X"$ac_file" : 'X\(//\)$' \| \
18831 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18832 $as_echo X"$ac_file" |
18833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18837 /^X\(\/\/\)[^/].*/{
18850 as_dir="$ac_dir"; as_fn_mkdir_p
18854 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18856 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18857 # A ".." for each directory in $ac_dir_suffix.
18858 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18859 case $ac_top_builddir_sub in
18860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18864 ac_abs_top_builddir=$ac_pwd
18865 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18866 # for backward compatibility:
18867 ac_top_builddir=$ac_top_build_prefix
18870 .) # We are building in place.
18872 ac_top_srcdir=$ac_top_builddir_sub
18873 ac_abs_top_srcdir=$ac_pwd ;;
18874 [\\/]* | ?:[\\/]* ) # Absolute name.
18875 ac_srcdir=$srcdir$ac_dir_suffix;
18876 ac_top_srcdir=$srcdir
18877 ac_abs_top_srcdir=$srcdir ;;
18878 *) # Relative name.
18879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18880 ac_top_srcdir=$ac_top_build_prefix$srcdir
18881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18883 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18893 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18894 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18896 ac_MKDIR_P=$MKDIR_P
18898 [\\/$]* | ?:[\\/]* ) ;;
18899 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18904 # If the template does not know about datarootdir, expand it.
18905 # FIXME: This hack should be removed a few years after 2.60.
18906 ac_datarootdir_hack=; ac_datarootdir_seen=
18917 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18918 *datarootdir*) ac_datarootdir_seen=yes;;
18919 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18921 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18924 ac_datarootdir_hack='
18925 s&@datadir@&$datadir&g
18926 s&@docdir@&$docdir&g
18927 s&@infodir@&$infodir&g
18928 s&@localedir@&$localedir&g
18929 s&@mandir@&$mandir&g
18930 s&\\\${datarootdir}&$datarootdir&g' ;;
18934 # Neutralize VPATH when `$srcdir' = `.'.
18935 # Shell code in configure.ac might set extrasub.
18936 # FIXME: do we really want to maintain this feature?
18937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18938 ac_sed_extra="$ac_vpsub
18941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18943 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18944 s|@configure_input@|$ac_sed_conf_input|;t t
18945 s&@top_builddir@&$ac_top_builddir_sub&;t t
18946 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18947 s&@srcdir@&$ac_srcdir&;t t
18948 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18949 s&@top_srcdir@&$ac_top_srcdir&;t t
18950 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18951 s&@builddir@&$ac_builddir&;t t
18952 s&@abs_builddir@&$ac_abs_builddir&;t t
18953 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18954 s&@INSTALL@&$ac_INSTALL&;t t
18955 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18956 $ac_datarootdir_hack
18958 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18959 if $ac_cs_awk_getline; then
18960 $AWK -f "$tmp/subs.awk"
18962 $AWK -f "$tmp/subs.awk" | $SHELL
18964 || as_fn_error "could not create $ac_file" "$LINENO" 5
18966 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18967 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18968 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18970 which seems to be undefined. Please make sure it is defined." >&5
18971 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18972 which seems to be undefined. Please make sure it is defined." >&2;}
18976 -) cat "$tmp/out" && rm -f "$tmp/out";;
18977 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18979 || as_fn_error "could not create $ac_file" "$LINENO" 5
18985 if test x"$ac_file" != x-; then
18987 $as_echo "/* $configure_input */" \
18988 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18989 } >"$tmp/config.h" \
18990 || as_fn_error "could not create $ac_file" "$LINENO" 5
18991 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18993 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18996 mv "$tmp/config.h" "$ac_file" \
18997 || as_fn_error "could not create $ac_file" "$LINENO" 5
19000 $as_echo "/* $configure_input */" \
19001 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19002 || as_fn_error "could not create -" "$LINENO" 5
19004 # Compute "$ac_file"'s index in $config_headers.
19007 for _am_header in $config_headers :; do
19008 case $_am_header in
19009 $_am_arg | $_am_arg:* )
19012 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19015 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19016 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19017 X"$_am_arg" : 'X\(//\)[^/]' \| \
19018 X"$_am_arg" : 'X\(//\)$' \| \
19019 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19020 $as_echo X"$_am_arg" |
19021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19025 /^X\(\/\/\)[^/].*/{
19037 s/.*/./; q'`/stamp-h$_am_stamp_count
19044 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19047 # Prefer the file from the source tree if names are identical.
19048 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19049 ac_source=$srcdir/$ac_source
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19053 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19055 if test ! -r "$ac_source"; then
19056 as_fn_error "$ac_source: file not found" "$LINENO" 5
19060 # Try a relative symlink, then a hard link, then a copy.
19062 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19063 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19065 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19066 ln "$ac_source" "$ac_file" 2>/dev/null ||
19067 cp -p "$ac_source" "$ac_file" ||
19068 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19071 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19072 $as_echo "$as_me: executing $ac_file commands" >&6;}
19077 case $ac_file$ac_mode in
19078 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19079 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19080 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19081 # are listed without --file. Let's play safe and only enable the eval
19082 # if we detect the quoting.
19083 case $CONFIG_FILES in
19084 *\'*) eval set x "$CONFIG_FILES" ;;
19085 *) set x $CONFIG_FILES ;;
19090 # Strip MF so we end up with the name of the file.
19091 mf=`echo "$mf" | sed -e 's/:.*$//'`
19092 # Check whether this is an Automake generated Makefile or not.
19093 # We used to match only the files named `Makefile.in', but
19094 # some people rename them; so instead we look at the file content.
19095 # Grep'ing the first line is not enough: some people post-process
19096 # each Makefile.in and add a new line on top of each file to say so.
19097 # Grep'ing the whole file is not good either: AIX grep has a line
19098 # limit of 2048, but all sed's we know have understand at least 4000.
19099 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19100 dirpart=`$as_dirname -- "$mf" ||
19101 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19102 X"$mf" : 'X\(//\)[^/]' \| \
19103 X"$mf" : 'X\(//\)$' \| \
19104 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19110 /^X\(\/\/\)[^/].*/{
19126 # Extract the definition of DEPDIR, am__include, and am__quote
19127 # from the Makefile without running `make'.
19128 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19129 test -z "$DEPDIR" && continue
19130 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19131 test -z "am__include" && continue
19132 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19133 # When using ansi2knr, U may be empty or an underscore; expand it
19134 U=`sed -n 's/^U = //p' < "$mf"`
19135 # Find all dependency output files, they are included files with
19136 # $(DEPDIR) in their names. We invoke sed twice because it is the
19137 # simplest approach to changing $(DEPDIR) to its actual value in the
19139 for file in `sed -n "
19140 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19141 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19142 # Make sure the directory exists.
19143 test -f "$dirpart/$file" && continue
19144 fdir=`$as_dirname -- "$file" ||
19145 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19146 X"$file" : 'X\(//\)[^/]' \| \
19147 X"$file" : 'X\(//\)$' \| \
19148 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19149 $as_echo X"$file" |
19150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19154 /^X\(\/\/\)[^/].*/{
19167 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19168 # echo "creating $dirpart/$file"
19169 echo '# dummy' > "$dirpart/$file"
19175 case x$CONFIG_HEADERS in
19176 xconfig.h:config.in)
19187 ac_clean_files=$ac_clean_files_save
19189 test $ac_write_fail = 0 ||
19190 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19193 # configure is writing to config.log, and then calls config.status.
19194 # config.status does its own redirection, appending to config.log.
19195 # Unfortunately, on DOS this fails, as config.log is still kept open
19196 # by configure, so config.status won't be able to write to it; its
19197 # output is simply discarded. So we exec the FD to /dev/null,
19198 # effectively closing config.log, so it can be properly (re)opened and
19199 # appended to by config.status. When coming back to configure, we
19200 # need to make the FD available again.
19201 if test "$no_create" != yes; then
19203 ac_config_status_args=
19204 test "$silent" = yes &&
19205 ac_config_status_args="$ac_config_status_args --quiet"
19207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19210 # would make configure fail if this is the last instruction.
19211 $ac_cs_success || as_fn_exit $?
19215 # CONFIG_SUBDIRS section.
19217 if test "$no_recursion" != yes; then
19219 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19220 # so they do not pile up.
19221 ac_sub_configure_args=
19223 eval "set x $ac_configure_args"
19227 if test -n "$ac_prev"; then
19232 -cache-file | --cache-file | --cache-fil | --cache-fi \
19233 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19234 ac_prev=cache_file ;;
19235 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19236 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19239 --config-cache | -C)
19241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19245 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19247 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19249 --disable-option-checking)
19253 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19255 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19259 # Always prepend --prefix to ensure using the same prefix
19260 # in subdir configurations.
19261 ac_arg="--prefix=$prefix"
19263 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19265 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19268 if test "$silent" = yes; then
19269 ac_sub_configure_args="--silent $ac_sub_configure_args"
19272 # Always prepend --disable-option-checking to silence warnings, since
19273 # different subdirs can have different --enable and --with options.
19274 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19277 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19279 # Do not complain, so a configure script can configure whichever
19280 # parts of a large source tree are present.
19281 test -d "$srcdir/$ac_dir" || continue
19283 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19284 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19285 $as_echo "$ac_msg" >&6
19286 as_dir="$ac_dir"; as_fn_mkdir_p
19290 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19292 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19293 # A ".." for each directory in $ac_dir_suffix.
19294 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19295 case $ac_top_builddir_sub in
19296 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19297 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19300 ac_abs_top_builddir=$ac_pwd
19301 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19302 # for backward compatibility:
19303 ac_top_builddir=$ac_top_build_prefix
19306 .) # We are building in place.
19308 ac_top_srcdir=$ac_top_builddir_sub
19309 ac_abs_top_srcdir=$ac_pwd ;;
19310 [\\/]* | ?:[\\/]* ) # Absolute name.
19311 ac_srcdir=$srcdir$ac_dir_suffix;
19312 ac_top_srcdir=$srcdir
19313 ac_abs_top_srcdir=$srcdir ;;
19314 *) # Relative name.
19315 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19316 ac_top_srcdir=$ac_top_build_prefix$srcdir
19317 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19319 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19324 # Check for guested configure; otherwise get Cygnus style configure.
19325 if test -f "$ac_srcdir/configure.gnu"; then
19326 ac_sub_configure=$ac_srcdir/configure.gnu
19327 elif test -f "$ac_srcdir/configure"; then
19328 ac_sub_configure=$ac_srcdir/configure
19329 elif test -f "$ac_srcdir/configure.in"; then
19330 # This should be Cygnus configure.
19331 ac_sub_configure=$ac_aux_dir/configure
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19334 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19338 # The recursion is here.
19339 if test -n "$ac_sub_configure"; then
19340 # Make the cache file name correct relative to the subdirectory.
19341 case $cache_file in
19342 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19343 *) # Relative name.
19344 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19347 { $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
19348 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19349 # The eval makes quoting arguments work.
19350 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19351 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19352 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19358 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19360 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}