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>
592 enable_option_checking
=no
593 ac_subst_vars
='am__EXEEXT_FALSE
656 TARGET_SYSTEM_ROOT_DEFINE
694 INSTALL_STRIP_PROGRAM
727 HAVE_SIGNED_SIG_ATOMIC_T
731 BITSIZEOF_SIG_ATOMIC_T
740 HAVE_UNSIGNED_LONG_LONG_INT
793 GL_COND_LIBTOOL_FALSE
838 MAINTAINER_MODE_FALSE
867 program_transform_name
878 ac_subst_files
='host_makefile_frag'
880 enable_option_checking
881 enable_maintainer_mode
884 enable_dependency_tracking
885 with_separate_debug_dir
887 with_relocated_sources
911 enable_build_warnings
912 enable_gdb_build_warnings
919 ac_precious_vars
='build_alias
931 ac_subdirs_all
='doc testsuite
936 # Initialize some variables set by options.
938 ac_init_version
=false
939 ac_unrecognized_opts
=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
950 program_transform_name
=s
,x
,x
,
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir
='${exec_prefix}/bin'
965 sbindir
='${exec_prefix}/sbin'
966 libexecdir
='${exec_prefix}/libexec'
967 datarootdir
='${prefix}/share'
968 datadir
='${datarootdir}'
969 sysconfdir
='${prefix}/etc'
970 sharedstatedir
='${prefix}/com'
971 localstatedir
='${prefix}/var'
972 includedir
='${prefix}/include'
973 oldincludedir
='/usr/include'
974 docdir
='${datarootdir}/doc/${PACKAGE}'
975 infodir
='${datarootdir}/info'
980 libdir
='${exec_prefix}/lib'
981 localedir
='${datarootdir}/locale'
982 mandir
='${datarootdir}/man'
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\
$ac_option
996 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1002 case $ac_dashdash$ac_option in
1006 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1008 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1009 bindir
=$ac_optarg ;;
1011 -build |
--build |
--buil |
--bui |
--bu)
1012 ac_prev
=build_alias
;;
1013 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1014 build_alias
=$ac_optarg ;;
1016 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1017 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1018 ac_prev
=cache_file
;;
1019 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1020 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1021 cache_file
=$ac_optarg ;;
1023 --config-cache |
-C)
1024 cache_file
=config.cache
;;
1026 -datadir |
--datadir |
--datadi |
--datad)
1028 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1029 datadir
=$ac_optarg ;;
1031 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1032 |
--dataroo |
--dataro |
--datar)
1033 ac_prev
=datarootdir
;;
1034 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1035 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1036 datarootdir
=$ac_optarg ;;
1038 -disable-* |
--disable-*)
1039 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1042 as_fn_error
"invalid feature name: $ac_useropt"
1043 ac_useropt_orig
=$ac_useropt
1044 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1047 "enable_
$ac_useropt"
1049 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1050 ac_unrecognized_sep
=', ';;
1052 eval enable_
$ac_useropt=no
;;
1054 -docdir |
--docdir |
--docdi |
--doc |
--do)
1056 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1057 docdir
=$ac_optarg ;;
1059 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1061 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1062 dvidir
=$ac_optarg ;;
1064 -enable-* |
--enable-*)
1065 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1068 as_fn_error
"invalid feature name: $ac_useropt"
1069 ac_useropt_orig
=$ac_useropt
1070 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1073 "enable_
$ac_useropt"
1075 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1076 ac_unrecognized_sep
=', ';;
1078 eval enable_
$ac_useropt=\
$ac_optarg ;;
1080 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1081 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1082 |
--exec |
--exe |
--ex)
1083 ac_prev
=exec_prefix
;;
1084 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1085 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1086 |
--exec=* |
--exe=* |
--ex=*)
1087 exec_prefix
=$ac_optarg ;;
1089 -gas |
--gas |
--ga |
--g)
1090 # Obsolete; use --with-gas.
1093 -help |
--help |
--hel |
--he |
-h)
1094 ac_init_help
=long
;;
1095 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1096 ac_init_help
=recursive
;;
1097 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1098 ac_init_help
=short
;;
1100 -host |
--host |
--hos |
--ho)
1101 ac_prev
=host_alias
;;
1102 -host=* |
--host=* |
--hos=* |
--ho=*)
1103 host_alias
=$ac_optarg ;;
1105 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1107 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1109 htmldir
=$ac_optarg ;;
1111 -includedir |
--includedir |
--includedi |
--included |
--include \
1112 |
--includ |
--inclu |
--incl |
--inc)
1113 ac_prev
=includedir
;;
1114 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1115 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1116 includedir
=$ac_optarg ;;
1118 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1120 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1121 infodir
=$ac_optarg ;;
1123 -libdir |
--libdir |
--libdi |
--libd)
1125 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1126 libdir
=$ac_optarg ;;
1128 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1129 |
--libexe |
--libex |
--libe)
1130 ac_prev
=libexecdir
;;
1131 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1132 |
--libexe=* |
--libex=* |
--libe=*)
1133 libexecdir
=$ac_optarg ;;
1135 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1136 ac_prev
=localedir
;;
1137 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1138 localedir
=$ac_optarg ;;
1140 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1141 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1142 ac_prev
=localstatedir
;;
1143 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1144 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1145 localstatedir
=$ac_optarg ;;
1147 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1149 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1150 mandir
=$ac_optarg ;;
1152 -nfp |
--nfp |
--nf)
1153 # Obsolete; use --without-fp.
1156 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1157 |
--no-cr |
--no-c |
-n)
1160 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1161 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1164 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1165 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1166 |
--oldin |
--oldi |
--old |
--ol |
--o)
1167 ac_prev
=oldincludedir
;;
1168 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1169 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1170 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1171 oldincludedir
=$ac_optarg ;;
1173 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1175 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1176 prefix
=$ac_optarg ;;
1178 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1179 |
--program-pre |
--program-pr |
--program-p)
1180 ac_prev
=program_prefix
;;
1181 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1182 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1183 program_prefix
=$ac_optarg ;;
1185 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1186 |
--program-suf |
--program-su |
--program-s)
1187 ac_prev
=program_suffix
;;
1188 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1189 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1190 program_suffix
=$ac_optarg ;;
1192 -program-transform-name |
--program-transform-name \
1193 |
--program-transform-nam |
--program-transform-na \
1194 |
--program-transform-n |
--program-transform- \
1195 |
--program-transform |
--program-transfor \
1196 |
--program-transfo |
--program-transf \
1197 |
--program-trans |
--program-tran \
1198 |
--progr-tra |
--program-tr |
--program-t)
1199 ac_prev
=program_transform_name
;;
1200 -program-transform-name=* |
--program-transform-name=* \
1201 |
--program-transform-nam=* |
--program-transform-na=* \
1202 |
--program-transform-n=* |
--program-transform-=* \
1203 |
--program-transform=* |
--program-transfor=* \
1204 |
--program-transfo=* |
--program-transf=* \
1205 |
--program-trans=* |
--program-tran=* \
1206 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1207 program_transform_name
=$ac_optarg ;;
1209 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1211 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1212 pdfdir
=$ac_optarg ;;
1214 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1216 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1219 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1220 |
-silent |
--silent |
--silen |
--sile |
--sil)
1223 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1225 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1227 sbindir
=$ac_optarg ;;
1229 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1230 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1231 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1233 ac_prev
=sharedstatedir
;;
1234 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1235 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1236 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1238 sharedstatedir
=$ac_optarg ;;
1240 -site |
--site |
--sit)
1242 -site=* |
--site=* |
--sit=*)
1245 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1247 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1248 srcdir
=$ac_optarg ;;
1250 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1251 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1252 ac_prev
=sysconfdir
;;
1253 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1254 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1255 sysconfdir
=$ac_optarg ;;
1257 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1258 ac_prev
=target_alias
;;
1259 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1260 target_alias
=$ac_optarg ;;
1262 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1265 -version |
--version |
--versio |
--versi |
--vers |
-V)
1266 ac_init_version
=: ;;
1269 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1272 as_fn_error
"invalid package name: $ac_useropt"
1273 ac_useropt_orig
=$ac_useropt
1274 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1279 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1280 ac_unrecognized_sep
=', ';;
1282 eval with_
$ac_useropt=\
$ac_optarg ;;
1284 -without-* |
--without-*)
1285 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1288 as_fn_error
"invalid package name: $ac_useropt"
1289 ac_useropt_orig
=$ac_useropt
1290 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1295 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1296 ac_unrecognized_sep
=', ';;
1298 eval with_
$ac_useropt=no
;;
1301 # Obsolete; use --with-x.
1304 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1305 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1306 ac_prev
=x_includes
;;
1307 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1308 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1309 x_includes
=$ac_optarg ;;
1311 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1312 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1313 ac_prev
=x_libraries
;;
1314 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1315 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1316 x_libraries
=$ac_optarg ;;
1318 -*) as_fn_error
"unrecognized option: \`$ac_option'
1319 Try \`$0 --help' for more information."
1323 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 case $ac_envvar in #(
1326 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1327 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1329 eval $ac_envvar=\
$ac_optarg
1330 export $ac_envvar ;;
1333 # FIXME: should be removed in autoconf 3.0.
1334 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1336 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 if test -n "$ac_prev"; then
1344 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1345 as_fn_error
"missing argument to $ac_option"
1348 if test -n "$ac_unrecognized_opts"; then
1349 case $enable_option_checking in
1351 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1352 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1356 # Check all directory arguments for consistency.
1357 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
1362 eval ac_val
=\$
$ac_var
1363 # Remove trailing slashes.
1366 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1367 eval $ac_var=\
$ac_val;;
1369 # Be sure to have absolute directory names.
1371 [\\/$
]* | ?
:[\\/]* ) continue;;
1372 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1374 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1377 # There might be people who depend on the old broken behavior: `$host'
1378 # used to hold the argument of --host etc.
1379 # FIXME: To remove some day.
1382 target
=$target_alias
1384 # FIXME: To remove some day.
1385 if test "x$host_alias" != x
; then
1386 if test "x$build_alias" = x
; then
1387 cross_compiling
=maybe
1388 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389 If a cross compiler is detected then cross compile mode will be used." >&2
1390 elif test "x$build_alias" != "x$host_alias"; then
1396 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1398 test "$silent" = yes && exec 6>/dev
/null
1401 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di
=`ls -di .` &&
1403 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1404 as_fn_error
"working directory cannot be determined"
1405 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406 as_fn_error
"pwd does not report name of working directory"
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411 ac_srcdir_defaulted
=yes
1412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir
=`$as_dirname -- "$as_myself" ||
1414 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$as_myself" : 'X\(//\)[^/]' \| \
1416 X"$as_myself" : 'X\(//\)$' \| \
1417 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1418 $as_echo X"$as_myself" |
1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1441 ac_srcdir_defaulted
=no
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1445 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1447 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451 # When building in place, set srcdir=.
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then
1455 # Remove unnecessary trailing slashes from srcdir.
1456 # Double slashes in file names in object file debugging info
1457 # mess up M-x gdb in Emacs.
1459 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 for ac_var
in $ac_precious_vars; do
1462 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1464 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1469 # Report the --help message.
1471 if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
1475 \`configure' configures this package to adapt to many kinds of systems.
1477 Usage: $0 [OPTION]... [VAR=VALUE]...
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480 VAR=VALUE. See below for descriptions of some of the useful variables.
1482 Defaults for the options are specified in brackets.
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
1489 -q, --quiet, --silent do not print \`checking...' messages
1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1495 Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
1497 [$ac_default_prefix]
1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1501 By default, \`make install' will install all the files in
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504 for instance \`--prefix=\$HOME'.
1506 For better control, use the options below.
1508 Fine tuning of the installation directories:
1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
1533 --program-prefix=PREFIX prepend PREFIX to installed program names
1534 --program-suffix=SUFFIX append SUFFIX to installed program names
1535 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1538 --x-includes=DIR X include files are
in DIR
1539 --x-libraries=DIR X library files are
in DIR
1542 --build=BUILD configure
for building on BUILD
[guessed
]
1543 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1544 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1548 if test -n "$ac_init_help"; then
1553 --disable-option-checking ignore unrecognized
--enable/--with options
1554 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1555 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1556 --enable-maintainer-mode enable make rules and dependencies not useful
1557 (and sometimes confusing
) to the casual installer
1558 --enable-plugins Enable support
for plugins
(defaults no
)
1559 --disable-largefile omit support
for large files
1560 --disable-dependency-tracking speeds up one-time build
1561 --enable-dependency-tracking do not reject slow dependency extractors
1562 --enable-targets=TARGETS
1563 alternative target configurations
1564 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1565 --disable-gdbcli disable command-line interface
(CLI
)
1566 --disable-gdbmi disable machine-interface
(MI
)
1567 --enable-tui enable full-screen terminal user interface
(TUI
)
1568 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1569 --enable-profiling enable profiling of GDB
1570 --disable-rpath do not hardcode runtime library paths
1571 --enable-werror treat compile warnings as errors
1572 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1573 --enable-gdb-build-warnings
1574 enable GDB specific build-time compiler warnings
if
1576 --enable-sim link gdb with simulator
1577 --enable-multi-ice build the multi-ice-gdb-server
1580 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1581 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1582 --with-separate-debug-dir=PATH
1583 look for global separate debug info
in this path
1585 --with-gdb-datadir=PATH
look for global separate data files
in this path
1587 --with-relocated-sources=PATH
1588 automatically relocate this path
for source files
1589 --with-libunwind use libunwind frame unwinding support
1590 --with-curses use the curses library instead of the termcap
1592 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1593 --with-bugurl=URL Direct users to URL to report a bug
1594 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1595 --with-libiconv-prefix=DIR
1596 search
for libiconv
in DIR
/include and DIR
/lib
1597 --with-system-readline use installed readline library
1598 --with-expat include expat support
(auto
/yes
/no
)
1599 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1600 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1601 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1602 --with-python include python support (auto/yes/no/<path>)
1603 --without-included-regex
1604 don't use included regex
; this is the default on
1605 systems with version
2 of the GNU C library
(use
1606 with caution on other system
)
1607 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1608 --with-system-gdbinit=PATH
1609 automatically load a system-wide gdbinit
file
1610 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1611 --with-tk directory containing tk configuration
(tkConfig.sh
)
1612 --with-x use the X Window System
1614 Some influential environment variables
:
1615 CC C compiler
command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1618 nonstandard directory
<lib dir
>
1619 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1620 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1621 you have headers
in a nonstandard directory
<include dir
>
1623 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1624 the first program found out of: `bison
-y', `byacc', `yacc'.
1625 YFLAGS The list of arguments that will be passed by default to $YACC.
1626 This script will default YFLAGS to the empty string to avoid a
1627 default value of `-d' given by some make applications.
1628 XMKMF Path to xmkmf, Makefile generator for X Window System
1630 Use these variables to override the choices made by `configure' or to
help
1631 it to
find libraries and programs with nonstandard names
/locations.
1633 Report bugs to the package provider.
1638 if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1640 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1647 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1649 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1654 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1657 ac_abs_top_builddir
=$ac_pwd
1658 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir
=$ac_top_build_prefix
1663 .
) # We are building in place.
1665 ac_top_srcdir
=$ac_top_builddir_sub
1666 ac_abs_top_srcdir
=$ac_pwd ;;
1667 [\\/]* | ?
:[\\/]* ) # Absolute name.
1668 ac_srcdir
=$srcdir$ac_dir_suffix;
1669 ac_top_srcdir
=$srcdir
1670 ac_abs_top_srcdir
=$srcdir ;;
1672 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1676 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1678 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1679 # Check for guested configure.
1680 if test -f "$ac_srcdir/configure.gnu"; then
1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683 elif test -f "$ac_srcdir/configure"; then
1685 $SHELL "$ac_srcdir/configure" --help=recursive
1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1693 test -n "$ac_init_help" && exit $ac_status
1694 if $ac_init_version; then
1697 generated by GNU Autoconf
2.64
1699 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1700 This configure
script is free software
; the Free Software Foundation
1701 gives unlimited permission to copy
, distribute and modify it.
1706 ## ------------------------ ##
1707 ## Autoconf initialization. ##
1708 ## ------------------------ ##
1710 # ac_fn_c_try_compile LINENO
1711 # --------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_compile
()
1715 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1716 rm -f conftest.
$ac_objext
1717 if { { ac_try
="$ac_compile"
1719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 } # ac_fn_c_try_compile
1748 # ac_fn_c_try_cpp LINENO
1749 # ----------------------
1750 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_cpp conftest.$ac_ext"
1756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1757 *) ac_try_echo
=$ac_try;;
1759 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1763 if test -s conftest.err
; then
1764 grep -v '^ *+' conftest.err
>conftest.er1
1765 cat conftest.er1
>&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } >/dev
/null
&& {
1770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.
$ac_ext >&5
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1785 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788 # the include files in INCLUDES and setting the cache variable VAR
1790 ac_fn_c_check_header_mongrel
()
1792 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1793 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1803 # Is the header compilable?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805 $as_echo_n "checking $2 usability... " >&6; }
1806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1811 if ac_fn_c_try_compile
"$LINENO"; then :
1812 ac_header_compiler
=yes
1814 ac_header_compiler
=no
1816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818 $as_echo "$ac_header_compiler" >&6; }
1820 # Is the header present?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822 $as_echo_n "checking $2 presence... " >&6; }
1823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1827 if ac_fn_c_try_cpp
"$LINENO"; then :
1828 ac_header_preproc
=yes
1830 ac_header_preproc
=no
1832 rm -f conftest.err conftest.
$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834 $as_echo "$ac_header_preproc" >&6; }
1836 # So? What about this header?
1837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1848 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1852 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860 $as_echo_n "(cached) " >&6
1862 eval "$3=\$ac_header_compiler"
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1870 } # ac_fn_c_check_header_mongrel
1872 # ac_fn_c_try_run LINENO
1873 # ----------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1875 # that executables *can* be run.
1878 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1879 if { { ac_try
="$ac_link"
1881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>&5
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1890 { { case "(($ac_try" in
1891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1892 *) ac_try_echo
=$ac_try;;
1894 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_try") 2>&5
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; }; }; then :
1902 $as_echo "$as_me: program exited with status $ac_status" >&5
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.
$ac_ext >&5
1906 ac_retval
=$ac_status
1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1914 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists and can be compiled using the include files in
1917 # INCLUDES, setting the cache variable VAR accordingly.
1918 ac_fn_c_check_header_compile
()
1920 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1931 if ac_fn_c_try_compile
"$LINENO"; then :
1936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1943 } # ac_fn_c_check_header_compile
1945 # ac_fn_c_try_link LINENO
1946 # -----------------------
1947 # Try to link conftest.$ac_ext, and return whether this succeeded.
1950 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1951 rm -f conftest.
$ac_objext conftest
$ac_exeext
1952 if { { ac_try
="$ac_link"
1954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_link") 2>conftest.err
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } && {
1968 test -z "$ac_c_werror_flag" ||
1969 test ! -s conftest.err
1970 } && test -s conftest$ac_exeext && {
1971 test "$cross_compiling" = yes ||
1972 $as_test_x conftest$ac_exeext
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1981 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1982 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1983 # interfere with the next link command; also delete a directory that is
1984 # left behind by Apple's compiler. We do this before executing the actions.
1985 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989 } # ac_fn_c_try_link
1991 # ac_fn_c_check_func LINENO FUNC VAR
1992 # ----------------------------------
1993 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1994 ac_fn_c_check_func ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2000 $as_echo_n "(cached) " >&6
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2006 #define $2 innocuous_$2
2008 /* System header to define __stub macros and hopefully few prototypes,
2009 which can conflict with char $2 (); below.
2010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2011 <limits.h> exists even on freestanding compilers. */
2014 # include <limits.h>
2016 # include <assert.h>
2021 /* Override any GCC internal prototype to avoid an error.
2022 Use char because int might match the return type of a GCC
2023 builtin and then its argument prototype would still apply. */
2028 /* The GNU C library defines this for functions which it implements
2029 to always fail with ENOSYS. Some functions are actually named
2030 something starting with __ and the normal name is an alias. */
2031 #if defined __stub_$2 || defined __stub___$2
2043 if ac_fn_c_try_link "$LINENO"; then :
2048 rm -f core conftest.err conftest.$ac_objext \
2049 conftest$ac_exeext conftest.$ac_ext
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056 } # ac_fn_c_check_func
2058 # ac_fn_c_check_decl LINENO SYMBOL VAR
2059 # ------------------------------------
2060 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2061 ac_fn_c_check_decl ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2065 $as_echo_n "checking whether $2 is declared... " >&6; }
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067 $as_echo_n "(cached) " >&6
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2083 if ac_fn_c_try_compile "$LINENO"; then :
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2095 } # ac_fn_c_check_decl
2097 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2098 # --------------------------------------------
2099 # Tries to find the compile-time value of EXPR in a program that includes
2100 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2102 ac_fn_c_compute_int ()
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if test "$cross_compiling" = yes; then
2106 # Depending upon the size, compute the lo and hi bounds.
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2113 static int test_array [1 - 2 * !(($2) >= 0)];
2120 if ac_fn_c_try_compile "$LINENO"; then :
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_hi=$ac_mid; break
2139 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2140 if test $ac_lo -le $ac_mid; then
2144 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2155 static int test_array [1 - 2 * !(($2) < 0)];
2162 if ac_fn_c_try_compile "$LINENO"; then :
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2171 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_lo=$ac_mid; break
2181 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2182 if test $ac_mid -le $ac_hi; then
2186 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 # Binary search between lo and hi bounds.
2197 while test "x$ac_lo" != "x$ac_hi"; do
2198 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2205 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2212 if ac_fn_c_try_compile "$LINENO"; then :
2215 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2227 static long int longval () { return $2; }
2228 static unsigned long int ulongval () { return $2; }
2235 FILE *f = fopen ("conftest.val", "w");
2240 long int i = longval ();
2243 fprintf (f, "%ld", i);
2247 unsigned long int i = ulongval ();
2250 fprintf (f, "%lu", i);
2252 /* Do not output a trailing newline, as this causes \r\n confusion
2253 on some platforms. */
2254 return ferror (f) || fclose (f) != 0;
2260 if ac_fn_c_try_run "$LINENO"; then :
2261 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2266 conftest.$ac_objext conftest.beam conftest.$ac_ext
2270 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2273 } # ac_fn_c_compute_int
2275 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2276 # ----------------------------------------------------
2277 # Tries to find if the field MEMBER exists in type AGGR, after including
2278 # INCLUDES, setting cache variable VAR accordingly.
2279 ac_fn_c_check_member ()
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2283 $as_echo_n "checking for $2.$3... " >&6; }
2284 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2285 $as_echo_n "(cached) " >&6
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2300 if ac_fn_c_try_compile "$LINENO"; then :
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2310 if (sizeof ac_aggr.$3)
2316 if ac_fn_c_try_compile "$LINENO"; then :
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 $as_echo "$ac_res" >&6; }
2328 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2330 } # ac_fn_c_check_member
2332 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2333 # -------------------------------------------
2334 # Tests whether TYPE exists after having included INCLUDES, setting cache
2335 # variable VAR accordingly.
2336 ac_fn_c_check_type ()
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2342 $as_echo_n "(cached) " >&6
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2357 if ac_fn_c_try_compile "$LINENO"; then :
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2370 if ac_fn_c_try_compile "$LINENO"; then :
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2384 } # ac_fn_c_check_type
2385 cat >config.log <<_ACEOF
2386 This file contains any messages produced by compilers while
2387 running configure, to aid debugging if configure makes a mistake.
2389 It was created by $as_me, which was
2390 generated by GNU Autoconf 2.64. Invocation command line was
2402 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2403 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2404 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2405 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2406 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2408 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2409 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2411 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2412 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2413 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2414 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2415 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2416 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2417 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir=.
2426 $as_echo "PATH: $as_dir"
2442 # Keep a trace of the command line.
2443 # Strip out --no-create and --no-recursion so they do not pile up.
2444 # Strip out --silent because we don't want to record it for future runs.
2445 # Also quote any args containing shell meta-characters.
2446 # Make two passes to allow for proper duplicate-argument suppression.
2450 ac_must_keep_next=false
2456 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2458 | -silent | --silent | --silen | --sile | --sil)
2461 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2464 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2466 as_fn_append ac_configure_args1 " '$ac_arg'"
2467 if test $ac_must_keep_next = true; then
2468 ac_must_keep_next=false # Got value, back to normal.
2471 *=* | --config-cache | -C | -disable-* | --disable-* \
2472 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2473 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2474 | -with-* | --with-* | -without-* | --without-* | --x)
2475 case "$ac_configure_args0 " in
2476 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2479 -* ) ac_must_keep_next=true ;;
2482 as_fn_append ac_configure_args " '$ac_arg'"
2487 { ac_configure_args0=; unset ac_configure_args0;}
2488 { ac_configure_args1=; unset ac_configure_args1;}
2490 # When interrupted or exit'd, cleanup temporary files, and complete
2491 # config.log. We remove comments because anyway the quotes in there
2492 # would cause problems or look ugly.
2493 # WARNING: Use '\'' to represent an apostrophe within the trap.
2494 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2495 trap 'exit_status=$?
2496 # Save into config.log some information that might help in debugging.
2501 ## ---------------- ##
2502 ## Cache variables. ##
2503 ## ---------------- ##
2506 # The following way of writing the cache mishandles newlines in values,
2508 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2509 eval ac_val=\$$ac_var
2513 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2514 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2517 _ | IFS | as_nl) ;; #(
2518 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2519 *) { eval $ac_var=; unset $ac_var;} ;;
2524 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2525 *${as_nl}ac_space=\ *)
2527 "s/'\''/'\''\\\\'\'''\''/g;
2528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2539 ## ----------------- ##
2540 ## Output variables. ##
2541 ## ----------------- ##
2544 for ac_var in $ac_subst_vars
2546 eval ac_val=\$$ac_var
2548 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2550 $as_echo "$ac_var='\''$ac_val'\''"
2554 if test -n "$ac_subst_files"; then
2556 ## ------------------- ##
2557 ## File substitutions. ##
2558 ## ------------------- ##
2561 for ac_var in $ac_subst_files
2563 eval ac_val=\$$ac_var
2565 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2567 $as_echo "$ac_var='\''$ac_val'\''"
2572 if test -s confdefs.h; then
2582 test "$ac_signal" != 0 &&
2583 $as_echo "$as_me: caught signal $ac_signal"
2584 $as_echo "$as_me: exit $exit_status"
2586 rm -f core *.core core.conftest.* &&
2587 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2590 for ac_signal in 1 2 13 15; do
2591 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2595 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2596 rm -f -r conftest* confdefs.h
2598 $as_echo "/* confdefs.h */" > confdefs.h
2600 # Predefined preprocessor variables.
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_NAME "$PACKAGE_NAME"
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2610 cat >>confdefs.h <<_ACEOF
2611 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2614 cat >>confdefs.h <<_ACEOF
2615 #define PACKAGE_STRING "$PACKAGE_STRING"
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE_URL "$PACKAGE_URL"
2627 # Let the site file select an alternate cache file if it wants to.
2628 # Prefer an explicitly selected file to automatically selected ones.
2631 if test -n "$CONFIG_SITE"; then
2632 ac_site_file1=$CONFIG_SITE
2633 elif test "x$prefix" != xNONE; then
2634 ac_site_file1=$prefix/share/config.site
2635 ac_site_file2=$prefix/etc/config.site
2637 ac_site_file1=$ac_default_prefix/share/config.site
2638 ac_site_file2=$ac_default_prefix/etc/config.site
2640 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2642 test "x$ac_site_file" = xNONE && continue
2643 if test -r "$ac_site_file"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2645 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2646 sed 's/^/| /' "$ac_site_file" >&5
2651 if test -r "$cache_file"; then
2652 # Some versions of bash will fail to source /dev/null (special
2653 # files actually), so we avoid doing that.
2654 if test -f "$cache_file"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2656 $as_echo "$as_me: loading cache $cache_file" >&6;}
2658 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2659 *) . "./$cache_file";;
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2664 $as_echo "$as_me: creating cache $cache_file" >&6;}
2668 gl_header_list="$gl_header_list stdint.h"
2669 gl_header_list="$gl_header_list wchar.h"
2670 gl_header_list="$gl_header_list string.h"
2671 # Check that the precious variables saved in the cache have kept the same
2673 ac_cache_corrupted=false
2674 for ac_var in $ac_precious_vars; do
2675 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2676 eval ac_new_set=\$ac_env_${ac_var}_set
2677 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2678 eval ac_new_val=\$ac_env_${ac_var}_value
2679 case $ac_old_set,$ac_new_set in
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2682 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2683 ac_cache_corrupted=: ;;
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2686 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2687 ac_cache_corrupted=: ;;
2690 if test "x$ac_old_val" != "x$ac_new_val"; then
2691 # differences in whitespace do not lead to failure.
2692 ac_old_val_w=`echo x
$ac_old_val`
2693 ac_new_val_w=`echo x
$ac_new_val`
2694 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2696 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2697 ac_cache_corrupted=:
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2700 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2701 eval $ac_var=\$ac_old_val
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2704 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2706 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2709 # Pass precious variables to config.status.
2710 if test "$ac_new_set" = set; then
2712 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2713 *) ac_arg=$ac_var=$ac_new_val ;;
2715 case " $ac_configure_args " in
2716 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2717 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2721 if $ac_cache_corrupted; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2725 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2726 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2728 ## -------------------- ##
2729 ## Main body of script. ##
2730 ## -------------------- ##
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 ac_config_headers="$ac_config_headers config.h:config.in"
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2746 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2747 # Check whether --enable-maintainer-mode was given.
2748 if test "${enable_maintainer_mode+set}" = set; then :
2749 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2751 USE_MAINTAINER_MODE=no
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2755 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2756 if test $USE_MAINTAINER_MODE = yes; then
2757 MAINTAINER_MODE_TRUE=
2758 MAINTAINER_MODE_FALSE='#'
2760 MAINTAINER_MODE_TRUE='#'
2761 MAINTAINER_MODE_FALSE=
2764 MAINT=$MAINTAINER_MODE_TRUE
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773 if test -n "$ac_tool_prefix"; then
2774 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2775 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if test "${ac_cv_prog_CC+set}" = set; then :
2779 $as_echo_n "(cached) " >&6
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 if test -n "$CC"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2804 $as_echo "$CC" >&6; }
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2812 if test -z "$ac_cv_prog_CC"; then
2814 # Extract the first word of "gcc", so it can be a program name with args.
2815 set dummy gcc; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2819 $as_echo_n "(cached) " >&6
2821 if test -n "$ac_ct_CC"; then
2822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CC="gcc"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2842 if test -n "$ac_ct_CC"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2844 $as_echo "$ac_ct_CC" >&6; }
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2850 if test "x$ac_ct_CC" = x; then
2853 case $cross_compiling:$ac_tool_warned in
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2857 ac_tool_warned=yes ;;
2865 if test -z "$CC"; then
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}cc; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if test "${ac_cv_prog_CC+set}" = set; then :
2872 $as_echo_n "(cached) " >&6
2874 if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884 ac_cv_prog_CC="${ac_tool_prefix}cc"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 if test -n "$CC"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897 $as_echo "$CC" >&6; }
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2906 if test -z "$CC"; then
2907 # Extract the first word of "cc", so it can be a program name with args.
2908 set dummy cc; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if test "${ac_cv_prog_CC+set}" = set; then :
2912 $as_echo_n "(cached) " >&6
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2926 ac_prog_rejected=yes
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 if test $ac_prog_rejected = yes; then
2938 # We found a bogon in the path, so make sure we never use it.
2939 set dummy $ac_cv_prog_CC
2941 if test $# != 0; then
2942 # We chose a different compiler from the bogus one.
2943 # However, it has the same basename, so the bogon will be chosen
2944 # first if we set CC to just the basename; use the full file name.
2946 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2952 if test -n "$CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954 $as_echo "$CC" >&6; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2962 if test -z "$CC"; then
2963 if test -n "$ac_tool_prefix"; then
2964 for ac_prog in cl.exe
2966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2967 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then :
2971 $as_echo_n "(cached) " >&6
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3003 test -n "$CC" && break
3006 if test -z "$CC"; then
3008 for ac_prog in cl.exe
3010 # Extract the first word of "$ac_prog", so it can be a program name with args.
3011 set dummy $ac_prog; ac_word=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3015 $as_echo_n "(cached) " >&6
3017 if test -n "$ac_ct_CC"; then
3018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027 ac_cv_prog_ac_ct_CC="$ac_prog"
3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3038 if test -n "$ac_ct_CC"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3040 $as_echo "$ac_ct_CC" >&6; }
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3047 test -n "$ac_ct_CC" && break
3050 if test "x$ac_ct_CC" = x; then
3053 case $cross_compiling:$ac_tool_warned in
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3057 ac_tool_warned=yes ;;
3066 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 as_fn_error "no acceptable C compiler found
in \
$PATH
3069 See \
`config.log' for more details." "$LINENO" 5; }
3071 # Provide some information about the compiler.
3072 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3075 for ac_option in --version -v -V -qversion; do
3076 { { ac_try="$ac_compiler $ac_option >&5"
3078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3079 *) ac_try_echo
=$ac_try;;
3081 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3085 if test -s conftest.err
; then
3087 ... rest of stderr output deleted ...
3088 10q' conftest.err
>conftest.er1
3089 cat conftest.er1
>&5
3090 rm -f conftest.er1 conftest.err
3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093 test $ac_status = 0; }
3096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3097 /* end confdefs.h. */
3107 ac_clean_files_save
=$ac_clean_files
3108 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3109 # Try to create an executable without -o first, disregard a.out.
3110 # It will help us diagnose broken compilers, and finding out an intuition
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3113 $as_echo_n "checking for C compiler default output file name... " >&6; }
3114 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3116 # The possible output files:
3117 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3120 for ac_file
in $ac_files
3123 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3124 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3129 if { { ac_try
="$ac_link_default"
3131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3135 $as_echo "$ac_try_echo"; } >&5
3136 (eval "$ac_link_default") 2>&5
3138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139 test $ac_status = 0; }; then :
3140 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3141 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3142 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3143 # so that the user can short-circuit this test for compilers unknown to
3145 for ac_file in $ac_files ''
3147 test -f "$ac_file" || continue
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3152 # We found the default executable, but exeext='' is most
3156 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3158 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3160 # We set ac_cv_exeext here because the later test for it is not
3161 # safe: cross compilers may not add the suffix if given an `-o'
3162 # argument, so we may need to know it at that point already.
3163 # Even if this section looks crufty: it has the advantage of
3170 test "$ac_cv_exeext" = no && ac_cv_exeext=
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3176 $as_echo "$ac_file" >&6; }
3177 if test -z "$ac_file"; then :
3178 $as_echo "$as_me: failed program was:" >&5
3179 sed 's
/^
/|
/' conftest.$ac_ext >&5
3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3183 { as_fn_set_status 77
3184 as_fn_error "C compiler cannot create executables
3185 See \`config.log
' for more details." "$LINENO" 5; }; }
3187 ac_exeext=$ac_cv_exeext
3189 # Check that the compiler produces executables we can run. If not, either
3190 # the compiler is broken, or we cross compile.
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3192 $as_echo_n "checking whether the C compiler works... " >&6; }
3193 # If not cross compiling, check that we can run a simple program.
3194 if test "$cross_compiling" != yes; then
3195 if { ac_try='.
/$ac_file'
3196 { { case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_try") 2>&5
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }; }; then
3208 if test "$cross_compiling" = maybe; then
3211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3213 as_fn_error "cannot run C compiled programs.
3214 If you meant to cross compile, use \`--host'.
3215 See \`config.log' for more details.
" "$LINENO" 5; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3220 $as_echo "yes" >&6; }
3222 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3223 ac_clean_files=$ac_clean_files_save
3224 # Check that the compiler produces executables we can run. If not, either
3225 # the compiler is broken, or we cross compile.
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3227 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3229 $as_echo "$cross_compiling" >&6; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3232 $as_echo_n "checking
for suffix of executables...
" >&6; }
3233 if { { ac_try="$ac_link"
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3238 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_link") 2>&5
3242 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3243 test $ac_status = 0; }; then :
3244 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3245 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3246 # work properly (i.e., refer to `conftest.exe'), while it won't with
3248 for ac_file in conftest.exe conftest conftest.*; do
3249 test -f "$ac_file" || continue
3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3252 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error "cannot compute suffix of executables: cannot compile and link
3261 See \`config.log' for more details.
" "$LINENO" 5; }
3263 rm -f conftest$ac_cv_exeext
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3265 $as_echo "$ac_cv_exeext" >&6; }
3267 rm -f conftest.$ac_ext
3268 EXEEXT=$ac_cv_exeext
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3271 $as_echo_n "checking
for suffix of object files...
" >&6; }
3272 if test "${ac_cv_objext+set}" = set; then :
3273 $as_echo_n "(cached
) " >&6
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3286 rm -f conftest.o conftest.obj
3287 if { { ac_try="$ac_compile"
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_compile") 2>&5
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3297 test $ac_status = 0; }; then :
3298 for ac_file in conftest.o conftest.obj conftest.*; do
3299 test -f "$ac_file" || continue;
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3302 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3307 $as_echo "$as_me: failed program was
:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error "cannot compute suffix of object files: cannot compile
3313 See \`config.log' for more details.
" "$LINENO" 5; }
3315 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3318 $as_echo "$ac_cv_objext" >&6; }
3319 OBJEXT=$ac_cv_objext
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3322 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3323 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3324 $as_echo_n "(cached
) " >&6
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3340 if ac_fn_c_try_compile "$LINENO"; then :
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3350 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3351 if test $ac_compiler_gnu = yes; then
3356 ac_test_CFLAGS=${CFLAGS+set}
3357 ac_save_CFLAGS=$CFLAGS
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3359 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3360 if test "${ac_cv_prog_cc_g+set}" = set; then :
3361 $as_echo_n "(cached
) " >&6
3363 ac_save_c_werror_flag=$ac_c_werror_flag
3364 ac_c_werror_flag=yes
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3378 if ac_fn_c_try_compile "$LINENO"; then :
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3393 if ac_fn_c_try_compile "$LINENO"; then :
3396 ac_c_werror_flag=$ac_save_c_werror_flag
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3409 if ac_fn_c_try_compile "$LINENO"; then :
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 ac_c_werror_flag=$ac_save_c_werror_flag
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3420 $as_echo "$ac_cv_prog_cc_g" >&6; }
3421 if test "$ac_test_CFLAGS" = set; then
3422 CFLAGS=$ac_save_CFLAGS
3423 elif test $ac_cv_prog_cc_g = yes; then
3424 if test "$GCC" = yes; then
3430 if test "$GCC" = yes; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3437 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3438 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3439 $as_echo_n "(cached
) " >&6
3441 ac_cv_prog_cc_c89=no
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3447 #include <sys/types.h>
3448 #include <sys/stat.h>
3449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3450 struct buf { int x; };
3451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3452 static char *e (p, i)
3458 static char *f (char * (*g) (char **, int), char **p, ...)
3463 s = g (p, va_arg (v,int));
3468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3469 function prototypes and stuff, but not '\xHH' hex character constants.
3470 These don't provoke an error unfortunately, instead are silently treated
3471 as 'x'. The following induces an error, until -std is added to get
3472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3473 array size at least. It's necessary to write '\x00'==0 to get something
3474 that's true only with -std. */
3475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3477 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3478 inside strings and character constants. */
3480 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3482 int test (int i, double x);
3483 struct s1 {int (*f) (int a);};
3484 struct s2 {int (*f) (double a);};
3485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3499 CC="$ac_save_CC $ac_arg"
3500 if ac_fn_c_try_compile "$LINENO"; then :
3501 ac_cv_prog_cc_c89=$ac_arg
3503 rm -f core conftest.err conftest.$ac_objext
3504 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3506 rm -f conftest.$ac_ext
3511 case "x
$ac_cv_prog_cc_c89" in
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3514 $as_echo "none needed
" >&6; } ;;
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3517 $as_echo "unsupported
" >&6; } ;;
3519 CC="$CC $ac_cv_prog_cc_c89"
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3521 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3523 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3540 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3541 # On Suns, sometimes $CPP names a directory.
3542 if test -n "$CPP" && test -d "$CPP"; then
3545 if test -z "$CPP"; then
3546 if test "${ac_cv_prog_CPP+set}" = set; then :
3547 $as_echo_n "(cached
) " >&6
3549 # Double quotes because CPP needs to be expanded
3550 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3553 for ac_c_preproc_warn_flag in '' yes
3555 # Use a header file that comes with gcc, so configuring glibc
3556 # with a fresh cross-compiler works.
3557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3558 # <limits.h> exists even on freestanding compilers.
3559 # On the NeXT, cc -E runs the code through the compiler's parser,
3560 # not just through cpp. "Syntax error
" is here to catch this case.
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3564 # include <limits.h>
3566 # include <assert.h>
3570 if ac_fn_c_try_cpp "$LINENO"; then :
3573 # Broken: fails on valid input.
3576 rm -f conftest.err conftest.$ac_ext
3578 # OK, works on sane cases. Now check whether nonexistent headers
3579 # can be detected and how.
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582 #include <ac_nonexistent.h>
3584 if ac_fn_c_try_cpp "$LINENO"; then :
3585 # Broken: success on invalid input.
3588 # Passes both tests.
3592 rm -f conftest.err conftest.$ac_ext
3595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3596 rm -f conftest.err conftest.$ac_ext
3597 if $ac_preproc_ok; then :
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3610 $as_echo "$CPP" >&6; }
3612 for ac_c_preproc_warn_flag in '' yes
3614 # Use a header file that comes with gcc, so configuring glibc
3615 # with a fresh cross-compiler works.
3616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3617 # <limits.h> exists even on freestanding compilers.
3618 # On the NeXT, cc -E runs the code through the compiler's parser,
3619 # not just through cpp. "Syntax error
" is here to catch this case.
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3623 # include <limits.h>
3625 # include <assert.h>
3629 if ac_fn_c_try_cpp "$LINENO"; then :
3632 # Broken: fails on valid input.
3635 rm -f conftest.err conftest.$ac_ext
3637 # OK, works on sane cases. Now check whether nonexistent headers
3638 # can be detected and how.
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641 #include <ac_nonexistent.h>
3643 if ac_fn_c_try_cpp "$LINENO"; then :
3644 # Broken: success on invalid input.
3647 # Passes both tests.
3651 rm -f conftest.err conftest.$ac_ext
3654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655 rm -f conftest.err conftest.$ac_ext
3656 if $ac_preproc_ok; then :
3659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3662 See \`config.log' for more details.
" "$LINENO" 5; }
3666 ac_cpp='$CPP $CPPFLAGS'
3667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3673 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3674 if test "${ac_cv_path_GREP+set}" = set; then :
3675 $as_echo_n "(cached
) " >&6
3677 if test -z "$GREP"; then
3678 ac_path_GREP_found=false
3679 # Loop through the user's path and test for each of PROGNAME-LIST
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3684 test -z "$as_dir" && as_dir=.
3685 for ac_prog in grep ggrep; do
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3688 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3689 # Check for GNU ac_path_GREP and select it if it is found.
3690 # Check for GNU $ac_path_GREP
3691 case `"$ac_path_GREP" --version 2>&1` in
3693 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3696 $as_echo_n 0123456789 >"conftest.
in"
3699 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3700 mv "conftest.tmp
" "conftest.
in"
3701 cp "conftest.
in" "conftest.
nl"
3702 $as_echo 'GREP' >> "conftest.
nl"
3703 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3704 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3705 as_fn_arith $ac_count + 1 && ac_count=$as_val
3706 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3707 # Best one so far, save it but keep looking for a better one
3708 ac_cv_path_GREP="$ac_path_GREP"
3709 ac_path_GREP_max=$ac_count
3711 # 10*(2^10) chars as input seems more than enough
3712 test $ac_count -gt 10 && break
3714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3717 $ac_path_GREP_found && break 3
3722 if test -z "$ac_cv_path_GREP"; then
3723 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3726 ac_cv_path_GREP=$GREP
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3731 $as_echo "$ac_cv_path_GREP" >&6; }
3732 GREP="$ac_cv_path_GREP"
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3736 $as_echo_n "checking
for egrep...
" >&6; }
3737 if test "${ac_cv_path_EGREP+set}" = set; then :
3738 $as_echo_n "(cached
) " >&6
3740 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3741 then ac_cv_path_EGREP="$GREP -E"
3743 if test -z "$EGREP"; then
3744 ac_path_EGREP_found=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in egrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3754 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3755 # Check for GNU ac_path_EGREP and select it if it is found.
3756 # Check for GNU $ac_path_EGREP
3757 case `"$ac_path_EGREP" --version 2>&1` in
3759 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3762 $as_echo_n 0123456789 >"conftest.
in"
3765 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3766 mv "conftest.tmp
" "conftest.
in"
3767 cp "conftest.
in" "conftest.
nl"
3768 $as_echo 'EGREP' >> "conftest.
nl"
3769 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3770 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3771 as_fn_arith $ac_count + 1 && ac_count=$as_val
3772 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_EGREP="$ac_path_EGREP"
3775 ac_path_EGREP_max=$ac_count
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3783 $ac_path_EGREP_found && break 3
3788 if test -z "$ac_cv_path_EGREP"; then
3789 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3792 ac_cv_path_EGREP=$EGREP
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3798 $as_echo "$ac_cv_path_EGREP" >&6; }
3799 EGREP="$ac_cv_path_EGREP"
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3803 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3804 if test "${ac_cv_header_stdc+set}" = set; then :
3805 $as_echo_n "(cached
) " >&6
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3822 if ac_fn_c_try_compile "$LINENO"; then :
3823 ac_cv_header_stdc=yes
3825 ac_cv_header_stdc=no
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 if test $ac_cv_header_stdc = yes; then
3830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3836 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3837 $EGREP "memchr
" >/dev/null 2>&1; then :
3840 ac_cv_header_stdc=no
3846 if test $ac_cv_header_stdc = yes; then
3847 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3853 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3854 $EGREP "free
" >/dev/null 2>&1; then :
3857 ac_cv_header_stdc=no
3863 if test $ac_cv_header_stdc = yes; then
3864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3865 if test "$cross_compiling" = yes; then :
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3872 #if ((' ' & 0x0FF) == 0x020)
3873 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3874 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3876 # define ISLOWER(c) \
3877 (('a' <= (c) && (c) <= 'i') \
3878 || ('j' <= (c) && (c) <= 'r') \
3879 || ('s' <= (c) && (c) <= 'z'))
3880 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3888 for (i = 0; i < 256; i++)
3889 if (XOR (islower (i), ISLOWER (i))
3890 || toupper (i) != TOUPPER (i))
3895 if ac_fn_c_try_run "$LINENO"; then :
3898 ac_cv_header_stdc=no
3900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3901 conftest.$ac_objext conftest.beam conftest.$ac_ext
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3907 $as_echo "$ac_cv_header_stdc" >&6; }
3908 if test $ac_cv_header_stdc = yes; then
3910 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3914 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3915 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3916 inttypes.h stdint.h unistd.h
3918 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3919 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3921 eval as_val
=\$
$as_ac_Header
3922 if test "x$as_val" = x
""yes; then :
3923 cat >>confdefs.h
<<_ACEOF
3924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3933 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3934 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3941 if test "$MINIX" = yes; then
3943 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3946 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3949 $as_echo "#define _MINIX 1" >>confdefs.h
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3955 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3956 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3962 # define __EXTENSIONS__ 1
3963 $ac_includes_default
3972 if ac_fn_c_try_compile
"$LINENO"; then :
3973 ac_cv_safe_to_define___extensions__
=yes
3975 ac_cv_safe_to_define___extensions__
=no
3977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3980 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3981 test $ac_cv_safe_to_define___extensions__ = yes &&
3982 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3984 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3986 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3988 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3990 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3993 if test -n "$ac_tool_prefix"; then
3994 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3995 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997 $as_echo_n "checking for $ac_word... " >&6; }
3998 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3999 $as_echo_n "(cached) " >&6
4001 if test -n "$RANLIB"; then
4002 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4008 test -z "$as_dir" && as_dir
=.
4009 for ac_exec_ext
in '' $ac_executable_extensions; do
4010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 RANLIB
=$ac_cv_prog_RANLIB
4022 if test -n "$RANLIB"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4024 $as_echo "$RANLIB" >&6; }
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027 $as_echo "no" >&6; }
4032 if test -z "$ac_cv_prog_RANLIB"; then
4033 ac_ct_RANLIB
=$RANLIB
4034 # Extract the first word of "ranlib", so it can be a program name with args.
4035 set dummy ranlib
; ac_word
=$2
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037 $as_echo_n "checking for $ac_word... " >&6; }
4038 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4041 if test -n "$ac_ct_RANLIB"; then
4042 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4048 test -z "$as_dir" && as_dir
=.
4049 for ac_exec_ext
in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4062 if test -n "$ac_ct_RANLIB"; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4064 $as_echo "$ac_ct_RANLIB" >&6; }
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 $as_echo "no" >&6; }
4070 if test "x$ac_ct_RANLIB" = x
; then
4073 case $cross_compiling:$ac_tool_warned in
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4077 ac_tool_warned
=yes ;;
4079 RANLIB
=$ac_ct_RANLIB
4082 RANLIB
="$ac_cv_prog_RANLIB"
4091 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4092 for ac_t
in install-sh
install.sh shtool
; do
4093 if test -f "$ac_dir/$ac_t"; then
4095 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4100 if test -z "$ac_aux_dir"; then
4101 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4104 # These three variables are undocumented and unsupported,
4105 # and are intended to be withdrawn in a future Autoconf release.
4106 # They can cause serious problems if a builder's source tree is in a directory
4107 # whose full name contains unusual characters.
4108 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4109 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4110 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4113 # Make sure we can run config.sub.
4114 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4115 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4118 $as_echo_n "checking build system type... " >&6; }
4119 if test "${ac_cv_build+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4122 ac_build_alias
=$build_alias
4123 test "x$ac_build_alias" = x
&&
4124 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4125 test "x$ac_build_alias" = x
&&
4126 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4127 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4128 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4132 $as_echo "$ac_cv_build" >&6; }
4133 case $ac_cv_build in
4135 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4138 ac_save_IFS
=$IFS; IFS
='-'
4144 # Remember, the first character of IFS is used to create $*,
4145 # except with old shells:
4148 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4152 $as_echo_n "checking host system type... " >&6; }
4153 if test "${ac_cv_host+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
4156 if test "x$host_alias" = x
; then
4157 ac_cv_host
=$ac_cv_build
4159 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4160 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4165 $as_echo "$ac_cv_host" >&6; }
4168 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4171 ac_save_IFS
=$IFS; IFS
='-'
4177 # Remember, the first character of IFS is used to create $*,
4178 # except with old shells:
4181 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4185 $as_echo_n "checking target system type... " >&6; }
4186 if test "${ac_cv_target+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
4189 if test "x$target_alias" = x
; then
4190 ac_cv_target
=$ac_cv_host
4192 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4193 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4198 $as_echo "$ac_cv_target" >&6; }
4199 case $ac_cv_target in
4201 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4203 target
=$ac_cv_target
4204 ac_save_IFS
=$IFS; IFS
='-'
4210 # Remember, the first character of IFS is used to create $*,
4211 # except with old shells:
4214 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4217 # The aliases save the names the user supplied, while $host etc.
4218 # will get canonicalized.
4219 test -n "$target_alias" &&
4220 test "$program_prefix$program_suffix$program_transform_name" = \
4222 program_prefix
=${target_alias}-
4224 # The tests for host and target for $enable_largefile require
4229 # As the $enable_largefile decision depends on --enable-plugins we must set it
4230 # even in directories otherwise not depending on the $plugins option.
4233 # Check whether --enable-plugins was given.
4234 if test "${enable_plugins+set}" = set; then :
4235 enableval
=$enable_plugins; case "${enableval}" in
4236 yes |
"") plugins
=yes ;;
4247 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4248 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4249 # are mutually exclusive; and without procfs support, the bfd/ elf module
4250 # cannot provide certain routines such as elfcore_write_prpsinfo
4251 # or elfcore_write_prstatus. So unless the user explicitly requested
4252 # large-file support through the --enable-largefile switch, disable
4253 # large-file support in favor of procfs support.
4254 test "${target}" = "${host}" -a "x$plugins" = xno \
4255 && : ${enable_largefile="no"}
4259 # Check whether --enable-largefile was given.
4260 if test "${enable_largefile+set}" = set; then :
4261 enableval
=$enable_largefile;
4264 if test "$enable_largefile" != no
; then
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4267 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4268 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4271 ac_cv_sys_largefile_CC
=no
4272 if test "$GCC" != yes; then
4275 # IRIX 6.2 and later do not support large files by default,
4276 # so use the C compiler's -n32 option if that helps.
4277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279 #include <sys/types.h>
4280 /* Check that off_t can represent 2**63 - 1 correctly.
4281 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4282 since some C++ compilers masquerading as C compilers
4283 incorrectly reject 9223372036854775807. */
4284 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4286 && LARGE_OFF_T % 2147483647 == 1)
4296 if ac_fn_c_try_compile
"$LINENO"; then :
4299 rm -f core conftest.err conftest.
$ac_objext
4301 if ac_fn_c_try_compile
"$LINENO"; then :
4302 ac_cv_sys_largefile_CC
=' -n32'; break
4304 rm -f core conftest.err conftest.
$ac_objext
4308 rm -f conftest.
$ac_ext
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4312 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4313 if test "$ac_cv_sys_largefile_CC" != no
; then
4314 CC
=$CC$ac_cv_sys_largefile_CC
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4318 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4319 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 #include <sys/types.h>
4326 /* Check that off_t can represent 2**63 - 1 correctly.
4327 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4328 since some C++ compilers masquerading as C compilers
4329 incorrectly reject 9223372036854775807. */
4330 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4331 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4332 && LARGE_OFF_T % 2147483647 == 1)
4342 if ac_fn_c_try_compile
"$LINENO"; then :
4343 ac_cv_sys_file_offset_bits
=no
; break
4345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348 #define _FILE_OFFSET_BITS 64
4349 #include <sys/types.h>
4350 /* Check that off_t can represent 2**63 - 1 correctly.
4351 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4352 since some C++ compilers masquerading as C compilers
4353 incorrectly reject 9223372036854775807. */
4354 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4356 && LARGE_OFF_T % 2147483647 == 1)
4366 if ac_fn_c_try_compile
"$LINENO"; then :
4367 ac_cv_sys_file_offset_bits
=64; break
4369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4370 ac_cv_sys_file_offset_bits
=unknown
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4375 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4376 case $ac_cv_sys_file_offset_bits in #(
4379 cat >>confdefs.h
<<_ACEOF
4380 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4385 if test $ac_cv_sys_file_offset_bits = unknown
; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4387 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4388 if test "${ac_cv_sys_large_files+set}" = set; then :
4389 $as_echo_n "(cached) " >&6
4392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #include <sys/types.h>
4395 /* Check that off_t can represent 2**63 - 1 correctly.
4396 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4397 since some C++ compilers masquerading as C compilers
4398 incorrectly reject 9223372036854775807. */
4399 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4400 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4401 && LARGE_OFF_T % 2147483647 == 1)
4411 if ac_fn_c_try_compile
"$LINENO"; then :
4412 ac_cv_sys_large_files
=no
; break
4414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #define _LARGE_FILES 1
4418 #include <sys/types.h>
4419 /* Check that off_t can represent 2**63 - 1 correctly.
4420 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4421 since some C++ compilers masquerading as C compilers
4422 incorrectly reject 9223372036854775807. */
4423 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4424 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4425 && LARGE_OFF_T % 2147483647 == 1)
4435 if ac_fn_c_try_compile
"$LINENO"; then :
4436 ac_cv_sys_large_files
=1; break
4438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4439 ac_cv_sys_large_files
=unknown
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4444 $as_echo "$ac_cv_sys_large_files" >&6; }
4445 case $ac_cv_sys_large_files in #(
4448 cat >>confdefs.h
<<_ACEOF
4449 #define _LARGE_FILES $ac_cv_sys_large_files
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4462 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4463 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4466 am_cv_prog_cc_stdc
=no
4468 # Don't try gcc -ansi; that turns off useful extensions and
4469 # breaks some systems' header files.
4470 # AIX -qlanglvl=ansi
4471 # Ultrix and OSF/1 -std1
4472 # HP-UX 10.20 and later -Ae
4473 # HP-UX older versions -Aa -D_HPUX_SOURCE
4474 # SVR4 -Xc -D__EXTENSIONS__
4475 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4477 CC
="$ac_save_CC $ac_arg"
4478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4482 #include <sys/types.h>
4483 #include <sys/stat.h>
4484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4485 struct buf { int x; };
4486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4487 static char *e (p, i)
4493 static char *f (char * (*g) (char **, int), char **p, ...)
4498 s = g (p, va_arg (v,int));
4502 int test (int i, double x);
4503 struct s1 {int (*f) (int a);};
4504 struct s2 {int (*f) (double a);};
4505 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4513 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4519 if ac_fn_c_try_compile
"$LINENO"; then :
4520 am_cv_prog_cc_stdc
="$ac_arg"; break
4522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4528 if test -z "$am_cv_prog_cc_stdc"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4530 $as_echo "none needed" >&6; }
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4533 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4535 case "x$am_cv_prog_cc_stdc" in
4537 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4542 for ac_dir
in ..
"$srcdir"/..
; do
4543 for ac_t
in install-sh
install.sh shtool
; do
4544 if test -f "$ac_dir/$ac_t"; then
4546 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4551 if test -z "$ac_aux_dir"; then
4552 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4555 # These three variables are undocumented and unsupported,
4556 # and are intended to be withdrawn in a future Autoconf release.
4557 # They can cause serious problems if a builder's source tree is in a directory
4558 # whose full name contains unusual characters.
4559 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4560 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4561 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4566 # Dependency checking.
4567 rm -rf .tst
2>/dev
/null
4568 mkdir .tst
2>/dev
/null
4569 if test -d .tst
; then
4574 rmdir .tst
2>/dev
/null
4576 DEPDIR
="${am__leading_dot}deps"
4578 ac_config_commands
="$ac_config_commands depdir"
4581 depcc
="$CC" am_compiler_list
=
4583 am_depcomp
=$ac_aux_dir/depcomp
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4585 $as_echo_n "checking dependency style of $depcc... " >&6; }
4586 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4589 if test -f "$am_depcomp"; then
4590 # We make a subdir and do the tests there. Otherwise we can end up
4591 # making bogus files that we don't know about and never remove. For
4592 # instance it was reported that on HP-UX the gcc test will end up
4593 # making a dummy file named `D' -- because `-MD' means `put the output
4596 # Copy depcomp to subdir because otherwise we won't find it if we're
4597 # using a relative directory.
4598 cp "$am_depcomp" conftest.dir
4600 # We will build objects and dependencies in a subdirectory because
4601 # it helps to detect inapplicable dependency modes. For instance
4602 # both Tru64's cc and ICC support -MD to output dependencies as a
4603 # side effect of compilation, but ICC will put the dependencies in
4604 # the current directory while Tru64 will put them in the object
4608 am_cv_CC_dependencies_compiler_type
=none
4609 if test "$am_compiler_list" = ""; then
4610 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4612 for depmode
in $am_compiler_list; do
4613 if test $depmode = none
; then break; fi
4615 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4616 # Setup a source with many dependencies, because some compilers
4617 # like to wrap large dependency lists on column 80 (with \), and
4618 # we should not choose a depcomp mode which is confused by this.
4620 # We need to recreate these files for each test, as the compiler may
4621 # overwrite some of them when testing with obscure command lines.
4622 # This happens at least with the AIX C compiler.
4624 for i
in 1 2 3 4 5 6; do
4625 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4626 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4627 # Solaris 8's {/usr,}/bin/sh.
4628 touch sub
/conftst
$i.h
4630 echo "include sub/conftest.Po" > confmf
4632 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4633 # mode. It turns out that the SunPro C++ compiler does not properly
4634 # handle `-M -o', and we need to detect this.
4635 depcmd
="depmode=$depmode \
4636 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4638 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4639 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4640 if env
$depcmd > conftest.err
2>&1 &&
4641 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4642 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4643 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4644 # icc doesn't choke on unknown options, it will just issue warnings
4645 # or remarks (even with -Werror). So we grep stderr for any message
4646 # that says an option was ignored or not supported.
4647 # When given -MP, icc 7.0 and 7.1 complain thusly:
4648 # icc: Command line warning: ignoring option '-M'; no argument required
4649 # The diagnosis changed in icc 8.0:
4650 # icc: Command line remark: option '-MP' not supported
4651 if (grep 'ignoring option' conftest.err ||
4652 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4653 am_cv_CC_dependencies_compiler_type
=$depmode
4654 $as_echo "$as_me:$LINENO: success" >&5
4658 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4659 sed -e 's/^/| /' < conftest.err
>&5
4665 am_cv_CC_dependencies_compiler_type
=none
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4670 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4671 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4672 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4673 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4678 # Check for the 'make' the user wants to use.
4681 # Extract the first word of "$ac_prog", so it can be a program name with args.
4682 set dummy
$ac_prog; ac_word
=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if test "${ac_cv_prog_MAKE+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4688 if test -n "$MAKE"; then
4689 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4695 test -z "$as_dir" && as_dir
=.
4696 for ac_exec_ext
in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 ac_cv_prog_MAKE
="$ac_prog"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 MAKE
=$ac_cv_prog_MAKE
4709 if test -n "$MAKE"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4711 $as_echo "$MAKE" >&6; }
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4718 test -n "$MAKE" && break
4722 case "`$MAKE --version 2>&1 | sed 1q`" in
4727 if test "$MAKE_IS_GNU" = yes; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4736 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4738 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4739 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4740 $as_echo_n "(cached) " >&6
4742 cat >conftest.
make <<\_ACEOF
4745 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4747 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4748 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4750 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4752 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4756 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4758 $as_echo "yes" >&6; }
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4763 SET_MAKE
="MAKE=${MAKE-make}"
4778 # If we haven't got the data from the intl directory,
4779 # assume NLS is disabled.
4788 if test -f ..
/intl
/config.intl
; then
4789 . ..
/intl
/config.intl
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4792 $as_echo_n "checking whether NLS is requested... " >&6; }
4793 if test x
"$USE_NLS" != xyes
; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4798 $as_echo "yes" >&6; }
4800 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4804 $as_echo_n "checking for catalogs to be installed... " >&6; }
4805 # Look for .po and .gmo files in the source directory.
4808 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4809 # If there aren't any .gmo files the shell will give us the
4810 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4812 case "$cat" in *\
**)
4815 # The quadruple backslash is collapsed to a double backslash
4816 # by the backticks, then collapsed again by the double quotes,
4817 # leaving us with one backslash in the sed expression (right
4818 # before the dot that mustn't act as a wildcard).
4819 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4820 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4821 # The user is allowed to set LINGUAS to a list of languages to
4822 # install catalogs for. If it's empty that means "all of them."
4823 if test "x$LINGUAS" = x
; then
4824 CATALOGS
="$CATALOGS $cat"
4825 XLINGUAS
="$XLINGUAS $lang"
4827 case "$LINGUAS" in *$lang*)
4828 CATALOGS
="$CATALOGS $cat"
4829 XLINGUAS
="$XLINGUAS $lang"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4836 $as_echo "$LINGUAS" >&6; }
4849 localedir
='${datadir}/locale'
4852 if test x
"$USE_NLS" = xyes
; then
4853 CONFIG_ALL
="$CONFIG_ALL all-po"
4854 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4855 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4856 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4872 GNULIB_STRCASESTR
=0;
4879 GNULIB_MBSCASECMP
=0;
4880 GNULIB_MBSNCASECMP
=0;
4881 GNULIB_MBSPCASECMP
=0;
4882 GNULIB_MBSCASESTR
=0;
4892 HAVE_DECL_MEMRCHR
=1;
4898 HAVE_DECL_STRNDUP
=1;
4899 HAVE_DECL_STRNLEN
=1;
4903 HAVE_DECL_STRTOK_R
=1;
4904 HAVE_DECL_STRERROR
=1;
4905 HAVE_DECL_STRSIGNAL
=1;
4907 REPLACE_STRSIGNAL
=0;
4909 REPLACE_STRCASESTR
=0;
4913 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
4914 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
4920 cat >>confdefs.h
<<_ACEOF
4921 #define HAVE_DECL_MEMMEM $ac_have_decl
4936 for ac_func
in memmem
4938 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
4939 if test "x$ac_cv_func_memmem" = x
""yes; then :
4940 cat >>confdefs.h
<<_ACEOF
4941 #define HAVE_MEMMEM 1
4946 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
4959 if test $ac_cv_have_decl_memmem = no
; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4966 $as_echo_n "checking for long long int... " >&6; }
4967 if test "${ac_cv_type_long_long_int+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4973 /* For now, do not test the preprocessor; as of 2007 there are too many
4974 implementations with broken preprocessors. Perhaps this can
4975 be revisited in 2012. In the meantime, code should not expect
4976 #if to work with literals wider than 32 bits. */
4977 /* Test literals. */
4978 long long int ll = 9223372036854775807ll;
4979 long long int nll = -9223372036854775807LL;
4980 unsigned long long int ull = 18446744073709551615ULL;
4981 /* Test constant expressions. */
4982 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4984 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4990 /* Test availability of runtime routines for shift and division. */
4991 long long int llmax = 9223372036854775807ll;
4992 unsigned long long int ullmax = 18446744073709551615ull;
4993 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4994 | (llmax / ll) | (llmax % ll)
4995 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4996 | (ullmax / ull) | (ullmax % ull));
5002 if ac_fn_c_try_link
"$LINENO"; then :
5003 if test "$cross_compiling" = yes; then :
5004 ac_cv_type_long_long_int
=yes
5006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5011 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5012 # define LLONG_MAX (HALF - 1 + HALF)
5017 long long int n = 1;
5021 long long int m = n << i;
5024 if (LLONG_MAX / 2 < m)
5032 if ac_fn_c_try_run
"$LINENO"; then :
5033 ac_cv_type_long_long_int
=yes
5035 ac_cv_type_long_long_int
=no
5037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5042 ac_cv_type_long_long_int
=no
5044 rm -f core conftest.err conftest.
$ac_objext \
5045 conftest
$ac_exeext conftest.
$ac_ext
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5048 $as_echo "$ac_cv_type_long_long_int" >&6; }
5049 if test $ac_cv_type_long_long_int = yes; then
5051 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5057 $as_echo_n "checking for unsigned long long int... " >&6; }
5058 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5064 /* For now, do not test the preprocessor; as of 2007 there are too many
5065 implementations with broken preprocessors. Perhaps this can
5066 be revisited in 2012. In the meantime, code should not expect
5067 #if to work with literals wider than 32 bits. */
5068 /* Test literals. */
5069 long long int ll = 9223372036854775807ll;
5070 long long int nll = -9223372036854775807LL;
5071 unsigned long long int ull = 18446744073709551615ULL;
5072 /* Test constant expressions. */
5073 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5075 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5081 /* Test availability of runtime routines for shift and division. */
5082 long long int llmax = 9223372036854775807ll;
5083 unsigned long long int ullmax = 18446744073709551615ull;
5084 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5085 | (llmax / ll) | (llmax % ll)
5086 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5087 | (ullmax / ull) | (ullmax % ull));
5093 if ac_fn_c_try_link
"$LINENO"; then :
5094 ac_cv_type_unsigned_long_long_int
=yes
5096 ac_cv_type_unsigned_long_long_int
=no
5098 rm -f core conftest.err conftest.
$ac_objext \
5099 conftest
$ac_exeext conftest.
$ac_ext
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5102 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5103 if test $ac_cv_type_unsigned_long_long_int = yes; then
5105 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5112 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5113 if test "${gl_cv_have_include_next+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5116 rm -rf conftestd1 conftestd2
5117 mkdir conftestd1 conftestd2
5118 cat <<EOF > conftestd1/conftest.h
5119 #define DEFINED_IN_CONFTESTD1
5120 #include_next <conftest.h>
5121 #ifdef DEFINED_IN_CONFTESTD2
5124 #error "include_next doesn't work"
5127 cat <<EOF > conftestd2/conftest.h
5128 #ifndef DEFINED_IN_CONFTESTD1
5129 #error "include_next test doesn't work"
5131 #define DEFINED_IN_CONFTESTD2
5133 save_CPPFLAGS
="$CPPFLAGS"
5134 CPPFLAGS
="$CPPFLAGS -Iconftestd1 -Iconftestd2"
5135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 #include <conftest.h>
5139 if ac_fn_c_try_compile
"$LINENO"; then :
5140 gl_cv_have_include_next
=yes
5142 gl_cv_have_include_next
=no
5144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5145 CPPFLAGS
="$save_CPPFLAGS"
5146 rm -rf conftestd1 conftestd2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5150 $as_echo "$gl_cv_have_include_next" >&6; }
5151 if test $gl_cv_have_include_next = yes; then
5154 $as_echo "#define HAVE_INCLUDE_NEXT 1" >>confdefs.h
5157 INCLUDE_NEXT
=include_next
5159 INCLUDE_NEXT
=include
5167 for ac_header
in $gl_header_list
5169 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5170 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5171 eval as_val
=\$
$as_ac_Header
5172 if test "x$as_val" = x
""yes; then :
5173 cat >>confdefs.h
<<_ACEOF
5174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5191 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5192 if test "${ac_cv_c_restrict+set}" = set; then :
5193 $as_echo_n "(cached) " >&6
5196 # The order here caters to the fact that C++ does not require restrict.
5197 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
5198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 typedef int * int_ptr;
5201 int foo (int_ptr $ac_kw ip) {
5215 if ac_fn_c_try_compile
"$LINENO"; then :
5216 ac_cv_c_restrict
=$ac_kw
5218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5219 test "$ac_cv_c_restrict" != no
&& break
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5224 $as_echo "$ac_cv_c_restrict" >&6; }
5226 case $ac_cv_c_restrict in
5228 no
) $as_echo "#define restrict /**/" >>confdefs.h
5230 *) cat >>confdefs.h
<<_ACEOF
5231 #define restrict $ac_cv_c_restrict
5255 if test $gl_cv_have_include_next = yes; then
5256 gl_cv_next_string_h
='<'string.h
'>'
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5259 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5260 if test "${gl_cv_next_string_h+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5264 if test $ac_cv_header_string_h = yes; then
5265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5270 gl_cv_next_string_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 sed -n '\#/string.h#{
5272 s#.*"\(.*/string.h\)".*#\1#
5278 gl_cv_next_string_h
='<'string.h
'>'
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5283 $as_echo "$gl_cv_next_string_h" >&6; }
5285 NEXT_STRING_H
=$gl_cv_next_string_h
5292 HAVE_DECL_WCWIDTH
=1;
5299 GL_COND_LIBTOOL_TRUE
=
5300 GL_COND_LIBTOOL_FALSE
='#'
5302 GL_COND_LIBTOOL_TRUE
='#'
5303 GL_COND_LIBTOOL_FALSE
=
5306 gl_cond_libtool
=false
5312 gl_source_base
='gnulib'
5321 for ac_func
in memchr
5323 ac_fn_c_check_func
"$LINENO" "memchr" "ac_cv_func_memchr"
5324 if test "x$ac_cv_func_memchr" = x
""yes; then :
5325 cat >>confdefs.h
<<_ACEOF
5326 #define HAVE_MEMCHR 1
5331 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5337 if test $ac_cv_func_memchr = no
; then
5339 for ac_header
in bp-sym.h
5341 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5342 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
5343 cat >>confdefs.h
<<_ACEOF
5344 #define HAVE_BP_SYM_H 1
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5356 $as_echo_n "checking for working memcmp... " >&6; }
5357 if test "${ac_cv_func_memcmp_working+set}" = set; then :
5358 $as_echo_n "(cached) " >&6
5360 if test "$cross_compiling" = yes; then :
5361 ac_cv_func_memcmp_working
=no
5363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365 $ac_includes_default
5370 /* Some versions of memcmp are not 8-bit clean. */
5371 char c0 = '\100', c1 = '\200', c2 = '\201';
5372 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5375 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5376 or more and with at least one buffer not starting on a 4-byte boundary.
5377 William Lewis provided this test program. */
5382 for (i = 0; i < 4; i++)
5386 strcpy (a, "--------01111111");
5387 strcpy (b, "--------10000000");
5388 if (memcmp (a, b, 16) >= 0)
5398 if ac_fn_c_try_run
"$LINENO"; then :
5399 ac_cv_func_memcmp_working
=yes
5401 ac_cv_func_memcmp_working
=no
5403 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5404 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5409 $as_echo "$ac_cv_func_memcmp_working" >&6; }
5410 test $ac_cv_func_memcmp_working = no
&&
5417 gl_LIBOBJS
="$gl_LIBOBJS memcmp.$ac_objext"
5420 if test $ac_cv_func_memcmp_working = no
; then
5422 $as_echo "#define memcmp rpl_memcmp" >>confdefs.h
5429 if test $ac_cv_have_decl_memmem = yes; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
5431 $as_echo_n "checking whether memmem works in linear time... " >&6; }
5432 if test "${gl_cv_func_memmem_works+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
5435 if test "$cross_compiling" = yes; then :
5436 gl_cv_func_memmem_works
="guessing no"
5438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5441 #include <string.h> /* for memmem */
5442 #include <stdlib.h> /* for malloc */
5443 #include <unistd.h> /* for alarm */
5449 char *haystack = (char *) malloc (2 * m + 1);
5450 char *needle = (char *) malloc (m + 1);
5452 /* Failure to compile this test due to missing alarm is okay,
5453 since all such platforms (mingw) also lack memmem. */
5455 /* Check for quadratic performance. */
5456 if (haystack && needle)
5458 memset (haystack, 'A', 2 * m);
5459 haystack[2 * m] = 'B';
5460 memset (needle, 'A', m);
5462 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5464 /* Check for empty needle behavior. */
5465 return !result || !memmem ("a", 1, 0, 0);
5470 if ac_fn_c_try_run
"$LINENO"; then :
5471 gl_cv_func_memmem_works
=yes
5473 gl_cv_func_memmem_works
=no
5475 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5476 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
5481 $as_echo "$gl_cv_func_memmem_works" >&6; }
5482 if test "$gl_cv_func_memmem_works" != yes; then
5491 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
5507 for ac_func
in memmem
5509 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
5510 if test "x$ac_cv_func_memmem" = x
""yes; then :
5511 cat >>confdefs.h
<<_ACEOF
5512 #define HAVE_MEMMEM 1
5517 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5530 if test $ac_cv_have_decl_memmem = no
; then
5542 if test $ac_cv_type_long_long_int = yes; then
5543 HAVE_LONG_LONG_INT
=1
5545 HAVE_LONG_LONG_INT
=0
5549 if test $ac_cv_type_unsigned_long_long_int = yes; then
5550 HAVE_UNSIGNED_LONG_LONG_INT
=1
5552 HAVE_UNSIGNED_LONG_LONG_INT
=0
5556 if test $ac_cv_header_inttypes_h = yes; then
5563 if test $ac_cv_header_sys_types_h = yes; then
5581 if test $gl_cv_have_include_next = yes; then
5582 gl_cv_next_stdint_h
='<'stdint.h
'>'
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5585 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5586 if test "${gl_cv_next_stdint_h+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5590 if test $ac_cv_header_stdint_h = yes; then
5591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5596 gl_cv_next_stdint_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5597 sed -n '\#/stdint.h#{
5598 s#.*"\(.*/stdint.h\)".*#\1#
5604 gl_cv_next_stdint_h
='<'stdint.h
'>'
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5609 $as_echo "$gl_cv_next_stdint_h" >&6; }
5611 NEXT_STDINT_H
=$gl_cv_next_stdint_h
5615 if test $ac_cv_header_stdint_h = yes; then
5622 if test $ac_cv_header_stdint_h = yes; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5624 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5625 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5626 $as_echo_n "(cached) " >&6
5628 gl_cv_header_working_stdint_h
=no
5629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5633 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5634 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5635 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5637 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5638 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5639 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5643 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5644 included before <wchar.h>. */
5655 int8_t a1 = INT8_MAX;
5656 int8_t a1min = INT8_MIN;
5659 int16_t a2 = INT16_MAX;
5660 int16_t a2min = INT16_MIN;
5663 int32_t a3 = INT32_MAX;
5664 int32_t a3min = INT32_MIN;
5667 int64_t a4 = INT64_MAX;
5668 int64_t a4min = INT64_MIN;
5671 uint8_t b1 = UINT8_MAX;
5673 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5676 uint16_t b2 = UINT16_MAX;
5679 uint32_t b3 = UINT32_MAX;
5682 uint64_t b4 = UINT64_MAX;
5684 int_least8_t c1 = INT8_C (0x7f);
5685 int_least8_t c1max = INT_LEAST8_MAX;
5686 int_least8_t c1min = INT_LEAST8_MIN;
5687 int_least16_t c2 = INT16_C (0x7fff);
5688 int_least16_t c2max = INT_LEAST16_MAX;
5689 int_least16_t c2min = INT_LEAST16_MIN;
5690 int_least32_t c3 = INT32_C (0x7fffffff);
5691 int_least32_t c3max = INT_LEAST32_MAX;
5692 int_least32_t c3min = INT_LEAST32_MIN;
5693 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5694 int_least64_t c4max = INT_LEAST64_MAX;
5695 int_least64_t c4min = INT_LEAST64_MIN;
5696 uint_least8_t d1 = UINT8_C (0xff);
5697 uint_least8_t d1max = UINT_LEAST8_MAX;
5698 uint_least16_t d2 = UINT16_C (0xffff);
5699 uint_least16_t d2max = UINT_LEAST16_MAX;
5700 uint_least32_t d3 = UINT32_C (0xffffffff);
5701 uint_least32_t d3max = UINT_LEAST32_MAX;
5702 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5703 uint_least64_t d4max = UINT_LEAST64_MAX;
5704 int_fast8_t e1 = INT_FAST8_MAX;
5705 int_fast8_t e1min = INT_FAST8_MIN;
5706 int_fast16_t e2 = INT_FAST16_MAX;
5707 int_fast16_t e2min = INT_FAST16_MIN;
5708 int_fast32_t e3 = INT_FAST32_MAX;
5709 int_fast32_t e3min = INT_FAST32_MIN;
5710 int_fast64_t e4 = INT_FAST64_MAX;
5711 int_fast64_t e4min = INT_FAST64_MIN;
5712 uint_fast8_t f1 = UINT_FAST8_MAX;
5713 uint_fast16_t f2 = UINT_FAST16_MAX;
5714 uint_fast32_t f3 = UINT_FAST32_MAX;
5715 uint_fast64_t f4 = UINT_FAST64_MAX;
5717 intptr_t g = INTPTR_MAX;
5718 intptr_t gmin = INTPTR_MIN;
5721 uintptr_t h = UINTPTR_MAX;
5723 intmax_t i = INTMAX_MAX;
5724 uintmax_t j = UINTMAX_MAX;
5726 #include <limits.h> /* for CHAR_BIT */
5727 #define TYPE_MINIMUM(t) \
5728 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5729 #define TYPE_MAXIMUM(t) \
5730 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5733 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5734 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5736 /* Detect bug in FreeBSD 6.0 / ia64. */
5737 int check_SIG_ATOMIC:
5738 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5739 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5741 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5743 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5744 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5746 /* Detect bug in mingw. */
5748 WINT_MIN == TYPE_MINIMUM (wint_t)
5749 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5752 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5754 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5756 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5758 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5760 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5763 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5766 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5769 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5771 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5772 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5773 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5774 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5775 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5776 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5777 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5778 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5779 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5780 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5781 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5792 if ac_fn_c_try_compile
"$LINENO"; then :
5793 gl_cv_header_working_stdint_h
=yes
5795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5798 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5800 if test "$gl_cv_header_working_stdint_h" = yes; then
5803 for ac_header
in sys
/inttypes.h sys
/bitypes.h
5805 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5806 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5807 eval as_val
=\$
$as_ac_Header
5808 if test "x$as_val" = x
""yes; then :
5809 cat >>confdefs.h
<<_ACEOF
5810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5817 if test $ac_cv_header_sys_inttypes_h = yes; then
5818 HAVE_SYS_INTTYPES_H
=1
5820 HAVE_SYS_INTTYPES_H
=0
5823 if test $ac_cv_header_sys_bitypes_h = yes; then
5824 HAVE_SYS_BITYPES_H
=1
5826 HAVE_SYS_BITYPES_H
=0
5841 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5843 $as_echo_n "checking for bit size of $gltype... " >&6; }
5844 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5845 $as_echo_n "(cached) " >&6
5847 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5848 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5849 included before <wchar.h>. */
5858 #include <limits.h>"; then :
5864 eval gl_cv_bitsizeof_
${gltype}=\
$result
5867 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5869 $as_echo "$ac_res" >&6; }
5870 eval result
=\
$gl_cv_bitsizeof_${gltype}
5871 if test $result = unknown
; then
5874 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5875 cat >>confdefs.h
<<_ACEOF
5876 #define BITSIZEOF_${GLTYPE} $result
5879 eval BITSIZEOF_
${GLTYPE}=\
$result
5885 for gltype
in sig_atomic_t wchar_t wint_t
; do
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5887 $as_echo_n "checking whether $gltype is signed... " >&6; }
5888 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5889 $as_echo_n "(cached) " >&6
5891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5894 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5895 included before <wchar.h>. */
5904 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5913 if ac_fn_c_try_compile
"$LINENO"; then :
5918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5919 eval gl_cv_type_
${gltype}_signed
=\
$result
5922 eval ac_res
=\
$gl_cv_type_${gltype}_signed
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5924 $as_echo "$ac_res" >&6; }
5925 eval result
=\
$gl_cv_type_${gltype}_signed
5926 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5927 if test "$result" = yes; then
5928 cat >>confdefs.h
<<_ACEOF
5929 #define HAVE_SIGNED_${GLTYPE} 1
5932 eval HAVE_SIGNED_
${GLTYPE}=1
5934 eval HAVE_SIGNED_
${GLTYPE}=0
5939 gl_cv_type_ptrdiff_t_signed
=yes
5940 gl_cv_type_size_t_signed
=no
5943 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5945 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5946 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5947 $as_echo_n "(cached) " >&6
5949 eval gl_cv_type_
${gltype}_suffix
=no
5950 eval result
=\
$gl_cv_type_${gltype}_signed
5951 if test "$result" = yes; then
5956 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
5959 l
) gltype1
='long int';;
5960 ll
) gltype1
='long long int';;
5961 i64
) gltype1
='__int64';;
5962 u
) gltype1
='unsigned int';;
5963 ul
) gltype1
='unsigned long int';;
5964 ull
) gltype1
='unsigned long long int';;
5965 ui64
)gltype1
='unsigned __int64';;
5967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5970 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5971 included before <wchar.h>. */
5981 extern $gltype1 foo;
5990 if ac_fn_c_try_compile
"$LINENO"; then :
5991 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
5993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5994 eval result
=\
$gl_cv_type_${gltype}_suffix
5995 test "$result" != no
&& break
5998 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6000 $as_echo "$ac_res" >&6; }
6001 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6002 eval result
=\
$gl_cv_type_${gltype}_suffix
6003 test "$result" = no
&& result
=
6004 eval ${GLTYPE}_SUFFIX
=\
$result
6005 cat >>confdefs.h
<<_ACEOF
6006 #define ${GLTYPE}_SUFFIX $result
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
6023 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
6024 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6032 if ac_fn_c_try_compile
"$LINENO"; then :
6033 gl_cv_header_wchar_h_standalone
=yes
6035 gl_cv_header_wchar_h_standalone
=no
6037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
6040 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
6041 if test $gl_cv_header_wchar_h_standalone != yes; then
6052 if test $ac_cv_header_wchar_h = yes; then
6069 if test $gl_cv_have_include_next = yes; then
6070 gl_cv_next_wchar_h
='<'wchar.h
'>'
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6073 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6074 if test "${gl_cv_next_wchar_h+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6078 if test $ac_cv_header_wchar_h = yes; then
6079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6084 gl_cv_next_wchar_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6085 sed -n '\#/wchar.h#{
6086 s#.*"\(.*/wchar.h\)".*#\1#
6092 gl_cv_next_wchar_h
='<'wchar.h
'>'
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
6097 $as_echo "$gl_cv_next_wchar_h" >&6; }
6099 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
6113 gl_source_base
='tests'
6118 LIBGNU_LIBDEPS
="$gl_libdeps"
6120 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
6124 # For Makefile dependencies.
6126 if test x
"$STDINT_H" != x
; then
6127 GNULIB_STDINT_H
=gnulib
/$STDINT_H
6133 cat >>confdefs.h
<<_ACEOF
6134 #define PACKAGE "$PACKAGE"
6139 # GDB does not use automake, but gnulib does. This line lets us
6140 # generate its Makefile.in.
6141 am__api_version
='1.11'
6143 # Find a good install program. We prefer a C program (faster),
6144 # so one script is as good as another. But avoid the broken or
6145 # incompatible versions:
6146 # SysV /etc/install, /usr/sbin/install
6147 # SunOS /usr/etc/install
6148 # IRIX /sbin/install
6150 # AmigaOS /C/install, which installs bootblocks on floppy discs
6151 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6152 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6153 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6154 # OS/2's system install, which has a completely different semantic
6155 # ./install, which can be erroneously created by make from ./install.sh.
6156 # Reject install programs that cannot install multiple files.
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6158 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6159 if test -z "$INSTALL"; then
6160 if test "${ac_cv_path_install+set}" = set; then :
6161 $as_echo_n "(cached) " >&6
6163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6167 test -z "$as_dir" && as_dir
=.
6168 # Account for people who put trailing slashes in PATH elements.
6169 case $as_dir/ in #((
6170 .
/ | .
// |
/[cC
]/* | \
6171 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6172 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
6175 # OSF1 and SCO ODT 3.0 have their own names for install.
6176 # Don't use installbsd from OSF since it installs stuff as root
6178 for ac_prog
in ginstall scoinst
install; do
6179 for ac_exec_ext
in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6181 if test $ac_prog = install &&
6182 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6183 # AIX install. It has an incompatible calling convention.
6185 elif test $ac_prog = install &&
6186 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6187 # program-specific install script used by HP pwplus--don't use.
6190 rm -rf conftest.one conftest.two conftest.dir
6191 echo one
> conftest.one
6192 echo two
> conftest.two
6194 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6195 test -s conftest.one
&& test -s conftest.two
&&
6196 test -s conftest.dir
/conftest.one
&&
6197 test -s conftest.dir
/conftest.two
6199 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6212 rm -rf conftest.one conftest.two conftest.dir
6215 if test "${ac_cv_path_install+set}" = set; then
6216 INSTALL
=$ac_cv_path_install
6218 # As a last resort, use the slow shell script. Don't cache a
6219 # value for INSTALL within a source directory, because that will
6220 # break other packages using the cache if that directory is
6221 # removed, or if the value is a relative name.
6222 INSTALL
=$ac_install_sh
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6226 $as_echo "$INSTALL" >&6; }
6228 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6229 # It thinks the first close brace ends the variable substitution.
6230 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6232 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6234 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6237 $as_echo_n "checking whether build environment is sane... " >&6; }
6240 echo timestamp
> conftest.
file
6241 # Reject unsafe characters in $srcdir or the absolute working directory
6242 # name. Accept space and tab only in the latter.
6246 *[\\\"\
#\$\&\'\`$am_lf]*)
6247 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
6250 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
6251 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
6254 # Do `set' in a subshell so we don't clobber the current shell's
6255 # arguments. Must try -L first in case configure is actually a
6256 # symlink; some systems play weird games with the mod time of symlinks
6257 # (eg FreeBSD returns the mod time of the symlink's containing
6260 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6261 if test "$*" = "X"; then
6263 set X
`ls -t "$srcdir/configure" conftest.file`
6266 if test "$*" != "X $srcdir/configure conftest.file" \
6267 && test "$*" != "X conftest.file $srcdir/configure"; then
6269 # If neither matched, then we have a broken ls. This can happen
6270 # if, for instance, CONFIG_SHELL is bash and it inherits a
6271 # broken ls alias from the environment. This has actually
6272 # happened. Such a system could not be considered "sane".
6273 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
6274 alias in your environment" "$LINENO" 5
6277 test "$2" = conftest.
file
6283 as_fn_error
"newly created file is older than distributed files!
6284 Check your system clock" "$LINENO" 5
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6287 $as_echo "yes" >&6; }
6288 test "$program_prefix" != NONE
&&
6289 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
6290 # Use a double $ so make ignores it.
6291 test "$program_suffix" != NONE
&&
6292 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
6293 # Double any \ or $.
6294 # By default was `s,x,x', remove it if useless.
6295 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
6296 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
6298 # expand $ac_aux_dir to an absolute path
6299 am_aux_dir
=`cd $ac_aux_dir && pwd`
6301 if test x
"${MISSING+set}" != xset
; then
6304 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
6306 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
6309 # Use eval to expand $SHELL
6310 if eval "$MISSING --run true"; then
6311 am_missing_run
="$MISSING --run "
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
6315 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6318 if test x
"${install_sh}" != xset
; then
6321 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
6323 install_sh
="\${SHELL} $am_aux_dir/install-sh"
6327 # Installed binaries are usually stripped using `strip' when the user
6328 # run `make install-strip'. However `strip' might not be the right
6329 # tool to use in cross-compilation environments, therefore Automake
6330 # will honor the `STRIP' environment variable to overrule this program.
6331 if test "$cross_compiling" != no
; then
6332 if test -n "$ac_tool_prefix"; then
6333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6334 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if test "${ac_cv_prog_STRIP+set}" = set; then :
6338 $as_echo_n "(cached) " >&6
6340 if test -n "$STRIP"; then
6341 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6347 test -z "$as_dir" && as_dir
=.
6348 for ac_exec_ext
in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 STRIP
=$ac_cv_prog_STRIP
6361 if test -n "$STRIP"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6363 $as_echo "$STRIP" >&6; }
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6371 if test -z "$ac_cv_prog_STRIP"; then
6373 # Extract the first word of "strip", so it can be a program name with args.
6374 set dummy strip
; ac_word
=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6380 if test -n "$ac_ct_STRIP"; then
6381 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6387 test -z "$as_dir" && as_dir
=.
6388 for ac_exec_ext
in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_prog_ac_ct_STRIP
="strip"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6401 if test -n "$ac_ct_STRIP"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6403 $as_echo "$ac_ct_STRIP" >&6; }
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6409 if test "x$ac_ct_STRIP" = x
; then
6412 case $cross_compiling:$ac_tool_warned in
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6416 ac_tool_warned
=yes ;;
6421 STRIP
="$ac_cv_prog_STRIP"
6425 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6428 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6429 if test -z "$MKDIR_P"; then
6430 if test "${ac_cv_path_mkdir+set}" = set; then :
6431 $as_echo_n "(cached) " >&6
6433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6434 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
6437 test -z "$as_dir" && as_dir
=.
6438 for ac_prog
in mkdir gmkdir
; do
6439 for ac_exec_ext
in '' $ac_executable_extensions; do
6440 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
6441 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6442 'mkdir (GNU coreutils) '* | \
6443 'mkdir (coreutils) '* | \
6444 'mkdir (fileutils) '4.1*)
6445 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
6455 if test "${ac_cv_path_mkdir+set}" = set; then
6456 MKDIR_P
="$ac_cv_path_mkdir -p"
6458 # As a last resort, use the slow shell script. Don't cache a
6459 # value for MKDIR_P within a source directory, because that will
6460 # break other packages using the cache if that directory is
6461 # removed, or if the value is a relative name.
6462 test -d .
/--version && rmdir .
/--version
6463 MKDIR_P
="$ac_install_sh -d"
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6467 $as_echo "$MKDIR_P" >&6; }
6471 [\\/$
]* | ?
:[\\/]*) ;;
6472 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
6475 for ac_prog
in gawk mawk nawk
awk
6477 # Extract the first word of "$ac_prog", so it can be a program name with args.
6478 set dummy
$ac_prog; ac_word
=$2
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if test "${ac_cv_prog_AWK+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6484 if test -n "$AWK"; then
6485 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir
=.
6492 for ac_exec_ext
in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_prog_AWK
="$ac_prog"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 if test -n "$AWK"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6507 $as_echo "$AWK" >&6; }
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6514 test -n "$AWK" && break
6517 ac_config_commands
="$ac_config_commands depfiles"
6520 am_make
=${MAKE-make}
6521 cat > confinc
<< 'END'
6523 @
echo this is the am__doit target
6526 # If we don't find an include directive, just comment out the code.
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6528 $as_echo_n "checking for style of include used by $am_make... " >&6; }
6532 # First try GNU make style include.
6533 echo "include confinc" > confmf
6534 # Ignore all kinds of additional output from `make'.
6535 case `$am_make -s -f confmf 2> /dev/null` in #(
6536 *the\ am__doit\ target
*)
6542 # Now try BSD make style include.
6543 if test "$am__include" = "#"; then
6544 echo '.include "confinc"' > confmf
6545 case `$am_make -s -f confmf 2> /dev/null` in #(
6546 *the\ am__doit\ target
*)
6547 am__include
=.include
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6556 $as_echo "$_am_result" >&6; }
6557 rm -f confinc confmf
6559 # Check whether --enable-dependency-tracking was given.
6560 if test "${enable_dependency_tracking+set}" = set; then :
6561 enableval
=$enable_dependency_tracking;
6564 if test "x$enable_dependency_tracking" != xno
; then
6565 am_depcomp
="$ac_aux_dir/depcomp"
6568 if test "x$enable_dependency_tracking" != xno; then
6577 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6578 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6579 # is not polluted with repeated "-I."
6580 am__isrc
=' -I$(srcdir)'
6581 # test to see if srcdir already configured
6582 if test -f $srcdir/config.status
; then
6583 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6587 # test whether we have cygpath
6588 if test -z "$CYGPATH_W"; then
6589 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
6590 CYGPATH_W
='cygpath -w'
6597 # Define the identity of the package.
6599 VERSION
=UNUSED-VERSION
6602 # Some tools Automake needs.
6604 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6607 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
6610 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6613 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
6616 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
6618 # We need awk for the "check" target. The system "awk" is bad on
6620 # Always define AMTAR for backward compatibility.
6622 AMTAR
=${AMTAR-"${am_missing_run}tar"}
6624 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
6629 depcc
="$CC" am_compiler_list
=
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6632 $as_echo_n "checking dependency style of $depcc... " >&6; }
6633 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6634 $as_echo_n "(cached) " >&6
6636 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6637 # We make a subdir and do the tests there. Otherwise we can end up
6638 # making bogus files that we don't know about and never remove. For
6639 # instance it was reported that on HP-UX the gcc test will end up
6640 # making a dummy file named `D' -- because `-MD' means `put the output
6643 # Copy depcomp to subdir because otherwise we won't find it if we're
6644 # using a relative directory.
6645 cp "$am_depcomp" conftest.dir
6647 # We will build objects and dependencies in a subdirectory because
6648 # it helps to detect inapplicable dependency modes. For instance
6649 # both Tru64's cc and ICC support -MD to output dependencies as a
6650 # side effect of compilation, but ICC will put the dependencies in
6651 # the current directory while Tru64 will put them in the object
6655 am_cv_CC_dependencies_compiler_type
=none
6656 if test "$am_compiler_list" = ""; then
6657 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6660 case " $depcc " in #(
6661 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
6664 for depmode
in $am_compiler_list; do
6665 # Setup a source with many dependencies, because some compilers
6666 # like to wrap large dependency lists on column 80 (with \), and
6667 # we should not choose a depcomp mode which is confused by this.
6669 # We need to recreate these files for each test, as the compiler may
6670 # overwrite some of them when testing with obscure command lines.
6671 # This happens at least with the AIX C compiler.
6673 for i
in 1 2 3 4 5 6; do
6674 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6675 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6676 # Solaris 8's {/usr,}/bin/sh.
6677 touch sub
/conftst
$i.h
6679 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6681 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6682 # mode. It turns out that the SunPro C++ compiler does not properly
6683 # handle `-M -o', and we need to detect this. Also, some Intel
6684 # versions had trouble with output in subdirs
6685 am__obj
=sub
/conftest.
${OBJEXT-o}
6686 am__minus_obj
="-o $am__obj"
6689 # This depmode causes a compiler race in universal mode.
6690 test "$am__universal" = false ||
continue
6693 # after this tag, mechanisms are not by side-effect, so they'll
6694 # only be used when explicitly requested
6695 if test "x$enable_dependency_tracking" = xyes
; then
6701 msvisualcpp | msvcmsys
)
6702 # This compiler won't grok `-c -o', but also, the minuso test has
6703 # not run yet. These depmodes are late enough in the game, and
6704 # so weak that their functioning should not be impacted.
6705 am__obj
=conftest.
${OBJEXT-o}
6710 if depmode
=$depmode \
6711 source=sub
/conftest.c object
=$am__obj \
6712 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6713 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
6714 >/dev
/null
2>conftest.err
&&
6715 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6716 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6717 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
6718 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6719 # icc doesn't choke on unknown options, it will just issue warnings
6720 # or remarks (even with -Werror). So we grep stderr for any message
6721 # that says an option was ignored or not supported.
6722 # When given -MP, icc 7.0 and 7.1 complain thusly:
6723 # icc: Command line warning: ignoring option '-M'; no argument required
6724 # The diagnosis changed in icc 8.0:
6725 # icc: Command line remark: option '-MP' not supported
6726 if (grep 'ignoring option' conftest.err ||
6727 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6728 am_cv_CC_dependencies_compiler_type
=$depmode
6737 am_cv_CC_dependencies_compiler_type
=none
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6742 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6743 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6746 test "x$enable_dependency_tracking" != xno \
6747 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
6749 am__fastdepCC_FALSE
='#'
6751 am__fastdepCC_TRUE
='#'
6752 am__fastdepCC_FALSE
=
6760 # Check whether --with-separate-debug-dir was given.
6761 if test "${with_separate_debug_dir+set}" = set; then :
6762 withval
=$with_separate_debug_dir;
6765 DEBUGDIR
=${libdir}/debug
6769 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6770 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6771 ac_define_dir
=`eval echo $DEBUGDIR`
6772 ac_define_dir
=`eval echo $ac_define_dir`
6774 cat >>confdefs.h
<<_ACEOF
6775 #define DEBUGDIR "$ac_define_dir"
6780 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6781 if test "x$prefix" = xNONE
; then
6782 test_prefix
=/usr
/local
6787 test_prefix
=$exec_prefix
6790 case ${ac_define_dir} in
6791 "${test_prefix}"|
"${test_prefix}/"*|\
6792 '${exec_prefix}'|
'${exec_prefix}/'*)
6797 cat >>confdefs.h
<<_ACEOF
6798 #define DEBUGDIR_RELOCATABLE $value
6803 # GDB's datadir relocation
6807 # Check whether --with-gdb-datadir was given.
6808 if test "${with_gdb_datadir+set}" = set; then :
6809 withval
=$with_gdb_datadir;
6810 GDB_DATADIR
=$withval
6812 GDB_DATADIR
=${datadir}/gdb
6816 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6817 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6818 ac_define_dir
=`eval echo $GDB_DATADIR`
6819 ac_define_dir
=`eval echo $ac_define_dir`
6821 cat >>confdefs.h
<<_ACEOF
6822 #define GDB_DATADIR "$ac_define_dir"
6827 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6828 if test "x$prefix" = xNONE
; then
6829 test_prefix
=/usr
/local
6834 test_prefix
=$exec_prefix
6837 case ${ac_define_dir} in
6838 "${test_prefix}"|
"${test_prefix}/"*|\
6839 '${exec_prefix}'|
'${exec_prefix}/'*)
6844 cat >>confdefs.h
<<_ACEOF
6845 #define GDB_DATADIR_RELOCATABLE $value
6851 # Check whether --with-relocated-sources was given.
6852 if test "${with_relocated_sources+set}" = set; then :
6853 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6855 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6856 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6857 ac_define_dir
=`eval echo $reloc_srcdir`
6858 ac_define_dir
=`eval echo $ac_define_dir`
6860 cat >>confdefs.h
<<_ACEOF
6861 #define RELOC_SRCDIR "$ac_define_dir"
6871 subdirs
="$subdirs doc testsuite"
6874 # Check whether to support alternative target configurations
6875 # Check whether --enable-targets was given.
6876 if test "${enable_targets+set}" = set; then :
6877 enableval
=$enable_targets; case "${enableval}" in
6878 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6880 no
) enable_targets
= ;;
6881 *) enable_targets
=$enableval ;;
6886 # Check whether to enable 64-bit support on 32-bit hosts
6887 # Check whether --enable-64-bit-bfd was given.
6888 if test "${enable_64_bit_bfd+set}" = set; then :
6889 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6892 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6898 # Provide defaults for some variables set by the per-host and per-target
6900 gdb_host_obs
=posix-hdep.o
6902 if test "${target}" = "${host}"; then
6908 .
$srcdir/configure.
host
6910 # Accumulate some settings from configure.tgt over all enabled targets
6915 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6917 if test "$targ_alias" = "all"; then
6920 # Canonicalize the secondary target names.
6921 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6922 if test -n "$result"; then
6928 .
${srcdir}/configure.tgt
6930 if test -z "${gdb_target_obs}"; then :
6931 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
6934 # Target-specific object files
6935 for i
in ${gdb_target_obs}; do
6936 case " $TARGET_OBS " in
6939 TARGET_OBS
="$TARGET_OBS ${i}"
6944 # Check whether this target needs 64-bit CORE_ADDR
6945 if test x
${want64} = xfalse
; then
6946 .
${srcdir}/..
/bfd
/config.bfd
6951 if test x
${all_targets} = xtrue
; then
6953 # We want all 64-bit targets if we either:
6954 # - run on a 64-bit host or
6955 # - already require 64-bit support for some other target or
6956 # - the --enable-64-bit-bfd option was supplied
6957 # Otherwise we only support all 32-bit targets.
6959 # NOTE: This test must be in sync with the corresponding
6962 if test x
${want64} = xfalse
; then
6963 # The cast to long int works around a bug in the HP C Compiler
6964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6966 # This bug is HP SR number 8606223364.
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6968 $as_echo_n "checking size of long... " >&6; }
6969 if test "${ac_cv_sizeof_long+set}" = set; then :
6970 $as_echo_n "(cached) " >&6
6972 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6975 if test "$ac_cv_type_long" = yes; then
6976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6978 { as_fn_set_status
77
6979 as_fn_error
"cannot compute sizeof (long)
6980 See \`config.log' for more details." "$LINENO" 5; }; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6988 $as_echo "$ac_cv_sizeof_long" >&6; }
6992 cat >>confdefs.h
<<_ACEOF
6993 #define SIZEOF_LONG $ac_cv_sizeof_long
6997 if test "x${ac_cv_sizeof_long}" = "x8"; then
7001 if test x
${want64} = xtrue
; then
7002 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7004 TARGET_OBS
='$(ALL_TARGET_OBS)'
7010 # For other settings, only the main target counts.
7014 targ
=$target; .
${srcdir}/configure.tgt
7016 # Fetch the default architecture and default target vector from BFD.
7017 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
7019 # We only want the first architecture, so strip off the others if
7020 # there is more than one.
7021 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
7023 if test "x$targ_archs" != x
; then
7025 cat >>confdefs.h
<<_ACEOF
7026 #define DEFAULT_BFD_ARCH $targ_archs
7030 if test "x$targ_defvec" != x
; then
7032 cat >>confdefs.h
<<_ACEOF
7033 #define DEFAULT_BFD_VEC $targ_defvec
7038 # The CLI cannot be disabled yet, but may be in the future.
7041 # Check whether --enable-gdbcli was given.
7042 if test "${enable_gdbcli+set}" = set; then :
7043 enableval
=$enable_gdbcli; case $enableval in
7047 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
7049 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
7055 if test x
"$enable_gdbcli" = xyes
; then
7056 if test -d $srcdir/cli
; then
7057 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7058 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7059 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7060 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7065 # Check whether --enable-gdbmi was given.
7066 if test "${enable_gdbmi+set}" = set; then :
7067 enableval
=$enable_gdbmi; case $enableval in
7071 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
7077 if test x
"$enable_gdbmi" = xyes
; then
7078 if test -d $srcdir/mi
; then
7079 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7080 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7081 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7082 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7087 # Check whether --enable-tui was given.
7088 if test "${enable_tui+set}" = set; then :
7089 enableval
=$enable_tui; case $enableval in
7093 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
7101 # Check whether --enable-gdbtk was given.
7102 if test "${enable_gdbtk+set}" = set; then :
7103 enableval
=$enable_gdbtk; case $enableval in
7107 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
7110 if test -d $srcdir/gdbtk
; then
7117 # We unconditionally disable gdbtk tests on selected platforms.
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
7121 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7125 # Libunwind support.
7127 # Check whether --with-libunwind was given.
7128 if test "${with_libunwind+set}" = set; then :
7129 withval
=$with_libunwind; case "${withval}" in
7130 yes) enable_libunwind
=yes ;;
7131 no
) enable_libunwind
=no
;;
7132 *) as_fn_error
"bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
7136 for ac_header
in libunwind.h libunwind-ia64.h
7138 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7139 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7140 eval as_val
=\$
$as_ac_Header
7141 if test "x$as_val" = x
""yes; then :
7142 cat >>confdefs.h
<<_ACEOF
7143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7150 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
7151 enable_libunwind
=yes;
7157 if test x
"$enable_libunwind" = xyes
; then
7158 for ac_header
in libunwind.h libunwind-ia64.h
7160 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7161 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7162 eval as_val
=\$
$as_ac_Header
7163 if test "x$as_val" = x
""yes; then :
7164 cat >>confdefs.h
<<_ACEOF
7165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7173 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
7175 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
7176 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
7177 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
7182 # Check whether --with-curses was given.
7183 if test "${with_curses+set}" = set; then :
7184 withval
=$with_curses; opt_curses
=$withval
7189 if test "$opt_curses" = "yes"; then
7193 # Profiling support.
7194 # Check whether --enable-profiling was given.
7195 if test "${enable_profiling+set}" = set; then :
7196 enableval
=$enable_profiling; case $enableval in
7200 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7207 for ac_func
in monstartup _mcleanup
7209 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7210 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7211 eval as_val
=\$
$as_ac_var
7212 if test "x$as_val" = x
""yes; then :
7213 cat >>confdefs.h
<<_ACEOF
7214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7221 $as_echo_n "checking for _etext... " >&6; }
7222 if test "${ac_cv_var__etext+set}" = set; then :
7223 $as_echo_n "(cached) " >&6
7225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7238 if ac_fn_c_try_link
"$LINENO"; then :
7239 ac_cv_var__etext
=yes
7243 rm -f core conftest.err conftest.
$ac_objext \
7244 conftest
$ac_exeext conftest.
$ac_ext
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7247 $as_echo "$ac_cv_var__etext" >&6; }
7248 if test $ac_cv_var__etext = yes; then
7250 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7254 $as_echo_n "checking for etext... " >&6; }
7255 if test "${ac_cv_var_etext+set}" = set; then :
7256 $as_echo_n "(cached) " >&6
7258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7271 if ac_fn_c_try_link
"$LINENO"; then :
7276 rm -f core conftest.err conftest.
$ac_objext \
7277 conftest
$ac_exeext conftest.
$ac_ext
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7280 $as_echo "$ac_cv_var_etext" >&6; }
7281 if test $ac_cv_var_etext = yes; then
7283 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7286 if test "$enable_profiling" = yes ; then
7287 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
7288 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7291 OLD_CFLAGS
="$CFLAGS"
7292 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7295 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7296 if test "${ac_cv_cc_supports_pg+set}" = set; then :
7297 $as_echo_n "(cached) " >&6
7299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7310 if ac_fn_c_try_compile
"$LINENO"; then :
7311 ac_cv_cc_supports_pg
=yes
7313 ac_cv_cc_supports_pg
=no
7315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7318 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7320 if test $ac_cv_cc_supports_pg = no
; then
7321 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7324 CFLAGS
="$OLD_CFLAGS"
7329 # Check whether --with-pkgversion was given.
7330 if test "${with_pkgversion+set}" = set; then :
7331 withval
=$with_pkgversion; case "$withval" in
7332 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7334 *) PKGVERSION
="($withval) " ;;
7345 # Check whether --with-bugurl was given.
7346 if test "${with_bugurl+set}" = set; then :
7347 withval
=$with_bugurl; case "$withval" in
7348 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7351 *) BUGURL
="$withval"
7355 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7365 REPORT_BUGS_TO
="<$BUGURL>"
7366 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7373 cat >>confdefs.h
<<_ACEOF
7374 #define PKGVERSION "$PKGVERSION"
7378 cat >>confdefs.h
<<_ACEOF
7379 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7383 # --------------------- #
7384 # Checks for programs. #
7385 # --------------------- #
7387 for ac_prog
in gawk mawk nawk
awk
7389 # Extract the first word of "$ac_prog", so it can be a program name with args.
7390 set dummy
$ac_prog; ac_word
=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if test "${ac_cv_prog_AWK+set}" = set; then :
7394 $as_echo_n "(cached) " >&6
7396 if test -n "$AWK"; then
7397 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir
=.
7404 for ac_exec_ext
in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_prog_AWK
="$ac_prog"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 if test -n "$AWK"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7419 $as_echo "$AWK" >&6; }
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7426 test -n "$AWK" && break
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7431 $as_echo_n "checking whether ln -s works... " >&6; }
7433 if test "$LN_S" = "ln -s"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7435 $as_echo "yes" >&6; }
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7438 $as_echo "no, using $LN_S" >&6; }
7441 if test -n "$ac_tool_prefix"; then
7442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7443 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7449 if test -n "$RANLIB"; then
7450 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir
=.
7457 for ac_exec_ext
in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 RANLIB
=$ac_cv_prog_RANLIB
7470 if test -n "$RANLIB"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7472 $as_echo "$RANLIB" >&6; }
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7480 if test -z "$ac_cv_prog_RANLIB"; then
7481 ac_ct_RANLIB
=$RANLIB
7482 # Extract the first word of "ranlib", so it can be a program name with args.
7483 set dummy ranlib
; ac_word
=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7487 $as_echo_n "(cached) " >&6
7489 if test -n "$ac_ct_RANLIB"; then
7490 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7496 test -z "$as_dir" && as_dir
=.
7497 for ac_exec_ext
in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7499 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7510 if test -n "$ac_ct_RANLIB"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7512 $as_echo "$ac_ct_RANLIB" >&6; }
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7518 if test "x$ac_ct_RANLIB" = x
; then
7521 case $cross_compiling:$ac_tool_warned in
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525 ac_tool_warned
=yes ;;
7527 RANLIB
=$ac_ct_RANLIB
7530 RANLIB
="$ac_cv_prog_RANLIB"
7533 for ac_prog
in 'bison -y' byacc
7535 # Extract the first word of "$ac_prog", so it can be a program name with args.
7536 set dummy
$ac_prog; ac_word
=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if test "${ac_cv_prog_YACC+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7542 if test -n "$YACC"; then
7543 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir
=.
7550 for ac_exec_ext
in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_prog_YACC
="$ac_prog"
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 YACC
=$ac_cv_prog_YACC
7563 if test -n "$YACC"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7565 $as_echo "$YACC" >&6; }
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7572 test -n "$YACC" && break
7574 test -n "$YACC" || YACC
="yacc"
7577 if test -n "$ac_tool_prefix"; then
7578 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7579 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if test "${ac_cv_prog_AR+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7585 if test -n "$AR"; then
7586 ac_cv_prog_AR
="$AR" # Let the user override the test.
7588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7592 test -z "$as_dir" && as_dir
=.
7593 for ac_exec_ext
in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 if test -n "$AR"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7608 $as_echo "$AR" >&6; }
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7616 if test -z "$ac_cv_prog_AR"; then
7618 # Extract the first word of "ar", so it can be a program name with args.
7619 set dummy
ar; ac_word
=$2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 $as_echo_n "checking for $ac_word... " >&6; }
7622 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7625 if test -n "$ac_ct_AR"; then
7626 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7632 test -z "$as_dir" && as_dir
=.
7633 for ac_exec_ext
in '' $ac_executable_extensions; do
7634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7635 ac_cv_prog_ac_ct_AR
="ar"
7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7646 if test -n "$ac_ct_AR"; then
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7648 $as_echo "$ac_ct_AR" >&6; }
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7654 if test "x$ac_ct_AR" = x
; then
7657 case $cross_compiling:$ac_tool_warned in
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7661 ac_tool_warned
=yes ;;
7669 if test -n "$ac_tool_prefix"; then
7670 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7671 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7677 if test -n "$DLLTOOL"; then
7678 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7684 test -z "$as_dir" && as_dir
=.
7685 for ac_exec_ext
in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 DLLTOOL
=$ac_cv_prog_DLLTOOL
7698 if test -n "$DLLTOOL"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7700 $as_echo "$DLLTOOL" >&6; }
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7708 if test -z "$ac_cv_prog_DLLTOOL"; then
7709 ac_ct_DLLTOOL
=$DLLTOOL
7710 # Extract the first word of "dlltool", so it can be a program name with args.
7711 set dummy dlltool
; ac_word
=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7717 if test -n "$ac_ct_DLLTOOL"; then
7718 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7724 test -z "$as_dir" && as_dir
=.
7725 for ac_exec_ext
in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7738 if test -n "$ac_ct_DLLTOOL"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7740 $as_echo "$ac_ct_DLLTOOL" >&6; }
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7746 if test "x$ac_ct_DLLTOOL" = x
; then
7749 case $cross_compiling:$ac_tool_warned in
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7753 ac_tool_warned
=yes ;;
7755 DLLTOOL
=$ac_ct_DLLTOOL
7758 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7761 if test -n "$ac_tool_prefix"; then
7762 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7763 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if test "${ac_cv_prog_WINDRES+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7769 if test -n "$WINDRES"; then
7770 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7776 test -z "$as_dir" && as_dir
=.
7777 for ac_exec_ext
in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 WINDRES
=$ac_cv_prog_WINDRES
7790 if test -n "$WINDRES"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7792 $as_echo "$WINDRES" >&6; }
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7800 if test -z "$ac_cv_prog_WINDRES"; then
7801 ac_ct_WINDRES
=$WINDRES
7802 # Extract the first word of "windres", so it can be a program name with args.
7803 set dummy windres
; ac_word
=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7809 if test -n "$ac_ct_WINDRES"; then
7810 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7816 test -z "$as_dir" && as_dir
=.
7817 for ac_exec_ext
in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_prog_ac_ct_WINDRES
="windres"
7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7830 if test -n "$ac_ct_WINDRES"; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7832 $as_echo "$ac_ct_WINDRES" >&6; }
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7838 if test "x$ac_ct_WINDRES" = x
; then
7841 case $cross_compiling:$ac_tool_warned in
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7845 ac_tool_warned
=yes ;;
7847 WINDRES
=$ac_ct_WINDRES
7850 WINDRES
="$ac_cv_prog_WINDRES"
7854 # Needed for GNU/Hurd.
7855 if test -n "$ac_tool_prefix"; then
7856 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7857 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if test "${ac_cv_prog_MIG+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7863 if test -n "$MIG"; then
7864 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7870 test -z "$as_dir" && as_dir
=.
7871 for ac_exec_ext
in '' $ac_executable_extensions; do
7872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7873 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 if test -n "$MIG"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7886 $as_echo "$MIG" >&6; }
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7894 if test -z "$ac_cv_prog_MIG"; then
7896 # Extract the first word of "mig", so it can be a program name with args.
7897 set dummy mig
; ac_word
=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
7903 if test -n "$ac_ct_MIG"; then
7904 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7910 test -z "$as_dir" && as_dir
=.
7911 for ac_exec_ext
in '' $ac_executable_extensions; do
7912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7913 ac_cv_prog_ac_ct_MIG
="mig"
7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7924 if test -n "$ac_ct_MIG"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7926 $as_echo "$ac_ct_MIG" >&6; }
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7932 if test "x$ac_ct_MIG" = x
; then
7935 case $cross_compiling:$ac_tool_warned in
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7939 ac_tool_warned
=yes ;;
7944 MIG
="$ac_cv_prog_MIG"
7948 # ---------------------- #
7949 # Checks for libraries. #
7950 # ---------------------- #
7952 # We might need to link with -lm; most simulators need it.
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7954 $as_echo_n "checking for main in -lm... " >&6; }
7955 if test "${ac_cv_lib_m_main+set}" = set; then :
7956 $as_echo_n "(cached) " >&6
7958 ac_check_lib_save_LIBS
=$LIBS
7960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7972 if ac_fn_c_try_link
"$LINENO"; then :
7973 ac_cv_lib_m_main
=yes
7977 rm -f core conftest.err conftest.
$ac_objext \
7978 conftest
$ac_exeext conftest.
$ac_ext
7979 LIBS
=$ac_check_lib_save_LIBS
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7982 $as_echo "$ac_cv_lib_m_main" >&6; }
7983 if test "x$ac_cv_lib_m_main" = x
""yes; then :
7984 cat >>confdefs.h
<<_ACEOF
7993 # We need to link with -lw to get `wctype' on Solaris before Solaris
7994 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7995 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7996 # is known to have this problem). Therefore we avoid libw if we can.
7997 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
7998 if test "x$ac_cv_func_wctype" = x
""yes; then :
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
8002 $as_echo_n "checking for wctype in -lw... " >&6; }
8003 if test "${ac_cv_lib_w_wctype+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
8006 ac_check_lib_save_LIBS
=$LIBS
8008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h. */
8011 /* Override any GCC internal prototype to avoid an error.
8012 Use char because int might match the return type of a GCC
8013 builtin and then its argument prototype would still apply. */
8026 if ac_fn_c_try_link
"$LINENO"; then :
8027 ac_cv_lib_w_wctype
=yes
8029 ac_cv_lib_w_wctype
=no
8031 rm -f core conftest.err conftest.
$ac_objext \
8032 conftest
$ac_exeext conftest.
$ac_ext
8033 LIBS
=$ac_check_lib_save_LIBS
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
8036 $as_echo "$ac_cv_lib_w_wctype" >&6; }
8037 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
8038 cat >>confdefs.h
<<_ACEOF
8049 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8051 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8052 if test "${ac_cv_search_gethostbyname+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8055 ac_func_search_save_LIBS
=$LIBS
8056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8059 /* Override any GCC internal prototype to avoid an error.
8060 Use char because int might match the return type of a GCC
8061 builtin and then its argument prototype would still apply. */
8065 char gethostbyname ();
8069 return gethostbyname ();
8074 for ac_lib
in '' nsl
; do
8075 if test -z "$ac_lib"; then
8076 ac_res
="none required"
8079 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8081 if ac_fn_c_try_link
"$LINENO"; then :
8082 ac_cv_search_gethostbyname
=$ac_res
8084 rm -f core conftest.err conftest.
$ac_objext \
8086 if test "${ac_cv_search_gethostbyname+set}" = set; then :
8090 if test "${ac_cv_search_gethostbyname+set}" = set; then :
8093 ac_cv_search_gethostbyname
=no
8096 LIBS
=$ac_func_search_save_LIBS
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8099 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8100 ac_res
=$ac_cv_search_gethostbyname
8101 if test "$ac_res" != no
; then :
8102 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8107 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8109 $as_echo_n "checking for library containing socketpair... " >&6; }
8110 if test "${ac_cv_search_socketpair+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8113 ac_func_search_save_LIBS
=$LIBS
8114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8117 /* Override any GCC internal prototype to avoid an error.
8118 Use char because int might match the return type of a GCC
8119 builtin and then its argument prototype would still apply. */
8127 return socketpair ();
8132 for ac_lib
in '' socket
; do
8133 if test -z "$ac_lib"; then
8134 ac_res
="none required"
8137 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8139 if ac_fn_c_try_link
"$LINENO"; then :
8140 ac_cv_search_socketpair
=$ac_res
8142 rm -f core conftest.err conftest.
$ac_objext \
8144 if test "${ac_cv_search_socketpair+set}" = set; then :
8148 if test "${ac_cv_search_socketpair+set}" = set; then :
8151 ac_cv_search_socketpair
=no
8154 LIBS
=$ac_func_search_save_LIBS
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8157 $as_echo "$ac_cv_search_socketpair" >&6; }
8158 ac_res
=$ac_cv_search_socketpair
8159 if test "$ac_res" != no
; then :
8160 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8165 # Link in zlib if we can. This allows us to read compressed debug sections.
8167 # See if the user specified whether he wants zlib support or not.
8169 # Check whether --with-zlib was given.
8170 if test "${with_zlib+set}" = set; then :
8177 if test "$with_zlib" != "no"; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
8179 $as_echo_n "checking for library containing zlibVersion... " >&6; }
8180 if test "${ac_cv_search_zlibVersion+set}" = set; then :
8181 $as_echo_n "(cached) " >&6
8183 ac_func_search_save_LIBS
=$LIBS
8184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8187 /* Override any GCC internal prototype to avoid an error.
8188 Use char because int might match the return type of a GCC
8189 builtin and then its argument prototype would still apply. */
8193 char zlibVersion ();
8197 return zlibVersion ();
8202 for ac_lib
in '' z
; do
8203 if test -z "$ac_lib"; then
8204 ac_res
="none required"
8207 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8209 if ac_fn_c_try_link
"$LINENO"; then :
8210 ac_cv_search_zlibVersion
=$ac_res
8212 rm -f core conftest.err conftest.
$ac_objext \
8214 if test "${ac_cv_search_zlibVersion+set}" = set; then :
8218 if test "${ac_cv_search_zlibVersion+set}" = set; then :
8221 ac_cv_search_zlibVersion
=no
8224 LIBS
=$ac_func_search_save_LIBS
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
8227 $as_echo "$ac_cv_search_zlibVersion" >&6; }
8228 ac_res
=$ac_cv_search_zlibVersion
8229 if test "$ac_res" != no
; then :
8230 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8231 for ac_header
in zlib.h
8233 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8234 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
8235 cat >>confdefs.h
<<_ACEOF
8236 #define HAVE_ZLIB_H 1
8245 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
8246 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
8251 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
8253 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
8254 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8257 ac_func_search_save_LIBS
=$LIBS
8258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8261 /* Override any GCC internal prototype to avoid an error.
8262 Use char because int might match the return type of a GCC
8263 builtin and then its argument prototype would still apply. */
8267 char dlgetmodinfo ();
8271 return dlgetmodinfo ();
8276 for ac_lib
in '' dl xpdl
; do
8277 if test -z "$ac_lib"; then
8278 ac_res
="none required"
8281 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8283 if ac_fn_c_try_link
"$LINENO"; then :
8284 ac_cv_search_dlgetmodinfo
=$ac_res
8286 rm -f core conftest.err conftest.
$ac_objext \
8288 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8292 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8295 ac_cv_search_dlgetmodinfo
=no
8298 LIBS
=$ac_func_search_save_LIBS
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
8301 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
8302 ac_res
=$ac_cv_search_dlgetmodinfo
8303 if test "$ac_res" != no
; then :
8304 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8312 # Check whether --with-libiconv-prefix was given.
8313 if test "${with_libiconv_prefix+set}" = set; then :
8314 withval
=$with_libiconv_prefix;
8315 for dir
in `echo "$withval" | tr : ' '`; do
8316 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
8317 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
8323 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
8324 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8327 $as_echo_n "checking for iconv... " >&6; }
8328 if test "${am_cv_func_iconv+set}" = set; then :
8329 $as_echo_n "(cached) " >&6
8332 am_cv_func_iconv
="no, consider installing GNU libiconv"
8334 am_cv_use_build_libiconv
=no
8335 am_cv_build_libiconv_path
=
8337 # If libiconv is part of the build tree, then try using it over
8339 if test -d ..
/libiconv
; then
8340 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
8341 am_save_LIBS
="$LIBS"
8342 am_save_CPPFLAGS
="$CPPFLAGS"
8343 LIBS
="$LIBS $lib_dir/libiconv.a"
8344 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
8345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8352 iconv_t cd = iconv_open("","");
8353 iconv(cd,NULL,NULL,NULL,NULL);
8359 if ac_fn_c_try_link
"$LINENO"; then :
8360 am_cv_use_build_libiconv
=yes
8361 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
8363 am_cv_func_iconv
=yes
8365 rm -f core conftest.err conftest.
$ac_objext \
8366 conftest
$ac_exeext conftest.
$ac_ext
8367 LIBS
="$am_save_LIBS"
8368 CPPFLAGS
="$am_save_CPPFLAGS"
8369 if test "$am_cv_use_build_libiconv" = "yes"; then
8375 # Next, try to find iconv in libc.
8376 if test "$am_cv_func_iconv" != yes; then
8377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8384 iconv_t cd = iconv_open("","");
8385 iconv(cd,NULL,NULL,NULL,NULL);
8391 if ac_fn_c_try_link
"$LINENO"; then :
8392 am_cv_func_iconv
=yes
8394 rm -f core conftest.err conftest.
$ac_objext \
8395 conftest
$ac_exeext conftest.
$ac_ext
8398 # If iconv was not in libc, try -liconv. In this case, arrange to
8399 # look in the libiconv prefix, if it was specified by the user.
8400 if test "$am_cv_func_iconv" != yes; then
8401 am_save_CPPFLAGS
="$CPPFLAGS"
8402 am_save_LIBS
="$LIBS"
8403 if test -n "$LIBICONV_INCLUDE"; then
8404 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
8405 LIBS
="$LIBS $LIBICONV_LIBDIR"
8407 LIBS
="$LIBS -liconv"
8408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8415 iconv_t cd = iconv_open("","");
8416 iconv(cd,NULL,NULL,NULL,NULL);
8422 if ac_fn_c_try_link
"$LINENO"; then :
8424 am_cv_func_iconv
=yes
8426 rm -f core conftest.err conftest.
$ac_objext \
8427 conftest
$ac_exeext conftest.
$ac_ext
8428 LIBS
="$am_save_LIBS"
8429 CPPFLAGS
="$am_save_CPPFLAGS"
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8434 $as_echo "$am_cv_func_iconv" >&6; }
8436 # Set the various flags based on the cache variables. We can't rely
8437 # on the flags to remain set from the above code, due to caching.
8439 if test "$am_cv_lib_iconv" = yes; then
8445 if test "$am_cv_use_build_libiconv" = yes; then
8446 LIBICONV
="$am_cv_build_libiconv_path"
8448 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
8450 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
8451 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
8453 if test "$am_cv_func_iconv" = yes; then
8455 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8458 $as_echo_n "checking for iconv declaration... " >&6; }
8459 if test "${am_cv_proto_iconv+set}" = set; then :
8460 $as_echo_n "(cached) " >&6
8463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8472 #if defined(__STDC__) || defined(__cplusplus)
8473 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8486 if ac_fn_c_try_compile
"$LINENO"; then :
8487 am_cv_proto_iconv_arg1
=""
8489 am_cv_proto_iconv_arg1
="const"
8491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8492 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);"
8495 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8497 }$am_cv_proto_iconv" >&5
8499 }$am_cv_proto_iconv" >&6; }
8501 cat >>confdefs.h
<<_ACEOF
8502 #define ICONV_CONST $am_cv_proto_iconv_arg1
8508 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
8509 # There is a very specific comment in /usr/include/curses.h explaining that
8510 # termcap routines built into libcurses must not be used.
8512 # The symptoms we observed so far is GDB unexpectedly changing
8513 # the terminal settings when tgetent is called - this is particularly
8514 # visible as the output is missing carriage returns, and so rapidly
8515 # becomes very hard to read.
8517 # The readline configure script has already decided that libtermcap
8518 # was enough for its purposes, and so decided to build readline using
8519 # libtermcap. Since the TUI mode requires curses, building GDB with
8520 # TUI enabled results in both libraries to be used at the same time,
8521 # which is not allowed. This basically means that GDB with TUI is
8522 # broken on alpha-osf.
8526 if test x
"$enable_tui" = xyes
; then
8527 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
8529 if test x
"$enable_tui" = xauto
; then
8535 # For the TUI, we need enhanced curses functionality.
8536 if test x
"$enable_tui" != xno
; then
8541 if test x
"$prefer_curses" = xyes
; then
8542 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8543 # curses library because the latter might not provide all the
8544 # functionality we need. However, this leads to problems on systems
8545 # where the linker searches /usr/local/lib, but the compiler doesn't
8546 # search /usr/local/include, if ncurses is installed in /usr/local. A
8547 # default installation of ncurses on alpha*-dec-osf* will lead to such
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8550 $as_echo_n "checking for library containing waddstr... " >&6; }
8551 if test "${ac_cv_search_waddstr+set}" = set; then :
8552 $as_echo_n "(cached) " >&6
8554 ac_func_search_save_LIBS
=$LIBS
8555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8558 /* Override any GCC internal prototype to avoid an error.
8559 Use char because int might match the return type of a GCC
8560 builtin and then its argument prototype would still apply. */
8573 for ac_lib
in '' ncurses cursesX curses
; do
8574 if test -z "$ac_lib"; then
8575 ac_res
="none required"
8578 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8580 if ac_fn_c_try_link
"$LINENO"; then :
8581 ac_cv_search_waddstr
=$ac_res
8583 rm -f core conftest.err conftest.
$ac_objext \
8585 if test "${ac_cv_search_waddstr+set}" = set; then :
8589 if test "${ac_cv_search_waddstr+set}" = set; then :
8592 ac_cv_search_waddstr
=no
8595 LIBS
=$ac_func_search_save_LIBS
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8598 $as_echo "$ac_cv_search_waddstr" >&6; }
8599 ac_res
=$ac_cv_search_waddstr
8600 if test "$ac_res" != no
; then :
8601 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8606 if test "$ac_cv_search_waddstr" != no
; then
8611 # Check whether we should enable the TUI, but only do so if we really
8613 if test x
"$enable_tui" != xno
; then
8614 if test -d $srcdir/tui
; then
8615 if test "$curses_found" != no
; then
8616 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8617 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8618 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8619 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8620 CONFIG_ALL
="${CONFIG_ALL} all-tui"
8621 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
8622 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
8623 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
8625 if test x
"$enable_tui" = xyes
; then
8626 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8629 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8635 # Since GDB uses Readline, we need termcap functionality. In many
8636 # cases this will be provided by the curses library, but some systems
8637 # have a seperate termcap library, or no curses library at all.
8641 if test -d $srcdir/libtermcap
; then
8642 LIBS
="../libtermcap/libtermcap.a $LIBS"
8643 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8646 ac_cv_search_tgetent
="none required"
8649 ac_cv_search_tgetent
="none required"
8650 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
8654 # These are the libraries checked by Readline.
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8656 $as_echo_n "checking for library containing tgetent... " >&6; }
8657 if test "${ac_cv_search_tgetent+set}" = set; then :
8658 $as_echo_n "(cached) " >&6
8660 ac_func_search_save_LIBS
=$LIBS
8661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8664 /* Override any GCC internal prototype to avoid an error.
8665 Use char because int might match the return type of a GCC
8666 builtin and then its argument prototype would still apply. */
8679 for ac_lib
in '' termcap tinfo curses ncurses
; do
8680 if test -z "$ac_lib"; then
8681 ac_res
="none required"
8684 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8686 if ac_fn_c_try_link
"$LINENO"; then :
8687 ac_cv_search_tgetent
=$ac_res
8689 rm -f core conftest.err conftest.
$ac_objext \
8691 if test "${ac_cv_search_tgetent+set}" = set; then :
8695 if test "${ac_cv_search_tgetent+set}" = set; then :
8698 ac_cv_search_tgetent
=no
8701 LIBS
=$ac_func_search_save_LIBS
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8704 $as_echo "$ac_cv_search_tgetent" >&6; }
8705 ac_res
=$ac_cv_search_tgetent
8706 if test "$ac_res" != no
; then :
8707 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8712 if test "$ac_cv_search_tgetent" = no
; then
8713 as_fn_error
"no termcap library found" "$LINENO" 5
8717 # Check whether --with-system-readline was given.
8718 if test "${with_system_readline+set}" = set; then :
8719 withval
=$with_system_readline;
8723 if test "$with_system_readline" = yes; then
8728 # readline-6.0 started to use the name `_rl_echoing_p'.
8729 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
8732 $as_echo_n "checking for readline_echoing_p... " >&6; }
8734 LIBS
="$LIBS $READLINE"
8735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8741 extern int readline_echoing_p;
8742 return readline_echoing_p;
8747 if ac_fn_c_try_link
"$LINENO"; then :
8748 READLINE_ECHOING_P
=yes
8750 READLINE_ECHOING_P
=no
8752 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
8755 rm -f core conftest.err conftest.
$ac_objext \
8756 conftest
$ac_exeext conftest.
$ac_ext
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
8759 $as_echo "$READLINE_ECHOING_P" >&6; }
8761 READLINE
='$(READLINE_DIR)/libreadline.a'
8762 READLINE_DEPS
='$(READLINE)'
8763 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
8770 # Check whether --with-expat was given.
8771 if test "${with_expat+set}" = set; then :
8772 withval
=$with_expat;
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8778 $as_echo_n "checking whether to use expat... " >&6; }
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8780 $as_echo "$with_expat" >&6; }
8782 if test "${with_expat}" = no
; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8784 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8788 if test "X$prefix" = "XNONE"; then
8789 acl_final_prefix
="$ac_default_prefix"
8791 acl_final_prefix
="$prefix"
8793 if test "X$exec_prefix" = "XNONE"; then
8794 acl_final_exec_prefix
='${prefix}'
8796 acl_final_exec_prefix
="$exec_prefix"
8798 acl_save_prefix
="$prefix"
8799 prefix
="$acl_final_prefix"
8800 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8801 prefix
="$acl_save_prefix"
8804 # Check whether --with-gnu-ld was given.
8805 if test "${with_gnu_ld+set}" = set; then :
8806 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8811 # Prepare PATH_SEPARATOR.
8812 # The user is always right.
8813 if test "${PATH_SEPARATOR+set}" != set; then
8814 echo "#! /bin/sh" >conf$$.sh
8815 echo "exit 0" >>conf$$.sh
8817 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8825 if test "$GCC" = yes; then
8826 # Check if gcc -print-prog-name=ld gives a path.
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8828 $as_echo_n "checking for ld used by GCC... " >&6; }
8831 # gcc leaves a trailing carriage return which upsets mingw
8832 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8834 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8837 # Accept absolute paths.
8838 [\\/]* |
[A-Za-z
]:[\\/]*)
8839 re_direlt
='/[^/][^/]*/\.\./'
8840 # Canonicalize the path of ld
8841 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8842 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8843 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8845 test -z "$LD" && LD
="$ac_prog"
8848 # If it fails, then pretend we aren't using GCC.
8852 # If it is relative, then search for the first ld in PATH.
8856 elif test "$with_gnu_ld" = yes; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8858 $as_echo_n "checking for GNU ld... " >&6; }
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8861 $as_echo_n "checking for non-GNU ld... " >&6; }
8863 if test "${acl_cv_path_LD+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8866 if test -z "$LD"; then
8867 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8868 for ac_dir
in $PATH; do
8869 test -z "$ac_dir" && ac_dir
=.
8870 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8871 acl_cv_path_LD
="$ac_dir/$ac_prog"
8872 # Check to see if the program is GNU ld. I'd rather use --version,
8873 # but apparently some GNU ld's only accept -v.
8874 # Break only if it was the GNU/non-GNU ld that we prefer.
8875 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8876 test "$with_gnu_ld" != no
&& break
8878 test "$with_gnu_ld" != yes && break
8884 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8888 LD
="$acl_cv_path_LD"
8889 if test -n "$LD"; then
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8891 $as_echo "$LD" >&6; }
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894 $as_echo "no" >&6; }
8896 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8898 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8899 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8900 $as_echo_n "(cached) " >&6
8902 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8903 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8904 acl_cv_prog_gnu_ld
=yes
8906 acl_cv_prog_gnu_ld
=no
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8910 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8911 with_gnu_ld
=$acl_cv_prog_gnu_ld
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8916 $as_echo_n "checking for shared library run path origin... " >&6; }
8917 if test "${acl_cv_rpath+set}" = set; then :
8918 $as_echo_n "(cached) " >&6
8921 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8922 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8929 $as_echo "$acl_cv_rpath" >&6; }
8931 libext
="$acl_cv_libext"
8932 shlibext
="$acl_cv_shlibext"
8933 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8934 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8935 hardcode_direct
="$acl_cv_hardcode_direct"
8936 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8937 # Check whether --enable-rpath was given.
8938 if test "${enable_rpath+set}" = set; then :
8939 enableval
=$enable_rpath; :
8955 acl_save_prefix
="$prefix"
8956 prefix
="$acl_final_prefix"
8957 acl_save_exec_prefix
="$exec_prefix"
8958 exec_prefix
="$acl_final_exec_prefix"
8960 eval additional_includedir
=\"$includedir\"
8961 eval additional_libdir
=\"$libdir\"
8963 exec_prefix
="$acl_save_exec_prefix"
8964 prefix
="$acl_save_prefix"
8967 # Check whether --with-libexpat-prefix was given.
8968 if test "${with_libexpat_prefix+set}" = set; then :
8969 withval
=$with_libexpat_prefix;
8970 if test "X$withval" = "Xno"; then
8973 if test "X$withval" = "X"; then
8975 acl_save_prefix
="$prefix"
8976 prefix
="$acl_final_prefix"
8977 acl_save_exec_prefix
="$exec_prefix"
8978 exec_prefix
="$acl_final_exec_prefix"
8980 eval additional_includedir
=\"$includedir\"
8981 eval additional_libdir
=\"$libdir\"
8983 exec_prefix
="$acl_save_exec_prefix"
8984 prefix
="$acl_save_prefix"
8987 additional_includedir
="$withval/include"
8988 additional_libdir
="$withval/lib"
8999 names_already_handled
=
9000 names_next_round
='expat '
9001 while test -n "$names_next_round"; do
9002 names_this_round
="$names_next_round"
9004 for name
in $names_this_round; do
9006 for n
in $names_already_handled; do
9007 if test "$n" = "$name"; then
9012 if test -z "$already_handled"; then
9013 names_already_handled
="$names_already_handled $name"
9014 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9015 eval value
=\"\
$HAVE_LIB$uppername\"
9016 if test -n "$value"; then
9017 if test "$value" = yes; then
9018 eval value
=\"\
$LIB$uppername\"
9019 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9020 eval value
=\"\
$LTLIB$uppername\"
9021 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9030 if test $use_additional = yes; then
9031 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9032 found_dir
="$additional_libdir"
9033 found_so
="$additional_libdir/lib$name.$shlibext"
9034 if test -f "$additional_libdir/lib$name.la"; then
9035 found_la
="$additional_libdir/lib$name.la"
9038 if test -f "$additional_libdir/lib$name.$libext"; then
9039 found_dir
="$additional_libdir"
9040 found_a
="$additional_libdir/lib$name.$libext"
9041 if test -f "$additional_libdir/lib$name.la"; then
9042 found_la
="$additional_libdir/lib$name.la"
9047 if test "X$found_dir" = "X"; then
9048 for x
in $LDFLAGS $LTLIBEXPAT; do
9050 acl_save_prefix
="$prefix"
9051 prefix
="$acl_final_prefix"
9052 acl_save_exec_prefix
="$exec_prefix"
9053 exec_prefix
="$acl_final_exec_prefix"
9055 exec_prefix
="$acl_save_exec_prefix"
9056 prefix
="$acl_save_prefix"
9060 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9061 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9063 found_so
="$dir/lib$name.$shlibext"
9064 if test -f "$dir/lib$name.la"; then
9065 found_la
="$dir/lib$name.la"
9068 if test -f "$dir/lib$name.$libext"; then
9070 found_a
="$dir/lib$name.$libext"
9071 if test -f "$dir/lib$name.la"; then
9072 found_la
="$dir/lib$name.la"
9078 if test "X$found_dir" != "X"; then
9083 if test "X$found_dir" != "X"; then
9084 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9085 if test "X$found_so" != "X"; then
9086 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9087 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9090 for x
in $ltrpathdirs; do
9091 if test "X$x" = "X$found_dir"; then
9096 if test -z "$haveit"; then
9097 ltrpathdirs
="$ltrpathdirs $found_dir"
9099 if test "$hardcode_direct" = yes; then
9100 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9102 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9103 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9105 for x
in $rpathdirs; do
9106 if test "X$x" = "X$found_dir"; then
9111 if test -z "$haveit"; then
9112 rpathdirs
="$rpathdirs $found_dir"
9116 for x
in $LDFLAGS $LIBEXPAT; do
9118 acl_save_prefix
="$prefix"
9119 prefix
="$acl_final_prefix"
9120 acl_save_exec_prefix
="$exec_prefix"
9121 exec_prefix
="$acl_final_exec_prefix"
9123 exec_prefix
="$acl_save_exec_prefix"
9124 prefix
="$acl_save_prefix"
9126 if test "X$x" = "X-L$found_dir"; then
9131 if test -z "$haveit"; then
9132 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9134 if test "$hardcode_minus_L" != no
; then
9135 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9137 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9143 if test "X$found_a" != "X"; then
9144 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9146 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9149 additional_includedir
=
9150 case "$found_dir" in
9152 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9153 additional_includedir
="$basedir/include"
9156 if test "X$additional_includedir" != "X"; then
9157 if test "X$additional_includedir" != "X/usr/include"; then
9159 if test "X$additional_includedir" = "X/usr/local/include"; then
9160 if test -n "$GCC"; then
9162 linux
*) haveit
=yes;;
9166 if test -z "$haveit"; then
9167 for x
in $CPPFLAGS $INCEXPAT; do
9169 acl_save_prefix
="$prefix"
9170 prefix
="$acl_final_prefix"
9171 acl_save_exec_prefix
="$exec_prefix"
9172 exec_prefix
="$acl_final_exec_prefix"
9174 exec_prefix
="$acl_save_exec_prefix"
9175 prefix
="$acl_save_prefix"
9177 if test "X$x" = "X-I$additional_includedir"; then
9182 if test -z "$haveit"; then
9183 if test -d "$additional_includedir"; then
9184 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9190 if test -n "$found_la"; then
9191 save_libdir
="$libdir"
9193 */* |
*\\*) .
"$found_la" ;;
9194 *) .
"./$found_la" ;;
9196 libdir
="$save_libdir"
9197 for dep
in $dependency_libs; do
9200 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9201 if test "X$additional_libdir" != "X/usr/lib"; then
9203 if test "X$additional_libdir" = "X/usr/local/lib"; then
9204 if test -n "$GCC"; then
9206 linux
*) haveit
=yes;;
9210 if test -z "$haveit"; then
9212 for x
in $LDFLAGS $LIBEXPAT; do
9214 acl_save_prefix
="$prefix"
9215 prefix
="$acl_final_prefix"
9216 acl_save_exec_prefix
="$exec_prefix"
9217 exec_prefix
="$acl_final_exec_prefix"
9219 exec_prefix
="$acl_save_exec_prefix"
9220 prefix
="$acl_save_prefix"
9222 if test "X$x" = "X-L$additional_libdir"; then
9227 if test -z "$haveit"; then
9228 if test -d "$additional_libdir"; then
9229 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9233 for x
in $LDFLAGS $LTLIBEXPAT; do
9235 acl_save_prefix
="$prefix"
9236 prefix
="$acl_final_prefix"
9237 acl_save_exec_prefix
="$exec_prefix"
9238 exec_prefix
="$acl_final_exec_prefix"
9240 exec_prefix
="$acl_save_exec_prefix"
9241 prefix
="$acl_save_prefix"
9243 if test "X$x" = "X-L$additional_libdir"; then
9248 if test -z "$haveit"; then
9249 if test -d "$additional_libdir"; then
9250 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9257 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9258 if test "$enable_rpath" != no
; then
9260 for x
in $rpathdirs; do
9261 if test "X$x" = "X$dir"; then
9266 if test -z "$haveit"; then
9267 rpathdirs
="$rpathdirs $dir"
9270 for x
in $ltrpathdirs; do
9271 if test "X$x" = "X$dir"; then
9276 if test -z "$haveit"; then
9277 ltrpathdirs
="$ltrpathdirs $dir"
9282 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9285 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9288 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9289 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9295 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9296 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9302 if test "X$rpathdirs" != "X"; then
9303 if test -n "$hardcode_libdir_separator"; then
9305 for found_dir
in $rpathdirs; do
9306 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9308 acl_save_libdir
="$libdir"
9310 eval flag
=\"$hardcode_libdir_flag_spec\"
9311 libdir
="$acl_save_libdir"
9312 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9314 for found_dir
in $rpathdirs; do
9315 acl_save_libdir
="$libdir"
9317 eval flag
=\"$hardcode_libdir_flag_spec\"
9318 libdir
="$acl_save_libdir"
9319 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9323 if test "X$ltrpathdirs" != "X"; then
9324 for found_dir
in $ltrpathdirs; do
9325 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9330 ac_save_CPPFLAGS
="$CPPFLAGS"
9332 for element
in $INCEXPAT; do
9334 for x
in $CPPFLAGS; do
9336 acl_save_prefix
="$prefix"
9337 prefix
="$acl_final_prefix"
9338 acl_save_exec_prefix
="$exec_prefix"
9339 exec_prefix
="$acl_final_exec_prefix"
9341 exec_prefix
="$acl_save_exec_prefix"
9342 prefix
="$acl_save_prefix"
9344 if test "X$x" = "X$element"; then
9349 if test -z "$haveit"; then
9350 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9356 $as_echo_n "checking for libexpat... " >&6; }
9357 if test "${ac_cv_libexpat+set}" = set; then :
9358 $as_echo_n "(cached) " >&6
9361 ac_save_LIBS
="$LIBS"
9362 LIBS
="$LIBS $LIBEXPAT"
9363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9369 XML_Parser p = XML_ParserCreate (0);
9374 if ac_fn_c_try_link
"$LINENO"; then :
9379 rm -f core conftest.err conftest.
$ac_objext \
9380 conftest
$ac_exeext conftest.
$ac_ext
9381 LIBS
="$ac_save_LIBS"
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9385 $as_echo "$ac_cv_libexpat" >&6; }
9386 if test "$ac_cv_libexpat" = yes; then
9389 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9392 $as_echo_n "checking how to link with libexpat... " >&6; }
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9394 $as_echo "$LIBEXPAT" >&6; }
9397 CPPFLAGS
="$ac_save_CPPFLAGS"
9407 if test "$HAVE_LIBEXPAT" != yes; then
9408 if test "$with_expat" = yes; then
9409 as_fn_error
"expat is missing or unusable" "$LINENO" 5
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9412 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9416 LIBS
="$LIBS $LIBEXPAT"
9417 for ac_func
in XML_StopParser
9419 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9420 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
9421 cat >>confdefs.h
<<_ACEOF
9422 #define HAVE_XML_STOPPARSER 1
9435 # Check whether --with-python was given.
9436 if test "${with_python+set}" = set; then :
9437 withval
=$with_python;
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
9443 $as_echo_n "checking whether to use python... " >&6; }
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
9445 $as_echo "$with_python" >&6; }
9447 if test "${with_python}" = no
; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
9449 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
9452 case "${with_python}" in
9454 # Leave as empty, use defaults.
9459 python_includes
="-I${with_python}/include"
9460 python_libs
="-L${with_python}/lib"
9463 as_fn_error
"invalid value for --with-python" "$LINENO" 5
9467 save_CPPFLAGS
=$CPPFLAGS
9468 CPPFLAGS
="$CPPFLAGS ${python_includes}"
9470 LIBS
="$LIBS ${python_libs}"
9472 if test "${have_libpython}" = no
; then
9477 HAVE_LIBPYTHON2_6
=no
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9479 $as_echo_n "checking for ${version}... " >&6; }
9481 LIBS
="$LIBS -l${version}"
9482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9484 #include "${version}/Python.h"
9493 if ac_fn_c_try_link
"$LINENO"; then :
9494 HAVE_LIBPYTHON2_6
=yes
9499 rm -f core conftest.err conftest.
$ac_objext \
9500 conftest
$ac_exeext conftest.
$ac_ext
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_6" >&5
9502 $as_echo "$HAVE_LIBPYTHON2_6" >&6; }
9504 if test "${HAVE_LIBPYTHON2_6}" = yes; then
9506 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9510 if test ${have_libpython} = no
; then
9515 HAVE_LIBPYTHON2_5
=no
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9517 $as_echo_n "checking for ${version}... " >&6; }
9519 LIBS
="$LIBS -l${version}"
9520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9522 #include "${version}/Python.h"
9531 if ac_fn_c_try_link
"$LINENO"; then :
9532 HAVE_LIBPYTHON2_5
=yes
9537 rm -f core conftest.err conftest.
$ac_objext \
9538 conftest
$ac_exeext conftest.
$ac_ext
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_5" >&5
9540 $as_echo "$HAVE_LIBPYTHON2_5" >&6; }
9542 if test "${HAVE_LIBPYTHON2_5}" = yes; then
9544 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9548 if test ${have_libpython} = no
; then
9553 HAVE_LIBPYTHON2_4
=no
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9555 $as_echo_n "checking for ${version}... " >&6; }
9557 LIBS
="$LIBS -l${version}"
9558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9560 #include "${version}/Python.h"
9569 if ac_fn_c_try_link
"$LINENO"; then :
9570 HAVE_LIBPYTHON2_4
=yes
9575 rm -f core conftest.err conftest.
$ac_objext \
9576 conftest
$ac_exeext conftest.
$ac_ext
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_4" >&5
9578 $as_echo "$HAVE_LIBPYTHON2_4" >&6; }
9580 if test "${HAVE_LIBPYTHON2_4}" = yes; then
9582 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9586 if test ${have_libpython} = no
; then
9587 case "${with_python}" in
9589 as_fn_error
"python is missing or unusable" "$LINENO" 5
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9593 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9596 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
9599 CPPFLAGS
=$save_CPPFLAGS
9604 if test "${have_libpython}" = yes; then
9606 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9608 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9609 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9610 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9611 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9613 # Flags needed to compile Python code (taken from python-config --cflags).
9614 # We cannot call python-config directly because it will output whatever was
9615 # used when compiling the Python interpreter itself, including flags which
9616 # would make the python-related objects be compiled differently from the
9617 # rest of GDB (e.g., -O2 and -fPIC).
9618 if test "${GCC}" = yes; then
9619 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
9622 if test "x${tentative_python_cflags}" != x
; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9624 $as_echo_n "checking compiler flags for python code... " >&6; }
9625 for flag
in ${tentative_python_cflags}; do
9626 # Check that the compiler accepts it
9627 saved_CFLAGS
="$CFLAGS"
9628 CFLAGS
="$CFLAGS $flag"
9629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9640 if ac_fn_c_try_compile
"$LINENO"; then :
9641 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
9643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9644 CFLAGS
="$saved_CFLAGS"
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9647 $as_echo "${PYTHON_CFLAGS}" >&6; }
9650 # Even if Python support is not compiled in, we need to have these files
9652 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
9653 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
9654 python/py-prettyprint.c python/py-auto-load.c"
9658 # ------------------------- #
9659 # Checks for header files. #
9660 # ------------------------- #
9663 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9664 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9666 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9667 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9668 $as_echo_n "(cached) " >&6
9670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 #include <sys/types.h>
9684 if ac_fn_c_try_compile
"$LINENO"; then :
9685 eval "$as_ac_Header=yes"
9687 eval "$as_ac_Header=no"
9689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9691 eval ac_res
=\$
$as_ac_Header
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9693 $as_echo "$ac_res" >&6; }
9694 eval as_val
=\$
$as_ac_Header
9695 if test "x$as_val" = x
""yes; then :
9696 cat >>confdefs.h
<<_ACEOF
9697 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9700 ac_header_dirent
=$ac_hdr; break
9704 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9705 if test $ac_header_dirent = dirent.h
; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9707 $as_echo_n "checking for library containing opendir... " >&6; }
9708 if test "${ac_cv_search_opendir+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9711 ac_func_search_save_LIBS
=$LIBS
9712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h. */
9715 /* Override any GCC internal prototype to avoid an error.
9716 Use char because int might match the return type of a GCC
9717 builtin and then its argument prototype would still apply. */
9730 for ac_lib
in '' dir
; do
9731 if test -z "$ac_lib"; then
9732 ac_res
="none required"
9735 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9737 if ac_fn_c_try_link
"$LINENO"; then :
9738 ac_cv_search_opendir
=$ac_res
9740 rm -f core conftest.err conftest.
$ac_objext \
9742 if test "${ac_cv_search_opendir+set}" = set; then :
9746 if test "${ac_cv_search_opendir+set}" = set; then :
9749 ac_cv_search_opendir
=no
9752 LIBS
=$ac_func_search_save_LIBS
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9755 $as_echo "$ac_cv_search_opendir" >&6; }
9756 ac_res
=$ac_cv_search_opendir
9757 if test "$ac_res" != no
; then :
9758 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9764 $as_echo_n "checking for library containing opendir... " >&6; }
9765 if test "${ac_cv_search_opendir+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9768 ac_func_search_save_LIBS
=$LIBS
9769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9772 /* Override any GCC internal prototype to avoid an error.
9773 Use char because int might match the return type of a GCC
9774 builtin and then its argument prototype would still apply. */
9787 for ac_lib
in '' x
; do
9788 if test -z "$ac_lib"; then
9789 ac_res
="none required"
9792 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9794 if ac_fn_c_try_link
"$LINENO"; then :
9795 ac_cv_search_opendir
=$ac_res
9797 rm -f core conftest.err conftest.
$ac_objext \
9799 if test "${ac_cv_search_opendir+set}" = set; then :
9803 if test "${ac_cv_search_opendir+set}" = set; then :
9806 ac_cv_search_opendir
=no
9809 LIBS
=$ac_func_search_save_LIBS
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9812 $as_echo "$ac_cv_search_opendir" >&6; }
9813 ac_res
=$ac_cv_search_opendir
9814 if test "$ac_res" != no
; then :
9815 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9822 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9823 if test "${ac_cv_header_stat_broken+set}" = set; then :
9824 $as_echo_n "(cached) " >&6
9826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9828 #include <sys/types.h>
9829 #include <sys/stat.h>
9831 #if defined S_ISBLK && defined S_IFDIR
9832 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9835 #if defined S_ISBLK && defined S_IFCHR
9836 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9839 #if defined S_ISLNK && defined S_IFREG
9840 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9843 #if defined S_ISSOCK && defined S_IFREG
9844 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9848 if ac_fn_c_try_compile
"$LINENO"; then :
9849 ac_cv_header_stat_broken
=no
9851 ac_cv_header_stat_broken
=yes
9853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9856 $as_echo "$ac_cv_header_stat_broken" >&6; }
9857 if test $ac_cv_header_stat_broken = yes; then
9859 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9864 $as_echo_n "checking for ANSI C header files... " >&6; }
9865 if test "${ac_cv_header_stdc+set}" = set; then :
9866 $as_echo_n "(cached) " >&6
9868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9883 if ac_fn_c_try_compile
"$LINENO"; then :
9884 ac_cv_header_stdc
=yes
9886 ac_cv_header_stdc
=no
9888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9890 if test $ac_cv_header_stdc = yes; then
9891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9898 $EGREP "memchr" >/dev
/null
2>&1; then :
9901 ac_cv_header_stdc
=no
9907 if test $ac_cv_header_stdc = yes; then
9908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9915 $EGREP "free" >/dev
/null
2>&1; then :
9918 ac_cv_header_stdc
=no
9924 if test $ac_cv_header_stdc = yes; then
9925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9926 if test "$cross_compiling" = yes; then :
9929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9933 #if ((' ' & 0x0FF) == 0x020)
9934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9937 # define ISLOWER(c) \
9938 (('a' <= (c) && (c) <= 'i') \
9939 || ('j' <= (c) && (c) <= 'r') \
9940 || ('s' <= (c) && (c) <= 'z'))
9941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9949 for (i = 0; i < 256; i++)
9950 if (XOR (islower (i), ISLOWER (i))
9951 || toupper (i) != TOUPPER (i))
9956 if ac_fn_c_try_run
"$LINENO"; then :
9959 ac_cv_header_stdc
=no
9961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9968 $as_echo "$ac_cv_header_stdc" >&6; }
9969 if test $ac_cv_header_stdc = yes; then
9971 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9975 # elf_hp.h is for HP/UX 64-bit shared library support.
9976 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
9977 # unconditionally, so what's the point in checking these?
9978 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
9979 thread_db.h gnu
/libc-version.h signal.h stddef.h \
9980 stdlib.h string.h memory.h
strings.h sys
/fault.h \
9981 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
9982 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
9983 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
9984 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
9985 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
9987 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9988 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9989 eval as_val
=\$
$as_ac_Header
9990 if test "x$as_val" = x
""yes; then :
9991 cat >>confdefs.h
<<_ACEOF
9992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9999 for ac_header
in link.h
10001 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
10002 # include <sys/types.h>
10005 # include <nlist.h>
10009 if test "x$ac_cv_header_link_h" = x
""yes; then :
10010 cat >>confdefs.h
<<_ACEOF
10011 #define HAVE_LINK_H 1
10018 for ac_header
in sys
/proc.h
10020 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10021 # include <sys/param.h>
10025 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
10026 cat >>confdefs.h
<<_ACEOF
10027 #define HAVE_SYS_PROC_H 1
10034 for ac_header
in sys
/user.h
10036 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10037 # include <sys/param.h>
10041 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
10042 cat >>confdefs.h
<<_ACEOF
10043 #define HAVE_SYS_USER_H 1
10051 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10052 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10053 # think that we don't have <curses.h> if we're using GCC.
10056 if test "$GCC" = yes; then
10058 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
10062 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
10064 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10065 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10066 eval as_val
=\$
$as_ac_Header
10067 if test "x$as_val" = x
""yes; then :
10068 cat >>confdefs.h
<<_ACEOF
10069 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10076 for ac_header
in term.h
10078 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10079 # include <curses.h>
10083 if test "x$ac_cv_header_term_h" = x
""yes; then :
10084 cat >>confdefs.h
<<_ACEOF
10085 #define HAVE_TERM_H 1
10093 # ------------------------- #
10094 # Checks for declarations. #
10095 # ------------------------- #
10097 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10098 if test "x$ac_cv_have_decl_free" = x
""yes; then :
10104 cat >>confdefs.h
<<_ACEOF
10105 #define HAVE_DECL_FREE $ac_have_decl
10107 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10108 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
10114 cat >>confdefs.h
<<_ACEOF
10115 #define HAVE_DECL_MALLOC $ac_have_decl
10117 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10118 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
10124 cat >>confdefs.h
<<_ACEOF
10125 #define HAVE_DECL_REALLOC $ac_have_decl
10127 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
10128 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
10134 cat >>confdefs.h
<<_ACEOF
10135 #define HAVE_DECL_STRERROR $ac_have_decl
10137 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
10138 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
10144 cat >>confdefs.h
<<_ACEOF
10145 #define HAVE_DECL_STRSTR $ac_have_decl
10147 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
10148 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
10154 cat >>confdefs.h
<<_ACEOF
10155 #define HAVE_DECL_GETOPT $ac_have_decl
10157 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10158 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
10164 cat >>confdefs.h
<<_ACEOF
10165 #define HAVE_DECL_SNPRINTF $ac_have_decl
10167 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10168 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
10174 cat >>confdefs.h
<<_ACEOF
10175 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10180 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10181 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10182 $as_echo_n "(cached) " >&6
10184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10186 #include <locale.h>
10195 if ac_fn_c_try_link
"$LINENO"; then :
10196 am_cv_val_LC_MESSAGES
=yes
10198 am_cv_val_LC_MESSAGES
=no
10200 rm -f core conftest.err conftest.
$ac_objext \
10201 conftest
$ac_exeext conftest.
$ac_ext
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10204 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10205 if test $am_cv_val_LC_MESSAGES = yes; then
10207 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10212 # ----------------------- #
10213 # Checks for structures. #
10214 # ----------------------- #
10216 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
10217 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
10219 cat >>confdefs.h
<<_ACEOF
10220 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10225 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10226 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
10228 cat >>confdefs.h
<<_ACEOF
10229 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10236 # ------------------ #
10237 # Checks for types. #
10238 # ------------------ #
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10241 $as_echo_n "checking return type of signal handlers... " >&6; }
10242 if test "${ac_cv_type_signal+set}" = set; then :
10243 $as_echo_n "(cached) " >&6
10245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10246 /* end confdefs.h. */
10247 #include <sys/types.h>
10248 #include <signal.h>
10253 return *(signal (0, 0)) (0) == 1;
10258 if ac_fn_c_try_compile
"$LINENO"; then :
10259 ac_cv_type_signal
=int
10261 ac_cv_type_signal
=void
10263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10266 $as_echo "$ac_cv_type_signal" >&6; }
10268 cat >>confdefs.h
<<_ACEOF
10269 #define RETSIGTYPE $ac_cv_type_signal
10273 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
10274 #include <sys/socket.h>
10277 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
10279 cat >>confdefs.h
<<_ACEOF
10280 #define HAVE_SOCKLEN_T 1
10287 # ------------------------------------- #
10288 # Checks for compiler characteristics. #
10289 # ------------------------------------- #
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10292 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10293 if test "${ac_cv_c_const+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
10296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10302 /* FIXME: Include the comments suggested by Paul. */
10303 #ifndef __cplusplus
10304 /* Ultrix mips cc rejects this. */
10305 typedef int charset[2];
10307 /* SunOS 4.1.1 cc rejects this. */
10308 char const *const *pcpcc;
10310 /* NEC SVR4.0.2 mips cc rejects this. */
10311 struct point {int x, y;};
10312 static struct point const zero = {0,0};
10313 /* AIX XL C 1.02.0.0 rejects this.
10314 It does not let you subtract one const X* pointer from another in
10315 an arm of an if-expression whose if-part is not a constant
10317 const char *g = "string";
10318 pcpcc = &g + (g ? g-g : 0);
10319 /* HPUX 7.0 cc rejects these. */
10321 ppc = (char**) pcpcc;
10322 pcpcc = (char const *const *) ppc;
10323 { /* SCO 3.2v4 cc rejects this. */
10325 char const *s = 0 ? (char *) 0 : (char const *) 0;
10330 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10331 int x[] = {25, 17};
10332 const int *foo = &x[0];
10335 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10336 typedef const int *iptr;
10340 { /* AIX XL C 1.02.0.0 rejects this saying
10341 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10342 struct s { int j; const int *ap[3]; };
10343 struct s *b; b->j = 5;
10345 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10346 const int foo = 10;
10347 if (!foo) return 0;
10349 return !cs[0] && !zero.x;
10356 if ac_fn_c_try_compile
"$LINENO"; then :
10361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10364 $as_echo "$ac_cv_c_const" >&6; }
10365 if test $ac_cv_c_const = no
; then
10367 $as_echo "#define const /**/" >>confdefs.h
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10372 $as_echo_n "checking for inline... " >&6; }
10373 if test "${ac_cv_c_inline+set}" = set; then :
10374 $as_echo_n "(cached) " >&6
10377 for ac_kw
in inline __inline__ __inline
; do
10378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10380 #ifndef __cplusplus
10382 static $ac_kw foo_t static_foo () {return 0; }
10383 $ac_kw foo_t foo () {return 0; }
10387 if ac_fn_c_try_compile
"$LINENO"; then :
10388 ac_cv_c_inline
=$ac_kw
10390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10391 test "$ac_cv_c_inline" != no
&& break
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10396 $as_echo "$ac_cv_c_inline" >&6; }
10398 case $ac_cv_c_inline in
10401 case $ac_cv_c_inline in
10403 *) ac_val
=$ac_cv_c_inline;;
10405 cat >>confdefs.h
<<_ACEOF
10406 #ifndef __cplusplus
10407 #define inline $ac_val
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10414 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10415 if test "${ac_cv_c_bigendian+set}" = set; then :
10416 $as_echo_n "(cached) " >&6
10418 ac_cv_c_bigendian
=unknown
10419 # See if we're dealing with a universal compiler.
10420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10422 #ifndef __APPLE_CC__
10423 not a universal capable compiler
10428 if ac_fn_c_try_compile
"$LINENO"; then :
10430 # Check for potential -arch flags. It is not universal unless
10431 # there are at least two -arch flags with different values.
10434 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10435 if test -n "$ac_prev"; then
10437 i?
86 | x86_64 | ppc | ppc64
)
10438 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10441 ac_cv_c_bigendian
=universal
10447 elif test "x$ac_word" = "x-arch"; then
10452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10453 if test $ac_cv_c_bigendian = unknown
; then
10454 # See if sys/param.h defines the BYTE_ORDER macro.
10455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10457 #include <sys/types.h>
10458 #include <sys/param.h>
10463 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10464 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10466 bogus endian macros
10473 if ac_fn_c_try_compile
"$LINENO"; then :
10474 # It does; now see whether it defined to BIG_ENDIAN or not.
10475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10477 #include <sys/types.h>
10478 #include <sys/param.h>
10483 #if BYTE_ORDER != BIG_ENDIAN
10491 if ac_fn_c_try_compile
"$LINENO"; then :
10492 ac_cv_c_bigendian
=yes
10494 ac_cv_c_bigendian
=no
10496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10500 if test $ac_cv_c_bigendian = unknown
; then
10501 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10504 #include <limits.h>
10509 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10510 bogus endian macros
10517 if ac_fn_c_try_compile
"$LINENO"; then :
10518 # It does; now see whether it defined to _BIG_ENDIAN or not.
10519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 #include <limits.h>
10526 #ifndef _BIG_ENDIAN
10534 if ac_fn_c_try_compile
"$LINENO"; then :
10535 ac_cv_c_bigendian
=yes
10537 ac_cv_c_bigendian
=no
10539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10543 if test $ac_cv_c_bigendian = unknown
; then
10544 # Compile a test program.
10545 if test "$cross_compiling" = yes; then :
10546 # Try to guess by grepping values from an object file.
10547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549 short int ascii_mm[] =
10550 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10551 short int ascii_ii[] =
10552 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10553 int use_ascii (int i) {
10554 return ascii_mm[i] + ascii_ii[i];
10556 short int ebcdic_ii[] =
10557 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10558 short int ebcdic_mm[] =
10559 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10560 int use_ebcdic (int i) {
10561 return ebcdic_mm[i] + ebcdic_ii[i];
10568 return use_ascii (foo) == use_ebcdic (foo);
10573 if ac_fn_c_try_compile
"$LINENO"; then :
10574 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10575 ac_cv_c_bigendian
=yes
10577 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10578 if test "$ac_cv_c_bigendian" = unknown
; then
10579 ac_cv_c_bigendian
=no
10581 # finding both strings is unlikely to happen, but who knows?
10582 ac_cv_c_bigendian
=unknown
10586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10590 $ac_includes_default
10595 /* Are we little or big endian? From Harbison&Steele. */
10599 char c[sizeof (long int)];
10602 return u.c[sizeof (long int) - 1] == 1;
10608 if ac_fn_c_try_run
"$LINENO"; then :
10609 ac_cv_c_bigendian
=no
10611 ac_cv_c_bigendian
=yes
10613 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10614 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10620 $as_echo "$ac_cv_c_bigendian" >&6; }
10621 case $ac_cv_c_bigendian in #(
10623 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10629 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10633 as_fn_error
"unknown endianness
10634 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10638 # ------------------------------ #
10639 # Checks for library functions. #
10640 # ------------------------------ #
10642 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10643 # for constant arguments. Useless!
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10645 $as_echo_n "checking for working alloca.h... " >&6; }
10646 if test "${ac_cv_working_alloca_h+set}" = set; then :
10647 $as_echo_n "(cached) " >&6
10649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10651 #include <alloca.h>
10655 char *p = (char *) alloca (2 * sizeof (int));
10661 if ac_fn_c_try_link
"$LINENO"; then :
10662 ac_cv_working_alloca_h
=yes
10664 ac_cv_working_alloca_h
=no
10666 rm -f core conftest.err conftest.
$ac_objext \
10667 conftest
$ac_exeext conftest.
$ac_ext
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10670 $as_echo "$ac_cv_working_alloca_h" >&6; }
10671 if test $ac_cv_working_alloca_h = yes; then
10673 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10678 $as_echo_n "checking for alloca... " >&6; }
10679 if test "${ac_cv_func_alloca_works+set}" = set; then :
10680 $as_echo_n "(cached) " >&6
10682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10685 # define alloca __builtin_alloca
10688 # include <malloc.h>
10689 # define alloca _alloca
10691 # ifdef HAVE_ALLOCA_H
10692 # include <alloca.h>
10697 # ifndef alloca /* predefined by HP cc +Olibcalls */
10708 char *p = (char *) alloca (1);
10714 if ac_fn_c_try_link
"$LINENO"; then :
10715 ac_cv_func_alloca_works
=yes
10717 ac_cv_func_alloca_works
=no
10719 rm -f core conftest.err conftest.
$ac_objext \
10720 conftest
$ac_exeext conftest.
$ac_ext
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10723 $as_echo "$ac_cv_func_alloca_works" >&6; }
10725 if test $ac_cv_func_alloca_works = yes; then
10727 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10730 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10731 # that cause trouble. Some versions do not even contain alloca or
10732 # contain a buggy version. If you still want to use their alloca,
10733 # use ar to extract alloca.o from them instead of compiling alloca.c.
10735 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10737 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10741 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10742 if test "${ac_cv_os_cray+set}" = set; then :
10743 $as_echo_n "(cached) " >&6
10745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10747 #if defined CRAY && ! defined CRAY2
10754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10755 $EGREP "webecray" >/dev
/null
2>&1; then :
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10764 $as_echo "$ac_cv_os_cray" >&6; }
10765 if test $ac_cv_os_cray = yes; then
10766 for ac_func
in _getb67 GETB67 getb67
; do
10767 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10768 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10769 eval as_val
=\$
$as_ac_var
10770 if test "x$as_val" = x
""yes; then :
10772 cat >>confdefs.h
<<_ACEOF
10773 #define CRAY_STACKSEG_END $ac_func
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10783 $as_echo_n "checking stack direction for C alloca... " >&6; }
10784 if test "${ac_cv_c_stack_direction+set}" = set; then :
10785 $as_echo_n "(cached) " >&6
10787 if test "$cross_compiling" = yes; then :
10788 ac_cv_c_stack_direction
=0
10790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10792 $ac_includes_default
10794 find_stack_direction ()
10796 static char *addr = 0;
10801 return find_stack_direction ();
10804 return (&dummy > addr) ? 1 : -1;
10810 return find_stack_direction () < 0;
10813 if ac_fn_c_try_run
"$LINENO"; then :
10814 ac_cv_c_stack_direction
=1
10816 ac_cv_c_stack_direction
=-1
10818 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10819 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10824 $as_echo "$ac_cv_c_stack_direction" >&6; }
10825 cat >>confdefs.h
<<_ACEOF
10826 #define STACK_DIRECTION $ac_cv_c_stack_direction
10832 for ac_header
in stdlib.h unistd.h
10834 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10835 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10836 eval as_val
=\$
$as_ac_Header
10837 if test "x$as_val" = x
""yes; then :
10838 cat >>confdefs.h
<<_ACEOF
10839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10846 for ac_func
in getpagesize
10848 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10849 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10850 cat >>confdefs.h
<<_ACEOF
10851 #define HAVE_GETPAGESIZE 1
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10858 $as_echo_n "checking for working mmap... " >&6; }
10859 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10862 if test "$cross_compiling" = yes; then :
10863 ac_cv_func_mmap_fixed_mapped
=no
10865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h. */
10867 $ac_includes_default
10868 /* malloc might have been renamed as rpl_malloc. */
10871 /* Thanks to Mike Haertel and Jim Avera for this test.
10872 Here is a matrix of mmap possibilities:
10873 mmap private not fixed
10874 mmap private fixed at somewhere currently unmapped
10875 mmap private fixed at somewhere already mapped
10876 mmap shared not fixed
10877 mmap shared fixed at somewhere currently unmapped
10878 mmap shared fixed at somewhere already mapped
10879 For private mappings, we should verify that changes cannot be read()
10880 back from the file, nor mmap's back from the file at a different
10881 address. (There have been systems where private was not correctly
10882 implemented like the infamous i386 svr4.0, and systems where the
10883 VM page cache was not coherent with the file system buffer cache
10884 like early versions of FreeBSD and possibly contemporary NetBSD.)
10885 For shared mappings, we should conversely verify that changes get
10886 propagated back to all the places they're supposed to be.
10888 Grep wants private fixed already mapped.
10889 The main things grep needs to know about mmap are:
10890 * does it exist and is it safe to write into the mmap'd area
10891 * how to use it (BSD variants) */
10894 #include <sys/mman.h>
10896 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10900 /* This mess was copied from the GNU getpagesize.h. */
10901 #ifndef HAVE_GETPAGESIZE
10902 /* Assume that all systems that can run configure have sys/param.h. */
10903 # ifndef HAVE_SYS_PARAM_H
10904 # define HAVE_SYS_PARAM_H 1
10907 # ifdef _SC_PAGESIZE
10908 # define getpagesize() sysconf(_SC_PAGESIZE)
10909 # else /* no _SC_PAGESIZE */
10910 # ifdef HAVE_SYS_PARAM_H
10911 # include <sys/param.h>
10912 # ifdef EXEC_PAGESIZE
10913 # define getpagesize() EXEC_PAGESIZE
10914 # else /* no EXEC_PAGESIZE */
10916 # define getpagesize() NBPG * CLSIZE
10919 # endif /* no CLSIZE */
10920 # else /* no NBPG */
10922 # define getpagesize() NBPC
10923 # else /* no NBPC */
10925 # define getpagesize() PAGESIZE
10926 # endif /* PAGESIZE */
10927 # endif /* no NBPC */
10928 # endif /* no NBPG */
10929 # endif /* no EXEC_PAGESIZE */
10930 # else /* no HAVE_SYS_PARAM_H */
10931 # define getpagesize() 8192 /* punt totally */
10932 # endif /* no HAVE_SYS_PARAM_H */
10933 # endif /* no _SC_PAGESIZE */
10935 #endif /* no HAVE_GETPAGESIZE */
10940 char *data, *data2, *data3;
10944 pagesize = getpagesize ();
10946 /* First, make a file with some known garbage in it. */
10947 data = (char *) malloc (pagesize);
10950 for (i = 0; i < pagesize; ++i)
10951 *(data + i) = rand ();
10953 fd = creat ("conftest.mmap", 0600);
10956 if (write (fd, data, pagesize) != pagesize)
10960 /* Next, try to mmap the file at a fixed address which already has
10961 something else allocated at it. If we can, also make sure that
10962 we see the same garbage. */
10963 fd = open ("conftest.mmap", O_RDWR);
10966 data2 = (char *) malloc (2 * pagesize);
10969 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10970 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10971 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10973 for (i = 0; i < pagesize; ++i)
10974 if (*(data + i) != *(data2 + i))
10977 /* Finally, make sure that changes to the mapped area do not
10978 percolate back to the file as seen by read(). (This is a bug on
10979 some variants of i386 svr4.0.) */
10980 for (i = 0; i < pagesize; ++i)
10981 *(data2 + i) = *(data2 + i) + 1;
10982 data3 = (char *) malloc (pagesize);
10985 if (read (fd, data3, pagesize) != pagesize)
10987 for (i = 0; i < pagesize; ++i)
10988 if (*(data + i) != *(data3 + i))
10994 if ac_fn_c_try_run
"$LINENO"; then :
10995 ac_cv_func_mmap_fixed_mapped
=yes
10997 ac_cv_func_mmap_fixed_mapped
=no
10999 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11000 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11005 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11006 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11008 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11011 rm -f conftest.mmap
11013 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11014 if test "x$ac_cv_type_pid_t" = x
""yes; then :
11018 cat >>confdefs.h
<<_ACEOF
11024 for ac_header
in vfork.h
11026 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11027 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
11028 cat >>confdefs.h
<<_ACEOF
11029 #define HAVE_VFORK_H 1
11036 for ac_func
in fork vfork
11038 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11039 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11040 eval as_val
=\$
$as_ac_var
11041 if test "x$as_val" = x
""yes; then :
11042 cat >>confdefs.h
<<_ACEOF
11043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11049 if test "x$ac_cv_func_fork" = xyes
; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11051 $as_echo_n "checking for working fork... " >&6; }
11052 if test "${ac_cv_func_fork_works+set}" = set; then :
11053 $as_echo_n "(cached) " >&6
11055 if test "$cross_compiling" = yes; then :
11056 ac_cv_func_fork_works
=cross
11058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11060 $ac_includes_default
11065 /* By Ruediger Kuhlmann. */
11066 return fork () < 0;
11072 if ac_fn_c_try_run
"$LINENO"; then :
11073 ac_cv_func_fork_works
=yes
11075 ac_cv_func_fork_works
=no
11077 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11078 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11083 $as_echo "$ac_cv_func_fork_works" >&6; }
11086 ac_cv_func_fork_works
=$ac_cv_func_fork
11088 if test "x$ac_cv_func_fork_works" = xcross
; then
11090 *-*-amigaos* |
*-*-msdosdjgpp*)
11091 # Override, as these systems have only a dummy fork() stub
11092 ac_cv_func_fork_works
=no
11095 ac_cv_func_fork_works
=yes
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11099 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11101 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11102 if test "x$ac_cv_func_vfork" = xyes
; then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11104 $as_echo_n "checking for working vfork... " >&6; }
11105 if test "${ac_cv_func_vfork_works+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11108 if test "$cross_compiling" = yes; then :
11109 ac_cv_func_vfork_works
=cross
11111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11113 /* Thanks to Paul Eggert for this test. */
11114 $ac_includes_default
11115 #include <sys/wait.h>
11116 #ifdef HAVE_VFORK_H
11117 # include <vfork.h>
11119 /* On some sparc systems, changes by the child to local and incoming
11120 argument registers are propagated back to the parent. The compiler
11121 is told about this with #include <vfork.h>, but some compilers
11122 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11123 static variable whose address is put into a register that is
11124 clobbered by the vfork. */
11127 sparc_address_test (int arg)
11129 sparc_address_test (arg) int arg;
11132 static pid_t child;
11150 pid_t parent = getpid ();
11153 sparc_address_test (0);
11158 /* Here is another test for sparc vfork register problems. This
11159 test uses lots of local variables, at least as many local
11160 variables as main has allocated so far including compiler
11161 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11162 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11163 reuse the register of parent for one of the local variables,
11164 since it will think that parent can't possibly be used any more
11165 in this routine. Assigning to the local variable will thus
11166 munge parent in the parent process. */
11168 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11169 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11170 /* Convince the compiler that p..p7 are live; otherwise, it might
11171 use the same hardware register for all 8 local variables. */
11172 if (p != p1 || p != p2 || p != p3 || p != p4
11173 || p != p5 || p != p6 || p != p7)
11176 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11177 from child file descriptors. If the child closes a descriptor
11178 before it execs or exits, this munges the parent's descriptor
11179 as well. Test for this by closing stdout in the child. */
11180 _exit(close(fileno(stdout)) != 0);
11185 while (wait(&status) != child)
11188 /* Was there some problem with vforking? */
11191 /* Did the child fail? (This shouldn't happen.) */
11194 /* Did the vfork/compiler bug occur? */
11195 || parent != getpid()
11197 /* Did the file descriptor bug occur? */
11198 || fstat(fileno(stdout), &st) != 0
11203 if ac_fn_c_try_run
"$LINENO"; then :
11204 ac_cv_func_vfork_works
=yes
11206 ac_cv_func_vfork_works
=no
11208 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11209 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11214 $as_echo "$ac_cv_func_vfork_works" >&6; }
11217 if test "x$ac_cv_func_fork_works" = xcross
; then
11218 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11220 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11223 if test "x$ac_cv_func_vfork_works" = xyes
; then
11225 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11229 $as_echo "#define vfork fork" >>confdefs.h
11232 if test "x$ac_cv_func_fork_works" = xyes
; then
11234 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11238 for ac_func
in canonicalize_file_name realpath getrusage getuid \
11239 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
11240 sigaction sigprocmask sigsetmask socketpair syscall \
11241 ttrace wborder setlocale iconvlist libiconvlist btowc \
11242 setrlimit getrlimit posix_madvise
11244 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11245 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11246 eval as_val
=\$
$as_ac_var
11247 if test "x$as_val" = x
""yes; then :
11248 cat >>confdefs.h
<<_ACEOF
11249 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11257 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11258 if test "${am_cv_langinfo_codeset+set}" = set; then :
11259 $as_echo_n "(cached) " >&6
11261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h. */
11263 #include <langinfo.h>
11267 char* cs = nl_langinfo(CODESET);
11272 if ac_fn_c_try_link
"$LINENO"; then :
11273 am_cv_langinfo_codeset
=yes
11275 am_cv_langinfo_codeset
=no
11277 rm -f core conftest.err conftest.
$ac_objext \
11278 conftest
$ac_exeext conftest.
$ac_ext
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11282 $as_echo "$am_cv_langinfo_codeset" >&6; }
11283 if test $am_cv_langinfo_codeset = yes; then
11285 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11290 # Check the return and argument types of ptrace. No canned test for
11291 # this, so roll our own.
11292 gdb_ptrace_headers
='
11293 #if HAVE_SYS_TYPES_H
11294 # include <sys/types.h>
11296 #if HAVE_SYS_PTRACE_H
11297 # include <sys/ptrace.h>
11300 # include <unistd.h>
11303 # There is no point in checking if we don't have a prototype.
11304 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
11306 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
11312 cat >>confdefs.h
<<_ACEOF
11313 #define HAVE_DECL_PTRACE $ac_have_decl
11315 if test $ac_have_decl = 1; then :
11319 : ${gdb_cv_func_ptrace_ret='int'}
11320 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11324 # Check return type. Varargs (used on GNU/Linux) conflict with the
11325 # empty argument list, so check for that explicitly.
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11327 $as_echo_n "checking return type of ptrace... " >&6; }
11328 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11329 $as_echo_n "(cached) " >&6
11331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11333 $gdb_ptrace_headers
11337 extern long ptrace (enum __ptrace_request, ...);
11342 if ac_fn_c_try_compile
"$LINENO"; then :
11343 gdb_cv_func_ptrace_ret
='long'
11345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h. */
11347 $gdb_ptrace_headers
11351 extern int ptrace ();
11356 if ac_fn_c_try_compile
"$LINENO"; then :
11357 gdb_cv_func_ptrace_ret
='int'
11359 gdb_cv_func_ptrace_ret
='long'
11361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11366 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11368 cat >>confdefs.h
<<_ACEOF
11369 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11372 # Check argument types.
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11374 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11375 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
11379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11381 $gdb_ptrace_headers
11385 extern long ptrace (enum __ptrace_request, ...);
11390 if ac_fn_c_try_compile
"$LINENO"; then :
11391 gdb_cv_func_ptrace_args
='int,int,long,long'
11394 for gdb_arg1
in 'int' 'long'; do
11395 for gdb_arg2
in 'pid_t' 'int' 'long'; do
11396 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11397 for gdb_arg4
in 'int' 'long'; do
11398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11400 $gdb_ptrace_headers
11405 extern $gdb_cv_func_ptrace_ret
11406 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11412 if ac_fn_c_try_compile
"$LINENO"; then :
11413 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11417 for gdb_arg5
in 'int *' 'int' 'long'; do
11418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h. */
11420 $gdb_ptrace_headers
11425 extern $gdb_cv_func_ptrace_ret
11426 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11432 if ac_fn_c_try_compile
"$LINENO"; then :
11434 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11443 # Provide a safe default value.
11444 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11450 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11451 ac_save_IFS
=$IFS; IFS
=','
11452 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11456 cat >>confdefs.h
<<_ACEOF
11457 #define PTRACE_TYPE_ARG3 $3
11460 if test -n "$5"; then
11462 cat >>confdefs.h
<<_ACEOF
11463 #define PTRACE_TYPE_ARG5 $5
11468 if test "$cross_compiling" = no
; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11470 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11471 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11472 $as_echo_n "(cached) " >&6
11474 if test "$cross_compiling" = yes; then :
11475 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
11477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11479 $ac_includes_default
11483 /* If this system has a BSD-style setpgrp which takes arguments,
11484 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11485 exit successfully. */
11486 return setpgrp (1,1) != -1;
11491 if ac_fn_c_try_run
"$LINENO"; then :
11492 ac_cv_func_setpgrp_void
=no
11494 ac_cv_func_setpgrp_void
=yes
11496 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11497 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11502 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11503 if test $ac_cv_func_setpgrp_void = yes; then
11505 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11511 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11512 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
11515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11518 #include <unistd.h>
11524 if (setpgrp(1,1) == -1)
11533 if ac_fn_c_try_compile
"$LINENO"; then :
11534 ac_cv_func_setpgrp_void
=no
11536 ac_cv_func_setpgrp_void
=yes
11538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11541 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11542 if test $ac_cv_func_setpgrp_void = yes; then
11543 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11548 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
11549 # since sigsetjmp might only be defined as a macro.
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11551 $as_echo_n "checking for sigsetjmp... " >&6; }
11552 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11553 $as_echo_n "(cached) " >&6
11555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11558 #include <setjmp.h>
11563 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11568 if ac_fn_c_try_compile
"$LINENO"; then :
11569 gdb_cv_func_sigsetjmp
=yes
11571 gdb_cv_func_sigsetjmp
=no
11573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11576 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11577 if test $gdb_cv_func_sigsetjmp = yes; then
11579 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11583 # Assume we'll default to using the included libiberty regex.
11584 gdb_use_included_regex
=yes
11586 # However, if the system regex is GNU regex, then default to *not*
11587 # using the included regex.
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11589 $as_echo_n "checking for GNU regex... " >&6; }
11590 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11591 $as_echo_n "(cached) " >&6
11593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11594 /* end confdefs.h. */
11595 #include <gnu-versions.h>
11599 #define REGEX_INTERFACE_VERSION 1
11600 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11601 # error "Version mismatch"
11607 if ac_fn_c_try_compile
"$LINENO"; then :
11608 gdb_cv_have_gnu_regex
=yes
11610 gdb_cv_have_gnu_regex
=no
11612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11615 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11616 if test $gdb_cv_have_gnu_regex = yes; then
11617 gdb_use_included_regex
=no
11621 # Check whether --with-included-regex was given.
11622 if test "${with_included_regex+set}" = set; then :
11623 withval
=$with_included_regex; gdb_with_regex
=$withval
11625 gdb_with_regex
=$gdb_use_included_regex
11628 if test "$gdb_with_regex" = yes; then
11630 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11634 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11635 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11636 #include <sys/proc.h>
11639 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
11641 cat >>confdefs.h
<<_ACEOF
11642 #define HAVE_STRUCT_THREAD_TD_PCB 1
11649 # See if <sys/lwp.h> defines `struct lwp`.
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11651 $as_echo_n "checking for struct lwp... " >&6; }
11652 if test "${gdb_cv_struct_lwp+set}" = set; then :
11653 $as_echo_n "(cached) " >&6
11655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11656 /* end confdefs.h. */
11657 #include <sys/param.h>
11658 #include <sys/lwp.h>
11667 if ac_fn_c_try_compile
"$LINENO"; then :
11668 gdb_cv_struct_lwp
=yes
11670 gdb_cv_struct_lwp
=no
11672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11675 $as_echo "$gdb_cv_struct_lwp" >&6; }
11676 if test $gdb_cv_struct_lwp = yes; then
11678 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11682 # See if <machine/reg.h> degines `struct reg'.
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11684 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11685 if test "${gdb_cv_struct_reg+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
11688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690 #include <sys/types.h>
11691 #include <machine/reg.h>
11700 if ac_fn_c_try_compile
"$LINENO"; then :
11701 gdb_cv_struct_reg
=yes
11703 gdb_cv_struct_reg
=no
11705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11708 $as_echo "$gdb_cv_struct_reg" >&6; }
11709 if test $gdb_cv_struct_reg = yes; then
11711 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11715 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11716 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11717 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11719 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
11721 cat >>confdefs.h
<<_ACEOF
11722 #define HAVE_STRUCT_REG_R_FS 1
11727 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11729 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
11731 cat >>confdefs.h
<<_ACEOF
11732 #define HAVE_STRUCT_REG_R_GS 1
11739 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11741 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11742 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h. */
11747 #include <sys/ptrace.h>
11756 if ac_fn_c_try_compile
"$LINENO"; then :
11757 gdb_cv_have_ptrace_getregs
=yes
11759 gdb_cv_have_ptrace_getregs
=no
11761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11765 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11766 if test $gdb_cv_have_ptrace_getregs = yes; then
11768 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11772 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11774 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11775 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11776 $as_echo_n "(cached) " >&6
11778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11779 /* end confdefs.h. */
11780 #include <sys/ptrace.h>
11789 if ac_fn_c_try_compile
"$LINENO"; then :
11790 gdb_cv_have_ptrace_getfpxregs
=yes
11792 gdb_cv_have_ptrace_getfpxregs
=no
11794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11798 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11799 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11801 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11805 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11807 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11808 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
11811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h. */
11813 #include <sys/types.h>
11814 #include <sys/ptrace.h>
11823 if ac_fn_c_try_compile
"$LINENO"; then :
11824 gdb_cv_have_pt_getdbregs
=yes
11826 gdb_cv_have_pt_getdbregs
=no
11828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11832 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11833 if test $gdb_cv_have_pt_getdbregs = yes; then
11835 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11839 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11841 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11842 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11843 $as_echo_n "(cached) " >&6
11845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11847 #include <sys/types.h>
11848 #include <sys/ptrace.h>
11857 if ac_fn_c_try_compile
"$LINENO"; then :
11858 gdb_cv_have_pt_getxmmregs
=yes
11860 gdb_cv_have_pt_getxmmregs
=no
11862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11866 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11867 if test $gdb_cv_have_pt_getxmmregs = yes; then
11869 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11873 # Detect which type of /proc is in use, such as for Unixware or Solaris.
11875 if test "${target}" = "${host}"; then
11877 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
11879 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11882 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
11884 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11888 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
11890 $as_echo "#define _KMEMUSER 1" >>confdefs.h
11896 if test "$ac_cv_header_sys_procfs_h" = yes; then
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
11898 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
11899 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
11900 $as_echo_n "(cached) " >&6
11902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11906 /* Needed for new procfs interface on sparc-solaris. */
11907 #define _STRUCTURED_PROC 1
11908 #include <sys/procfs.h>
11917 if ac_fn_c_try_compile
"$LINENO"; then :
11918 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
11920 bfd_cv_have_sys_procfs_type_pstatus_t
=no
11923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11926 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
11928 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
11932 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
11935 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
11936 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
11937 $as_echo_n "(cached) " >&6
11939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11943 /* Needed for new procfs interface on sparc-solaris. */
11944 #define _STRUCTURED_PROC 1
11945 #include <sys/procfs.h>
11954 if ac_fn_c_try_compile
"$LINENO"; then :
11955 bfd_cv_have_sys_procfs_type_prrun_t
=yes
11957 bfd_cv_have_sys_procfs_type_prrun_t
=no
11960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11963 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
11965 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
11969 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11972 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11973 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11974 $as_echo_n "(cached) " >&6
11976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11980 /* Needed for new procfs interface on sparc-solaris. */
11981 #define _STRUCTURED_PROC 1
11982 #include <sys/procfs.h>
11991 if ac_fn_c_try_compile
"$LINENO"; then :
11992 bfd_cv_have_sys_procfs_type_gregset_t
=yes
11994 bfd_cv_have_sys_procfs_type_gregset_t
=no
11997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12000 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
12002 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
12006 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
12009 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
12010 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
12011 $as_echo_n "(cached) " >&6
12013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h. */
12017 /* Needed for new procfs interface on sparc-solaris. */
12018 #define _STRUCTURED_PROC 1
12019 #include <sys/procfs.h>
12028 if ac_fn_c_try_compile
"$LINENO"; then :
12029 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
12031 bfd_cv_have_sys_procfs_type_fpregset_t
=no
12034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12037 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
12039 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
12043 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
12046 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
12047 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
12048 $as_echo_n "(cached) " >&6
12050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12054 /* Needed for new procfs interface on sparc-solaris. */
12055 #define _STRUCTURED_PROC 1
12056 #include <sys/procfs.h>
12065 if ac_fn_c_try_compile
"$LINENO"; then :
12066 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
12068 bfd_cv_have_sys_procfs_type_prgregset_t
=no
12071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12074 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
12076 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
12080 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
12083 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
12084 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
12085 $as_echo_n "(cached) " >&6
12087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12091 /* Needed for new procfs interface on sparc-solaris. */
12092 #define _STRUCTURED_PROC 1
12093 #include <sys/procfs.h>
12102 if ac_fn_c_try_compile
"$LINENO"; then :
12103 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
12105 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
12108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12111 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12113 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
12117 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
12120 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
12121 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
12124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12128 /* Needed for new procfs interface on sparc-solaris. */
12129 #define _STRUCTURED_PROC 1
12130 #include <sys/procfs.h>
12139 if ac_fn_c_try_compile
"$LINENO"; then :
12140 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
12142 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
12145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12148 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
12150 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
12154 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
12157 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
12158 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
12159 $as_echo_n "(cached) " >&6
12161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12165 /* Needed for new procfs interface on sparc-solaris. */
12166 #define _STRUCTURED_PROC 1
12167 #include <sys/procfs.h>
12171 prfpregset32_t avar
12176 if ac_fn_c_try_compile
"$LINENO"; then :
12177 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
12179 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
12182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12185 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
12187 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
12191 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
12194 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
12195 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
12198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h. */
12202 /* Needed for new procfs interface on sparc-solaris. */
12203 #define _STRUCTURED_PROC 1
12204 #include <sys/procfs.h>
12213 if ac_fn_c_try_compile
"$LINENO"; then :
12214 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
12216 bfd_cv_have_sys_procfs_type_lwpid_t
=no
12219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12222 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
12224 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
12228 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
12231 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
12232 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
12233 $as_echo_n "(cached) " >&6
12235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12239 /* Needed for new procfs interface on sparc-solaris. */
12240 #define _STRUCTURED_PROC 1
12241 #include <sys/procfs.h>
12250 if ac_fn_c_try_compile
"$LINENO"; then :
12251 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
12253 bfd_cv_have_sys_procfs_type_psaddr_t
=no
12256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12259 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
12261 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
12265 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
12268 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
12269 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
12270 $as_echo_n "(cached) " >&6
12272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12276 /* Needed for new procfs interface on sparc-solaris. */
12277 #define _STRUCTURED_PROC 1
12278 #include <sys/procfs.h>
12287 if ac_fn_c_try_compile
"$LINENO"; then :
12288 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
12290 bfd_cv_have_sys_procfs_type_prsysent_t
=no
12293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12296 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
12298 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
12302 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
12305 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
12306 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
12307 $as_echo_n "(cached) " >&6
12309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12313 /* Needed for new procfs interface on sparc-solaris. */
12314 #define _STRUCTURED_PROC 1
12315 #include <sys/procfs.h>
12324 if ac_fn_c_try_compile
"$LINENO"; then :
12325 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
12327 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
12330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12333 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
12335 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
12339 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
12342 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
12343 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12344 $as_echo_n "(cached) " >&6
12346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12350 /* Needed for new procfs interface on sparc-solaris. */
12351 #define _STRUCTURED_PROC 1
12352 #include <sys/procfs.h>
12356 pr_sigaction64_t avar
12361 if ac_fn_c_try_compile
"$LINENO"; then :
12362 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
12364 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
12367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12370 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12372 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12376 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12379 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12380 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12381 $as_echo_n "(cached) " >&6
12383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12387 /* Needed for new procfs interface on sparc-solaris. */
12388 #define _STRUCTURED_PROC 1
12389 #include <sys/procfs.h>
12393 pr_siginfo64_t avar
12398 if ac_fn_c_try_compile
"$LINENO"; then :
12399 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
12401 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
12404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12407 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12409 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12413 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12419 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12421 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12422 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12423 $as_echo_n "(cached) " >&6
12425 if test "$cross_compiling" = yes; then :
12426 gdb_cv_prfpregset_t_broken
=yes
12428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12430 #include <sys/procfs.h>
12433 if (sizeof (prfpregset_t) == sizeof (void *))
12438 if ac_fn_c_try_run
"$LINENO"; then :
12439 gdb_cv_prfpregset_t_broken
=no
12441 gdb_cv_prfpregset_t_broken
=yes
12443 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12444 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12450 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12451 if test $gdb_cv_prfpregset_t_broken = yes; then
12453 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
12460 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
12461 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
12462 $as_echo_n "(cached) " >&6
12464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12466 #include <unistd.h>
12467 #include <sys/types.h>
12468 #include <sys/procfs.h>
12475 dummy = ioctl(0, PIOCSET, &dummy);
12481 if ac_fn_c_try_compile
"$LINENO"; then :
12482 gdb_cv_have_procfs_piocset
=yes
12484 gdb_cv_have_procfs_piocset
=no
12486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
12490 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
12491 if test $gdb_cv_have_procfs_piocset = yes; then
12493 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
12498 if test ${host} = ${target} ; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
12501 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
12502 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
12503 $as_echo_n "(cached) " >&6
12505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12511 struct link_map lm; (void) lm.l_addr;
12516 if ac_fn_c_try_compile
"$LINENO"; then :
12517 gdb_cv_have_struct_link_map_with_l_members
=yes
12519 gdb_cv_have_struct_link_map_with_l_members
=no
12521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
12525 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
12526 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
12528 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
12534 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
12535 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h. */
12540 #include <sys/types.h>
12545 struct link_map lm; (void) lm.lm_addr;
12550 if ac_fn_c_try_compile
"$LINENO"; then :
12551 gdb_cv_have_struct_link_map_with_lm_members
=yes
12553 gdb_cv_have_struct_link_map_with_lm_members
=no
12555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
12559 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
12560 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
12562 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
12568 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
12569 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
12570 $as_echo_n "(cached) " >&6
12572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h. */
12574 #include <sys/types.h>
12575 #ifdef HAVE_NLIST_H
12582 struct so_map lm; (void) lm.som_addr;
12587 if ac_fn_c_try_compile
"$LINENO"; then :
12588 gdb_cv_have_struct_so_map_with_som_members
=yes
12590 gdb_cv_have_struct_so_map_with_som_members
=no
12592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
12596 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
12597 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
12599 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
12605 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
12606 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
12609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12612 #include <sys/link.h>
12616 struct link_map32 l;
12621 if ac_fn_c_try_compile
"$LINENO"; then :
12622 gdb_cv_have_struct_link_map32
=yes
12624 gdb_cv_have_struct_link_map32
=no
12626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
12630 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
12631 if test $gdb_cv_have_struct_link_map32 = yes; then
12633 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
12636 $as_echo "#define _SYSCALL32 1" >>confdefs.h
12641 # Check if the compiler supports the `long long' type.
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12644 $as_echo_n "checking for long long support in compiler... " >&6; }
12645 if test "${gdb_cv_c_long_long+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12650 extern long long foo;
12654 switch (foo & 2) { case 0: return 1; }
12659 if ac_fn_c_try_compile
"$LINENO"; then :
12660 gdb_cv_c_long_long
=yes
12662 gdb_cv_c_long_long
=no
12664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12667 $as_echo "$gdb_cv_c_long_long" >&6; }
12668 if test $gdb_cv_c_long_long = yes; then
12670 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12674 # Check if the compiler and runtime support printing long longs.
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12677 $as_echo_n "checking for long long support in printf... " >&6; }
12678 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12679 $as_echo_n "(cached) " >&6
12681 if test "$cross_compiling" = yes; then :
12682 gdb_cv_printf_has_long_long
=no
12684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686 $ac_includes_default
12692 l = (l << 16) + 0x0123;
12693 l = (l << 16) + 0x4567;
12694 l = (l << 16) + 0x89ab;
12695 l = (l << 16) + 0xcdef;
12696 sprintf (buf, "0x%016llx", l);
12697 return (strcmp ("0x0123456789abcdef", buf));
12702 if ac_fn_c_try_run
"$LINENO"; then :
12703 gdb_cv_printf_has_long_long
=yes
12705 gdb_cv_printf_has_long_long
=no
12707 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12708 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12713 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12714 if test $gdb_cv_printf_has_long_long = yes; then
12716 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12720 # Check if the compiler and runtime support printing decfloats.
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12723 $as_echo_n "checking for decfloat support in printf... " >&6; }
12724 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12725 $as_echo_n "(cached) " >&6
12727 if test "$cross_compiling" = yes; then :
12728 gdb_cv_printf_has_decfloat
=no
12730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12732 $ac_includes_default
12737 _Decimal32 d32 = 1.2345df;
12738 _Decimal64 d64 = 1.2345dd;
12739 _Decimal128 d128 = 1.2345dl;
12740 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12741 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12746 if ac_fn_c_try_run
"$LINENO"; then :
12747 gdb_cv_printf_has_decfloat
=yes
12749 gdb_cv_printf_has_decfloat
=no
12751 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12752 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12757 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12758 if test $gdb_cv_printf_has_decfloat = yes; then
12760 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12764 # Check if the compiler supports the `long double' type. We can't use
12765 # AC_C_LONG_DOUBLE because that one does additional checks on the
12766 # constants defined in <float.h> that fail on some systems,
12767 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12770 $as_echo_n "checking for long double support in compiler... " >&6; }
12771 if test "${gdb_cv_c_long_double+set}" = set; then :
12772 $as_echo_n "(cached) " >&6
12774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h. */
12778 if ac_fn_c_try_compile
"$LINENO"; then :
12779 gdb_cv_c_long_double
=yes
12781 gdb_cv_c_long_double
=no
12783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12786 $as_echo "$gdb_cv_c_long_double" >&6; }
12787 if test $gdb_cv_c_long_double = yes; then
12789 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12793 # Check if the compiler and runtime support printing long doubles.
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12796 $as_echo_n "checking for long double support in printf... " >&6; }
12797 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12798 $as_echo_n "(cached) " >&6
12800 if test "$cross_compiling" = yes; then :
12801 gdb_cv_printf_has_long_double
=no
12803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h. */
12805 $ac_includes_default
12810 long double f = 3.141592653;
12811 sprintf (buf, "%Lg", f);
12812 return (strncmp ("3.14159", buf, 7));
12817 if ac_fn_c_try_run
"$LINENO"; then :
12818 gdb_cv_printf_has_long_double
=yes
12820 gdb_cv_printf_has_long_double
=no
12822 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12823 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12828 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12829 if test $gdb_cv_printf_has_long_double = yes; then
12831 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12835 # Check if the compiler and runtime support scanning long doubles.
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12838 $as_echo_n "checking for long double support in scanf... " >&6; }
12839 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12840 $as_echo_n "(cached) " >&6
12842 if test "$cross_compiling" = yes; then :
12843 gdb_cv_scanf_has_long_double
=no
12845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12851 char *buf = "3.141592653";
12853 sscanf (buf, "%Lg", &f);
12854 return !(f > 3.14159 && f < 3.14160);
12859 if ac_fn_c_try_run
"$LINENO"; then :
12860 gdb_cv_scanf_has_long_double
=yes
12862 gdb_cv_scanf_has_long_double
=no
12864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12865 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12870 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12871 if test $gdb_cv_scanf_has_long_double = yes; then
12873 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12880 $as_echo_n "checking for -bbigtoc option... " >&6; }
12881 if test "${gdb_cv_bigtoc+set}" = set; then :
12882 $as_echo_n "(cached) " >&6
12885 SAVE_LDFLAGS
=$LDFLAGS
12888 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
12889 *) gdb_cv_bigtoc
=-bbigtoc ;;
12892 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
12893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12904 if ac_fn_c_try_link
"$LINENO"; then :
12909 rm -f core conftest.err conftest.
$ac_objext \
12910 conftest
$ac_exeext conftest.
$ac_ext
12911 LDFLAGS
="${SAVE_LDFLAGS}"
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12915 $as_echo "$gdb_cv_bigtoc" >&6; }
12916 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12922 if test ${build} = ${host} -a ${host} = ${target} ; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
12926 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
12927 if test -f /usr
/include
/dce
/cma_config.h
; then
12928 if test "$GCC" = "yes" ; then
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12930 $as_echo "yes" >&6; }
12932 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
12934 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
12935 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
12938 $as_echo "no (suppressed because you are not using GCC)" >&6; }
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942 $as_echo "no" >&6; }
12946 # See if thread_db library is around for Solaris thread debugging.
12947 # Note that we must explicitly test for version 1 of the library
12948 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12951 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12952 if test -f /usr
/lib
/libthread_db.so
.1 ; then
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12954 $as_echo "yes" >&6; }
12956 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12958 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
12959 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12961 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12962 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
12965 ac_check_lib_save_LIBS
=$LIBS
12967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12970 /* Override any GCC internal prototype to avoid an error.
12971 Use char because int might match the return type of a GCC
12972 builtin and then its argument prototype would still apply. */
12985 if ac_fn_c_try_link
"$LINENO"; then :
12986 ac_cv_lib_dl_dlopen
=yes
12988 ac_cv_lib_dl_dlopen
=no
12990 rm -f core conftest.err conftest.
$ac_objext \
12991 conftest
$ac_exeext conftest.
$ac_ext
12992 LIBS
=$ac_check_lib_save_LIBS
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12995 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12996 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
12997 cat >>confdefs.h
<<_ACEOF
12998 #define HAVE_LIBDL 1
13005 if test "$GCC" = "yes" ; then
13006 # The GNU linker requires the -export-dynamic option to make
13007 # all symbols visible in the dynamic symbol table.
13008 hold_ldflags
=$LDFLAGS
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
13010 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
13011 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
13012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13023 if ac_fn_c_try_link
"$LINENO"; then :
13028 rm -f core conftest.err conftest.
$ac_objext \
13029 conftest
$ac_exeext conftest.
$ac_ext
13030 LDFLAGS
=$hold_ldflags
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13032 $as_echo "$found" >&6; }
13033 if test $found = yes; then
13034 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
13037 # Sun randomly tweaked the prototypes in <proc_service.h>
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
13040 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
13041 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13042 $as_echo_n "(cached) " >&6
13045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13048 #include <proc_service.h>
13049 ps_err_e ps_pdwrite
13050 (struct ps_prochandle*, psaddr_t, const void*, size_t);
13060 if ac_fn_c_try_compile
"$LINENO"; then :
13061 gdb_cv_proc_service_is_old
=no
13063 gdb_cv_proc_service_is_old
=yes
13065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13070 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13071 if test $gdb_cv_proc_service_is_old = yes; then
13073 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13083 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13084 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13085 $as_echo_n "(cached) " >&6
13087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089 #include <sys/pthdebug.h>
13093 #ifndef PTHDB_VERSION_3
13100 if ac_fn_c_try_compile
"$LINENO"; then :
13101 gdb_cv_have_aix_thread_debug
=yes
13103 gdb_cv_have_aix_thread_debug
=no
13105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13109 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13110 if test $gdb_cv_have_aix_thread_debug = yes; then
13111 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
13112 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
13113 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
13120 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13122 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13123 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13124 $as_echo_n "(cached) " >&6
13126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13128 #include <thread_db.h>
13132 int i = TD_NOTALLOC;
13137 if ac_fn_c_try_compile
"$LINENO"; then :
13138 gdb_cv_thread_db_h_has_td_notalloc
=yes
13140 gdb_cv_thread_db_h_has_td_notalloc
=no
13143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13147 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13149 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13150 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13155 #include <thread_db.h>
13159 int i = TD_VERSION;
13164 if ac_fn_c_try_compile
"$LINENO"; then :
13165 gdb_cv_thread_db_h_has_td_version
=yes
13167 gdb_cv_thread_db_h_has_td_version
=no
13170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
13174 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
13176 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
13177 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
13178 $as_echo_n "(cached) " >&6
13180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13182 #include <thread_db.h>
13191 if ac_fn_c_try_compile
"$LINENO"; then :
13192 gdb_cv_thread_db_h_has_td_notls
=yes
13194 gdb_cv_thread_db_h_has_td_notls
=no
13197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
13201 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
13203 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
13205 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
13208 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
13210 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
13213 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
13215 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
13219 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
13221 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
13222 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
13223 $as_echo_n "(cached) " >&6
13225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13227 #include <sys/syscall.h>
13231 int i = __NR_tkill;
13236 if ac_fn_c_try_compile
"$LINENO"; then :
13237 gdb_cv_sys_syscall_h_has_tkill
=yes
13239 gdb_cv_sys_syscall_h_has_tkill
=no
13242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
13246 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
13248 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
13250 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
13254 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13256 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
13262 cat >>confdefs.h
<<_ACEOF
13263 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13267 if test "$cross_compiling" = yes; then :
13268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13270 #include <sys/personality.h>
13275 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13276 # define ADDR_NO_RANDOMIZE 0x0040000
13278 /* Test the flag could be set and stays set. */
13279 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13280 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13286 if ac_fn_c_try_link
"$LINENO"; then :
13287 have_personality
=true
13289 have_personality
=false
13291 rm -f core conftest.err conftest.
$ac_objext \
13292 conftest
$ac_exeext conftest.
$ac_ext
13294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296 #include <sys/personality.h>
13301 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13302 # define ADDR_NO_RANDOMIZE 0x0040000
13304 /* Test the flag could be set and stays set. */
13305 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13306 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13312 if ac_fn_c_try_run
"$LINENO"; then :
13313 have_personality
=true
13315 have_personality
=false
13317 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13318 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13321 if $have_personality
13324 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13329 target_sysroot_reloc
=0
13331 # Check whether --with-sysroot was given.
13332 if test "${with_sysroot+set}" = set; then :
13333 withval
=$with_sysroot;
13334 case ${with_sysroot} in
13335 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
13336 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
13339 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
13341 if test "x$prefix" = xNONE
; then
13342 test_prefix
=/usr
/local
13344 test_prefix
=$prefix
13346 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13347 test_exec_prefix
=$test_prefix
13349 test_exec_prefix
=$exec_prefix
13351 case ${TARGET_SYSTEM_ROOT} in
13352 "${test_prefix}"|
"${test_prefix}/"*|\
13353 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
13354 '${prefix}'|
'${prefix}/'*|\
13355 '${exec_prefix}'|
'${exec_prefix}/'*)
13356 target_sysroot_reloc
=1
13362 TARGET_SYSTEM_ROOT
=
13363 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
13367 TARGET_SYSTEM_ROOT_DEFINE
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
13373 # Check whether --with-system-gdbinit was given.
13374 if test "${with_system_gdbinit+set}" = set; then :
13375 withval
=$with_system_gdbinit;
13376 SYSTEM_GDBINIT
=$withval
13382 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
13383 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13384 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
13385 ac_define_dir
=`eval echo $ac_define_dir`
13387 cat >>confdefs.h
<<_ACEOF
13388 #define SYSTEM_GDBINIT "$ac_define_dir"
13393 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13394 if test "x$prefix" = xNONE
; then
13395 test_prefix
=/usr
/local
13397 test_prefix
=$prefix
13400 test_prefix
=$exec_prefix
13403 case ${ac_define_dir} in
13404 "${test_prefix}"|
"${test_prefix}/"*|\
13405 '${exec_prefix}'|
'${exec_prefix}/'*)
13410 cat >>confdefs.h
<<_ACEOF
13411 #define SYSTEM_GDBINIT_RELOCATABLE $value
13416 # Check whether --enable-werror was given.
13417 if test "${enable_werror+set}" = set; then :
13418 enableval
=$enable_werror; case "${enableval}" in
13419 yes | y
) ERROR_ON_WARNING
="yes" ;;
13420 no | n
) ERROR_ON_WARNING
="no" ;;
13421 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13426 # Enable -Werror by default when using gcc
13427 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13428 ERROR_ON_WARNING
=yes
13432 if test "${ERROR_ON_WARNING}" = yes ; then
13433 WERROR_CFLAGS
="-Werror"
13436 # The entries after -Wno-pointer-sign are disabled warnings which may
13437 # be enabled in the future, which can not currently be used to build
13439 # NOTE: If you change this list, remember to update
13440 # gdb/doc/gdbint.texinfo.
13441 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13442 -Wformat-nonliteral -Wno-pointer-sign \
13443 -Wno-unused -Wunused-value -Wunused-function \
13444 -Wno-switch -Wno-char-subscripts"
13446 # Enable -Wno-format by default when using gcc on mingw since many
13447 # GCC versions complain about %I64.
13449 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
13452 # Check whether --enable-build-warnings was given.
13453 if test "${enable_build_warnings+set}" = set; then :
13454 enableval
=$enable_build_warnings; case "${enableval}" in
13456 no
) build_warnings
="-w";;
13457 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13458 build_warnings
="${build_warnings} ${t}";;
13459 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13460 build_warnings
="${t} ${build_warnings}";;
13461 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13463 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13464 echo "Setting compiler warning flags = $build_warnings" 6>&1
13467 # Check whether --enable-gdb-build-warnings was given.
13468 if test "${enable_gdb_build_warnings+set}" = set; then :
13469 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
13471 no
) build_warnings
="-w";;
13472 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13473 build_warnings
="${build_warnings} ${t}";;
13474 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13475 build_warnings
="${t} ${build_warnings}";;
13476 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13478 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13479 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13483 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13486 $as_echo_n "checking compiler warning flags... " >&6; }
13487 # Separate out the -Werror flag as some files just cannot be
13488 # compiled with it enabled.
13489 for w
in ${build_warnings}; do
13491 -Werr*) WERROR_CFLAGS
=-Werror ;;
13492 *) # Check that GCC accepts it
13493 saved_CFLAGS
="$CFLAGS"
13494 CFLAGS
="$CFLAGS $w"
13495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13506 if ac_fn_c_try_compile
"$LINENO"; then :
13507 WARN_CFLAGS
="${WARN_CFLAGS} $w"
13509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13510 CFLAGS
="$saved_CFLAGS"
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13514 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13519 # In the Cygwin environment, we need some additional flags.
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
13521 $as_echo_n "checking
for cygwin...
" >&6; }
13522 if test "${gdb_cv_os_cygwin+set}" = set; then :
13523 $as_echo_n "(cached
) " >&6
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13528 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13532 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13533 $EGREP "lose
" >/dev/null 2>&1; then :
13534 gdb_cv_os_cygwin=yes
13536 gdb_cv_os_cygwin=no
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
13542 $as_echo "$gdb_cv_os_cygwin" >&6; }
13545 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
13547 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13548 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13549 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
13553 # libreadline needs libuser32.a in a cygwin environment
13555 if test x$gdb_cv_os_cygwin = xyes; then
13556 WIN32LIBS="-luser32"
13557 case "${target}" in
13558 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13563 # The ser-tcp.c module requires sockets.
13567 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13569 WIN32LIBS
="$WIN32LIBS -lws2_32"
13574 # Add ELF support to GDB, but only if BFD includes ELF support.
13576 OLD_LDFLAGS
=$LDFLAGS
13578 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
13579 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
13580 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13581 LIBS
="-lbfd -liberty $intl $LIBS"
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13583 $as_echo_n "checking for ELF support in BFD... " >&6; }
13584 if test "${gdb_cv_var_elf+set}" = set; then :
13585 $as_echo_n "(cached) " >&6
13587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13589 #include <stdlib.h>
13591 #include "elf-bfd.h"
13596 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
13601 if ac_fn_c_try_link
"$LINENO"; then :
13606 rm -f core conftest.err conftest.
$ac_objext \
13607 conftest
$ac_exeext conftest.
$ac_ext
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13610 $as_echo "$gdb_cv_var_elf" >&6; }
13611 if test $gdb_cv_var_elf = yes; then
13612 CONFIG_OBS
="$CONFIG_OBS elfread.o"
13614 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13618 LDFLAGS
=$OLD_LDFLAGS
13621 # Add any host-specific objects to GDB.
13622 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
13624 LIBGUI
="../libgui/src/libgui.a"
13625 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
13634 *-*-cygwin* |
*-*-mingw* )
13643 if test "${enable_gdbtk}" = "yes"; then
13645 # Gdbtk must have an absolute path to srcdir in order to run
13646 # properly when not installed.
13649 GDBTK_SRC_DIR
=`pwd`
13654 # Ok, lets find the tcl configuration
13655 # First, look for one uninstalled.
13656 # the alternative search directory is invoked by --with-tcl
13659 if test x
"${no_tcl}" = x
; then
13660 # we reset no_tcl in case something fails here
13663 # Check whether --with-tcl was given.
13664 if test "${with_tcl+set}" = set; then :
13665 withval
=$with_tcl; with_tclconfig
=${withval}
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13669 $as_echo_n "checking for Tcl configuration... " >&6; }
13670 if test "${ac_cv_c_tclconfig+set}" = set; then :
13671 $as_echo_n "(cached) " >&6
13675 # First check to see if --with-tcl was specified.
13677 *-*-cygwin*) platDir
="win" ;;
13678 *) platDir
="unix" ;;
13680 if test x
"${with_tclconfig}" != x
; then
13681 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13682 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
13684 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13688 # then check for a private Tcl installation
13689 if test x
"${ac_cv_c_tclconfig}" = x
; then
13692 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13693 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13694 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13696 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13697 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13698 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13700 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13701 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13702 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
13703 if test -f "$i/$platDir/tclConfig.sh" ; then
13704 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
13710 # on Darwin, check in Framework installation locations
13711 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
13712 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
13713 `ls -d /Library/Frameworks 2>/dev/null` \
13714 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13715 `ls -d /System/Library/Frameworks 2>/dev/null` \
13717 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13718 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
13724 # check in a few common install locations
13725 if test x
"${ac_cv_c_tclconfig}" = x
; then
13726 for i
in `ls -d ${libdir} 2>/dev/null` \
13727 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13728 `ls -d ${prefix}/lib 2>/dev/null` \
13729 `ls -d /usr/local/lib 2>/dev/null` \
13730 `ls -d /usr/contrib/lib 2>/dev/null` \
13731 `ls -d /usr/lib 2>/dev/null` \
13733 if test -f "$i/tclConfig.sh" ; then
13734 ac_cv_c_tclconfig
=`(cd $i; pwd)`
13740 # check in a few other private locations
13741 if test x
"${ac_cv_c_tclconfig}" = x
; then
13744 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13745 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13746 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
13747 if test -f "$i/$platDir/tclConfig.sh" ; then
13748 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
13757 if test x
"${ac_cv_c_tclconfig}" = x
; then
13758 TCL_BIN_DIR
="# no Tcl configs found"
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13760 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13763 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
13765 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13770 # If $no_tk is nonempty, then we can't do Tk, and there is no
13771 # point to doing Tcl.
13774 # Ok, lets find the tk configuration
13775 # First, look for one uninstalled.
13776 # the alternative search directory is invoked by --with-tk
13779 if test x
"${no_tk}" = x
; then
13780 # we reset no_tk in case something fails here
13783 # Check whether --with-tk was given.
13784 if test "${with_tk+set}" = set; then :
13785 withval
=$with_tk; with_tkconfig
=${withval}
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
13789 $as_echo_n "checking for Tk configuration... " >&6; }
13790 if test "${ac_cv_c_tkconfig+set}" = set; then :
13791 $as_echo_n "(cached) " >&6
13795 # First check to see if --with-tkconfig was specified.
13796 if test x
"${with_tkconfig}" != x
; then
13797 if test -f "${with_tkconfig}/tkConfig.sh" ; then
13798 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
13800 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
13804 # then check for a private Tk library
13806 *-*-cygwin*) platDir
="win" ;;
13807 *) platDir
="unix" ;;
13809 if test x
"${ac_cv_c_tkconfig}" = x
; then
13812 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13813 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
13814 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
13816 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13817 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
13818 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
13820 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13821 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
13822 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
13823 if test -f "$i/$platDir/tkConfig.sh" ; then
13824 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
13830 # on Darwin, check in Framework installation locations
13831 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
13832 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
13833 `ls -d /Library/Frameworks 2>/dev/null` \
13834 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13835 `ls -d /System/Library/Frameworks 2>/dev/null` \
13837 if test -f "$i/Tk.framework/tkConfig.sh" ; then
13838 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
13844 # check in a few common install locations
13845 if test x
"${ac_cv_c_tkconfig}" = x
; then
13846 for i
in `ls -d ${libdir} 2>/dev/null` \
13847 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13848 `ls -d ${prefix}/lib 2>/dev/null` \
13849 `ls -d /usr/local/lib 2>/dev/null` \
13850 `ls -d /usr/contrib/lib 2>/dev/null` \
13851 `ls -d /usr/lib 2>/dev/null` \
13853 if test -f "$i/tkConfig.sh" ; then
13854 ac_cv_c_tkconfig
=`(cd $i; pwd)`
13859 # check in a few other private locations
13860 if test x
"${ac_cv_c_tkconfig}" = x
; then
13863 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13864 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
13865 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
13866 if test -f "$i/$platDir/tkConfig.sh" ; then
13867 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
13876 if test x
"${ac_cv_c_tkconfig}" = x
; then
13877 TK_BIN_DIR
="# no Tk configs found"
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
13879 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
13882 TK_BIN_DIR
=${ac_cv_c_tkconfig}
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
13884 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13889 if test -z "${no_tcl}" -a -z "${no_tk}"; then
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
13892 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
13894 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13896 $as_echo "loading" >&6; }
13897 .
${TCL_BIN_DIR}/tclConfig.sh
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
13900 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13903 # eval is required to do the TCL_DBGX substitution
13904 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13905 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13907 # If the TCL_BIN_DIR is the build directory (not the install directory),
13908 # then set the common variable name to the value of the build variables.
13909 # For example, the variable TCL_LIB_SPEC will be set to the value
13910 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13911 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13912 # installed and uninstalled version of Tcl.
13913 if test -f "${TCL_BIN_DIR}/Makefile" ; then
13914 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
13915 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
13916 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
13917 elif test "`uname -s`" = "Darwin"; then
13918 # If Tcl was built as a framework, attempt to use the libraries
13919 # from the framework at the given location so that linking works
13920 # against Tcl.framework installed in an arbitary location.
13921 case ${TCL_DEFS} in
13923 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
13924 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
13925 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
13926 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
13927 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
13932 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
13933 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
13934 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
13940 # eval is required to do the TCL_DBGX substitution
13941 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13942 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13943 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13944 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13960 # Check for in-tree tcl
13967 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
13971 # Find Tcl private headers
13972 if test x
"${intree}" = xno
; then
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
13975 $as_echo_n "checking for Tcl private headers... " >&6; }
13977 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
13978 if test -f ${dir}/tclInt.h
; then
13982 if test x
"${private_dir}" = x
; then
13983 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
13985 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13987 $as_echo "${private_dir}" >&6; }
13990 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
13991 TCL_LIBRARY
="${TCL_LIB_SPEC}"
13994 # If building tcl in the same src tree, private headers
13995 # are not needed, but we need to be sure to use the right
13997 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
13998 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
13999 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
14007 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
14009 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14011 $as_echo "loading" >&6; }
14012 .
${TK_BIN_DIR}/tkConfig.sh
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
14015 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14018 # eval is required to do the TK_DBGX substitution
14019 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
14020 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
14022 # If the TK_BIN_DIR is the build directory (not the install directory),
14023 # then set the common variable name to the value of the build variables.
14024 # For example, the variable TK_LIB_SPEC will be set to the value
14025 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
14026 # instead of TK_BUILD_LIB_SPEC since it will work with both an
14027 # installed and uninstalled version of Tcl.
14028 if test -f "${TK_BIN_DIR}/Makefile" ; then
14029 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
14030 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
14031 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
14032 elif test "`uname -s`" = "Darwin"; then
14033 # If Tk was built as a framework, attempt to use the libraries
14034 # from the framework at the given location so that linking works
14035 # against Tk.framework installed in an arbitary location.
14038 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
14039 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
14040 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
14041 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
14042 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
14047 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
14048 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
14049 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
14055 # eval is required to do the TK_DBGX substitution
14056 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
14057 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
14058 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
14059 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
14074 # Check for in-tree Tk
14076 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
14080 # Find Tk private headers
14081 if test x
"${intree}" = xno
; then
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
14084 $as_echo_n "checking for Tk private headers... " >&6; }
14086 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
14087 if test -f ${dir}/tkInt.h
; then
14091 if test x
"${private_dir}" = x
; then
14092 as_fn_error
"could not find Tk private headers" "$LINENO" 5
14094 TK_PRIVATE_INCLUDE
="-I${private_dir}"
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14096 $as_echo "${private_dir}" >&6; }
14099 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14100 TK_LIBRARY
=${TK_LIB_SPEC}
14103 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
14104 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
14105 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
14112 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14114 # Include some libraries that Tcl and Tk want.
14115 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14116 # Yes, the ordering seems wrong here. But it isn't.
14117 # TK_LIBS is the list of libraries that need to be linked
14118 # after Tcl/Tk. Note that this isn't put into LIBS. If it
14119 # were in LIBS then any link tests after this point would
14120 # try to include things like `$(LIBGUI)', which wouldn't work.
14121 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
14123 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14124 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14125 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14126 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
14127 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
14128 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
14129 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
14131 if test x
$gdb_cv_os_cygwin = xyes
; then
14132 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14133 WIN32LDAPP
="-Wl,--subsystem,console"
14134 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
14137 subdirs
="$subdirs gdbtk"
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14150 $as_echo_n "checking for X... " >&6; }
14153 # Check whether --with-x was given.
14154 if test "${with_x+set}" = set; then :
14158 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14159 if test "x$with_x" = xno
; then
14160 # The user explicitly disabled X.
14163 case $x_includes,$x_libraries in #(
14164 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
14165 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
14166 $as_echo_n "(cached) " >&6
14168 # One or both of the vars are not set, and there is no cached value.
14169 ac_x_includes
=no ac_x_libraries
=no
14170 rm -f -r conftest.dir
14171 if mkdir conftest.dir
; then
14173 cat >Imakefile
<<'_ACEOF'
14175 @echo incroot='${INCROOT}'
14177 @echo usrlibdir='${USRLIBDIR}'
14179 @echo libdir='${LIBDIR}'
14181 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14182 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14183 for ac_var
in incroot usrlibdir libdir
; do
14184 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14186 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14187 for ac_extension
in a so sl dylib la dll
; do
14188 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14189 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14190 ac_im_usrlibdir
=$ac_im_libdir; break
14193 # Screen out bogus values from the imake configuration. They are
14194 # bogus both because they are the default anyway, and because
14195 # using them would break gcc on systems where it needs fixed includes.
14196 case $ac_im_incroot in
14197 /usr
/include
) ac_x_includes
= ;;
14198 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14200 case $ac_im_usrlibdir in
14201 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14202 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14206 rm -f -r conftest.dir
14209 # Standard set of common directories for X headers.
14210 # Check X11 before X11Rn because it is often a symlink to the current release.
14224 /usr/local/X11/include
14225 /usr/local/X11R7/include
14226 /usr/local/X11R6/include
14227 /usr/local/X11R5/include
14228 /usr/local/X11R4/include
14230 /usr/local/include/X11
14231 /usr/local/include/X11R7
14232 /usr/local/include/X11R6
14233 /usr/local/include/X11R5
14234 /usr/local/include/X11R4
14238 /usr/XFree86/include/X11
14242 /usr/unsupported/include
14243 /usr/athena/include
14244 /usr/local/x11r5/include
14245 /usr/lpp/Xamples/include
14247 /usr/openwin/include
14248 /usr/openwin/share/include'
14250 if test "$ac_x_includes" = no
; then
14251 # Guess where to find include files, by looking for Xlib.h.
14252 # First, try using that file with no special directory specified.
14253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14255 #include <X11/Xlib.h>
14257 if ac_fn_c_try_cpp
"$LINENO"; then :
14258 # We can compile using X headers with no special include directory.
14261 for ac_dir
in $ac_x_header_dirs; do
14262 if test -r "$ac_dir/X11/Xlib.h"; then
14263 ac_x_includes
=$ac_dir
14268 rm -f conftest.err conftest.
$ac_ext
14269 fi # $ac_x_includes = no
14271 if test "$ac_x_libraries" = no
; then
14272 # Check for the libraries.
14273 # See if we find them without any special options.
14274 # Don't add to $LIBS permanently.
14277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14279 #include <X11/Xlib.h>
14288 if ac_fn_c_try_link
"$LINENO"; then :
14290 # We can link X programs with no special library path.
14294 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14296 # Don't even attempt the hair of trying to link an X program!
14297 for ac_extension
in a so sl dylib la dll
; do
14298 if test -r "$ac_dir/libX11.$ac_extension"; then
14299 ac_x_libraries
=$ac_dir
14305 rm -f core conftest.err conftest.
$ac_objext \
14306 conftest
$ac_exeext conftest.
$ac_ext
14307 fi # $ac_x_libraries = no
14309 case $ac_x_includes,$ac_x_libraries in #(
14310 no
,* |
*,no |
*\'*)
14311 # Didn't find X, or a directory has "'" in its name.
14312 ac_cv_have_x
="have_x=no";; #(
14314 # Record where we found X for the cache.
14315 ac_cv_have_x
="have_x=yes\
14316 ac_x_includes='$ac_x_includes'\
14317 ac_x_libraries='$ac_x_libraries'"
14323 eval "$ac_cv_have_x"
14326 if test "$have_x" != yes; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14328 $as_echo "$have_x" >&6; }
14331 # If each of the values was on the command line, it overrides each guess.
14332 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14333 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14334 # Update the cache value to reflect the command line values.
14335 ac_cv_have_x
="have_x=yes\
14336 ac_x_includes='$x_includes'\
14337 ac_x_libraries='$x_libraries'"
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14339 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14343 # Unlike the sim directory, whether a simulator is linked is controlled by
14344 # presence of a gdb_sim definition in the target configure.tgt entry.
14345 # This code just checks for a few cases where we'd like to ignore those
14346 # definitions, even when they're present in the '.mt' file. These cases
14347 # are when --disable-sim is specified, or if the simulator directory is
14348 # not part of the source tree.
14350 # Check whether --enable-sim was given.
14351 if test "${enable_sim+set}" = set; then :
14352 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
14353 echo "enableval = ${enableval}";
14354 case "${enableval}" in
14355 yes) ignore_sim
=false
;;
14356 no
) ignore_sim
=true
;;
14357 *) ignore_sim
=false
;;
14364 if test ! -d "${srcdir}/../sim"; then
14370 if test "${ignore_sim}" = "false"; then
14371 if test x
"${gdb_sim}" != x
; then
14373 SIM_OBS
="remote-sim.o"
14375 $as_echo "#define WITH_SIM 1" >>confdefs.h
14393 # List of host floatformats.
14395 cat >>confdefs.h
<<_ACEOF
14396 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14400 cat >>confdefs.h
<<_ACEOF
14401 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14405 cat >>confdefs.h
<<_ACEOF
14406 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14410 # target_subdir is used by the testsuite to find the target libraries.
14412 if test "${host}" != "${target}"; then
14413 target_subdir
="${target_alias}/"
14418 if test "${gdb_native}" = "yes"; then
14419 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14420 if test ! -f ${host_makefile_frag}; then
14421 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14423 frags
="$frags $host_makefile_frag"
14425 host_makefile_frag
=/dev
/null
14431 if test "${gdb_native}" = "yes"; then
14432 # We pick this up from the host configuration file (.mh) because we
14433 # do not have a native configuration Makefile fragment.
14434 nativefile
=`sed -n '
14435 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
14436 ' ${host_makefile_frag}`
14440 if test x
"${gdb_osabi}" != x
; then
14442 cat >>confdefs.h
<<_ACEOF
14443 #define GDB_OSABI_DEFAULT $gdb_osabi
14448 # Enable multi-ice-gdb-server.
14449 # Check whether --enable-multi-ice was given.
14450 if test "${enable_multi_ice+set}" = set; then :
14451 enableval
=$enable_multi_ice; case $enableval in
14454 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14458 if test "x$enable_multi_ice" = xyes
; then
14459 subdirs
="$subdirs multi-ice"
14463 # We only build gdbserver automatically in a native configuration.
14464 if test "$gdb_native" = "yes"; then
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14466 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14467 if test "x$build_gdbserver" = xyes
; then
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14469 $as_echo "yes" >&6; }
14470 subdirs
="$subdirs gdbserver"
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14474 $as_echo "no" >&6; }
14478 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
14479 # to an empty version.
14485 if test "${nativefile}" != ""; then
14486 case "${nativefile}" in
14487 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
14488 * ) GDB_NM_FILE
="${nativefile}"
14490 files
="${files} ${GDB_NM_FILE}"
14491 links
="${links} nm.h"
14493 cat >>confdefs.h
<<_ACEOF
14494 #define GDB_NM_FILE "${GDB_NM_FILE}"
14500 ac_sources
="$files"
14502 while test -n "$ac_sources"; do
14503 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
14504 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
14505 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
14507 ac_config_links
="$ac_config_links $ac_config_links_1"
14513 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
14516 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
14518 ac_config_commands
="$ac_config_commands default"
14520 cat >confcache
<<\_ACEOF
14521 # This file is a shell script that caches the results of configure
14522 # tests run on this system so they can be shared between configure
14523 # scripts and configure runs, see configure's option --config-cache.
14524 # It is not useful on other systems. If it contains results you don't
14525 # want to keep, you may remove or edit it.
14527 # config.status only pays attention to the cache file if you give it
14528 # the --recheck option to rerun configure.
14530 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14531 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14532 # following values.
14536 # The following way of writing the cache mishandles newlines in values,
14537 # but we know of no workaround that is simple, portable, and efficient.
14538 # So, we kill variables containing newlines.
14539 # Ultrix sh set writes to stderr and can't be redirected directly,
14540 # and sets the high bit in the cache file unless we assign to the vars.
14542 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14543 eval ac_val
=\$
$ac_var
14547 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14548 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14551 _ | IFS | as_nl
) ;; #(
14552 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14553 *) { eval $ac_var=; unset $ac_var;} ;;
14559 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14560 *${as_nl}ac_space
=\
*)
14561 # `set' does not quote correctly, so add quotes: double-quote
14562 # substitution turns \\\\ into \\, and sed turns \\ into \.
14565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14568 # `set' quotes correctly as required by POSIX, so do not add quotes.
14569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14580 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14582 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14583 if test -w "$cache_file"; then
14584 test "x$cache_file" != "x/dev/null" &&
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14586 $as_echo "$as_me: updating cache $cache_file" >&6;}
14587 cat confcache
>$cache_file
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14590 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14595 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14596 # Let make expand exec_prefix.
14597 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14599 DEFS
=-DHAVE_CONFIG_H
14603 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14604 # 1. Remove the extension, and $U if already installed.
14605 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14606 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14608 # will be set to the directory where LIBOBJS objects are built.
14609 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14610 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14612 LIBOBJS
=$ac_libobjs
14614 LTLIBOBJS
=$ac_ltlibobjs
14617 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14618 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
14619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14621 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
14622 as_fn_error
"conditional \"GMAKE\" was never defined.
14623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14625 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14626 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
14627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14632 if test -n "$gl_LIBOBJS"; then
14633 # Remove the extension.
14634 sed_drop_objext
='s/\.o$//;s/\.obj$//'
14635 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14636 gl_libobjs
="$gl_libobjs $i.$ac_objext"
14637 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
14640 gl_LIBOBJS
=$gl_libobjs
14642 gl_LTLIBOBJS
=$gl_ltlibobjs
14648 if test -n "$gltests_LIBOBJS"; then
14649 # Remove the extension.
14650 sed_drop_objext
='s/\.o$//;s/\.obj$//'
14651 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14652 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
14653 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
14656 gltests_LIBOBJS
=$gltests_libobjs
14658 gltests_LTLIBOBJS
=$gltests_ltlibobjs
14661 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14662 as_fn_error
"conditional \"AMDEP\" was never defined.
14663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14665 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14666 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
14667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14669 if test -n "$EXEEXT"; then
14671 am__EXEEXT_FALSE
='#'
14673 am__EXEEXT_TRUE
='#'
14679 : ${CONFIG_STATUS=./config.status}
14681 ac_clean_files_save
=$ac_clean_files
14682 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14684 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14686 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14688 # Generated by $as_me.
14689 # Run this file to recreate the current configuration.
14690 # Compiler output produced by configure, useful for debugging
14691 # configure, is in config.log if it exists.
14694 ac_cs_recheck=false
14697 SHELL=\${CONFIG_SHELL-$SHELL}
14700 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14701 ## -------------------- ##
14702 ## M4sh Initialization. ##
14703 ## -------------------- ##
14705 # Be more Bourne compatible
14706 DUALCASE
=1; export DUALCASE
# for MKS sh
14707 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14710 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14711 # is contrary to our usage. Disable this feature.
14712 alias -g '${1+"$@"}'='"$@"'
14713 setopt NO_GLOB_SUBST
14715 case `(set -o) 2>/dev/null` in #(
14727 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14728 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14729 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14730 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14731 # Prefer a ksh shell builtin over an external printf program on Solaris,
14732 # but without wasting forks for bash or zsh.
14733 if test -z "$BASH_VERSION$ZSH_VERSION" \
14734 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14735 as_echo='print
-r --'
14736 as_echo_n='print
-rn --'
14737 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14738 as_echo='printf %s
\n'
14739 as_echo_n='printf %s
'
14741 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14742 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14743 as_echo_n='/usr
/ucb
/echo -n'
14745 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14746 as_echo_n_body='eval
14750 expr "X$arg" : "X\\(.*\\)$as_nl";
14751 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14753 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14755 export as_echo_n_body
14756 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14758 export as_echo_body
14759 as_echo='sh
-c $as_echo_body as_echo
'
14762 # The user is always right.
14763 if test "${PATH_SEPARATOR+set}" != set; then
14765 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14766 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14773 # We need space, tab and new line, in precisely that order. Quoting is
14774 # there to prevent editors from complaining about space-tab.
14775 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14776 # splitting by setting IFS to empty value.)
14779 # Find who we are. Look in the path if we contain no directory separator.
14781 *[\\/]* ) as_myself=$0 ;;
14782 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14783 for as_dir in $PATH
14786 test -z "$as_dir" && as_dir=.
14787 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14793 # We did not find ourselves, most probably we were run as `sh COMMAND'
14794 # in which case we are not to be found in the path.
14795 if test "x$as_myself" = x
; then
14798 if test ! -f "$as_myself"; then
14799 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14803 # Unset variables that we do not need and which cause bugs (e.g. in
14804 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14805 # suppresses any "Segmentation fault" message there. '((' could
14806 # trigger a bug in pdksh 5.2.14.
14807 for as_var
in BASH_ENV ENV MAIL MAILPATH
14808 do eval test x\
${$as_var+set} = xset \
14809 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14822 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14825 # as_fn_error ERROR [LINENO LOG_FD]
14826 # ---------------------------------
14827 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14828 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14829 # script with status $?, using 1 if that was 0.
14832 as_status
=$?
; test $as_status -eq 0 && as_status
=1
14834 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14835 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14837 $as_echo "$as_me: error: $1" >&2
14838 as_fn_exit
$as_status
14842 # as_fn_set_status STATUS
14843 # -----------------------
14844 # Set $? to STATUS, without forking.
14845 as_fn_set_status
()
14848 } # as_fn_set_status
14850 # as_fn_exit STATUS
14851 # -----------------
14852 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14856 as_fn_set_status
$1
14862 # Portably unset VAR.
14865 { eval $1=; unset $1;}
14867 as_unset
=as_fn_unset
14868 # as_fn_append VAR VALUE
14869 # ----------------------
14870 # Append the text in VALUE to the end of the definition contained in VAR. Take
14871 # advantage of any shell optimizations that allow amortized linear growth over
14872 # repeated appends, instead of the typical quadratic growth present in naive
14874 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14875 eval 'as_fn_append ()
14886 # as_fn_arith ARG...
14887 # ------------------
14888 # Perform arithmetic evaluation on the ARGs, and store the result in the
14889 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14890 # must be portable across $(()) and expr.
14891 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14892 eval 'as_fn_arith ()
14899 as_val
=`expr "$@" || test $? -eq 1`
14904 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14905 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14911 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14912 as_basename
=basename
14917 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14923 as_me
=`$as_basename -- "$0" ||
14924 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14925 X"$0" : 'X\(//\)$' \| \
14926 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14928 sed '/^.*\/\([^/][^/]*\)\/*$/{
14942 # Avoid depending upon Character Ranges.
14943 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14944 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14945 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14946 as_cr_digits
='0123456789'
14947 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14949 ECHO_C
= ECHO_N
= ECHO_T
=
14950 case `echo -n x` in #(((((
14952 case `echo 'xy\c'` in
14953 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14955 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14962 rm -f conf$$ conf$$.exe conf$$.
file
14963 if test -d conf$$.dir
; then
14964 rm -f conf$$.dir
/conf$$.
file
14967 mkdir conf$$.dir
2>/dev
/null
14969 if (echo >conf$$.
file) 2>/dev
/null
; then
14970 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14972 # ... but there are two gotchas:
14973 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14974 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14975 # In both cases, we have to default to `cp -p'.
14976 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14978 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14986 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14987 rmdir conf$$.dir
2>/dev
/null
14992 # Create "$as_dir" as a directory, including parents if necessary.
14997 -*) as_dir
=.
/$as_dir;;
14999 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15003 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15004 *) as_qdir
=$as_dir;;
15006 as_dirs
="'$as_qdir' $as_dirs"
15007 as_dir
=`$as_dirname -- "$as_dir" ||
15008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15009 X"$as_dir" : 'X\(//\)[^/]' \| \
15010 X"$as_dir" : 'X\(//\)$' \| \
15011 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15012 $as_echo X"$as_dir" |
15013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15017 /^X\(\/\/\)[^/].*/{
15030 test -d "$as_dir" && break
15032 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15033 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
15037 if mkdir
-p .
2>/dev
/null
; then
15038 as_mkdir_p
='mkdir -p "$as_dir"'
15040 test -d .
/-p && rmdir .
/-p
15044 if test -x / >/dev
/null
2>&1; then
15045 as_test_x
='test -x'
15047 if ls -dL / >/dev
/null
2>&1; then
15054 if test -d "$1"; then
15060 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15061 ???[sx]*):;;*)false;;esac;fi
15065 as_executable_p
=$as_test_x
15067 # Sed expression to map a string onto a valid CPP name.
15068 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15070 # Sed expression to map a string onto a valid variable name.
15071 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15075 ## ----------------------------------- ##
15076 ## Main body of $CONFIG_STATUS script. ##
15077 ## ----------------------------------- ##
15079 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15082 # Save the log message, to keep $0 and so on meaningful, and to
15083 # report actual input values of CONFIG_FILES etc. instead of their
15084 # values after options handling.
15086 This file was extended by $as_me, which was
15087 generated by GNU Autoconf 2.64. Invocation command line was
15089 CONFIG_FILES = $CONFIG_FILES
15090 CONFIG_HEADERS = $CONFIG_HEADERS
15091 CONFIG_LINKS = $CONFIG_LINKS
15092 CONFIG_COMMANDS = $CONFIG_COMMANDS
15095 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15100 case $ac_config_files in *"
15101 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15104 case $ac_config_headers in *"
15105 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15110 # Files that config.status was made for.
15111 config_files="$ac_config_files"
15112 config_headers="$ac_config_headers"
15113 config_links="$ac_config_links"
15114 config_commands="$ac_config_commands"
15118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15120 \`$as_me' instantiates files and other configuration actions
15121 from templates according to the current configuration. Unless the files
15122 and actions are specified as TAGs, all are instantiated by default.
15124 Usage: $0 [OPTION]... [TAG]...
15126 -h, --help print this help, then exit
15127 -V, --version print version number and configuration settings, then exit
15128 -q, --quiet, --silent
15129 do not print progress messages
15130 -d, --debug don't remove temporary files
15131 --recheck update $as_me by reconfiguring in the same conditions
15132 --file=FILE[:TEMPLATE]
15133 instantiate the configuration file FILE
15134 --header=FILE[:TEMPLATE]
15135 instantiate the configuration header FILE
15137 Configuration files:
15140 Configuration headers:
15143 Configuration links:
15146 Configuration commands:
15149 Report bugs to the package provider."
15152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15155 configured by $0, generated by GNU Autoconf 2.64,
15156 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15158 Copyright (C) 2009 Free Software Foundation, Inc.
15159 This config.status script is free software; the Free Software Foundation
15160 gives unlimited permission to copy, distribute and modify it."
15167 test -n "\$AWK" || AWK=awk
15170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15171 # The default lists apply if the user does not specify any file.
15177 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15178 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15189 # Handling of the options.
15190 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15192 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15193 $as_echo "$ac_cs_version"; exit ;;
15194 --debug |
--debu |
--deb |
--de |
--d |
-d )
15196 --file |
--fil |
--fi |
--f )
15199 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15201 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15202 ac_need_defaults
=false
;;
15203 --header |
--heade |
--head |
--hea )
15206 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15208 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15209 ac_need_defaults
=false
;;
15211 # Conflict between --help and --header
15212 as_fn_error
"ambiguous option: \`$1'
15213 Try \`$0 --help' for more information.";;
15214 --help |
--hel |
-h )
15215 $as_echo "$ac_cs_usage"; exit ;;
15216 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15217 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15220 # This is an error.
15221 -*) as_fn_error
"unrecognized option: \`$1'
15222 Try \`$0 --help' for more information." ;;
15224 *) as_fn_append ac_config_targets
" $1"
15225 ac_need_defaults
=false
;;
15231 ac_configure_extra_args
=
15233 if $ac_cs_silent; then
15235 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15240 if \$ac_cs_recheck; then
15241 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15243 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15244 CONFIG_SHELL='$SHELL'
15245 export CONFIG_SHELL
15250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15254 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15255 ## Running $as_me. ##
15261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15265 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15266 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15272 # Handling of arguments.
15273 for ac_config_target
in $ac_config_targets
15275 case $ac_config_target in
15276 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
15277 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
15278 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
15279 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
15280 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15281 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15282 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
15283 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15285 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15290 # If the user did not use the arguments to specify the items to instantiate,
15291 # then the envvar interface is used. Set only those that are not.
15292 # We use the long form for the default assignment because of an extremely
15293 # bizarre bug on SunOS 4.1.3.
15294 if $ac_need_defaults; then
15295 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15296 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15297 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
15298 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15301 # Have a temporary directory for convenience. Make it in the build tree
15302 # simply because there is no reason against having it here, and in addition,
15303 # creating and moving files from /tmp can sometimes cause problems.
15304 # Hook for its removal unless debugging.
15305 # Note that there is a small window in which the directory will not be cleaned:
15306 # after its creation but before its name has been assigned to `$tmp'.
15310 trap 'exit_status=$?
15311 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15313 trap 'as_fn_exit 1' 1 2 13 15
15315 # Create a (secure) tmp directory for tmp files.
15318 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15319 test -n "$tmp" && test -d "$tmp"
15322 tmp
=.
/conf$$
-$RANDOM
15323 (umask 077 && mkdir
"$tmp")
15324 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
15326 # Set up the scripts for CONFIG_FILES section.
15327 # No need to generate them if there are no CONFIG_FILES.
15328 # This happens for instance with `./config.status config.h'.
15329 if test -n "$CONFIG_FILES"; then
15331 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15332 ac_cs_awk_getline
=:
15333 ac_cs_awk_pipe_init
=
15334 ac_cs_awk_read_file
='
15335 while ((getline aline < (F[key])) > 0)
15338 ac_cs_awk_pipe_fini
=
15340 ac_cs_awk_getline
=false
15341 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15342 ac_cs_awk_read_file
='
15344 print "cat " F[key] " &&"
15345 '$ac_cs_awk_pipe_init
15346 # The final `:' finishes the AND list.
15347 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15349 ac_cr
=`echo X | tr X '\015'`
15350 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15351 # But we know of no other shell where ac_cr would be empty at this
15352 # point, so we can use a bashism as a fallback.
15353 if test "x$ac_cr" = x
; then
15354 eval ac_cr
=\$
\'\\r
\'
15356 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15357 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15360 ac_cs_awk_cr
=$ac_cr
15363 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15366 # Create commands to substitute file output variables.
15368 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15369 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15370 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15373 } >conf$
$files.sh
&&
15374 . .
/conf$
$files.sh ||
15375 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
15376 rm -f conf$
$files.sh
15379 echo "cat >conf$$subs.awk <<_ACEOF" &&
15380 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15382 } >conf$$subs.sh ||
15383 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15384 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15386 for ac_last_try in false false false false false :; do
15387 . ./conf$$subs.sh ||
15388 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15390 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15391 if test $ac_delim_n = $ac_delim_num; then
15393 elif $ac_last_try; then
15394 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15396 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15399 rm -f conf$$subs.sh
15401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15402 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15406 s/^/S["/; s
/!.
*/"]=/
15416 s/\(.\{148\}\).*/\1/
15418 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15423 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15430 s/\(.\{148\}\).*/\1/
15432 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15436 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15441 ' <conf$$subs.awk | sed '
15446 ' >>$CONFIG_STATUS || ac_write_fail=1
15447 rm -f conf$$subs.awk
15448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15450 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15451 for (key in S) S_is_set[key] = 1
15453 \$ac_cs_awk_pipe_init
15457 nfields = split(line, field, "@
")
15459 len = length(field[1])
15460 for (i = 2; i < nfields; i++) {
15462 keylen = length(key)
15463 if (S_is_set[key]) {
15465 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15466 len += length(value) + length(field[++i])
15471 if (nfields == 3 && !substed) {
15473 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15474 \$ac_cs_awk_read_file
15480 \$ac_cs_awk_pipe_fini
15483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15484 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15485 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15488 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15489 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15494 # trailing colons and then remove the whole line if VPATH becomes empty
15495 # (actually we leave an empty line to preserve line numbers).
15496 if test "x
$srcdir" = x.; then
15497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15498 s/:*\$(srcdir):*/:/
15499 s/:*\${srcdir}:*/:/
15501 s/^\([^=]*=[ ]*\):*/\1/
15507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15508 fi # test -n "$CONFIG_FILES"
15510 # Set up the scripts for CONFIG_HEADERS section.
15511 # No need to generate them if there are no CONFIG_HEADERS.
15512 # This happens for instance with `./config.status Makefile'.
15513 if test -n "$CONFIG_HEADERS"; then
15514 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15518 # Transform confdefs.h into an awk script `defines.awk', embedded as
15519 # here-document in config.status, that substitutes the proper values into
15520 # config.h.in to produce config.h.
15522 # Create a delimiter string that does not exist in confdefs.h, to ease
15523 # handling of long lines.
15525 for ac_last_try in false false :; do
15526 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15527 if test -z "$ac_t"; then
15529 elif $ac_last_try; then
15530 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15532 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15536 # For the awk script, D is an array of macro values keyed by name,
15537 # likewise P contains macro parameters if any. Preserve backslash
15538 # newline sequences.
15540 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15542 s/.\{148\}/&'"$ac_delim"'/g
15545 s/^[ ]*#[ ]*define[ ][ ]*/ /
15552 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15554 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15559 D["\
1"]=" \
3\\\\\\n
"\\/p
15561 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15566 s/.\{148\}/&'"$ac_delim"'/g
15571 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15574 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15576 ' <confdefs.h | sed '
15577 s/'"$ac_delim"'/"\\\
15578 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15581 for (key in D) D_is_set[key] = 1
15584 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15586 split(line, arg, " ")
15587 if (arg[1] == "#") {
15591 defundef
= substr
(arg
[1], 2)
15594 split(mac1
, mac2
, "(") #)
15596 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15597 if (D_is_set
[macro
]) {
15598 # Preserve the white space surrounding the "#".
15599 print prefix
"define", macro P
[macro
] D
[macro
]
15602 # Replace #undef with comments. This is necessary, for example,
15603 # in the case of _POSIX_SOURCE, which is predefined and required
15604 # on some systems where configure will not decide to define it.
15605 if (defundef
== "undef") {
15606 print
"/*", prefix defundef
, macro
, "*/"
15614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15615 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
15616 fi # test -n "$CONFIG_HEADERS"
15619 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15624 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15626 case $ac_mode$ac_tag in
15628 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15629 :[FH
]-) ac_tag
=-:-;;
15630 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15647 -) ac_f
="$tmp/stdin";;
15648 *) # Look for the file first in the build tree, then in the source tree
15649 # (if the path is not absolute). The absolute path cannot be DOS-style,
15650 # because $ac_f cannot contain `:'.
15654 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15656 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
15658 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15659 as_fn_append ac_file_inputs
" '$ac_f'"
15662 # Let's still pretend it is `configure' which instantiates (i.e., don't
15663 # use $as_me), people would be surprised to read:
15664 # /* config.h. Generated by config.status. */
15665 configure_input
='Generated from '`
15666 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15668 if test x
"$ac_file" != x-
; then
15669 configure_input
="$ac_file. $configure_input"
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15671 $as_echo "$as_me: creating $ac_file" >&6;}
15673 # Neutralize special characters interpreted by sed in replacement strings.
15674 case $configure_input in #(
15675 *\
&* |
*\|
* |
*\\* )
15676 ac_sed_conf_input
=`$as_echo "$configure_input" |
15677 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15678 *) ac_sed_conf_input
=$configure_input;;
15682 *:-:* |
*:-) cat >"$tmp/stdin" \
15683 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
15688 ac_dir
=`$as_dirname -- "$ac_file" ||
15689 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15690 X"$ac_file" : 'X\(//\)[^/]' \| \
15691 X"$ac_file" : 'X\(//\)$' \| \
15692 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15693 $as_echo X"$ac_file" |
15694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15698 /^X\(\/\/\)[^/].*/{
15711 as_dir
="$ac_dir"; as_fn_mkdir_p
15715 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15717 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15718 # A ".." for each directory in $ac_dir_suffix.
15719 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15720 case $ac_top_builddir_sub in
15721 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15722 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15725 ac_abs_top_builddir
=$ac_pwd
15726 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15727 # for backward compatibility:
15728 ac_top_builddir
=$ac_top_build_prefix
15731 .
) # We are building in place.
15733 ac_top_srcdir
=$ac_top_builddir_sub
15734 ac_abs_top_srcdir
=$ac_pwd ;;
15735 [\\/]* | ?
:[\\/]* ) # Absolute name.
15736 ac_srcdir
=$srcdir$ac_dir_suffix;
15737 ac_top_srcdir
=$srcdir
15738 ac_abs_top_srcdir
=$srcdir ;;
15739 *) # Relative name.
15740 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15741 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15742 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15744 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15754 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15755 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15757 ac_MKDIR_P
=$MKDIR_P
15759 [\\/$
]* | ?
:[\\/]* ) ;;
15760 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
15764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15765 # If the template does not know about datarootdir, expand it.
15766 # FIXME: This hack should be removed a few years after 2.60.
15767 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15778 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15779 *datarootdir
*) ac_datarootdir_seen
=yes;;
15780 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15782 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15785 ac_datarootdir_hack='
15786 s&@datadir@&$datadir&g
15787 s&@docdir@&$docdir&g
15788 s&@infodir@&$infodir&g
15789 s&@localedir@&$localedir&g
15790 s&@mandir@&$mandir&g
15791 s&\\\${datarootdir}&$datarootdir&g' ;;
15795 # Neutralize VPATH when `$srcdir' = `.'.
15796 # Shell code in configure.ac might set extrasub.
15797 # FIXME: do we really want to maintain this feature?
15798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15799 ac_sed_extra="$ac_vpsub
15802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15804 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15805 s|@configure_input@|
$ac_sed_conf_input|
;t t
15806 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15807 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15808 s
&@srcdir@
&$ac_srcdir&;t t
15809 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15810 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15811 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15812 s
&@builddir@
&$ac_builddir&;t t
15813 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15814 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15815 s
&@INSTALL@
&$ac_INSTALL&;t t
15816 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
15817 $ac_datarootdir_hack
15819 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15820 if $ac_cs_awk_getline; then
15821 $AWK -f "$tmp/subs.
awk"
15823 $AWK -f "$tmp/subs.
awk" | $SHELL
15825 || as_fn_error "could not create
$ac_file" "$LINENO" 5
15827 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15828 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15829 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15831 which seems to be undefined. Please make sure it is defined." >&5
15832 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15833 which seems to be undefined. Please make sure it is defined." >&2;}
15837 -) cat "$tmp/out" && rm -f "$tmp/out";;
15838 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15840 || as_fn_error "could not create $ac_file" "$LINENO" 5
15846 if test x"$ac_file" != x-; then
15848 $as_echo "/* $configure_input */" \
15849 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15850 } >"$tmp/config.h" \
15851 || as_fn_error "could not create $ac_file" "$LINENO" 5
15852 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15854 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15857 mv "$tmp/config.h" "$ac_file" \
15858 || as_fn_error "could not create $ac_file" "$LINENO" 5
15861 $as_echo "/* $configure_input */" \
15862 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15863 || as_fn_error "could not create -" "$LINENO" 5
15865 # Compute "$ac_file"'s index
in $config_headers.
15868 for _am_header
in $config_headers :; do
15869 case $_am_header in
15870 $_am_arg |
$_am_arg:* )
15873 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
15876 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15877 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15878 X"$_am_arg" : 'X\(//\)[^/]' \| \
15879 X"$_am_arg" : 'X\(//\)$' \| \
15880 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15881 $as_echo X"$_am_arg" |
15882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15886 /^X\(\/\/\)[^/].*/{
15898 s/.*/./; q'`/stamp-h
$_am_stamp_count
15905 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15908 # Prefer the file from the source tree if names are identical.
15909 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
15910 ac_source
=$srcdir/$ac_source
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15914 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15916 if test ! -r "$ac_source"; then
15917 as_fn_error
"$ac_source: file not found" "$LINENO" 5
15921 # Try a relative symlink, then a hard link, then a copy.
15923 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
15924 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
15926 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
15927 ln "$ac_source" "$ac_file" 2>/dev
/null ||
15928 cp -p "$ac_source" "$ac_file" ||
15929 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15932 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15933 $as_echo "$as_me: executing $ac_file commands" >&6;}
15938 case $ac_file$ac_mode in
15939 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
15940 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
15941 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15942 # are listed without --file. Let's play safe and only enable the eval
15943 # if we detect the quoting.
15944 case $CONFIG_FILES in
15945 *\'*) eval set x
"$CONFIG_FILES" ;;
15946 *) set x
$CONFIG_FILES ;;
15951 # Strip MF so we end up with the name of the file.
15952 mf
=`echo "$mf" | sed -e 's/:.*$//'`
15953 # Check whether this is an Automake generated Makefile or not.
15954 # We used to match only the files named `Makefile.in', but
15955 # some people rename them; so instead we look at the file content.
15956 # Grep'ing the first line is not enough: some people post-process
15957 # each Makefile.in and add a new line on top of each file to say so.
15958 # Grep'ing the whole file is not good either: AIX grep has a line
15959 # limit of 2048, but all sed's we know have understand at least 4000.
15960 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
15961 dirpart
=`$as_dirname -- "$mf" ||
15962 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15963 X"$mf" : 'X\(//\)[^/]' \| \
15964 X"$mf" : 'X\(//\)$' \| \
15965 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15971 /^X\(\/\/\)[^/].*/{
15987 # Extract the definition of DEPDIR, am__include, and am__quote
15988 # from the Makefile without running `make'.
15989 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
15990 test -z "$DEPDIR" && continue
15991 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
15992 test -z "am__include" && continue
15993 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
15994 # When using ansi2knr, U may be empty or an underscore; expand it
15995 U
=`sed -n 's/^U = //p' < "$mf"`
15996 # Find all dependency output files, they are included files with
15997 # $(DEPDIR) in their names. We invoke sed twice because it is the
15998 # simplest approach to changing $(DEPDIR) to its actual value in the
16000 for file in `sed -n "
16001 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16002 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16003 # Make sure the directory exists.
16004 test -f "$dirpart/$file" && continue
16005 fdir
=`$as_dirname -- "$file" ||
16006 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16007 X"$file" : 'X\(//\)[^/]' \| \
16008 X"$file" : 'X\(//\)$' \| \
16009 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16010 $as_echo X"$file" |
16011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16015 /^X\(\/\/\)[^/].*/{
16028 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16029 # echo "creating $dirpart/$file"
16030 echo '# dummy' > "$dirpart/$file"
16036 case x
$CONFIG_HEADERS in
16037 xconfig.h
:config.
in)
16048 ac_clean_files
=$ac_clean_files_save
16050 test $ac_write_fail = 0 ||
16051 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
16054 # configure is writing to config.log, and then calls config.status.
16055 # config.status does its own redirection, appending to config.log.
16056 # Unfortunately, on DOS this fails, as config.log is still kept open
16057 # by configure, so config.status won't be able to write to it; its
16058 # output is simply discarded. So we exec the FD to /dev/null,
16059 # effectively closing config.log, so it can be properly (re)opened and
16060 # appended to by config.status. When coming back to configure, we
16061 # need to make the FD available again.
16062 if test "$no_create" != yes; then
16064 ac_config_status_args
=
16065 test "$silent" = yes &&
16066 ac_config_status_args
="$ac_config_status_args --quiet"
16068 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16070 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16071 # would make configure fail if this is the last instruction.
16072 $ac_cs_success || as_fn_exit $?
16076 # CONFIG_SUBDIRS section.
16078 if test "$no_recursion" != yes; then
16080 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16081 # so they do not pile up.
16082 ac_sub_configure_args
=
16084 eval "set x $ac_configure_args"
16088 if test -n "$ac_prev"; then
16093 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
16094 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
16095 ac_prev
=cache_file
;;
16096 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
16097 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
16100 --config-cache |
-C)
16102 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
16104 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
16106 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
16108 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
16110 --disable-option-checking)
16114 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16116 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
16120 # Always prepend --prefix to ensure using the same prefix
16121 # in subdir configurations.
16122 ac_arg
="--prefix=$prefix"
16124 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16126 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
16129 if test "$silent" = yes; then
16130 ac_sub_configure_args
="--silent $ac_sub_configure_args"
16133 # Always prepend --disable-option-checking to silence warnings, since
16134 # different subdirs can have different --enable and --with options.
16135 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
16138 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
16140 # Do not complain, so a configure script can configure whichever
16141 # parts of a large source tree are present.
16142 test -d "$srcdir/$ac_dir" ||
continue
16144 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16145 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16146 $as_echo "$ac_msg" >&6
16147 as_dir
="$ac_dir"; as_fn_mkdir_p
16151 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16153 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16154 # A ".." for each directory in $ac_dir_suffix.
16155 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16156 case $ac_top_builddir_sub in
16157 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16158 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16161 ac_abs_top_builddir
=$ac_pwd
16162 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16163 # for backward compatibility:
16164 ac_top_builddir
=$ac_top_build_prefix
16167 .
) # We are building in place.
16169 ac_top_srcdir
=$ac_top_builddir_sub
16170 ac_abs_top_srcdir
=$ac_pwd ;;
16171 [\\/]* | ?
:[\\/]* ) # Absolute name.
16172 ac_srcdir
=$srcdir$ac_dir_suffix;
16173 ac_top_srcdir
=$srcdir
16174 ac_abs_top_srcdir
=$srcdir ;;
16175 *) # Relative name.
16176 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16177 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16178 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16180 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16185 # Check for guested configure; otherwise get Cygnus style configure.
16186 if test -f "$ac_srcdir/configure.gnu"; then
16187 ac_sub_configure
=$ac_srcdir/configure.gnu
16188 elif test -f "$ac_srcdir/configure"; then
16189 ac_sub_configure
=$ac_srcdir/configure
16190 elif test -f "$ac_srcdir/configure.in"; then
16191 # This should be Cygnus configure.
16192 ac_sub_configure
=$ac_aux_dir/configure
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16195 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16199 # The recursion is here.
16200 if test -n "$ac_sub_configure"; then
16201 # Make the cache file name correct relative to the subdirectory.
16202 case $cache_file in
16203 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
16204 *) # Relative name.
16205 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
16208 { $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
16209 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16210 # The eval makes quoting arguments work.
16211 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16212 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16213 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16219 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16221 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}