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
970 with_auto_load_safe_path
996 enable_build_warnings
997 enable_gdb_build_warnings
1005 ac_precious_vars
='build_alias
1019 ac_subdirs_all
='testsuite
1024 # Initialize some variables set by options.
1026 ac_init_version
=false
1027 ac_unrecognized_opts
=
1028 ac_unrecognized_sep
=
1029 # The variables have the same names as the options, with
1030 # dashes changed to underlines.
1031 cache_file
=/dev
/null
1038 program_transform_name
=s
,x
,x
,
1046 # Installation directory options.
1047 # These are left unexpanded so users can "make install exec_prefix=/foo"
1048 # and all the variables that are supposed to be based on exec_prefix
1049 # by default will actually change.
1050 # Use braces instead of parens because sh, perl, etc. also accept them.
1051 # (The list follows the same order as the GNU Coding Standards.)
1052 bindir
='${exec_prefix}/bin'
1053 sbindir
='${exec_prefix}/sbin'
1054 libexecdir
='${exec_prefix}/libexec'
1055 datarootdir
='${prefix}/share'
1056 datadir
='${datarootdir}'
1057 sysconfdir
='${prefix}/etc'
1058 sharedstatedir
='${prefix}/com'
1059 localstatedir
='${prefix}/var'
1060 includedir
='${prefix}/include'
1061 oldincludedir
='/usr/include'
1062 docdir
='${datarootdir}/doc/${PACKAGE}'
1063 infodir
='${datarootdir}/info'
1068 libdir
='${exec_prefix}/lib'
1069 localedir
='${datarootdir}/locale'
1070 mandir
='${datarootdir}/man'
1076 # If the previous option needs an argument, assign it.
1077 if test -n "$ac_prev"; then
1078 eval $ac_prev=\
$ac_option
1084 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1088 # Accept the important Cygnus configure options, so we can diagnose typos.
1090 case $ac_dashdash$ac_option in
1094 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1096 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1097 bindir
=$ac_optarg ;;
1099 -build |
--build |
--buil |
--bui |
--bu)
1100 ac_prev
=build_alias
;;
1101 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1102 build_alias
=$ac_optarg ;;
1104 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1105 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1106 ac_prev
=cache_file
;;
1107 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1108 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1109 cache_file
=$ac_optarg ;;
1111 --config-cache |
-C)
1112 cache_file
=config.cache
;;
1114 -datadir |
--datadir |
--datadi |
--datad)
1116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1117 datadir
=$ac_optarg ;;
1119 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1120 |
--dataroo |
--dataro |
--datar)
1121 ac_prev
=datarootdir
;;
1122 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1123 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1124 datarootdir
=$ac_optarg ;;
1126 -disable-* |
--disable-*)
1127 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1130 as_fn_error
"invalid feature name: $ac_useropt"
1131 ac_useropt_orig
=$ac_useropt
1132 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1135 "enable_
$ac_useropt"
1137 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1138 ac_unrecognized_sep
=', ';;
1140 eval enable_
$ac_useropt=no
;;
1142 -docdir |
--docdir |
--docdi |
--doc |
--do)
1144 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1145 docdir
=$ac_optarg ;;
1147 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1149 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1150 dvidir
=$ac_optarg ;;
1152 -enable-* |
--enable-*)
1153 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1156 as_fn_error
"invalid feature name: $ac_useropt"
1157 ac_useropt_orig
=$ac_useropt
1158 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1161 "enable_
$ac_useropt"
1163 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1164 ac_unrecognized_sep
=', ';;
1166 eval enable_
$ac_useropt=\
$ac_optarg ;;
1168 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1169 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1170 |
--exec |
--exe |
--ex)
1171 ac_prev
=exec_prefix
;;
1172 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1173 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1174 |
--exec=* |
--exe=* |
--ex=*)
1175 exec_prefix
=$ac_optarg ;;
1177 -gas |
--gas |
--ga |
--g)
1178 # Obsolete; use --with-gas.
1181 -help |
--help |
--hel |
--he |
-h)
1182 ac_init_help
=long
;;
1183 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1184 ac_init_help
=recursive
;;
1185 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1186 ac_init_help
=short
;;
1188 -host |
--host |
--hos |
--ho)
1189 ac_prev
=host_alias
;;
1190 -host=* |
--host=* |
--hos=* |
--ho=*)
1191 host_alias
=$ac_optarg ;;
1193 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1195 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1197 htmldir
=$ac_optarg ;;
1199 -includedir |
--includedir |
--includedi |
--included |
--include \
1200 |
--includ |
--inclu |
--incl |
--inc)
1201 ac_prev
=includedir
;;
1202 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1203 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1204 includedir
=$ac_optarg ;;
1206 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1208 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1209 infodir
=$ac_optarg ;;
1211 -libdir |
--libdir |
--libdi |
--libd)
1213 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1214 libdir
=$ac_optarg ;;
1216 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1217 |
--libexe |
--libex |
--libe)
1218 ac_prev
=libexecdir
;;
1219 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1220 |
--libexe=* |
--libex=* |
--libe=*)
1221 libexecdir
=$ac_optarg ;;
1223 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1224 ac_prev
=localedir
;;
1225 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1226 localedir
=$ac_optarg ;;
1228 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1229 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1230 ac_prev
=localstatedir
;;
1231 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1232 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1233 localstatedir
=$ac_optarg ;;
1235 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1237 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1238 mandir
=$ac_optarg ;;
1240 -nfp |
--nfp |
--nf)
1241 # Obsolete; use --without-fp.
1244 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1245 |
--no-cr |
--no-c |
-n)
1248 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1249 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1252 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1253 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1254 |
--oldin |
--oldi |
--old |
--ol |
--o)
1255 ac_prev
=oldincludedir
;;
1256 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1257 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1258 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1259 oldincludedir
=$ac_optarg ;;
1261 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1263 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1264 prefix
=$ac_optarg ;;
1266 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1267 |
--program-pre |
--program-pr |
--program-p)
1268 ac_prev
=program_prefix
;;
1269 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1270 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1271 program_prefix
=$ac_optarg ;;
1273 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1274 |
--program-suf |
--program-su |
--program-s)
1275 ac_prev
=program_suffix
;;
1276 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1277 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1278 program_suffix
=$ac_optarg ;;
1280 -program-transform-name |
--program-transform-name \
1281 |
--program-transform-nam |
--program-transform-na \
1282 |
--program-transform-n |
--program-transform- \
1283 |
--program-transform |
--program-transfor \
1284 |
--program-transfo |
--program-transf \
1285 |
--program-trans |
--program-tran \
1286 |
--progr-tra |
--program-tr |
--program-t)
1287 ac_prev
=program_transform_name
;;
1288 -program-transform-name=* |
--program-transform-name=* \
1289 |
--program-transform-nam=* |
--program-transform-na=* \
1290 |
--program-transform-n=* |
--program-transform-=* \
1291 |
--program-transform=* |
--program-transfor=* \
1292 |
--program-transfo=* |
--program-transf=* \
1293 |
--program-trans=* |
--program-tran=* \
1294 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1295 program_transform_name
=$ac_optarg ;;
1297 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1299 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1300 pdfdir
=$ac_optarg ;;
1302 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1304 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1307 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1308 |
-silent |
--silent |
--silen |
--sile |
--sil)
1311 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1313 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1315 sbindir
=$ac_optarg ;;
1317 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1318 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1319 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1321 ac_prev
=sharedstatedir
;;
1322 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1323 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1324 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1326 sharedstatedir
=$ac_optarg ;;
1328 -site |
--site |
--sit)
1330 -site=* |
--site=* |
--sit=*)
1333 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1335 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1336 srcdir
=$ac_optarg ;;
1338 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1339 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1340 ac_prev
=sysconfdir
;;
1341 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1342 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1343 sysconfdir
=$ac_optarg ;;
1345 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1346 ac_prev
=target_alias
;;
1347 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1348 target_alias
=$ac_optarg ;;
1350 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1353 -version |
--version |
--versio |
--versi |
--vers |
-V)
1354 ac_init_version
=: ;;
1357 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1360 as_fn_error
"invalid package name: $ac_useropt"
1361 ac_useropt_orig
=$ac_useropt
1362 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363 case $ac_user_opts in
1367 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1368 ac_unrecognized_sep
=', ';;
1370 eval with_
$ac_useropt=\
$ac_optarg ;;
1372 -without-* |
--without-*)
1373 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1374 # Reject names that are not valid shell variable names.
1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1376 as_fn_error
"invalid package name: $ac_useropt"
1377 ac_useropt_orig
=$ac_useropt
1378 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379 case $ac_user_opts in
1383 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1384 ac_unrecognized_sep
=', ';;
1386 eval with_
$ac_useropt=no
;;
1389 # Obsolete; use --with-x.
1392 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1393 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1394 ac_prev
=x_includes
;;
1395 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1396 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1397 x_includes
=$ac_optarg ;;
1399 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1400 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1401 ac_prev
=x_libraries
;;
1402 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1403 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1404 x_libraries
=$ac_optarg ;;
1406 -*) as_fn_error
"unrecognized option: \`$ac_option'
1407 Try \`$0 --help' for more information."
1411 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1412 # Reject names that are not valid shell variable names.
1413 case $ac_envvar in #(
1414 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1415 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1417 eval $ac_envvar=\
$ac_optarg
1418 export $ac_envvar ;;
1421 # FIXME: should be removed in autoconf 3.0.
1422 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1423 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1424 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1425 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1431 if test -n "$ac_prev"; then
1432 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1433 as_fn_error
"missing argument to $ac_option"
1436 if test -n "$ac_unrecognized_opts"; then
1437 case $enable_option_checking in
1439 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1440 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1444 # Check all directory arguments for consistency.
1445 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1446 datadir sysconfdir sharedstatedir localstatedir includedir \
1447 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1448 libdir localedir mandir
1450 eval ac_val
=\$
$ac_var
1451 # Remove trailing slashes.
1454 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1455 eval $ac_var=\
$ac_val;;
1457 # Be sure to have absolute directory names.
1459 [\\/$
]* | ?
:[\\/]* ) continue;;
1460 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1462 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1470 target
=$target_alias
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x
; then
1474 if test "x$build_alias" = x
; then
1475 cross_compiling
=maybe
1476 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1477 If a cross compiler is detected then cross compile mode will be used." >&2
1478 elif test "x$build_alias" != "x$host_alias"; then
1484 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1486 test "$silent" = yes && exec 6>/dev
/null
1489 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di
=`ls -di .` &&
1491 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1492 as_fn_error
"working directory cannot be determined"
1493 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1494 as_fn_error
"pwd does not report name of working directory"
1497 # Find the source files, if location was not specified.
1498 if test -z "$srcdir"; then
1499 ac_srcdir_defaulted
=yes
1500 # Try the directory containing this script, then the parent directory.
1501 ac_confdir
=`$as_dirname -- "$as_myself" ||
1502 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1503 X"$as_myself" : 'X\(//\)[^/]' \| \
1504 X"$as_myself" : 'X\(//\)$' \| \
1505 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1506 $as_echo X"$as_myself" |
1507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1529 ac_srcdir_defaulted
=no
1531 if test ! -r "$srcdir/$ac_unique_file"; then
1532 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1533 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1535 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1537 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1539 # When building in place, set srcdir=.
1540 if test "$ac_abs_confdir" = "$ac_pwd"; then
1543 # Remove unnecessary trailing slashes from srcdir.
1544 # Double slashes in file names in object file debugging info
1545 # mess up M-x gdb in Emacs.
1547 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1549 for ac_var
in $ac_precious_vars; do
1550 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1551 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1552 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1553 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1557 # Report the --help message.
1559 if test "$ac_init_help" = "long"; then
1560 # Omit some internal or obsolete options to make the list less imposing.
1561 # This message is too long to be a string in the A/UX 3.1 sh.
1563 \`configure' configures this package to adapt to many kinds of systems.
1565 Usage: $0 [OPTION]... [VAR=VALUE]...
1567 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1568 VAR=VALUE. See below for descriptions of some of the useful variables.
1570 Defaults for the options are specified in brackets.
1573 -h, --help display this help and exit
1574 --help=short display options specific to this package
1575 --help=recursive display the short help of all the included packages
1576 -V, --version display version information and exit
1577 -q, --quiet, --silent do not print \`checking...' messages
1578 --cache-file=FILE cache test results in FILE [disabled]
1579 -C, --config-cache alias for \`--cache-file=config.cache'
1580 -n, --no-create do not create output files
1581 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1583 Installation directories:
1584 --prefix=PREFIX install architecture-independent files in PREFIX
1585 [$ac_default_prefix]
1586 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1589 By default, \`make install' will install all the files in
1590 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1591 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1592 for instance \`--prefix=\$HOME'.
1594 For better control, use the options below.
1596 Fine tuning of the installation directories:
1597 --bindir=DIR user executables [EPREFIX/bin]
1598 --sbindir=DIR system admin executables [EPREFIX/sbin]
1599 --libexecdir=DIR program executables [EPREFIX/libexec]
1600 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1601 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1602 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1603 --libdir=DIR object code libraries [EPREFIX/lib]
1604 --includedir=DIR C header files [PREFIX/include]
1605 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1606 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1607 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1608 --infodir=DIR info documentation [DATAROOTDIR/info]
1609 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1610 --mandir=DIR man documentation [DATAROOTDIR/man]
1611 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1612 --htmldir=DIR html documentation [DOCDIR]
1613 --dvidir=DIR dvi documentation [DOCDIR]
1614 --pdfdir=DIR pdf documentation [DOCDIR]
1615 --psdir=DIR ps documentation [DOCDIR]
1621 --program-prefix=PREFIX prepend PREFIX to installed program names
1622 --program-suffix=SUFFIX append SUFFIX to installed program names
1623 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1626 --x-includes=DIR X include files are
in DIR
1627 --x-libraries=DIR X library files are
in DIR
1630 --build=BUILD configure
for building on BUILD
[guessed
]
1631 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1632 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1636 if test -n "$ac_init_help"; then
1641 --disable-option-checking ignore unrecognized
--enable/--with options
1642 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1643 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1644 --enable-maintainer-mode enable make rules and dependencies not useful
1645 (and sometimes confusing
) to the casual installer
1646 --enable-plugins Enable support
for plugins
(defaults no
)
1647 --disable-largefile omit support
for large files
1648 --disable-dependency-tracking speeds up one-time build
1649 --enable-dependency-tracking do not reject slow dependency extractors
1650 --enable-targets=TARGETS
1651 alternative target configurations
1652 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1653 --disable-gdbcli disable command-line interface
(CLI
)
1654 --disable-gdbmi disable machine-interface
(MI
)
1655 --enable-tui enable full-screen terminal user interface
(TUI
)
1656 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1657 --enable-profiling enable profiling of GDB
1658 --disable-rpath do not hardcode runtime library paths
1659 --enable-werror treat compile warnings as errors
1660 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1661 --enable-gdb-build-warnings
1662 enable GDB specific build-time compiler warnings
if
1664 --enable-sim link gdb with simulator
1665 --enable-multi-ice build the multi-ice-gdb-server
1666 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1670 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1671 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1672 --with-separate-debug-dir=PATH
1673 look for global separate debug info
in this path
1675 --with-gdb-datadir=PATH
look for global separate data files
in this path
1677 --with-relocated-sources=PATH
1678 automatically relocate this path
for source files
1679 --with-auto-load-safe-path=PATH
1680 directories safe to hold auto-loaded files
1681 --without-auto-load-safe-path
1682 do not restrict auto-loaded files locations
1683 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1684 --with-curses use the curses library instead of the termcap
1686 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1687 --with-bugurl=URL Direct users to URL to report a bug
1688 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1689 --with-libiconv-prefix=DIR
1690 search
for libiconv
in DIR
/include and DIR
/lib
1691 --with-iconv-bin=PATH specify where to
find the
iconv program
1692 --with-system-readline use installed readline library
1693 --with-jit-reader-dir=PATH
1694 directory to load the JIT readers from
1695 --with-expat include expat support
(auto
/yes
/no
)
1696 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1697 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1698 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1699 --with-python[=PYTHON] include python support
1700 (auto/yes/no/<python-program>)
1701 --without-included-regex
1702 don't use included regex
; this is the default on
1703 systems with version
2 of the GNU C library
(use
1704 with caution on other system
)
1705 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1706 --with-system-gdbinit=PATH
1707 automatically load a system-wide gdbinit
file
1708 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1709 --with-tk directory containing tk configuration
(tkConfig.sh
)
1710 --with-x use the X Window System
1712 Some influential environment variables
:
1713 CC C compiler
command
1714 CFLAGS C compiler flags
1715 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1716 nonstandard directory
<lib dir
>
1717 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1718 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1719 you have headers
in a nonstandard directory
<include dir
>
1721 MAKEINFO Parent configure detects
if it is of sufficient version.
1723 Parameters
for MAKEINFO.
1724 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1725 the first program found out of: `bison
-y', `byacc', `yacc'.
1726 YFLAGS The list of arguments that will be passed by default to $YACC.
1727 This script will default YFLAGS to the empty string to avoid a
1728 default value of `-d' given by some make applications.
1729 XMKMF Path to xmkmf, Makefile generator for X Window System
1731 Use these variables to override the choices made by `configure' or to
help
1732 it to
find libraries and programs with nonstandard names
/locations.
1734 Report bugs to the package provider.
1739 if test "$ac_init_help" = "recursive"; then
1740 # If there are subdirs, report their specific --help.
1741 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1742 test -d "$ac_dir" ||
1743 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1748 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1750 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1751 # A ".." for each directory in $ac_dir_suffix.
1752 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1753 case $ac_top_builddir_sub in
1754 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1755 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1758 ac_abs_top_builddir
=$ac_pwd
1759 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1760 # for backward compatibility:
1761 ac_top_builddir
=$ac_top_build_prefix
1764 .
) # We are building in place.
1766 ac_top_srcdir
=$ac_top_builddir_sub
1767 ac_abs_top_srcdir
=$ac_pwd ;;
1768 [\\/]* | ?
:[\\/]* ) # Absolute name.
1769 ac_srcdir
=$srcdir$ac_dir_suffix;
1770 ac_top_srcdir
=$srcdir
1771 ac_abs_top_srcdir
=$srcdir ;;
1773 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1774 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1775 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1777 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1779 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1780 # Check for guested configure.
1781 if test -f "$ac_srcdir/configure.gnu"; then
1783 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1784 elif test -f "$ac_srcdir/configure"; then
1786 $SHELL "$ac_srcdir/configure" --help=recursive
1788 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1790 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1794 test -n "$ac_init_help" && exit $ac_status
1795 if $ac_init_version; then
1798 generated by GNU Autoconf
2.64
1800 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1801 This configure
script is free software
; the Free Software Foundation
1802 gives unlimited permission to copy
, distribute and modify it.
1807 ## ------------------------ ##
1808 ## Autoconf initialization. ##
1809 ## ------------------------ ##
1811 # ac_fn_c_try_compile LINENO
1812 # --------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_c_try_compile
()
1816 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1817 rm -f conftest.
$ac_objext
1818 if { { ac_try
="$ac_compile"
1820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_c_try_compile
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1858 *) ac_try_echo
=$ac_try;;
1860 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864 if test -s conftest.err
; then
1865 grep -v '^ *+' conftest.err
>conftest.er1
1866 cat conftest.er1
>&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } >/dev
/null
&& {
1871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.
$ac_ext >&5
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1891 ac_fn_c_check_header_mongrel
()
1893 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1894 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1904 # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1912 if ac_fn_c_try_compile
"$LINENO"; then :
1913 ac_header_compiler
=yes
1915 ac_header_compiler
=no
1917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1928 if ac_fn_c_try_cpp
"$LINENO"; then :
1929 ac_header_preproc
=yes
1931 ac_header_preproc
=no
1933 rm -f conftest.err conftest.
$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1937 # So? What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1963 eval "$3=\$ac_header_compiler"
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1971 } # ac_fn_c_check_header_mongrel
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1979 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1980 if { { ac_try
="$ac_link"
1982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>&5
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991 { { case "(($ac_try" in
1992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1993 *) ac_try_echo
=$ac_try;;
1995 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_try") 2>&5
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; }; }; then :
2003 $as_echo "$as_me: program exited with status $ac_status" >&5
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.
$ac_ext >&5
2007 ac_retval
=$ac_status
2009 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile
()
2021 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 $as_echo_n "(cached) " >&6
2027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2032 if ac_fn_c_try_compile
"$LINENO"; then :
2037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2044 } # ac_fn_c_check_header_compile
2046 # ac_fn_c_try_link LINENO
2047 # -----------------------
2048 # Try to link conftest.$ac_ext, and return whether this succeeded.
2051 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2052 rm -f conftest.
$ac_objext conftest
$ac_exeext
2053 if { { ac_try
="$ac_link"
2055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_link") 2>conftest.err
2062 if test -s conftest.err; then
2063 grep -v '^ *+' conftest.err >conftest.er1
2064 cat conftest.er1 >&5
2065 mv -f conftest.er1 conftest.err
2067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2068 test $ac_status = 0; } && {
2069 test -z "$ac_c_werror_flag" ||
2070 test ! -s conftest.err
2071 } && test -s conftest$ac_exeext && {
2072 test "$cross_compiling" = yes ||
2073 $as_test_x conftest$ac_exeext
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2082 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2083 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2084 # interfere with the next link command; also delete a directory that is
2085 # left behind by Apple's compiler. We do this before executing the actions.
2086 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2090 } # ac_fn_c_try_link
2092 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2093 # --------------------------------------------
2094 # Tries to find the compile-time value of EXPR in a program that includes
2095 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2097 ac_fn_c_compute_int ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 if test "$cross_compiling" = yes; then
2101 # Depending upon the size, compute the lo and hi bounds.
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2108 static int test_array [1 - 2 * !(($2) >= 0)];
2115 if ac_fn_c_try_compile "$LINENO"; then :
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=$ac_mid; break
2134 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2135 if test $ac_lo -le $ac_mid; then
2139 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2150 static int test_array [1 - 2 * !(($2) < 0)];
2157 if ac_fn_c_try_compile "$LINENO"; then :
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2166 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174 ac_lo=$ac_mid; break
2176 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2177 if test $ac_mid -le $ac_hi; then
2181 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 # Binary search between lo and hi bounds.
2192 while test "x$ac_lo" != "x$ac_hi"; do
2193 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2200 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207 if ac_fn_c_try_compile "$LINENO"; then :
2210 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2222 static long int longval () { return $2; }
2223 static unsigned long int ulongval () { return $2; }
2230 FILE *f = fopen ("conftest.val", "w");
2235 long int i = longval ();
2238 fprintf (f, "%ld", i);
2242 unsigned long int i = ulongval ();
2245 fprintf (f, "%lu", i);
2247 /* Do not output a trailing newline, as this causes \r\n confusion
2248 on some platforms. */
2249 return ferror (f) || fclose (f) != 0;
2255 if ac_fn_c_try_run "$LINENO"; then :
2256 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2261 conftest.$ac_objext conftest.beam conftest.$ac_ext
2265 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2268 } # ac_fn_c_compute_int
2270 # ac_fn_c_check_decl LINENO SYMBOL VAR
2271 # ------------------------------------
2272 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2273 ac_fn_c_check_decl ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2277 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2279 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 $as_echo_n "(cached) " >&6
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2289 #ifndef $as_decl_name
2291 (void) $as_decl_use;
2293 (void) $as_decl_name;
2301 if ac_fn_c_try_compile "$LINENO"; then :
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2313 } # ac_fn_c_check_decl
2315 # ac_fn_c_check_func LINENO FUNC VAR
2316 # ----------------------------------
2317 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2318 ac_fn_c_check_func ()
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2322 $as_echo_n "checking for $2... " >&6; }
2323 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2324 $as_echo_n "(cached) " >&6
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2330 #define $2 innocuous_$2
2332 /* System header to define __stub macros and hopefully few prototypes,
2333 which can conflict with char $2 (); below.
2334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2335 <limits.h> exists even on freestanding compilers. */
2338 # include <limits.h>
2340 # include <assert.h>
2345 /* Override any GCC internal prototype to avoid an error.
2346 Use char because int might match the return type of a GCC
2347 builtin and then its argument prototype would still apply. */
2352 /* The GNU C library defines this for functions which it implements
2353 to always fail with ENOSYS. Some functions are actually named
2354 something starting with __ and the normal name is an alias. */
2355 #if defined __stub_$2 || defined __stub___$2
2367 if ac_fn_c_try_link "$LINENO"; then :
2372 rm -f core conftest.err conftest.$ac_objext \
2373 conftest$ac_exeext conftest.$ac_ext
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380 } # ac_fn_c_check_func
2382 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2383 # ----------------------------------------------------
2384 # Tries to find if the field MEMBER exists in type AGGR, after including
2385 # INCLUDES, setting cache variable VAR accordingly.
2386 ac_fn_c_check_member ()
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2390 $as_echo_n "checking for $2.$3... " >&6; }
2391 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2392 $as_echo_n "(cached) " >&6
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2407 if ac_fn_c_try_compile "$LINENO"; then :
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2417 if (sizeof ac_aggr.$3)
2423 if ac_fn_c_try_compile "$LINENO"; then :
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2434 $as_echo "$ac_res" >&6; }
2435 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2437 } # ac_fn_c_check_member
2439 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2440 # -------------------------------------------
2441 # Tests whether TYPE exists after having included INCLUDES, setting cache
2442 # variable VAR accordingly.
2443 ac_fn_c_check_type ()
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2449 $as_echo_n "(cached) " >&6
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2464 if ac_fn_c_try_compile "$LINENO"; then :
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2477 if ac_fn_c_try_compile "$LINENO"; then :
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 } # ac_fn_c_check_type
2492 cat >config.log <<_ACEOF
2493 This file contains any messages produced by compilers while
2494 running configure, to aid debugging if configure makes a mistake.
2496 It was created by $as_me, which was
2497 generated by GNU Autoconf 2.64. Invocation command line was
2509 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2510 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2511 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2512 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2513 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2515 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2516 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2518 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2519 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2520 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2521 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2522 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2523 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2524 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 $as_echo "PATH: $as_dir"
2549 # Keep a trace of the command line.
2550 # Strip out --no-create and --no-recursion so they do not pile up.
2551 # Strip out --silent because we don't want to record it for future runs.
2552 # Also quote any args containing shell meta-characters.
2553 # Make two passes to allow for proper duplicate-argument suppression.
2557 ac_must_keep_next=false
2563 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2565 | -silent | --silent | --silen | --sile | --sil)
2568 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2571 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2573 as_fn_append ac_configure_args1 " '$ac_arg'"
2574 if test $ac_must_keep_next = true; then
2575 ac_must_keep_next=false # Got value, back to normal.
2578 *=* | --config-cache | -C | -disable-* | --disable-* \
2579 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2580 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2581 | -with-* | --with-* | -without-* | --without-* | --x)
2582 case "$ac_configure_args0 " in
2583 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2586 -* ) ac_must_keep_next=true ;;
2589 as_fn_append ac_configure_args " '$ac_arg'"
2594 { ac_configure_args0=; unset ac_configure_args0;}
2595 { ac_configure_args1=; unset ac_configure_args1;}
2597 # When interrupted or exit'd, cleanup temporary files, and complete
2598 # config.log. We remove comments because anyway the quotes in there
2599 # would cause problems or look ugly.
2600 # WARNING: Use '\'' to represent an apostrophe within the trap.
2601 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2602 trap 'exit_status=$?
2603 # Save into config.log some information that might help in debugging.
2608 ## ---------------- ##
2609 ## Cache variables. ##
2610 ## ---------------- ##
2613 # The following way of writing the cache mishandles newlines in values,
2615 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2616 eval ac_val=\$$ac_var
2620 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2621 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2624 _ | IFS | as_nl) ;; #(
2625 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2626 *) { eval $ac_var=; unset $ac_var;} ;;
2631 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2632 *${as_nl}ac_space=\ *)
2634 "s/'\''/'\''\\\\'\'''\''/g;
2635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2646 ## ----------------- ##
2647 ## Output variables. ##
2648 ## ----------------- ##
2651 for ac_var in $ac_subst_vars
2653 eval ac_val=\$$ac_var
2655 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2657 $as_echo "$ac_var='\''$ac_val'\''"
2661 if test -n "$ac_subst_files"; then
2663 ## ------------------- ##
2664 ## File substitutions. ##
2665 ## ------------------- ##
2668 for ac_var in $ac_subst_files
2670 eval ac_val=\$$ac_var
2672 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2674 $as_echo "$ac_var='\''$ac_val'\''"
2679 if test -s confdefs.h; then
2689 test "$ac_signal" != 0 &&
2690 $as_echo "$as_me: caught signal $ac_signal"
2691 $as_echo "$as_me: exit $exit_status"
2693 rm -f core *.core core.conftest.* &&
2694 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2697 for ac_signal in 1 2 13 15; do
2698 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2702 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2703 rm -f -r conftest* confdefs.h
2705 $as_echo "/* confdefs.h */" > confdefs.h
2707 # Predefined preprocessor variables.
2709 cat >>confdefs.h <<_ACEOF
2710 #define PACKAGE_NAME "$PACKAGE_NAME"
2713 cat >>confdefs.h <<_ACEOF
2714 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2717 cat >>confdefs.h <<_ACEOF
2718 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2721 cat >>confdefs.h <<_ACEOF
2722 #define PACKAGE_STRING "$PACKAGE_STRING"
2725 cat >>confdefs.h <<_ACEOF
2726 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE_URL "$PACKAGE_URL"
2734 # Let the site file select an alternate cache file if it wants to.
2735 # Prefer an explicitly selected file to automatically selected ones.
2738 if test -n "$CONFIG_SITE"; then
2739 ac_site_file1=$CONFIG_SITE
2740 elif test "x$prefix" != xNONE; then
2741 ac_site_file1=$prefix/share/config.site
2742 ac_site_file2=$prefix/etc/config.site
2744 ac_site_file1=$ac_default_prefix/share/config.site
2745 ac_site_file2=$ac_default_prefix/etc/config.site
2747 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2749 test "x$ac_site_file" = xNONE && continue
2750 if test -r "$ac_site_file"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2752 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2753 sed 's/^/| /' "$ac_site_file" >&5
2758 if test -r "$cache_file"; then
2759 # Some versions of bash will fail to source /dev/null (special
2760 # files actually), so we avoid doing that.
2761 if test -f "$cache_file"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2763 $as_echo "$as_me: loading cache $cache_file" >&6;}
2765 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2766 *) . "./$cache_file";;
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2771 $as_echo "$as_me: creating cache $cache_file" >&6;}
2775 gl_header_list="$gl_header_list stdint.h"
2776 gl_header_list="$gl_header_list wchar.h"
2777 gl_header_list="$gl_header_list inttypes.h"
2778 gl_header_list="$gl_header_list sys/mman.h"
2779 gl_func_list="$gl_func_list mprotect"
2780 gl_func_list="$gl_func_list memchr"
2781 gl_header_list="$gl_header_list stddef.h"
2782 gl_header_list="$gl_header_list string.h"
2783 # Check that the precious variables saved in the cache have kept the same
2785 ac_cache_corrupted=false
2786 for ac_var in $ac_precious_vars; do
2787 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2788 eval ac_new_set=\$ac_env_${ac_var}_set
2789 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2790 eval ac_new_val=\$ac_env_${ac_var}_value
2791 case $ac_old_set,$ac_new_set in
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2794 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2795 ac_cache_corrupted=: ;;
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2798 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2799 ac_cache_corrupted=: ;;
2802 if test "x$ac_old_val" != "x$ac_new_val"; then
2803 # differences in whitespace do not lead to failure.
2804 ac_old_val_w=`echo x
$ac_old_val`
2805 ac_new_val_w=`echo x
$ac_new_val`
2806 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2808 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2809 ac_cache_corrupted=:
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2812 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2813 eval $ac_var=\$ac_old_val
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2816 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2818 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2821 # Pass precious variables to config.status.
2822 if test "$ac_new_set" = set; then
2824 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2825 *) ac_arg=$ac_var=$ac_new_val ;;
2827 case " $ac_configure_args " in
2828 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2829 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2833 if $ac_cache_corrupted; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2837 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2838 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2840 ## -------------------- ##
2841 ## Main body of script. ##
2842 ## -------------------- ##
2845 ac_cpp='$CPP $CPPFLAGS'
2846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 ac_config_headers="$ac_config_headers config.h:config.in"
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2858 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2859 # Check whether --enable-maintainer-mode was given.
2860 if test "${enable_maintainer_mode+set}" = set; then :
2861 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2863 USE_MAINTAINER_MODE=no
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2867 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2868 if test $USE_MAINTAINER_MODE = yes; then
2869 MAINTAINER_MODE_TRUE=
2870 MAINTAINER_MODE_FALSE='#'
2872 MAINTAINER_MODE_TRUE='#'
2873 MAINTAINER_MODE_FALSE=
2876 MAINT=$MAINTAINER_MODE_TRUE
2881 ac_cpp='$CPP $CPPFLAGS'
2882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 if test -n "$ac_tool_prefix"; then
2886 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2887 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_CC+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 if test -n "$CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2916 $as_echo "$CC" >&6; }
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2924 if test -z "$ac_cv_prog_CC"; then
2926 # Extract the first word of "gcc", so it can be a program name with args.
2927 set dummy gcc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2931 $as_echo_n "(cached) " >&6
2933 if test -n "$ac_ct_CC"; then
2934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 ac_cv_prog_ac_ct_CC="gcc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2954 if test -n "$ac_ct_CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2956 $as_echo "$ac_ct_CC" >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2962 if test "x$ac_ct_CC" = x; then
2965 case $cross_compiling:$ac_tool_warned in
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2969 ac_tool_warned=yes ;;
2977 if test -z "$CC"; then
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}cc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if test "${ac_cv_prog_CC+set}" = set; then :
2984 $as_echo_n "(cached) " >&6
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_CC="${ac_tool_prefix}cc"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 if test -n "$CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3018 if test -z "$CC"; then
3019 # Extract the first word of "cc", so it can be a program name with args.
3020 set dummy cc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_prog_CC+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3038 ac_prog_rejected=yes
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 if test $ac_prog_rejected = yes; then
3050 # We found a bogon in the path, so make sure we never use it.
3051 set dummy $ac_cv_prog_CC
3053 if test $# != 0; then
3054 # We chose a different compiler from the bogus one.
3055 # However, it has the same basename, so the bogon will be chosen
3056 # first if we set CC to just the basename; use the full file name.
3058 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3064 if test -n "$CC"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066 $as_echo "$CC" >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3074 if test -z "$CC"; then
3075 if test -n "$ac_tool_prefix"; then
3076 for ac_prog in cl.exe
3078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if test "${ac_cv_prog_CC+set}" = set; then :
3083 $as_echo_n "(cached) " >&6
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 if test -n "$CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3115 test -n "$CC" && break
3118 if test -z "$CC"; then
3120 for ac_prog in cl.exe
3122 # Extract the first word of "$ac_prog", so it can be a program name with args.
3123 set dummy $ac_prog; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3127 $as_echo_n "(cached) " >&6
3129 if test -n "$ac_ct_CC"; then
3130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_ac_ct_CC="$ac_prog"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3152 $as_echo "$ac_ct_CC" >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3159 test -n "$ac_ct_CC" && break
3162 if test "x$ac_ct_CC" = x; then
3165 case $cross_compiling:$ac_tool_warned in
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169 ac_tool_warned=yes ;;
3178 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3180 as_fn_error "no acceptable C compiler found
in \
$PATH
3181 See \
`config.log' for more details." "$LINENO" 5; }
3183 # Provide some information about the compiler.
3184 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3187 for ac_option in --version -v -V -qversion; do
3188 { { ac_try="$ac_compiler $ac_option >&5"
3190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3191 *) ac_try_echo
=$ac_try;;
3193 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3197 if test -s conftest.err
; then
3199 ... rest of stderr output deleted ...
3200 10q' conftest.err
>conftest.er1
3201 cat conftest.er1
>&5
3202 rm -f conftest.er1 conftest.err
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }
3208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3219 ac_clean_files_save
=$ac_clean_files
3220 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3221 # Try to create an executable without -o first, disregard a.out.
3222 # It will help us diagnose broken compilers, and finding out an intuition
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3225 $as_echo_n "checking for C compiler default output file name... " >&6; }
3226 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3228 # The possible output files:
3229 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3232 for ac_file
in $ac_files
3235 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3236 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3241 if { { ac_try
="$ac_link_default"
3243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_link_default") 2>&5
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }; then :
3252 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3253 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3254 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3255 # so that the user can short-circuit this test for compilers unknown to
3257 for ac_file in $ac_files ''
3259 test -f "$ac_file" || continue
3261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3264 # We found the default executable, but exeext='' is most
3268 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3270 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3272 # We set ac_cv_exeext here because the later test for it is not
3273 # safe: cross compilers may not add the suffix if given an `-o'
3274 # argument, so we may need to know it at that point already.
3275 # Even if this section looks crufty: it has the advantage of
3282 test "$ac_cv_exeext" = no && ac_cv_exeext=
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3288 $as_echo "$ac_file" >&6; }
3289 if test -z "$ac_file"; then :
3290 $as_echo "$as_me: failed program was:" >&5
3291 sed 's
/^
/|
/' conftest.$ac_ext >&5
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3295 { as_fn_set_status 77
3296 as_fn_error "C compiler cannot create executables
3297 See \`config.log
' for more details." "$LINENO" 5; }; }
3299 ac_exeext=$ac_cv_exeext
3301 # Check that the compiler produces executables we can run. If not, either
3302 # the compiler is broken, or we cross compile.
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3304 $as_echo_n "checking whether the C compiler works... " >&6; }
3305 # If not cross compiling, check that we can run a simple program.
3306 if test "$cross_compiling" != yes; then
3307 if { ac_try='.
/$ac_file'
3308 { { case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_try") 2>&5
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; }; then
3320 if test "$cross_compiling" = maybe; then
3323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3325 as_fn_error "cannot run C compiled programs.
3326 If you meant to cross compile, use \`--host'.
3327 See \`config.log' for more details.
" "$LINENO" 5; }
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3332 $as_echo "yes" >&6; }
3334 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3335 ac_clean_files=$ac_clean_files_save
3336 # Check that the compiler produces executables we can run. If not, either
3337 # the compiler is broken, or we cross compile.
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3339 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3341 $as_echo "$cross_compiling" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3344 $as_echo_n "checking
for suffix of executables...
" >&6; }
3345 if { { ac_try="$ac_link"
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351 $as_echo "$ac_try_echo"; } >&5
3352 (eval "$ac_link") 2>&5
3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3355 test $ac_status = 0; }; then :
3356 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3357 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3358 # work properly (i.e., refer to `conftest.exe'), while it won't with
3360 for ac_file in conftest.exe conftest conftest.*; do
3361 test -f "$ac_file" || continue
3363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error "cannot compute suffix of executables: cannot compile and link
3373 See \`config.log' for more details.
" "$LINENO" 5; }
3375 rm -f conftest$ac_cv_exeext
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3377 $as_echo "$ac_cv_exeext" >&6; }
3379 rm -f conftest.$ac_ext
3380 EXEEXT=$ac_cv_exeext
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3383 $as_echo_n "checking
for suffix of object files...
" >&6; }
3384 if test "${ac_cv_objext+set}" = set; then :
3385 $as_echo_n "(cached
) " >&6
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3398 rm -f conftest.o conftest.obj
3399 if { { ac_try="$ac_compile"
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3404 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_compile") 2>&5
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3409 test $ac_status = 0; }; then :
3410 for ac_file in conftest.o conftest.obj conftest.*; do
3411 test -f "$ac_file" || continue;
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3419 $as_echo "$as_me: failed program was
:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424 as_fn_error "cannot compute suffix of object files: cannot compile
3425 See \`config.log' for more details.
" "$LINENO" 5; }
3427 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3430 $as_echo "$ac_cv_objext" >&6; }
3431 OBJEXT=$ac_cv_objext
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3434 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3435 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3436 $as_echo_n "(cached
) " >&6
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3452 if ac_fn_c_try_compile "$LINENO"; then :
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3462 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3463 if test $ac_compiler_gnu = yes; then
3468 ac_test_CFLAGS=${CFLAGS+set}
3469 ac_save_CFLAGS=$CFLAGS
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3471 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3472 if test "${ac_cv_prog_cc_g+set}" = set; then :
3473 $as_echo_n "(cached
) " >&6
3475 ac_save_c_werror_flag=$ac_c_werror_flag
3476 ac_c_werror_flag=yes
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3490 if ac_fn_c_try_compile "$LINENO"; then :
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3505 if ac_fn_c_try_compile "$LINENO"; then :
3508 ac_c_werror_flag=$ac_save_c_werror_flag
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3521 if ac_fn_c_try_compile "$LINENO"; then :
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529 ac_c_werror_flag=$ac_save_c_werror_flag
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3532 $as_echo "$ac_cv_prog_cc_g" >&6; }
3533 if test "$ac_test_CFLAGS" = set; then
3534 CFLAGS=$ac_save_CFLAGS
3535 elif test $ac_cv_prog_cc_g = yes; then
3536 if test "$GCC" = yes; then
3542 if test "$GCC" = yes; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3549 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3550 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3551 $as_echo_n "(cached
) " >&6
3553 ac_cv_prog_cc_c89=no
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3559 #include <sys/types.h>
3560 #include <sys/stat.h>
3561 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3562 struct buf { int x; };
3563 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3564 static char *e (p, i)
3570 static char *f (char * (*g) (char **, int), char **p, ...)
3575 s = g (p, va_arg (v,int));
3580 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3581 function prototypes and stuff, but not '\xHH' hex character constants.
3582 These don't provoke an error unfortunately, instead are silently treated
3583 as 'x'. The following induces an error, until -std is added to get
3584 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3585 array size at least. It's necessary to write '\x00'==0 to get something
3586 that's true only with -std. */
3587 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3589 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3590 inside strings and character constants. */
3592 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3594 int test (int i, double x);
3595 struct s1 {int (*f) (int a);};
3596 struct s2 {int (*f) (double a);};
3597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3603 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3608 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3609 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3611 CC="$ac_save_CC $ac_arg"
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613 ac_cv_prog_cc_c89=$ac_arg
3615 rm -f core conftest.err conftest.$ac_objext
3616 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3618 rm -f conftest.$ac_ext
3623 case "x
$ac_cv_prog_cc_c89" in
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3626 $as_echo "none needed
" >&6; } ;;
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3629 $as_echo "unsupported
" >&6; } ;;
3631 CC="$CC $ac_cv_prog_cc_c89"
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3633 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3635 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
3647 for ac_t in install-sh install.sh shtool; do
3648 if test -f "$ac_dir/$ac_t"; then
3650 ac_install_sh="$ac_aux_dir/$ac_t -c"
3655 if test -z "$ac_aux_dir"; then
3656 as_fn_error "cannot
find install-sh
, install.sh
, or shtool
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" "$LINENO" 5
3659 # These three variables are undocumented and unsupported,
3660 # and are intended to be withdrawn in a future Autoconf release.
3661 # They can cause serious problems if a builder's source tree is in a directory
3662 # whose full name contains unusual characters.
3663 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
3664 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
3665 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
3668 # Make sure we can run config.sub.
3669 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
3670 as_fn_error "cannot run
$SHELL $ac_aux_dir/config.sub
" "$LINENO" 5
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system
type" >&5
3673 $as_echo_n "checking build system
type...
" >&6; }
3674 if test "${ac_cv_build+set}" = set; then :
3675 $as_echo_n "(cached
) " >&6
3677 ac_build_alias=$build_alias
3678 test "x
$ac_build_alias" = x &&
3679 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
3680 test "x
$ac_build_alias" = x &&
3681 as_fn_error "cannot guess build
type; you must specify one
" "$LINENO" 5
3682 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
3683 as_fn_error "$SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" "$LINENO" 5
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_build" >&5
3687 $as_echo "$ac_cv_build" >&6; }
3688 case $ac_cv_build in
3690 *) as_fn_error "invalid value of canonical build
" "$LINENO" 5;;
3693 ac_save_IFS=$IFS; IFS='-'
3699 # Remember, the first character of IFS is used to create $*,
3700 # except with old shells:
3703 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
host system
type" >&5
3707 $as_echo_n "checking
host system
type...
" >&6; }
3708 if test "${ac_cv_host+set}" = set; then :
3709 $as_echo_n "(cached
) " >&6
3711 if test "x
$host_alias" = x; then
3712 ac_cv_host=$ac_cv_build
3714 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
3715 as_fn_error "$SHELL $ac_aux_dir/config.sub
$host_alias failed
" "$LINENO" 5
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_host" >&5
3720 $as_echo "$ac_cv_host" >&6; }
3723 *) as_fn_error "invalid value of canonical
host" "$LINENO" 5;;
3726 ac_save_IFS=$IFS; IFS='-'
3732 # Remember, the first character of IFS is used to create $*,
3733 # except with old shells:
3736 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3741 ac_cpp='$CPP $CPPFLAGS'
3742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3746 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3747 # On Suns, sometimes $CPP names a directory.
3748 if test -n "$CPP" && test -d "$CPP"; then
3751 if test -z "$CPP"; then
3752 if test "${ac_cv_prog_CPP+set}" = set; then :
3753 $as_echo_n "(cached
) " >&6
3755 # Double quotes because CPP needs to be expanded
3756 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3759 for ac_c_preproc_warn_flag in '' yes
3761 # Use a header file that comes with gcc, so configuring glibc
3762 # with a fresh cross-compiler works.
3763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3764 # <limits.h> exists even on freestanding compilers.
3765 # On the NeXT, cc -E runs the code through the compiler's parser,
3766 # not just through cpp. "Syntax error
" is here to catch this case.
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3770 # include <limits.h>
3772 # include <assert.h>
3776 if ac_fn_c_try_cpp "$LINENO"; then :
3779 # Broken: fails on valid input.
3782 rm -f conftest.err conftest.$ac_ext
3784 # OK, works on sane cases. Now check whether nonexistent headers
3785 # can be detected and how.
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 #include <ac_nonexistent.h>
3790 if ac_fn_c_try_cpp "$LINENO"; then :
3791 # Broken: success on invalid input.
3794 # Passes both tests.
3798 rm -f conftest.err conftest.$ac_ext
3801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3802 rm -f conftest.err conftest.$ac_ext
3803 if $ac_preproc_ok; then :
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3816 $as_echo "$CPP" >&6; }
3818 for ac_c_preproc_warn_flag in '' yes
3820 # Use a header file that comes with gcc, so configuring glibc
3821 # with a fresh cross-compiler works.
3822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3823 # <limits.h> exists even on freestanding compilers.
3824 # On the NeXT, cc -E runs the code through the compiler's parser,
3825 # not just through cpp. "Syntax error
" is here to catch this case.
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3829 # include <limits.h>
3831 # include <assert.h>
3835 if ac_fn_c_try_cpp "$LINENO"; then :
3838 # Broken: fails on valid input.
3841 rm -f conftest.err conftest.$ac_ext
3843 # OK, works on sane cases. Now check whether nonexistent headers
3844 # can be detected and how.
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3847 #include <ac_nonexistent.h>
3849 if ac_fn_c_try_cpp "$LINENO"; then :
3850 # Broken: success on invalid input.
3853 # Passes both tests.
3857 rm -f conftest.err conftest.$ac_ext
3860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3861 rm -f conftest.err conftest.$ac_ext
3862 if $ac_preproc_ok; then :
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3868 See \`config.log' for more details.
" "$LINENO" 5; }
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3879 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3880 if test "${ac_cv_path_GREP+set}" = set; then :
3881 $as_echo_n "(cached
) " >&6
3883 if test -z "$GREP"; then
3884 ac_path_GREP_found=false
3885 # Loop through the user's path and test for each of PROGNAME-LIST
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3890 test -z "$as_dir" && as_dir=.
3891 for ac_prog in grep ggrep; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3894 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3895 # Check for GNU ac_path_GREP and select it if it is found.
3896 # Check for GNU $ac_path_GREP
3897 case `"$ac_path_GREP" --version 2>&1` in
3899 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3902 $as_echo_n 0123456789 >"conftest.
in"
3905 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3906 mv "conftest.tmp
" "conftest.
in"
3907 cp "conftest.
in" "conftest.
nl"
3908 $as_echo 'GREP' >> "conftest.
nl"
3909 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3910 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3911 as_fn_arith $ac_count + 1 && ac_count=$as_val
3912 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3913 # Best one so far, save it but keep looking for a better one
3914 ac_cv_path_GREP="$ac_path_GREP"
3915 ac_path_GREP_max=$ac_count
3917 # 10*(2^10) chars as input seems more than enough
3918 test $ac_count -gt 10 && break
3920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923 $ac_path_GREP_found && break 3
3928 if test -z "$ac_cv_path_GREP"; then
3929 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3932 ac_cv_path_GREP=$GREP
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3937 $as_echo "$ac_cv_path_GREP" >&6; }
3938 GREP="$ac_cv_path_GREP"
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3942 $as_echo_n "checking
for egrep...
" >&6; }
3943 if test "${ac_cv_path_EGREP+set}" = set; then :
3944 $as_echo_n "(cached
) " >&6
3946 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3947 then ac_cv_path_EGREP="$GREP -E"
3949 if test -z "$EGREP"; then
3950 ac_path_EGREP_found=false
3951 # Loop through the user's path and test for each of PROGNAME-LIST
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956 test -z "$as_dir" && as_dir=.
3957 for ac_prog in egrep; do
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3960 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3961 # Check for GNU ac_path_EGREP and select it if it is found.
3962 # Check for GNU $ac_path_EGREP
3963 case `"$ac_path_EGREP" --version 2>&1` in
3965 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3968 $as_echo_n 0123456789 >"conftest.
in"
3971 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3972 mv "conftest.tmp
" "conftest.
in"
3973 cp "conftest.
in" "conftest.
nl"
3974 $as_echo 'EGREP' >> "conftest.
nl"
3975 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3976 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3977 as_fn_arith $ac_count + 1 && ac_count=$as_val
3978 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3979 # Best one so far, save it but keep looking for a better one
3980 ac_cv_path_EGREP="$ac_path_EGREP"
3981 ac_path_EGREP_max=$ac_count
3983 # 10*(2^10) chars as input seems more than enough
3984 test $ac_count -gt 10 && break
3986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989 $ac_path_EGREP_found && break 3
3994 if test -z "$ac_cv_path_EGREP"; then
3995 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3998 ac_cv_path_EGREP=$EGREP
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
4004 $as_echo "$ac_cv_path_EGREP" >&6; }
4005 EGREP="$ac_cv_path_EGREP"
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
4009 $as_echo_n "checking
for ANSI C header files...
" >&6; }
4010 if test "${ac_cv_header_stdc+set}" = set; then :
4011 $as_echo_n "(cached
) " >&6
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029 ac_cv_header_stdc=yes
4031 ac_cv_header_stdc=no
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 if test $ac_cv_header_stdc = yes; then
4036 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4042 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4043 $EGREP "memchr
" >/dev/null 2>&1; then :
4046 ac_cv_header_stdc=no
4052 if test $ac_cv_header_stdc = yes; then
4053 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4059 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4060 $EGREP "free
" >/dev/null 2>&1; then :
4063 ac_cv_header_stdc=no
4069 if test $ac_cv_header_stdc = yes; then
4070 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4071 if test "$cross_compiling" = yes; then :
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4078 #if ((' ' & 0x0FF) == 0x020)
4079 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4080 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4082 # define ISLOWER(c) \
4083 (('a' <= (c) && (c) <= 'i') \
4084 || ('j' <= (c) && (c) <= 'r') \
4085 || ('s' <= (c) && (c) <= 'z'))
4086 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4094 for (i = 0; i < 256; i++)
4095 if (XOR (islower (i), ISLOWER (i))
4096 || toupper (i) != TOUPPER (i))
4101 if ac_fn_c_try_run "$LINENO"; then :
4104 ac_cv_header_stdc=no
4106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4107 conftest.$ac_objext conftest.beam conftest.$ac_ext
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
4113 $as_echo "$ac_cv_header_stdc" >&6; }
4114 if test $ac_cv_header_stdc = yes; then
4116 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4120 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4121 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4122 inttypes.h stdint.h unistd.h
4124 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4125 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4127 eval as_val
=\$
$as_ac_Header
4128 if test "x$as_val" = x
""yes; then :
4129 cat >>confdefs.h
<<_ACEOF
4130 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4141 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4142 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4149 if test "$MINIX" = yes; then
4151 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4154 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4157 $as_echo "#define _MINIX 1" >>confdefs.h
4164 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4171 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4172 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4178 # define __EXTENSIONS__ 1
4179 $ac_includes_default
4188 if ac_fn_c_try_compile
"$LINENO"; then :
4189 ac_cv_safe_to_define___extensions__
=yes
4191 ac_cv_safe_to_define___extensions__
=no
4193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4196 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4197 test $ac_cv_safe_to_define___extensions__ = yes &&
4198 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4200 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4202 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4204 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4206 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4209 if test -n "$ac_tool_prefix"; then
4210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4211 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4215 $as_echo_n "(cached) " >&6
4217 if test -n "$RANLIB"; then
4218 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4224 test -z "$as_dir" && as_dir
=.
4225 for ac_exec_ext
in '' $ac_executable_extensions; do
4226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 RANLIB
=$ac_cv_prog_RANLIB
4238 if test -n "$RANLIB"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4240 $as_echo "$RANLIB" >&6; }
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4248 if test -z "$ac_cv_prog_RANLIB"; then
4249 ac_ct_RANLIB
=$RANLIB
4250 # Extract the first word of "ranlib", so it can be a program name with args.
4251 set dummy ranlib
; ac_word
=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4255 $as_echo_n "(cached) " >&6
4257 if test -n "$ac_ct_RANLIB"; then
4258 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir
=.
4265 for ac_exec_ext
in '' $ac_executable_extensions; do
4266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4267 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4278 if test -n "$ac_ct_RANLIB"; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4280 $as_echo "$ac_ct_RANLIB" >&6; }
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4286 if test "x$ac_ct_RANLIB" = x
; then
4289 case $cross_compiling:$ac_tool_warned in
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4293 ac_tool_warned
=yes ;;
4295 RANLIB
=$ac_ct_RANLIB
4298 RANLIB
="$ac_cv_prog_RANLIB"
4309 # Code from module arg-nonnull:
4310 # Code from module c++defs:
4311 # Code from module extensions:
4313 # Code from module include_next:
4314 # Code from module inttypes:
4315 # Code from module memchr:
4316 # Code from module memmem:
4317 # Code from module memmem-simple:
4318 # Code from module multiarch:
4319 # Code from module stddef:
4320 # Code from module stdint:
4321 # Code from module string:
4322 # Code from module warn-on-use:
4323 # Code from module wchar:
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4326 $as_echo_n "checking target system type... " >&6; }
4327 if test "${ac_cv_target+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4330 if test "x$target_alias" = x
; then
4331 ac_cv_target
=$ac_cv_host
4333 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4334 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4339 $as_echo "$ac_cv_target" >&6; }
4340 case $ac_cv_target in
4342 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4344 target
=$ac_cv_target
4345 ac_save_IFS
=$IFS; IFS
='-'
4351 # Remember, the first character of IFS is used to create $*,
4352 # except with old shells:
4355 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4358 # The aliases save the names the user supplied, while $host etc.
4359 # will get canonicalized.
4360 test -n "$target_alias" &&
4361 test "$program_prefix$program_suffix$program_transform_name" = \
4363 program_prefix
=${target_alias}-
4365 # The tests for host and target for $enable_largefile require
4370 # As the $enable_largefile decision depends on --enable-plugins we must set it
4371 # even in directories otherwise not depending on the $plugins option.
4374 # Check whether --enable-plugins was given.
4375 if test "${enable_plugins+set}" = set; then :
4376 enableval
=$enable_plugins; case "${enableval}" in
4377 yes |
"") plugins
=yes ;;
4388 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4389 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4390 # are mutually exclusive; and without procfs support, the bfd/ elf module
4391 # cannot provide certain routines such as elfcore_write_prpsinfo
4392 # or elfcore_write_prstatus. So unless the user explicitly requested
4393 # large-file support through the --enable-largefile switch, disable
4394 # large-file support in favor of procfs support.
4395 test "${target}" = "${host}" -a "x$plugins" = xno \
4396 && : ${enable_largefile="no"}
4400 # Check whether --enable-largefile was given.
4401 if test "${enable_largefile+set}" = set; then :
4402 enableval
=$enable_largefile;
4405 if test "$enable_largefile" != no
; then
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4408 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4409 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4412 ac_cv_sys_largefile_CC
=no
4413 if test "$GCC" != yes; then
4416 # IRIX 6.2 and later do not support large files by default,
4417 # so use the C compiler's -n32 option if that helps.
4418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #include <sys/types.h>
4421 /* Check that off_t can represent 2**63 - 1 correctly.
4422 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4423 since some C++ compilers masquerading as C compilers
4424 incorrectly reject 9223372036854775807. */
4425 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4426 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4427 && LARGE_OFF_T % 2147483647 == 1)
4437 if ac_fn_c_try_compile
"$LINENO"; then :
4440 rm -f core conftest.err conftest.
$ac_objext
4442 if ac_fn_c_try_compile
"$LINENO"; then :
4443 ac_cv_sys_largefile_CC
=' -n32'; break
4445 rm -f core conftest.err conftest.
$ac_objext
4449 rm -f conftest.
$ac_ext
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4453 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4454 if test "$ac_cv_sys_largefile_CC" != no
; then
4455 CC
=$CC$ac_cv_sys_largefile_CC
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4459 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4460 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466 #include <sys/types.h>
4467 /* Check that off_t can represent 2**63 - 1 correctly.
4468 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4469 since some C++ compilers masquerading as C compilers
4470 incorrectly reject 9223372036854775807. */
4471 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4473 && LARGE_OFF_T % 2147483647 == 1)
4483 if ac_fn_c_try_compile
"$LINENO"; then :
4484 ac_cv_sys_file_offset_bits
=no
; break
4486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489 #define _FILE_OFFSET_BITS 64
4490 #include <sys/types.h>
4491 /* Check that off_t can represent 2**63 - 1 correctly.
4492 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4493 since some C++ compilers masquerading as C compilers
4494 incorrectly reject 9223372036854775807. */
4495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4496 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4497 && LARGE_OFF_T % 2147483647 == 1)
4507 if ac_fn_c_try_compile
"$LINENO"; then :
4508 ac_cv_sys_file_offset_bits
=64; break
4510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4511 ac_cv_sys_file_offset_bits
=unknown
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4516 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4517 case $ac_cv_sys_file_offset_bits in #(
4520 cat >>confdefs.h
<<_ACEOF
4521 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4526 if test $ac_cv_sys_file_offset_bits = unknown
; then
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4528 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4529 if test "${ac_cv_sys_large_files+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 #include <sys/types.h>
4536 /* Check that off_t can represent 2**63 - 1 correctly.
4537 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4538 since some C++ compilers masquerading as C compilers
4539 incorrectly reject 9223372036854775807. */
4540 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4541 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4542 && LARGE_OFF_T % 2147483647 == 1)
4552 if ac_fn_c_try_compile
"$LINENO"; then :
4553 ac_cv_sys_large_files
=no
; break
4555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 #define _LARGE_FILES 1
4559 #include <sys/types.h>
4560 /* Check that off_t can represent 2**63 - 1 correctly.
4561 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4562 since some C++ compilers masquerading as C compilers
4563 incorrectly reject 9223372036854775807. */
4564 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4565 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4566 && LARGE_OFF_T % 2147483647 == 1)
4576 if ac_fn_c_try_compile
"$LINENO"; then :
4577 ac_cv_sys_large_files
=1; break
4579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4580 ac_cv_sys_large_files
=unknown
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4585 $as_echo "$ac_cv_sys_large_files" >&6; }
4586 case $ac_cv_sys_large_files in #(
4589 cat >>confdefs.h
<<_ACEOF
4590 #define _LARGE_FILES $ac_cv_sys_large_files
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4603 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4604 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4607 am_cv_prog_cc_stdc
=no
4609 # Don't try gcc -ansi; that turns off useful extensions and
4610 # breaks some systems' header files.
4611 # AIX -qlanglvl=ansi
4612 # Ultrix and OSF/1 -std1
4613 # HP-UX 10.20 and later -Ae
4614 # HP-UX older versions -Aa -D_HPUX_SOURCE
4615 # SVR4 -Xc -D__EXTENSIONS__
4616 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4618 CC
="$ac_save_CC $ac_arg"
4619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4623 #include <sys/types.h>
4624 #include <sys/stat.h>
4625 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4626 struct buf { int x; };
4627 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4628 static char *e (p, i)
4634 static char *f (char * (*g) (char **, int), char **p, ...)
4639 s = g (p, va_arg (v,int));
4643 int test (int i, double x);
4644 struct s1 {int (*f) (int a);};
4645 struct s2 {int (*f) (double a);};
4646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4654 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4660 if ac_fn_c_try_compile
"$LINENO"; then :
4661 am_cv_prog_cc_stdc
="$ac_arg"; break
4663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4669 if test -z "$am_cv_prog_cc_stdc"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4671 $as_echo "none needed" >&6; }
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4674 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4676 case "x$am_cv_prog_cc_stdc" in
4678 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4683 for ac_dir
in ..
"$srcdir"/..
; do
4684 for ac_t
in install-sh
install.sh shtool
; do
4685 if test -f "$ac_dir/$ac_t"; then
4687 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4692 if test -z "$ac_aux_dir"; then
4693 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4696 # These three variables are undocumented and unsupported,
4697 # and are intended to be withdrawn in a future Autoconf release.
4698 # They can cause serious problems if a builder's source tree is in a directory
4699 # whose full name contains unusual characters.
4700 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4701 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4702 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4707 # Dependency checking.
4708 rm -rf .tst
2>/dev
/null
4709 mkdir .tst
2>/dev
/null
4710 if test -d .tst
; then
4715 rmdir .tst
2>/dev
/null
4717 DEPDIR
="${am__leading_dot}deps"
4719 ac_config_commands
="$ac_config_commands depdir"
4722 depcc
="$CC" am_compiler_list
=
4724 am_depcomp
=$ac_aux_dir/depcomp
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4726 $as_echo_n "checking dependency style of $depcc... " >&6; }
4727 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4730 if test -f "$am_depcomp"; then
4731 # We make a subdir and do the tests there. Otherwise we can end up
4732 # making bogus files that we don't know about and never remove. For
4733 # instance it was reported that on HP-UX the gcc test will end up
4734 # making a dummy file named `D' -- because `-MD' means `put the output
4737 # Copy depcomp to subdir because otherwise we won't find it if we're
4738 # using a relative directory.
4739 cp "$am_depcomp" conftest.dir
4741 # We will build objects and dependencies in a subdirectory because
4742 # it helps to detect inapplicable dependency modes. For instance
4743 # both Tru64's cc and ICC support -MD to output dependencies as a
4744 # side effect of compilation, but ICC will put the dependencies in
4745 # the current directory while Tru64 will put them in the object
4749 am_cv_CC_dependencies_compiler_type
=none
4750 if test "$am_compiler_list" = ""; then
4751 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4753 for depmode
in $am_compiler_list; do
4754 if test $depmode = none
; then break; fi
4756 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4757 # Setup a source with many dependencies, because some compilers
4758 # like to wrap large dependency lists on column 80 (with \), and
4759 # we should not choose a depcomp mode which is confused by this.
4761 # We need to recreate these files for each test, as the compiler may
4762 # overwrite some of them when testing with obscure command lines.
4763 # This happens at least with the AIX C compiler.
4765 for i
in 1 2 3 4 5 6; do
4766 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4767 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4768 # Solaris 8's {/usr,}/bin/sh.
4769 touch sub
/conftst
$i.h
4771 echo "include sub/conftest.Po" > confmf
4773 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4774 # mode. It turns out that the SunPro C++ compiler does not properly
4775 # handle `-M -o', and we need to detect this.
4776 depcmd
="depmode=$depmode \
4777 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4778 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4779 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4780 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4781 if env
$depcmd > conftest.err
2>&1 &&
4782 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4783 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4784 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4785 # icc doesn't choke on unknown options, it will just issue warnings
4786 # or remarks (even with -Werror). So we grep stderr for any message
4787 # that says an option was ignored or not supported.
4788 # When given -MP, icc 7.0 and 7.1 complain thusly:
4789 # icc: Command line warning: ignoring option '-M'; no argument required
4790 # The diagnosis changed in icc 8.0:
4791 # icc: Command line remark: option '-MP' not supported
4792 if (grep 'ignoring option' conftest.err ||
4793 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4794 am_cv_CC_dependencies_compiler_type
=$depmode
4795 $as_echo "$as_me:$LINENO: success" >&5
4799 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4800 sed -e 's/^/| /' < conftest.err
>&5
4806 am_cv_CC_dependencies_compiler_type
=none
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4811 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4812 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4813 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4814 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4819 # Check for the 'make' the user wants to use.
4822 # Extract the first word of "$ac_prog", so it can be a program name with args.
4823 set dummy
$ac_prog; ac_word
=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_prog_MAKE+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4829 if test -n "$MAKE"; then
4830 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir
=.
4837 for ac_exec_ext
in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_MAKE
="$ac_prog"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 MAKE
=$ac_cv_prog_MAKE
4850 if test -n "$MAKE"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4852 $as_echo "$MAKE" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4859 test -n "$MAKE" && break
4863 case "`$MAKE --version 2>&1 | sed 1q`" in
4868 if test "$MAKE_IS_GNU" = yes; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4877 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4879 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4880 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4881 $as_echo_n "(cached) " >&6
4883 cat >conftest.
make <<\_ACEOF
4886 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4888 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4889 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4891 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4893 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4897 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4899 $as_echo "yes" >&6; }
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4904 SET_MAKE
="MAKE=${MAKE-make}"
4919 # If we haven't got the data from the intl directory,
4920 # assume NLS is disabled.
4929 if test -f ..
/intl
/config.intl
; then
4930 . ..
/intl
/config.intl
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4933 $as_echo_n "checking whether NLS is requested... " >&6; }
4934 if test x
"$USE_NLS" != xyes
; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4939 $as_echo "yes" >&6; }
4941 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4945 $as_echo_n "checking for catalogs to be installed... " >&6; }
4946 # Look for .po and .gmo files in the source directory.
4949 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4950 # If there aren't any .gmo files the shell will give us the
4951 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4953 case "$cat" in *\
**)
4956 # The quadruple backslash is collapsed to a double backslash
4957 # by the backticks, then collapsed again by the double quotes,
4958 # leaving us with one backslash in the sed expression (right
4959 # before the dot that mustn't act as a wildcard).
4960 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4961 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4962 # The user is allowed to set LINGUAS to a list of languages to
4963 # install catalogs for. If it's empty that means "all of them."
4964 if test "x$LINGUAS" = x
; then
4965 CATALOGS
="$CATALOGS $cat"
4966 XLINGUAS
="$XLINGUAS $lang"
4968 case "$LINGUAS" in *$lang*)
4969 CATALOGS
="$CATALOGS $cat"
4970 XLINGUAS
="$XLINGUAS $lang"
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4977 $as_echo "$LINGUAS" >&6; }
4990 localedir
='${datadir}/locale'
4993 if test x
"$USE_NLS" = xyes
; then
4994 CONFIG_ALL
="$CONFIG_ALL all-po"
4995 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4996 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4997 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
5004 LIBC_FATAL_STDERR_
=1
5005 export LIBC_FATAL_STDERR_
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5009 $as_echo_n "checking for long long int... " >&6; }
5010 if test "${ac_cv_type_long_long_int+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5016 /* For now, do not test the preprocessor; as of 2007 there are too many
5017 implementations with broken preprocessors. Perhaps this can
5018 be revisited in 2012. In the meantime, code should not expect
5019 #if to work with literals wider than 32 bits. */
5020 /* Test literals. */
5021 long long int ll = 9223372036854775807ll;
5022 long long int nll = -9223372036854775807LL;
5023 unsigned long long int ull = 18446744073709551615ULL;
5024 /* Test constant expressions. */
5025 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5027 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5033 /* Test availability of runtime routines for shift and division. */
5034 long long int llmax = 9223372036854775807ll;
5035 unsigned long long int ullmax = 18446744073709551615ull;
5036 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5037 | (llmax / ll) | (llmax % ll)
5038 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5039 | (ullmax / ull) | (ullmax % ull));
5045 if ac_fn_c_try_link
"$LINENO"; then :
5046 if test "$cross_compiling" = yes; then :
5047 ac_cv_type_long_long_int
=yes
5049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5054 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5055 # define LLONG_MAX (HALF - 1 + HALF)
5060 long long int n = 1;
5064 long long int m = n << i;
5067 if (LLONG_MAX / 2 < m)
5075 if ac_fn_c_try_run
"$LINENO"; then :
5076 ac_cv_type_long_long_int
=yes
5078 ac_cv_type_long_long_int
=no
5080 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5081 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5085 ac_cv_type_long_long_int
=no
5087 rm -f core conftest.err conftest.
$ac_objext \
5088 conftest
$ac_exeext conftest.
$ac_ext
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5091 $as_echo "$ac_cv_type_long_long_int" >&6; }
5092 if test $ac_cv_type_long_long_int = yes; then
5094 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5100 $as_echo_n "checking for unsigned long long int... " >&6; }
5101 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5107 /* For now, do not test the preprocessor; as of 2007 there are too many
5108 implementations with broken preprocessors. Perhaps this can
5109 be revisited in 2012. In the meantime, code should not expect
5110 #if to work with literals wider than 32 bits. */
5111 /* Test literals. */
5112 long long int ll = 9223372036854775807ll;
5113 long long int nll = -9223372036854775807LL;
5114 unsigned long long int ull = 18446744073709551615ULL;
5115 /* Test constant expressions. */
5116 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5118 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5124 /* Test availability of runtime routines for shift and division. */
5125 long long int llmax = 9223372036854775807ll;
5126 unsigned long long int ullmax = 18446744073709551615ull;
5127 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5128 | (llmax / ll) | (llmax % ll)
5129 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5130 | (ullmax / ull) | (ullmax % ull));
5136 if ac_fn_c_try_link
"$LINENO"; then :
5137 ac_cv_type_unsigned_long_long_int
=yes
5139 ac_cv_type_unsigned_long_long_int
=no
5141 rm -f core conftest.err conftest.
$ac_objext \
5142 conftest
$ac_exeext conftest.
$ac_ext
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5145 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5146 if test $ac_cv_type_unsigned_long_long_int = yes; then
5148 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5155 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5156 if test "${gl_cv_have_include_next+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5159 rm -rf conftestd1a conftestd1b conftestd2
5160 mkdir conftestd1a conftestd1b conftestd2
5161 cat <<EOF > conftestd1a/conftest.h
5162 #define DEFINED_IN_CONFTESTD1
5163 #include_next <conftest.h>
5164 #ifdef DEFINED_IN_CONFTESTD2
5167 #error "include_next doesn't work"
5170 cat <<EOF > conftestd1b/conftest.h
5171 #define DEFINED_IN_CONFTESTD1
5173 #include_next <conftest.h>
5174 #ifdef DEFINED_IN_CONFTESTD2
5177 #error "include_next doesn't work"
5180 cat <<EOF > conftestd2/conftest.h
5181 #ifndef DEFINED_IN_CONFTESTD1
5182 #error "include_next test doesn't work"
5184 #define DEFINED_IN_CONFTESTD2
5186 gl_save_CPPFLAGS
="$CPPFLAGS"
5187 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5190 #include <conftest.h>
5192 if ac_fn_c_try_compile
"$LINENO"; then :
5193 gl_cv_have_include_next
=yes
5195 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198 #include <conftest.h>
5200 if ac_fn_c_try_compile
"$LINENO"; then :
5201 gl_cv_have_include_next
=buggy
5203 gl_cv_have_include_next
=no
5205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5209 CPPFLAGS
="$gl_save_CPPFLAGS"
5210 rm -rf conftestd1a conftestd1b conftestd2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5214 $as_echo "$gl_cv_have_include_next" >&6; }
5215 PRAGMA_SYSTEM_HEADER
=
5216 if test $gl_cv_have_include_next = yes; then
5217 INCLUDE_NEXT
=include_next
5218 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5219 if test -n "$GCC"; then
5220 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
5223 if test $gl_cv_have_include_next = buggy
; then
5224 INCLUDE_NEXT
=include
5225 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5227 INCLUDE_NEXT
=include
5228 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
5239 for ac_header
in $gl_header_list
5241 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5242 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5243 eval as_val
=\$
$as_ac_Header
5244 if test "x$as_val" = x
""yes; then :
5245 cat >>confdefs.h
<<_ACEOF
5246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5263 gl_cv_c_multiarch
=no
5264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 #ifndef __APPLE_CC__
5267 not a universal capable compiler
5272 if ac_fn_c_try_compile
"$LINENO"; then :
5276 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5277 if test -n "$prev"; then
5279 i?
86 | x86_64 | ppc | ppc64
)
5280 if test -z "$arch" ||
test "$arch" = "$word"; then
5283 gl_cv_c_multiarch
=yes
5289 if test "x$word" = "x-arch"; then
5296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5297 if test $gl_cv_c_multiarch = yes; then
5299 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5301 APPLE_UNIVERSAL_BUILD
=1
5303 APPLE_UNIVERSAL_BUILD
=0
5310 if test $ac_cv_type_long_long_int = yes; then
5311 HAVE_LONG_LONG_INT
=1
5313 HAVE_LONG_LONG_INT
=0
5317 if test $ac_cv_type_unsigned_long_long_int = yes; then
5318 HAVE_UNSIGNED_LONG_LONG_INT
=1
5320 HAVE_UNSIGNED_LONG_LONG_INT
=0
5324 if test $ac_cv_header_inttypes_h = yes; then
5331 if test $ac_cv_header_sys_types_h = yes; then
5350 if test $gl_cv_have_include_next = yes; then
5351 gl_cv_next_stdint_h
='<'stdint.h
'>'
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5354 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5355 if test "${gl_cv_next_stdint_h+set}" = set; then :
5356 $as_echo_n "(cached) " >&6
5359 if test $ac_cv_header_stdint_h = yes; then
5360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5366 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
5367 *) gl_absname_cpp
="$ac_cpp" ;;
5369 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5370 sed -n '\#/stdint.h#{
5371 s#.*"\(.*/stdint.h\)".*#\1#
5377 gl_cv_next_stdint_h
='<'stdint.h
'>'
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5382 $as_echo "$gl_cv_next_stdint_h" >&6; }
5384 NEXT_STDINT_H
=$gl_cv_next_stdint_h
5386 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
5387 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5388 gl_next_as_first_directive
='<'stdint.h
'>'
5390 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5391 gl_next_as_first_directive
=$gl_cv_next_stdint_h
5393 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
5397 if test $ac_cv_header_stdint_h = yes; then
5404 if test $ac_cv_header_stdint_h = yes; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5406 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5407 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5410 gl_cv_header_working_stdint_h
=no
5411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5415 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5416 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5417 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5419 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5420 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5421 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5425 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5426 included before <wchar.h>. */
5437 int8_t a1 = INT8_MAX;
5438 int8_t a1min = INT8_MIN;
5441 int16_t a2 = INT16_MAX;
5442 int16_t a2min = INT16_MIN;
5445 int32_t a3 = INT32_MAX;
5446 int32_t a3min = INT32_MIN;
5449 int64_t a4 = INT64_MAX;
5450 int64_t a4min = INT64_MIN;
5453 uint8_t b1 = UINT8_MAX;
5455 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5458 uint16_t b2 = UINT16_MAX;
5461 uint32_t b3 = UINT32_MAX;
5464 uint64_t b4 = UINT64_MAX;
5466 int_least8_t c1 = INT8_C (0x7f);
5467 int_least8_t c1max = INT_LEAST8_MAX;
5468 int_least8_t c1min = INT_LEAST8_MIN;
5469 int_least16_t c2 = INT16_C (0x7fff);
5470 int_least16_t c2max = INT_LEAST16_MAX;
5471 int_least16_t c2min = INT_LEAST16_MIN;
5472 int_least32_t c3 = INT32_C (0x7fffffff);
5473 int_least32_t c3max = INT_LEAST32_MAX;
5474 int_least32_t c3min = INT_LEAST32_MIN;
5475 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5476 int_least64_t c4max = INT_LEAST64_MAX;
5477 int_least64_t c4min = INT_LEAST64_MIN;
5478 uint_least8_t d1 = UINT8_C (0xff);
5479 uint_least8_t d1max = UINT_LEAST8_MAX;
5480 uint_least16_t d2 = UINT16_C (0xffff);
5481 uint_least16_t d2max = UINT_LEAST16_MAX;
5482 uint_least32_t d3 = UINT32_C (0xffffffff);
5483 uint_least32_t d3max = UINT_LEAST32_MAX;
5484 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5485 uint_least64_t d4max = UINT_LEAST64_MAX;
5486 int_fast8_t e1 = INT_FAST8_MAX;
5487 int_fast8_t e1min = INT_FAST8_MIN;
5488 int_fast16_t e2 = INT_FAST16_MAX;
5489 int_fast16_t e2min = INT_FAST16_MIN;
5490 int_fast32_t e3 = INT_FAST32_MAX;
5491 int_fast32_t e3min = INT_FAST32_MIN;
5492 int_fast64_t e4 = INT_FAST64_MAX;
5493 int_fast64_t e4min = INT_FAST64_MIN;
5494 uint_fast8_t f1 = UINT_FAST8_MAX;
5495 uint_fast16_t f2 = UINT_FAST16_MAX;
5496 uint_fast32_t f3 = UINT_FAST32_MAX;
5497 uint_fast64_t f4 = UINT_FAST64_MAX;
5499 intptr_t g = INTPTR_MAX;
5500 intptr_t gmin = INTPTR_MIN;
5503 uintptr_t h = UINTPTR_MAX;
5505 intmax_t i = INTMAX_MAX;
5506 uintmax_t j = UINTMAX_MAX;
5508 #include <limits.h> /* for CHAR_BIT */
5509 #define TYPE_MINIMUM(t) \
5510 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5511 #define TYPE_MAXIMUM(t) \
5512 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5515 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5516 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5518 /* Detect bug in FreeBSD 6.0 / ia64. */
5519 int check_SIG_ATOMIC:
5520 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5521 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5523 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5525 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5526 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5528 /* Detect bug in mingw. */
5530 WINT_MIN == TYPE_MINIMUM (wint_t)
5531 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5534 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5536 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5538 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5540 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5542 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5545 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5548 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5551 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5553 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5554 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5555 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5556 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5557 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5558 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5559 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5560 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5561 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5562 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5563 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5574 if ac_fn_c_try_compile
"$LINENO"; then :
5575 if test "$cross_compiling" = yes; then :
5576 gl_cv_header_working_stdint_h
=yes
5579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5583 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5584 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5585 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5589 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5590 included before <wchar.h>. */
5602 #define MVAL(macro) MVAL1(macro)
5603 #define MVAL1(expression) #expression
5604 static const char *macro_values[] =
5638 for (mv = macro_values; *mv != NULL; mv++)
5640 const char *value = *mv;
5641 /* Test whether it looks like a cast expression. */
5642 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
5643 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
5644 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
5645 || strncmp (value, "((int)"/*)*/, 6) == 0
5646 || strncmp (value, "((signed short)"/*)*/, 15) == 0
5647 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
5656 if ac_fn_c_try_run
"$LINENO"; then :
5657 gl_cv_header_working_stdint_h
=yes
5659 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5660 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5669 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5671 if test "$gl_cv_header_working_stdint_h" = yes; then
5674 for ac_header
in sys
/inttypes.h sys
/bitypes.h
5676 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5677 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5678 eval as_val
=\$
$as_ac_Header
5679 if test "x$as_val" = x
""yes; then :
5680 cat >>confdefs.h
<<_ACEOF
5681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5688 if test $ac_cv_header_sys_inttypes_h = yes; then
5689 HAVE_SYS_INTTYPES_H
=1
5691 HAVE_SYS_INTTYPES_H
=0
5694 if test $ac_cv_header_sys_bitypes_h = yes; then
5695 HAVE_SYS_BITYPES_H
=1
5697 HAVE_SYS_BITYPES_H
=0
5711 if test $APPLE_UNIVERSAL_BUILD = 0; then
5714 for gltype
in ptrdiff_t size_t
; do
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5716 $as_echo_n "checking for bit size of $gltype... " >&6; }
5717 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5718 $as_echo_n "(cached) " >&6
5720 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5721 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5722 included before <wchar.h>. */
5731 #include <limits.h>"; then :
5737 eval gl_cv_bitsizeof_
${gltype}=\
$result
5740 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5742 $as_echo "$ac_res" >&6; }
5743 eval result
=\
$gl_cv_bitsizeof_${gltype}
5744 if test $result = unknown
; then
5747 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5748 cat >>confdefs.h
<<_ACEOF
5749 #define BITSIZEOF_${GLTYPE} $result
5752 eval BITSIZEOF_
${GLTYPE}=\
$result
5759 for gltype
in sig_atomic_t wchar_t wint_t
; do
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5761 $as_echo_n "checking for bit size of $gltype... " >&6; }
5762 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5763 $as_echo_n "(cached) " >&6
5765 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5766 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5767 included before <wchar.h>. */
5776 #include <limits.h>"; then :
5782 eval gl_cv_bitsizeof_
${gltype}=\
$result
5785 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5787 $as_echo "$ac_res" >&6; }
5788 eval result
=\
$gl_cv_bitsizeof_${gltype}
5789 if test $result = unknown
; then
5792 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5793 cat >>confdefs.h
<<_ACEOF
5794 #define BITSIZEOF_${GLTYPE} $result
5797 eval BITSIZEOF_
${GLTYPE}=\
$result
5803 for gltype
in sig_atomic_t wchar_t wint_t
; do
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5805 $as_echo_n "checking whether $gltype is signed... " >&6; }
5806 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5807 $as_echo_n "(cached) " >&6
5809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5812 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5813 included before <wchar.h>. */
5822 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5831 if ac_fn_c_try_compile
"$LINENO"; then :
5836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5837 eval gl_cv_type_
${gltype}_signed
=\
$result
5840 eval ac_res
=\
$gl_cv_type_${gltype}_signed
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5842 $as_echo "$ac_res" >&6; }
5843 eval result
=\
$gl_cv_type_${gltype}_signed
5844 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5845 if test "$result" = yes; then
5846 cat >>confdefs.h
<<_ACEOF
5847 #define HAVE_SIGNED_${GLTYPE} 1
5850 eval HAVE_SIGNED_
${GLTYPE}=1
5852 eval HAVE_SIGNED_
${GLTYPE}=0
5857 gl_cv_type_ptrdiff_t_signed
=yes
5858 gl_cv_type_size_t_signed
=no
5859 if test $APPLE_UNIVERSAL_BUILD = 0; then
5862 for gltype
in ptrdiff_t size_t
; do
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5864 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5865 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5866 $as_echo_n "(cached) " >&6
5868 eval gl_cv_type_
${gltype}_suffix
=no
5869 eval result
=\
$gl_cv_type_${gltype}_signed
5870 if test "$result" = yes; then
5875 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
5878 l
) gltype1
='long int';;
5879 ll
) gltype1
='long long int';;
5880 i64
) gltype1
='__int64';;
5881 u
) gltype1
='unsigned int';;
5882 ul
) gltype1
='unsigned long int';;
5883 ull
) gltype1
='unsigned long long int';;
5884 ui64
)gltype1
='unsigned __int64';;
5886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5889 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5890 included before <wchar.h>. */
5900 extern $gltype1 foo;
5909 if ac_fn_c_try_compile
"$LINENO"; then :
5910 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
5912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5913 eval result
=\
$gl_cv_type_${gltype}_suffix
5914 test "$result" != no
&& break
5917 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5919 $as_echo "$ac_res" >&6; }
5920 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5921 eval result
=\
$gl_cv_type_${gltype}_suffix
5922 test "$result" = no
&& result
=
5923 eval ${GLTYPE}_SUFFIX
=\
$result
5924 cat >>confdefs.h
<<_ACEOF
5925 #define ${GLTYPE}_SUFFIX $result
5934 for gltype
in sig_atomic_t wchar_t wint_t
; do
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5936 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5937 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5938 $as_echo_n "(cached) " >&6
5940 eval gl_cv_type_
${gltype}_suffix
=no
5941 eval result
=\
$gl_cv_type_${gltype}_signed
5942 if test "$result" = yes; then
5947 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
5950 l
) gltype1
='long int';;
5951 ll
) gltype1
='long long int';;
5952 i64
) gltype1
='__int64';;
5953 u
) gltype1
='unsigned int';;
5954 ul
) gltype1
='unsigned long int';;
5955 ull
) gltype1
='unsigned long long int';;
5956 ui64
)gltype1
='unsigned __int64';;
5958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5961 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5962 included before <wchar.h>. */
5972 extern $gltype1 foo;
5981 if ac_fn_c_try_compile
"$LINENO"; then :
5982 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
5984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5985 eval result
=\
$gl_cv_type_${gltype}_suffix
5986 test "$result" != no
&& break
5989 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5991 $as_echo "$ac_res" >&6; }
5992 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5993 eval result
=\
$gl_cv_type_${gltype}_suffix
5994 test "$result" = no
&& result
=
5995 eval ${GLTYPE}_SUFFIX
=\
$result
5996 cat >>confdefs.h
<<_ACEOF
5997 #define ${GLTYPE}_SUFFIX $result
6009 for ac_header
in inttypes.h
6011 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6012 if test "x$ac_cv_header_inttypes_h" = x
""yes; then :
6013 cat >>confdefs.h
<<_ACEOF
6014 #define HAVE_INTTYPES_H 1
6021 if test $ac_cv_header_inttypes_h = yes; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6023 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6024 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6030 #include <inttypes.h>
6043 if ac_fn_c_try_compile
"$LINENO"; then :
6044 gt_cv_inttypes_pri_broken
=no
6046 gt_cv_inttypes_pri_broken
=yes
6048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6052 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6054 if test "$gt_cv_inttypes_pri_broken" = yes; then
6056 cat >>confdefs.h
<<_ACEOF
6057 #define PRI_MACROS_BROKEN 1
6072 ac_fn_c_check_decl
"$LINENO" "imaxabs" "ac_cv_have_decl_imaxabs" "$ac_includes_default"
6073 if test "x$ac_cv_have_decl_imaxabs" = x
""yes; then :
6079 cat >>confdefs.h
<<_ACEOF
6080 #define HAVE_DECL_IMAXABS $ac_have_decl
6085 ac_fn_c_check_decl
"$LINENO" "imaxdiv" "ac_cv_have_decl_imaxdiv" "$ac_includes_default"
6086 if test "x$ac_cv_have_decl_imaxdiv" = x
""yes; then :
6092 cat >>confdefs.h
<<_ACEOF
6093 #define HAVE_DECL_IMAXDIV $ac_have_decl
6098 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
6099 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
6105 cat >>confdefs.h
<<_ACEOF
6106 #define HAVE_DECL_STRTOIMAX $ac_have_decl
6111 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
6112 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
6118 cat >>confdefs.h
<<_ACEOF
6119 #define HAVE_DECL_STRTOUMAX $ac_have_decl
6128 HAVE_DECL_IMAXABS
=1;
6129 HAVE_DECL_IMAXDIV
=1;
6130 HAVE_DECL_STRTOIMAX
=1;
6131 HAVE_DECL_STRTOUMAX
=1;
6142 for ac_func
in $gl_func_list
6144 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6145 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6146 eval as_val
=\$
$as_ac_var
6147 if test "x$as_val" = x
""yes; then :
6148 cat >>confdefs.h
<<_ACEOF
6149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6175 GNULIB_STRCASESTR
=0;
6182 GNULIB_MBSCASECMP
=0;
6183 GNULIB_MBSNCASECMP
=0;
6184 GNULIB_MBSPCASECMP
=0;
6185 GNULIB_MBSCASESTR
=0;
6193 GNULIB_STRVERSCMP
=0;
6198 HAVE_DECL_MEMRCHR
=1;
6204 HAVE_DECL_STRNDUP
=1;
6205 HAVE_DECL_STRNLEN
=1;
6209 HAVE_DECL_STRTOK_R
=1;
6210 HAVE_DECL_STRSIGNAL
=1;
6217 REPLACE_STRCASESTR
=0;
6222 REPLACE_STRSIGNAL
=0;
6224 UNDEFINE_STRTOK_R
=0;
6238 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
6239 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
6240 # irrelevant for anonymous mappings.
6241 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
6242 if test "x$ac_cv_func_mmap" = x
""yes; then :
6249 # Try to allow MAP_ANONYMOUS.
6250 gl_have_mmap_anonymous
=no
6251 if test $gl_have_mmap = yes; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
6253 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
6254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6257 #include <sys/mman.h>
6258 #ifdef MAP_ANONYMOUS
6259 I cant identify this map.
6263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6264 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
6265 gl_have_mmap_anonymous
=yes
6269 if test $gl_have_mmap_anonymous != yes; then
6270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6273 #include <sys/mman.h>
6275 I cant identify this map.
6279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6280 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
6282 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
6284 gl_have_mmap_anonymous
=yes
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
6290 $as_echo "$gl_have_mmap_anonymous" >&6; }
6291 if test $gl_have_mmap_anonymous = yes; then
6293 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
6321 if test $ac_cv_func_memchr = yes; then
6322 # Detect platform-specific bugs in some versions of glibc:
6323 # memchr should not dereference anything with length 0
6324 # http://bugzilla.redhat.com/499689
6325 # memchr should not dereference overestimated length after a match
6326 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
6327 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
6328 # Assume that memchr works on platforms that lack mprotect.
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
6330 $as_echo_n "checking whether memchr works... " >&6; }
6331 if test "${gl_cv_func_memchr_works+set}" = set; then :
6332 $as_echo_n "(cached) " >&6
6334 if test "$cross_compiling" = yes; then :
6335 gl_cv_func_memchr_works
="guessing no"
6337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6343 # include <unistd.h>
6344 # include <sys/types.h>
6345 # include <sys/mman.h>
6356 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
6357 # if HAVE_MAP_ANONYMOUS
6358 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
6360 # else /* !HAVE_MAP_ANONYMOUS */
6361 const int flags = MAP_FILE | MAP_PRIVATE;
6362 int fd = open ("/dev/zero", O_RDONLY, 0666);
6366 int pagesize = getpagesize ();
6368 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
6370 if (two_pages != (char *)(-1)
6371 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
6372 fence = two_pages + pagesize;
6377 if (memchr (fence, 0, 0))
6379 strcpy (fence - 9, "12345678");
6380 if (memchr (fence - 9, 0, 79) != fence - 1)
6389 if ac_fn_c_try_run
"$LINENO"; then :
6390 gl_cv_func_memchr_works
=yes
6392 gl_cv_func_memchr_works
=no
6394 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6395 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
6400 $as_echo "$gl_cv_func_memchr_works" >&6; }
6401 if test "$gl_cv_func_memchr_works" != yes; then
6407 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
6416 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
6419 for ac_header
in bp-sym.h
6421 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
6422 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
6423 cat >>confdefs.h
<<_ACEOF
6424 #define HAVE_BP_SYM_H 1
6435 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
6436 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
6442 cat >>confdefs.h
<<_ACEOF
6443 #define HAVE_DECL_MEMMEM $ac_have_decl
6459 for ac_func
in memmem
6461 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
6462 if test "x$ac_cv_func_memmem" = x
""yes; then :
6463 cat >>confdefs.h
<<_ACEOF
6464 #define HAVE_MEMMEM 1
6469 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
6482 if test $ac_cv_have_decl_memmem = no
; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6494 $as_echo_n "checking for wchar_t... " >&6; }
6495 if test "${gt_cv_c_wchar_t+set}" = set; then :
6496 $as_echo_n "(cached) " >&6
6498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6501 wchar_t foo = (wchar_t)'\0';
6510 if ac_fn_c_try_compile
"$LINENO"; then :
6515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6518 $as_echo "$gt_cv_c_wchar_t" >&6; }
6519 if test $gt_cv_c_wchar_t = yes; then
6521 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6531 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6532 if test "${ac_cv_c_restrict+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6536 # The order here caters to the fact that C++ does not require restrict.
6537 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
6538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 typedef int * int_ptr;
6541 int foo (int_ptr $ac_kw ip) {
6555 if ac_fn_c_try_compile
"$LINENO"; then :
6556 ac_cv_c_restrict
=$ac_kw
6558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6559 test "$ac_cv_c_restrict" != no
&& break
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6564 $as_echo "$ac_cv_c_restrict" >&6; }
6566 case $ac_cv_c_restrict in
6568 no
) $as_echo "#define restrict /**/" >>confdefs.h
6570 *) cat >>confdefs.h
<<_ACEOF
6571 #define restrict $ac_cv_c_restrict
6596 if test $gl_cv_have_include_next = yes; then
6597 gl_cv_next_string_h
='<'string.h
'>'
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
6600 $as_echo_n "checking absolute name of <string.h>... " >&6; }
6601 if test "${gl_cv_next_string_h+set}" = set; then :
6602 $as_echo_n "(cached) " >&6
6605 if test $ac_cv_header_string_h = yes; then
6606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6612 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6613 *) gl_absname_cpp
="$ac_cpp" ;;
6615 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6616 sed -n '\#/string.h#{
6617 s#.*"\(.*/string.h\)".*#\1#
6623 gl_cv_next_string_h
='<'string.h
'>'
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
6628 $as_echo "$gl_cv_next_string_h" >&6; }
6630 NEXT_STRING_H
=$gl_cv_next_string_h
6632 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6633 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6634 gl_next_as_first_directive
='<'string.h
'>'
6636 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6637 gl_next_as_first_directive
=$gl_cv_next_string_h
6639 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
6645 for gl_func
in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp
; do
6646 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6648 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6649 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6650 $as_echo_n "(cached) " >&6
6652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6665 if ac_fn_c_try_compile
"$LINENO"; then :
6666 eval "$as_gl_Symbol=yes"
6668 eval "$as_gl_Symbol=no"
6670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6672 eval ac_res
=\$
$as_gl_Symbol
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6674 $as_echo "$ac_res" >&6; }
6675 eval as_val
=\$
$as_gl_Symbol
6676 if test "x$as_val" = x
""yes; then :
6677 cat >>confdefs.h
<<_ACEOF
6678 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
6681 eval ac_cv_have_decl_
$gl_func=yes
6693 GNULIB_MBSNRTOWCS
=0;
6696 GNULIB_WCSNRTOMBS
=0;
6708 HAVE_DECL_WCWIDTH
=1;
6709 REPLACE_MBSTATE_T
=0;
6715 REPLACE_MBSRTOWCS
=0;
6716 REPLACE_MBSNRTOWCS
=0;
6718 REPLACE_WCSRTOMBS
=0;
6719 REPLACE_WCSNRTOMBS
=0;
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
6724 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
6725 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
6728 gl_cv_header_wchar_h_correct_inline
=yes
6729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6732 #define wcstod renamed_wcstod
6734 extern int zero (void);
6735 int main () { return zero(); }
6738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6739 (eval $ac_compile) 2>&5
6741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6742 test $ac_status = 0; }; then
6743 mv conftest.
$ac_objext conftest1.
$ac_objext
6744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6747 #define wcstod renamed_wcstod
6749 int zero (void) { return 0; }
6752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6753 (eval $ac_compile) 2>&5
6755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756 test $ac_status = 0; }; then
6757 mv conftest.
$ac_objext conftest2.
$ac_objext
6758 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
6761 gl_cv_header_wchar_h_correct_inline
=no
6765 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
6769 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
6770 if test $gl_cv_header_wchar_h_correct_inline = no
; then
6771 as_fn_error
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
6772 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
6773 C99 mode. You have four options:
6774 - Add the flag -fgnu89-inline to CC and reconfigure, or
6775 - Fix your include files, using parts of
6776 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
6777 - Use a gcc version older than 4.3, or
6778 - Don't use the flags -std=c99 or -std=gnu99.
6779 Configuration aborted." "$LINENO" 5
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6784 $as_echo_n "checking for wint_t... " >&6; }
6785 if test "${gt_cv_c_wint_t+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6791 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6793 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
6794 before <wchar.h>. */
6799 wint_t foo = (wchar_t)'\0';
6808 if ac_fn_c_try_compile
"$LINENO"; then :
6813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6816 $as_echo "$gt_cv_c_wint_t" >&6; }
6817 if test $gt_cv_c_wint_t = yes; then
6819 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6825 GL_COND_LIBTOOL_TRUE
=
6826 GL_COND_LIBTOOL_FALSE
='#'
6828 GL_COND_LIBTOOL_TRUE
='#'
6829 GL_COND_LIBTOOL_FALSE
=
6832 gl_cond_libtool
=false
6835 gl_m4_base
='gnulib/m4'
6845 gl_source_base
='gnulib'
6846 # Code from module arg-nonnull:
6847 # Code from module c++defs:
6848 # Code from module extensions:
6849 # Code from module include_next:
6850 # Code from module inttypes:
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inttypes.h conforms to C99" >&5
6891 $as_echo_n "checking whether inttypes.h conforms to C99... " >&6; }
6892 if test "${gl_cv_header_working_inttypes_h+set}" = set; then :
6893 $as_echo_n "(cached) " >&6
6895 gl_cv_header_working_inttypes_h
=no
6896 if test "$gl_cv_header_working_stdint_h" = yes \
6897 && test $ac_cv_header_inttypes_h = yes \
6898 && test "$ac_cv_have_decl_imaxabs" = yes \
6899 && test "$ac_cv_have_decl_imaxdiv" = yes \
6900 && test "$ac_cv_have_decl_strtoimax" = yes \
6901 && test "$ac_cv_have_decl_strtoumax" = yes; then
6902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6907 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6908 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6909 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
6910 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
6911 #include <inttypes.h>
6913 /* No need to duplicate the tests of stdint.m4; they are subsumed by
6914 $gl_cv_header_working_stdint_h = yes. */
6916 /* Tests for macros supposed to be defined in inttypes.h. */
6918 const char *k = /* implicit string concatenation */
6923 PRIo8 PRIu8 PRIx8 PRIX8
6929 PRIo16 PRIu16 PRIx16 PRIX16
6935 PRIo32 PRIu32 PRIx32 PRIX32
6941 PRIo64 PRIu64 PRIx64 PRIX64
6943 PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
6944 PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
6945 PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
6946 PRIdLEAST64 PRIiLEAST64
6947 PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
6948 PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
6949 PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
6950 PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
6951 PRIdFAST64 PRIiFAST64
6952 PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
6953 PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
6958 PRIoPTR PRIuPTR PRIxPTR PRIXPTR
6961 const char *l = /* implicit string concatenation */
6972 SCNo16 SCNu16 SCNx16
6978 SCNo32 SCNu32 SCNx32
6984 SCNo64 SCNu64 SCNx64
6986 SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
6987 SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
6988 SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
6989 SCNdLEAST64 SCNiLEAST64
6990 SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
6991 SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
6992 SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
6993 SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
6994 SCNdFAST64 SCNiFAST64
6995 SCNoFAST64 SCNuFAST64 SCNxFAST64
6996 SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
7001 SCNoPTR SCNuPTR SCNxPTR
7013 if ac_fn_c_try_compile
"$LINENO"; then :
7014 gl_cv_header_working_inttypes_h
=yes
7016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_inttypes_h" >&5
7020 $as_echo "$gl_cv_header_working_inttypes_h" >&6; }
7035 if test $gl_cv_have_include_next = yes; then
7036 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7039 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7040 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7041 $as_echo_n "(cached) " >&6
7044 if test $ac_cv_header_inttypes_h = yes; then
7045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7047 #include <inttypes.h>
7051 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7052 *) gl_absname_cpp
="$ac_cpp" ;;
7054 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7055 sed -n '\#/inttypes.h#{
7056 s#.*"\(.*/inttypes.h\)".*#\1#
7062 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7067 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7069 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
7071 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7072 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7073 gl_next_as_first_directive
='<'inttypes.h
'>'
7075 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7076 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
7078 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
7086 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
7091 if test -n "$STDINT_H"; then
7094 for glpfx
in '' l ll I64
; do
7097 l
) gltype1
='long int';;
7098 ll
) gltype1
='long long int';;
7099 I64
) gltype1
='__int64';;
7101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7104 extern intptr_t foo;
7105 extern $gltype1 foo;
7114 if ac_fn_c_try_compile
"$LINENO"; then :
7115 PRIPTR_PREFIX
='"'$glpfx'"'
7117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7118 test -n "$PRIPTR_PREFIX" && break
7123 if test "$ac_cv_have_decl_imaxabs" = yes; then
7129 if test "$ac_cv_have_decl_imaxdiv" = yes; then
7135 if test "$ac_cv_have_decl_strtoimax" = yes; then
7136 HAVE_DECL_STRTOIMAX
=1
7138 HAVE_DECL_STRTOIMAX
=0
7141 if test "$ac_cv_have_decl_strtoumax" = yes; then
7142 HAVE_DECL_STRTOUMAX
=1
7144 HAVE_DECL_STRTOUMAX
=0
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
7149 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
7150 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
7151 $as_echo_n "(cached) " >&6
7153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7155 /* Work also in C++ mode. */
7156 #define __STDC_LIMIT_MACROS 1
7158 /* Work if build is not clean. */
7159 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7166 #if defined INT32_MAX && defined INTMAX_MAX
7167 #define CONDITION (INT32_MAX < INTMAX_MAX)
7168 #elif HAVE_LONG_LONG_INT
7169 #define CONDITION (sizeof (int) < sizeof (long long int))
7173 int test[CONDITION ? 1 : -1];
7182 if ac_fn_c_try_compile
"$LINENO"; then :
7183 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
7185 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
7187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
7190 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
7191 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
7192 INT32_MAX_LT_INTMAX_MAX
=1;
7194 INT32_MAX_LT_INTMAX_MAX
=0;
7198 if test $APPLE_UNIVERSAL_BUILD = 0; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
7201 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
7202 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
7203 $as_echo_n "(cached) " >&6
7205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207 /* Work also in C++ mode. */
7208 #define __STDC_LIMIT_MACROS 1
7210 /* Work if build is not clean. */
7211 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7218 #if defined INT64_MAX
7219 #define CONDITION (INT64_MAX == LONG_MAX)
7220 #elif HAVE_LONG_LONG_INT
7221 #define CONDITION (sizeof (long long int) == sizeof (long int))
7225 int test[CONDITION ? 1 : -1];
7234 if ac_fn_c_try_compile
"$LINENO"; then :
7235 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
7237 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
7239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
7242 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
7243 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
7244 INT64_MAX_EQ_LONG_MAX
=1;
7246 INT64_MAX_EQ_LONG_MAX
=0;
7251 INT64_MAX_EQ_LONG_MAX
=-1
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
7255 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
7256 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
7257 $as_echo_n "(cached) " >&6
7259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 /* Work also in C++ mode. */
7262 #define __STDC_LIMIT_MACROS 1
7264 /* Work if build is not clean. */
7265 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7272 #if defined UINT32_MAX && defined UINTMAX_MAX
7273 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
7274 #elif HAVE_LONG_LONG_INT
7275 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
7279 int test[CONDITION ? 1 : -1];
7288 if ac_fn_c_try_compile
"$LINENO"; then :
7289 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
7291 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
7293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
7296 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
7297 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
7298 UINT32_MAX_LT_UINTMAX_MAX
=1;
7300 UINT32_MAX_LT_UINTMAX_MAX
=0;
7304 if test $APPLE_UNIVERSAL_BUILD = 0; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
7307 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
7308 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
7309 $as_echo_n "(cached) " >&6
7311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313 /* Work also in C++ mode. */
7314 #define __STDC_LIMIT_MACROS 1
7316 /* Work if build is not clean. */
7317 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7324 #if defined UINT64_MAX
7325 #define CONDITION (UINT64_MAX == ULONG_MAX)
7326 #elif HAVE_LONG_LONG_INT
7327 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
7331 int test[CONDITION ? 1 : -1];
7340 if ac_fn_c_try_compile
"$LINENO"; then :
7341 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
7343 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
7345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
7348 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
7349 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
7350 UINT64_MAX_EQ_ULONG_MAX
=1;
7352 UINT64_MAX_EQ_ULONG_MAX
=0;
7357 UINT64_MAX_EQ_ULONG_MAX
=-1
7361 for gl_func
in imaxabs imaxdiv strtoimax strtoumax
; do
7362 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7364 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7365 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7366 $as_echo_n "(cached) " >&6
7368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370 #include <inttypes.h>
7381 if ac_fn_c_try_compile
"$LINENO"; then :
7382 eval "$as_gl_Symbol=yes"
7384 eval "$as_gl_Symbol=no"
7386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7388 eval ac_res
=\$
$as_gl_Symbol
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7390 $as_echo "$ac_res" >&6; }
7391 eval as_val
=\$
$as_gl_Symbol
7392 if test "x$as_val" = x
""yes; then :
7393 cat >>confdefs.h
<<_ACEOF
7394 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7397 eval ac_cv_have_decl_
$gl_func=yes
7402 # Code from module memchr:
7411 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
7415 # Code from module memmem:
7418 if test $ac_cv_have_decl_memmem = yes; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
7420 $as_echo_n "checking whether memmem works in linear time... " >&6; }
7421 if test "${gl_cv_func_memmem_works+set}" = set; then :
7422 $as_echo_n "(cached) " >&6
7424 if test "$cross_compiling" = yes; then :
7425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7428 #include <features.h>
7429 #ifdef __GNU_LIBRARY__
7430 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
7435 #include <cygwin/version.h>
7436 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
7442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7443 $EGREP "Lucky user" >/dev
/null
2>&1; then :
7444 gl_cv_func_memmem_works
=yes
7446 gl_cv_func_memmem_works
="guessing no"
7452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7455 #include <signal.h> /* for signal */
7456 #include <string.h> /* for memmem */
7457 #include <stdlib.h> /* for malloc */
7458 #include <unistd.h> /* for alarm */
7464 char *haystack = (char *) malloc (2 * m + 1);
7465 char *needle = (char *) malloc (m + 1);
7467 /* Failure to compile this test due to missing alarm is okay,
7468 since all such platforms (mingw) also lack memmem. */
7469 signal (SIGALRM, SIG_DFL);
7471 /* Check for quadratic performance. */
7472 if (haystack && needle)
7474 memset (haystack, 'A', 2 * m);
7475 haystack[2 * m] = 'B';
7476 memset (needle, 'A', m);
7478 result = memmem (haystack, 2 * m + 1, needle, m + 1);
7480 /* Check for empty needle behavior. */
7481 return !result || !memmem ("a", 1, 0, 0);
7486 if ac_fn_c_try_run
"$LINENO"; then :
7487 gl_cv_func_memmem_works
=yes
7489 gl_cv_func_memmem_works
=no
7491 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7492 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
7498 $as_echo "$gl_cv_func_memmem_works" >&6; }
7499 if test "$gl_cv_func_memmem_works" != yes; then
7509 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
7514 # Code from module memmem-simple:
7527 for ac_func
in memmem
7529 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
7530 if test "x$ac_cv_func_memmem" = x
""yes; then :
7531 cat >>confdefs.h
<<_ACEOF
7532 #define HAVE_MEMMEM 1
7537 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
7550 if test $ac_cv_have_decl_memmem = no
; then
7562 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
7566 # Code from module multiarch:
7568 # Code from module stddef:
7572 if test $gt_cv_c_wchar_t = no
; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
7577 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
7578 if test "${gl_cv_decl_null_works+set}" = set; then :
7579 $as_echo_n "(cached) " >&6
7581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7584 int test[2 * (sizeof NULL == sizeof (void *)) -1];
7594 if ac_fn_c_try_compile
"$LINENO"; then :
7595 gl_cv_decl_null_works
=yes
7597 gl_cv_decl_null_works
=no
7599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
7602 $as_echo "$gl_cv_decl_null_works" >&6; }
7603 if test $gl_cv_decl_null_works = no
; then
7607 if test -n "$STDDEF_H"; then
7620 if test $gl_cv_have_include_next = yes; then
7621 gl_cv_next_stddef_h
='<'stddef.h
'>'
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
7624 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
7625 if test "${gl_cv_next_stddef_h+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7629 if test $ac_cv_header_stddef_h = yes; then
7630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7636 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7637 *) gl_absname_cpp
="$ac_cpp" ;;
7639 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7640 sed -n '\#/stddef.h#{
7641 s#.*"\(.*/stddef.h\)".*#\1#
7647 gl_cv_next_stddef_h
='<'stddef.h
'>'
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
7652 $as_echo "$gl_cv_next_stddef_h" >&6; }
7654 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
7656 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7657 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7658 gl_next_as_first_directive
='<'stddef.h
'>'
7660 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7661 gl_next_as_first_directive
=$gl_cv_next_stddef_h
7663 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
7669 # Code from module stdint:
7673 if test $ac_cv_type_long_long_int = yes; then
7674 HAVE_LONG_LONG_INT
=1
7676 HAVE_LONG_LONG_INT
=0
7680 if test $ac_cv_type_unsigned_long_long_int = yes; then
7681 HAVE_UNSIGNED_LONG_LONG_INT
=1
7683 HAVE_UNSIGNED_LONG_LONG_INT
=0
7687 if test $ac_cv_header_inttypes_h = yes; then
7694 if test $ac_cv_header_sys_types_h = yes; then
7713 if test $gl_cv_have_include_next = yes; then
7714 gl_cv_next_stdint_h
='<'stdint.h
'>'
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7717 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7718 if test "${gl_cv_next_stdint_h+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7722 if test $ac_cv_header_stdint_h = yes; then
7723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7729 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7730 *) gl_absname_cpp
="$ac_cpp" ;;
7732 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7733 sed -n '\#/stdint.h#{
7734 s#.*"\(.*/stdint.h\)".*#\1#
7740 gl_cv_next_stdint_h
='<'stdint.h
'>'
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7745 $as_echo "$gl_cv_next_stdint_h" >&6; }
7747 NEXT_STDINT_H
=$gl_cv_next_stdint_h
7749 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7750 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7751 gl_next_as_first_directive
='<'stdint.h
'>'
7753 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7754 gl_next_as_first_directive
=$gl_cv_next_stdint_h
7756 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
7760 if test $ac_cv_header_stdint_h = yes; then
7767 if test $ac_cv_header_stdint_h = yes; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7769 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7770 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7773 gl_cv_header_working_stdint_h
=no
7774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7778 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
7779 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
7780 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7782 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7783 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7784 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7788 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7789 included before <wchar.h>. */
7800 int8_t a1 = INT8_MAX;
7801 int8_t a1min = INT8_MIN;
7804 int16_t a2 = INT16_MAX;
7805 int16_t a2min = INT16_MIN;
7808 int32_t a3 = INT32_MAX;
7809 int32_t a3min = INT32_MIN;
7812 int64_t a4 = INT64_MAX;
7813 int64_t a4min = INT64_MIN;
7816 uint8_t b1 = UINT8_MAX;
7818 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7821 uint16_t b2 = UINT16_MAX;
7824 uint32_t b3 = UINT32_MAX;
7827 uint64_t b4 = UINT64_MAX;
7829 int_least8_t c1 = INT8_C (0x7f);
7830 int_least8_t c1max = INT_LEAST8_MAX;
7831 int_least8_t c1min = INT_LEAST8_MIN;
7832 int_least16_t c2 = INT16_C (0x7fff);
7833 int_least16_t c2max = INT_LEAST16_MAX;
7834 int_least16_t c2min = INT_LEAST16_MIN;
7835 int_least32_t c3 = INT32_C (0x7fffffff);
7836 int_least32_t c3max = INT_LEAST32_MAX;
7837 int_least32_t c3min = INT_LEAST32_MIN;
7838 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7839 int_least64_t c4max = INT_LEAST64_MAX;
7840 int_least64_t c4min = INT_LEAST64_MIN;
7841 uint_least8_t d1 = UINT8_C (0xff);
7842 uint_least8_t d1max = UINT_LEAST8_MAX;
7843 uint_least16_t d2 = UINT16_C (0xffff);
7844 uint_least16_t d2max = UINT_LEAST16_MAX;
7845 uint_least32_t d3 = UINT32_C (0xffffffff);
7846 uint_least32_t d3max = UINT_LEAST32_MAX;
7847 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7848 uint_least64_t d4max = UINT_LEAST64_MAX;
7849 int_fast8_t e1 = INT_FAST8_MAX;
7850 int_fast8_t e1min = INT_FAST8_MIN;
7851 int_fast16_t e2 = INT_FAST16_MAX;
7852 int_fast16_t e2min = INT_FAST16_MIN;
7853 int_fast32_t e3 = INT_FAST32_MAX;
7854 int_fast32_t e3min = INT_FAST32_MIN;
7855 int_fast64_t e4 = INT_FAST64_MAX;
7856 int_fast64_t e4min = INT_FAST64_MIN;
7857 uint_fast8_t f1 = UINT_FAST8_MAX;
7858 uint_fast16_t f2 = UINT_FAST16_MAX;
7859 uint_fast32_t f3 = UINT_FAST32_MAX;
7860 uint_fast64_t f4 = UINT_FAST64_MAX;
7862 intptr_t g = INTPTR_MAX;
7863 intptr_t gmin = INTPTR_MIN;
7866 uintptr_t h = UINTPTR_MAX;
7868 intmax_t i = INTMAX_MAX;
7869 uintmax_t j = UINTMAX_MAX;
7871 #include <limits.h> /* for CHAR_BIT */
7872 #define TYPE_MINIMUM(t) \
7873 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
7874 #define TYPE_MAXIMUM(t) \
7875 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
7878 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7879 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7881 /* Detect bug in FreeBSD 6.0 / ia64. */
7882 int check_SIG_ATOMIC:
7883 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7884 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7886 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7888 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7889 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7891 /* Detect bug in mingw. */
7893 WINT_MIN == TYPE_MINIMUM (wint_t)
7894 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7897 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7899 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7901 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7903 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7905 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7908 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7911 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7914 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7916 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7917 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7918 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7919 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7920 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7921 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7922 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7923 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7924 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7925 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7926 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7937 if ac_fn_c_try_compile
"$LINENO"; then :
7938 if test "$cross_compiling" = yes; then :
7939 gl_cv_header_working_stdint_h
=yes
7942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7946 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
7947 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
7948 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7952 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7953 included before <wchar.h>. */
7965 #define MVAL(macro) MVAL1(macro)
7966 #define MVAL1(expression) #expression
7967 static const char *macro_values[] =
8001 for (mv = macro_values; *mv != NULL; mv++)
8003 const char *value = *mv;
8004 /* Test whether it looks like a cast expression. */
8005 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8006 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8007 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8008 || strncmp (value, "((int)"/*)*/, 6) == 0
8009 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8010 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8019 if ac_fn_c_try_run
"$LINENO"; then :
8020 gl_cv_header_working_stdint_h
=yes
8022 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8023 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8032 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8034 if test "$gl_cv_header_working_stdint_h" = yes; then
8037 for ac_header
in sys
/inttypes.h sys
/bitypes.h
8039 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8040 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8041 eval as_val
=\$
$as_ac_Header
8042 if test "x$as_val" = x
""yes; then :
8043 cat >>confdefs.h
<<_ACEOF
8044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8051 if test $ac_cv_header_sys_inttypes_h = yes; then
8052 HAVE_SYS_INTTYPES_H
=1
8054 HAVE_SYS_INTTYPES_H
=0
8057 if test $ac_cv_header_sys_bitypes_h = yes; then
8058 HAVE_SYS_BITYPES_H
=1
8060 HAVE_SYS_BITYPES_H
=0
8074 if test $APPLE_UNIVERSAL_BUILD = 0; then
8077 for gltype
in ptrdiff_t size_t
; do
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8079 $as_echo_n "checking for bit size of $gltype... " >&6; }
8080 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8081 $as_echo_n "(cached) " >&6
8083 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8084 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8085 included before <wchar.h>. */
8094 #include <limits.h>"; then :
8100 eval gl_cv_bitsizeof_
${gltype}=\
$result
8103 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8105 $as_echo "$ac_res" >&6; }
8106 eval result
=\
$gl_cv_bitsizeof_${gltype}
8107 if test $result = unknown
; then
8110 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8111 cat >>confdefs.h
<<_ACEOF
8112 #define BITSIZEOF_${GLTYPE} $result
8115 eval BITSIZEOF_
${GLTYPE}=\
$result
8122 for gltype
in sig_atomic_t wchar_t wint_t
; do
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8124 $as_echo_n "checking for bit size of $gltype... " >&6; }
8125 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8126 $as_echo_n "(cached) " >&6
8128 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8129 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8130 included before <wchar.h>. */
8139 #include <limits.h>"; then :
8145 eval gl_cv_bitsizeof_
${gltype}=\
$result
8148 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8150 $as_echo "$ac_res" >&6; }
8151 eval result
=\
$gl_cv_bitsizeof_${gltype}
8152 if test $result = unknown
; then
8155 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8156 cat >>confdefs.h
<<_ACEOF
8157 #define BITSIZEOF_${GLTYPE} $result
8160 eval BITSIZEOF_
${GLTYPE}=\
$result
8166 for gltype
in sig_atomic_t wchar_t wint_t
; do
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8168 $as_echo_n "checking whether $gltype is signed... " >&6; }
8169 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8170 $as_echo_n "(cached) " >&6
8172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8173 /* end confdefs.h. */
8175 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8176 included before <wchar.h>. */
8185 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8194 if ac_fn_c_try_compile
"$LINENO"; then :
8199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8200 eval gl_cv_type_
${gltype}_signed
=\
$result
8203 eval ac_res
=\
$gl_cv_type_${gltype}_signed
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8205 $as_echo "$ac_res" >&6; }
8206 eval result
=\
$gl_cv_type_${gltype}_signed
8207 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8208 if test "$result" = yes; then
8209 cat >>confdefs.h
<<_ACEOF
8210 #define HAVE_SIGNED_${GLTYPE} 1
8213 eval HAVE_SIGNED_
${GLTYPE}=1
8215 eval HAVE_SIGNED_
${GLTYPE}=0
8220 gl_cv_type_ptrdiff_t_signed
=yes
8221 gl_cv_type_size_t_signed
=no
8222 if test $APPLE_UNIVERSAL_BUILD = 0; then
8225 for gltype
in ptrdiff_t size_t
; do
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8227 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8228 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8229 $as_echo_n "(cached) " >&6
8231 eval gl_cv_type_
${gltype}_suffix
=no
8232 eval result
=\
$gl_cv_type_${gltype}_signed
8233 if test "$result" = yes; then
8238 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
8241 l
) gltype1
='long int';;
8242 ll
) gltype1
='long long int';;
8243 i64
) gltype1
='__int64';;
8244 u
) gltype1
='unsigned int';;
8245 ul
) gltype1
='unsigned long int';;
8246 ull
) gltype1
='unsigned long long int';;
8247 ui64
)gltype1
='unsigned __int64';;
8249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8252 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8253 included before <wchar.h>. */
8263 extern $gltype1 foo;
8272 if ac_fn_c_try_compile
"$LINENO"; then :
8273 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
8275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8276 eval result
=\
$gl_cv_type_${gltype}_suffix
8277 test "$result" != no
&& break
8280 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8282 $as_echo "$ac_res" >&6; }
8283 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8284 eval result
=\
$gl_cv_type_${gltype}_suffix
8285 test "$result" = no
&& result
=
8286 eval ${GLTYPE}_SUFFIX
=\
$result
8287 cat >>confdefs.h
<<_ACEOF
8288 #define ${GLTYPE}_SUFFIX $result
8297 for gltype
in sig_atomic_t wchar_t wint_t
; do
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8299 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8300 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8301 $as_echo_n "(cached) " >&6
8303 eval gl_cv_type_
${gltype}_suffix
=no
8304 eval result
=\
$gl_cv_type_${gltype}_signed
8305 if test "$result" = yes; then
8310 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
8313 l
) gltype1
='long int';;
8314 ll
) gltype1
='long long int';;
8315 i64
) gltype1
='__int64';;
8316 u
) gltype1
='unsigned int';;
8317 ul
) gltype1
='unsigned long int';;
8318 ull
) gltype1
='unsigned long long int';;
8319 ui64
)gltype1
='unsigned __int64';;
8321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8324 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8325 included before <wchar.h>. */
8335 extern $gltype1 foo;
8344 if ac_fn_c_try_compile
"$LINENO"; then :
8345 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
8347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8348 eval result
=\
$gl_cv_type_${gltype}_suffix
8349 test "$result" != no
&& break
8352 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8354 $as_echo "$ac_res" >&6; }
8355 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8356 eval result
=\
$gl_cv_type_${gltype}_suffix
8357 test "$result" = no
&& result
=
8358 eval ${GLTYPE}_SUFFIX
=\
$result
8359 cat >>confdefs.h
<<_ACEOF
8360 #define ${GLTYPE}_SUFFIX $result
8371 # Code from module string:
8375 # Code from module warn-on-use:
8376 # Code from module wchar:
8399 if test $gl_cv_have_include_next = yes; then
8400 gl_cv_next_wchar_h
='<'wchar.h
'>'
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
8403 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
8404 if test "${gl_cv_next_wchar_h+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8408 if test $ac_cv_header_wchar_h = yes; then
8409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8410 /* end confdefs.h. */
8415 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8416 *) gl_absname_cpp
="$ac_cpp" ;;
8418 gl_cv_next_wchar_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8419 sed -n '\#/wchar.h#{
8420 s#.*"\(.*/wchar.h\)".*#\1#
8426 gl_cv_next_wchar_h
='<'wchar.h
'>'
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
8431 $as_echo "$gl_cv_next_wchar_h" >&6; }
8433 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
8435 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8436 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8437 gl_next_as_first_directive
='<'wchar.h
'>'
8439 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8440 gl_next_as_first_directive
=$gl_cv_next_wchar_h
8442 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
8446 if test $ac_cv_header_wchar_h = yes; then
8454 if test $gt_cv_c_wint_t = yes; then
8462 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth
; do
8463 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8465 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8466 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8467 $as_echo_n "(cached) " >&6
8469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h. */
8472 /* Some systems require additional headers. */
8474 # include <stddef.h>
8489 if ac_fn_c_try_compile
"$LINENO"; then :
8490 eval "$as_gl_Symbol=yes"
8492 eval "$as_gl_Symbol=no"
8494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8496 eval ac_res
=\$
$as_gl_Symbol
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8498 $as_echo "$ac_res" >&6; }
8499 eval as_val
=\$
$as_gl_Symbol
8500 if test "x$as_val" = x
""yes; then :
8501 cat >>confdefs.h
<<_ACEOF
8502 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8505 eval ac_cv_have_decl_
$gl_func=yes
8510 # Code from module dummy:
8511 # End of code from modules
8532 gl_source_base
='tests'
8533 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
8535 gl_module_indicator_condition
=$gltests_WITNESS
8545 LIBGNU_LIBDEPS
="$gl_libdeps"
8547 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
8551 # For Makefile dependencies.
8553 if test x
"$STDINT_H" != x
; then
8554 GNULIB_STDINT_H
=gnulib
/$STDINT_H
8560 cat >>confdefs.h
<<_ACEOF
8561 #define PACKAGE "$PACKAGE"
8566 # We never need to detect it in this sub-configure.
8567 # But preserve it for config.status --recheck.
8571 MAKEINFO_EXTRA_FLAGS
=""
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
8573 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
8574 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
8575 $as_echo_n "(cached) " >&6
8577 echo '@clicksequence{a @click{} b}' >conftest.texinfo
8578 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
8579 gdb_cv_have_makeinfo_click
=yes
8581 gdb_cv_have_makeinfo_click
=no
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
8585 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
8586 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
8587 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
8591 # GDB does not use automake, but gnulib does. This line lets us
8592 # generate its Makefile.in.
8593 am__api_version
='1.11'
8595 # Find a good install program. We prefer a C program (faster),
8596 # so one script is as good as another. But avoid the broken or
8597 # incompatible versions:
8598 # SysV /etc/install, /usr/sbin/install
8599 # SunOS /usr/etc/install
8600 # IRIX /sbin/install
8602 # AmigaOS /C/install, which installs bootblocks on floppy discs
8603 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8604 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8605 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8606 # OS/2's system install, which has a completely different semantic
8607 # ./install, which can be erroneously created by make from ./install.sh.
8608 # Reject install programs that cannot install multiple files.
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8610 $as_echo_n "checking for a BSD-compatible install... " >&6; }
8611 if test -z "$INSTALL"; then
8612 if test "${ac_cv_path_install+set}" = set; then :
8613 $as_echo_n "(cached) " >&6
8615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8619 test -z "$as_dir" && as_dir
=.
8620 # Account for people who put trailing slashes in PATH elements.
8621 case $as_dir/ in #((
8622 .
/ | .
// |
/[cC
]/* | \
8623 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
8624 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
8627 # OSF1 and SCO ODT 3.0 have their own names for install.
8628 # Don't use installbsd from OSF since it installs stuff as root
8630 for ac_prog
in ginstall scoinst
install; do
8631 for ac_exec_ext
in '' $ac_executable_extensions; do
8632 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
8633 if test $ac_prog = install &&
8634 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8635 # AIX install. It has an incompatible calling convention.
8637 elif test $ac_prog = install &&
8638 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8639 # program-specific install script used by HP pwplus--don't use.
8642 rm -rf conftest.one conftest.two conftest.dir
8643 echo one
> conftest.one
8644 echo two
> conftest.two
8646 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
8647 test -s conftest.one
&& test -s conftest.two
&&
8648 test -s conftest.dir
/conftest.one
&&
8649 test -s conftest.dir
/conftest.two
8651 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
8664 rm -rf conftest.one conftest.two conftest.dir
8667 if test "${ac_cv_path_install+set}" = set; then
8668 INSTALL
=$ac_cv_path_install
8670 # As a last resort, use the slow shell script. Don't cache a
8671 # value for INSTALL within a source directory, because that will
8672 # break other packages using the cache if that directory is
8673 # removed, or if the value is a relative name.
8674 INSTALL
=$ac_install_sh
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8678 $as_echo "$INSTALL" >&6; }
8680 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8681 # It thinks the first close brace ends the variable substitution.
8682 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8684 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8686 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8689 $as_echo_n "checking whether build environment is sane... " >&6; }
8692 echo timestamp
> conftest.
file
8693 # Reject unsafe characters in $srcdir or the absolute working directory
8694 # name. Accept space and tab only in the latter.
8698 *[\\\"\
#\$\&\'\`$am_lf]*)
8699 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
8702 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
8703 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
8706 # Do `set' in a subshell so we don't clobber the current shell's
8707 # arguments. Must try -L first in case configure is actually a
8708 # symlink; some systems play weird games with the mod time of symlinks
8709 # (eg FreeBSD returns the mod time of the symlink's containing
8712 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
8713 if test "$*" = "X"; then
8715 set X
`ls -t "$srcdir/configure" conftest.file`
8718 if test "$*" != "X $srcdir/configure conftest.file" \
8719 && test "$*" != "X conftest.file $srcdir/configure"; then
8721 # If neither matched, then we have a broken ls. This can happen
8722 # if, for instance, CONFIG_SHELL is bash and it inherits a
8723 # broken ls alias from the environment. This has actually
8724 # happened. Such a system could not be considered "sane".
8725 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
8726 alias in your environment" "$LINENO" 5
8729 test "$2" = conftest.
file
8735 as_fn_error
"newly created file is older than distributed files!
8736 Check your system clock" "$LINENO" 5
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8739 $as_echo "yes" >&6; }
8740 test "$program_prefix" != NONE
&&
8741 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
8742 # Use a double $ so make ignores it.
8743 test "$program_suffix" != NONE
&&
8744 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
8745 # Double any \ or $.
8746 # By default was `s,x,x', remove it if useless.
8747 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
8748 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
8750 # expand $ac_aux_dir to an absolute path
8751 am_aux_dir
=`cd $ac_aux_dir && pwd`
8753 if test x
"${MISSING+set}" != xset
; then
8756 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
8758 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
8761 # Use eval to expand $SHELL
8762 if eval "$MISSING --run true"; then
8763 am_missing_run
="$MISSING --run "
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
8767 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8770 if test x
"${install_sh}" != xset
; then
8773 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
8775 install_sh
="\${SHELL} $am_aux_dir/install-sh"
8779 # Installed binaries are usually stripped using `strip' when the user
8780 # run `make install-strip'. However `strip' might not be the right
8781 # tool to use in cross-compilation environments, therefore Automake
8782 # will honor the `STRIP' environment variable to overrule this program.
8783 if test "$cross_compiling" != no
; then
8784 if test -n "$ac_tool_prefix"; then
8785 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8786 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788 $as_echo_n "checking for $ac_word... " >&6; }
8789 if test "${ac_cv_prog_STRIP+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
8792 if test -n "$STRIP"; then
8793 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
8795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8799 test -z "$as_dir" && as_dir
=.
8800 for ac_exec_ext
in '' $ac_executable_extensions; do
8801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8802 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8812 STRIP
=$ac_cv_prog_STRIP
8813 if test -n "$STRIP"; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8815 $as_echo "$STRIP" >&6; }
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818 $as_echo "no" >&6; }
8823 if test -z "$ac_cv_prog_STRIP"; then
8825 # Extract the first word of "strip", so it can be a program name with args.
8826 set dummy strip
; ac_word
=$2
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828 $as_echo_n "checking for $ac_word... " >&6; }
8829 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
8832 if test -n "$ac_ct_STRIP"; then
8833 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
8835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8839 test -z "$as_dir" && as_dir
=.
8840 for ac_exec_ext
in '' $ac_executable_extensions; do
8841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8842 ac_cv_prog_ac_ct_STRIP
="strip"
8843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8852 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
8853 if test -n "$ac_ct_STRIP"; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8855 $as_echo "$ac_ct_STRIP" >&6; }
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858 $as_echo "no" >&6; }
8861 if test "x$ac_ct_STRIP" = x
; then
8864 case $cross_compiling:$ac_tool_warned in
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8868 ac_tool_warned
=yes ;;
8873 STRIP
="$ac_cv_prog_STRIP"
8877 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8880 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
8881 if test -z "$MKDIR_P"; then
8882 if test "${ac_cv_path_mkdir+set}" = set; then :
8883 $as_echo_n "(cached) " >&6
8885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8886 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
8889 test -z "$as_dir" && as_dir
=.
8890 for ac_prog
in mkdir gmkdir
; do
8891 for ac_exec_ext
in '' $ac_executable_extensions; do
8892 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
8893 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
8894 'mkdir (GNU coreutils) '* | \
8895 'mkdir (coreutils) '* | \
8896 'mkdir (fileutils) '4.1*)
8897 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
8907 if test "${ac_cv_path_mkdir+set}" = set; then
8908 MKDIR_P
="$ac_cv_path_mkdir -p"
8910 # As a last resort, use the slow shell script. Don't cache a
8911 # value for MKDIR_P within a source directory, because that will
8912 # break other packages using the cache if that directory is
8913 # removed, or if the value is a relative name.
8914 test -d .
/--version && rmdir .
/--version
8915 MKDIR_P
="$ac_install_sh -d"
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8919 $as_echo "$MKDIR_P" >&6; }
8924 [\\/$
]* | ?
:[\\/]*) ;;
8925 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
8928 for ac_prog
in gawk mawk nawk
awk
8930 # Extract the first word of "$ac_prog", so it can be a program name with args.
8931 set dummy
$ac_prog; ac_word
=$2
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933 $as_echo_n "checking for $ac_word... " >&6; }
8934 if test "${ac_cv_prog_AWK+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
8937 if test -n "$AWK"; then
8938 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8944 test -z "$as_dir" && as_dir
=.
8945 for ac_exec_ext
in '' $ac_executable_extensions; do
8946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8947 ac_cv_prog_AWK
="$ac_prog"
8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 if test -n "$AWK"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8960 $as_echo "$AWK" >&6; }
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 $as_echo "no" >&6; }
8967 test -n "$AWK" && break
8970 ac_config_commands
="$ac_config_commands depfiles"
8973 am_make
=${MAKE-make}
8974 cat > confinc
<< 'END'
8976 @
echo this is the am__doit target
8979 # If we don't find an include directive, just comment out the code.
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8981 $as_echo_n "checking for style of include used by $am_make... " >&6; }
8985 # First try GNU make style include.
8986 echo "include confinc" > confmf
8987 # Ignore all kinds of additional output from `make'.
8988 case `$am_make -s -f confmf 2> /dev/null` in #(
8989 *the\ am__doit\ target
*)
8995 # Now try BSD make style include.
8996 if test "$am__include" = "#"; then
8997 echo '.include "confinc"' > confmf
8998 case `$am_make -s -f confmf 2> /dev/null` in #(
8999 *the\ am__doit\ target
*)
9000 am__include
=.include
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
9009 $as_echo "$_am_result" >&6; }
9010 rm -f confinc confmf
9012 # Check whether --enable-dependency-tracking was given.
9013 if test "${enable_dependency_tracking+set}" = set; then :
9014 enableval
=$enable_dependency_tracking;
9017 if test "x$enable_dependency_tracking" != xno
; then
9018 am_depcomp
="$ac_aux_dir/depcomp"
9021 if test "x$enable_dependency_tracking" != xno; then
9030 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9031 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9032 # is not polluted with repeated "-I."
9033 am__isrc
=' -I$(srcdir)'
9034 # test to see if srcdir already configured
9035 if test -f $srcdir/config.status
; then
9036 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9040 # test whether we have cygpath
9041 if test -z "$CYGPATH_W"; then
9042 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
9043 CYGPATH_W
='cygpath -w'
9050 # Define the identity of the package.
9052 VERSION
=UNUSED-VERSION
9055 # Some tools Automake needs.
9057 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9060 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
9063 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9066 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
9069 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
9071 # We need awk for the "check" target. The system "awk" is bad on
9073 # Always define AMTAR for backward compatibility.
9075 AMTAR
=${AMTAR-"${am_missing_run}tar"}
9077 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
9082 depcc
="$CC" am_compiler_list
=
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9085 $as_echo_n "checking dependency style of $depcc... " >&6; }
9086 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
9087 $as_echo_n "(cached) " >&6
9089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9090 # We make a subdir and do the tests there. Otherwise we can end up
9091 # making bogus files that we don't know about and never remove. For
9092 # instance it was reported that on HP-UX the gcc test will end up
9093 # making a dummy file named `D' -- because `-MD' means `put the output
9096 # Copy depcomp to subdir because otherwise we won't find it if we're
9097 # using a relative directory.
9098 cp "$am_depcomp" conftest.dir
9100 # We will build objects and dependencies in a subdirectory because
9101 # it helps to detect inapplicable dependency modes. For instance
9102 # both Tru64's cc and ICC support -MD to output dependencies as a
9103 # side effect of compilation, but ICC will put the dependencies in
9104 # the current directory while Tru64 will put them in the object
9108 am_cv_CC_dependencies_compiler_type
=none
9109 if test "$am_compiler_list" = ""; then
9110 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9113 case " $depcc " in #(
9114 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
9117 for depmode
in $am_compiler_list; do
9118 # Setup a source with many dependencies, because some compilers
9119 # like to wrap large dependency lists on column 80 (with \), and
9120 # we should not choose a depcomp mode which is confused by this.
9122 # We need to recreate these files for each test, as the compiler may
9123 # overwrite some of them when testing with obscure command lines.
9124 # This happens at least with the AIX C compiler.
9126 for i
in 1 2 3 4 5 6; do
9127 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9128 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9129 # Solaris 8's {/usr,}/bin/sh.
9130 touch sub
/conftst
$i.h
9132 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9134 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9135 # mode. It turns out that the SunPro C++ compiler does not properly
9136 # handle `-M -o', and we need to detect this. Also, some Intel
9137 # versions had trouble with output in subdirs
9138 am__obj
=sub
/conftest.
${OBJEXT-o}
9139 am__minus_obj
="-o $am__obj"
9142 # This depmode causes a compiler race in universal mode.
9143 test "$am__universal" = false ||
continue
9146 # after this tag, mechanisms are not by side-effect, so they'll
9147 # only be used when explicitly requested
9148 if test "x$enable_dependency_tracking" = xyes
; then
9154 msvisualcpp | msvcmsys
)
9155 # This compiler won't grok `-c -o', but also, the minuso test has
9156 # not run yet. These depmodes are late enough in the game, and
9157 # so weak that their functioning should not be impacted.
9158 am__obj
=conftest.
${OBJEXT-o}
9163 if depmode
=$depmode \
9164 source=sub
/conftest.c object
=$am__obj \
9165 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
9166 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
9167 >/dev
/null
2>conftest.err
&&
9168 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
9169 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
9170 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
9171 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
9172 # icc doesn't choke on unknown options, it will just issue warnings
9173 # or remarks (even with -Werror). So we grep stderr for any message
9174 # that says an option was ignored or not supported.
9175 # When given -MP, icc 7.0 and 7.1 complain thusly:
9176 # icc: Command line warning: ignoring option '-M'; no argument required
9177 # The diagnosis changed in icc 8.0:
9178 # icc: Command line remark: option '-MP' not supported
9179 if (grep 'ignoring option' conftest.err ||
9180 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9181 am_cv_CC_dependencies_compiler_type
=$depmode
9190 am_cv_CC_dependencies_compiler_type
=none
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9195 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9196 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
9199 test "x$enable_dependency_tracking" != xno \
9200 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
9202 am__fastdepCC_FALSE
='#'
9204 am__fastdepCC_TRUE
='#'
9205 am__fastdepCC_FALSE
=
9213 # Check whether --with-separate-debug-dir was given.
9214 if test "${with_separate_debug_dir+set}" = set; then :
9215 withval
=$with_separate_debug_dir;
9218 DEBUGDIR
=${libdir}/debug
9222 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9223 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9224 ac_define_dir
=`eval echo $DEBUGDIR`
9225 ac_define_dir
=`eval echo $ac_define_dir`
9227 cat >>confdefs.h
<<_ACEOF
9228 #define DEBUGDIR "$ac_define_dir"
9234 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9235 if test "x$prefix" = xNONE
; then
9236 test_prefix
=/usr
/local
9241 test_prefix
=$exec_prefix
9244 case ${ac_define_dir} in
9245 "${test_prefix}"|
"${test_prefix}/"*|\
9246 '${exec_prefix}'|
'${exec_prefix}/'*)
9251 cat >>confdefs.h
<<_ACEOF
9252 #define DEBUGDIR_RELOCATABLE $value
9258 # We can't pass paths as command line arguments.
9259 # Mingw32 tries to be clever and will convert the paths for us.
9260 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
9261 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
9262 # This breaks GDB's relocatable path conversions since paths passed in
9263 # config.h would not get so translated, the path prefixes no longer match.
9265 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9266 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9267 ac_define_dir
=`eval echo $bindir`
9268 ac_define_dir
=`eval echo $ac_define_dir`
9270 cat >>confdefs.h
<<_ACEOF
9271 #define BINDIR "$ac_define_dir"
9276 # GDB's datadir relocation
9280 # Check whether --with-gdb-datadir was given.
9281 if test "${with_gdb_datadir+set}" = set; then :
9282 withval
=$with_gdb_datadir;
9283 GDB_DATADIR
=$withval
9285 GDB_DATADIR
=${datadir}/gdb
9289 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9290 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9291 ac_define_dir
=`eval echo $GDB_DATADIR`
9292 ac_define_dir
=`eval echo $ac_define_dir`
9294 cat >>confdefs.h
<<_ACEOF
9295 #define GDB_DATADIR "$ac_define_dir"
9301 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9302 if test "x$prefix" = xNONE
; then
9303 test_prefix
=/usr
/local
9308 test_prefix
=$exec_prefix
9311 case ${ac_define_dir} in
9312 "${test_prefix}"|
"${test_prefix}/"*|\
9313 '${exec_prefix}'|
'${exec_prefix}/'*)
9318 cat >>confdefs.h
<<_ACEOF
9319 #define GDB_DATADIR_RELOCATABLE $value
9326 # Check whether --with-relocated-sources was given.
9327 if test "${with_relocated_sources+set}" = set; then :
9328 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
9330 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9331 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9332 ac_define_dir
=`eval echo $reloc_srcdir`
9333 ac_define_dir
=`eval echo $ac_define_dir`
9335 cat >>confdefs.h
<<_ACEOF
9336 #define RELOC_SRCDIR "$ac_define_dir"
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
9345 $as_echo_n "checking for default auto-load safe-path... " >&6; }
9347 # Check whether --with-auto-load-safe-path was given.
9348 if test "${with_auto_load_safe_path+set}" = set; then :
9349 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
9350 with_auto_load_safe_path
=""
9353 with_auto_load_safe_path
="$prefix"
9357 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9358 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9359 ac_define_dir
=`eval echo $with_auto_load_safe_path`
9360 ac_define_dir
=`eval echo $ac_define_dir`
9362 cat >>confdefs.h
<<_ACEOF
9363 #define DEFAULT_AUTO_LOAD_SAFE_PATH "$ac_define_dir"
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
9368 $as_echo "$with_auto_load_safe_path" >&6; }
9372 subdirs
="$subdirs testsuite"
9375 # Check whether to support alternative target configurations
9376 # Check whether --enable-targets was given.
9377 if test "${enable_targets+set}" = set; then :
9378 enableval
=$enable_targets; case "${enableval}" in
9379 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
9381 no
) enable_targets
= ;;
9382 *) enable_targets
=$enableval ;;
9387 # Check whether to enable 64-bit support on 32-bit hosts
9388 # Check whether --enable-64-bit-bfd was given.
9389 if test "${enable_64_bit_bfd+set}" = set; then :
9390 enableval
=$enable_64_bit_bfd; case "${enableval}" in
9393 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
9399 # Provide defaults for some variables set by the per-host and per-target
9401 gdb_host_obs
=posix-hdep.o
9403 if test "${target}" = "${host}"; then
9409 .
$srcdir/configure.
host
9411 # Accumulate some settings from configure.tgt over all enabled targets
9416 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9418 if test "$targ_alias" = "all"; then
9421 # Canonicalize the secondary target names.
9422 result
=`$ac_config_sub $targ_alias 2>/dev/null`
9423 if test -n "$result"; then
9429 .
${srcdir}/configure.tgt
9431 if test -z "${gdb_target_obs}"; then :
9432 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
9435 # Target-specific object files
9436 for i
in ${gdb_target_obs}; do
9437 case " $TARGET_OBS " in
9440 TARGET_OBS
="$TARGET_OBS ${i}"
9445 # Check whether this target needs 64-bit CORE_ADDR
9446 if test x
${want64} = xfalse
; then
9447 .
${srcdir}/..
/bfd
/config.bfd
9452 if test x
${all_targets} = xtrue
; then
9454 # We want all 64-bit targets if we either:
9455 # - run on a 64-bit host or
9456 # - already require 64-bit support for some other target or
9457 # - the --enable-64-bit-bfd option was supplied
9458 # Otherwise we only support all 32-bit targets.
9460 # NOTE: This test must be in sync with the corresponding
9463 if test x
${want64} = xfalse
; then
9464 # The cast to long int works around a bug in the HP C Compiler
9465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9467 # This bug is HP SR number 8606223364.
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9469 $as_echo_n "checking size of long... " >&6; }
9470 if test "${ac_cv_sizeof_long+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9473 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
9476 if test "$ac_cv_type_long" = yes; then
9477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9479 { as_fn_set_status
77
9480 as_fn_error
"cannot compute sizeof (long)
9481 See \`config.log' for more details." "$LINENO" 5; }; }
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9489 $as_echo "$ac_cv_sizeof_long" >&6; }
9493 cat >>confdefs.h
<<_ACEOF
9494 #define SIZEOF_LONG $ac_cv_sizeof_long
9498 if test "x${ac_cv_sizeof_long}" = "x8"; then
9502 if test x
${want64} = xtrue
; then
9503 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
9505 TARGET_OBS
='$(ALL_TARGET_OBS)'
9511 # For other settings, only the main target counts.
9515 targ
=$target; .
${srcdir}/configure.tgt
9517 # Fetch the default architecture and default target vector from BFD.
9518 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
9520 # We only want the first architecture, so strip off the others if
9521 # there is more than one.
9522 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
9524 if test "x$targ_archs" != x
; then
9526 cat >>confdefs.h
<<_ACEOF
9527 #define DEFAULT_BFD_ARCH $targ_archs
9531 if test "x$targ_defvec" != x
; then
9533 cat >>confdefs.h
<<_ACEOF
9534 #define DEFAULT_BFD_VEC $targ_defvec
9539 # The CLI cannot be disabled yet, but may be in the future.
9542 # Check whether --enable-gdbcli was given.
9543 if test "${enable_gdbcli+set}" = set; then :
9544 enableval
=$enable_gdbcli; case $enableval in
9548 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
9550 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
9556 if test x
"$enable_gdbcli" = xyes
; then
9557 if test -d $srcdir/cli
; then
9558 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
9559 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
9560 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
9561 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
9566 # Check whether --enable-gdbmi was given.
9567 if test "${enable_gdbmi+set}" = set; then :
9568 enableval
=$enable_gdbmi; case $enableval in
9572 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
9578 if test x
"$enable_gdbmi" = xyes
; then
9579 if test -d $srcdir/mi
; then
9580 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
9581 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
9582 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
9583 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
9588 # Check whether --enable-tui was given.
9589 if test "${enable_tui+set}" = set; then :
9590 enableval
=$enable_tui; case $enableval in
9594 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
9602 # Check whether --enable-gdbtk was given.
9603 if test "${enable_gdbtk+set}" = set; then :
9604 enableval
=$enable_gdbtk; case $enableval in
9608 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
9611 if test -d $srcdir/gdbtk
; then
9618 # We unconditionally disable gdbtk tests on selected platforms.
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
9622 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
9626 # Libunwind support for ia64.
9629 # Check whether --with-libunwind-ia64 was given.
9630 if test "${with_libunwind_ia64+set}" = set; then :
9631 withval
=$with_libunwind_ia64;
9633 with_libunwind_ia64
=auto
9637 # Backward compatibility option.
9638 if test "${with_libunwind+set}" = set; then
9639 if test x
"$with_libunwind_ia64" != xauto
; then
9640 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
9643 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
9644 with_libunwind_ia64
="$with_libunwind"
9647 case "$with_libunwind_ia64" in
9651 for ac_header
in libunwind-ia64.h
9653 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
9654 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
9655 cat >>confdefs.h
<<_ACEOF
9656 #define HAVE_LIBUNWIND_IA64_H 1
9663 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
9666 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
9670 if test x
"$with_libunwind_ia64" = xyes
; then
9671 for ac_header
in libunwind-ia64.h
9673 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
9674 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
9675 cat >>confdefs.h
<<_ACEOF
9676 #define HAVE_LIBUNWIND_IA64_H 1
9683 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
9684 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
9686 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
9687 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
9688 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
9693 # Check whether --with-curses was given.
9694 if test "${with_curses+set}" = set; then :
9695 withval
=$with_curses; opt_curses
=$withval
9700 if test "$opt_curses" = "yes"; then
9704 # Profiling support.
9705 # Check whether --enable-profiling was given.
9706 if test "${enable_profiling+set}" = set; then :
9707 enableval
=$enable_profiling; case $enableval in
9711 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
9718 for ac_func
in monstartup _mcleanup
9720 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9721 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9722 eval as_val
=\$
$as_ac_var
9723 if test "x$as_val" = x
""yes; then :
9724 cat >>confdefs.h
<<_ACEOF
9725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
9732 $as_echo_n "checking for _etext... " >&6; }
9733 if test "${ac_cv_var__etext+set}" = set; then :
9734 $as_echo_n "(cached) " >&6
9736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9749 if ac_fn_c_try_link
"$LINENO"; then :
9750 ac_cv_var__etext
=yes
9754 rm -f core conftest.err conftest.
$ac_objext \
9755 conftest
$ac_exeext conftest.
$ac_ext
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
9758 $as_echo "$ac_cv_var__etext" >&6; }
9759 if test $ac_cv_var__etext = yes; then
9761 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
9765 $as_echo_n "checking for etext... " >&6; }
9766 if test "${ac_cv_var_etext+set}" = set; then :
9767 $as_echo_n "(cached) " >&6
9769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9782 if ac_fn_c_try_link
"$LINENO"; then :
9787 rm -f core conftest.err conftest.
$ac_objext \
9788 conftest
$ac_exeext conftest.
$ac_ext
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
9791 $as_echo "$ac_cv_var_etext" >&6; }
9792 if test $ac_cv_var_etext = yes; then
9794 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
9797 if test "$enable_profiling" = yes ; then
9798 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
9799 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
9802 OLD_CFLAGS
="$CFLAGS"
9803 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
9806 $as_echo_n "checking whether $CC supports -pg... " >&6; }
9807 if test "${ac_cv_cc_supports_pg+set}" = set; then :
9808 $as_echo_n "(cached) " >&6
9810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9821 if ac_fn_c_try_compile
"$LINENO"; then :
9822 ac_cv_cc_supports_pg
=yes
9824 ac_cv_cc_supports_pg
=no
9826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
9829 $as_echo "$ac_cv_cc_supports_pg" >&6; }
9831 if test $ac_cv_cc_supports_pg = no
; then
9832 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
9835 CFLAGS
="$OLD_CFLAGS"
9840 # Check whether --with-pkgversion was given.
9841 if test "${with_pkgversion+set}" = set; then :
9842 withval
=$with_pkgversion; case "$withval" in
9843 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
9845 *) PKGVERSION
="($withval) " ;;
9856 # Check whether --with-bugurl was given.
9857 if test "${with_bugurl+set}" = set; then :
9858 withval
=$with_bugurl; case "$withval" in
9859 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
9862 *) BUGURL
="$withval"
9866 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
9876 REPORT_BUGS_TO
="<$BUGURL>"
9877 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
9884 cat >>confdefs.h
<<_ACEOF
9885 #define PKGVERSION "$PKGVERSION"
9889 cat >>confdefs.h
<<_ACEOF
9890 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
9894 # --------------------- #
9895 # Checks for programs. #
9896 # --------------------- #
9898 for ac_prog
in gawk mawk nawk
awk
9900 # Extract the first word of "$ac_prog", so it can be a program name with args.
9901 set dummy
$ac_prog; ac_word
=$2
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903 $as_echo_n "checking for $ac_word... " >&6; }
9904 if test "${ac_cv_prog_AWK+set}" = set; then :
9905 $as_echo_n "(cached) " >&6
9907 if test -n "$AWK"; then
9908 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
9910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9914 test -z "$as_dir" && as_dir
=.
9915 for ac_exec_ext
in '' $ac_executable_extensions; do
9916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9917 ac_cv_prog_AWK
="$ac_prog"
9918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9928 if test -n "$AWK"; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9930 $as_echo "$AWK" >&6; }
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; }
9937 test -n "$AWK" && break
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9942 $as_echo_n "checking whether ln -s works... " >&6; }
9944 if test "$LN_S" = "ln -s"; then
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9946 $as_echo "yes" >&6; }
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9949 $as_echo "no, using $LN_S" >&6; }
9952 if test -n "$ac_tool_prefix"; then
9953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9954 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956 $as_echo_n "checking for $ac_word... " >&6; }
9957 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9958 $as_echo_n "(cached) " >&6
9960 if test -n "$RANLIB"; then
9961 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
9963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9967 test -z "$as_dir" && as_dir
=.
9968 for ac_exec_ext
in '' $ac_executable_extensions; do
9969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9970 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980 RANLIB
=$ac_cv_prog_RANLIB
9981 if test -n "$RANLIB"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9983 $as_echo "$RANLIB" >&6; }
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9991 if test -z "$ac_cv_prog_RANLIB"; then
9992 ac_ct_RANLIB
=$RANLIB
9993 # Extract the first word of "ranlib", so it can be a program name with args.
9994 set dummy ranlib
; ac_word
=$2
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996 $as_echo_n "checking for $ac_word... " >&6; }
9997 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9998 $as_echo_n "(cached) " >&6
10000 if test -n "$ac_ct_RANLIB"; then
10001 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
10003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10004 for as_dir
in $PATH
10007 test -z "$as_dir" && as_dir
=.
10008 for ac_exec_ext
in '' $ac_executable_extensions; do
10009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10010 ac_cv_prog_ac_ct_RANLIB
="ranlib"
10011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10020 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
10021 if test -n "$ac_ct_RANLIB"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10023 $as_echo "$ac_ct_RANLIB" >&6; }
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026 $as_echo "no" >&6; }
10029 if test "x$ac_ct_RANLIB" = x
; then
10032 case $cross_compiling:$ac_tool_warned in
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10036 ac_tool_warned
=yes ;;
10038 RANLIB
=$ac_ct_RANLIB
10041 RANLIB
="$ac_cv_prog_RANLIB"
10044 for ac_prog
in 'bison -y' byacc
10046 # Extract the first word of "$ac_prog", so it can be a program name with args.
10047 set dummy
$ac_prog; ac_word
=$2
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10049 $as_echo_n "checking for $ac_word... " >&6; }
10050 if test "${ac_cv_prog_YACC+set}" = set; then :
10051 $as_echo_n "(cached) " >&6
10053 if test -n "$YACC"; then
10054 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
10056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10057 for as_dir
in $PATH
10060 test -z "$as_dir" && as_dir
=.
10061 for ac_exec_ext
in '' $ac_executable_extensions; do
10062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10063 ac_cv_prog_YACC
="$ac_prog"
10064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 YACC
=$ac_cv_prog_YACC
10074 if test -n "$YACC"; then
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10076 $as_echo "$YACC" >&6; }
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079 $as_echo "no" >&6; }
10083 test -n "$YACC" && break
10085 test -n "$YACC" || YACC
="yacc"
10088 if test -n "$ac_tool_prefix"; then
10089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10090 set dummy
${ac_tool_prefix}ar; ac_word
=$2
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10092 $as_echo_n "checking for $ac_word... " >&6; }
10093 if test "${ac_cv_prog_AR+set}" = set; then :
10094 $as_echo_n "(cached) " >&6
10096 if test -n "$AR"; then
10097 ac_cv_prog_AR
="$AR" # Let the user override the test.
10099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10100 for as_dir
in $PATH
10103 test -z "$as_dir" && as_dir
=.
10104 for ac_exec_ext
in '' $ac_executable_extensions; do
10105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10106 ac_cv_prog_AR
="${ac_tool_prefix}ar"
10107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 if test -n "$AR"; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10119 $as_echo "$AR" >&6; }
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122 $as_echo "no" >&6; }
10127 if test -z "$ac_cv_prog_AR"; then
10129 # Extract the first word of "ar", so it can be a program name with args.
10130 set dummy
ar; ac_word
=$2
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10132 $as_echo_n "checking for $ac_word... " >&6; }
10133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10134 $as_echo_n "(cached) " >&6
10136 if test -n "$ac_ct_AR"; then
10137 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
10139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10140 for as_dir
in $PATH
10143 test -z "$as_dir" && as_dir
=.
10144 for ac_exec_ext
in '' $ac_executable_extensions; do
10145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10146 ac_cv_prog_ac_ct_AR
="ar"
10147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
10157 if test -n "$ac_ct_AR"; then
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10159 $as_echo "$ac_ct_AR" >&6; }
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 $as_echo "no" >&6; }
10165 if test "x$ac_ct_AR" = x
; then
10168 case $cross_compiling:$ac_tool_warned in
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10172 ac_tool_warned
=yes ;;
10177 AR
="$ac_cv_prog_AR"
10180 if test -n "$ac_tool_prefix"; then
10181 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10182 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184 $as_echo_n "checking for $ac_word... " >&6; }
10185 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
10186 $as_echo_n "(cached) " >&6
10188 if test -n "$DLLTOOL"; then
10189 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
10191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10192 for as_dir
in $PATH
10195 test -z "$as_dir" && as_dir
=.
10196 for ac_exec_ext
in '' $ac_executable_extensions; do
10197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10198 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
10199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 DLLTOOL
=$ac_cv_prog_DLLTOOL
10209 if test -n "$DLLTOOL"; then
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10211 $as_echo "$DLLTOOL" >&6; }
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10214 $as_echo "no" >&6; }
10219 if test -z "$ac_cv_prog_DLLTOOL"; then
10220 ac_ct_DLLTOOL
=$DLLTOOL
10221 # Extract the first word of "dlltool", so it can be a program name with args.
10222 set dummy dlltool
; ac_word
=$2
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10224 $as_echo_n "checking for $ac_word... " >&6; }
10225 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
10226 $as_echo_n "(cached) " >&6
10228 if test -n "$ac_ct_DLLTOOL"; then
10229 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
10231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10232 for as_dir
in $PATH
10235 test -z "$as_dir" && as_dir
=.
10236 for ac_exec_ext
in '' $ac_executable_extensions; do
10237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10238 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
10239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10248 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
10249 if test -n "$ac_ct_DLLTOOL"; then
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10251 $as_echo "$ac_ct_DLLTOOL" >&6; }
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254 $as_echo "no" >&6; }
10257 if test "x$ac_ct_DLLTOOL" = x
; then
10260 case $cross_compiling:$ac_tool_warned in
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10264 ac_tool_warned
=yes ;;
10266 DLLTOOL
=$ac_ct_DLLTOOL
10269 DLLTOOL
="$ac_cv_prog_DLLTOOL"
10272 if test -n "$ac_tool_prefix"; then
10273 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10274 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10276 $as_echo_n "checking for $ac_word... " >&6; }
10277 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10278 $as_echo_n "(cached) " >&6
10280 if test -n "$WINDRES"; then
10281 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
10283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10284 for as_dir
in $PATH
10287 test -z "$as_dir" && as_dir
=.
10288 for ac_exec_ext
in '' $ac_executable_extensions; do
10289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10290 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
10291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10300 WINDRES
=$ac_cv_prog_WINDRES
10301 if test -n "$WINDRES"; then
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10303 $as_echo "$WINDRES" >&6; }
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306 $as_echo "no" >&6; }
10311 if test -z "$ac_cv_prog_WINDRES"; then
10312 ac_ct_WINDRES
=$WINDRES
10313 # Extract the first word of "windres", so it can be a program name with args.
10314 set dummy windres
; ac_word
=$2
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10316 $as_echo_n "checking for $ac_word... " >&6; }
10317 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
10320 if test -n "$ac_ct_WINDRES"; then
10321 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
10323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10324 for as_dir
in $PATH
10327 test -z "$as_dir" && as_dir
=.
10328 for ac_exec_ext
in '' $ac_executable_extensions; do
10329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10330 ac_cv_prog_ac_ct_WINDRES
="windres"
10331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10340 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
10341 if test -n "$ac_ct_WINDRES"; then
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10343 $as_echo "$ac_ct_WINDRES" >&6; }
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346 $as_echo "no" >&6; }
10349 if test "x$ac_ct_WINDRES" = x
; then
10352 case $cross_compiling:$ac_tool_warned in
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10356 ac_tool_warned
=yes ;;
10358 WINDRES
=$ac_ct_WINDRES
10361 WINDRES
="$ac_cv_prog_WINDRES"
10365 # Needed for GNU/Hurd.
10366 if test -n "$ac_tool_prefix"; then
10367 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
10368 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10370 $as_echo_n "checking for $ac_word... " >&6; }
10371 if test "${ac_cv_prog_MIG+set}" = set; then :
10372 $as_echo_n "(cached) " >&6
10374 if test -n "$MIG"; then
10375 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
10377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10378 for as_dir
in $PATH
10381 test -z "$as_dir" && as_dir
=.
10382 for ac_exec_ext
in '' $ac_executable_extensions; do
10383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10384 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
10385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394 MIG
=$ac_cv_prog_MIG
10395 if test -n "$MIG"; then
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
10397 $as_echo "$MIG" >&6; }
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400 $as_echo "no" >&6; }
10405 if test -z "$ac_cv_prog_MIG"; then
10407 # Extract the first word of "mig", so it can be a program name with args.
10408 set dummy mig
; ac_word
=$2
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10410 $as_echo_n "checking for $ac_word... " >&6; }
10411 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
10412 $as_echo_n "(cached) " >&6
10414 if test -n "$ac_ct_MIG"; then
10415 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
10417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10418 for as_dir
in $PATH
10421 test -z "$as_dir" && as_dir
=.
10422 for ac_exec_ext
in '' $ac_executable_extensions; do
10423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10424 ac_cv_prog_ac_ct_MIG
="mig"
10425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10434 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
10435 if test -n "$ac_ct_MIG"; then
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
10437 $as_echo "$ac_ct_MIG" >&6; }
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440 $as_echo "no" >&6; }
10443 if test "x$ac_ct_MIG" = x
; then
10446 case $cross_compiling:$ac_tool_warned in
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10450 ac_tool_warned
=yes ;;
10455 MIG
="$ac_cv_prog_MIG"
10459 # ---------------------- #
10460 # Checks for libraries. #
10461 # ---------------------- #
10463 # We might need to link with -lm; most simulators need it.
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
10465 $as_echo_n "checking for main in -lm... " >&6; }
10466 if test "${ac_cv_lib_m_main+set}" = set; then :
10467 $as_echo_n "(cached) " >&6
10469 ac_check_lib_save_LIBS
=$LIBS
10471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10483 if ac_fn_c_try_link
"$LINENO"; then :
10484 ac_cv_lib_m_main
=yes
10486 ac_cv_lib_m_main
=no
10488 rm -f core conftest.err conftest.
$ac_objext \
10489 conftest
$ac_exeext conftest.
$ac_ext
10490 LIBS
=$ac_check_lib_save_LIBS
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
10493 $as_echo "$ac_cv_lib_m_main" >&6; }
10494 if test "x$ac_cv_lib_m_main" = x
""yes; then :
10495 cat >>confdefs.h
<<_ACEOF
10496 #define HAVE_LIBM 1
10504 # We need to link with -lw to get `wctype' on Solaris before Solaris
10505 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
10506 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
10507 # is known to have this problem). Therefore we avoid libw if we can.
10508 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
10509 if test "x$ac_cv_func_wctype" = x
""yes; then :
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
10513 $as_echo_n "checking for wctype in -lw... " >&6; }
10514 if test "${ac_cv_lib_w_wctype+set}" = set; then :
10515 $as_echo_n "(cached) " >&6
10517 ac_check_lib_save_LIBS
=$LIBS
10519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10522 /* Override any GCC internal prototype to avoid an error.
10523 Use char because int might match the return type of a GCC
10524 builtin and then its argument prototype would still apply. */
10537 if ac_fn_c_try_link
"$LINENO"; then :
10538 ac_cv_lib_w_wctype
=yes
10540 ac_cv_lib_w_wctype
=no
10542 rm -f core conftest.err conftest.
$ac_objext \
10543 conftest
$ac_exeext conftest.
$ac_ext
10544 LIBS
=$ac_check_lib_save_LIBS
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
10547 $as_echo "$ac_cv_lib_w_wctype" >&6; }
10548 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
10549 cat >>confdefs.h
<<_ACEOF
10550 #define HAVE_LIBW 1
10560 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10562 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10563 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10564 $as_echo_n "(cached) " >&6
10566 ac_func_search_save_LIBS
=$LIBS
10567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h. */
10570 /* Override any GCC internal prototype to avoid an error.
10571 Use char because int might match the return type of a GCC
10572 builtin and then its argument prototype would still apply. */
10576 char gethostbyname ();
10580 return gethostbyname ();
10585 for ac_lib
in '' nsl
; do
10586 if test -z "$ac_lib"; then
10587 ac_res
="none required"
10590 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10592 if ac_fn_c_try_link
"$LINENO"; then :
10593 ac_cv_search_gethostbyname
=$ac_res
10595 rm -f core conftest.err conftest.
$ac_objext \
10597 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10601 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10604 ac_cv_search_gethostbyname
=no
10606 rm conftest.
$ac_ext
10607 LIBS
=$ac_func_search_save_LIBS
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10610 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10611 ac_res
=$ac_cv_search_gethostbyname
10612 if test "$ac_res" != no
; then :
10613 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10618 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
10620 $as_echo_n "checking for library containing socketpair... " >&6; }
10621 if test "${ac_cv_search_socketpair+set}" = set; then :
10622 $as_echo_n "(cached) " >&6
10624 ac_func_search_save_LIBS
=$LIBS
10625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h. */
10628 /* Override any GCC internal prototype to avoid an error.
10629 Use char because int might match the return type of a GCC
10630 builtin and then its argument prototype would still apply. */
10634 char socketpair ();
10638 return socketpair ();
10643 for ac_lib
in '' socket
; do
10644 if test -z "$ac_lib"; then
10645 ac_res
="none required"
10648 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10650 if ac_fn_c_try_link
"$LINENO"; then :
10651 ac_cv_search_socketpair
=$ac_res
10653 rm -f core conftest.err conftest.
$ac_objext \
10655 if test "${ac_cv_search_socketpair+set}" = set; then :
10659 if test "${ac_cv_search_socketpair+set}" = set; then :
10662 ac_cv_search_socketpair
=no
10664 rm conftest.
$ac_ext
10665 LIBS
=$ac_func_search_save_LIBS
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
10668 $as_echo "$ac_cv_search_socketpair" >&6; }
10669 ac_res
=$ac_cv_search_socketpair
10670 if test "$ac_res" != no
; then :
10671 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10676 # Link in zlib if we can. This allows us to read compressed debug sections.
10678 # See if the user specified whether he wants zlib support or not.
10680 # Check whether --with-zlib was given.
10681 if test "${with_zlib+set}" = set; then :
10682 withval
=$with_zlib;
10688 if test "$with_zlib" != "no"; then
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
10690 $as_echo_n "checking for library containing zlibVersion... " >&6; }
10691 if test "${ac_cv_search_zlibVersion+set}" = set; then :
10692 $as_echo_n "(cached) " >&6
10694 ac_func_search_save_LIBS
=$LIBS
10695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10698 /* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
10704 char zlibVersion ();
10708 return zlibVersion ();
10713 for ac_lib
in '' z
; do
10714 if test -z "$ac_lib"; then
10715 ac_res
="none required"
10718 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10720 if ac_fn_c_try_link
"$LINENO"; then :
10721 ac_cv_search_zlibVersion
=$ac_res
10723 rm -f core conftest.err conftest.
$ac_objext \
10725 if test "${ac_cv_search_zlibVersion+set}" = set; then :
10729 if test "${ac_cv_search_zlibVersion+set}" = set; then :
10732 ac_cv_search_zlibVersion
=no
10734 rm conftest.
$ac_ext
10735 LIBS
=$ac_func_search_save_LIBS
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
10738 $as_echo "$ac_cv_search_zlibVersion" >&6; }
10739 ac_res
=$ac_cv_search_zlibVersion
10740 if test "$ac_res" != no
; then :
10741 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10742 for ac_header
in zlib.h
10744 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
10745 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
10746 cat >>confdefs.h
<<_ACEOF
10747 #define HAVE_ZLIB_H 1
10756 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
10757 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
10762 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
10764 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
10765 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
10766 $as_echo_n "(cached) " >&6
10768 ac_func_search_save_LIBS
=$LIBS
10769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10772 /* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10778 char dlgetmodinfo ();
10782 return dlgetmodinfo ();
10787 for ac_lib
in '' dl xpdl
; do
10788 if test -z "$ac_lib"; then
10789 ac_res
="none required"
10792 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10794 if ac_fn_c_try_link
"$LINENO"; then :
10795 ac_cv_search_dlgetmodinfo
=$ac_res
10797 rm -f core conftest.err conftest.
$ac_objext \
10799 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
10803 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
10806 ac_cv_search_dlgetmodinfo
=no
10808 rm conftest.
$ac_ext
10809 LIBS
=$ac_func_search_save_LIBS
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
10812 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
10813 ac_res
=$ac_cv_search_dlgetmodinfo
10814 if test "$ac_res" != no
; then :
10815 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10823 # Check whether --with-libiconv-prefix was given.
10824 if test "${with_libiconv_prefix+set}" = set; then :
10825 withval
=$with_libiconv_prefix;
10826 for dir
in `echo "$withval" | tr : ' '`; do
10827 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
10828 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
10834 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
10835 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10838 $as_echo_n "checking for iconv... " >&6; }
10839 if test "${am_cv_func_iconv+set}" = set; then :
10840 $as_echo_n "(cached) " >&6
10843 am_cv_func_iconv
="no, consider installing GNU libiconv"
10845 am_cv_use_build_libiconv
=no
10846 am_cv_build_libiconv_path
=
10848 # If libiconv is part of the build tree, then try using it over
10849 # any system iconv.
10850 if test -d ..
/libiconv
; then
10851 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
10852 am_save_LIBS
="$LIBS"
10853 am_save_CPPFLAGS
="$CPPFLAGS"
10854 LIBS
="$LIBS $lib_dir/libiconv.a"
10855 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858 #include <stdlib.h>
10863 iconv_t cd = iconv_open("","");
10864 iconv(cd,NULL,NULL,NULL,NULL);
10870 if ac_fn_c_try_link
"$LINENO"; then :
10871 am_cv_use_build_libiconv
=yes
10872 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
10873 am_cv_lib_iconv
=yes
10874 am_cv_func_iconv
=yes
10876 rm -f core conftest.err conftest.
$ac_objext \
10877 conftest
$ac_exeext conftest.
$ac_ext
10878 LIBS
="$am_save_LIBS"
10879 CPPFLAGS
="$am_save_CPPFLAGS"
10880 if test "$am_cv_use_build_libiconv" = "yes"; then
10886 # Next, try to find iconv in libc.
10887 if test "$am_cv_func_iconv" != yes; then
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_func_iconv
=yes
10905 rm -f core conftest.err conftest.
$ac_objext \
10906 conftest
$ac_exeext conftest.
$ac_ext
10909 # If iconv was not in libc, try -liconv. In this case, arrange to
10910 # look in the libiconv prefix, if it was specified by the user.
10911 if test "$am_cv_func_iconv" != yes; then
10912 am_save_CPPFLAGS
="$CPPFLAGS"
10913 am_save_LIBS
="$LIBS"
10914 if test -n "$LIBICONV_INCLUDE"; then
10915 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
10916 LIBS
="$LIBS $LIBICONV_LIBDIR"
10918 LIBS
="$LIBS -liconv"
10919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10920 /* end confdefs.h. */
10921 #include <stdlib.h>
10926 iconv_t cd = iconv_open("","");
10927 iconv(cd,NULL,NULL,NULL,NULL);
10933 if ac_fn_c_try_link
"$LINENO"; then :
10934 am_cv_lib_iconv
=yes
10935 am_cv_func_iconv
=yes
10937 rm -f core conftest.err conftest.
$ac_objext \
10938 conftest
$ac_exeext conftest.
$ac_ext
10939 LIBS
="$am_save_LIBS"
10940 CPPFLAGS
="$am_save_CPPFLAGS"
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10945 $as_echo "$am_cv_func_iconv" >&6; }
10947 # Set the various flags based on the cache variables. We can't rely
10948 # on the flags to remain set from the above code, due to caching.
10950 if test "$am_cv_lib_iconv" = yes; then
10956 if test "$am_cv_use_build_libiconv" = yes; then
10957 LIBICONV
="$am_cv_build_libiconv_path"
10959 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
10961 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
10962 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
10964 if test "$am_cv_func_iconv" = yes; then
10966 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10969 $as_echo_n "checking for iconv declaration... " >&6; }
10970 if test "${am_cv_proto_iconv+set}" = set; then :
10971 $as_echo_n "(cached) " >&6
10974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10977 #include <stdlib.h>
10983 #if defined(__STDC__) || defined(__cplusplus)
10984 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10997 if ac_fn_c_try_compile
"$LINENO"; then :
10998 am_cv_proto_iconv_arg1
=""
11000 am_cv_proto_iconv_arg1
="const"
11002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11003 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);"
11006 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11008 }$am_cv_proto_iconv" >&5
11010 }$am_cv_proto_iconv" >&6; }
11012 cat >>confdefs.h
<<_ACEOF
11013 #define ICONV_CONST $am_cv_proto_iconv_arg1
11019 # GDB may fork/exec the iconv program to get the list of supported character
11020 # sets. Allow the user to specify where to find it.
11021 # There are several factors affecting the choice of option name:
11022 # - There is already --with-libiconv-prefix but we can't use it, it specifies
11023 # the build-time location of libiconv files.
11024 # - The program we need to find is iconv, which comes with glibc. The user
11025 # doesn't necessarily have libiconv installed. Therefore naming this
11026 # --with-libiconv-foo feels wrong.
11027 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
11028 # defined to work on directories not files (though it really doesn't know
11030 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
11031 # with --with-libiconv-prefix.
11032 # Putting these together is why the option name is --with-iconv-bin.
11035 # Check whether --with-iconv-bin was given.
11036 if test "${with_iconv_bin+set}" = set; then :
11037 withval
=$with_iconv_bin; iconv_bin
="${withval}"
11039 cat >>confdefs.h
<<_ACEOF
11040 #define ICONV_BIN "${iconv_bin}"
11044 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11045 if test "x$prefix" = xNONE
; then
11046 test_prefix
=/usr
/local
11048 test_prefix
=$prefix
11051 test_prefix
=$exec_prefix
11054 case ${iconv_bin} in
11055 "${test_prefix}"|
"${test_prefix}/"*|\
11056 '${exec_prefix}'|
'${exec_prefix}/'*)
11061 cat >>confdefs.h
<<_ACEOF
11062 #define ICONV_BIN_RELOCATABLE $value
11070 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
11071 # There is a very specific comment in /usr/include/curses.h explaining that
11072 # termcap routines built into libcurses must not be used.
11074 # The symptoms we observed so far is GDB unexpectedly changing
11075 # the terminal settings when tgetent is called - this is particularly
11076 # visible as the output is missing carriage returns, and so rapidly
11077 # becomes very hard to read.
11079 # The readline configure script has already decided that libtermcap
11080 # was enough for its purposes, and so decided to build readline using
11081 # libtermcap. Since the TUI mode requires curses, building GDB with
11082 # TUI enabled results in both libraries to be used at the same time,
11083 # which is not allowed. This basically means that GDB with TUI is
11084 # broken on alpha-osf.
11088 if test x
"$enable_tui" = xyes
; then
11089 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
11091 if test x
"$enable_tui" = xauto
; then
11097 # For the TUI, we need enhanced curses functionality.
11098 if test x
"$enable_tui" != xno
; then
11103 if test x
"$prefer_curses" = xyes
; then
11104 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
11105 # curses library because the latter might not provide all the
11106 # functionality we need. However, this leads to problems on systems
11107 # where the linker searches /usr/local/lib, but the compiler doesn't
11108 # search /usr/local/include, if ncurses is installed in /usr/local. A
11109 # default installation of ncurses on alpha*-dec-osf* will lead to such
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
11112 $as_echo_n "checking for library containing waddstr... " >&6; }
11113 if test "${ac_cv_search_waddstr+set}" = set; then :
11114 $as_echo_n "(cached) " >&6
11116 ac_func_search_save_LIBS
=$LIBS
11117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11120 /* Override any GCC internal prototype to avoid an error.
11121 Use char because int might match the return type of a GCC
11122 builtin and then its argument prototype would still apply. */
11135 for ac_lib
in '' ncurses cursesX curses
; do
11136 if test -z "$ac_lib"; then
11137 ac_res
="none required"
11140 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11142 if ac_fn_c_try_link
"$LINENO"; then :
11143 ac_cv_search_waddstr
=$ac_res
11145 rm -f core conftest.err conftest.
$ac_objext \
11147 if test "${ac_cv_search_waddstr+set}" = set; then :
11151 if test "${ac_cv_search_waddstr+set}" = set; then :
11154 ac_cv_search_waddstr
=no
11156 rm conftest.
$ac_ext
11157 LIBS
=$ac_func_search_save_LIBS
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
11160 $as_echo "$ac_cv_search_waddstr" >&6; }
11161 ac_res
=$ac_cv_search_waddstr
11162 if test "$ac_res" != no
; then :
11163 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11168 if test "$ac_cv_search_waddstr" != no
; then
11173 # Check whether we should enable the TUI, but only do so if we really
11175 if test x
"$enable_tui" != xno
; then
11176 if test -d $srcdir/tui
; then
11177 if test "$curses_found" != no
; then
11178 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
11179 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
11180 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
11181 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
11183 if test x
"$enable_tui" = xyes
; then
11184 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
11187 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
11193 # Since GDB uses Readline, we need termcap functionality. In many
11194 # cases this will be provided by the curses library, but some systems
11195 # have a seperate termcap library, or no curses library at all.
11199 if test -d $srcdir/libtermcap
; then
11200 LIBS
="../libtermcap/libtermcap.a $LIBS"
11201 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
11204 ac_cv_search_tgetent
="none required"
11207 ac_cv_search_tgetent
="none required"
11208 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
11212 # These are the libraries checked by Readline.
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
11214 $as_echo_n "checking for library containing tgetent... " >&6; }
11215 if test "${ac_cv_search_tgetent+set}" = set; then :
11216 $as_echo_n "(cached) " >&6
11218 ac_func_search_save_LIBS
=$LIBS
11219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11222 /* Override any GCC internal prototype to avoid an error.
11223 Use char because int might match the return type of a GCC
11224 builtin and then its argument prototype would still apply. */
11237 for ac_lib
in '' termcap tinfo curses ncurses
; do
11238 if test -z "$ac_lib"; then
11239 ac_res
="none required"
11242 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11244 if ac_fn_c_try_link
"$LINENO"; then :
11245 ac_cv_search_tgetent
=$ac_res
11247 rm -f core conftest.err conftest.
$ac_objext \
11249 if test "${ac_cv_search_tgetent+set}" = set; then :
11253 if test "${ac_cv_search_tgetent+set}" = set; then :
11256 ac_cv_search_tgetent
=no
11258 rm conftest.
$ac_ext
11259 LIBS
=$ac_func_search_save_LIBS
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11262 $as_echo "$ac_cv_search_tgetent" >&6; }
11263 ac_res
=$ac_cv_search_tgetent
11264 if test "$ac_res" != no
; then :
11265 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11270 if test "$ac_cv_search_tgetent" = no
; then
11271 as_fn_error
"no termcap library found" "$LINENO" 5
11275 # Check whether --with-system-readline was given.
11276 if test "${with_system_readline+set}" = set; then :
11277 withval
=$with_system_readline;
11281 if test "$with_system_readline" = yes; then
11282 READLINE
=-lreadline
11285 READLINE_TEXI_INCFLAG
=
11287 READLINE
='$(READLINE_DIR)/libreadline.a'
11288 READLINE_DEPS
='$(READLINE)'
11289 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
11290 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
11297 # Generate jit-reader.h
11299 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
11302 # The cast to long int works around a bug in the HP C Compiler
11303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11305 # This bug is HP SR number 8606223364.
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
11307 $as_echo_n "checking size of unsigned long long... " >&6; }
11308 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
11309 $as_echo_n "(cached) " >&6
11311 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
11314 if test "$ac_cv_type_unsigned_long_long" = yes; then
11315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11317 { as_fn_set_status
77
11318 as_fn_error
"cannot compute sizeof (unsigned long long)
11319 See \`config.log' for more details." "$LINENO" 5; }; }
11321 ac_cv_sizeof_unsigned_long_long
=0
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
11327 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
11331 cat >>confdefs.h
<<_ACEOF
11332 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
11336 # The cast to long int works around a bug in the HP C Compiler
11337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11339 # This bug is HP SR number 8606223364.
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
11341 $as_echo_n "checking size of unsigned long... " >&6; }
11342 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
11343 $as_echo_n "(cached) " >&6
11345 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
11348 if test "$ac_cv_type_unsigned_long" = yes; then
11349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11351 { as_fn_set_status
77
11352 as_fn_error
"cannot compute sizeof (unsigned long)
11353 See \`config.log' for more details." "$LINENO" 5; }; }
11355 ac_cv_sizeof_unsigned_long
=0
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
11361 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
11365 cat >>confdefs.h
<<_ACEOF
11366 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
11370 # The cast to long int works around a bug in the HP C Compiler
11371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11373 # This bug is HP SR number 8606223364.
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
11375 $as_echo_n "checking size of unsigned __int128... " >&6; }
11376 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
11377 $as_echo_n "(cached) " >&6
11379 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
11382 if test "$ac_cv_type_unsigned___int128" = yes; then
11383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11385 { as_fn_set_status
77
11386 as_fn_error
"cannot compute sizeof (unsigned __int128)
11387 See \`config.log' for more details." "$LINENO" 5; }; }
11389 ac_cv_sizeof_unsigned___int128
=0
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
11395 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
11399 cat >>confdefs.h
<<_ACEOF
11400 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
11405 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
11406 TARGET_PTR
="unsigned long"
11407 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
11408 TARGET_PTR
="unsigned long long"
11409 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
11410 TARGET_PTR
="unsigned __int128"
11412 TARGET_PTR
="unsigned long"
11416 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11420 $as_echo_n "checking for library containing dlopen... " >&6; }
11421 if test "${ac_cv_search_dlopen+set}" = set; then :
11422 $as_echo_n "(cached) " >&6
11424 ac_func_search_save_LIBS
=$LIBS
11425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11428 /* Override any GCC internal prototype to avoid an error.
11429 Use char because int might match the return type of a GCC
11430 builtin and then its argument prototype would still apply. */
11443 for ac_lib
in '' dl
; do
11444 if test -z "$ac_lib"; then
11445 ac_res
="none required"
11448 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11450 if ac_fn_c_try_link
"$LINENO"; then :
11451 ac_cv_search_dlopen
=$ac_res
11453 rm -f core conftest.err conftest.
$ac_objext \
11455 if test "${ac_cv_search_dlopen+set}" = set; then :
11459 if test "${ac_cv_search_dlopen+set}" = set; then :
11462 ac_cv_search_dlopen
=no
11464 rm conftest.
$ac_ext
11465 LIBS
=$ac_func_search_save_LIBS
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11468 $as_echo "$ac_cv_search_dlopen" >&6; }
11469 ac_res
=$ac_cv_search_dlopen
11470 if test "$ac_res" != no
; then :
11471 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11478 # Check whether --with-jit-reader-dir was given.
11479 if test "${with_jit_reader_dir+set}" = set; then :
11480 withval
=$with_jit_reader_dir;
11481 JIT_READER_DIR
=$withval
11483 JIT_READER_DIR
=${libdir}/gdb
11487 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
11488 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11489 ac_define_dir
=`eval echo $JIT_READER_DIR`
11490 ac_define_dir
=`eval echo $ac_define_dir`
11492 cat >>confdefs.h
<<_ACEOF
11493 #define JIT_READER_DIR "$ac_define_dir"
11499 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11500 if test "x$prefix" = xNONE
; then
11501 test_prefix
=/usr
/local
11503 test_prefix
=$prefix
11506 test_prefix
=$exec_prefix
11509 case ${ac_define_dir} in
11510 "${test_prefix}"|
"${test_prefix}/"*|\
11511 '${exec_prefix}'|
'${exec_prefix}/'*)
11516 cat >>confdefs.h
<<_ACEOF
11517 #define JIT_READER_DIR_RELOCATABLE $value
11524 # Check whether --with-expat was given.
11525 if test "${with_expat+set}" = set; then :
11526 withval
=$with_expat;
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
11532 $as_echo_n "checking whether to use expat... " >&6; }
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
11534 $as_echo "$with_expat" >&6; }
11536 if test "${with_expat}" = no
; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
11538 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
11542 if test "X$prefix" = "XNONE"; then
11543 acl_final_prefix
="$ac_default_prefix"
11545 acl_final_prefix
="$prefix"
11547 if test "X$exec_prefix" = "XNONE"; then
11548 acl_final_exec_prefix
='${prefix}'
11550 acl_final_exec_prefix
="$exec_prefix"
11552 acl_save_prefix
="$prefix"
11553 prefix
="$acl_final_prefix"
11554 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11555 prefix
="$acl_save_prefix"
11558 # Check whether --with-gnu-ld was given.
11559 if test "${with_gnu_ld+set}" = set; then :
11560 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11565 # Prepare PATH_SEPARATOR.
11566 # The user is always right.
11567 if test "${PATH_SEPARATOR+set}" != set; then
11568 echo "#! /bin/sh" >conf$$.sh
11569 echo "exit 0" >>conf$$.sh
11571 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11579 if test "$GCC" = yes; then
11580 # Check if gcc -print-prog-name=ld gives a path.
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11582 $as_echo_n "checking for ld used by GCC... " >&6; }
11585 # gcc leaves a trailing carriage return which upsets mingw
11586 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11588 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11591 # Accept absolute paths.
11592 [\\/]* |
[A-Za-z
]:[\\/]*)
11593 re_direlt
='/[^/][^/]*/\.\./'
11594 # Canonicalize the path of ld
11595 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11596 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11597 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11599 test -z "$LD" && LD
="$ac_prog"
11602 # If it fails, then pretend we aren't using GCC.
11606 # If it is relative, then search for the first ld in PATH.
11607 with_gnu_ld
=unknown
11610 elif test "$with_gnu_ld" = yes; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11612 $as_echo_n "checking for GNU ld... " >&6; }
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11615 $as_echo_n "checking for non-GNU ld... " >&6; }
11617 if test "${acl_cv_path_LD+set}" = set; then :
11618 $as_echo_n "(cached) " >&6
11620 if test -z "$LD"; then
11621 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11622 for ac_dir
in $PATH; do
11623 test -z "$ac_dir" && ac_dir
=.
11624 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11625 acl_cv_path_LD
="$ac_dir/$ac_prog"
11626 # Check to see if the program is GNU ld. I'd rather use --version,
11627 # but apparently some GNU ld's only accept -v.
11628 # Break only if it was the GNU/non-GNU ld that we prefer.
11629 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11630 test "$with_gnu_ld" != no
&& break
11632 test "$with_gnu_ld" != yes && break
11638 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11642 LD
="$acl_cv_path_LD"
11643 if test -n "$LD"; then
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11645 $as_echo "$LD" >&6; }
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648 $as_echo "no" >&6; }
11650 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11652 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11653 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
11654 $as_echo_n "(cached) " >&6
11656 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11657 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11658 acl_cv_prog_gnu_ld
=yes
11660 acl_cv_prog_gnu_ld
=no
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11664 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11665 with_gnu_ld
=$acl_cv_prog_gnu_ld
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11670 $as_echo_n "checking for shared library run path origin... " >&6; }
11671 if test "${acl_cv_rpath+set}" = set; then :
11672 $as_echo_n "(cached) " >&6
11675 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11676 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11678 rm -f .
/conftest.sh
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11683 $as_echo "$acl_cv_rpath" >&6; }
11685 libext
="$acl_cv_libext"
11686 shlibext
="$acl_cv_shlibext"
11687 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11688 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11689 hardcode_direct
="$acl_cv_hardcode_direct"
11690 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11691 # Check whether --enable-rpath was given.
11692 if test "${enable_rpath+set}" = set; then :
11693 enableval
=$enable_rpath; :
11709 acl_save_prefix
="$prefix"
11710 prefix
="$acl_final_prefix"
11711 acl_save_exec_prefix
="$exec_prefix"
11712 exec_prefix
="$acl_final_exec_prefix"
11714 eval additional_includedir
=\"$includedir\"
11715 eval additional_libdir
=\"$libdir\"
11717 exec_prefix
="$acl_save_exec_prefix"
11718 prefix
="$acl_save_prefix"
11721 # Check whether --with-libexpat-prefix was given.
11722 if test "${with_libexpat_prefix+set}" = set; then :
11723 withval
=$with_libexpat_prefix;
11724 if test "X$withval" = "Xno"; then
11727 if test "X$withval" = "X"; then
11729 acl_save_prefix
="$prefix"
11730 prefix
="$acl_final_prefix"
11731 acl_save_exec_prefix
="$exec_prefix"
11732 exec_prefix
="$acl_final_exec_prefix"
11734 eval additional_includedir
=\"$includedir\"
11735 eval additional_libdir
=\"$libdir\"
11737 exec_prefix
="$acl_save_exec_prefix"
11738 prefix
="$acl_save_prefix"
11741 additional_includedir
="$withval/include"
11742 additional_libdir
="$withval/lib"
11753 names_already_handled
=
11754 names_next_round
='expat '
11755 while test -n "$names_next_round"; do
11756 names_this_round
="$names_next_round"
11758 for name
in $names_this_round; do
11760 for n
in $names_already_handled; do
11761 if test "$n" = "$name"; then
11762 already_handled
=yes
11766 if test -z "$already_handled"; then
11767 names_already_handled
="$names_already_handled $name"
11768 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11769 eval value
=\"\
$HAVE_LIB$uppername\"
11770 if test -n "$value"; then
11771 if test "$value" = yes; then
11772 eval value
=\"\
$LIB$uppername\"
11773 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
11774 eval value
=\"\
$LTLIB$uppername\"
11775 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
11784 if test $use_additional = yes; then
11785 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11786 found_dir
="$additional_libdir"
11787 found_so
="$additional_libdir/lib$name.$shlibext"
11788 if test -f "$additional_libdir/lib$name.la"; then
11789 found_la
="$additional_libdir/lib$name.la"
11792 if test -f "$additional_libdir/lib$name.$libext"; then
11793 found_dir
="$additional_libdir"
11794 found_a
="$additional_libdir/lib$name.$libext"
11795 if test -f "$additional_libdir/lib$name.la"; then
11796 found_la
="$additional_libdir/lib$name.la"
11801 if test "X$found_dir" = "X"; then
11802 for x
in $LDFLAGS $LTLIBEXPAT; do
11804 acl_save_prefix
="$prefix"
11805 prefix
="$acl_final_prefix"
11806 acl_save_exec_prefix
="$exec_prefix"
11807 exec_prefix
="$acl_final_exec_prefix"
11809 exec_prefix
="$acl_save_exec_prefix"
11810 prefix
="$acl_save_prefix"
11814 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11815 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11817 found_so
="$dir/lib$name.$shlibext"
11818 if test -f "$dir/lib$name.la"; then
11819 found_la
="$dir/lib$name.la"
11822 if test -f "$dir/lib$name.$libext"; then
11824 found_a
="$dir/lib$name.$libext"
11825 if test -f "$dir/lib$name.la"; then
11826 found_la
="$dir/lib$name.la"
11832 if test "X$found_dir" != "X"; then
11837 if test "X$found_dir" != "X"; then
11838 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
11839 if test "X$found_so" != "X"; then
11840 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11841 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11844 for x
in $ltrpathdirs; do
11845 if test "X$x" = "X$found_dir"; then
11850 if test -z "$haveit"; then
11851 ltrpathdirs
="$ltrpathdirs $found_dir"
11853 if test "$hardcode_direct" = yes; then
11854 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11856 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11857 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11859 for x
in $rpathdirs; do
11860 if test "X$x" = "X$found_dir"; then
11865 if test -z "$haveit"; then
11866 rpathdirs
="$rpathdirs $found_dir"
11870 for x
in $LDFLAGS $LIBEXPAT; do
11872 acl_save_prefix
="$prefix"
11873 prefix
="$acl_final_prefix"
11874 acl_save_exec_prefix
="$exec_prefix"
11875 exec_prefix
="$acl_final_exec_prefix"
11877 exec_prefix
="$acl_save_exec_prefix"
11878 prefix
="$acl_save_prefix"
11880 if test "X$x" = "X-L$found_dir"; then
11885 if test -z "$haveit"; then
11886 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11888 if test "$hardcode_minus_L" != no
; then
11889 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11891 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11897 if test "X$found_a" != "X"; then
11898 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11900 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11903 additional_includedir
=
11904 case "$found_dir" in
11906 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11907 additional_includedir
="$basedir/include"
11910 if test "X$additional_includedir" != "X"; then
11911 if test "X$additional_includedir" != "X/usr/include"; then
11913 if test "X$additional_includedir" = "X/usr/local/include"; then
11914 if test -n "$GCC"; then
11916 linux
*) haveit
=yes;;
11920 if test -z "$haveit"; then
11921 for x
in $CPPFLAGS $INCEXPAT; do
11923 acl_save_prefix
="$prefix"
11924 prefix
="$acl_final_prefix"
11925 acl_save_exec_prefix
="$exec_prefix"
11926 exec_prefix
="$acl_final_exec_prefix"
11928 exec_prefix
="$acl_save_exec_prefix"
11929 prefix
="$acl_save_prefix"
11931 if test "X$x" = "X-I$additional_includedir"; then
11936 if test -z "$haveit"; then
11937 if test -d "$additional_includedir"; then
11938 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11944 if test -n "$found_la"; then
11945 save_libdir
="$libdir"
11946 case "$found_la" in
11947 */* |
*\\*) .
"$found_la" ;;
11948 *) .
"./$found_la" ;;
11950 libdir
="$save_libdir"
11951 for dep
in $dependency_libs; do
11954 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11955 if test "X$additional_libdir" != "X/usr/lib"; then
11957 if test "X$additional_libdir" = "X/usr/local/lib"; then
11958 if test -n "$GCC"; then
11960 linux
*) haveit
=yes;;
11964 if test -z "$haveit"; then
11966 for x
in $LDFLAGS $LIBEXPAT; do
11968 acl_save_prefix
="$prefix"
11969 prefix
="$acl_final_prefix"
11970 acl_save_exec_prefix
="$exec_prefix"
11971 exec_prefix
="$acl_final_exec_prefix"
11973 exec_prefix
="$acl_save_exec_prefix"
11974 prefix
="$acl_save_prefix"
11976 if test "X$x" = "X-L$additional_libdir"; then
11981 if test -z "$haveit"; then
11982 if test -d "$additional_libdir"; then
11983 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11987 for x
in $LDFLAGS $LTLIBEXPAT; do
11989 acl_save_prefix
="$prefix"
11990 prefix
="$acl_final_prefix"
11991 acl_save_exec_prefix
="$exec_prefix"
11992 exec_prefix
="$acl_final_exec_prefix"
11994 exec_prefix
="$acl_save_exec_prefix"
11995 prefix
="$acl_save_prefix"
11997 if test "X$x" = "X-L$additional_libdir"; then
12002 if test -z "$haveit"; then
12003 if test -d "$additional_libdir"; then
12004 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
12011 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
12012 if test "$enable_rpath" != no
; then
12014 for x
in $rpathdirs; do
12015 if test "X$x" = "X$dir"; then
12020 if test -z "$haveit"; then
12021 rpathdirs
="$rpathdirs $dir"
12024 for x
in $ltrpathdirs; do
12025 if test "X$x" = "X$dir"; then
12030 if test -z "$haveit"; then
12031 ltrpathdirs
="$ltrpathdirs $dir"
12036 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12039 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12042 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
12043 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
12049 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
12050 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
12056 if test "X$rpathdirs" != "X"; then
12057 if test -n "$hardcode_libdir_separator"; then
12059 for found_dir
in $rpathdirs; do
12060 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12062 acl_save_libdir
="$libdir"
12064 eval flag
=\"$hardcode_libdir_flag_spec\"
12065 libdir
="$acl_save_libdir"
12066 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
12068 for found_dir
in $rpathdirs; do
12069 acl_save_libdir
="$libdir"
12070 libdir
="$found_dir"
12071 eval flag
=\"$hardcode_libdir_flag_spec\"
12072 libdir
="$acl_save_libdir"
12073 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
12077 if test "X$ltrpathdirs" != "X"; then
12078 for found_dir
in $ltrpathdirs; do
12079 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
12084 ac_save_CPPFLAGS
="$CPPFLAGS"
12086 for element
in $INCEXPAT; do
12088 for x
in $CPPFLAGS; do
12090 acl_save_prefix
="$prefix"
12091 prefix
="$acl_final_prefix"
12092 acl_save_exec_prefix
="$exec_prefix"
12093 exec_prefix
="$acl_final_exec_prefix"
12095 exec_prefix
="$acl_save_exec_prefix"
12096 prefix
="$acl_save_prefix"
12098 if test "X$x" = "X$element"; then
12103 if test -z "$haveit"; then
12104 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
12110 $as_echo_n "checking for libexpat... " >&6; }
12111 if test "${ac_cv_libexpat+set}" = set; then :
12112 $as_echo_n "(cached) " >&6
12115 ac_save_LIBS
="$LIBS"
12116 LIBS
="$LIBS $LIBEXPAT"
12117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12123 XML_Parser p = XML_ParserCreate (0);
12128 if ac_fn_c_try_link
"$LINENO"; then :
12133 rm -f core conftest.err conftest.
$ac_objext \
12134 conftest
$ac_exeext conftest.
$ac_ext
12135 LIBS
="$ac_save_LIBS"
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
12139 $as_echo "$ac_cv_libexpat" >&6; }
12140 if test "$ac_cv_libexpat" = yes; then
12143 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
12146 $as_echo_n "checking how to link with libexpat... " >&6; }
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
12148 $as_echo "$LIBEXPAT" >&6; }
12151 CPPFLAGS
="$ac_save_CPPFLAGS"
12161 if test "$HAVE_LIBEXPAT" != yes; then
12162 if test "$with_expat" = yes; then
12163 as_fn_error
"expat is missing or unusable" "$LINENO" 5
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
12166 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
12170 LIBS
="$LIBS $LIBEXPAT"
12171 for ac_func
in XML_StopParser
12173 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
12174 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
12175 cat >>confdefs.h
<<_ACEOF
12176 #define HAVE_XML_STOPPARSER 1
12191 # Check whether --with-python was given.
12192 if test "${with_python+set}" = set; then :
12193 withval
=$with_python;
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
12199 $as_echo_n "checking whether to use python... " >&6; }
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
12201 $as_echo "$with_python" >&6; }
12203 if test "${with_python}" = no
; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
12205 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
12208 case "${with_python}" in
12210 if test -d ${with_python}; then
12211 # Assume the python binary is ${with_python}/bin/python.
12212 python_prog
="${with_python}/bin/python"
12214 # If python does not exit ${with_python}/bin, then try in
12215 # ${with_python}. On Windows/MinGW, this is where the Python
12217 if test ! -x "${python_prog}"; then
12218 python_prog
="${with_python}/python"
12221 if test ! -x "${python_prog}"; then
12222 # Fall back to gdb 7.0/7.1 behaviour.
12223 python_prog
=missing
12224 python_prefix
=${with_python}
12226 elif test -x "${with_python}"; then
12227 # While we can't run python compiled for $host (unless host == build),
12228 # the user could write a script that provides the needed information,
12229 # so we support that.
12230 python_prog
=${with_python}
12233 as_fn_error
"invalid value for --with-python" "$LINENO" 5
12237 # Disallow --with-python=foo/bar.
12238 as_fn_error
"invalid value for --with-python" "$LINENO" 5
12241 # The user has either specified auto, yes, or the name of the python
12242 # program assumed to be in $PATH.
12244 case "${with_python}" in
12246 if test ${build} = ${host}; then
12247 # Extract the first word of "python", so it can be a program name with args.
12248 set dummy python
; ac_word
=$2
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12250 $as_echo_n "checking for $ac_word... " >&6; }
12251 if test "${ac_cv_path_python_prog_path+set}" = set; then :
12252 $as_echo_n "(cached) " >&6
12254 case $python_prog_path in
12256 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
12259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12260 for as_dir
in $PATH
12263 test -z "$as_dir" && as_dir
=.
12264 for ac_exec_ext
in '' $ac_executable_extensions; do
12265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12266 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
12267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12274 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
12278 python_prog_path
=$ac_cv_path_python_prog_path
12279 if test -n "$python_prog_path"; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
12281 $as_echo "$python_prog_path" >&6; }
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 $as_echo "no" >&6; }
12288 if test "${python_prog_path}" = missing
; then
12289 python_prog
=missing
12291 python_prog
=${python_prog_path}
12294 # Not much we can do except assume the cross-compiler will find the
12296 python_prog
=missing
12300 # While we can't run python compiled for $host (unless host == build),
12301 # the user could write a script that provides the needed information,
12302 # so we support that.
12303 python_prog
="${with_python}"
12304 # Extract the first word of "${python_prog}", so it can be a program name with args.
12305 set dummy
${python_prog}; ac_word
=$2
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307 $as_echo_n "checking for $ac_word... " >&6; }
12308 if test "${ac_cv_path_python_prog_path+set}" = set; then :
12309 $as_echo_n "(cached) " >&6
12311 case $python_prog_path in
12313 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
12316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12317 for as_dir
in $PATH
12320 test -z "$as_dir" && as_dir
=.
12321 for ac_exec_ext
in '' $ac_executable_extensions; do
12322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12323 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
12335 python_prog_path
=$ac_cv_path_python_prog_path
12336 if test -n "$python_prog_path"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
12338 $as_echo "$python_prog_path" >&6; }
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12345 if test "${python_prog_path}" = missing
; then
12346 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
12352 if test "${python_prog}" != missing
; then
12353 # We have a python program to use, but it may be too old.
12354 # Don't flag an error for --with-python=auto (the default).
12355 have_python_config
=yes
12356 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
12357 if test $?
!= 0; then
12358 have_python_config
=failed
12359 if test "${with_python}" != auto
; then
12360 as_fn_error
"failure running python-config --includes" "$LINENO" 5
12363 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
12364 if test $?
!= 0; then
12365 have_python_config
=failed
12366 if test "${with_python}" != auto
; then
12367 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
12370 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
12371 if test $?
!= 0; then
12372 have_python_config
=failed
12373 if test "${with_python}" != auto
; then
12374 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
12378 # We do not have a python executable we can use to determine where
12379 # to find the Python headers and libs. We cannot guess the include
12380 # path from the python_prefix either, because that include path
12381 # depends on the Python version. So, there is nothing much we can
12382 # do except assume that the compiler will be able to find those files.
12385 have_python_config
=no
12388 # If we have python-config, only try the configuration it provides.
12389 # Otherwise fallback on the old way of trying different versions of
12393 if test "${have_python_config}" = yes; then
12394 # Determine the Python version by extracting "-lpython<version>"
12395 # part of the python_libs. <version> is usually X.Y with X and Y
12396 # being decimal numbers, but can also be XY (seen on Windows).
12398 # The extraction is performed using sed with a regular expression.
12399 # Initially, the regexp used was using the '?' quantifier to make
12400 # the dot in the version number optional. Unfortunately, this
12401 # does not work with non-GNU versions of sed because, because of
12402 # what looks like a limitation (the '?' quantifier does not work
12403 # with back-references). We work around this limitation by using
12404 # the '*' quantifier instead. It means that, in theory, we might
12405 # match unexpected version strings such as "-lpython2..7", but
12406 # this seems unlikely in practice. And even if that happens,
12407 # an error will be triggered later on, when checking that version
12409 python_version
=`echo " ${python_libs} " \
12410 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
12411 case "${python_version}" in
12414 version
=${python_version}
12416 new_CPPFLAGS
=${python_includes}
12417 new_LIBS
=${python_libs}
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12419 $as_echo_n "checking for ${version}... " >&6; }
12420 save_CPPFLAGS
=$CPPFLAGS
12422 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
12423 LIBS
="$LIBS $new_LIBS"
12424 found_usable_python
=no
12425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12427 #include "Python.h"
12436 if ac_fn_c_try_link
"$LINENO"; then :
12437 have_libpython
=${version}
12438 found_usable_python
=yes
12439 PYTHON_CPPFLAGS
=$new_CPPFLAGS
12440 PYTHON_LIBS
=$new_LIBS
12442 rm -f core conftest.err conftest.
$ac_objext \
12443 conftest
$ac_exeext conftest.
$ac_ext
12444 CPPFLAGS
=$save_CPPFLAGS
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12447 $as_echo "${found_usable_python}" >&6; }
12451 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
12454 elif test "${have_python_config}" != failed
; then
12455 if test "${have_libpython}" = no
; then
12459 new_CPPFLAGS
=${python_includes}
12460 new_LIBS
="${python_libs} -lpython2.7"
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12462 $as_echo_n "checking for ${version}... " >&6; }
12463 save_CPPFLAGS
=$CPPFLAGS
12465 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
12466 LIBS
="$LIBS $new_LIBS"
12467 found_usable_python
=no
12468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12470 #include "Python.h"
12479 if ac_fn_c_try_link
"$LINENO"; then :
12480 have_libpython
=${version}
12481 found_usable_python
=yes
12482 PYTHON_CPPFLAGS
=$new_CPPFLAGS
12483 PYTHON_LIBS
=$new_LIBS
12485 rm -f core conftest.err conftest.
$ac_objext \
12486 conftest
$ac_exeext conftest.
$ac_ext
12487 CPPFLAGS
=$save_CPPFLAGS
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12490 $as_echo "${found_usable_python}" >&6; }
12493 if test "${have_libpython}" = no
; then
12497 new_CPPFLAGS
=${python_includes}
12498 new_LIBS
="${python_libs} -lpython2.6"
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12500 $as_echo_n "checking for ${version}... " >&6; }
12501 save_CPPFLAGS
=$CPPFLAGS
12503 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
12504 LIBS
="$LIBS $new_LIBS"
12505 found_usable_python
=no
12506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h. */
12508 #include "Python.h"
12517 if ac_fn_c_try_link
"$LINENO"; then :
12518 have_libpython
=${version}
12519 found_usable_python
=yes
12520 PYTHON_CPPFLAGS
=$new_CPPFLAGS
12521 PYTHON_LIBS
=$new_LIBS
12523 rm -f core conftest.err conftest.
$ac_objext \
12524 conftest
$ac_exeext conftest.
$ac_ext
12525 CPPFLAGS
=$save_CPPFLAGS
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12528 $as_echo "${found_usable_python}" >&6; }
12531 if test ${have_libpython} = no
; then
12535 new_CPPFLAGS
=${python_includes}
12536 new_LIBS
="${python_libs} -lpython2.5"
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12538 $as_echo_n "checking for ${version}... " >&6; }
12539 save_CPPFLAGS
=$CPPFLAGS
12541 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
12542 LIBS
="$LIBS $new_LIBS"
12543 found_usable_python
=no
12544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h. */
12546 #include "Python.h"
12555 if ac_fn_c_try_link
"$LINENO"; then :
12556 have_libpython
=${version}
12557 found_usable_python
=yes
12558 PYTHON_CPPFLAGS
=$new_CPPFLAGS
12559 PYTHON_LIBS
=$new_LIBS
12561 rm -f core conftest.err conftest.
$ac_objext \
12562 conftest
$ac_exeext conftest.
$ac_ext
12563 CPPFLAGS
=$save_CPPFLAGS
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12566 $as_echo "${found_usable_python}" >&6; }
12569 if test ${have_libpython} = no
; then
12573 new_CPPFLAGS
=${python_includes}
12574 new_LIBS
="${python_libs} -lpython2.4"
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12576 $as_echo_n "checking for ${version}... " >&6; }
12577 save_CPPFLAGS
=$CPPFLAGS
12579 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
12580 LIBS
="$LIBS $new_LIBS"
12581 found_usable_python
=no
12582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12584 #include "Python.h"
12593 if ac_fn_c_try_link
"$LINENO"; then :
12594 have_libpython
=${version}
12595 found_usable_python
=yes
12596 PYTHON_CPPFLAGS
=$new_CPPFLAGS
12597 PYTHON_LIBS
=$new_LIBS
12599 rm -f core conftest.err conftest.
$ac_objext \
12600 conftest
$ac_exeext conftest.
$ac_ext
12601 CPPFLAGS
=$save_CPPFLAGS
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12604 $as_echo "${found_usable_python}" >&6; }
12608 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
12610 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
12612 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
12614 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
12616 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
12618 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
12620 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
12622 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
12626 if test "${have_libpython}" = no
; then
12627 case "${with_python}" in
12629 as_fn_error
"python is missing or unusable" "$LINENO" 5
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
12633 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
12636 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
12640 if test -n "${python_prefix}"; then
12642 cat >>confdefs.h
<<_ACEOF
12643 #define WITH_PYTHON_PATH "${python_prefix}"
12647 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12648 if test "x$prefix" = xNONE
; then
12649 test_prefix
=/usr
/local
12651 test_prefix
=$prefix
12654 test_prefix
=$exec_prefix
12657 case ${python_prefix} in
12658 "${test_prefix}"|
"${test_prefix}/"*|\
12659 '${exec_prefix}'|
'${exec_prefix}/'*)
12664 cat >>confdefs.h
<<_ACEOF
12665 #define PYTHON_PATH_RELOCATABLE $value
12673 if test "${have_libpython}" != no
; then
12675 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
12677 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
12678 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
12679 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
12680 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
12681 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
12683 # Flags needed to compile Python code (taken from python-config --cflags).
12684 # We cannot call python-config directly because it will output whatever was
12685 # used when compiling the Python interpreter itself, including flags which
12686 # would make the python-related objects be compiled differently from the
12687 # rest of GDB (e.g., -O2 and -fPIC).
12688 if test "${GCC}" = yes; then
12689 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
12692 if test "x${tentative_python_cflags}" != x
; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
12694 $as_echo_n "checking compiler flags for python code... " >&6; }
12695 for flag
in ${tentative_python_cflags}; do
12696 # Check that the compiler accepts it
12697 saved_CFLAGS
="$CFLAGS"
12698 CFLAGS
="$CFLAGS $flag"
12699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12710 if ac_fn_c_try_compile
"$LINENO"; then :
12711 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
12713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12714 CFLAGS
="$saved_CFLAGS"
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
12717 $as_echo "${PYTHON_CFLAGS}" >&6; }
12720 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
12722 # #define siginfo __siginfo
12724 # The problem is that including Python causes some XOPEN macros to be
12725 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
12726 # to false. So, we work around this issue by defining siginfo ourself
12727 # though the command-line.
12728 case "$gdb_host" in
12729 irix
*) if test "${GCC}" = yes; then
12730 CPPFLAGS
="$CPPFLAGS -Dsiginfo=__siginfo"
12735 # Even if Python support is not compiled in, we need to have these files
12737 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
12738 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
12739 python/py-prettyprint.c python/py-auto-load.c"
12745 # ------------------------- #
12746 # Checks for header files. #
12747 # ------------------------- #
12749 ac_header_dirent
=no
12750 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
12751 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12753 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12754 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12755 $as_echo_n "(cached) " >&6
12757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12759 #include <sys/types.h>
12771 if ac_fn_c_try_compile
"$LINENO"; then :
12772 eval "$as_ac_Header=yes"
12774 eval "$as_ac_Header=no"
12776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12778 eval ac_res
=\$
$as_ac_Header
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12780 $as_echo "$ac_res" >&6; }
12781 eval as_val
=\$
$as_ac_Header
12782 if test "x$as_val" = x
""yes; then :
12783 cat >>confdefs.h
<<_ACEOF
12784 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12787 ac_header_dirent
=$ac_hdr; break
12791 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12792 if test $ac_header_dirent = dirent.h
; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12794 $as_echo_n "checking for library containing opendir... " >&6; }
12795 if test "${ac_cv_search_opendir+set}" = set; then :
12796 $as_echo_n "(cached) " >&6
12798 ac_func_search_save_LIBS
=$LIBS
12799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12802 /* Override any GCC internal prototype to avoid an error.
12803 Use char because int might match the return type of a GCC
12804 builtin and then its argument prototype would still apply. */
12817 for ac_lib
in '' dir
; do
12818 if test -z "$ac_lib"; then
12819 ac_res
="none required"
12822 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12824 if ac_fn_c_try_link
"$LINENO"; then :
12825 ac_cv_search_opendir
=$ac_res
12827 rm -f core conftest.err conftest.
$ac_objext \
12829 if test "${ac_cv_search_opendir+set}" = set; then :
12833 if test "${ac_cv_search_opendir+set}" = set; then :
12836 ac_cv_search_opendir
=no
12838 rm conftest.
$ac_ext
12839 LIBS
=$ac_func_search_save_LIBS
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12842 $as_echo "$ac_cv_search_opendir" >&6; }
12843 ac_res
=$ac_cv_search_opendir
12844 if test "$ac_res" != no
; then :
12845 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12851 $as_echo_n "checking for library containing opendir... " >&6; }
12852 if test "${ac_cv_search_opendir+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
12855 ac_func_search_save_LIBS
=$LIBS
12856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12859 /* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12874 for ac_lib
in '' x
; do
12875 if test -z "$ac_lib"; then
12876 ac_res
="none required"
12879 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12881 if ac_fn_c_try_link
"$LINENO"; then :
12882 ac_cv_search_opendir
=$ac_res
12884 rm -f core conftest.err conftest.
$ac_objext \
12886 if test "${ac_cv_search_opendir+set}" = set; then :
12890 if test "${ac_cv_search_opendir+set}" = set; then :
12893 ac_cv_search_opendir
=no
12895 rm conftest.
$ac_ext
12896 LIBS
=$ac_func_search_save_LIBS
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12899 $as_echo "$ac_cv_search_opendir" >&6; }
12900 ac_res
=$ac_cv_search_opendir
12901 if test "$ac_res" != no
; then :
12902 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12909 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
12910 if test "${ac_cv_header_stat_broken+set}" = set; then :
12911 $as_echo_n "(cached) " >&6
12913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12915 #include <sys/types.h>
12916 #include <sys/stat.h>
12918 #if defined S_ISBLK && defined S_IFDIR
12919 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12922 #if defined S_ISBLK && defined S_IFCHR
12923 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12926 #if defined S_ISLNK && defined S_IFREG
12927 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12930 #if defined S_ISSOCK && defined S_IFREG
12931 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12935 if ac_fn_c_try_compile
"$LINENO"; then :
12936 ac_cv_header_stat_broken
=no
12938 ac_cv_header_stat_broken
=yes
12940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12943 $as_echo "$ac_cv_header_stat_broken" >&6; }
12944 if test $ac_cv_header_stat_broken = yes; then
12946 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12951 $as_echo_n "checking for ANSI C header files... " >&6; }
12952 if test "${ac_cv_header_stdc+set}" = set; then :
12953 $as_echo_n "(cached) " >&6
12955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957 #include <stdlib.h>
12958 #include <stdarg.h>
12959 #include <string.h>
12970 if ac_fn_c_try_compile
"$LINENO"; then :
12971 ac_cv_header_stdc
=yes
12973 ac_cv_header_stdc
=no
12975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12977 if test $ac_cv_header_stdc = yes; then
12978 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h. */
12981 #include <string.h>
12984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12985 $EGREP "memchr" >/dev
/null
2>&1; then :
12988 ac_cv_header_stdc
=no
12994 if test $ac_cv_header_stdc = yes; then
12995 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998 #include <stdlib.h>
13001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13002 $EGREP "free" >/dev
/null
2>&1; then :
13005 ac_cv_header_stdc
=no
13011 if test $ac_cv_header_stdc = yes; then
13012 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13013 if test "$cross_compiling" = yes; then :
13016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13019 #include <stdlib.h>
13020 #if ((' ' & 0x0FF) == 0x020)
13021 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13022 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13024 # define ISLOWER(c) \
13025 (('a' <= (c) && (c) <= 'i') \
13026 || ('j' <= (c) && (c) <= 'r') \
13027 || ('s' <= (c) && (c) <= 'z'))
13028 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13031 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13036 for (i = 0; i < 256; i++)
13037 if (XOR (islower (i), ISLOWER (i))
13038 || toupper (i) != TOUPPER (i))
13043 if ac_fn_c_try_run
"$LINENO"; then :
13046 ac_cv_header_stdc
=no
13048 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13049 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13055 $as_echo "$ac_cv_header_stdc" >&6; }
13056 if test $ac_cv_header_stdc = yes; then
13058 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13062 # elf_hp.h is for HP/UX 64-bit shared library support.
13063 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
13064 # unconditionally, so what's the point in checking these?
13065 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
13066 thread_db.h gnu
/libc-version.h signal.h stddef.h \
13067 stdlib.h string.h memory.h
strings.h sys
/fault.h \
13068 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
13069 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
13070 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
13071 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
13072 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h \
13073 dlfcn.h sys
/socket.h sys
/un.h
13075 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13076 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13077 eval as_val
=\$
$as_ac_Header
13078 if test "x$as_val" = x
""yes; then :
13079 cat >>confdefs.h
<<_ACEOF
13080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13087 for ac_header
in link.h
13089 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
13090 # include <sys/types.h>
13093 # include <nlist.h>
13097 if test "x$ac_cv_header_link_h" = x
""yes; then :
13098 cat >>confdefs.h
<<_ACEOF
13099 #define HAVE_LINK_H 1
13106 for ac_header
in sys
/proc.h
13108 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
13109 # include <sys/param.h>
13113 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
13114 cat >>confdefs.h
<<_ACEOF
13115 #define HAVE_SYS_PROC_H 1
13122 for ac_header
in sys
/user.h
13124 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
13125 # include <sys/param.h>
13129 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
13130 cat >>confdefs.h
<<_ACEOF
13131 #define HAVE_SYS_USER_H 1
13139 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
13140 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
13141 # think that we don't have <curses.h> if we're using GCC.
13144 if test "$GCC" = yes; then
13146 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
13150 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
13152 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13153 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13154 eval as_val
=\$
$as_ac_Header
13155 if test "x$as_val" = x
""yes; then :
13156 cat >>confdefs.h
<<_ACEOF
13157 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13164 for ac_header
in term.h
13166 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
13167 # include <curses.h>
13171 if test "x$ac_cv_header_term_h" = x
""yes; then :
13172 cat >>confdefs.h
<<_ACEOF
13173 #define HAVE_TERM_H 1
13181 # ------------------------- #
13182 # Checks for declarations. #
13183 # ------------------------- #
13185 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13186 if test "x$ac_cv_have_decl_free" = x
""yes; then :
13192 cat >>confdefs.h
<<_ACEOF
13193 #define HAVE_DECL_FREE $ac_have_decl
13195 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13196 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
13202 cat >>confdefs.h
<<_ACEOF
13203 #define HAVE_DECL_MALLOC $ac_have_decl
13205 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13206 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
13212 cat >>confdefs.h
<<_ACEOF
13213 #define HAVE_DECL_REALLOC $ac_have_decl
13215 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13216 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
13222 cat >>confdefs.h
<<_ACEOF
13223 #define HAVE_DECL_STRERROR $ac_have_decl
13225 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13226 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
13232 cat >>confdefs.h
<<_ACEOF
13233 #define HAVE_DECL_STRSTR $ac_have_decl
13235 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
13236 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
13242 cat >>confdefs.h
<<_ACEOF
13243 #define HAVE_DECL_GETOPT $ac_have_decl
13245 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13246 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
13252 cat >>confdefs.h
<<_ACEOF
13253 #define HAVE_DECL_SNPRINTF $ac_have_decl
13255 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13256 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
13262 cat >>confdefs.h
<<_ACEOF
13263 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13268 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13269 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13270 $as_echo_n "(cached) " >&6
13272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13274 #include <locale.h>
13283 if ac_fn_c_try_link
"$LINENO"; then :
13284 am_cv_val_LC_MESSAGES
=yes
13286 am_cv_val_LC_MESSAGES
=no
13288 rm -f core conftest.err conftest.
$ac_objext \
13289 conftest
$ac_exeext conftest.
$ac_ext
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13292 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13293 if test $am_cv_val_LC_MESSAGES = yes; then
13295 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13300 # ----------------------- #
13301 # Checks for structures. #
13302 # ----------------------- #
13304 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13305 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
13307 cat >>confdefs.h
<<_ACEOF
13308 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13313 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13314 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
13316 cat >>confdefs.h
<<_ACEOF
13317 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13324 # ------------------ #
13325 # Checks for types. #
13326 # ------------------ #
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13329 $as_echo_n "checking return type of signal handlers... " >&6; }
13330 if test "${ac_cv_type_signal+set}" = set; then :
13331 $as_echo_n "(cached) " >&6
13333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13335 #include <sys/types.h>
13336 #include <signal.h>
13341 return *(signal (0, 0)) (0) == 1;
13346 if ac_fn_c_try_compile
"$LINENO"; then :
13347 ac_cv_type_signal
=int
13349 ac_cv_type_signal
=void
13351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13354 $as_echo "$ac_cv_type_signal" >&6; }
13356 cat >>confdefs.h
<<_ACEOF
13357 #define RETSIGTYPE $ac_cv_type_signal
13361 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13362 #include <sys/socket.h>
13365 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
13367 cat >>confdefs.h
<<_ACEOF
13368 #define HAVE_SOCKLEN_T 1
13375 # ------------------------------------- #
13376 # Checks for compiler characteristics. #
13377 # ------------------------------------- #
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13380 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13381 if test "${ac_cv_c_const+set}" = set; then :
13382 $as_echo_n "(cached) " >&6
13384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13385 /* end confdefs.h. */
13390 /* FIXME: Include the comments suggested by Paul. */
13391 #ifndef __cplusplus
13392 /* Ultrix mips cc rejects this. */
13393 typedef int charset[2];
13395 /* SunOS 4.1.1 cc rejects this. */
13396 char const *const *pcpcc;
13398 /* NEC SVR4.0.2 mips cc rejects this. */
13399 struct point {int x, y;};
13400 static struct point const zero = {0,0};
13401 /* AIX XL C 1.02.0.0 rejects this.
13402 It does not let you subtract one const X* pointer from another in
13403 an arm of an if-expression whose if-part is not a constant
13405 const char *g = "string";
13406 pcpcc = &g + (g ? g-g : 0);
13407 /* HPUX 7.0 cc rejects these. */
13409 ppc = (char**) pcpcc;
13410 pcpcc = (char const *const *) ppc;
13411 { /* SCO 3.2v4 cc rejects this. */
13413 char const *s = 0 ? (char *) 0 : (char const *) 0;
13418 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13419 int x[] = {25, 17};
13420 const int *foo = &x[0];
13423 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13424 typedef const int *iptr;
13428 { /* AIX XL C 1.02.0.0 rejects this saying
13429 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13430 struct s { int j; const int *ap[3]; };
13431 struct s *b; b->j = 5;
13433 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13434 const int foo = 10;
13435 if (!foo) return 0;
13437 return !cs[0] && !zero.x;
13444 if ac_fn_c_try_compile
"$LINENO"; then :
13449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13452 $as_echo "$ac_cv_c_const" >&6; }
13453 if test $ac_cv_c_const = no
; then
13455 $as_echo "#define const /**/" >>confdefs.h
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13460 $as_echo_n "checking for inline... " >&6; }
13461 if test "${ac_cv_c_inline+set}" = set; then :
13462 $as_echo_n "(cached) " >&6
13465 for ac_kw
in inline __inline__ __inline
; do
13466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13468 #ifndef __cplusplus
13470 static $ac_kw foo_t static_foo () {return 0; }
13471 $ac_kw foo_t foo () {return 0; }
13475 if ac_fn_c_try_compile
"$LINENO"; then :
13476 ac_cv_c_inline
=$ac_kw
13478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13479 test "$ac_cv_c_inline" != no
&& break
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13484 $as_echo "$ac_cv_c_inline" >&6; }
13486 case $ac_cv_c_inline in
13489 case $ac_cv_c_inline in
13491 *) ac_val
=$ac_cv_c_inline;;
13493 cat >>confdefs.h
<<_ACEOF
13494 #ifndef __cplusplus
13495 #define inline $ac_val
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13502 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13503 if test "${ac_cv_c_bigendian+set}" = set; then :
13504 $as_echo_n "(cached) " >&6
13506 ac_cv_c_bigendian
=unknown
13507 # See if we're dealing with a universal compiler.
13508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13510 #ifndef __APPLE_CC__
13511 not a universal capable compiler
13516 if ac_fn_c_try_compile
"$LINENO"; then :
13518 # Check for potential -arch flags. It is not universal unless
13519 # there are at least two -arch flags with different values.
13522 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13523 if test -n "$ac_prev"; then
13525 i?
86 | x86_64 | ppc | ppc64
)
13526 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13529 ac_cv_c_bigendian
=universal
13535 elif test "x$ac_word" = "x-arch"; then
13540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13541 if test $ac_cv_c_bigendian = unknown
; then
13542 # See if sys/param.h defines the BYTE_ORDER macro.
13543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13545 #include <sys/types.h>
13546 #include <sys/param.h>
13551 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13552 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13554 bogus endian macros
13561 if ac_fn_c_try_compile
"$LINENO"; then :
13562 # It does; now see whether it defined to BIG_ENDIAN or not.
13563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565 #include <sys/types.h>
13566 #include <sys/param.h>
13571 #if BYTE_ORDER != BIG_ENDIAN
13579 if ac_fn_c_try_compile
"$LINENO"; then :
13580 ac_cv_c_bigendian
=yes
13582 ac_cv_c_bigendian
=no
13584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13588 if test $ac_cv_c_bigendian = unknown
; then
13589 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13592 #include <limits.h>
13597 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13598 bogus endian macros
13605 if ac_fn_c_try_compile
"$LINENO"; then :
13606 # It does; now see whether it defined to _BIG_ENDIAN or not.
13607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 #include <limits.h>
13614 #ifndef _BIG_ENDIAN
13622 if ac_fn_c_try_compile
"$LINENO"; then :
13623 ac_cv_c_bigendian
=yes
13625 ac_cv_c_bigendian
=no
13627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13631 if test $ac_cv_c_bigendian = unknown
; then
13632 # Compile a test program.
13633 if test "$cross_compiling" = yes; then :
13634 # Try to guess by grepping values from an object file.
13635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13637 short int ascii_mm[] =
13638 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13639 short int ascii_ii[] =
13640 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13641 int use_ascii (int i) {
13642 return ascii_mm[i] + ascii_ii[i];
13644 short int ebcdic_ii[] =
13645 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13646 short int ebcdic_mm[] =
13647 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13648 int use_ebcdic (int i) {
13649 return ebcdic_mm[i] + ebcdic_ii[i];
13656 return use_ascii (foo) == use_ebcdic (foo);
13661 if ac_fn_c_try_compile
"$LINENO"; then :
13662 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13663 ac_cv_c_bigendian
=yes
13665 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13666 if test "$ac_cv_c_bigendian" = unknown
; then
13667 ac_cv_c_bigendian
=no
13669 # finding both strings is unlikely to happen, but who knows?
13670 ac_cv_c_bigendian
=unknown
13674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13678 $ac_includes_default
13683 /* Are we little or big endian? From Harbison&Steele. */
13687 char c[sizeof (long int)];
13690 return u.c[sizeof (long int) - 1] == 1;
13696 if ac_fn_c_try_run
"$LINENO"; then :
13697 ac_cv_c_bigendian
=no
13699 ac_cv_c_bigendian
=yes
13701 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13702 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13708 $as_echo "$ac_cv_c_bigendian" >&6; }
13709 case $ac_cv_c_bigendian in #(
13711 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13717 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13721 as_fn_error
"unknown endianness
13722 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13726 # ------------------------------ #
13727 # Checks for library functions. #
13728 # ------------------------------ #
13730 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13731 # for constant arguments. Useless!
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13733 $as_echo_n "checking for working alloca.h... " >&6; }
13734 if test "${ac_cv_working_alloca_h+set}" = set; then :
13735 $as_echo_n "(cached) " >&6
13737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13739 #include <alloca.h>
13743 char *p = (char *) alloca (2 * sizeof (int));
13749 if ac_fn_c_try_link
"$LINENO"; then :
13750 ac_cv_working_alloca_h
=yes
13752 ac_cv_working_alloca_h
=no
13754 rm -f core conftest.err conftest.
$ac_objext \
13755 conftest
$ac_exeext conftest.
$ac_ext
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13758 $as_echo "$ac_cv_working_alloca_h" >&6; }
13759 if test $ac_cv_working_alloca_h = yes; then
13761 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13766 $as_echo_n "checking for alloca... " >&6; }
13767 if test "${ac_cv_func_alloca_works+set}" = set; then :
13768 $as_echo_n "(cached) " >&6
13770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13773 # define alloca __builtin_alloca
13776 # include <malloc.h>
13777 # define alloca _alloca
13779 # ifdef HAVE_ALLOCA_H
13780 # include <alloca.h>
13785 # ifndef alloca /* predefined by HP cc +Olibcalls */
13796 char *p = (char *) alloca (1);
13802 if ac_fn_c_try_link
"$LINENO"; then :
13803 ac_cv_func_alloca_works
=yes
13805 ac_cv_func_alloca_works
=no
13807 rm -f core conftest.err conftest.
$ac_objext \
13808 conftest
$ac_exeext conftest.
$ac_ext
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13811 $as_echo "$ac_cv_func_alloca_works" >&6; }
13813 if test $ac_cv_func_alloca_works = yes; then
13815 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13818 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13819 # that cause trouble. Some versions do not even contain alloca or
13820 # contain a buggy version. If you still want to use their alloca,
13821 # use ar to extract alloca.o from them instead of compiling alloca.c.
13823 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13825 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13829 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13830 if test "${ac_cv_os_cray+set}" = set; then :
13831 $as_echo_n "(cached) " >&6
13833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13835 #if defined CRAY && ! defined CRAY2
13842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13843 $EGREP "webecray" >/dev
/null
2>&1; then :
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13852 $as_echo "$ac_cv_os_cray" >&6; }
13853 if test $ac_cv_os_cray = yes; then
13854 for ac_func
in _getb67 GETB67 getb67
; do
13855 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13856 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13857 eval as_val
=\$
$as_ac_var
13858 if test "x$as_val" = x
""yes; then :
13860 cat >>confdefs.h
<<_ACEOF
13861 #define CRAY_STACKSEG_END $ac_func
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13871 $as_echo_n "checking stack direction for C alloca... " >&6; }
13872 if test "${ac_cv_c_stack_direction+set}" = set; then :
13873 $as_echo_n "(cached) " >&6
13875 if test "$cross_compiling" = yes; then :
13876 ac_cv_c_stack_direction
=0
13878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880 $ac_includes_default
13882 find_stack_direction ()
13884 static char *addr = 0;
13889 return find_stack_direction ();
13892 return (&dummy > addr) ? 1 : -1;
13898 return find_stack_direction () < 0;
13901 if ac_fn_c_try_run
"$LINENO"; then :
13902 ac_cv_c_stack_direction
=1
13904 ac_cv_c_stack_direction
=-1
13906 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13907 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13912 $as_echo "$ac_cv_c_stack_direction" >&6; }
13913 cat >>confdefs.h
<<_ACEOF
13914 #define STACK_DIRECTION $ac_cv_c_stack_direction
13920 for ac_header
in stdlib.h unistd.h
13922 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13923 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13924 eval as_val
=\$
$as_ac_Header
13925 if test "x$as_val" = x
""yes; then :
13926 cat >>confdefs.h
<<_ACEOF
13927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13934 for ac_func
in getpagesize
13936 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13937 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
13938 cat >>confdefs.h
<<_ACEOF
13939 #define HAVE_GETPAGESIZE 1
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13946 $as_echo_n "checking for working mmap... " >&6; }
13947 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
13948 $as_echo_n "(cached) " >&6
13950 if test "$cross_compiling" = yes; then :
13951 ac_cv_func_mmap_fixed_mapped
=no
13953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13955 $ac_includes_default
13956 /* malloc might have been renamed as rpl_malloc. */
13959 /* Thanks to Mike Haertel and Jim Avera for this test.
13960 Here is a matrix of mmap possibilities:
13961 mmap private not fixed
13962 mmap private fixed at somewhere currently unmapped
13963 mmap private fixed at somewhere already mapped
13964 mmap shared not fixed
13965 mmap shared fixed at somewhere currently unmapped
13966 mmap shared fixed at somewhere already mapped
13967 For private mappings, we should verify that changes cannot be read()
13968 back from the file, nor mmap's back from the file at a different
13969 address. (There have been systems where private was not correctly
13970 implemented like the infamous i386 svr4.0, and systems where the
13971 VM page cache was not coherent with the file system buffer cache
13972 like early versions of FreeBSD and possibly contemporary NetBSD.)
13973 For shared mappings, we should conversely verify that changes get
13974 propagated back to all the places they're supposed to be.
13976 Grep wants private fixed already mapped.
13977 The main things grep needs to know about mmap are:
13978 * does it exist and is it safe to write into the mmap'd area
13979 * how to use it (BSD variants) */
13982 #include <sys/mman.h>
13984 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13988 /* This mess was copied from the GNU getpagesize.h. */
13989 #ifndef HAVE_GETPAGESIZE
13990 /* Assume that all systems that can run configure have sys/param.h. */
13991 # ifndef HAVE_SYS_PARAM_H
13992 # define HAVE_SYS_PARAM_H 1
13995 # ifdef _SC_PAGESIZE
13996 # define getpagesize() sysconf(_SC_PAGESIZE)
13997 # else /* no _SC_PAGESIZE */
13998 # ifdef HAVE_SYS_PARAM_H
13999 # include <sys/param.h>
14000 # ifdef EXEC_PAGESIZE
14001 # define getpagesize() EXEC_PAGESIZE
14002 # else /* no EXEC_PAGESIZE */
14004 # define getpagesize() NBPG * CLSIZE
14007 # endif /* no CLSIZE */
14008 # else /* no NBPG */
14010 # define getpagesize() NBPC
14011 # else /* no NBPC */
14013 # define getpagesize() PAGESIZE
14014 # endif /* PAGESIZE */
14015 # endif /* no NBPC */
14016 # endif /* no NBPG */
14017 # endif /* no EXEC_PAGESIZE */
14018 # else /* no HAVE_SYS_PARAM_H */
14019 # define getpagesize() 8192 /* punt totally */
14020 # endif /* no HAVE_SYS_PARAM_H */
14021 # endif /* no _SC_PAGESIZE */
14023 #endif /* no HAVE_GETPAGESIZE */
14028 char *data, *data2, *data3;
14032 pagesize = getpagesize ();
14034 /* First, make a file with some known garbage in it. */
14035 data = (char *) malloc (pagesize);
14038 for (i = 0; i < pagesize; ++i)
14039 *(data + i) = rand ();
14041 fd = creat ("conftest.mmap", 0600);
14044 if (write (fd, data, pagesize) != pagesize)
14048 /* Next, try to mmap the file at a fixed address which already has
14049 something else allocated at it. If we can, also make sure that
14050 we see the same garbage. */
14051 fd = open ("conftest.mmap", O_RDWR);
14054 data2 = (char *) malloc (2 * pagesize);
14057 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
14058 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14059 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14061 for (i = 0; i < pagesize; ++i)
14062 if (*(data + i) != *(data2 + i))
14065 /* Finally, make sure that changes to the mapped area do not
14066 percolate back to the file as seen by read(). (This is a bug on
14067 some variants of i386 svr4.0.) */
14068 for (i = 0; i < pagesize; ++i)
14069 *(data2 + i) = *(data2 + i) + 1;
14070 data3 = (char *) malloc (pagesize);
14073 if (read (fd, data3, pagesize) != pagesize)
14075 for (i = 0; i < pagesize; ++i)
14076 if (*(data + i) != *(data3 + i))
14082 if ac_fn_c_try_run
"$LINENO"; then :
14083 ac_cv_func_mmap_fixed_mapped
=yes
14085 ac_cv_func_mmap_fixed_mapped
=no
14087 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14088 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14093 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14094 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14096 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14099 rm -f conftest.mmap
14101 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14102 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14106 cat >>confdefs.h
<<_ACEOF
14112 for ac_header
in vfork.h
14114 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14115 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14116 cat >>confdefs.h
<<_ACEOF
14117 #define HAVE_VFORK_H 1
14124 for ac_func
in fork vfork
14126 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14127 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14128 eval as_val
=\$
$as_ac_var
14129 if test "x$as_val" = x
""yes; then :
14130 cat >>confdefs.h
<<_ACEOF
14131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14137 if test "x$ac_cv_func_fork" = xyes
; then
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14139 $as_echo_n "checking for working fork... " >&6; }
14140 if test "${ac_cv_func_fork_works+set}" = set; then :
14141 $as_echo_n "(cached) " >&6
14143 if test "$cross_compiling" = yes; then :
14144 ac_cv_func_fork_works
=cross
14146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148 $ac_includes_default
14153 /* By Ruediger Kuhlmann. */
14154 return fork () < 0;
14160 if ac_fn_c_try_run
"$LINENO"; then :
14161 ac_cv_func_fork_works
=yes
14163 ac_cv_func_fork_works
=no
14165 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14166 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14171 $as_echo "$ac_cv_func_fork_works" >&6; }
14174 ac_cv_func_fork_works
=$ac_cv_func_fork
14176 if test "x$ac_cv_func_fork_works" = xcross
; then
14178 *-*-amigaos* |
*-*-msdosdjgpp*)
14179 # Override, as these systems have only a dummy fork() stub
14180 ac_cv_func_fork_works
=no
14183 ac_cv_func_fork_works
=yes
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14187 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14189 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14190 if test "x$ac_cv_func_vfork" = xyes
; then
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14192 $as_echo_n "checking for working vfork... " >&6; }
14193 if test "${ac_cv_func_vfork_works+set}" = set; then :
14194 $as_echo_n "(cached) " >&6
14196 if test "$cross_compiling" = yes; then :
14197 ac_cv_func_vfork_works
=cross
14199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14201 /* Thanks to Paul Eggert for this test. */
14202 $ac_includes_default
14203 #include <sys/wait.h>
14204 #ifdef HAVE_VFORK_H
14205 # include <vfork.h>
14207 /* On some sparc systems, changes by the child to local and incoming
14208 argument registers are propagated back to the parent. The compiler
14209 is told about this with #include <vfork.h>, but some compilers
14210 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14211 static variable whose address is put into a register that is
14212 clobbered by the vfork. */
14215 sparc_address_test (int arg)
14217 sparc_address_test (arg) int arg;
14220 static pid_t child;
14238 pid_t parent = getpid ();
14241 sparc_address_test (0);
14246 /* Here is another test for sparc vfork register problems. This
14247 test uses lots of local variables, at least as many local
14248 variables as main has allocated so far including compiler
14249 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14250 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14251 reuse the register of parent for one of the local variables,
14252 since it will think that parent can't possibly be used any more
14253 in this routine. Assigning to the local variable will thus
14254 munge parent in the parent process. */
14256 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14257 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14258 /* Convince the compiler that p..p7 are live; otherwise, it might
14259 use the same hardware register for all 8 local variables. */
14260 if (p != p1 || p != p2 || p != p3 || p != p4
14261 || p != p5 || p != p6 || p != p7)
14264 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14265 from child file descriptors. If the child closes a descriptor
14266 before it execs or exits, this munges the parent's descriptor
14267 as well. Test for this by closing stdout in the child. */
14268 _exit(close(fileno(stdout)) != 0);
14273 while (wait(&status) != child)
14276 /* Was there some problem with vforking? */
14279 /* Did the child fail? (This shouldn't happen.) */
14282 /* Did the vfork/compiler bug occur? */
14283 || parent != getpid()
14285 /* Did the file descriptor bug occur? */
14286 || fstat(fileno(stdout), &st) != 0
14291 if ac_fn_c_try_run
"$LINENO"; then :
14292 ac_cv_func_vfork_works
=yes
14294 ac_cv_func_vfork_works
=no
14296 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14297 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14302 $as_echo "$ac_cv_func_vfork_works" >&6; }
14305 if test "x$ac_cv_func_fork_works" = xcross
; then
14306 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14308 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14311 if test "x$ac_cv_func_vfork_works" = xyes
; then
14313 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14317 $as_echo "#define vfork fork" >>confdefs.h
14320 if test "x$ac_cv_func_fork_works" = xyes
; then
14322 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14326 for ac_func
in canonicalize_file_name realpath getrusage getuid getgid \
14327 pipe poll pread pread64 pwrite readlink resize_term \
14328 sbrk setpgid setpgrp setsid \
14329 sigaction sigprocmask sigsetmask socketpair syscall \
14330 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
14331 setrlimit getrlimit posix_madvise waitpid lstat
14333 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14334 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14335 eval as_val
=\$
$as_ac_var
14336 if test "x$as_val" = x
""yes; then :
14337 cat >>confdefs.h
<<_ACEOF
14338 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14346 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14347 if test "${am_cv_langinfo_codeset+set}" = set; then :
14348 $as_echo_n "(cached) " >&6
14350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14352 #include <langinfo.h>
14356 char* cs = nl_langinfo(CODESET);
14361 if ac_fn_c_try_link
"$LINENO"; then :
14362 am_cv_langinfo_codeset
=yes
14364 am_cv_langinfo_codeset
=no
14366 rm -f core conftest.err conftest.
$ac_objext \
14367 conftest
$ac_exeext conftest.
$ac_ext
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14371 $as_echo "$am_cv_langinfo_codeset" >&6; }
14372 if test $am_cv_langinfo_codeset = yes; then
14374 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14379 # Check the return and argument types of ptrace. No canned test for
14380 # this, so roll our own.
14381 gdb_ptrace_headers
='
14382 #if HAVE_SYS_TYPES_H
14383 # include <sys/types.h>
14385 #if HAVE_SYS_PTRACE_H
14386 # include <sys/ptrace.h>
14389 # include <unistd.h>
14392 # There is no point in checking if we don't have a prototype.
14393 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
14395 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
14401 cat >>confdefs.h
<<_ACEOF
14402 #define HAVE_DECL_PTRACE $ac_have_decl
14404 if test $ac_have_decl = 1; then :
14408 : ${gdb_cv_func_ptrace_ret='int'}
14409 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
14413 # Check return type. Varargs (used on GNU/Linux) conflict with the
14414 # empty argument list, so check for that explicitly.
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
14416 $as_echo_n "checking return type of ptrace... " >&6; }
14417 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
14418 $as_echo_n "(cached) " >&6
14420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14421 /* end confdefs.h. */
14422 $gdb_ptrace_headers
14426 extern long ptrace (enum __ptrace_request, ...);
14431 if ac_fn_c_try_compile
"$LINENO"; then :
14432 gdb_cv_func_ptrace_ret
='long'
14434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14436 $gdb_ptrace_headers
14440 extern int ptrace ();
14445 if ac_fn_c_try_compile
"$LINENO"; then :
14446 gdb_cv_func_ptrace_ret
='int'
14448 gdb_cv_func_ptrace_ret
='long'
14450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
14455 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
14457 cat >>confdefs.h
<<_ACEOF
14458 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
14461 # Check argument types.
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
14463 $as_echo_n "checking types of arguments for ptrace... " >&6; }
14464 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
14465 $as_echo_n "(cached) " >&6
14468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14470 $gdb_ptrace_headers
14474 extern long ptrace (enum __ptrace_request, ...);
14479 if ac_fn_c_try_compile
"$LINENO"; then :
14480 gdb_cv_func_ptrace_args
='int,int,long,long'
14483 for gdb_arg1
in 'int' 'long'; do
14484 for gdb_arg2
in 'pid_t' 'int' 'long'; do
14485 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
14486 for gdb_arg4
in 'int' 'long'; do
14487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14489 $gdb_ptrace_headers
14494 extern $gdb_cv_func_ptrace_ret
14495 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
14501 if ac_fn_c_try_compile
"$LINENO"; then :
14502 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
14505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14506 for gdb_arg5
in 'int *' 'int' 'long'; do
14507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14509 $gdb_ptrace_headers
14514 extern $gdb_cv_func_ptrace_ret
14515 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
14521 if ac_fn_c_try_compile
"$LINENO"; then :
14523 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
14526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14532 # Provide a safe default value.
14533 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
14536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
14539 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
14540 ac_save_IFS
=$IFS; IFS
=','
14541 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
14545 cat >>confdefs.h
<<_ACEOF
14546 #define PTRACE_TYPE_ARG3 $3
14549 if test -n "$5"; then
14551 cat >>confdefs.h
<<_ACEOF
14552 #define PTRACE_TYPE_ARG5 $5
14557 if test "$cross_compiling" = no
; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14559 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14560 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
14561 $as_echo_n "(cached) " >&6
14563 if test "$cross_compiling" = yes; then :
14564 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
14566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14568 $ac_includes_default
14572 /* If this system has a BSD-style setpgrp which takes arguments,
14573 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14574 exit successfully. */
14575 return setpgrp (1,1) != -1;
14580 if ac_fn_c_try_run
"$LINENO"; then :
14581 ac_cv_func_setpgrp_void
=no
14583 ac_cv_func_setpgrp_void
=yes
14585 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14586 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14591 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14592 if test $ac_cv_func_setpgrp_void = yes; then
14594 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14600 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14601 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
14602 $as_echo_n "(cached) " >&6
14604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h. */
14607 #include <unistd.h>
14613 if (setpgrp(1,1) == -1)
14622 if ac_fn_c_try_compile
"$LINENO"; then :
14623 ac_cv_func_setpgrp_void
=no
14625 ac_cv_func_setpgrp_void
=yes
14627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14630 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14631 if test $ac_cv_func_setpgrp_void = yes; then
14632 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14637 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
14638 # since sigsetjmp might only be defined as a macro.
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14640 $as_echo_n "checking for sigsetjmp... " >&6; }
14641 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
14642 $as_echo_n "(cached) " >&6
14644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14647 #include <setjmp.h>
14652 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14657 if ac_fn_c_try_compile
"$LINENO"; then :
14658 gdb_cv_func_sigsetjmp
=yes
14660 gdb_cv_func_sigsetjmp
=no
14662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14665 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14666 if test $gdb_cv_func_sigsetjmp = yes; then
14668 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14672 # Assume we'll default to using the included libiberty regex.
14673 gdb_use_included_regex
=yes
14675 # However, if the system regex is GNU regex, then default to *not*
14676 # using the included regex.
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14678 $as_echo_n "checking for GNU regex... " >&6; }
14679 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
14680 $as_echo_n "(cached) " >&6
14682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14684 #include <gnu-versions.h>
14688 #define REGEX_INTERFACE_VERSION 1
14689 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14690 # error "Version mismatch"
14696 if ac_fn_c_try_compile
"$LINENO"; then :
14697 gdb_cv_have_gnu_regex
=yes
14699 gdb_cv_have_gnu_regex
=no
14701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14704 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14705 if test $gdb_cv_have_gnu_regex = yes; then
14706 gdb_use_included_regex
=no
14710 # Check whether --with-included-regex was given.
14711 if test "${with_included_regex+set}" = set; then :
14712 withval
=$with_included_regex; gdb_with_regex
=$withval
14714 gdb_with_regex
=$gdb_use_included_regex
14717 if test "$gdb_with_regex" = yes; then
14719 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14723 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14724 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14725 #include <sys/proc.h>
14728 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
14730 cat >>confdefs.h
<<_ACEOF
14731 #define HAVE_STRUCT_THREAD_TD_PCB 1
14738 # See if <sys/lwp.h> defines `struct lwp`.
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14740 $as_echo_n "checking for struct lwp... " >&6; }
14741 if test "${gdb_cv_struct_lwp+set}" = set; then :
14742 $as_echo_n "(cached) " >&6
14744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14745 /* end confdefs.h. */
14746 #include <sys/param.h>
14747 #include <sys/lwp.h>
14756 if ac_fn_c_try_compile
"$LINENO"; then :
14757 gdb_cv_struct_lwp
=yes
14759 gdb_cv_struct_lwp
=no
14761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14764 $as_echo "$gdb_cv_struct_lwp" >&6; }
14765 if test $gdb_cv_struct_lwp = yes; then
14767 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14771 # See if <machine/reg.h> degines `struct reg'.
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14773 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14774 if test "${gdb_cv_struct_reg+set}" = set; then :
14775 $as_echo_n "(cached) " >&6
14777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h. */
14779 #include <sys/types.h>
14780 #include <machine/reg.h>
14789 if ac_fn_c_try_compile
"$LINENO"; then :
14790 gdb_cv_struct_reg
=yes
14792 gdb_cv_struct_reg
=no
14794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14797 $as_echo "$gdb_cv_struct_reg" >&6; }
14798 if test $gdb_cv_struct_reg = yes; then
14800 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14804 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14805 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14806 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
14808 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
14810 cat >>confdefs.h
<<_ACEOF
14811 #define HAVE_STRUCT_REG_R_FS 1
14816 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
14818 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
14820 cat >>confdefs.h
<<_ACEOF
14821 #define HAVE_STRUCT_REG_R_GS 1
14828 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14830 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14831 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
14832 $as_echo_n "(cached) " >&6
14834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14835 /* end confdefs.h. */
14836 #include <sys/ptrace.h>
14845 if ac_fn_c_try_compile
"$LINENO"; then :
14846 gdb_cv_have_ptrace_getregs
=yes
14848 gdb_cv_have_ptrace_getregs
=no
14850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14854 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14855 if test $gdb_cv_have_ptrace_getregs = yes; then
14857 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14861 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14863 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14864 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
14865 $as_echo_n "(cached) " >&6
14867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14869 #include <sys/ptrace.h>
14878 if ac_fn_c_try_compile
"$LINENO"; then :
14879 gdb_cv_have_ptrace_getfpxregs
=yes
14881 gdb_cv_have_ptrace_getfpxregs
=no
14883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14887 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14888 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14890 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14894 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14896 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14897 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
14898 $as_echo_n "(cached) " >&6
14900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14902 #include <sys/types.h>
14903 #include <sys/ptrace.h>
14912 if ac_fn_c_try_compile
"$LINENO"; then :
14913 gdb_cv_have_pt_getdbregs
=yes
14915 gdb_cv_have_pt_getdbregs
=no
14917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14921 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14922 if test $gdb_cv_have_pt_getdbregs = yes; then
14924 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14928 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14930 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14931 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
14932 $as_echo_n "(cached) " >&6
14934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14936 #include <sys/types.h>
14937 #include <sys/ptrace.h>
14946 if ac_fn_c_try_compile
"$LINENO"; then :
14947 gdb_cv_have_pt_getxmmregs
=yes
14949 gdb_cv_have_pt_getxmmregs
=no
14951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14955 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14956 if test $gdb_cv_have_pt_getxmmregs = yes; then
14958 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14962 # Detect which type of /proc is in use, such as for Unixware or Solaris.
14964 if test "${target}" = "${host}"; then
14966 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
14968 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
14971 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
14973 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
14977 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
14979 $as_echo "#define _KMEMUSER 1" >>confdefs.h
14985 if test "$ac_cv_header_sys_procfs_h" = yes; then
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
14987 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
14988 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
14989 $as_echo_n "(cached) " >&6
14991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14992 /* end confdefs.h. */
14995 /* Needed for new procfs interface on sparc-solaris. */
14996 #define _STRUCTURED_PROC 1
14997 #include <sys/procfs.h>
15006 if ac_fn_c_try_compile
"$LINENO"; then :
15007 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
15009 bfd_cv_have_sys_procfs_type_pstatus_t
=no
15012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15015 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
15017 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
15021 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
15024 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
15025 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
15026 $as_echo_n "(cached) " >&6
15028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15032 /* Needed for new procfs interface on sparc-solaris. */
15033 #define _STRUCTURED_PROC 1
15034 #include <sys/procfs.h>
15043 if ac_fn_c_try_compile
"$LINENO"; then :
15044 bfd_cv_have_sys_procfs_type_prrun_t
=yes
15046 bfd_cv_have_sys_procfs_type_prrun_t
=no
15049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15052 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
15054 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
15058 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15061 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15062 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
15063 $as_echo_n "(cached) " >&6
15065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15069 /* Needed for new procfs interface on sparc-solaris. */
15070 #define _STRUCTURED_PROC 1
15071 #include <sys/procfs.h>
15080 if ac_fn_c_try_compile
"$LINENO"; then :
15081 bfd_cv_have_sys_procfs_type_gregset_t
=yes
15083 bfd_cv_have_sys_procfs_type_gregset_t
=no
15086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15089 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15091 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15095 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15098 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15099 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
15100 $as_echo_n "(cached) " >&6
15102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15106 /* Needed for new procfs interface on sparc-solaris. */
15107 #define _STRUCTURED_PROC 1
15108 #include <sys/procfs.h>
15117 if ac_fn_c_try_compile
"$LINENO"; then :
15118 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
15120 bfd_cv_have_sys_procfs_type_fpregset_t
=no
15123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15126 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15128 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15132 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15135 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15136 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
15137 $as_echo_n "(cached) " >&6
15139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15143 /* Needed for new procfs interface on sparc-solaris. */
15144 #define _STRUCTURED_PROC 1
15145 #include <sys/procfs.h>
15154 if ac_fn_c_try_compile
"$LINENO"; then :
15155 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
15157 bfd_cv_have_sys_procfs_type_prgregset_t
=no
15160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15163 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15165 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15169 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15172 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15173 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
15174 $as_echo_n "(cached) " >&6
15176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15177 /* end confdefs.h. */
15180 /* Needed for new procfs interface on sparc-solaris. */
15181 #define _STRUCTURED_PROC 1
15182 #include <sys/procfs.h>
15191 if ac_fn_c_try_compile
"$LINENO"; then :
15192 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15194 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15200 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15202 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15206 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15209 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15210 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
15211 $as_echo_n "(cached) " >&6
15213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15217 /* Needed for new procfs interface on sparc-solaris. */
15218 #define _STRUCTURED_PROC 1
15219 #include <sys/procfs.h>
15228 if ac_fn_c_try_compile
"$LINENO"; then :
15229 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15231 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15237 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15239 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15243 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
15246 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
15247 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
15248 $as_echo_n "(cached) " >&6
15250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h. */
15254 /* Needed for new procfs interface on sparc-solaris. */
15255 #define _STRUCTURED_PROC 1
15256 #include <sys/procfs.h>
15260 prfpregset32_t avar
15265 if ac_fn_c_try_compile
"$LINENO"; then :
15266 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
15268 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
15271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15274 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
15276 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
15280 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15283 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15284 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
15285 $as_echo_n "(cached) " >&6
15287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h. */
15291 /* Needed for new procfs interface on sparc-solaris. */
15292 #define _STRUCTURED_PROC 1
15293 #include <sys/procfs.h>
15302 if ac_fn_c_try_compile
"$LINENO"; then :
15303 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15305 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15311 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15313 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15317 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15320 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15321 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
15322 $as_echo_n "(cached) " >&6
15324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15325 /* end confdefs.h. */
15328 /* Needed for new procfs interface on sparc-solaris. */
15329 #define _STRUCTURED_PROC 1
15330 #include <sys/procfs.h>
15339 if ac_fn_c_try_compile
"$LINENO"; then :
15340 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15342 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15348 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15350 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15354 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
15357 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
15358 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
15359 $as_echo_n "(cached) " >&6
15361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15365 /* Needed for new procfs interface on sparc-solaris. */
15366 #define _STRUCTURED_PROC 1
15367 #include <sys/procfs.h>
15376 if ac_fn_c_try_compile
"$LINENO"; then :
15377 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
15379 bfd_cv_have_sys_procfs_type_prsysent_t
=no
15382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15385 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
15387 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
15391 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
15394 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
15395 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
15396 $as_echo_n "(cached) " >&6
15398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15402 /* Needed for new procfs interface on sparc-solaris. */
15403 #define _STRUCTURED_PROC 1
15404 #include <sys/procfs.h>
15413 if ac_fn_c_try_compile
"$LINENO"; then :
15414 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
15416 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
15419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15422 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
15424 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
15428 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
15431 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
15432 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
15433 $as_echo_n "(cached) " >&6
15435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h. */
15439 /* Needed for new procfs interface on sparc-solaris. */
15440 #define _STRUCTURED_PROC 1
15441 #include <sys/procfs.h>
15445 pr_sigaction64_t avar
15450 if ac_fn_c_try_compile
"$LINENO"; then :
15451 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
15453 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
15456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15459 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
15461 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
15465 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
15468 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
15469 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
15470 $as_echo_n "(cached) " >&6
15472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h. */
15476 /* Needed for new procfs interface on sparc-solaris. */
15477 #define _STRUCTURED_PROC 1
15478 #include <sys/procfs.h>
15482 pr_siginfo64_t avar
15487 if ac_fn_c_try_compile
"$LINENO"; then :
15488 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
15490 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
15493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15496 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
15498 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
15502 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
15508 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
15510 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
15511 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
15512 $as_echo_n "(cached) " >&6
15514 if test "$cross_compiling" = yes; then :
15515 gdb_cv_prfpregset_t_broken
=yes
15517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15519 #include <sys/procfs.h>
15522 if (sizeof (prfpregset_t) == sizeof (void *))
15527 if ac_fn_c_try_run
"$LINENO"; then :
15528 gdb_cv_prfpregset_t_broken
=no
15530 gdb_cv_prfpregset_t_broken
=yes
15532 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15533 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
15539 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
15540 if test $gdb_cv_prfpregset_t_broken = yes; then
15542 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
15549 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
15550 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
15551 $as_echo_n "(cached) " >&6
15553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15555 #include <unistd.h>
15556 #include <sys/types.h>
15557 #include <sys/procfs.h>
15564 dummy = ioctl(0, PIOCSET, &dummy);
15570 if ac_fn_c_try_compile
"$LINENO"; then :
15571 gdb_cv_have_procfs_piocset
=yes
15573 gdb_cv_have_procfs_piocset
=no
15575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
15579 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
15580 if test $gdb_cv_have_procfs_piocset = yes; then
15582 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
15587 if test ${host} = ${target} ; then
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
15590 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
15591 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
15592 $as_echo_n "(cached) " >&6
15594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15600 struct link_map lm; (void) lm.l_addr;
15605 if ac_fn_c_try_compile
"$LINENO"; then :
15606 gdb_cv_have_struct_link_map_with_l_members
=yes
15608 gdb_cv_have_struct_link_map_with_l_members
=no
15610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
15614 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
15615 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
15617 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
15623 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
15624 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
15625 $as_echo_n "(cached) " >&6
15627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h. */
15629 #include <sys/types.h>
15634 struct link_map lm; (void) lm.lm_addr;
15639 if ac_fn_c_try_compile
"$LINENO"; then :
15640 gdb_cv_have_struct_link_map_with_lm_members
=yes
15642 gdb_cv_have_struct_link_map_with_lm_members
=no
15644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
15648 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
15649 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
15651 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
15657 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
15658 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
15659 $as_echo_n "(cached) " >&6
15661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15662 /* end confdefs.h. */
15663 #include <sys/types.h>
15664 #ifdef HAVE_NLIST_H
15671 struct so_map lm; (void) lm.som_addr;
15676 if ac_fn_c_try_compile
"$LINENO"; then :
15677 gdb_cv_have_struct_so_map_with_som_members
=yes
15679 gdb_cv_have_struct_so_map_with_som_members
=no
15681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
15685 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
15686 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
15688 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
15694 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
15695 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
15696 $as_echo_n "(cached) " >&6
15698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15699 /* end confdefs.h. */
15701 #include <sys/link.h>
15705 struct link_map32 l;
15710 if ac_fn_c_try_compile
"$LINENO"; then :
15711 gdb_cv_have_struct_link_map32
=yes
15713 gdb_cv_have_struct_link_map32
=no
15715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
15719 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
15720 if test $gdb_cv_have_struct_link_map32 = yes; then
15722 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
15725 $as_echo "#define _SYSCALL32 1" >>confdefs.h
15730 # Check if the compiler supports the `long long' type.
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
15733 $as_echo_n "checking for long long support in compiler... " >&6; }
15734 if test "${gdb_cv_c_long_long+set}" = set; then :
15735 $as_echo_n "(cached) " >&6
15737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15738 /* end confdefs.h. */
15739 extern long long foo;
15743 switch (foo & 2) { case 0: return 1; }
15748 if ac_fn_c_try_compile
"$LINENO"; then :
15749 gdb_cv_c_long_long
=yes
15751 gdb_cv_c_long_long
=no
15753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
15756 $as_echo "$gdb_cv_c_long_long" >&6; }
15757 if test $gdb_cv_c_long_long = yes; then
15759 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
15763 # Check if the compiler and runtime support printing long longs.
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15766 $as_echo_n "checking for long long support in printf... " >&6; }
15767 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
15768 $as_echo_n "(cached) " >&6
15770 if test "$cross_compiling" = yes; then :
15771 gdb_cv_printf_has_long_long
=no
15773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15774 /* end confdefs.h. */
15775 $ac_includes_default
15781 l = (l << 16) + 0x0123;
15782 l = (l << 16) + 0x4567;
15783 l = (l << 16) + 0x89ab;
15784 l = (l << 16) + 0xcdef;
15785 sprintf (buf, "0x%016llx", l);
15786 return (strcmp ("0x0123456789abcdef", buf));
15791 if ac_fn_c_try_run
"$LINENO"; then :
15792 gdb_cv_printf_has_long_long
=yes
15794 gdb_cv_printf_has_long_long
=no
15796 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15797 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15802 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15803 if test $gdb_cv_printf_has_long_long = yes; then
15805 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15809 # Check if the compiler and runtime support printing decfloats.
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
15812 $as_echo_n "checking for decfloat support in printf... " >&6; }
15813 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
15814 $as_echo_n "(cached) " >&6
15816 if test "$cross_compiling" = yes; then :
15817 gdb_cv_printf_has_decfloat
=no
15819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15821 $ac_includes_default
15826 _Decimal32 d32 = 1.2345df;
15827 _Decimal64 d64 = 1.2345dd;
15828 _Decimal128 d128 = 1.2345dl;
15829 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
15830 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
15835 if ac_fn_c_try_run
"$LINENO"; then :
15836 gdb_cv_printf_has_decfloat
=yes
15838 gdb_cv_printf_has_decfloat
=no
15840 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15841 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
15846 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15847 if test $gdb_cv_printf_has_decfloat = yes; then
15849 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15853 # Check if the compiler supports the `long double' type. We can't use
15854 # AC_C_LONG_DOUBLE because that one does additional checks on the
15855 # constants defined in <float.h> that fail on some systems,
15856 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15859 $as_echo_n "checking for long double support in compiler... " >&6; }
15860 if test "${gdb_cv_c_long_double+set}" = set; then :
15861 $as_echo_n "(cached) " >&6
15863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15864 /* end confdefs.h. */
15867 if ac_fn_c_try_compile
"$LINENO"; then :
15868 gdb_cv_c_long_double
=yes
15870 gdb_cv_c_long_double
=no
15872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15875 $as_echo "$gdb_cv_c_long_double" >&6; }
15876 if test $gdb_cv_c_long_double = yes; then
15878 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15882 # Check if the compiler and runtime support printing long doubles.
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15885 $as_echo_n "checking for long double support in printf... " >&6; }
15886 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
15887 $as_echo_n "(cached) " >&6
15889 if test "$cross_compiling" = yes; then :
15890 gdb_cv_printf_has_long_double
=no
15892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15893 /* end confdefs.h. */
15894 $ac_includes_default
15899 long double f = 3.141592653;
15900 sprintf (buf, "%Lg", f);
15901 return (strncmp ("3.14159", buf, 7));
15906 if ac_fn_c_try_run
"$LINENO"; then :
15907 gdb_cv_printf_has_long_double
=yes
15909 gdb_cv_printf_has_long_double
=no
15911 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15912 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
15917 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
15918 if test $gdb_cv_printf_has_long_double = yes; then
15920 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
15924 # Check if the compiler and runtime support scanning long doubles.
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
15927 $as_echo_n "checking for long double support in scanf... " >&6; }
15928 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
15929 $as_echo_n "(cached) " >&6
15931 if test "$cross_compiling" = yes; then :
15932 gdb_cv_scanf_has_long_double
=no
15934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15935 /* end confdefs.h. */
15940 char *buf = "3.141592653";
15942 sscanf (buf, "%Lg", &f);
15943 return !(f > 3.14159 && f < 3.14160);
15948 if ac_fn_c_try_run
"$LINENO"; then :
15949 gdb_cv_scanf_has_long_double
=yes
15951 gdb_cv_scanf_has_long_double
=no
15953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
15959 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
15960 if test $gdb_cv_scanf_has_long_double = yes; then
15962 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
15969 $as_echo_n "checking for -bbigtoc option... " >&6; }
15970 if test "${gdb_cv_bigtoc+set}" = set; then :
15971 $as_echo_n "(cached) " >&6
15974 SAVE_LDFLAGS
=$LDFLAGS
15977 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
15978 *) gdb_cv_bigtoc
=-bbigtoc ;;
15981 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
15982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15993 if ac_fn_c_try_link
"$LINENO"; then :
15998 rm -f core conftest.err conftest.
$ac_objext \
15999 conftest
$ac_exeext conftest.
$ac_ext
16000 LDFLAGS
="${SAVE_LDFLAGS}"
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16004 $as_echo "$gdb_cv_bigtoc" >&6; }
16005 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16010 $as_echo_n "checking for the dynamic export flag... " >&6; }
16012 if test "${gdb_native}" = yes; then
16013 # The dynamically loaded libthread_db needs access to symbols in the gdb
16014 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16015 # may not be supported there.
16016 old_LDFLAGS
="$LDFLAGS"
16017 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16018 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16019 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16020 if test "${have_libpython}" = no
; then
16021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16032 if ac_fn_c_try_link
"$LINENO"; then :
16035 rm -f core conftest.err conftest.
$ac_objext \
16036 conftest
$ac_exeext conftest.
$ac_ext
16038 # Workaround http://bugs.python.org/issue4434 where static
16039 # libpythonX.Y.a would get its symbols required for
16040 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16041 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16042 old_CFLAGS
="$CFLAGS"
16043 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16044 if test "$cross_compiling" = yes; then :
16047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16048 /* end confdefs.h. */
16049 #include "${have_libpython}/Python.h"
16055 err = PyRun_SimpleString ("import itertools\n");
16057 return err == 0 ? 0 : 1;
16062 if ac_fn_c_try_run
"$LINENO"; then :
16065 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16066 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16069 CFLAGS
="$old_CFLAGS"
16071 LDFLAGS
="$old_LDFLAGS"
16073 if $dynamic_list; then
16074 found
="-Wl,--dynamic-list"
16075 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16078 RDYNAMIC
="-rdynamic"
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16082 $as_echo "$found" >&6; }
16085 if test ${build} = ${host} -a ${host} = ${target} ; then
16088 # See if thread_db library is around for Solaris thread debugging.
16089 # Note that we must explicitly test for version 1 of the library
16090 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
16093 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
16094 if test -f /usr
/lib
/libthread_db.so
.1 ; then
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16096 $as_echo "yes" >&6; }
16098 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
16100 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
16101 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16103 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16104 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16105 $as_echo_n "(cached) " >&6
16107 ac_check_lib_save_LIBS
=$LIBS
16109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16110 /* end confdefs.h. */
16112 /* Override any GCC internal prototype to avoid an error.
16113 Use char because int might match the return type of a GCC
16114 builtin and then its argument prototype would still apply. */
16127 if ac_fn_c_try_link
"$LINENO"; then :
16128 ac_cv_lib_dl_dlopen
=yes
16130 ac_cv_lib_dl_dlopen
=no
16132 rm -f core conftest.err conftest.
$ac_objext \
16133 conftest
$ac_exeext conftest.
$ac_ext
16134 LIBS
=$ac_check_lib_save_LIBS
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16137 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16138 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16139 cat >>confdefs.h
<<_ACEOF
16140 #define HAVE_LIBDL 1
16147 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
16148 # Sun randomly tweaked the prototypes in <proc_service.h>
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
16151 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
16152 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
16153 $as_echo_n "(cached) " >&6
16156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16159 #include <proc_service.h>
16160 ps_err_e ps_pdwrite
16161 (struct ps_prochandle*, psaddr_t, const void*, size_t);
16171 if ac_fn_c_try_compile
"$LINENO"; then :
16172 gdb_cv_proc_service_is_old
=no
16174 gdb_cv_proc_service_is_old
=yes
16176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
16181 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
16182 if test $gdb_cv_proc_service_is_old = yes; then
16184 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16189 $as_echo "no" >&6; }
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16194 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16195 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
16196 $as_echo_n "(cached) " >&6
16198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h. */
16200 #include <sys/pthdebug.h>
16204 #ifndef PTHDB_VERSION_3
16211 if ac_fn_c_try_compile
"$LINENO"; then :
16212 gdb_cv_have_aix_thread_debug
=yes
16214 gdb_cv_have_aix_thread_debug
=no
16216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16220 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16221 if test $gdb_cv_have_aix_thread_debug = yes; then
16222 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16223 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16224 LIBS
="$LIBS -lpthdebug"
16226 # Older versions of AIX do not provide the declaration for
16227 # the getthrds function (it appears that it was introduced
16229 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16231 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
16237 cat >>confdefs.h
<<_ACEOF
16238 #define HAVE_DECL_GETTHRDS $ac_have_decl
16247 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16249 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16250 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
16251 $as_echo_n "(cached) " >&6
16253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16255 #include <thread_db.h>
16259 int i = TD_NOTALLOC;
16264 if ac_fn_c_try_compile
"$LINENO"; then :
16265 gdb_cv_thread_db_h_has_td_notalloc
=yes
16267 gdb_cv_thread_db_h_has_td_notalloc
=no
16270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16274 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16276 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16277 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
16278 $as_echo_n "(cached) " >&6
16280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16281 /* end confdefs.h. */
16282 #include <thread_db.h>
16286 int i = TD_VERSION;
16291 if ac_fn_c_try_compile
"$LINENO"; then :
16292 gdb_cv_thread_db_h_has_td_version
=yes
16294 gdb_cv_thread_db_h_has_td_version
=no
16297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16301 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16303 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16304 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
16305 $as_echo_n "(cached) " >&6
16307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16308 /* end confdefs.h. */
16309 #include <thread_db.h>
16318 if ac_fn_c_try_compile
"$LINENO"; then :
16319 gdb_cv_thread_db_h_has_td_notls
=yes
16321 gdb_cv_thread_db_h_has_td_notls
=no
16324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16328 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16330 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16332 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16335 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16337 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16340 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16342 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16346 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
16348 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
16349 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
16350 $as_echo_n "(cached) " >&6
16352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354 #include <sys/syscall.h>
16358 int i = __NR_tkill;
16363 if ac_fn_c_try_compile
"$LINENO"; then :
16364 gdb_cv_sys_syscall_h_has_tkill
=yes
16366 gdb_cv_sys_syscall_h_has_tkill
=no
16369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
16373 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
16375 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
16377 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
16381 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
16383 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
16389 cat >>confdefs.h
<<_ACEOF
16390 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
16394 if test "$cross_compiling" = yes; then :
16395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16396 /* end confdefs.h. */
16397 #include <sys/personality.h>
16402 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
16403 # define ADDR_NO_RANDOMIZE 0x0040000
16405 /* Test the flag could be set and stays set. */
16406 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
16407 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
16413 if ac_fn_c_try_link
"$LINENO"; then :
16414 have_personality
=true
16416 have_personality
=false
16418 rm -f core conftest.err conftest.
$ac_objext \
16419 conftest
$ac_exeext conftest.
$ac_ext
16421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16422 /* end confdefs.h. */
16423 #include <sys/personality.h>
16428 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
16429 # define ADDR_NO_RANDOMIZE 0x0040000
16431 /* Test the flag could be set and stays set. */
16432 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
16433 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
16439 if ac_fn_c_try_run
"$LINENO"; then :
16440 have_personality
=true
16442 have_personality
=false
16444 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16445 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16448 if $have_personality
16451 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
16456 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16457 # except that the argument to --with-sysroot is optional.
16458 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16459 if test "x$with_sysroot" = xyes
; then
16460 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16463 # Check whether --with-sysroot was given.
16464 if test "${with_sysroot+set}" = set; then :
16465 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16467 TARGET_SYSTEM_ROOT
=
16471 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16472 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16473 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16474 ac_define_dir
=`eval echo $ac_define_dir`
16476 cat >>confdefs.h
<<_ACEOF
16477 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16483 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16484 if test "x$prefix" = xNONE
; then
16485 test_prefix
=/usr
/local
16487 test_prefix
=$prefix
16490 test_prefix
=$exec_prefix
16493 case ${ac_define_dir} in
16494 "${test_prefix}"|
"${test_prefix}/"*|\
16495 '${exec_prefix}'|
'${exec_prefix}/'*)
16500 cat >>confdefs.h
<<_ACEOF
16501 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16508 # Check whether --with-system-gdbinit was given.
16509 if test "${with_system_gdbinit+set}" = set; then :
16510 withval
=$with_system_gdbinit;
16511 SYSTEM_GDBINIT
=$withval
16517 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16518 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16519 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16520 ac_define_dir
=`eval echo $ac_define_dir`
16522 cat >>confdefs.h
<<_ACEOF
16523 #define SYSTEM_GDBINIT "$ac_define_dir"
16529 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16530 if test "x$prefix" = xNONE
; then
16531 test_prefix
=/usr
/local
16533 test_prefix
=$prefix
16536 test_prefix
=$exec_prefix
16539 case ${ac_define_dir} in
16540 "${test_prefix}"|
"${test_prefix}/"*|\
16541 '${exec_prefix}'|
'${exec_prefix}/'*)
16546 cat >>confdefs.h
<<_ACEOF
16547 #define SYSTEM_GDBINIT_RELOCATABLE $value
16553 # Check whether --enable-werror was given.
16554 if test "${enable_werror+set}" = set; then :
16555 enableval
=$enable_werror; case "${enableval}" in
16556 yes | y
) ERROR_ON_WARNING
="yes" ;;
16557 no | n
) ERROR_ON_WARNING
="no" ;;
16558 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16563 # Enable -Werror by default when using gcc
16564 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16565 ERROR_ON_WARNING
=yes
16569 if test "${ERROR_ON_WARNING}" = yes ; then
16570 WERROR_CFLAGS
="-Werror"
16573 # The entries after -Wno-pointer-sign are disabled warnings which may
16574 # be enabled in the future, which can not currently be used to build
16576 # NOTE: If you change this list, remember to update
16577 # gdb/doc/gdbint.texinfo.
16578 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
16579 -Wformat-nonliteral -Wno-pointer-sign \
16580 -Wno-unused -Wunused-value -Wunused-function \
16581 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
16583 # Enable -Wno-format by default when using gcc on mingw since many
16584 # GCC versions complain about %I64.
16586 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
16589 # Check whether --enable-build-warnings was given.
16590 if test "${enable_build_warnings+set}" = set; then :
16591 enableval
=$enable_build_warnings; case "${enableval}" in
16593 no
) build_warnings
="-w";;
16594 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16595 build_warnings
="${build_warnings} ${t}";;
16596 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16597 build_warnings
="${t} ${build_warnings}";;
16598 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16600 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16601 echo "Setting compiler warning flags = $build_warnings" 6>&1
16604 # Check whether --enable-gdb-build-warnings was given.
16605 if test "${enable_gdb_build_warnings+set}" = set; then :
16606 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16608 no
) build_warnings
="-w";;
16609 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16610 build_warnings
="${build_warnings} ${t}";;
16611 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16612 build_warnings
="${t} ${build_warnings}";;
16613 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16615 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16616 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16620 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16623 $as_echo_n "checking compiler warning flags... " >&6; }
16624 # Separate out the -Werror flag as some files just cannot be
16625 # compiled with it enabled.
16626 for w
in ${build_warnings}; do
16628 -Werr*) WERROR_CFLAGS
=-Werror ;;
16629 *) # Check that GCC accepts it
16630 saved_CFLAGS
="$CFLAGS"
16631 CFLAGS
="$CFLAGS $w"
16632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16643 if ac_fn_c_try_compile
"$LINENO"; then :
16644 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16647 CFLAGS
="$saved_CFLAGS"
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16651 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16656 # In the Cygwin environment, we need some additional flags.
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
16658 $as_echo_n "checking
for cygwin...
" >&6; }
16659 if test "${gdb_cv_os_cygwin+set}" = set; then :
16660 $as_echo_n "(cached
) " >&6
16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16665 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
16669 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16670 $EGREP "lose
" >/dev/null 2>&1; then :
16671 gdb_cv_os_cygwin=yes
16673 gdb_cv_os_cygwin=no
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
16679 $as_echo "$gdb_cv_os_cygwin" >&6; }
16682 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
16684 *go32* ) SER_HARDWIRE=ser-go32.o ;;
16685 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
16686 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
16690 # libreadline needs libuser32.a in a cygwin environment
16692 if test x$gdb_cv_os_cygwin = xyes; then
16693 WIN32LIBS="-luser32"
16694 case "${target}" in
16695 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
16700 # The ser-tcp.c module requires sockets.
16704 $as_echo "#define USE_WIN32API 1" >>confdefs.h
16706 WIN32LIBS
="$WIN32LIBS -lws2_32"
16711 # Add ELF support to GDB, but only if BFD includes ELF support.
16713 OLD_LDFLAGS
=$LDFLAGS
16715 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16716 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16717 # always want our bfd.
16718 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16719 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
16720 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16721 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16722 if test "$plugins" = "yes"; then
16725 LIBS
="-lbfd -liberty $intl $LIBS"
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
16727 $as_echo_n "checking for ELF support in BFD... " >&6; }
16728 if test "${gdb_cv_var_elf+set}" = set; then :
16729 $as_echo_n "(cached) " >&6
16731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16733 #include <stdlib.h>
16735 #include "elf-bfd.h"
16740 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
16745 if ac_fn_c_try_link
"$LINENO"; then :
16750 rm -f core conftest.err conftest.
$ac_objext \
16751 conftest
$ac_exeext conftest.
$ac_ext
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
16754 $as_echo "$gdb_cv_var_elf" >&6; }
16755 if test $gdb_cv_var_elf = yes; then
16756 CONFIG_OBS
="$CONFIG_OBS elfread.o"
16758 $as_echo "#define HAVE_ELF 1" >>confdefs.h
16760 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16761 if test "$plugins" = "yes"; then
16762 OLD_LIBS
="-ldl $OLD_LIBS"
16766 LDFLAGS
=$OLD_LDFLAGS
16769 # Add any host-specific objects to GDB.
16770 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
16772 LIBGUI
="../libgui/src/libgui.a"
16773 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
16782 *-*-cygwin* |
*-*-mingw* )
16791 if test "${enable_gdbtk}" = "yes"; then
16793 # Gdbtk must have an absolute path to srcdir in order to run
16794 # properly when not installed.
16797 GDBTK_SRC_DIR
=`pwd`
16802 # Ok, lets find the tcl configuration
16803 # First, look for one uninstalled.
16804 # the alternative search directory is invoked by --with-tcl
16807 if test x
"${no_tcl}" = x
; then
16808 # we reset no_tcl in case something fails here
16811 # Check whether --with-tcl was given.
16812 if test "${with_tcl+set}" = set; then :
16813 withval
=$with_tcl; with_tclconfig
=${withval}
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16817 $as_echo_n "checking for Tcl configuration... " >&6; }
16818 if test "${ac_cv_c_tclconfig+set}" = set; then :
16819 $as_echo_n "(cached) " >&6
16823 # First check to see if --with-tcl was specified.
16825 *-*-cygwin*) platDir
="win" ;;
16826 *) platDir
="unix" ;;
16828 if test x
"${with_tclconfig}" != x
; then
16829 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16830 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
16832 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16836 # then check for a private Tcl installation
16837 if test x
"${ac_cv_c_tclconfig}" = x
; then
16840 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16841 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16842 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16844 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16845 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16846 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16848 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16849 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16850 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16851 if test -f "$i/$platDir/tclConfig.sh" ; then
16852 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16858 # on Darwin, check in Framework installation locations
16859 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
16860 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16861 `ls -d /Library/Frameworks 2>/dev/null` \
16862 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16863 `ls -d /System/Library/Frameworks 2>/dev/null` \
16865 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16866 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
16872 # check in a few common install locations
16873 if test x
"${ac_cv_c_tclconfig}" = x
; then
16874 for i
in `ls -d ${libdir} 2>/dev/null` \
16875 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16876 `ls -d ${prefix}/lib 2>/dev/null` \
16877 `ls -d /usr/local/lib 2>/dev/null` \
16878 `ls -d /usr/contrib/lib 2>/dev/null` \
16879 `ls -d /usr/lib 2>/dev/null` \
16881 if test -f "$i/tclConfig.sh" ; then
16882 ac_cv_c_tclconfig
=`(cd $i; pwd)`
16888 # check in a few other private locations
16889 if test x
"${ac_cv_c_tclconfig}" = x
; then
16892 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16893 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16894 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16895 if test -f "$i/$platDir/tclConfig.sh" ; then
16896 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16905 if test x
"${ac_cv_c_tclconfig}" = x
; then
16906 TCL_BIN_DIR
="# no Tcl configs found"
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16908 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16911 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16913 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16918 # If $no_tk is nonempty, then we can't do Tk, and there is no
16919 # point to doing Tcl.
16922 # Ok, lets find the tk configuration
16923 # First, look for one uninstalled.
16924 # the alternative search directory is invoked by --with-tk
16927 if test x
"${no_tk}" = x
; then
16928 # we reset no_tk in case something fails here
16931 # Check whether --with-tk was given.
16932 if test "${with_tk+set}" = set; then :
16933 withval
=$with_tk; with_tkconfig
=${withval}
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16937 $as_echo_n "checking for Tk configuration... " >&6; }
16938 if test "${ac_cv_c_tkconfig+set}" = set; then :
16939 $as_echo_n "(cached) " >&6
16943 # First check to see if --with-tkconfig was specified.
16944 if test x
"${with_tkconfig}" != x
; then
16945 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16946 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
16948 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16952 # then check for a private Tk library
16954 *-*-cygwin*) platDir
="win" ;;
16955 *) platDir
="unix" ;;
16957 if test x
"${ac_cv_c_tkconfig}" = x
; then
16960 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16961 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16962 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16964 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16965 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16966 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16968 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16969 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16970 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16971 if test -f "$i/$platDir/tkConfig.sh" ; then
16972 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16978 # on Darwin, check in Framework installation locations
16979 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16980 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16981 `ls -d /Library/Frameworks 2>/dev/null` \
16982 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16983 `ls -d /System/Library/Frameworks 2>/dev/null` \
16985 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16986 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16992 # check in a few common install locations
16993 if test x
"${ac_cv_c_tkconfig}" = x
; then
16994 for i
in `ls -d ${libdir} 2>/dev/null` \
16995 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16996 `ls -d ${prefix}/lib 2>/dev/null` \
16997 `ls -d /usr/local/lib 2>/dev/null` \
16998 `ls -d /usr/contrib/lib 2>/dev/null` \
16999 `ls -d /usr/lib 2>/dev/null` \
17001 if test -f "$i/tkConfig.sh" ; then
17002 ac_cv_c_tkconfig
=`(cd $i; pwd)`
17007 # check in a few other private locations
17008 if test x
"${ac_cv_c_tkconfig}" = x
; then
17011 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17012 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
17013 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
17014 if test -f "$i/$platDir/tkConfig.sh" ; then
17015 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17024 if test x
"${ac_cv_c_tkconfig}" = x
; then
17025 TK_BIN_DIR
="# no Tk configs found"
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
17027 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
17030 TK_BIN_DIR
=${ac_cv_c_tkconfig}
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
17032 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17037 if test -z "${no_tcl}" -a -z "${no_tk}"; then
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
17040 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
17042 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17044 $as_echo "loading" >&6; }
17045 .
${TCL_BIN_DIR}/tclConfig.sh
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
17048 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17051 # eval is required to do the TCL_DBGX substitution
17052 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
17053 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
17055 # If the TCL_BIN_DIR is the build directory (not the install directory),
17056 # then set the common variable name to the value of the build variables.
17057 # For example, the variable TCL_LIB_SPEC will be set to the value
17058 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
17059 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
17060 # installed and uninstalled version of Tcl.
17061 if test -f "${TCL_BIN_DIR}/Makefile" ; then
17062 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
17063 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
17064 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
17065 elif test "`uname -s`" = "Darwin"; then
17066 # If Tcl was built as a framework, attempt to use the libraries
17067 # from the framework at the given location so that linking works
17068 # against Tcl.framework installed in an arbitary location.
17069 case ${TCL_DEFS} in
17071 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
17072 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
17073 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
17074 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
17075 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
17080 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
17081 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
17082 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
17088 # eval is required to do the TCL_DBGX substitution
17089 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
17090 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
17091 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
17092 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
17108 # Check for in-tree tcl
17115 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
17119 # Find Tcl private headers
17120 if test x
"${intree}" = xno
; then
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
17123 $as_echo_n "checking for Tcl private headers... " >&6; }
17125 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
17126 if test -f ${dir}/tclInt.h
; then
17130 if test x
"${private_dir}" = x
; then
17131 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
17133 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17135 $as_echo "${private_dir}" >&6; }
17138 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
17139 TCL_LIBRARY
="${TCL_LIB_SPEC}"
17142 # If building tcl in the same src tree, private headers
17143 # are not needed, but we need to be sure to use the right
17145 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
17146 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
17147 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
17155 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
17157 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17159 $as_echo "loading" >&6; }
17160 .
${TK_BIN_DIR}/tkConfig.sh
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
17163 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17166 # eval is required to do the TK_DBGX substitution
17167 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
17168 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
17170 # If the TK_BIN_DIR is the build directory (not the install directory),
17171 # then set the common variable name to the value of the build variables.
17172 # For example, the variable TK_LIB_SPEC will be set to the value
17173 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
17174 # instead of TK_BUILD_LIB_SPEC since it will work with both an
17175 # installed and uninstalled version of Tcl.
17176 if test -f "${TK_BIN_DIR}/Makefile" ; then
17177 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
17178 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
17179 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
17180 elif test "`uname -s`" = "Darwin"; then
17181 # If Tk was built as a framework, attempt to use the libraries
17182 # from the framework at the given location so that linking works
17183 # against Tk.framework installed in an arbitary location.
17186 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
17187 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
17188 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
17189 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
17190 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
17195 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
17196 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
17197 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
17203 # eval is required to do the TK_DBGX substitution
17204 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
17205 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
17206 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
17207 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
17222 # Check for in-tree Tk
17224 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
17228 # Find Tk private headers
17229 if test x
"${intree}" = xno
; then
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
17232 $as_echo_n "checking for Tk private headers... " >&6; }
17234 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
17235 if test -f ${dir}/tkInt.h
; then
17239 if test x
"${private_dir}" = x
; then
17240 as_fn_error
"could not find Tk private headers" "$LINENO" 5
17242 TK_PRIVATE_INCLUDE
="-I${private_dir}"
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17244 $as_echo "${private_dir}" >&6; }
17247 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
17248 TK_LIBRARY
=${TK_LIB_SPEC}
17251 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
17252 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
17253 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
17260 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
17262 # Include some libraries that Tcl and Tk want.
17263 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
17264 # Yes, the ordering seems wrong here. But it isn't.
17265 # TK_LIBS is the list of libraries that need to be linked
17266 # after Tcl/Tk. Note that this isn't put into LIBS. If it
17267 # were in LIBS then any link tests after this point would
17268 # try to include things like `$(LIBGUI)', which wouldn't work.
17269 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
17271 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
17272 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
17273 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
17274 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
17275 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
17276 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
17277 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
17279 if test x
$gdb_cv_os_cygwin = xyes
; then
17280 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
17281 WIN32LDAPP
="-Wl,--subsystem,console"
17282 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
17285 subdirs
="$subdirs gdbtk"
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17298 $as_echo_n "checking for X... " >&6; }
17301 # Check whether --with-x was given.
17302 if test "${with_x+set}" = set; then :
17306 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17307 if test "x$with_x" = xno
; then
17308 # The user explicitly disabled X.
17311 case $x_includes,$x_libraries in #(
17312 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
17313 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
17314 $as_echo_n "(cached) " >&6
17316 # One or both of the vars are not set, and there is no cached value.
17317 ac_x_includes
=no ac_x_libraries
=no
17318 rm -f -r conftest.dir
17319 if mkdir conftest.dir
; then
17321 cat >Imakefile
<<'_ACEOF'
17323 @echo incroot='${INCROOT}'
17325 @echo usrlibdir='${USRLIBDIR}'
17327 @echo libdir='${LIBDIR}'
17329 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
17330 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17331 for ac_var
in incroot usrlibdir libdir
; do
17332 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17334 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17335 for ac_extension
in a so sl dylib la dll
; do
17336 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17337 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17338 ac_im_usrlibdir
=$ac_im_libdir; break
17341 # Screen out bogus values from the imake configuration. They are
17342 # bogus both because they are the default anyway, and because
17343 # using them would break gcc on systems where it needs fixed includes.
17344 case $ac_im_incroot in
17345 /usr
/include
) ac_x_includes
= ;;
17346 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
17348 case $ac_im_usrlibdir in
17349 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
17350 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
17354 rm -f -r conftest.dir
17357 # Standard set of common directories for X headers.
17358 # Check X11 before X11Rn because it is often a symlink to the current release.
17372 /usr/local/X11/include
17373 /usr/local/X11R7/include
17374 /usr/local/X11R6/include
17375 /usr/local/X11R5/include
17376 /usr/local/X11R4/include
17378 /usr/local/include/X11
17379 /usr/local/include/X11R7
17380 /usr/local/include/X11R6
17381 /usr/local/include/X11R5
17382 /usr/local/include/X11R4
17386 /usr/XFree86/include/X11
17390 /usr/unsupported/include
17391 /usr/athena/include
17392 /usr/local/x11r5/include
17393 /usr/lpp/Xamples/include
17395 /usr/openwin/include
17396 /usr/openwin/share/include'
17398 if test "$ac_x_includes" = no
; then
17399 # Guess where to find include files, by looking for Xlib.h.
17400 # First, try using that file with no special directory specified.
17401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17402 /* end confdefs.h. */
17403 #include <X11/Xlib.h>
17405 if ac_fn_c_try_cpp
"$LINENO"; then :
17406 # We can compile using X headers with no special include directory.
17409 for ac_dir
in $ac_x_header_dirs; do
17410 if test -r "$ac_dir/X11/Xlib.h"; then
17411 ac_x_includes
=$ac_dir
17416 rm -f conftest.err conftest.
$ac_ext
17417 fi # $ac_x_includes = no
17419 if test "$ac_x_libraries" = no
; then
17420 # Check for the libraries.
17421 # See if we find them without any special options.
17422 # Don't add to $LIBS permanently.
17425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17426 /* end confdefs.h. */
17427 #include <X11/Xlib.h>
17436 if ac_fn_c_try_link
"$LINENO"; then :
17438 # We can link X programs with no special library path.
17442 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17444 # Don't even attempt the hair of trying to link an X program!
17445 for ac_extension
in a so sl dylib la dll
; do
17446 if test -r "$ac_dir/libX11.$ac_extension"; then
17447 ac_x_libraries
=$ac_dir
17453 rm -f core conftest.err conftest.
$ac_objext \
17454 conftest
$ac_exeext conftest.
$ac_ext
17455 fi # $ac_x_libraries = no
17457 case $ac_x_includes,$ac_x_libraries in #(
17458 no
,* |
*,no |
*\'*)
17459 # Didn't find X, or a directory has "'" in its name.
17460 ac_cv_have_x
="have_x=no";; #(
17462 # Record where we found X for the cache.
17463 ac_cv_have_x
="have_x=yes\
17464 ac_x_includes='$ac_x_includes'\
17465 ac_x_libraries='$ac_x_libraries'"
17471 eval "$ac_cv_have_x"
17474 if test "$have_x" != yes; then
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17476 $as_echo "$have_x" >&6; }
17479 # If each of the values was on the command line, it overrides each guess.
17480 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
17481 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
17482 # Update the cache value to reflect the command line values.
17483 ac_cv_have_x
="have_x=yes\
17484 ac_x_includes='$x_includes'\
17485 ac_x_libraries='$x_libraries'"
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17487 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17491 # Unlike the sim directory, whether a simulator is linked is controlled by
17492 # presence of a gdb_sim definition in the target configure.tgt entry.
17493 # This code just checks for a few cases where we'd like to ignore those
17494 # definitions, even when they're present in the '.mt' file. These cases
17495 # are when --disable-sim is specified, or if the simulator directory is
17496 # not part of the source tree.
17498 # Check whether --enable-sim was given.
17499 if test "${enable_sim+set}" = set; then :
17500 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
17501 echo "enableval = ${enableval}";
17502 case "${enableval}" in
17503 yes) ignore_sim
=false
;;
17504 no
) ignore_sim
=true
;;
17505 *) ignore_sim
=false
;;
17512 if test ! -d "${srcdir}/../sim"; then
17518 if test "${ignore_sim}" = "false"; then
17519 if test x
"${gdb_sim}" != x
; then
17521 SIM_OBS
="remote-sim.o"
17523 $as_echo "#define WITH_SIM 1" >>confdefs.h
17541 # List of host floatformats.
17543 cat >>confdefs.h
<<_ACEOF
17544 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17548 cat >>confdefs.h
<<_ACEOF
17549 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17553 cat >>confdefs.h
<<_ACEOF
17554 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17558 # target_subdir is used by the testsuite to find the target libraries.
17560 if test "${host}" != "${target}"; then
17561 target_subdir
="${target_alias}/"
17566 if test "${gdb_native}" = "yes"; then
17567 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
17568 if test ! -f ${host_makefile_frag}; then
17569 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
17571 frags
="$frags $host_makefile_frag"
17573 host_makefile_frag
=/dev
/null
17579 if test "${gdb_native}" = "yes"; then
17580 # We pick this up from the host configuration file (.mh) because we
17581 # do not have a native configuration Makefile fragment.
17582 nativefile
=`sed -n '
17583 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
17584 ' ${host_makefile_frag}`
17588 if test x
"${gdb_osabi}" != x
; then
17590 cat >>confdefs.h
<<_ACEOF
17591 #define GDB_OSABI_DEFAULT $gdb_osabi
17596 # Enable multi-ice-gdb-server.
17597 # Check whether --enable-multi-ice was given.
17598 if test "${enable_multi_ice+set}" = set; then :
17599 enableval
=$enable_multi_ice; case $enableval in
17602 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
17606 if test "x$enable_multi_ice" = xyes
; then
17607 subdirs
="$subdirs multi-ice"
17611 # Check whether --enable-gdbserver was given.
17612 if test "${enable_gdbserver+set}" = set; then :
17613 enableval
=$enable_gdbserver; case "${enableval}" in
17615 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17618 enable_gdbserver
=auto
17622 # We only build gdbserver automatically in a native configuration, and
17623 # only if the user did not explicitly disable its build.
17624 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17626 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17627 if test "x$build_gdbserver" = xyes
; then
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17629 $as_echo "yes" >&6; }
17630 subdirs
="$subdirs gdbserver"
17632 gdbserver_build_enabled
=yes
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17635 $as_echo "no" >&6; }
17639 # If the user explicitly request the gdbserver to be built, verify that
17640 # we were in fact able to enable it.
17641 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17642 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17645 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
17646 # to an empty version.
17652 if test "${nativefile}" != ""; then
17653 case "${nativefile}" in
17654 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
17655 * ) GDB_NM_FILE
="${nativefile}"
17657 files
="${files} ${GDB_NM_FILE}"
17658 links
="${links} nm.h"
17660 cat >>confdefs.h
<<_ACEOF
17661 #define GDB_NM_FILE "${GDB_NM_FILE}"
17667 ac_sources
="$files"
17669 while test -n "$ac_sources"; do
17670 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
17671 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
17672 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
17674 ac_config_links
="$ac_config_links $ac_config_links_1"
17680 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17683 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile gnulib/Makefile data-directory/Makefile"
17685 ac_config_commands
="$ac_config_commands default"
17687 cat >confcache
<<\_ACEOF
17688 # This file is a shell script that caches the results of configure
17689 # tests run on this system so they can be shared between configure
17690 # scripts and configure runs, see configure's option --config-cache.
17691 # It is not useful on other systems. If it contains results you don't
17692 # want to keep, you may remove or edit it.
17694 # config.status only pays attention to the cache file if you give it
17695 # the --recheck option to rerun configure.
17697 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17698 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17699 # following values.
17703 # The following way of writing the cache mishandles newlines in values,
17704 # but we know of no workaround that is simple, portable, and efficient.
17705 # So, we kill variables containing newlines.
17706 # Ultrix sh set writes to stderr and can't be redirected directly,
17707 # and sets the high bit in the cache file unless we assign to the vars.
17709 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17710 eval ac_val
=\$
$ac_var
17714 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17715 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17718 _ | IFS | as_nl
) ;; #(
17719 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17720 *) { eval $ac_var=; unset $ac_var;} ;;
17726 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17727 *${as_nl}ac_space
=\
*)
17728 # `set' does not quote correctly, so add quotes: double-quote
17729 # substitution turns \\\\ into \\, and sed turns \\ into \.
17732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17735 # `set' quotes correctly as required by POSIX, so do not add quotes.
17736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17745 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17747 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17749 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17750 if test -w "$cache_file"; then
17751 test "x$cache_file" != "x/dev/null" &&
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17753 $as_echo "$as_me: updating cache $cache_file" >&6;}
17754 cat confcache
>$cache_file
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17757 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17762 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17763 # Let make expand exec_prefix.
17764 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17766 DEFS
=-DHAVE_CONFIG_H
17770 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17771 # 1. Remove the extension, and $U if already installed.
17772 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17773 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17774 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17775 # will be set to the directory where LIBOBJS objects are built.
17776 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17777 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17779 LIBOBJS
=$ac_libobjs
17781 LTLIBOBJS
=$ac_ltlibobjs
17784 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17785 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
17786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17788 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
17789 as_fn_error
"conditional \"GMAKE\" was never defined.
17790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17792 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17793 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
17794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17799 if test -n "$gl_LIBOBJS"; then
17800 # Remove the extension.
17801 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17802 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17803 gl_libobjs
="$gl_libobjs $i.$ac_objext"
17804 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
17807 gl_LIBOBJS
=$gl_libobjs
17809 gl_LTLIBOBJS
=$gl_ltlibobjs
17815 if test -n "$gltests_LIBOBJS"; then
17816 # Remove the extension.
17817 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17818 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17819 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
17820 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
17823 gltests_LIBOBJS
=$gltests_libobjs
17825 gltests_LTLIBOBJS
=$gltests_ltlibobjs
17828 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17829 as_fn_error
"conditional \"AMDEP\" was never defined.
17830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17832 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17833 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
17834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17836 if test -n "$EXEEXT"; then
17838 am__EXEEXT_FALSE
='#'
17840 am__EXEEXT_TRUE
='#'
17846 : ${CONFIG_STATUS=./config.status}
17848 ac_clean_files_save
=$ac_clean_files
17849 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17851 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17853 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17855 # Generated by $as_me.
17856 # Run this file to recreate the current configuration.
17857 # Compiler output produced by configure, useful for debugging
17858 # configure, is in config.log if it exists.
17861 ac_cs_recheck=false
17864 SHELL=\${CONFIG_SHELL-$SHELL}
17867 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17868 ## -------------------- ##
17869 ## M4sh Initialization. ##
17870 ## -------------------- ##
17872 # Be more Bourne compatible
17873 DUALCASE
=1; export DUALCASE
# for MKS sh
17874 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17877 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17878 # is contrary to our usage. Disable this feature.
17879 alias -g '${1+"$@"}'='"$@"'
17880 setopt NO_GLOB_SUBST
17882 case `(set -o) 2>/dev/null` in #(
17894 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17895 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17896 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17897 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17898 # Prefer a ksh shell builtin over an external printf program on Solaris,
17899 # but without wasting forks for bash or zsh.
17900 if test -z "$BASH_VERSION$ZSH_VERSION" \
17901 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17902 as_echo='print
-r --'
17903 as_echo_n='print
-rn --'
17904 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17905 as_echo='printf %s
\n'
17906 as_echo_n='printf %s
'
17908 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17909 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17910 as_echo_n='/usr
/ucb
/echo -n'
17912 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17913 as_echo_n_body='eval
17917 expr "X$arg" : "X\\(.*\\)$as_nl";
17918 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17920 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17922 export as_echo_n_body
17923 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17925 export as_echo_body
17926 as_echo='sh
-c $as_echo_body as_echo
'
17929 # The user is always right.
17930 if test "${PATH_SEPARATOR+set}" != set; then
17932 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17933 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17940 # We need space, tab and new line, in precisely that order. Quoting is
17941 # there to prevent editors from complaining about space-tab.
17942 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17943 # splitting by setting IFS to empty value.)
17946 # Find who we are. Look in the path if we contain no directory separator.
17948 *[\\/]* ) as_myself=$0 ;;
17949 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17950 for as_dir in $PATH
17953 test -z "$as_dir" && as_dir=.
17954 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17960 # We did not find ourselves, most probably we were run as `sh COMMAND'
17961 # in which case we are not to be found in the path.
17962 if test "x$as_myself" = x
; then
17965 if test ! -f "$as_myself"; then
17966 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17970 # Unset variables that we do not need and which cause bugs (e.g. in
17971 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17972 # suppresses any "Segmentation fault" message there. '((' could
17973 # trigger a bug in pdksh 5.2.14.
17974 for as_var
in BASH_ENV ENV MAIL MAILPATH
17975 do eval test x\
${$as_var+set} = xset \
17976 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17989 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17992 # as_fn_error ERROR [LINENO LOG_FD]
17993 # ---------------------------------
17994 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17995 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17996 # script with status $?, using 1 if that was 0.
17999 as_status
=$?
; test $as_status -eq 0 && as_status
=1
18001 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18002 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18004 $as_echo "$as_me: error: $1" >&2
18005 as_fn_exit
$as_status
18009 # as_fn_set_status STATUS
18010 # -----------------------
18011 # Set $? to STATUS, without forking.
18012 as_fn_set_status
()
18015 } # as_fn_set_status
18017 # as_fn_exit STATUS
18018 # -----------------
18019 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18023 as_fn_set_status
$1
18029 # Portably unset VAR.
18032 { eval $1=; unset $1;}
18034 as_unset
=as_fn_unset
18035 # as_fn_append VAR VALUE
18036 # ----------------------
18037 # Append the text in VALUE to the end of the definition contained in VAR. Take
18038 # advantage of any shell optimizations that allow amortized linear growth over
18039 # repeated appends, instead of the typical quadratic growth present in naive
18041 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18042 eval 'as_fn_append ()
18053 # as_fn_arith ARG...
18054 # ------------------
18055 # Perform arithmetic evaluation on the ARGs, and store the result in the
18056 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18057 # must be portable across $(()) and expr.
18058 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18059 eval 'as_fn_arith ()
18066 as_val
=`expr "$@" || test $? -eq 1`
18071 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18072 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18078 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18079 as_basename
=basename
18084 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18090 as_me
=`$as_basename -- "$0" ||
18091 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18092 X"$0" : 'X\(//\)$' \| \
18093 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18095 sed '/^.*\/\([^/][^/]*\)\/*$/{
18109 # Avoid depending upon Character Ranges.
18110 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18111 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18112 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18113 as_cr_digits
='0123456789'
18114 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18116 ECHO_C
= ECHO_N
= ECHO_T
=
18117 case `echo -n x` in #(((((
18119 case `echo 'xy\c'` in
18120 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18122 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18129 rm -f conf$$ conf$$.exe conf$$.
file
18130 if test -d conf$$.dir
; then
18131 rm -f conf$$.dir
/conf$$.
file
18134 mkdir conf$$.dir
2>/dev
/null
18136 if (echo >conf$$.
file) 2>/dev
/null
; then
18137 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18139 # ... but there are two gotchas:
18140 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18141 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18142 # In both cases, we have to default to `cp -p'.
18143 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18145 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18153 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18154 rmdir conf$$.dir
2>/dev
/null
18159 # Create "$as_dir" as a directory, including parents if necessary.
18164 -*) as_dir
=.
/$as_dir;;
18166 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18170 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18171 *) as_qdir
=$as_dir;;
18173 as_dirs
="'$as_qdir' $as_dirs"
18174 as_dir
=`$as_dirname -- "$as_dir" ||
18175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18176 X"$as_dir" : 'X\(//\)[^/]' \| \
18177 X"$as_dir" : 'X\(//\)$' \| \
18178 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18179 $as_echo X"$as_dir" |
18180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18184 /^X\(\/\/\)[^/].*/{
18197 test -d "$as_dir" && break
18199 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18200 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
18204 if mkdir
-p .
2>/dev
/null
; then
18205 as_mkdir_p
='mkdir -p "$as_dir"'
18207 test -d .
/-p && rmdir .
/-p
18211 if test -x / >/dev
/null
2>&1; then
18212 as_test_x
='test -x'
18214 if ls -dL / >/dev
/null
2>&1; then
18221 if test -d "$1"; then
18227 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18228 ???[sx]*):;;*)false;;esac;fi
18232 as_executable_p
=$as_test_x
18234 # Sed expression to map a string onto a valid CPP name.
18235 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18237 # Sed expression to map a string onto a valid variable name.
18238 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18242 ## ----------------------------------- ##
18243 ## Main body of $CONFIG_STATUS script. ##
18244 ## ----------------------------------- ##
18246 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18249 # Save the log message, to keep $0 and so on meaningful, and to
18250 # report actual input values of CONFIG_FILES etc. instead of their
18251 # values after options handling.
18253 This file was extended by $as_me, which was
18254 generated by GNU Autoconf 2.64. Invocation command line was
18256 CONFIG_FILES = $CONFIG_FILES
18257 CONFIG_HEADERS = $CONFIG_HEADERS
18258 CONFIG_LINKS = $CONFIG_LINKS
18259 CONFIG_COMMANDS = $CONFIG_COMMANDS
18262 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18267 case $ac_config_files in *"
18268 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18271 case $ac_config_headers in *"
18272 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18277 # Files that config.status was made for.
18278 config_files="$ac_config_files"
18279 config_headers="$ac_config_headers"
18280 config_links="$ac_config_links"
18281 config_commands="$ac_config_commands"
18285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18287 \`$as_me' instantiates files and other configuration actions
18288 from templates according to the current configuration. Unless the files
18289 and actions are specified as TAGs, all are instantiated by default.
18291 Usage: $0 [OPTION]... [TAG]...
18293 -h, --help print this help, then exit
18294 -V, --version print version number and configuration settings, then exit
18295 -q, --quiet, --silent
18296 do not print progress messages
18297 -d, --debug don't remove temporary files
18298 --recheck update $as_me by reconfiguring in the same conditions
18299 --file=FILE[:TEMPLATE]
18300 instantiate the configuration file FILE
18301 --header=FILE[:TEMPLATE]
18302 instantiate the configuration header FILE
18304 Configuration files:
18307 Configuration headers:
18310 Configuration links:
18313 Configuration commands:
18316 Report bugs to the package provider."
18319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18322 configured by $0, generated by GNU Autoconf 2.64,
18323 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18325 Copyright (C) 2009 Free Software Foundation, Inc.
18326 This config.status script is free software; the Free Software Foundation
18327 gives unlimited permission to copy, distribute and modify it."
18334 test -n "\$AWK" || AWK=awk
18337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18338 # The default lists apply if the user does not specify any file.
18344 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18345 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18356 # Handling of the options.
18357 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18359 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18360 $as_echo "$ac_cs_version"; exit ;;
18361 --debug |
--debu |
--deb |
--de |
--d |
-d )
18363 --file |
--fil |
--fi |
--f )
18366 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18368 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18369 ac_need_defaults
=false
;;
18370 --header |
--heade |
--head |
--hea )
18373 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18375 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18376 ac_need_defaults
=false
;;
18378 # Conflict between --help and --header
18379 as_fn_error
"ambiguous option: \`$1'
18380 Try \`$0 --help' for more information.";;
18381 --help |
--hel |
-h )
18382 $as_echo "$ac_cs_usage"; exit ;;
18383 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18384 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18387 # This is an error.
18388 -*) as_fn_error
"unrecognized option: \`$1'
18389 Try \`$0 --help' for more information." ;;
18391 *) as_fn_append ac_config_targets
" $1"
18392 ac_need_defaults
=false
;;
18398 ac_configure_extra_args
=
18400 if $ac_cs_silent; then
18402 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18407 if \$ac_cs_recheck; then
18408 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18410 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18411 CONFIG_SHELL='$SHELL'
18412 export CONFIG_SHELL
18417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18421 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18422 ## Running $as_me. ##
18428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18432 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18433 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18439 # Handling of arguments.
18440 for ac_config_target
in $ac_config_targets
18442 case $ac_config_target in
18443 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18444 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
18445 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18446 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18447 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
18448 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18449 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
18450 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18451 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
18452 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
18453 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18455 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18460 # If the user did not use the arguments to specify the items to instantiate,
18461 # then the envvar interface is used. Set only those that are not.
18462 # We use the long form for the default assignment because of an extremely
18463 # bizarre bug on SunOS 4.1.3.
18464 if $ac_need_defaults; then
18465 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18466 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18467 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18468 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18471 # Have a temporary directory for convenience. Make it in the build tree
18472 # simply because there is no reason against having it here, and in addition,
18473 # creating and moving files from /tmp can sometimes cause problems.
18474 # Hook for its removal unless debugging.
18475 # Note that there is a small window in which the directory will not be cleaned:
18476 # after its creation but before its name has been assigned to `$tmp'.
18480 trap 'exit_status=$?
18481 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18483 trap 'as_fn_exit 1' 1 2 13 15
18485 # Create a (secure) tmp directory for tmp files.
18488 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18489 test -n "$tmp" && test -d "$tmp"
18492 tmp
=.
/conf$$
-$RANDOM
18493 (umask 077 && mkdir
"$tmp")
18494 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
18496 # Set up the scripts for CONFIG_FILES section.
18497 # No need to generate them if there are no CONFIG_FILES.
18498 # This happens for instance with `./config.status config.h'.
18499 if test -n "$CONFIG_FILES"; then
18501 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18502 ac_cs_awk_getline
=:
18503 ac_cs_awk_pipe_init
=
18504 ac_cs_awk_read_file
='
18505 while ((getline aline < (F[key])) > 0)
18508 ac_cs_awk_pipe_fini
=
18510 ac_cs_awk_getline
=false
18511 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18512 ac_cs_awk_read_file
='
18514 print "cat " F[key] " &&"
18515 '$ac_cs_awk_pipe_init
18516 # The final `:' finishes the AND list.
18517 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18519 ac_cr
=`echo X | tr X '\015'`
18520 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18521 # But we know of no other shell where ac_cr would be empty at this
18522 # point, so we can use a bashism as a fallback.
18523 if test "x$ac_cr" = x
; then
18524 eval ac_cr
=\$
\'\\r
\'
18526 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18527 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18530 ac_cs_awk_cr
=$ac_cr
18533 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18536 # Create commands to substitute file output variables.
18538 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18539 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18540 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18543 } >conf$
$files.sh
&&
18544 . .
/conf$
$files.sh ||
18545 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
18546 rm -f conf$
$files.sh
18549 echo "cat >conf$$subs.awk <<_ACEOF" &&
18550 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18552 } >conf$$subs.sh ||
18553 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18554 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18556 for ac_last_try in false false false false false :; do
18557 . ./conf$$subs.sh ||
18558 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18560 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18561 if test $ac_delim_n = $ac_delim_num; then
18563 elif $ac_last_try; then
18564 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18566 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18569 rm -f conf$$subs.sh
18571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18572 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18576 s/^/S["/; s
/!.
*/"]=/
18586 s/\(.\{148\}\).*/\1/
18588 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18593 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18600 s/\(.\{148\}\).*/\1/
18602 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18606 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18611 ' <conf$$subs.awk | sed '
18616 ' >>$CONFIG_STATUS || ac_write_fail=1
18617 rm -f conf$$subs.awk
18618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18620 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18621 for (key in S) S_is_set[key] = 1
18623 \$ac_cs_awk_pipe_init
18627 nfields = split(line, field, "@
")
18629 len = length(field[1])
18630 for (i = 2; i < nfields; i++) {
18632 keylen = length(key)
18633 if (S_is_set[key]) {
18635 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18636 len += length(value) + length(field[++i])
18641 if (nfields == 3 && !substed) {
18643 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18644 \$ac_cs_awk_read_file
18650 \$ac_cs_awk_pipe_fini
18653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18654 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18655 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18658 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18659 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
18662 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18663 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18664 # trailing colons and then remove the whole line if VPATH becomes empty
18665 # (actually we leave an empty line to preserve line numbers).
18666 if test "x
$srcdir" = x.; then
18667 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18668 s/:*\$(srcdir):*/:/
18669 s/:*\${srcdir}:*/:/
18671 s/^\([^=]*=[ ]*\):*/\1/
18677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18678 fi # test -n "$CONFIG_FILES"
18680 # Set up the scripts for CONFIG_HEADERS section.
18681 # No need to generate them if there are no CONFIG_HEADERS.
18682 # This happens for instance with `./config.status Makefile'.
18683 if test -n "$CONFIG_HEADERS"; then
18684 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18688 # Transform confdefs.h into an awk script `defines.awk', embedded as
18689 # here-document in config.status, that substitutes the proper values into
18690 # config.h.in to produce config.h.
18692 # Create a delimiter string that does not exist in confdefs.h, to ease
18693 # handling of long lines.
18695 for ac_last_try in false false :; do
18696 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18697 if test -z "$ac_t"; then
18699 elif $ac_last_try; then
18700 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
18702 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18706 # For the awk script, D is an array of macro values keyed by name,
18707 # likewise P contains macro parameters if any. Preserve backslash
18708 # newline sequences.
18710 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18712 s/.\{148\}/&'"$ac_delim"'/g
18715 s/^[ ]*#[ ]*define[ ][ ]*/ /
18722 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18724 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18728 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18729 D["\
1"]=" \
3\\\\\\n
"\\/p
18731 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18736 s/.\{148\}/&'"$ac_delim"'/g
18741 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18744 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18746 ' <confdefs.h | sed '
18747 s/'"$ac_delim"'/"\\\
18748 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18751 for (key in D) D_is_set[key] = 1
18754 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18756 split(line, arg, " ")
18757 if (arg[1] == "#") {
18761 defundef
= substr
(arg
[1], 2)
18764 split(mac1
, mac2
, "(") #)
18766 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18767 if (D_is_set
[macro
]) {
18768 # Preserve the white space surrounding the "#".
18769 print prefix
"define", macro P
[macro
] D
[macro
]
18772 # Replace #undef with comments. This is necessary, for example,
18773 # in the case of _POSIX_SOURCE, which is predefined and required
18774 # on some systems where configure will not decide to define it.
18775 if (defundef
== "undef") {
18776 print
"/*", prefix defundef
, macro
, "*/"
18784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18785 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
18786 fi # test -n "$CONFIG_HEADERS"
18789 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18794 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18796 case $ac_mode$ac_tag in
18798 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18799 :[FH
]-) ac_tag
=-:-;;
18800 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18817 -) ac_f
="$tmp/stdin";;
18818 *) # Look for the file first in the build tree, then in the source tree
18819 # (if the path is not absolute). The absolute path cannot be DOS-style,
18820 # because $ac_f cannot contain `:'.
18824 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18826 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
18828 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18829 as_fn_append ac_file_inputs
" '$ac_f'"
18832 # Let's still pretend it is `configure' which instantiates (i.e., don't
18833 # use $as_me), people would be surprised to read:
18834 # /* config.h. Generated by config.status. */
18835 configure_input
='Generated from '`
18836 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18838 if test x
"$ac_file" != x-
; then
18839 configure_input
="$ac_file. $configure_input"
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18841 $as_echo "$as_me: creating $ac_file" >&6;}
18843 # Neutralize special characters interpreted by sed in replacement strings.
18844 case $configure_input in #(
18845 *\
&* |
*\|
* |
*\\* )
18846 ac_sed_conf_input
=`$as_echo "$configure_input" |
18847 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18848 *) ac_sed_conf_input
=$configure_input;;
18852 *:-:* |
*:-) cat >"$tmp/stdin" \
18853 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
18858 ac_dir
=`$as_dirname -- "$ac_file" ||
18859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18860 X"$ac_file" : 'X\(//\)[^/]' \| \
18861 X"$ac_file" : 'X\(//\)$' \| \
18862 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18863 $as_echo X"$ac_file" |
18864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18868 /^X\(\/\/\)[^/].*/{
18881 as_dir
="$ac_dir"; as_fn_mkdir_p
18885 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18887 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18888 # A ".." for each directory in $ac_dir_suffix.
18889 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18890 case $ac_top_builddir_sub in
18891 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18892 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18895 ac_abs_top_builddir
=$ac_pwd
18896 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18897 # for backward compatibility:
18898 ac_top_builddir
=$ac_top_build_prefix
18901 .
) # We are building in place.
18903 ac_top_srcdir
=$ac_top_builddir_sub
18904 ac_abs_top_srcdir
=$ac_pwd ;;
18905 [\\/]* | ?
:[\\/]* ) # Absolute name.
18906 ac_srcdir
=$srcdir$ac_dir_suffix;
18907 ac_top_srcdir
=$srcdir
18908 ac_abs_top_srcdir
=$srcdir ;;
18909 *) # Relative name.
18910 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18911 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18912 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18914 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18924 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18925 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18927 ac_MKDIR_P
=$MKDIR_P
18929 [\\/$
]* | ?
:[\\/]* ) ;;
18930 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18935 # If the template does not know about datarootdir, expand it.
18936 # FIXME: This hack should be removed a few years after 2.60.
18937 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18948 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18949 *datarootdir
*) ac_datarootdir_seen
=yes;;
18950 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18952 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18955 ac_datarootdir_hack='
18956 s&@datadir@&$datadir&g
18957 s&@docdir@&$docdir&g
18958 s&@infodir@&$infodir&g
18959 s&@localedir@&$localedir&g
18960 s&@mandir@&$mandir&g
18961 s&\\\${datarootdir}&$datarootdir&g' ;;
18965 # Neutralize VPATH when `$srcdir' = `.'.
18966 # Shell code in configure.ac might set extrasub.
18967 # FIXME: do we really want to maintain this feature?
18968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18969 ac_sed_extra="$ac_vpsub
18972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18974 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18975 s|@configure_input@|
$ac_sed_conf_input|
;t t
18976 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18977 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18978 s
&@srcdir@
&$ac_srcdir&;t t
18979 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18980 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18981 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18982 s
&@builddir@
&$ac_builddir&;t t
18983 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18984 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18985 s
&@INSTALL@
&$ac_INSTALL&;t t
18986 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18987 $ac_datarootdir_hack
18989 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18990 if $ac_cs_awk_getline; then
18991 $AWK -f "$tmp/subs.
awk"
18993 $AWK -f "$tmp/subs.
awk" | $SHELL
18995 || as_fn_error "could not create
$ac_file" "$LINENO" 5
18997 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18998 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18999 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19001 which seems to be undefined. Please make sure it is defined." >&5
19002 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19003 which seems to be undefined. Please make sure it is defined." >&2;}
19007 -) cat "$tmp/out" && rm -f "$tmp/out";;
19008 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19010 || as_fn_error "could not create $ac_file" "$LINENO" 5
19016 if test x"$ac_file" != x-; then
19018 $as_echo "/* $configure_input */" \
19019 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19020 } >"$tmp/config.h" \
19021 || as_fn_error "could not create $ac_file" "$LINENO" 5
19022 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19024 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19027 mv "$tmp/config.h" "$ac_file" \
19028 || as_fn_error "could not create $ac_file" "$LINENO" 5
19031 $as_echo "/* $configure_input */" \
19032 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19033 || as_fn_error "could not create -" "$LINENO" 5
19035 # Compute "$ac_file"'s index
in $config_headers.
19038 for _am_header
in $config_headers :; do
19039 case $_am_header in
19040 $_am_arg |
$_am_arg:* )
19043 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
19046 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19047 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19048 X"$_am_arg" : 'X\(//\)[^/]' \| \
19049 X"$_am_arg" : 'X\(//\)$' \| \
19050 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19051 $as_echo X"$_am_arg" |
19052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19056 /^X\(\/\/\)[^/].*/{
19068 s/.*/./; q'`/stamp-h
$_am_stamp_count
19075 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19078 # Prefer the file from the source tree if names are identical.
19079 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
19080 ac_source
=$srcdir/$ac_source
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19084 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19086 if test ! -r "$ac_source"; then
19087 as_fn_error
"$ac_source: file not found" "$LINENO" 5
19091 # Try a relative symlink, then a hard link, then a copy.
19093 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
19094 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
19096 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
19097 ln "$ac_source" "$ac_file" 2>/dev
/null ||
19098 cp -p "$ac_source" "$ac_file" ||
19099 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19102 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19103 $as_echo "$as_me: executing $ac_file commands" >&6;}
19108 case $ac_file$ac_mode in
19109 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
19110 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19111 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19112 # are listed without --file. Let's play safe and only enable the eval
19113 # if we detect the quoting.
19114 case $CONFIG_FILES in
19115 *\'*) eval set x
"$CONFIG_FILES" ;;
19116 *) set x
$CONFIG_FILES ;;
19121 # Strip MF so we end up with the name of the file.
19122 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19123 # Check whether this is an Automake generated Makefile or not.
19124 # We used to match only the files named `Makefile.in', but
19125 # some people rename them; so instead we look at the file content.
19126 # Grep'ing the first line is not enough: some people post-process
19127 # each Makefile.in and add a new line on top of each file to say so.
19128 # Grep'ing the whole file is not good either: AIX grep has a line
19129 # limit of 2048, but all sed's we know have understand at least 4000.
19130 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19131 dirpart
=`$as_dirname -- "$mf" ||
19132 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19133 X"$mf" : 'X\(//\)[^/]' \| \
19134 X"$mf" : 'X\(//\)$' \| \
19135 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19141 /^X\(\/\/\)[^/].*/{
19157 # Extract the definition of DEPDIR, am__include, and am__quote
19158 # from the Makefile without running `make'.
19159 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19160 test -z "$DEPDIR" && continue
19161 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19162 test -z "am__include" && continue
19163 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19164 # When using ansi2knr, U may be empty or an underscore; expand it
19165 U
=`sed -n 's/^U = //p' < "$mf"`
19166 # Find all dependency output files, they are included files with
19167 # $(DEPDIR) in their names. We invoke sed twice because it is the
19168 # simplest approach to changing $(DEPDIR) to its actual value in the
19170 for file in `sed -n "
19171 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19172 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19173 # Make sure the directory exists.
19174 test -f "$dirpart/$file" && continue
19175 fdir
=`$as_dirname -- "$file" ||
19176 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19177 X"$file" : 'X\(//\)[^/]' \| \
19178 X"$file" : 'X\(//\)$' \| \
19179 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19180 $as_echo X"$file" |
19181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19185 /^X\(\/\/\)[^/].*/{
19198 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
19199 # echo "creating $dirpart/$file"
19200 echo '# dummy' > "$dirpart/$file"
19206 case x
$CONFIG_HEADERS in
19207 xconfig.h
:config.
in)
19218 ac_clean_files
=$ac_clean_files_save
19220 test $ac_write_fail = 0 ||
19221 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19224 # configure is writing to config.log, and then calls config.status.
19225 # config.status does its own redirection, appending to config.log.
19226 # Unfortunately, on DOS this fails, as config.log is still kept open
19227 # by configure, so config.status won't be able to write to it; its
19228 # output is simply discarded. So we exec the FD to /dev/null,
19229 # effectively closing config.log, so it can be properly (re)opened and
19230 # appended to by config.status. When coming back to configure, we
19231 # need to make the FD available again.
19232 if test "$no_create" != yes; then
19234 ac_config_status_args
=
19235 test "$silent" = yes &&
19236 ac_config_status_args
="$ac_config_status_args --quiet"
19238 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19240 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19241 # would make configure fail if this is the last instruction.
19242 $ac_cs_success || as_fn_exit $?
19246 # CONFIG_SUBDIRS section.
19248 if test "$no_recursion" != yes; then
19250 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19251 # so they do not pile up.
19252 ac_sub_configure_args
=
19254 eval "set x $ac_configure_args"
19258 if test -n "$ac_prev"; then
19263 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19264 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19265 ac_prev
=cache_file
;;
19266 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19267 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19270 --config-cache |
-C)
19272 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19274 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19276 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19278 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19280 --disable-option-checking)
19284 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19286 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19290 # Always prepend --prefix to ensure using the same prefix
19291 # in subdir configurations.
19292 ac_arg
="--prefix=$prefix"
19294 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19296 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19299 if test "$silent" = yes; then
19300 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19303 # Always prepend --disable-option-checking to silence warnings, since
19304 # different subdirs can have different --enable and --with options.
19305 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19308 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19310 # Do not complain, so a configure script can configure whichever
19311 # parts of a large source tree are present.
19312 test -d "$srcdir/$ac_dir" ||
continue
19314 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19315 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19316 $as_echo "$ac_msg" >&6
19317 as_dir
="$ac_dir"; as_fn_mkdir_p
19321 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19323 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19324 # A ".." for each directory in $ac_dir_suffix.
19325 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19326 case $ac_top_builddir_sub in
19327 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19328 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19331 ac_abs_top_builddir
=$ac_pwd
19332 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19333 # for backward compatibility:
19334 ac_top_builddir
=$ac_top_build_prefix
19337 .
) # We are building in place.
19339 ac_top_srcdir
=$ac_top_builddir_sub
19340 ac_abs_top_srcdir
=$ac_pwd ;;
19341 [\\/]* | ?
:[\\/]* ) # Absolute name.
19342 ac_srcdir
=$srcdir$ac_dir_suffix;
19343 ac_top_srcdir
=$srcdir
19344 ac_abs_top_srcdir
=$srcdir ;;
19345 *) # Relative name.
19346 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19347 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19348 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19350 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19355 # Check for guested configure; otherwise get Cygnus style configure.
19356 if test -f "$ac_srcdir/configure.gnu"; then
19357 ac_sub_configure
=$ac_srcdir/configure.gnu
19358 elif test -f "$ac_srcdir/configure"; then
19359 ac_sub_configure
=$ac_srcdir/configure
19360 elif test -f "$ac_srcdir/configure.in"; then
19361 # This should be Cygnus configure.
19362 ac_sub_configure
=$ac_aux_dir/configure
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19365 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19369 # The recursion is here.
19370 if test -n "$ac_sub_configure"; then
19371 # Make the cache file name correct relative to the subdirectory.
19372 case $cache_file in
19373 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19374 *) # Relative name.
19375 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19378 { $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
19379 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19380 # The eval makes quoting arguments work.
19381 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19382 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19383 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19389 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19391 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}