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>
591 enable_option_checking
=no
592 ac_subst_vars
='LTLIBOBJS
662 READLINE_TEXI_INCFLAG
732 MAINTAINER_MODE_FALSE
761 program_transform_name
772 ac_subst_files
='host_makefile_frag'
774 enable_option_checking
775 enable_maintainer_mode
778 with_separate_debug_dir
780 with_relocated_sources
782 with_auto_load_safe_path
808 enable_build_warnings
809 enable_gdb_build_warnings
817 ac_precious_vars
='build_alias
831 ac_subdirs_all
='testsuite
836 # Initialize some variables set by options.
838 ac_init_version
=false
839 ac_unrecognized_opts
=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
850 program_transform_name
=s
,x
,x
,
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir
='${exec_prefix}/bin'
865 sbindir
='${exec_prefix}/sbin'
866 libexecdir
='${exec_prefix}/libexec'
867 datarootdir
='${prefix}/share'
868 datadir
='${datarootdir}'
869 sysconfdir
='${prefix}/etc'
870 sharedstatedir
='${prefix}/com'
871 localstatedir
='${prefix}/var'
872 includedir
='${prefix}/include'
873 oldincludedir
='/usr/include'
874 docdir
='${datarootdir}/doc/${PACKAGE}'
875 infodir
='${datarootdir}/info'
880 libdir
='${exec_prefix}/lib'
881 localedir
='${datarootdir}/locale'
882 mandir
='${datarootdir}/man'
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\
$ac_option
896 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
906 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
908 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
911 -build |
--build |
--buil |
--bui |
--bu)
912 ac_prev
=build_alias
;;
913 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
914 build_alias
=$ac_optarg ;;
916 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
917 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
918 ac_prev
=cache_file
;;
919 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
920 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
921 cache_file
=$ac_optarg ;;
924 cache_file
=config.cache
;;
926 -datadir |
--datadir |
--datadi |
--datad)
928 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
929 datadir
=$ac_optarg ;;
931 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
932 |
--dataroo |
--dataro |
--datar)
933 ac_prev
=datarootdir
;;
934 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
935 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
936 datarootdir
=$ac_optarg ;;
938 -disable-* |
--disable-*)
939 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
942 as_fn_error
"invalid feature name: $ac_useropt"
943 ac_useropt_orig
=$ac_useropt
944 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
949 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep
=', ';;
952 eval enable_
$ac_useropt=no
;;
954 -docdir |
--docdir |
--docdi |
--doc |
--do)
956 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
959 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
961 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
964 -enable-* |
--enable-*)
965 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
968 as_fn_error
"invalid feature name: $ac_useropt"
969 ac_useropt_orig
=$ac_useropt
970 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
975 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep
=', ';;
978 eval enable_
$ac_useropt=\
$ac_optarg ;;
980 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
981 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
982 |
--exec |
--exe |
--ex)
983 ac_prev
=exec_prefix
;;
984 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
985 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
986 |
--exec=* |
--exe=* |
--ex=*)
987 exec_prefix
=$ac_optarg ;;
989 -gas |
--gas |
--ga |
--g)
990 # Obsolete; use --with-gas.
993 -help |
--help |
--hel |
--he |
-h)
995 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
996 ac_init_help
=recursive
;;
997 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
998 ac_init_help
=short
;;
1000 -host |
--host |
--hos |
--ho)
1001 ac_prev
=host_alias
;;
1002 -host=* |
--host=* |
--hos=* |
--ho=*)
1003 host_alias
=$ac_optarg ;;
1005 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1007 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1009 htmldir
=$ac_optarg ;;
1011 -includedir |
--includedir |
--includedi |
--included |
--include \
1012 |
--includ |
--inclu |
--incl |
--inc)
1013 ac_prev
=includedir
;;
1014 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1015 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1016 includedir
=$ac_optarg ;;
1018 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1020 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1021 infodir
=$ac_optarg ;;
1023 -libdir |
--libdir |
--libdi |
--libd)
1025 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1026 libdir
=$ac_optarg ;;
1028 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1029 |
--libexe |
--libex |
--libe)
1030 ac_prev
=libexecdir
;;
1031 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1032 |
--libexe=* |
--libex=* |
--libe=*)
1033 libexecdir
=$ac_optarg ;;
1035 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1036 ac_prev
=localedir
;;
1037 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1038 localedir
=$ac_optarg ;;
1040 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1041 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1042 ac_prev
=localstatedir
;;
1043 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1044 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1045 localstatedir
=$ac_optarg ;;
1047 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1049 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1050 mandir
=$ac_optarg ;;
1052 -nfp |
--nfp |
--nf)
1053 # Obsolete; use --without-fp.
1056 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1057 |
--no-cr |
--no-c |
-n)
1060 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1061 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1064 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1065 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1066 |
--oldin |
--oldi |
--old |
--ol |
--o)
1067 ac_prev
=oldincludedir
;;
1068 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1069 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1070 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1071 oldincludedir
=$ac_optarg ;;
1073 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1075 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1076 prefix
=$ac_optarg ;;
1078 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1079 |
--program-pre |
--program-pr |
--program-p)
1080 ac_prev
=program_prefix
;;
1081 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1082 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1083 program_prefix
=$ac_optarg ;;
1085 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1086 |
--program-suf |
--program-su |
--program-s)
1087 ac_prev
=program_suffix
;;
1088 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1089 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1090 program_suffix
=$ac_optarg ;;
1092 -program-transform-name |
--program-transform-name \
1093 |
--program-transform-nam |
--program-transform-na \
1094 |
--program-transform-n |
--program-transform- \
1095 |
--program-transform |
--program-transfor \
1096 |
--program-transfo |
--program-transf \
1097 |
--program-trans |
--program-tran \
1098 |
--progr-tra |
--program-tr |
--program-t)
1099 ac_prev
=program_transform_name
;;
1100 -program-transform-name=* |
--program-transform-name=* \
1101 |
--program-transform-nam=* |
--program-transform-na=* \
1102 |
--program-transform-n=* |
--program-transform-=* \
1103 |
--program-transform=* |
--program-transfor=* \
1104 |
--program-transfo=* |
--program-transf=* \
1105 |
--program-trans=* |
--program-tran=* \
1106 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1107 program_transform_name
=$ac_optarg ;;
1109 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1111 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1112 pdfdir
=$ac_optarg ;;
1114 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1116 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1119 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1120 |
-silent |
--silent |
--silen |
--sile |
--sil)
1123 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1125 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1127 sbindir
=$ac_optarg ;;
1129 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1130 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1131 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1133 ac_prev
=sharedstatedir
;;
1134 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1135 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1136 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1138 sharedstatedir
=$ac_optarg ;;
1140 -site |
--site |
--sit)
1142 -site=* |
--site=* |
--sit=*)
1145 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1147 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1148 srcdir
=$ac_optarg ;;
1150 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1151 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1152 ac_prev
=sysconfdir
;;
1153 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1154 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1155 sysconfdir
=$ac_optarg ;;
1157 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1158 ac_prev
=target_alias
;;
1159 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1160 target_alias
=$ac_optarg ;;
1162 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1165 -version |
--version |
--versio |
--versi |
--vers |
-V)
1166 ac_init_version
=: ;;
1169 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1172 as_fn_error
"invalid package name: $ac_useropt"
1173 ac_useropt_orig
=$ac_useropt
1174 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1179 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep
=', ';;
1182 eval with_
$ac_useropt=\
$ac_optarg ;;
1184 -without-* |
--without-*)
1185 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1188 as_fn_error
"invalid package name: $ac_useropt"
1189 ac_useropt_orig
=$ac_useropt
1190 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1195 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep
=', ';;
1198 eval with_
$ac_useropt=no
;;
1201 # Obsolete; use --with-x.
1204 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1205 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1206 ac_prev
=x_includes
;;
1207 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1208 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1209 x_includes
=$ac_optarg ;;
1211 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1212 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1213 ac_prev
=x_libraries
;;
1214 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1215 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1216 x_libraries
=$ac_optarg ;;
1218 -*) as_fn_error
"unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information."
1223 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1227 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1229 eval $ac_envvar=\
$ac_optarg
1230 export $ac_envvar ;;
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1243 if test -n "$ac_prev"; then
1244 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error
"missing argument to $ac_option"
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1251 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 # Check all directory arguments for consistency.
1257 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1262 eval ac_val
=\$
$ac_var
1263 # Remove trailing slashes.
1266 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\
$ac_val;;
1269 # Be sure to have absolute directory names.
1271 [\\/$
]* | ?
:[\\/]* ) continue;;
1272 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1274 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1282 target
=$target_alias
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x
; then
1286 if test "x$build_alias" = x
; then
1287 cross_compiling
=maybe
1288 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used." >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1296 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1298 test "$silent" = yes && exec 6>/dev
/null
1301 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di
=`ls -di .` &&
1303 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error
"working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error
"pwd does not report name of working directory"
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted
=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir
=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1341 ac_srcdir_defaulted
=no
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1345 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1347 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1359 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 for ac_var
in $ac_precious_vars; do
1362 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1364 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1375 \`configure' configures this package to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1438 --x-includes=DIR X include files are
in DIR
1439 --x-libraries=DIR X library files are
in DIR
1442 --build=BUILD configure
for building on BUILD
[guessed
]
1443 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1444 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1448 if test -n "$ac_init_help"; then
1453 --disable-option-checking ignore unrecognized
--enable/--with options
1454 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1455 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1456 --enable-maintainer-mode enable make rules and dependencies not useful
1457 (and sometimes confusing
) to the casual installer
1458 --enable-plugins Enable support
for plugins
(defaults no
)
1459 --disable-largefile omit support
for large files
1460 --enable-targets=TARGETS
1461 alternative target configurations
1462 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1463 --disable-gdbcli disable command-line interface
(CLI
)
1464 --disable-gdbmi disable machine-interface
(MI
)
1465 --enable-tui enable full-screen terminal user interface
(TUI
)
1466 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1467 --enable-profiling enable profiling of GDB
1468 --disable-rpath do not hardcode runtime library paths
1469 --enable-werror treat compile warnings as errors
1470 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1471 --enable-gdb-build-warnings
1472 enable GDB specific build-time compiler warnings
if
1474 --enable-sim link gdb with simulator
1475 --enable-multi-ice build the multi-ice-gdb-server
1476 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1480 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1481 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1482 --with-separate-debug-dir=PATH
1483 look for global separate debug info
in this path
1485 --with-gdb-datadir=PATH
look for global separate data files
in this path
1487 --with-relocated-sources=PATH
1488 automatically relocate this path
for source files
1489 --with-auto-load-dir=PATH
1490 directories from
which to load auto-loaded scripts
,
1491 use
'$ddir' for -data-directory [$ddir/auto-load
]
1492 --with-auto-load-safe-path=PATH
1493 directories safe to hold auto-loaded files
, use
1494 $ddir for --with-gdb-datadir path
1495 [--with-auto-load-dir]
1496 --without-auto-load-safe-path
1497 do not restrict auto-loaded files locations
1498 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1499 --with-curses use the curses library instead of the termcap
1501 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1502 --with-bugurl=URL Direct users to URL to report a bug
1503 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1504 --with-libiconv-prefix=DIR
1505 search
for libiconv
in DIR
/include and DIR
/lib
1506 --with-iconv-bin=PATH specify where to
find the
iconv program
1507 --with-system-readline use installed readline library
1508 --with-jit-reader-dir=PATH
1509 directory to load the JIT readers from
1510 --with-expat include expat support
(auto
/yes
/no
)
1511 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1512 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1513 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1514 --with-python[=PYTHON] include python support
1515 (auto/yes/no/<python-program>)
1516 --without-included-regex
1517 don't use included regex
; this is the default on
1518 systems with version
2 of the GNU C library
(use
1519 with caution on other system
)
1520 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1521 --with-system-gdbinit=PATH
1522 automatically load a system-wide gdbinit
file
1523 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1524 --with-tk directory containing tk configuration
(tkConfig.sh
)
1525 --with-x use the X Window System
1527 Some influential environment variables
:
1528 CC C compiler
command
1529 CFLAGS C compiler flags
1530 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1531 nonstandard directory
<lib dir
>
1532 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1533 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1534 you have headers
in a nonstandard directory
<include dir
>
1536 MAKEINFO Parent configure detects
if it is of sufficient version.
1538 Parameters
for MAKEINFO.
1539 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1540 the first program found out of: `bison
-y', `byacc', `yacc'.
1541 YFLAGS The list of arguments that will be passed by default to $YACC.
1542 This script will default YFLAGS to the empty string to avoid a
1543 default value of `-d' given by some make applications.
1544 XMKMF Path to xmkmf, Makefile generator for X Window System
1546 Use these variables to override the choices made by `configure' or to
help
1547 it to
find libraries and programs with nonstandard names
/locations.
1549 Report bugs to the package provider.
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1563 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1565 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1570 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1573 ac_abs_top_builddir
=$ac_pwd
1574 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir
=$ac_top_build_prefix
1579 .
) # We are building in place.
1581 ac_top_srcdir
=$ac_top_builddir_sub
1582 ac_abs_top_srcdir
=$ac_pwd ;;
1583 [\\/]* | ?
:[\\/]* ) # Absolute name.
1584 ac_srcdir
=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir
=$srcdir
1586 ac_abs_top_srcdir
=$srcdir ;;
1588 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1592 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1613 generated by GNU Autoconf
2.64
1615 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1616 This configure
script is free software
; the Free Software Foundation
1617 gives unlimited permission to copy
, distribute and modify it.
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile
()
1631 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1632 rm -f conftest.
$ac_objext
1633 if { { ac_try
="$ac_compile"
1635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1662 } # ac_fn_c_try_compile
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1673 *) ac_try_echo
=$ac_try;;
1675 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679 if test -s conftest.err
; then
1680 grep -v '^ *+' conftest.err
>conftest.er1
1681 cat conftest.er1
>&5
1682 mv -f conftest.er1 conftest.err
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } >/dev
/null
&& {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.
$ac_ext >&5
1696 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1701 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1704 # the include files in INCLUDES and setting the cache variable VAR
1706 ac_fn_c_check_header_mongrel
()
1708 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1709 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1713 $as_echo_n "(cached) " >&6
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1719 # Is the header compilable?
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1721 $as_echo_n "checking $2 usability... " >&6; }
1722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1727 if ac_fn_c_try_compile
"$LINENO"; then :
1728 ac_header_compiler
=yes
1730 ac_header_compiler
=no
1732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1734 $as_echo "$ac_header_compiler" >&6; }
1736 # Is the header present?
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1738 $as_echo_n "checking $2 presence... " >&6; }
1739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1743 if ac_fn_c_try_cpp
"$LINENO"; then :
1744 ac_header_preproc
=yes
1746 ac_header_preproc
=no
1748 rm -f conftest.err conftest.
$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1750 $as_echo "$ac_header_preproc" >&6; }
1752 # So? What about this header?
1753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1756 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1762 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1764 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1766 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1768 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1770 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
1778 eval "$3=\$ac_header_compiler"
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1786 } # ac_fn_c_check_header_mongrel
1788 # ac_fn_c_try_run LINENO
1789 # ----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1791 # that executables *can* be run.
1794 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1795 if { { ac_try
="$ac_link"
1797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>&5
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1806 { { case "(($ac_try" in
1807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1808 *) ac_try_echo
=$ac_try;;
1810 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_try") 2>&5
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; }; }; then :
1818 $as_echo "$as_me: program exited with status $ac_status" >&5
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.
$ac_ext >&5
1822 ac_retval
=$ac_status
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1830 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists and can be compiled using the include files in
1833 # INCLUDES, setting the cache variable VAR accordingly.
1834 ac_fn_c_check_header_compile
()
1836 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1840 $as_echo_n "(cached) " >&6
1842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1847 if ac_fn_c_try_compile
"$LINENO"; then :
1852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1859 } # ac_fn_c_check_header_compile
1861 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1862 # --------------------------------------------
1863 # Tries to find the compile-time value of EXPR in a program that includes
1864 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1866 ac_fn_c_compute_int
()
1868 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1869 if test "$cross_compiling" = yes; then
1870 # Depending upon the size, compute the lo and hi bounds.
1871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1877 static int test_array [1 - 2 * !(($2) >= 0)];
1884 if ac_fn_c_try_compile
"$LINENO"; then :
1887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1893 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1900 if ac_fn_c_try_compile
"$LINENO"; then :
1901 ac_hi
=$ac_mid; break
1903 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1904 if test $ac_lo -le $ac_mid; then
1908 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1919 static int test_array [1 - 2 * !(($2) < 0)];
1926 if ac_fn_c_try_compile
"$LINENO"; then :
1929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1935 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1942 if ac_fn_c_try_compile
"$LINENO"; then :
1943 ac_lo
=$ac_mid; break
1945 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1946 if test $ac_mid -le $ac_hi; then
1950 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1960 # Binary search between lo and hi bounds.
1961 while test "x$ac_lo" != "x$ac_hi"; do
1962 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
1963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1969 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1976 if ac_fn_c_try_compile
"$LINENO"; then :
1979 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
1981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1984 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
1988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1991 static long int longval () { return $2; }
1992 static unsigned long int ulongval () { return $2; }
1999 FILE *f = fopen ("conftest.val", "w");
2004 long int i = longval ();
2007 fprintf (f, "%ld", i);
2011 unsigned long int i = ulongval ();
2014 fprintf (f, "%lu", i);
2016 /* Do not output a trailing newline, as this causes \r\n confusion
2017 on some platforms. */
2018 return ferror (f) || fclose (f) != 0;
2024 if ac_fn_c_try_run
"$LINENO"; then :
2025 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2029 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2030 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2034 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2037 } # ac_fn_c_compute_int
2039 # ac_fn_c_try_link LINENO
2040 # -----------------------
2041 # Try to link conftest.$ac_ext, and return whether this succeeded.
2044 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2045 rm -f conftest.
$ac_objext conftest
$ac_exeext
2046 if { { ac_try
="$ac_link"
2048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_link") 2>conftest.err
2055 if test -s conftest.err; then
2056 grep -v '^ *+' conftest.err >conftest.er1
2057 cat conftest.er1 >&5
2058 mv -f conftest.er1 conftest.err
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } && {
2062 test -z "$ac_c_werror_flag" ||
2063 test ! -s conftest.err
2064 } && test -s conftest$ac_exeext && {
2065 test "$cross_compiling" = yes ||
2066 $as_test_x conftest$ac_exeext
2070 $as_echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2075 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2076 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2077 # interfere with the next link command; also delete a directory that is
2078 # left behind by Apple's compiler. We do this before executing the actions.
2079 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2080 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2083 } # ac_fn_c_try_link
2085 # ac_fn_c_check_func LINENO FUNC VAR
2086 # ----------------------------------
2087 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2088 ac_fn_c_check_func ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2094 $as_echo_n "(cached) " >&6
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2098 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2100 #define $2 innocuous_$2
2102 /* System header to define __stub macros and hopefully few prototypes,
2103 which can conflict with char $2 (); below.
2104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2105 <limits.h> exists even on freestanding compilers. */
2108 # include <limits.h>
2110 # include <assert.h>
2115 /* Override any GCC internal prototype to avoid an error.
2116 Use char because int might match the return type of a GCC
2117 builtin and then its argument prototype would still apply. */
2122 /* The GNU C library defines this for functions which it implements
2123 to always fail with ENOSYS. Some functions are actually named
2124 something starting with __ and the normal name is an alias. */
2125 #if defined __stub_$2 || defined __stub___$2
2137 if ac_fn_c_try_link "$LINENO"; then :
2142 rm -f core conftest.err conftest.$ac_objext \
2143 conftest$ac_exeext conftest.$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2148 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150 } # ac_fn_c_check_func
2152 # ac_fn_c_check_decl LINENO SYMBOL VAR
2153 # ------------------------------------
2154 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2155 ac_fn_c_check_decl ()
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2159 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2161 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2162 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2163 $as_echo_n "(cached) " >&6
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2171 #ifndef $as_decl_name
2173 (void) $as_decl_use;
2175 (void) $as_decl_name;
2183 if ac_fn_c_try_compile "$LINENO"; then :
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192 $as_echo "$ac_res" >&6; }
2193 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 } # ac_fn_c_check_decl
2197 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2198 # ----------------------------------------------------
2199 # Tries to find if the field MEMBER exists in type AGGR, after including
2200 # INCLUDES, setting cache variable VAR accordingly.
2201 ac_fn_c_check_member ()
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2205 $as_echo_n "checking for $2.$3... " >&6; }
2206 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2207 $as_echo_n "(cached) " >&6
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2222 if ac_fn_c_try_compile "$LINENO"; then :
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2232 if (sizeof ac_aggr.$3)
2238 if ac_fn_c_try_compile "$LINENO"; then :
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249 $as_echo "$ac_res" >&6; }
2250 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2252 } # ac_fn_c_check_member
2254 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2255 # -------------------------------------------
2256 # Tests whether TYPE exists after having included INCLUDES, setting cache
2257 # variable VAR accordingly.
2258 ac_fn_c_check_type ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2262 $as_echo_n "checking for $2... " >&6; }
2263 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2264 $as_echo_n "(cached) " >&6
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2292 if ac_fn_c_try_compile "$LINENO"; then :
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2306 } # ac_fn_c_check_type
2307 cat >config.log <<_ACEOF
2308 This file contains any messages produced by compilers while
2309 running configure, to aid debugging if configure makes a mistake.
2311 It was created by $as_me, which was
2312 generated by GNU Autoconf 2.64. Invocation command line was
2324 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2325 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2326 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2327 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2328 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2330 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2331 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2333 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2334 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2335 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2336 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2337 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2338 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2339 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 $as_echo "PATH: $as_dir"
2364 # Keep a trace of the command line.
2365 # Strip out --no-create and --no-recursion so they do not pile up.
2366 # Strip out --silent because we don't want to record it for future runs.
2367 # Also quote any args containing shell meta-characters.
2368 # Make two passes to allow for proper duplicate-argument suppression.
2372 ac_must_keep_next=false
2378 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380 | -silent | --silent | --silen | --sile | --sil)
2383 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2386 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2388 as_fn_append ac_configure_args1 " '$ac_arg'"
2389 if test $ac_must_keep_next = true; then
2390 ac_must_keep_next=false # Got value, back to normal.
2393 *=* | --config-cache | -C | -disable-* | --disable-* \
2394 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396 | -with-* | --with-* | -without-* | --without-* | --x)
2397 case "$ac_configure_args0 " in
2398 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2401 -* ) ac_must_keep_next=true ;;
2404 as_fn_append ac_configure_args " '$ac_arg'"
2409 { ac_configure_args0=; unset ac_configure_args0;}
2410 { ac_configure_args1=; unset ac_configure_args1;}
2412 # When interrupted or exit'd, cleanup temporary files, and complete
2413 # config.log. We remove comments because anyway the quotes in there
2414 # would cause problems or look ugly.
2415 # WARNING: Use '\'' to represent an apostrophe within the trap.
2416 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2417 trap 'exit_status=$?
2418 # Save into config.log some information that might help in debugging.
2423 ## ---------------- ##
2424 ## Cache variables. ##
2425 ## ---------------- ##
2428 # The following way of writing the cache mishandles newlines in values,
2430 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2431 eval ac_val=\$$ac_var
2435 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2436 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2439 _ | IFS | as_nl) ;; #(
2440 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2441 *) { eval $ac_var=; unset $ac_var;} ;;
2446 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2447 *${as_nl}ac_space=\ *)
2449 "s/'\''/'\''\\\\'\'''\''/g;
2450 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2453 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2461 ## ----------------- ##
2462 ## Output variables. ##
2463 ## ----------------- ##
2466 for ac_var in $ac_subst_vars
2468 eval ac_val=\$$ac_var
2470 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2472 $as_echo "$ac_var='\''$ac_val'\''"
2476 if test -n "$ac_subst_files"; then
2478 ## ------------------- ##
2479 ## File substitutions. ##
2480 ## ------------------- ##
2483 for ac_var in $ac_subst_files
2485 eval ac_val=\$$ac_var
2487 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2489 $as_echo "$ac_var='\''$ac_val'\''"
2494 if test -s confdefs.h; then
2504 test "$ac_signal" != 0 &&
2505 $as_echo "$as_me: caught signal $ac_signal"
2506 $as_echo "$as_me: exit $exit_status"
2508 rm -f core *.core core.conftest.* &&
2509 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2512 for ac_signal in 1 2 13 15; do
2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2517 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2518 rm -f -r conftest* confdefs.h
2520 $as_echo "/* confdefs.h */" > confdefs.h
2522 # Predefined preprocessor variables.
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_NAME "$PACKAGE_NAME"
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_STRING "$PACKAGE_STRING"
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_URL "$PACKAGE_URL"
2549 # Let the site file select an alternate cache file if it wants to.
2550 # Prefer an explicitly selected file to automatically selected ones.
2553 if test -n "$CONFIG_SITE"; then
2554 ac_site_file1=$CONFIG_SITE
2555 elif test "x$prefix" != xNONE; then
2556 ac_site_file1=$prefix/share/config.site
2557 ac_site_file2=$prefix/etc/config.site
2559 ac_site_file1=$ac_default_prefix/share/config.site
2560 ac_site_file2=$ac_default_prefix/etc/config.site
2562 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2564 test "x$ac_site_file" = xNONE && continue
2565 if test -r "$ac_site_file"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2567 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2568 sed 's/^/| /' "$ac_site_file" >&5
2573 if test -r "$cache_file"; then
2574 # Some versions of bash will fail to source /dev/null (special
2575 # files actually), so we avoid doing that.
2576 if test -f "$cache_file"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2578 $as_echo "$as_me: loading cache $cache_file" >&6;}
2580 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2581 *) . "./$cache_file";;
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2586 $as_echo "$as_me: creating cache $cache_file" >&6;}
2590 # Check that the precious variables saved in the cache have kept the same
2592 ac_cache_corrupted=false
2593 for ac_var in $ac_precious_vars; do
2594 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2595 eval ac_new_set=\$ac_env_${ac_var}_set
2596 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2597 eval ac_new_val=\$ac_env_${ac_var}_value
2598 case $ac_old_set,$ac_new_set in
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2601 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2602 ac_cache_corrupted=: ;;
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2605 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2609 if test "x$ac_old_val" != "x$ac_new_val"; then
2610 # differences in whitespace do not lead to failure.
2611 ac_old_val_w=`echo x
$ac_old_val`
2612 ac_new_val_w=`echo x
$ac_new_val`
2613 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2615 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2616 ac_cache_corrupted=:
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2619 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2620 eval $ac_var=\$ac_old_val
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2623 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2625 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2628 # Pass precious variables to config.status.
2629 if test "$ac_new_set" = set; then
2631 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2632 *) ac_arg=$ac_var=$ac_new_val ;;
2634 case " $ac_configure_args " in
2635 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2636 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2640 if $ac_cache_corrupted; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2644 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2645 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2647 ## -------------------- ##
2648 ## Main body of script. ##
2649 ## -------------------- ##
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661 ac_config_headers="$ac_config_headers config.h:config.in"
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2665 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2666 # Check whether --enable-maintainer-mode was given.
2667 if test "${enable_maintainer_mode+set}" = set; then :
2668 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2670 USE_MAINTAINER_MODE=no
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2674 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2675 if test $USE_MAINTAINER_MODE = yes; then
2676 MAINTAINER_MODE_TRUE=
2677 MAINTAINER_MODE_FALSE='#'
2679 MAINTAINER_MODE_TRUE='#'
2680 MAINTAINER_MODE_FALSE=
2683 MAINT=$MAINTAINER_MODE_TRUE
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692 if test -n "$ac_tool_prefix"; then
2693 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2694 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if test "${ac_cv_prog_CC+set}" = set; then :
2698 $as_echo_n "(cached) " >&6
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 if test -n "$CC"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2723 $as_echo "$CC" >&6; }
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2731 if test -z "$ac_cv_prog_CC"; then
2733 # Extract the first word of "gcc", so it can be a program name with args.
2734 set dummy gcc; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2738 $as_echo_n "(cached) " >&6
2740 if test -n "$ac_ct_CC"; then
2741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 ac_cv_prog_ac_ct_CC="gcc"
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2761 if test -n "$ac_ct_CC"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2763 $as_echo "$ac_ct_CC" >&6; }
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2769 if test "x$ac_ct_CC" = x; then
2772 case $cross_compiling:$ac_tool_warned in
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2776 ac_tool_warned=yes ;;
2784 if test -z "$CC"; then
2785 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}cc; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if test "${ac_cv_prog_CC+set}" = set; then :
2791 $as_echo_n "(cached) " >&6
2793 if test -n "$CC"; then
2794 ac_cv_prog_CC="$CC" # Let the user override the test.
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CC="${ac_tool_prefix}cc"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 if test -n "$CC"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816 $as_echo "$CC" >&6; }
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2825 if test -z "$CC"; then
2826 # Extract the first word of "cc", so it can be a program name with args.
2827 set dummy cc; ac_word=$2
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if test "${ac_cv_prog_CC+set}" = set; then :
2831 $as_echo_n "(cached) " >&6
2833 if test -n "$CC"; then
2834 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2845 ac_prog_rejected=yes
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 if test $ac_prog_rejected = yes; then
2857 # We found a bogon in the path, so make sure we never use it.
2858 set dummy $ac_cv_prog_CC
2860 if test $# != 0; then
2861 # We chose a different compiler from the bogus one.
2862 # However, it has the same basename, so the bogon will be chosen
2863 # first if we set CC to just the basename; use the full file name.
2865 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2871 if test -n "$CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 $as_echo "$CC" >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2881 if test -z "$CC"; then
2882 if test -n "$ac_tool_prefix"; then
2883 for ac_prog in cl.exe
2885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_CC+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 if test -n "$CC"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915 $as_echo "$CC" >&6; }
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2922 test -n "$CC" && break
2925 if test -z "$CC"; then
2927 for ac_prog in cl.exe
2929 # Extract the first word of "$ac_prog", so it can be a program name with args.
2930 set dummy $ac_prog; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2934 $as_echo_n "(cached) " >&6
2936 if test -n "$ac_ct_CC"; then
2937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_ac_ct_CC="$ac_prog"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957 if test -n "$ac_ct_CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2959 $as_echo "$ac_ct_CC" >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2966 test -n "$ac_ct_CC" && break
2969 if test "x$ac_ct_CC" = x; then
2972 case $cross_compiling:$ac_tool_warned in
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 ac_tool_warned=yes ;;
2985 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987 as_fn_error "no acceptable C compiler found
in \
$PATH
2988 See \
`config.log' for more details." "$LINENO" 5; }
2990 # Provide some information about the compiler.
2991 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2994 for ac_option in --version -v -V -qversion; do
2995 { { ac_try="$ac_compiler $ac_option >&5"
2997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2998 *) ac_try_echo
=$ac_try;;
3000 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001 $as_echo "$ac_try_echo"; } >&5
3002 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3004 if test -s conftest.err
; then
3006 ... rest of stderr output deleted ...
3007 10q' conftest.err
>conftest.er1
3008 cat conftest.er1
>&5
3009 rm -f conftest.er1 conftest.err
3011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012 test $ac_status = 0; }
3015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3026 ac_clean_files_save
=$ac_clean_files
3027 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3028 # Try to create an executable without -o first, disregard a.out.
3029 # It will help us diagnose broken compilers, and finding out an intuition
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3032 $as_echo_n "checking for C compiler default output file name... " >&6; }
3033 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3035 # The possible output files:
3036 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3039 for ac_file
in $ac_files
3042 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3043 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3048 if { { ac_try
="$ac_link_default"
3050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_link_default") 2>&5
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }; then :
3059 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3060 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3061 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3062 # so that the user can short-circuit this test for compilers unknown to
3064 for ac_file in $ac_files ''
3066 test -f "$ac_file" || continue
3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3071 # We found the default executable, but exeext='' is most
3075 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3077 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3079 # We set ac_cv_exeext here because the later test for it is not
3080 # safe: cross compilers may not add the suffix if given an `-o'
3081 # argument, so we may need to know it at that point already.
3082 # Even if this section looks crufty: it has the advantage of
3089 test "$ac_cv_exeext" = no && ac_cv_exeext=
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3095 $as_echo "$ac_file" >&6; }
3096 if test -z "$ac_file"; then :
3097 $as_echo "$as_me: failed program was:" >&5
3098 sed 's
/^
/|
/' conftest.$ac_ext >&5
3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3102 { as_fn_set_status 77
3103 as_fn_error "C compiler cannot create executables
3104 See \`config.log
' for more details." "$LINENO" 5; }; }
3106 ac_exeext=$ac_cv_exeext
3108 # Check that the compiler produces executables we can run. If not, either
3109 # the compiler is broken, or we cross compile.
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3111 $as_echo_n "checking whether the C compiler works... " >&6; }
3112 # If not cross compiling, check that we can run a simple program.
3113 if test "$cross_compiling" != yes; then
3114 if { ac_try='.
/$ac_file'
3115 { { case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120 $as_echo "$ac_try_echo"; } >&5
3121 (eval "$ac_try") 2>&5
3123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124 test $ac_status = 0; }; }; then
3127 if test "$cross_compiling" = maybe; then
3130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3132 as_fn_error "cannot run C compiled programs.
3133 If you meant to cross compile, use \`--host'.
3134 See \`config.log' for more details.
" "$LINENO" 5; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3139 $as_echo "yes" >&6; }
3141 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3142 ac_clean_files=$ac_clean_files_save
3143 # Check that the compiler produces executables we can run. If not, either
3144 # the compiler is broken, or we cross compile.
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3146 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3148 $as_echo "$cross_compiling" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3151 $as_echo_n "checking
for suffix of executables...
" >&6; }
3152 if { { ac_try="$ac_link"
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 $as_echo "$ac_try_echo"; } >&5
3159 (eval "$ac_link") 2>&5
3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3162 test $ac_status = 0; }; then :
3163 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3164 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3165 # work properly (i.e., refer to `conftest.exe'), while it won't with
3167 for ac_file in conftest.exe conftest conftest.*; do
3168 test -f "$ac_file" || continue
3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3171 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error "cannot compute suffix of executables: cannot compile and link
3180 See \`config.log' for more details.
" "$LINENO" 5; }
3182 rm -f conftest$ac_cv_exeext
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3184 $as_echo "$ac_cv_exeext" >&6; }
3186 rm -f conftest.$ac_ext
3187 EXEEXT=$ac_cv_exeext
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3190 $as_echo_n "checking
for suffix of object files...
" >&6; }
3191 if test "${ac_cv_objext+set}" = set; then :
3192 $as_echo_n "(cached
) " >&6
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3205 rm -f conftest.o conftest.obj
3206 if { { ac_try="$ac_compile"
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3211 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_compile") 2>&5
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3216 test $ac_status = 0; }; then :
3217 for ac_file in conftest.o conftest.obj conftest.*; do
3218 test -f "$ac_file" || continue;
3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3221 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3226 $as_echo "$as_me: failed program was
:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error "cannot compute suffix of object files: cannot compile
3232 See \`config.log' for more details.
" "$LINENO" 5; }
3234 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3237 $as_echo "$ac_cv_objext" >&6; }
3238 OBJEXT=$ac_cv_objext
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3241 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3242 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3243 $as_echo_n "(cached
) " >&6
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3259 if ac_fn_c_try_compile "$LINENO"; then :
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3269 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3270 if test $ac_compiler_gnu = yes; then
3275 ac_test_CFLAGS=${CFLAGS+set}
3276 ac_save_CFLAGS=$CFLAGS
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3278 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3279 if test "${ac_cv_prog_cc_g+set}" = set; then :
3280 $as_echo_n "(cached
) " >&6
3282 ac_save_c_werror_flag=$ac_c_werror_flag
3283 ac_c_werror_flag=yes
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h. */
3297 if ac_fn_c_try_compile "$LINENO"; then :
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3312 if ac_fn_c_try_compile "$LINENO"; then :
3315 ac_c_werror_flag=$ac_save_c_werror_flag
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3328 if ac_fn_c_try_compile "$LINENO"; then :
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 ac_c_werror_flag=$ac_save_c_werror_flag
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3339 $as_echo "$ac_cv_prog_cc_g" >&6; }
3340 if test "$ac_test_CFLAGS" = set; then
3341 CFLAGS=$ac_save_CFLAGS
3342 elif test $ac_cv_prog_cc_g = yes; then
3343 if test "$GCC" = yes; then
3349 if test "$GCC" = yes; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3356 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3357 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3358 $as_echo_n "(cached
) " >&6
3360 ac_cv_prog_cc_c89=no
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3366 #include <sys/types.h>
3367 #include <sys/stat.h>
3368 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3369 struct buf { int x; };
3370 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3371 static char *e (p, i)
3377 static char *f (char * (*g) (char **, int), char **p, ...)
3382 s = g (p, va_arg (v,int));
3387 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3388 function prototypes and stuff, but not '\xHH' hex character constants.
3389 These don't provoke an error unfortunately, instead are silently treated
3390 as 'x'. The following induces an error, until -std is added to get
3391 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3392 array size at least. It's necessary to write '\x00'==0 to get something
3393 that's true only with -std. */
3394 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3397 inside strings and character constants. */
3399 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3401 int test (int i, double x);
3402 struct s1 {int (*f) (int a);};
3403 struct s2 {int (*f) (double a);};
3404 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3410 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3415 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3416 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3418 CC="$ac_save_CC $ac_arg"
3419 if ac_fn_c_try_compile "$LINENO"; then :
3420 ac_cv_prog_cc_c89=$ac_arg
3422 rm -f core conftest.err conftest.$ac_objext
3423 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3425 rm -f conftest.$ac_ext
3430 case "x
$ac_cv_prog_cc_c89" in
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3433 $as_echo "none needed
" >&6; } ;;
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3436 $as_echo "unsupported
" >&6; } ;;
3438 CC="$CC $ac_cv_prog_cc_c89"
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3440 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3442 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3447 ac_cpp='$CPP $CPPFLAGS'
3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3459 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3460 # On Suns, sometimes $CPP names a directory.
3461 if test -n "$CPP" && test -d "$CPP"; then
3464 if test -z "$CPP"; then
3465 if test "${ac_cv_prog_CPP+set}" = set; then :
3466 $as_echo_n "(cached
) " >&6
3468 # Double quotes because CPP needs to be expanded
3469 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3472 for ac_c_preproc_warn_flag in '' yes
3474 # Use a header file that comes with gcc, so configuring glibc
3475 # with a fresh cross-compiler works.
3476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3477 # <limits.h> exists even on freestanding compilers.
3478 # On the NeXT, cc -E runs the code through the compiler's parser,
3479 # not just through cpp. "Syntax error
" is here to catch this case.
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3483 # include <limits.h>
3485 # include <assert.h>
3489 if ac_fn_c_try_cpp "$LINENO"; then :
3492 # Broken: fails on valid input.
3495 rm -f conftest.err conftest.$ac_ext
3497 # OK, works on sane cases. Now check whether nonexistent headers
3498 # can be detected and how.
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3501 #include <ac_nonexistent.h>
3503 if ac_fn_c_try_cpp "$LINENO"; then :
3504 # Broken: success on invalid input.
3507 # Passes both tests.
3511 rm -f conftest.err conftest.$ac_ext
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.err conftest.$ac_ext
3516 if $ac_preproc_ok; then :
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3529 $as_echo "$CPP" >&6; }
3531 for ac_c_preproc_warn_flag in '' yes
3533 # Use a header file that comes with gcc, so configuring glibc
3534 # with a fresh cross-compiler works.
3535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536 # <limits.h> exists even on freestanding compilers.
3537 # On the NeXT, cc -E runs the code through the compiler's parser,
3538 # not just through cpp. "Syntax error
" is here to catch this case.
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3542 # include <limits.h>
3544 # include <assert.h>
3548 if ac_fn_c_try_cpp "$LINENO"; then :
3551 # Broken: fails on valid input.
3554 rm -f conftest.err conftest.$ac_ext
3556 # OK, works on sane cases. Now check whether nonexistent headers
3557 # can be detected and how.
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3560 #include <ac_nonexistent.h>
3562 if ac_fn_c_try_cpp "$LINENO"; then :
3563 # Broken: success on invalid input.
3566 # Passes both tests.
3570 rm -f conftest.err conftest.$ac_ext
3573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3574 rm -f conftest.err conftest.$ac_ext
3575 if $ac_preproc_ok; then :
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3581 See \`config.log' for more details.
" "$LINENO" 5; }
3585 ac_cpp='$CPP $CPPFLAGS'
3586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3592 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3593 if test "${ac_cv_path_GREP+set}" = set; then :
3594 $as_echo_n "(cached
) " >&6
3596 if test -z "$GREP"; then
3597 ac_path_GREP_found=false
3598 # Loop through the user's path and test for each of PROGNAME-LIST
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3603 test -z "$as_dir" && as_dir=.
3604 for ac_prog in grep ggrep; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3607 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3608 # Check for GNU ac_path_GREP and select it if it is found.
3609 # Check for GNU $ac_path_GREP
3610 case `"$ac_path_GREP" --version 2>&1` in
3612 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3615 $as_echo_n 0123456789 >"conftest.
in"
3618 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3619 mv "conftest.tmp
" "conftest.
in"
3620 cp "conftest.
in" "conftest.
nl"
3621 $as_echo 'GREP' >> "conftest.
nl"
3622 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3623 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3624 as_fn_arith $ac_count + 1 && ac_count=$as_val
3625 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3626 # Best one so far, save it but keep looking for a better one
3627 ac_cv_path_GREP="$ac_path_GREP"
3628 ac_path_GREP_max=$ac_count
3630 # 10*(2^10) chars as input seems more than enough
3631 test $ac_count -gt 10 && break
3633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3636 $ac_path_GREP_found && break 3
3641 if test -z "$ac_cv_path_GREP"; then
3642 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3645 ac_cv_path_GREP=$GREP
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3650 $as_echo "$ac_cv_path_GREP" >&6; }
3651 GREP="$ac_cv_path_GREP"
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3655 $as_echo_n "checking
for egrep...
" >&6; }
3656 if test "${ac_cv_path_EGREP+set}" = set; then :
3657 $as_echo_n "(cached
) " >&6
3659 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3660 then ac_cv_path_EGREP="$GREP -E"
3662 if test -z "$EGREP"; then
3663 ac_path_EGREP_found=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3669 test -z "$as_dir" && as_dir=.
3670 for ac_prog in egrep; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3674 # Check for GNU ac_path_EGREP and select it if it is found.
3675 # Check for GNU $ac_path_EGREP
3676 case `"$ac_path_EGREP" --version 2>&1` in
3678 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3681 $as_echo_n 0123456789 >"conftest.
in"
3684 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3685 mv "conftest.tmp
" "conftest.
in"
3686 cp "conftest.
in" "conftest.
nl"
3687 $as_echo 'EGREP' >> "conftest.
nl"
3688 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3689 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3690 as_fn_arith $ac_count + 1 && ac_count=$as_val
3691 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_EGREP="$ac_path_EGREP"
3694 ac_path_EGREP_max=$ac_count
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3702 $ac_path_EGREP_found && break 3
3707 if test -z "$ac_cv_path_EGREP"; then
3708 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3711 ac_cv_path_EGREP=$EGREP
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3717 $as_echo "$ac_cv_path_EGREP" >&6; }
3718 EGREP="$ac_cv_path_EGREP"
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3722 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3723 if test "${ac_cv_header_stdc+set}" = set; then :
3724 $as_echo_n "(cached
) " >&6
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742 ac_cv_header_stdc=yes
3744 ac_cv_header_stdc=no
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 if test $ac_cv_header_stdc = yes; then
3749 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3755 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3756 $EGREP "memchr
" >/dev/null 2>&1; then :
3759 ac_cv_header_stdc=no
3765 if test $ac_cv_header_stdc = yes; then
3766 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3772 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3773 $EGREP "free
" >/dev/null 2>&1; then :
3776 ac_cv_header_stdc=no
3782 if test $ac_cv_header_stdc = yes; then
3783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3784 if test "$cross_compiling" = yes; then :
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3791 #if ((' ' & 0x0FF) == 0x020)
3792 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3793 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3795 # define ISLOWER(c) \
3796 (('a' <= (c) && (c) <= 'i') \
3797 || ('j' <= (c) && (c) <= 'r') \
3798 || ('s' <= (c) && (c) <= 'z'))
3799 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3802 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3807 for (i = 0; i < 256; i++)
3808 if (XOR (islower (i), ISLOWER (i))
3809 || toupper (i) != TOUPPER (i))
3814 if ac_fn_c_try_run "$LINENO"; then :
3817 ac_cv_header_stdc=no
3819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3820 conftest.$ac_objext conftest.beam conftest.$ac_ext
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3826 $as_echo "$ac_cv_header_stdc" >&6; }
3827 if test $ac_cv_header_stdc = yes; then
3829 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3834 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3835 inttypes.h stdint.h unistd.h
3837 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3838 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3840 eval as_val
=\$
$as_ac_Header
3841 if test "x$as_val" = x
""yes; then :
3842 cat >>confdefs.h
<<_ACEOF
3843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3852 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3853 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3860 if test "$MINIX" = yes; then
3862 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3865 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3868 $as_echo "#define _MINIX 1" >>confdefs.h
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3874 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3875 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3881 # define __EXTENSIONS__ 1
3882 $ac_includes_default
3891 if ac_fn_c_try_compile
"$LINENO"; then :
3892 ac_cv_safe_to_define___extensions__
=yes
3894 ac_cv_safe_to_define___extensions__
=no
3896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3899 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3900 test $ac_cv_safe_to_define___extensions__ = yes &&
3901 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3903 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3905 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3907 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3909 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3913 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3914 for ac_t
in install-sh
install.sh shtool
; do
3915 if test -f "$ac_dir/$ac_t"; then
3917 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3922 if test -z "$ac_aux_dir"; then
3923 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3926 # These three variables are undocumented and unsupported,
3927 # and are intended to be withdrawn in a future Autoconf release.
3928 # They can cause serious problems if a builder's source tree is in a directory
3929 # whose full name contains unusual characters.
3930 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3931 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3932 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3935 # Make sure we can run config.sub.
3936 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3937 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3940 $as_echo_n "checking build system type... " >&6; }
3941 if test "${ac_cv_build+set}" = set; then :
3942 $as_echo_n "(cached) " >&6
3944 ac_build_alias
=$build_alias
3945 test "x$ac_build_alias" = x
&&
3946 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3947 test "x$ac_build_alias" = x
&&
3948 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3949 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3950 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3954 $as_echo "$ac_cv_build" >&6; }
3955 case $ac_cv_build in
3957 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3960 ac_save_IFS
=$IFS; IFS
='-'
3966 # Remember, the first character of IFS is used to create $*,
3967 # except with old shells:
3970 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3974 $as_echo_n "checking host system type... " >&6; }
3975 if test "${ac_cv_host+set}" = set; then :
3976 $as_echo_n "(cached) " >&6
3978 if test "x$host_alias" = x
; then
3979 ac_cv_host
=$ac_cv_build
3981 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3982 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3987 $as_echo "$ac_cv_host" >&6; }
3990 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3993 ac_save_IFS
=$IFS; IFS
='-'
3999 # Remember, the first character of IFS is used to create $*,
4000 # except with old shells:
4003 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4007 $as_echo_n "checking target system type... " >&6; }
4008 if test "${ac_cv_target+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
4011 if test "x$target_alias" = x
; then
4012 ac_cv_target
=$ac_cv_host
4014 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4015 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4020 $as_echo "$ac_cv_target" >&6; }
4021 case $ac_cv_target in
4023 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4025 target
=$ac_cv_target
4026 ac_save_IFS
=$IFS; IFS
='-'
4032 # Remember, the first character of IFS is used to create $*,
4033 # except with old shells:
4036 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4039 # The aliases save the names the user supplied, while $host etc.
4040 # will get canonicalized.
4041 test -n "$target_alias" &&
4042 test "$program_prefix$program_suffix$program_transform_name" = \
4044 program_prefix
=${target_alias}-
4046 # The tests for host and target for $enable_largefile require
4051 # As the $enable_largefile decision depends on --enable-plugins we must set it
4052 # even in directories otherwise not depending on the $plugins option.
4055 # Check whether --enable-plugins was given.
4056 if test "${enable_plugins+set}" = set; then :
4057 enableval
=$enable_plugins; case "${enableval}" in
4058 yes |
"") plugins
=yes ;;
4069 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4070 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4071 # are mutually exclusive; and without procfs support, the bfd/ elf module
4072 # cannot provide certain routines such as elfcore_write_prpsinfo
4073 # or elfcore_write_prstatus. So unless the user explicitly requested
4074 # large-file support through the --enable-largefile switch, disable
4075 # large-file support in favor of procfs support.
4076 test "${target}" = "${host}" -a "x$plugins" = xno \
4077 && : ${enable_largefile="no"}
4081 # Check whether --enable-largefile was given.
4082 if test "${enable_largefile+set}" = set; then :
4083 enableval
=$enable_largefile;
4086 if test "$enable_largefile" != no
; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4089 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4090 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4091 $as_echo_n "(cached) " >&6
4093 ac_cv_sys_largefile_CC
=no
4094 if test "$GCC" != yes; then
4097 # IRIX 6.2 and later do not support large files by default,
4098 # so use the C compiler's -n32 option if that helps.
4099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #include <sys/types.h>
4102 /* Check that off_t can represent 2**63 - 1 correctly.
4103 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4104 since some C++ compilers masquerading as C compilers
4105 incorrectly reject 9223372036854775807. */
4106 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4108 && LARGE_OFF_T % 2147483647 == 1)
4118 if ac_fn_c_try_compile
"$LINENO"; then :
4121 rm -f core conftest.err conftest.
$ac_objext
4123 if ac_fn_c_try_compile
"$LINENO"; then :
4124 ac_cv_sys_largefile_CC
=' -n32'; break
4126 rm -f core conftest.err conftest.
$ac_objext
4130 rm -f conftest.
$ac_ext
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4134 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4135 if test "$ac_cv_sys_largefile_CC" != no
; then
4136 CC
=$CC$ac_cv_sys_largefile_CC
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4140 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4141 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147 #include <sys/types.h>
4148 /* Check that off_t can represent 2**63 - 1 correctly.
4149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4150 since some C++ compilers masquerading as C compilers
4151 incorrectly reject 9223372036854775807. */
4152 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4154 && LARGE_OFF_T % 2147483647 == 1)
4164 if ac_fn_c_try_compile
"$LINENO"; then :
4165 ac_cv_sys_file_offset_bits
=no
; break
4167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170 #define _FILE_OFFSET_BITS 64
4171 #include <sys/types.h>
4172 /* Check that off_t can represent 2**63 - 1 correctly.
4173 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4174 since some C++ compilers masquerading as C compilers
4175 incorrectly reject 9223372036854775807. */
4176 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4177 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4178 && LARGE_OFF_T % 2147483647 == 1)
4188 if ac_fn_c_try_compile
"$LINENO"; then :
4189 ac_cv_sys_file_offset_bits
=64; break
4191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4192 ac_cv_sys_file_offset_bits
=unknown
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4197 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4198 case $ac_cv_sys_file_offset_bits in #(
4201 cat >>confdefs.h
<<_ACEOF
4202 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4207 if test $ac_cv_sys_file_offset_bits = unknown
; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4209 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4210 if test "${ac_cv_sys_large_files+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 #include <sys/types.h>
4217 /* Check that off_t can represent 2**63 - 1 correctly.
4218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4219 since some C++ compilers masquerading as C compilers
4220 incorrectly reject 9223372036854775807. */
4221 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4223 && LARGE_OFF_T % 2147483647 == 1)
4233 if ac_fn_c_try_compile
"$LINENO"; then :
4234 ac_cv_sys_large_files
=no
; break
4236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239 #define _LARGE_FILES 1
4240 #include <sys/types.h>
4241 /* Check that off_t can represent 2**63 - 1 correctly.
4242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4243 since some C++ compilers masquerading as C compilers
4244 incorrectly reject 9223372036854775807. */
4245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4247 && LARGE_OFF_T % 2147483647 == 1)
4257 if ac_fn_c_try_compile
"$LINENO"; then :
4258 ac_cv_sys_large_files
=1; break
4260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4261 ac_cv_sys_large_files
=unknown
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4266 $as_echo "$ac_cv_sys_large_files" >&6; }
4267 case $ac_cv_sys_large_files in #(
4270 cat >>confdefs.h
<<_ACEOF
4271 #define _LARGE_FILES $ac_cv_sys_large_files
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4284 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4285 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4288 am_cv_prog_cc_stdc
=no
4290 # Don't try gcc -ansi; that turns off useful extensions and
4291 # breaks some systems' header files.
4292 # AIX -qlanglvl=ansi
4293 # Ultrix and OSF/1 -std1
4294 # HP-UX 10.20 and later -Ae
4295 # HP-UX older versions -Aa -D_HPUX_SOURCE
4296 # SVR4 -Xc -D__EXTENSIONS__
4297 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4299 CC
="$ac_save_CC $ac_arg"
4300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4304 #include <sys/types.h>
4305 #include <sys/stat.h>
4306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4307 struct buf { int x; };
4308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4309 static char *e (p, i)
4315 static char *f (char * (*g) (char **, int), char **p, ...)
4320 s = g (p, va_arg (v,int));
4324 int test (int i, double x);
4325 struct s1 {int (*f) (int a);};
4326 struct s2 {int (*f) (double a);};
4327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4335 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4341 if ac_fn_c_try_compile
"$LINENO"; then :
4342 am_cv_prog_cc_stdc
="$ac_arg"; break
4344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4350 if test -z "$am_cv_prog_cc_stdc"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4352 $as_echo "none needed" >&6; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4355 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4357 case "x$am_cv_prog_cc_stdc" in
4359 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4364 for ac_dir
in ..
"$srcdir"/..
; do
4365 for ac_t
in install-sh
install.sh shtool
; do
4366 if test -f "$ac_dir/$ac_t"; then
4368 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4373 if test -z "$ac_aux_dir"; then
4374 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4377 # These three variables are undocumented and unsupported,
4378 # and are intended to be withdrawn in a future Autoconf release.
4379 # They can cause serious problems if a builder's source tree is in a directory
4380 # whose full name contains unusual characters.
4381 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4382 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4383 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4387 test "$program_prefix" != NONE
&&
4388 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4389 # Use a double $ so make ignores it.
4390 test "$program_suffix" != NONE
&&
4391 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4392 # Double any \ or $.
4393 # By default was `s,x,x', remove it if useless.
4394 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4395 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4398 # Dependency checking.
4399 rm -rf .tst
2>/dev
/null
4400 mkdir .tst
2>/dev
/null
4401 if test -d .tst
; then
4406 rmdir .tst
2>/dev
/null
4408 DEPDIR
="${am__leading_dot}deps"
4410 ac_config_commands
="$ac_config_commands depdir"
4413 depcc
="$CC" am_compiler_list
=
4415 am_depcomp
=$ac_aux_dir/depcomp
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4417 $as_echo_n "checking dependency style of $depcc... " >&6; }
4418 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4421 if test -f "$am_depcomp"; then
4422 # We make a subdir and do the tests there. Otherwise we can end up
4423 # making bogus files that we don't know about and never remove. For
4424 # instance it was reported that on HP-UX the gcc test will end up
4425 # making a dummy file named `D' -- because `-MD' means `put the output
4428 # Copy depcomp to subdir because otherwise we won't find it if we're
4429 # using a relative directory.
4430 cp "$am_depcomp" conftest.dir
4432 # We will build objects and dependencies in a subdirectory because
4433 # it helps to detect inapplicable dependency modes. For instance
4434 # both Tru64's cc and ICC support -MD to output dependencies as a
4435 # side effect of compilation, but ICC will put the dependencies in
4436 # the current directory while Tru64 will put them in the object
4440 am_cv_CC_dependencies_compiler_type
=none
4441 if test "$am_compiler_list" = ""; then
4442 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4444 for depmode
in $am_compiler_list; do
4445 if test $depmode = none
; then break; fi
4447 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4448 # Setup a source with many dependencies, because some compilers
4449 # like to wrap large dependency lists on column 80 (with \), and
4450 # we should not choose a depcomp mode which is confused by this.
4452 # We need to recreate these files for each test, as the compiler may
4453 # overwrite some of them when testing with obscure command lines.
4454 # This happens at least with the AIX C compiler.
4456 for i
in 1 2 3 4 5 6; do
4457 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4458 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4459 # Solaris 8's {/usr,}/bin/sh.
4460 touch sub
/conftst
$i.h
4462 echo "include sub/conftest.Po" > confmf
4464 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4465 # mode. It turns out that the SunPro C++ compiler does not properly
4466 # handle `-M -o', and we need to detect this.
4467 depcmd
="depmode=$depmode \
4468 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4469 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4470 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4471 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4472 if env
$depcmd > conftest.err
2>&1 &&
4473 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4474 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4475 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4476 # icc doesn't choke on unknown options, it will just issue warnings
4477 # or remarks (even with -Werror). So we grep stderr for any message
4478 # that says an option was ignored or not supported.
4479 # When given -MP, icc 7.0 and 7.1 complain thusly:
4480 # icc: Command line warning: ignoring option '-M'; no argument required
4481 # The diagnosis changed in icc 8.0:
4482 # icc: Command line remark: option '-MP' not supported
4483 if (grep 'ignoring option' conftest.err ||
4484 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4485 am_cv_CC_dependencies_compiler_type
=$depmode
4486 $as_echo "$as_me:$LINENO: success" >&5
4490 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4491 sed -e 's/^/| /' < conftest.err
>&5
4497 am_cv_CC_dependencies_compiler_type
=none
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4502 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4503 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4504 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4505 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4510 # Check for the 'make' the user wants to use.
4513 # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy
$ac_prog; ac_word
=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if test "${ac_cv_prog_MAKE+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4520 if test -n "$MAKE"; then
4521 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4527 test -z "$as_dir" && as_dir
=.
4528 for ac_exec_ext
in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 ac_cv_prog_MAKE
="$ac_prog"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 MAKE
=$ac_cv_prog_MAKE
4541 if test -n "$MAKE"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4543 $as_echo "$MAKE" >&6; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4550 test -n "$MAKE" && break
4554 case "`$MAKE --version 2>&1 | sed 1q`" in
4559 if test "$MAKE_IS_GNU" = yes; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4568 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4570 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4571 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4572 $as_echo_n "(cached) " >&6
4574 cat >conftest.
make <<\_ACEOF
4577 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4579 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4580 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4582 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4584 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4588 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4590 $as_echo "yes" >&6; }
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4595 SET_MAKE
="MAKE=${MAKE-make}"
4599 # Configure gnulib. We need to build gnulib under some other
4600 # directory not "gnulib", to avoid the problem of both GDB and
4601 # GDBserver wanting to build it in the same directory, when building
4602 # in the source dir.
4605 in_build
="build-gnulib"
4607 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4608 # so they do not pile up.
4609 ac_sub_configure_args
=
4611 eval "set x $ac_configure_args"
4615 if test -n "$ac_prev"; then
4620 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
4621 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
4622 ac_prev
=cache_file
;;
4623 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
4624 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
4627 --config-cache |
-C)
4629 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
4631 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
4633 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
4635 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
4637 --disable-option-checking)
4641 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4643 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
4647 # Always prepend --prefix to ensure using the same prefix
4648 # in subdir configurations.
4649 ac_arg
="--prefix=$prefix"
4651 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4653 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
4656 if test "$silent" = yes; then
4657 ac_sub_configure_args
="--silent $ac_sub_configure_args"
4660 # Always prepend --disable-option-checking to silence warnings, since
4661 # different subdirs can have different --enable and --with options.
4662 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
4667 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4668 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4669 $as_echo "$ac_msg" >&6
4670 as_dir
="$ac_dir"; as_fn_mkdir_p
4674 ac_srcdir
=$srcdir/$in_src ;;
4676 ac_srcdir
=..
/$srcdir/$in_src ;;
4681 ac_sub_configure
=$ac_srcdir/configure
4683 # Make the cache file name correct relative to the subdirectory.
4685 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
4687 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
4690 { $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
4691 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4692 # The eval makes quoting arguments work.
4693 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4694 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4695 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4711 # If we haven't got the data from the intl directory,
4712 # assume NLS is disabled.
4721 if test -f ..
/intl
/config.intl
; then
4722 . ..
/intl
/config.intl
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4725 $as_echo_n "checking whether NLS is requested... " >&6; }
4726 if test x
"$USE_NLS" != xyes
; then
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4731 $as_echo "yes" >&6; }
4733 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4737 $as_echo_n "checking for catalogs to be installed... " >&6; }
4738 # Look for .po and .gmo files in the source directory.
4741 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4742 # If there aren't any .gmo files the shell will give us the
4743 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4745 case "$cat" in *\
**)
4748 # The quadruple backslash is collapsed to a double backslash
4749 # by the backticks, then collapsed again by the double quotes,
4750 # leaving us with one backslash in the sed expression (right
4751 # before the dot that mustn't act as a wildcard).
4752 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4753 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4754 # The user is allowed to set LINGUAS to a list of languages to
4755 # install catalogs for. If it's empty that means "all of them."
4756 if test "x$LINGUAS" = x
; then
4757 CATALOGS
="$CATALOGS $cat"
4758 XLINGUAS
="$XLINGUAS $lang"
4760 case "$LINGUAS" in *$lang*)
4761 CATALOGS
="$CATALOGS $cat"
4762 XLINGUAS
="$XLINGUAS $lang"
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4769 $as_echo "$LINGUAS" >&6; }
4782 localedir
='${datadir}/locale'
4785 if test x
"$USE_NLS" = xyes
; then
4786 CONFIG_ALL
="$CONFIG_ALL all-po"
4787 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4788 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4789 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4792 GNULIB
=build-gnulib
/import
4794 # For Makefile dependencies.
4796 if test x
"$STDINT_H" != x
; then
4797 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
4803 cat >>confdefs.h
<<_ACEOF
4804 #define PACKAGE "$PACKAGE"
4809 # We never need to detect it in this sub-configure.
4810 # But preserve it for config.status --recheck.
4814 MAKEINFO_EXTRA_FLAGS
=""
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4816 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4817 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4820 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4821 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4822 gdb_cv_have_makeinfo_click
=yes
4824 gdb_cv_have_makeinfo_click
=no
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4828 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4829 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
4830 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4836 # Check whether --with-separate-debug-dir was given.
4837 if test "${with_separate_debug_dir+set}" = set; then :
4838 withval
=$with_separate_debug_dir;
4841 DEBUGDIR
=${libdir}/debug
4845 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4846 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4847 ac_define_dir
=`eval echo $DEBUGDIR`
4848 ac_define_dir
=`eval echo $ac_define_dir`
4850 cat >>confdefs.h
<<_ACEOF
4851 #define DEBUGDIR "$ac_define_dir"
4857 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
4858 if test "x$prefix" = xNONE
; then
4859 test_prefix
=/usr
/local
4864 test_prefix
=$exec_prefix
4867 case ${ac_define_dir} in
4868 "${test_prefix}"|
"${test_prefix}/"*|\
4869 '${exec_prefix}'|
'${exec_prefix}/'*)
4874 cat >>confdefs.h
<<_ACEOF
4875 #define DEBUGDIR_RELOCATABLE $value
4881 # We can't pass paths as command line arguments.
4882 # Mingw32 tries to be clever and will convert the paths for us.
4883 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
4884 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
4885 # This breaks GDB's relocatable path conversions since paths passed in
4886 # config.h would not get so translated, the path prefixes no longer match.
4888 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4889 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4890 ac_define_dir
=`eval echo $bindir`
4891 ac_define_dir
=`eval echo $ac_define_dir`
4893 cat >>confdefs.h
<<_ACEOF
4894 #define BINDIR "$ac_define_dir"
4899 # GDB's datadir relocation
4903 # Check whether --with-gdb-datadir was given.
4904 if test "${with_gdb_datadir+set}" = set; then :
4905 withval
=$with_gdb_datadir;
4906 GDB_DATADIR
=$withval
4908 GDB_DATADIR
=${datadir}/gdb
4912 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4913 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4914 ac_define_dir
=`eval echo $GDB_DATADIR`
4915 ac_define_dir
=`eval echo $ac_define_dir`
4917 cat >>confdefs.h
<<_ACEOF
4918 #define GDB_DATADIR "$ac_define_dir"
4924 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
4925 if test "x$prefix" = xNONE
; then
4926 test_prefix
=/usr
/local
4931 test_prefix
=$exec_prefix
4934 case ${ac_define_dir} in
4935 "${test_prefix}"|
"${test_prefix}/"*|\
4936 '${exec_prefix}'|
'${exec_prefix}/'*)
4941 cat >>confdefs.h
<<_ACEOF
4942 #define GDB_DATADIR_RELOCATABLE $value
4949 # Check whether --with-relocated-sources was given.
4950 if test "${with_relocated_sources+set}" = set; then :
4951 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
4953 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4954 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4955 ac_define_dir
=`eval echo $reloc_srcdir`
4956 ac_define_dir
=`eval echo $ac_define_dir`
4958 cat >>confdefs.h
<<_ACEOF
4959 #define RELOC_SRCDIR "$ac_define_dir"
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
4968 $as_echo_n "checking for default auto-load directory... " >&6; }
4970 # Check whether --with-auto-load-dir was given.
4971 if test "${with_auto_load_dir+set}" = set; then :
4972 withval
=$with_auto_load_dir;
4974 with_auto_load_dir
='$ddir/auto-load'
4977 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]ddir\>/\\\\\\\\\\\\&/g'`
4979 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4980 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4981 ac_define_dir
=`eval echo $escape_dir`
4982 ac_define_dir
=`eval echo $ac_define_dir`
4984 cat >>confdefs.h
<<_ACEOF
4985 #define AUTO_LOAD_DIR "$ac_define_dir"
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
4990 $as_echo "$with_auto_load_dir" >&6; }
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
4993 $as_echo_n "checking for default auto-load safe-path... " >&6; }
4995 # Check whether --with-auto-load-safe-path was given.
4996 if test "${with_auto_load_safe_path+set}" = set; then :
4997 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
4998 with_auto_load_safe_path
="/"
5001 with_auto_load_safe_path
="$with_auto_load_dir"
5004 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]ddir\>/\\\\\\\\\\\\&/g'`
5006 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5007 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5008 ac_define_dir
=`eval echo $escape_dir`
5009 ac_define_dir
=`eval echo $ac_define_dir`
5011 cat >>confdefs.h
<<_ACEOF
5012 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5017 $as_echo "$with_auto_load_safe_path" >&6; }
5021 subdirs
="$subdirs testsuite"
5024 # Check whether to support alternative target configurations
5025 # Check whether --enable-targets was given.
5026 if test "${enable_targets+set}" = set; then :
5027 enableval
=$enable_targets; case "${enableval}" in
5028 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
5030 no
) enable_targets
= ;;
5031 *) enable_targets
=$enableval ;;
5036 # Check whether to enable 64-bit support on 32-bit hosts
5037 # Check whether --enable-64-bit-bfd was given.
5038 if test "${enable_64_bit_bfd+set}" = set; then :
5039 enableval
=$enable_64_bit_bfd; case "${enableval}" in
5042 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5048 # Provide defaults for some variables set by the per-host and per-target
5050 gdb_host_obs
=posix-hdep.o
5052 if test "${target}" = "${host}"; then
5058 .
$srcdir/configure.
host
5060 # Accumulate some settings from configure.tgt over all enabled targets
5065 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5067 if test "$targ_alias" = "all"; then
5070 # Canonicalize the secondary target names.
5071 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5072 if test -n "$result"; then
5078 .
${srcdir}/configure.tgt
5080 if test -z "${gdb_target_obs}"; then :
5081 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
5084 # Target-specific object files
5085 for i
in ${gdb_target_obs}; do
5086 case " $TARGET_OBS " in
5089 TARGET_OBS
="$TARGET_OBS ${i}"
5094 # Check whether this target needs 64-bit CORE_ADDR
5095 if test x
${want64} = xfalse
; then
5096 .
${srcdir}/..
/bfd
/config.bfd
5101 if test x
${all_targets} = xtrue
; then
5103 # We want all 64-bit targets if we either:
5104 # - run on a 64-bit host or
5105 # - already require 64-bit support for some other target or
5106 # - the --enable-64-bit-bfd option was supplied
5107 # Otherwise we only support all 32-bit targets.
5109 # NOTE: This test must be in sync with the corresponding
5112 if test x
${want64} = xfalse
; then
5113 # The cast to long int works around a bug in the HP C Compiler
5114 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5115 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5116 # This bug is HP SR number 8606223364.
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5118 $as_echo_n "checking size of long... " >&6; }
5119 if test "${ac_cv_sizeof_long+set}" = set; then :
5120 $as_echo_n "(cached) " >&6
5122 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5125 if test "$ac_cv_type_long" = yes; then
5126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5128 { as_fn_set_status
77
5129 as_fn_error
"cannot compute sizeof (long)
5130 See \`config.log' for more details." "$LINENO" 5; }; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5138 $as_echo "$ac_cv_sizeof_long" >&6; }
5142 cat >>confdefs.h
<<_ACEOF
5143 #define SIZEOF_LONG $ac_cv_sizeof_long
5147 if test "x${ac_cv_sizeof_long}" = "x8"; then
5151 if test x
${want64} = xtrue
; then
5152 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5154 TARGET_OBS
='$(ALL_TARGET_OBS)'
5160 # For other settings, only the main target counts.
5164 targ
=$target; .
${srcdir}/configure.tgt
5166 # Fetch the default architecture and default target vector from BFD.
5167 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5169 # We only want the first architecture, so strip off the others if
5170 # there is more than one.
5171 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5173 if test "x$targ_archs" != x
; then
5175 cat >>confdefs.h
<<_ACEOF
5176 #define DEFAULT_BFD_ARCH $targ_archs
5180 if test "x$targ_defvec" != x
; then
5182 cat >>confdefs.h
<<_ACEOF
5183 #define DEFAULT_BFD_VEC $targ_defvec
5188 # The CLI cannot be disabled yet, but may be in the future.
5191 # Check whether --enable-gdbcli was given.
5192 if test "${enable_gdbcli+set}" = set; then :
5193 enableval
=$enable_gdbcli; case $enableval in
5197 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5199 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5205 if test x
"$enable_gdbcli" = xyes
; then
5206 if test -d $srcdir/cli
; then
5207 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5208 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5209 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5210 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5215 # Check whether --enable-gdbmi was given.
5216 if test "${enable_gdbmi+set}" = set; then :
5217 enableval
=$enable_gdbmi; case $enableval in
5221 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5227 if test x
"$enable_gdbmi" = xyes
; then
5228 if test -d $srcdir/mi
; then
5229 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5230 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5231 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5232 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5237 # Check whether --enable-tui was given.
5238 if test "${enable_tui+set}" = set; then :
5239 enableval
=$enable_tui; case $enableval in
5243 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5251 # Check whether --enable-gdbtk was given.
5252 if test "${enable_gdbtk+set}" = set; then :
5253 enableval
=$enable_gdbtk; case $enableval in
5257 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5260 if test -d $srcdir/gdbtk
; then
5267 # We unconditionally disable gdbtk tests on selected platforms.
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5271 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5275 # Libunwind support for ia64.
5278 # Check whether --with-libunwind-ia64 was given.
5279 if test "${with_libunwind_ia64+set}" = set; then :
5280 withval
=$with_libunwind_ia64;
5282 with_libunwind_ia64
=auto
5286 # Backward compatibility option.
5287 if test "${with_libunwind+set}" = set; then
5288 if test x
"$with_libunwind_ia64" != xauto
; then
5289 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5292 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5293 with_libunwind_ia64
="$with_libunwind"
5296 case "$with_libunwind_ia64" in
5300 for ac_header
in libunwind-ia64.h
5302 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5303 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5304 cat >>confdefs.h
<<_ACEOF
5305 #define HAVE_LIBUNWIND_IA64_H 1
5312 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
5315 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5319 if test x
"$with_libunwind_ia64" = xyes
; then
5320 for ac_header
in libunwind-ia64.h
5322 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5323 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5324 cat >>confdefs.h
<<_ACEOF
5325 #define HAVE_LIBUNWIND_IA64_H 1
5332 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
5333 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5335 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
5336 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
5337 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
5342 # Check whether --with-curses was given.
5343 if test "${with_curses+set}" = set; then :
5344 withval
=$with_curses; opt_curses
=$withval
5349 if test "$opt_curses" = "yes"; then
5353 # Profiling support.
5354 # Check whether --enable-profiling was given.
5355 if test "${enable_profiling+set}" = set; then :
5356 enableval
=$enable_profiling; case $enableval in
5360 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5367 for ac_func
in monstartup _mcleanup
5369 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5370 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5371 eval as_val
=\$
$as_ac_var
5372 if test "x$as_val" = x
""yes; then :
5373 cat >>confdefs.h
<<_ACEOF
5374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5381 $as_echo_n "checking for _etext... " >&6; }
5382 if test "${ac_cv_var__etext+set}" = set; then :
5383 $as_echo_n "(cached) " >&6
5385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5398 if ac_fn_c_try_link
"$LINENO"; then :
5399 ac_cv_var__etext
=yes
5403 rm -f core conftest.err conftest.
$ac_objext \
5404 conftest
$ac_exeext conftest.
$ac_ext
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5407 $as_echo "$ac_cv_var__etext" >&6; }
5408 if test $ac_cv_var__etext = yes; then
5410 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5414 $as_echo_n "checking for etext... " >&6; }
5415 if test "${ac_cv_var_etext+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
5418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5431 if ac_fn_c_try_link
"$LINENO"; then :
5436 rm -f core conftest.err conftest.
$ac_objext \
5437 conftest
$ac_exeext conftest.
$ac_ext
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5440 $as_echo "$ac_cv_var_etext" >&6; }
5441 if test $ac_cv_var_etext = yes; then
5443 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5446 if test "$enable_profiling" = yes ; then
5447 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
5448 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5451 OLD_CFLAGS
="$CFLAGS"
5452 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5455 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5456 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5457 $as_echo_n "(cached) " >&6
5459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5470 if ac_fn_c_try_compile
"$LINENO"; then :
5471 ac_cv_cc_supports_pg
=yes
5473 ac_cv_cc_supports_pg
=no
5475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5478 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5480 if test $ac_cv_cc_supports_pg = no
; then
5481 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5484 CFLAGS
="$OLD_CFLAGS"
5489 # Check whether --with-pkgversion was given.
5490 if test "${with_pkgversion+set}" = set; then :
5491 withval
=$with_pkgversion; case "$withval" in
5492 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
5494 *) PKGVERSION
="($withval) " ;;
5505 # Check whether --with-bugurl was given.
5506 if test "${with_bugurl+set}" = set; then :
5507 withval
=$with_bugurl; case "$withval" in
5508 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
5511 *) BUGURL
="$withval"
5515 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
5525 REPORT_BUGS_TO
="<$BUGURL>"
5526 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
5533 cat >>confdefs.h
<<_ACEOF
5534 #define PKGVERSION "$PKGVERSION"
5538 cat >>confdefs.h
<<_ACEOF
5539 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5543 # --------------------- #
5544 # Checks for programs. #
5545 # --------------------- #
5547 for ac_prog
in gawk mawk nawk
awk
5549 # Extract the first word of "$ac_prog", so it can be a program name with args.
5550 set dummy
$ac_prog; ac_word
=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if test "${ac_cv_prog_AWK+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5556 if test -n "$AWK"; then
5557 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5563 test -z "$as_dir" && as_dir
=.
5564 for ac_exec_ext
in '' $ac_executable_extensions; do
5565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5566 ac_cv_prog_AWK
="$ac_prog"
5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 if test -n "$AWK"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5579 $as_echo "$AWK" >&6; }
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582 $as_echo "no" >&6; }
5586 test -n "$AWK" && break
5589 # Find a good install program. We prefer a C program (faster),
5590 # so one script is as good as another. But avoid the broken or
5591 # incompatible versions:
5592 # SysV /etc/install, /usr/sbin/install
5593 # SunOS /usr/etc/install
5594 # IRIX /sbin/install
5596 # AmigaOS /C/install, which installs bootblocks on floppy discs
5597 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5600 # OS/2's system install, which has a completely different semantic
5601 # ./install, which can be erroneously created by make from ./install.sh.
5602 # Reject install programs that cannot install multiple files.
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5604 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5605 if test -z "$INSTALL"; then
5606 if test "${ac_cv_path_install+set}" = set; then :
5607 $as_echo_n "(cached) " >&6
5609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir
=.
5614 # Account for people who put trailing slashes in PATH elements.
5615 case $as_dir/ in #((
5616 .
/ | .
// |
/[cC
]/* | \
5617 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5618 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5621 # OSF1 and SCO ODT 3.0 have their own names for install.
5622 # Don't use installbsd from OSF since it installs stuff as root
5624 for ac_prog
in ginstall scoinst
install; do
5625 for ac_exec_ext
in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5627 if test $ac_prog = install &&
5628 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5629 # AIX install. It has an incompatible calling convention.
5631 elif test $ac_prog = install &&
5632 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5633 # program-specific install script used by HP pwplus--don't use.
5636 rm -rf conftest.one conftest.two conftest.dir
5637 echo one
> conftest.one
5638 echo two
> conftest.two
5640 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5641 test -s conftest.one
&& test -s conftest.two
&&
5642 test -s conftest.dir
/conftest.one
&&
5643 test -s conftest.dir
/conftest.two
5645 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5658 rm -rf conftest.one conftest.two conftest.dir
5661 if test "${ac_cv_path_install+set}" = set; then
5662 INSTALL
=$ac_cv_path_install
5664 # As a last resort, use the slow shell script. Don't cache a
5665 # value for INSTALL within a source directory, because that will
5666 # break other packages using the cache if that directory is
5667 # removed, or if the value is a relative name.
5668 INSTALL
=$ac_install_sh
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5672 $as_echo "$INSTALL" >&6; }
5674 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5675 # It thinks the first close brace ends the variable substitution.
5676 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5678 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5680 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5683 $as_echo_n "checking whether ln -s works... " >&6; }
5685 if test "$LN_S" = "ln -s"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687 $as_echo "yes" >&6; }
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5690 $as_echo "no, using $LN_S" >&6; }
5693 if test -n "$ac_tool_prefix"; then
5694 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5695 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5701 if test -n "$RANLIB"; then
5702 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5708 test -z "$as_dir" && as_dir
=.
5709 for ac_exec_ext
in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 RANLIB
=$ac_cv_prog_RANLIB
5722 if test -n "$RANLIB"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5724 $as_echo "$RANLIB" >&6; }
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5732 if test -z "$ac_cv_prog_RANLIB"; then
5733 ac_ct_RANLIB
=$RANLIB
5734 # Extract the first word of "ranlib", so it can be a program name with args.
5735 set dummy ranlib
; ac_word
=$2
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 $as_echo_n "checking for $ac_word... " >&6; }
5738 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5741 if test -n "$ac_ct_RANLIB"; then
5742 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5748 test -z "$as_dir" && as_dir
=.
5749 for ac_exec_ext
in '' $ac_executable_extensions; do
5750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5751 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5762 if test -n "$ac_ct_RANLIB"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5764 $as_echo "$ac_ct_RANLIB" >&6; }
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5770 if test "x$ac_ct_RANLIB" = x
; then
5773 case $cross_compiling:$ac_tool_warned in
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5777 ac_tool_warned
=yes ;;
5779 RANLIB
=$ac_ct_RANLIB
5782 RANLIB
="$ac_cv_prog_RANLIB"
5785 for ac_prog
in 'bison -y' byacc
5787 # Extract the first word of "$ac_prog", so it can be a program name with args.
5788 set dummy
$ac_prog; ac_word
=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if test "${ac_cv_prog_YACC+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5794 if test -n "$YACC"; then
5795 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5801 test -z "$as_dir" && as_dir
=.
5802 for ac_exec_ext
in '' $ac_executable_extensions; do
5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5804 ac_cv_prog_YACC
="$ac_prog"
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 YACC
=$ac_cv_prog_YACC
5815 if test -n "$YACC"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5817 $as_echo "$YACC" >&6; }
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5824 test -n "$YACC" && break
5826 test -n "$YACC" || YACC
="yacc"
5829 if test -n "$ac_tool_prefix"; then
5830 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5831 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if test "${ac_cv_prog_AR+set}" = set; then :
5835 $as_echo_n "(cached) " >&6
5837 if test -n "$AR"; then
5838 ac_cv_prog_AR
="$AR" # Let the user override the test.
5840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5844 test -z "$as_dir" && as_dir
=.
5845 for ac_exec_ext
in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 if test -n "$AR"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5860 $as_echo "$AR" >&6; }
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5868 if test -z "$ac_cv_prog_AR"; then
5870 # Extract the first word of "ar", so it can be a program name with args.
5871 set dummy
ar; ac_word
=$2
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5873 $as_echo_n "checking for $ac_word... " >&6; }
5874 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5875 $as_echo_n "(cached) " >&6
5877 if test -n "$ac_ct_AR"; then
5878 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5884 test -z "$as_dir" && as_dir
=.
5885 for ac_exec_ext
in '' $ac_executable_extensions; do
5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5887 ac_cv_prog_ac_ct_AR
="ar"
5888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5898 if test -n "$ac_ct_AR"; then
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5900 $as_echo "$ac_ct_AR" >&6; }
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903 $as_echo "no" >&6; }
5906 if test "x$ac_ct_AR" = x
; then
5909 case $cross_compiling:$ac_tool_warned in
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5913 ac_tool_warned
=yes ;;
5921 if test -n "$ac_tool_prefix"; then
5922 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5923 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925 $as_echo_n "checking for $ac_word... " >&6; }
5926 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5927 $as_echo_n "(cached) " >&6
5929 if test -n "$DLLTOOL"; then
5930 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
5932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5936 test -z "$as_dir" && as_dir
=.
5937 for ac_exec_ext
in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 DLLTOOL
=$ac_cv_prog_DLLTOOL
5950 if test -n "$DLLTOOL"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5952 $as_echo "$DLLTOOL" >&6; }
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955 $as_echo "no" >&6; }
5960 if test -z "$ac_cv_prog_DLLTOOL"; then
5961 ac_ct_DLLTOOL
=$DLLTOOL
5962 # Extract the first word of "dlltool", so it can be a program name with args.
5963 set dummy dlltool
; ac_word
=$2
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5967 $as_echo_n "(cached) " >&6
5969 if test -n "$ac_ct_DLLTOOL"; then
5970 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
5972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5976 test -z "$as_dir" && as_dir
=.
5977 for ac_exec_ext
in '' $ac_executable_extensions; do
5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5979 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
5990 if test -n "$ac_ct_DLLTOOL"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5992 $as_echo "$ac_ct_DLLTOOL" >&6; }
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5998 if test "x$ac_ct_DLLTOOL" = x
; then
6001 case $cross_compiling:$ac_tool_warned in
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6005 ac_tool_warned
=yes ;;
6007 DLLTOOL
=$ac_ct_DLLTOOL
6010 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6013 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6015 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6019 $as_echo_n "(cached) " >&6
6021 if test -n "$WINDRES"; then
6022 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
6024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6028 test -z "$as_dir" && as_dir
=.
6029 for ac_exec_ext
in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6031 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 WINDRES
=$ac_cv_prog_WINDRES
6042 if test -n "$WINDRES"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6044 $as_echo "$WINDRES" >&6; }
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6052 if test -z "$ac_cv_prog_WINDRES"; then
6053 ac_ct_WINDRES
=$WINDRES
6054 # Extract the first word of "windres", so it can be a program name with args.
6055 set dummy windres
; ac_word
=$2
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6059 $as_echo_n "(cached) " >&6
6061 if test -n "$ac_ct_WINDRES"; then
6062 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
6064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir
=.
6069 for ac_exec_ext
in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_prog_ac_ct_WINDRES
="windres"
6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
6082 if test -n "$ac_ct_WINDRES"; then
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6084 $as_echo "$ac_ct_WINDRES" >&6; }
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 $as_echo "no" >&6; }
6090 if test "x$ac_ct_WINDRES" = x
; then
6093 case $cross_compiling:$ac_tool_warned in
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097 ac_tool_warned
=yes ;;
6099 WINDRES
=$ac_ct_WINDRES
6102 WINDRES
="$ac_cv_prog_WINDRES"
6106 # Needed for GNU/Hurd.
6107 if test -n "$ac_tool_prefix"; then
6108 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6109 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if test "${ac_cv_prog_MIG+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6115 if test -n "$MIG"; then
6116 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
6118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6122 test -z "$as_dir" && as_dir
=.
6123 for ac_exec_ext
in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 if test -n "$MIG"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6138 $as_echo "$MIG" >&6; }
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6146 if test -z "$ac_cv_prog_MIG"; then
6148 # Extract the first word of "mig", so it can be a program name with args.
6149 set dummy mig
; ac_word
=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6153 $as_echo_n "(cached) " >&6
6155 if test -n "$ac_ct_MIG"; then
6156 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
6158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir
=.
6163 for ac_exec_ext
in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_ac_ct_MIG
="mig"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
6176 if test -n "$ac_ct_MIG"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6178 $as_echo "$ac_ct_MIG" >&6; }
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6184 if test "x$ac_ct_MIG" = x
; then
6187 case $cross_compiling:$ac_tool_warned in
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6191 ac_tool_warned
=yes ;;
6196 MIG
="$ac_cv_prog_MIG"
6200 # ---------------------- #
6201 # Checks for libraries. #
6202 # ---------------------- #
6204 # We might need to link with -lm; most simulators need it.
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6206 $as_echo_n "checking for main in -lm... " >&6; }
6207 if test "${ac_cv_lib_m_main+set}" = set; then :
6208 $as_echo_n "(cached) " >&6
6210 ac_check_lib_save_LIBS
=$LIBS
6212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6224 if ac_fn_c_try_link
"$LINENO"; then :
6225 ac_cv_lib_m_main
=yes
6229 rm -f core conftest.err conftest.
$ac_objext \
6230 conftest
$ac_exeext conftest.
$ac_ext
6231 LIBS
=$ac_check_lib_save_LIBS
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6234 $as_echo "$ac_cv_lib_m_main" >&6; }
6235 if test "x$ac_cv_lib_m_main" = x
""yes; then :
6236 cat >>confdefs.h
<<_ACEOF
6245 # We need to link with -lw to get `wctype' on Solaris before Solaris
6246 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6247 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6248 # is known to have this problem). Therefore we avoid libw if we can.
6249 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6250 if test "x$ac_cv_func_wctype" = x
""yes; then :
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6254 $as_echo_n "checking for wctype in -lw... " >&6; }
6255 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6256 $as_echo_n "(cached) " >&6
6258 ac_check_lib_save_LIBS
=$LIBS
6260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6263 /* Override any GCC internal prototype to avoid an error.
6264 Use char because int might match the return type of a GCC
6265 builtin and then its argument prototype would still apply. */
6278 if ac_fn_c_try_link
"$LINENO"; then :
6279 ac_cv_lib_w_wctype
=yes
6281 ac_cv_lib_w_wctype
=no
6283 rm -f core conftest.err conftest.
$ac_objext \
6284 conftest
$ac_exeext conftest.
$ac_ext
6285 LIBS
=$ac_check_lib_save_LIBS
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6288 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6289 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
6290 cat >>confdefs.h
<<_ACEOF
6301 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6303 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6304 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6307 ac_func_search_save_LIBS
=$LIBS
6308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6311 /* Override any GCC internal prototype to avoid an error.
6312 Use char because int might match the return type of a GCC
6313 builtin and then its argument prototype would still apply. */
6317 char gethostbyname ();
6321 return gethostbyname ();
6326 for ac_lib
in '' nsl
; do
6327 if test -z "$ac_lib"; then
6328 ac_res
="none required"
6331 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6333 if ac_fn_c_try_link
"$LINENO"; then :
6334 ac_cv_search_gethostbyname
=$ac_res
6336 rm -f core conftest.err conftest.
$ac_objext \
6338 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6342 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6345 ac_cv_search_gethostbyname
=no
6348 LIBS
=$ac_func_search_save_LIBS
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6351 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6352 ac_res
=$ac_cv_search_gethostbyname
6353 if test "$ac_res" != no
; then :
6354 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6359 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6361 $as_echo_n "checking for library containing socketpair... " >&6; }
6362 if test "${ac_cv_search_socketpair+set}" = set; then :
6363 $as_echo_n "(cached) " >&6
6365 ac_func_search_save_LIBS
=$LIBS
6366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6369 /* Override any GCC internal prototype to avoid an error.
6370 Use char because int might match the return type of a GCC
6371 builtin and then its argument prototype would still apply. */
6379 return socketpair ();
6384 for ac_lib
in '' socket
; do
6385 if test -z "$ac_lib"; then
6386 ac_res
="none required"
6389 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6391 if ac_fn_c_try_link
"$LINENO"; then :
6392 ac_cv_search_socketpair
=$ac_res
6394 rm -f core conftest.err conftest.
$ac_objext \
6396 if test "${ac_cv_search_socketpair+set}" = set; then :
6400 if test "${ac_cv_search_socketpair+set}" = set; then :
6403 ac_cv_search_socketpair
=no
6406 LIBS
=$ac_func_search_save_LIBS
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6409 $as_echo "$ac_cv_search_socketpair" >&6; }
6410 ac_res
=$ac_cv_search_socketpair
6411 if test "$ac_res" != no
; then :
6412 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6417 # Link in zlib if we can. This allows us to read compressed debug sections.
6419 # See if the user specified whether he wants zlib support or not.
6421 # Check whether --with-zlib was given.
6422 if test "${with_zlib+set}" = set; then :
6429 if test "$with_zlib" != "no"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6431 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6432 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6435 ac_func_search_save_LIBS
=$LIBS
6436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6439 /* Override any GCC internal prototype to avoid an error.
6440 Use char because int might match the return type of a GCC
6441 builtin and then its argument prototype would still apply. */
6445 char zlibVersion ();
6449 return zlibVersion ();
6454 for ac_lib
in '' z
; do
6455 if test -z "$ac_lib"; then
6456 ac_res
="none required"
6459 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6461 if ac_fn_c_try_link
"$LINENO"; then :
6462 ac_cv_search_zlibVersion
=$ac_res
6464 rm -f core conftest.err conftest.
$ac_objext \
6466 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6470 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6473 ac_cv_search_zlibVersion
=no
6476 LIBS
=$ac_func_search_save_LIBS
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6479 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6480 ac_res
=$ac_cv_search_zlibVersion
6481 if test "$ac_res" != no
; then :
6482 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6483 for ac_header
in zlib.h
6485 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6486 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
6487 cat >>confdefs.h
<<_ACEOF
6488 #define HAVE_ZLIB_H 1
6497 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6498 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6503 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6505 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6506 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6509 ac_func_search_save_LIBS
=$LIBS
6510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6513 /* Override any GCC internal prototype to avoid an error.
6514 Use char because int might match the return type of a GCC
6515 builtin and then its argument prototype would still apply. */
6519 char dlgetmodinfo ();
6523 return dlgetmodinfo ();
6528 for ac_lib
in '' dl xpdl
; do
6529 if test -z "$ac_lib"; then
6530 ac_res
="none required"
6533 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6535 if ac_fn_c_try_link
"$LINENO"; then :
6536 ac_cv_search_dlgetmodinfo
=$ac_res
6538 rm -f core conftest.err conftest.
$ac_objext \
6540 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6544 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6547 ac_cv_search_dlgetmodinfo
=no
6550 LIBS
=$ac_func_search_save_LIBS
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6553 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6554 ac_res
=$ac_cv_search_dlgetmodinfo
6555 if test "$ac_res" != no
; then :
6556 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6564 # Check whether --with-libiconv-prefix was given.
6565 if test "${with_libiconv_prefix+set}" = set; then :
6566 withval
=$with_libiconv_prefix;
6567 for dir
in `echo "$withval" | tr : ' '`; do
6568 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
6569 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
6575 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
6576 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6579 $as_echo_n "checking for iconv... " >&6; }
6580 if test "${am_cv_func_iconv+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6584 am_cv_func_iconv
="no, consider installing GNU libiconv"
6586 am_cv_use_build_libiconv
=no
6587 am_cv_build_libiconv_path
=
6589 # If libiconv is part of the build tree, then try using it over
6591 if test -d ..
/libiconv
; then
6592 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
6593 am_save_LIBS
="$LIBS"
6594 am_save_CPPFLAGS
="$CPPFLAGS"
6595 LIBS
="$LIBS $lib_dir/libiconv.a"
6596 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6604 iconv_t cd = iconv_open("","");
6605 iconv(cd,NULL,NULL,NULL,NULL);
6611 if ac_fn_c_try_link
"$LINENO"; then :
6612 am_cv_use_build_libiconv
=yes
6613 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
6615 am_cv_func_iconv
=yes
6617 rm -f core conftest.err conftest.
$ac_objext \
6618 conftest
$ac_exeext conftest.
$ac_ext
6619 LIBS
="$am_save_LIBS"
6620 CPPFLAGS
="$am_save_CPPFLAGS"
6621 if test "$am_cv_use_build_libiconv" = "yes"; then
6627 # Next, try to find iconv in libc.
6628 if test "$am_cv_func_iconv" != yes; then
6629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6636 iconv_t cd = iconv_open("","");
6637 iconv(cd,NULL,NULL,NULL,NULL);
6643 if ac_fn_c_try_link
"$LINENO"; then :
6644 am_cv_func_iconv
=yes
6646 rm -f core conftest.err conftest.
$ac_objext \
6647 conftest
$ac_exeext conftest.
$ac_ext
6650 # If iconv was not in libc, try -liconv. In this case, arrange to
6651 # look in the libiconv prefix, if it was specified by the user.
6652 if test "$am_cv_func_iconv" != yes; then
6653 am_save_CPPFLAGS
="$CPPFLAGS"
6654 am_save_LIBS
="$LIBS"
6655 if test -n "$LIBICONV_INCLUDE"; then
6656 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
6657 LIBS
="$LIBS $LIBICONV_LIBDIR"
6659 LIBS
="$LIBS -liconv"
6660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6667 iconv_t cd = iconv_open("","");
6668 iconv(cd,NULL,NULL,NULL,NULL);
6674 if ac_fn_c_try_link
"$LINENO"; then :
6676 am_cv_func_iconv
=yes
6678 rm -f core conftest.err conftest.
$ac_objext \
6679 conftest
$ac_exeext conftest.
$ac_ext
6680 LIBS
="$am_save_LIBS"
6681 CPPFLAGS
="$am_save_CPPFLAGS"
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6686 $as_echo "$am_cv_func_iconv" >&6; }
6688 # Set the various flags based on the cache variables. We can't rely
6689 # on the flags to remain set from the above code, due to caching.
6691 if test "$am_cv_lib_iconv" = yes; then
6697 if test "$am_cv_use_build_libiconv" = yes; then
6698 LIBICONV
="$am_cv_build_libiconv_path"
6700 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
6702 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
6703 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6705 if test "$am_cv_func_iconv" = yes; then
6707 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6710 $as_echo_n "checking for iconv declaration... " >&6; }
6711 if test "${am_cv_proto_iconv+set}" = set; then :
6712 $as_echo_n "(cached) " >&6
6715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6724 #if defined(__STDC__) || defined(__cplusplus)
6725 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6738 if ac_fn_c_try_compile
"$LINENO"; then :
6739 am_cv_proto_iconv_arg1
=""
6741 am_cv_proto_iconv_arg1
="const"
6743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6744 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);"
6747 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6749 }$am_cv_proto_iconv" >&5
6751 }$am_cv_proto_iconv" >&6; }
6753 cat >>confdefs.h
<<_ACEOF
6754 #define ICONV_CONST $am_cv_proto_iconv_arg1
6760 # GDB may fork/exec the iconv program to get the list of supported character
6761 # sets. Allow the user to specify where to find it.
6762 # There are several factors affecting the choice of option name:
6763 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6764 # the build-time location of libiconv files.
6765 # - The program we need to find is iconv, which comes with glibc. The user
6766 # doesn't necessarily have libiconv installed. Therefore naming this
6767 # --with-libiconv-foo feels wrong.
6768 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6769 # defined to work on directories not files (though it really doesn't know
6771 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6772 # with --with-libiconv-prefix.
6773 # Putting these together is why the option name is --with-iconv-bin.
6776 # Check whether --with-iconv-bin was given.
6777 if test "${with_iconv_bin+set}" = set; then :
6778 withval
=$with_iconv_bin; iconv_bin
="${withval}"
6780 cat >>confdefs.h
<<_ACEOF
6781 #define ICONV_BIN "${iconv_bin}"
6785 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6786 if test "x$prefix" = xNONE
; then
6787 test_prefix
=/usr
/local
6792 test_prefix
=$exec_prefix
6795 case ${iconv_bin} in
6796 "${test_prefix}"|
"${test_prefix}/"*|\
6797 '${exec_prefix}'|
'${exec_prefix}/'*)
6802 cat >>confdefs.h
<<_ACEOF
6803 #define ICONV_BIN_RELOCATABLE $value
6811 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6812 # There is a very specific comment in /usr/include/curses.h explaining that
6813 # termcap routines built into libcurses must not be used.
6815 # The symptoms we observed so far is GDB unexpectedly changing
6816 # the terminal settings when tgetent is called - this is particularly
6817 # visible as the output is missing carriage returns, and so rapidly
6818 # becomes very hard to read.
6820 # The readline configure script has already decided that libtermcap
6821 # was enough for its purposes, and so decided to build readline using
6822 # libtermcap. Since the TUI mode requires curses, building GDB with
6823 # TUI enabled results in both libraries to be used at the same time,
6824 # which is not allowed. This basically means that GDB with TUI is
6825 # broken on alpha-osf.
6829 if test x
"$enable_tui" = xyes
; then
6830 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6832 if test x
"$enable_tui" = xauto
; then
6838 # For the TUI, we need enhanced curses functionality.
6839 if test x
"$enable_tui" != xno
; then
6844 if test x
"$prefer_curses" = xyes
; then
6845 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6846 # curses library because the latter might not provide all the
6847 # functionality we need. However, this leads to problems on systems
6848 # where the linker searches /usr/local/lib, but the compiler doesn't
6849 # search /usr/local/include, if ncurses is installed in /usr/local. A
6850 # default installation of ncurses on alpha*-dec-osf* will lead to such
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
6853 $as_echo_n "checking for library containing waddstr... " >&6; }
6854 if test "${ac_cv_search_waddstr+set}" = set; then :
6855 $as_echo_n "(cached) " >&6
6857 ac_func_search_save_LIBS
=$LIBS
6858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6861 /* Override any GCC internal prototype to avoid an error.
6862 Use char because int might match the return type of a GCC
6863 builtin and then its argument prototype would still apply. */
6876 for ac_lib
in '' ncurses cursesX curses
; do
6877 if test -z "$ac_lib"; then
6878 ac_res
="none required"
6881 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6883 if ac_fn_c_try_link
"$LINENO"; then :
6884 ac_cv_search_waddstr
=$ac_res
6886 rm -f core conftest.err conftest.
$ac_objext \
6888 if test "${ac_cv_search_waddstr+set}" = set; then :
6892 if test "${ac_cv_search_waddstr+set}" = set; then :
6895 ac_cv_search_waddstr
=no
6898 LIBS
=$ac_func_search_save_LIBS
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
6901 $as_echo "$ac_cv_search_waddstr" >&6; }
6902 ac_res
=$ac_cv_search_waddstr
6903 if test "$ac_res" != no
; then :
6904 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6909 if test "$ac_cv_search_waddstr" != no
; then
6914 # Check whether we should enable the TUI, but only do so if we really
6916 if test x
"$enable_tui" != xno
; then
6917 if test -d $srcdir/tui
; then
6918 if test "$curses_found" != no
; then
6919 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
6920 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
6921 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
6922 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
6924 if test x
"$enable_tui" = xyes
; then
6925 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
6928 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
6934 # Since GDB uses Readline, we need termcap functionality. In many
6935 # cases this will be provided by the curses library, but some systems
6936 # have a seperate termcap library, or no curses library at all.
6940 if test -d $srcdir/libtermcap
; then
6941 LIBS
="../libtermcap/libtermcap.a $LIBS"
6942 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
6945 ac_cv_search_tgetent
="none required"
6948 ac_cv_search_tgetent
="none required"
6949 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
6953 # These are the libraries checked by Readline.
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
6955 $as_echo_n "checking for library containing tgetent... " >&6; }
6956 if test "${ac_cv_search_tgetent+set}" = set; then :
6957 $as_echo_n "(cached) " >&6
6959 ac_func_search_save_LIBS
=$LIBS
6960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6963 /* Override any GCC internal prototype to avoid an error.
6964 Use char because int might match the return type of a GCC
6965 builtin and then its argument prototype would still apply. */
6978 for ac_lib
in '' termcap tinfo curses ncurses
; do
6979 if test -z "$ac_lib"; then
6980 ac_res
="none required"
6983 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6985 if ac_fn_c_try_link
"$LINENO"; then :
6986 ac_cv_search_tgetent
=$ac_res
6988 rm -f core conftest.err conftest.
$ac_objext \
6990 if test "${ac_cv_search_tgetent+set}" = set; then :
6994 if test "${ac_cv_search_tgetent+set}" = set; then :
6997 ac_cv_search_tgetent
=no
7000 LIBS
=$ac_func_search_save_LIBS
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7003 $as_echo "$ac_cv_search_tgetent" >&6; }
7004 ac_res
=$ac_cv_search_tgetent
7005 if test "$ac_res" != no
; then :
7006 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7011 if test "$ac_cv_search_tgetent" = no
; then
7012 as_fn_error
"no termcap library found" "$LINENO" 5
7016 # Check whether --with-system-readline was given.
7017 if test "${with_system_readline+set}" = set; then :
7018 withval
=$with_system_readline;
7022 if test "$with_system_readline" = yes; then
7026 READLINE_TEXI_INCFLAG
=
7028 READLINE
='$(READLINE_DIR)/libreadline.a'
7029 READLINE_DEPS
='$(READLINE)'
7030 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
7031 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
7038 # Generate jit-reader.h
7040 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7043 # The cast to long int works around a bug in the HP C Compiler
7044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7046 # This bug is HP SR number 8606223364.
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7048 $as_echo_n "checking size of unsigned long long... " >&6; }
7049 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7050 $as_echo_n "(cached) " >&6
7052 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7055 if test "$ac_cv_type_unsigned_long_long" = yes; then
7056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7058 { as_fn_set_status
77
7059 as_fn_error
"cannot compute sizeof (unsigned long long)
7060 See \`config.log' for more details." "$LINENO" 5; }; }
7062 ac_cv_sizeof_unsigned_long_long
=0
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7068 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7072 cat >>confdefs.h
<<_ACEOF
7073 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7077 # The cast to long int works around a bug in the HP C Compiler
7078 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7079 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7080 # This bug is HP SR number 8606223364.
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7082 $as_echo_n "checking size of unsigned long... " >&6; }
7083 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7084 $as_echo_n "(cached) " >&6
7086 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7089 if test "$ac_cv_type_unsigned_long" = yes; then
7090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7092 { as_fn_set_status
77
7093 as_fn_error
"cannot compute sizeof (unsigned long)
7094 See \`config.log' for more details." "$LINENO" 5; }; }
7096 ac_cv_sizeof_unsigned_long
=0
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7102 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7106 cat >>confdefs.h
<<_ACEOF
7107 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7111 # The cast to long int works around a bug in the HP C Compiler
7112 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7113 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7114 # This bug is HP SR number 8606223364.
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7116 $as_echo_n "checking size of unsigned __int128... " >&6; }
7117 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7118 $as_echo_n "(cached) " >&6
7120 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7123 if test "$ac_cv_type_unsigned___int128" = yes; then
7124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7126 { as_fn_set_status
77
7127 as_fn_error
"cannot compute sizeof (unsigned __int128)
7128 See \`config.log' for more details." "$LINENO" 5; }; }
7130 ac_cv_sizeof_unsigned___int128
=0
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7136 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7140 cat >>confdefs.h
<<_ACEOF
7141 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7146 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7147 TARGET_PTR
="unsigned long"
7148 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7149 TARGET_PTR
="unsigned long long"
7150 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7151 TARGET_PTR
="unsigned __int128"
7153 TARGET_PTR
="unsigned long"
7157 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7161 $as_echo_n "checking for library containing dlopen... " >&6; }
7162 if test "${ac_cv_search_dlopen+set}" = set; then :
7163 $as_echo_n "(cached) " >&6
7165 ac_func_search_save_LIBS
=$LIBS
7166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7169 /* Override any GCC internal prototype to avoid an error.
7170 Use char because int might match the return type of a GCC
7171 builtin and then its argument prototype would still apply. */
7184 for ac_lib
in '' dl
; do
7185 if test -z "$ac_lib"; then
7186 ac_res
="none required"
7189 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7191 if ac_fn_c_try_link
"$LINENO"; then :
7192 ac_cv_search_dlopen
=$ac_res
7194 rm -f core conftest.err conftest.
$ac_objext \
7196 if test "${ac_cv_search_dlopen+set}" = set; then :
7200 if test "${ac_cv_search_dlopen+set}" = set; then :
7203 ac_cv_search_dlopen
=no
7206 LIBS
=$ac_func_search_save_LIBS
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7209 $as_echo "$ac_cv_search_dlopen" >&6; }
7210 ac_res
=$ac_cv_search_dlopen
7211 if test "$ac_res" != no
; then :
7212 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7219 # Check whether --with-jit-reader-dir was given.
7220 if test "${with_jit_reader_dir+set}" = set; then :
7221 withval
=$with_jit_reader_dir;
7222 JIT_READER_DIR
=$withval
7224 JIT_READER_DIR
=${libdir}/gdb
7228 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7229 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7230 ac_define_dir
=`eval echo $JIT_READER_DIR`
7231 ac_define_dir
=`eval echo $ac_define_dir`
7233 cat >>confdefs.h
<<_ACEOF
7234 #define JIT_READER_DIR "$ac_define_dir"
7240 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7241 if test "x$prefix" = xNONE
; then
7242 test_prefix
=/usr
/local
7247 test_prefix
=$exec_prefix
7250 case ${ac_define_dir} in
7251 "${test_prefix}"|
"${test_prefix}/"*|\
7252 '${exec_prefix}'|
'${exec_prefix}/'*)
7257 cat >>confdefs.h
<<_ACEOF
7258 #define JIT_READER_DIR_RELOCATABLE $value
7265 # Check whether --with-expat was given.
7266 if test "${with_expat+set}" = set; then :
7267 withval
=$with_expat;
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7273 $as_echo_n "checking whether to use expat... " >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7275 $as_echo "$with_expat" >&6; }
7277 if test "${with_expat}" = no
; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7279 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7283 if test "X$prefix" = "XNONE"; then
7284 acl_final_prefix
="$ac_default_prefix"
7286 acl_final_prefix
="$prefix"
7288 if test "X$exec_prefix" = "XNONE"; then
7289 acl_final_exec_prefix
='${prefix}'
7291 acl_final_exec_prefix
="$exec_prefix"
7293 acl_save_prefix
="$prefix"
7294 prefix
="$acl_final_prefix"
7295 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7296 prefix
="$acl_save_prefix"
7299 # Check whether --with-gnu-ld was given.
7300 if test "${with_gnu_ld+set}" = set; then :
7301 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7306 # Prepare PATH_SEPARATOR.
7307 # The user is always right.
7308 if test "${PATH_SEPARATOR+set}" != set; then
7309 echo "#! /bin/sh" >conf$$.sh
7310 echo "exit 0" >>conf$$.sh
7312 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7320 if test "$GCC" = yes; then
7321 # Check if gcc -print-prog-name=ld gives a path.
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7323 $as_echo_n "checking for ld used by GCC... " >&6; }
7326 # gcc leaves a trailing carriage return which upsets mingw
7327 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7329 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7332 # Accept absolute paths.
7333 [\\/]* |
[A-Za-z
]:[\\/]*)
7334 re_direlt
='/[^/][^/]*/\.\./'
7335 # Canonicalize the path of ld
7336 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7337 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7338 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7340 test -z "$LD" && LD
="$ac_prog"
7343 # If it fails, then pretend we aren't using GCC.
7347 # If it is relative, then search for the first ld in PATH.
7351 elif test "$with_gnu_ld" = yes; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7353 $as_echo_n "checking for GNU ld... " >&6; }
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7356 $as_echo_n "checking for non-GNU ld... " >&6; }
7358 if test "${acl_cv_path_LD+set}" = set; then :
7359 $as_echo_n "(cached) " >&6
7361 if test -z "$LD"; then
7362 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7363 for ac_dir
in $PATH; do
7364 test -z "$ac_dir" && ac_dir
=.
7365 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7366 acl_cv_path_LD
="$ac_dir/$ac_prog"
7367 # Check to see if the program is GNU ld. I'd rather use --version,
7368 # but apparently some GNU ld's only accept -v.
7369 # Break only if it was the GNU/non-GNU ld that we prefer.
7370 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7371 test "$with_gnu_ld" != no
&& break
7373 test "$with_gnu_ld" != yes && break
7379 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7383 LD
="$acl_cv_path_LD"
7384 if test -n "$LD"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7386 $as_echo "$LD" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7391 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7393 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7394 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7395 $as_echo_n "(cached) " >&6
7397 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7398 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7399 acl_cv_prog_gnu_ld
=yes
7401 acl_cv_prog_gnu_ld
=no
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7405 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7406 with_gnu_ld
=$acl_cv_prog_gnu_ld
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7411 $as_echo_n "checking for shared library run path origin... " >&6; }
7412 if test "${acl_cv_rpath+set}" = set; then :
7413 $as_echo_n "(cached) " >&6
7416 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7417 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7424 $as_echo "$acl_cv_rpath" >&6; }
7426 libext
="$acl_cv_libext"
7427 shlibext
="$acl_cv_shlibext"
7428 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7429 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7430 hardcode_direct
="$acl_cv_hardcode_direct"
7431 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7432 # Check whether --enable-rpath was given.
7433 if test "${enable_rpath+set}" = set; then :
7434 enableval
=$enable_rpath; :
7450 acl_save_prefix
="$prefix"
7451 prefix
="$acl_final_prefix"
7452 acl_save_exec_prefix
="$exec_prefix"
7453 exec_prefix
="$acl_final_exec_prefix"
7455 eval additional_includedir
=\"$includedir\"
7456 eval additional_libdir
=\"$libdir\"
7458 exec_prefix
="$acl_save_exec_prefix"
7459 prefix
="$acl_save_prefix"
7462 # Check whether --with-libexpat-prefix was given.
7463 if test "${with_libexpat_prefix+set}" = set; then :
7464 withval
=$with_libexpat_prefix;
7465 if test "X$withval" = "Xno"; then
7468 if test "X$withval" = "X"; then
7470 acl_save_prefix
="$prefix"
7471 prefix
="$acl_final_prefix"
7472 acl_save_exec_prefix
="$exec_prefix"
7473 exec_prefix
="$acl_final_exec_prefix"
7475 eval additional_includedir
=\"$includedir\"
7476 eval additional_libdir
=\"$libdir\"
7478 exec_prefix
="$acl_save_exec_prefix"
7479 prefix
="$acl_save_prefix"
7482 additional_includedir
="$withval/include"
7483 additional_libdir
="$withval/lib"
7494 names_already_handled
=
7495 names_next_round
='expat '
7496 while test -n "$names_next_round"; do
7497 names_this_round
="$names_next_round"
7499 for name
in $names_this_round; do
7501 for n
in $names_already_handled; do
7502 if test "$n" = "$name"; then
7507 if test -z "$already_handled"; then
7508 names_already_handled
="$names_already_handled $name"
7509 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7510 eval value
=\"\
$HAVE_LIB$uppername\"
7511 if test -n "$value"; then
7512 if test "$value" = yes; then
7513 eval value
=\"\
$LIB$uppername\"
7514 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
7515 eval value
=\"\
$LTLIB$uppername\"
7516 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7525 if test $use_additional = yes; then
7526 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7527 found_dir
="$additional_libdir"
7528 found_so
="$additional_libdir/lib$name.$shlibext"
7529 if test -f "$additional_libdir/lib$name.la"; then
7530 found_la
="$additional_libdir/lib$name.la"
7533 if test -f "$additional_libdir/lib$name.$libext"; then
7534 found_dir
="$additional_libdir"
7535 found_a
="$additional_libdir/lib$name.$libext"
7536 if test -f "$additional_libdir/lib$name.la"; then
7537 found_la
="$additional_libdir/lib$name.la"
7542 if test "X$found_dir" = "X"; then
7543 for x
in $LDFLAGS $LTLIBEXPAT; do
7545 acl_save_prefix
="$prefix"
7546 prefix
="$acl_final_prefix"
7547 acl_save_exec_prefix
="$exec_prefix"
7548 exec_prefix
="$acl_final_exec_prefix"
7550 exec_prefix
="$acl_save_exec_prefix"
7551 prefix
="$acl_save_prefix"
7555 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7556 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7558 found_so
="$dir/lib$name.$shlibext"
7559 if test -f "$dir/lib$name.la"; then
7560 found_la
="$dir/lib$name.la"
7563 if test -f "$dir/lib$name.$libext"; then
7565 found_a
="$dir/lib$name.$libext"
7566 if test -f "$dir/lib$name.la"; then
7567 found_la
="$dir/lib$name.la"
7573 if test "X$found_dir" != "X"; then
7578 if test "X$found_dir" != "X"; then
7579 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7580 if test "X$found_so" != "X"; then
7581 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7582 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7585 for x
in $ltrpathdirs; do
7586 if test "X$x" = "X$found_dir"; then
7591 if test -z "$haveit"; then
7592 ltrpathdirs
="$ltrpathdirs $found_dir"
7594 if test "$hardcode_direct" = yes; then
7595 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7597 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7598 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7600 for x
in $rpathdirs; do
7601 if test "X$x" = "X$found_dir"; then
7606 if test -z "$haveit"; then
7607 rpathdirs
="$rpathdirs $found_dir"
7611 for x
in $LDFLAGS $LIBEXPAT; do
7613 acl_save_prefix
="$prefix"
7614 prefix
="$acl_final_prefix"
7615 acl_save_exec_prefix
="$exec_prefix"
7616 exec_prefix
="$acl_final_exec_prefix"
7618 exec_prefix
="$acl_save_exec_prefix"
7619 prefix
="$acl_save_prefix"
7621 if test "X$x" = "X-L$found_dir"; then
7626 if test -z "$haveit"; then
7627 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7629 if test "$hardcode_minus_L" != no
; then
7630 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7632 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7638 if test "X$found_a" != "X"; then
7639 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7641 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7644 additional_includedir
=
7645 case "$found_dir" in
7647 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7648 additional_includedir
="$basedir/include"
7651 if test "X$additional_includedir" != "X"; then
7652 if test "X$additional_includedir" != "X/usr/include"; then
7654 if test "X$additional_includedir" = "X/usr/local/include"; then
7655 if test -n "$GCC"; then
7657 linux
*) haveit
=yes;;
7661 if test -z "$haveit"; then
7662 for x
in $CPPFLAGS $INCEXPAT; do
7664 acl_save_prefix
="$prefix"
7665 prefix
="$acl_final_prefix"
7666 acl_save_exec_prefix
="$exec_prefix"
7667 exec_prefix
="$acl_final_exec_prefix"
7669 exec_prefix
="$acl_save_exec_prefix"
7670 prefix
="$acl_save_prefix"
7672 if test "X$x" = "X-I$additional_includedir"; then
7677 if test -z "$haveit"; then
7678 if test -d "$additional_includedir"; then
7679 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7685 if test -n "$found_la"; then
7686 save_libdir
="$libdir"
7688 */* |
*\\*) .
"$found_la" ;;
7689 *) .
"./$found_la" ;;
7691 libdir
="$save_libdir"
7692 for dep
in $dependency_libs; do
7695 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7696 if test "X$additional_libdir" != "X/usr/lib"; then
7698 if test "X$additional_libdir" = "X/usr/local/lib"; then
7699 if test -n "$GCC"; then
7701 linux
*) haveit
=yes;;
7705 if test -z "$haveit"; then
7707 for x
in $LDFLAGS $LIBEXPAT; do
7709 acl_save_prefix
="$prefix"
7710 prefix
="$acl_final_prefix"
7711 acl_save_exec_prefix
="$exec_prefix"
7712 exec_prefix
="$acl_final_exec_prefix"
7714 exec_prefix
="$acl_save_exec_prefix"
7715 prefix
="$acl_save_prefix"
7717 if test "X$x" = "X-L$additional_libdir"; then
7722 if test -z "$haveit"; then
7723 if test -d "$additional_libdir"; then
7724 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7728 for x
in $LDFLAGS $LTLIBEXPAT; do
7730 acl_save_prefix
="$prefix"
7731 prefix
="$acl_final_prefix"
7732 acl_save_exec_prefix
="$exec_prefix"
7733 exec_prefix
="$acl_final_exec_prefix"
7735 exec_prefix
="$acl_save_exec_prefix"
7736 prefix
="$acl_save_prefix"
7738 if test "X$x" = "X-L$additional_libdir"; then
7743 if test -z "$haveit"; then
7744 if test -d "$additional_libdir"; then
7745 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7752 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7753 if test "$enable_rpath" != no
; then
7755 for x
in $rpathdirs; do
7756 if test "X$x" = "X$dir"; then
7761 if test -z "$haveit"; then
7762 rpathdirs
="$rpathdirs $dir"
7765 for x
in $ltrpathdirs; do
7766 if test "X$x" = "X$dir"; then
7771 if test -z "$haveit"; then
7772 ltrpathdirs
="$ltrpathdirs $dir"
7777 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7780 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7783 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7784 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7790 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7791 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7797 if test "X$rpathdirs" != "X"; then
7798 if test -n "$hardcode_libdir_separator"; then
7800 for found_dir
in $rpathdirs; do
7801 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7803 acl_save_libdir
="$libdir"
7805 eval flag
=\"$hardcode_libdir_flag_spec\"
7806 libdir
="$acl_save_libdir"
7807 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7809 for found_dir
in $rpathdirs; do
7810 acl_save_libdir
="$libdir"
7812 eval flag
=\"$hardcode_libdir_flag_spec\"
7813 libdir
="$acl_save_libdir"
7814 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7818 if test "X$ltrpathdirs" != "X"; then
7819 for found_dir
in $ltrpathdirs; do
7820 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7825 ac_save_CPPFLAGS
="$CPPFLAGS"
7827 for element
in $INCEXPAT; do
7829 for x
in $CPPFLAGS; do
7831 acl_save_prefix
="$prefix"
7832 prefix
="$acl_final_prefix"
7833 acl_save_exec_prefix
="$exec_prefix"
7834 exec_prefix
="$acl_final_exec_prefix"
7836 exec_prefix
="$acl_save_exec_prefix"
7837 prefix
="$acl_save_prefix"
7839 if test "X$x" = "X$element"; then
7844 if test -z "$haveit"; then
7845 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
7851 $as_echo_n "checking for libexpat... " >&6; }
7852 if test "${ac_cv_libexpat+set}" = set; then :
7853 $as_echo_n "(cached) " >&6
7856 ac_save_LIBS
="$LIBS"
7857 LIBS
="$LIBS $LIBEXPAT"
7858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7864 XML_Parser p = XML_ParserCreate (0);
7869 if ac_fn_c_try_link
"$LINENO"; then :
7874 rm -f core conftest.err conftest.
$ac_objext \
7875 conftest
$ac_exeext conftest.
$ac_ext
7876 LIBS
="$ac_save_LIBS"
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
7880 $as_echo "$ac_cv_libexpat" >&6; }
7881 if test "$ac_cv_libexpat" = yes; then
7884 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
7887 $as_echo_n "checking how to link with libexpat... " >&6; }
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
7889 $as_echo "$LIBEXPAT" >&6; }
7892 CPPFLAGS
="$ac_save_CPPFLAGS"
7902 if test "$HAVE_LIBEXPAT" != yes; then
7903 if test "$with_expat" = yes; then
7904 as_fn_error
"expat is missing or unusable" "$LINENO" 5
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7907 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7911 LIBS
="$LIBS $LIBEXPAT"
7912 for ac_func
in XML_StopParser
7914 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
7915 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
7916 cat >>confdefs.h
<<_ACEOF
7917 #define HAVE_XML_STOPPARSER 1
7932 # Check whether --with-python was given.
7933 if test "${with_python+set}" = set; then :
7934 withval
=$with_python;
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
7940 $as_echo_n "checking whether to use python... " >&6; }
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7942 $as_echo "$with_python" >&6; }
7944 if test "${with_python}" = no
; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
7946 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
7949 case "${with_python}" in
7951 if test -d ${with_python}; then
7952 # Assume the python binary is ${with_python}/bin/python.
7953 python_prog
="${with_python}/bin/python"
7955 # If python does not exit ${with_python}/bin, then try in
7956 # ${with_python}. On Windows/MinGW, this is where the Python
7958 if test ! -x "${python_prog}"; then
7959 python_prog
="${with_python}/python"
7962 if test ! -x "${python_prog}"; then
7963 # Fall back to gdb 7.0/7.1 behaviour.
7965 python_prefix
=${with_python}
7967 elif test -x "${with_python}"; then
7968 # While we can't run python compiled for $host (unless host == build),
7969 # the user could write a script that provides the needed information,
7970 # so we support that.
7971 python_prog
=${with_python}
7974 as_fn_error
"invalid value for --with-python" "$LINENO" 5
7978 # Disallow --with-python=foo/bar.
7979 as_fn_error
"invalid value for --with-python" "$LINENO" 5
7982 # The user has either specified auto, yes, or the name of the python
7983 # program assumed to be in $PATH.
7985 case "${with_python}" in
7987 if test ${build} = ${host}; then
7988 # Extract the first word of "python", so it can be a program name with args.
7989 set dummy python
; ac_word
=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if test "${ac_cv_path_python_prog_path+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7995 case $python_prog_path in
7997 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8004 test -z "$as_dir" && as_dir
=.
8005 for ac_exec_ext
in '' $ac_executable_extensions; do
8006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8007 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8019 python_prog_path
=$ac_cv_path_python_prog_path
8020 if test -n "$python_prog_path"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8022 $as_echo "$python_prog_path" >&6; }
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8029 if test "${python_prog_path}" = missing
; then
8032 python_prog
=${python_prog_path}
8035 # Not much we can do except assume the cross-compiler will find the
8041 # While we can't run python compiled for $host (unless host == build),
8042 # the user could write a script that provides the needed information,
8043 # so we support that.
8044 python_prog
="${with_python}"
8045 # Extract the first word of "${python_prog}", so it can be a program name with args.
8046 set dummy
${python_prog}; ac_word
=$2
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048 $as_echo_n "checking for $ac_word... " >&6; }
8049 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8050 $as_echo_n "(cached) " >&6
8052 case $python_prog_path in
8054 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8061 test -z "$as_dir" && as_dir
=.
8062 for ac_exec_ext
in '' $ac_executable_extensions; do
8063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8064 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8076 python_prog_path
=$ac_cv_path_python_prog_path
8077 if test -n "$python_prog_path"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8079 $as_echo "$python_prog_path" >&6; }
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8086 if test "${python_prog_path}" = missing
; then
8087 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
8093 if test "${python_prog}" != missing
; then
8094 # We have a python program to use, but it may be too old.
8095 # Don't flag an error for --with-python=auto (the default).
8096 have_python_config
=yes
8097 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
8098 if test $?
!= 0; then
8099 have_python_config
=failed
8100 if test "${with_python}" != auto
; then
8101 as_fn_error
"failure running python-config --includes" "$LINENO" 5
8104 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8105 if test $?
!= 0; then
8106 have_python_config
=failed
8107 if test "${with_python}" != auto
; then
8108 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
8111 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8112 if test $?
!= 0; then
8113 have_python_config
=failed
8114 if test "${with_python}" != auto
; then
8115 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
8119 # We do not have a python executable we can use to determine where
8120 # to find the Python headers and libs. We cannot guess the include
8121 # path from the python_prefix either, because that include path
8122 # depends on the Python version. So, there is nothing much we can
8123 # do except assume that the compiler will be able to find those files.
8126 have_python_config
=no
8129 # If we have python-config, only try the configuration it provides.
8130 # Otherwise fallback on the old way of trying different versions of
8134 if test "${have_python_config}" = yes; then
8135 # Determine the Python version by extracting "-lpython<version>"
8136 # part of the python_libs. <version> is usually X.Y with X and Y
8137 # being decimal numbers, but can also be XY (seen on Windows).
8139 # The extraction is performed using sed with a regular expression.
8140 # Initially, the regexp used was using the '?' quantifier to make
8141 # the dot in the version number optional. Unfortunately, this
8142 # does not work with non-GNU versions of sed because, because of
8143 # what looks like a limitation (the '?' quantifier does not work
8144 # with back-references). We work around this limitation by using
8145 # the '*' quantifier instead. It means that, in theory, we might
8146 # match unexpected version strings such as "-lpython2..7", but
8147 # this seems unlikely in practice. And even if that happens,
8148 # an error will be triggered later on, when checking that version
8150 python_version
=`echo " ${python_libs} " \
8151 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8152 case "${python_version}" in
8155 version
=${python_version}
8157 new_CPPFLAGS
=${python_includes}
8158 new_LIBS
=${python_libs}
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8160 $as_echo_n "checking for ${version}... " >&6; }
8161 save_CPPFLAGS
=$CPPFLAGS
8163 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8164 LIBS
="$LIBS $new_LIBS"
8165 found_usable_python
=no
8166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8177 if ac_fn_c_try_link
"$LINENO"; then :
8178 have_libpython
=${version}
8179 found_usable_python
=yes
8180 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8181 PYTHON_LIBS
=$new_LIBS
8183 rm -f core conftest.err conftest.
$ac_objext \
8184 conftest
$ac_exeext conftest.
$ac_ext
8185 CPPFLAGS
=$save_CPPFLAGS
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8188 $as_echo "${found_usable_python}" >&6; }
8192 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
8195 elif test "${have_python_config}" != failed
; then
8196 if test "${have_libpython}" = no
; then
8200 new_CPPFLAGS
=${python_includes}
8201 new_LIBS
="${python_libs} -lpython2.7"
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8203 $as_echo_n "checking for ${version}... " >&6; }
8204 save_CPPFLAGS
=$CPPFLAGS
8206 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8207 LIBS
="$LIBS $new_LIBS"
8208 found_usable_python
=no
8209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8220 if ac_fn_c_try_link
"$LINENO"; then :
8221 have_libpython
=${version}
8222 found_usable_python
=yes
8223 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8224 PYTHON_LIBS
=$new_LIBS
8226 rm -f core conftest.err conftest.
$ac_objext \
8227 conftest
$ac_exeext conftest.
$ac_ext
8228 CPPFLAGS
=$save_CPPFLAGS
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8231 $as_echo "${found_usable_python}" >&6; }
8234 if test "${have_libpython}" = no
; then
8238 new_CPPFLAGS
=${python_includes}
8239 new_LIBS
="${python_libs} -lpython2.6"
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8241 $as_echo_n "checking for ${version}... " >&6; }
8242 save_CPPFLAGS
=$CPPFLAGS
8244 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8245 LIBS
="$LIBS $new_LIBS"
8246 found_usable_python
=no
8247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8258 if ac_fn_c_try_link
"$LINENO"; then :
8259 have_libpython
=${version}
8260 found_usable_python
=yes
8261 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8262 PYTHON_LIBS
=$new_LIBS
8264 rm -f core conftest.err conftest.
$ac_objext \
8265 conftest
$ac_exeext conftest.
$ac_ext
8266 CPPFLAGS
=$save_CPPFLAGS
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8269 $as_echo "${found_usable_python}" >&6; }
8272 if test ${have_libpython} = no
; then
8276 new_CPPFLAGS
=${python_includes}
8277 new_LIBS
="${python_libs} -lpython2.5"
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8279 $as_echo_n "checking for ${version}... " >&6; }
8280 save_CPPFLAGS
=$CPPFLAGS
8282 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8283 LIBS
="$LIBS $new_LIBS"
8284 found_usable_python
=no
8285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8296 if ac_fn_c_try_link
"$LINENO"; then :
8297 have_libpython
=${version}
8298 found_usable_python
=yes
8299 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8300 PYTHON_LIBS
=$new_LIBS
8302 rm -f core conftest.err conftest.
$ac_objext \
8303 conftest
$ac_exeext conftest.
$ac_ext
8304 CPPFLAGS
=$save_CPPFLAGS
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8307 $as_echo "${found_usable_python}" >&6; }
8310 if test ${have_libpython} = no
; then
8314 new_CPPFLAGS
=${python_includes}
8315 new_LIBS
="${python_libs} -lpython2.4"
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8317 $as_echo_n "checking for ${version}... " >&6; }
8318 save_CPPFLAGS
=$CPPFLAGS
8320 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8321 LIBS
="$LIBS $new_LIBS"
8322 found_usable_python
=no
8323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8334 if ac_fn_c_try_link
"$LINENO"; then :
8335 have_libpython
=${version}
8336 found_usable_python
=yes
8337 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8338 PYTHON_LIBS
=$new_LIBS
8340 rm -f core conftest.err conftest.
$ac_objext \
8341 conftest
$ac_exeext conftest.
$ac_ext
8342 CPPFLAGS
=$save_CPPFLAGS
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8345 $as_echo "${found_usable_python}" >&6; }
8349 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
8351 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8353 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
8355 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8357 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
8359 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8361 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
8363 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8367 if test "${have_libpython}" = no
; then
8368 case "${with_python}" in
8370 as_fn_error
"python is missing or unusable" "$LINENO" 5
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8374 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8377 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
8381 if test -n "${python_prefix}"; then
8383 cat >>confdefs.h
<<_ACEOF
8384 #define WITH_PYTHON_PATH "${python_prefix}"
8388 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8389 if test "x$prefix" = xNONE
; then
8390 test_prefix
=/usr
/local
8395 test_prefix
=$exec_prefix
8398 case ${python_prefix} in
8399 "${test_prefix}"|
"${test_prefix}/"*|\
8400 '${exec_prefix}'|
'${exec_prefix}/'*)
8405 cat >>confdefs.h
<<_ACEOF
8406 #define PYTHON_PATH_RELOCATABLE $value
8414 if test "${have_libpython}" != no
; then
8416 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8418 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8419 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8420 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8421 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
8422 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8424 # Flags needed to compile Python code (taken from python-config --cflags).
8425 # We cannot call python-config directly because it will output whatever was
8426 # used when compiling the Python interpreter itself, including flags which
8427 # would make the python-related objects be compiled differently from the
8428 # rest of GDB (e.g., -O2 and -fPIC).
8429 if test "${GCC}" = yes; then
8430 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
8433 if test "x${tentative_python_cflags}" != x
; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8435 $as_echo_n "checking compiler flags for python code... " >&6; }
8436 for flag
in ${tentative_python_cflags}; do
8437 # Check that the compiler accepts it
8438 saved_CFLAGS
="$CFLAGS"
8439 CFLAGS
="$CFLAGS $flag"
8440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8451 if ac_fn_c_try_compile
"$LINENO"; then :
8452 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
8454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8455 CFLAGS
="$saved_CFLAGS"
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8458 $as_echo "${PYTHON_CFLAGS}" >&6; }
8461 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8463 # #define siginfo __siginfo
8465 # The problem is that including Python causes some XOPEN macros to be
8466 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8467 # to false. So, we work around this issue by defining siginfo ourself
8468 # though the command-line.
8470 irix
*) if test "${GCC}" = yes; then
8471 CPPFLAGS
="$CPPFLAGS -Dsiginfo=__siginfo"
8476 # Even if Python support is not compiled in, we need to have these files
8478 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
8479 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
8480 python/py-prettyprint.c python/py-auto-load.c"
8486 # ------------------------- #
8487 # Checks for header files. #
8488 # ------------------------- #
8491 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
8492 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8494 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8495 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8496 $as_echo_n "(cached) " >&6
8498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8500 #include <sys/types.h>
8512 if ac_fn_c_try_compile
"$LINENO"; then :
8513 eval "$as_ac_Header=yes"
8515 eval "$as_ac_Header=no"
8517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8519 eval ac_res
=\$
$as_ac_Header
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8521 $as_echo "$ac_res" >&6; }
8522 eval as_val
=\$
$as_ac_Header
8523 if test "x$as_val" = x
""yes; then :
8524 cat >>confdefs.h
<<_ACEOF
8525 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8528 ac_header_dirent
=$ac_hdr; break
8532 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8533 if test $ac_header_dirent = dirent.h
; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8535 $as_echo_n "checking for library containing opendir... " >&6; }
8536 if test "${ac_cv_search_opendir+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8539 ac_func_search_save_LIBS
=$LIBS
8540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8543 /* Override any GCC internal prototype to avoid an error.
8544 Use char because int might match the return type of a GCC
8545 builtin and then its argument prototype would still apply. */
8558 for ac_lib
in '' dir
; do
8559 if test -z "$ac_lib"; then
8560 ac_res
="none required"
8563 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8565 if ac_fn_c_try_link
"$LINENO"; then :
8566 ac_cv_search_opendir
=$ac_res
8568 rm -f core conftest.err conftest.
$ac_objext \
8570 if test "${ac_cv_search_opendir+set}" = set; then :
8574 if test "${ac_cv_search_opendir+set}" = set; then :
8577 ac_cv_search_opendir
=no
8580 LIBS
=$ac_func_search_save_LIBS
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8583 $as_echo "$ac_cv_search_opendir" >&6; }
8584 ac_res
=$ac_cv_search_opendir
8585 if test "$ac_res" != no
; then :
8586 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8592 $as_echo_n "checking for library containing opendir... " >&6; }
8593 if test "${ac_cv_search_opendir+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8596 ac_func_search_save_LIBS
=$LIBS
8597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8600 /* Override any GCC internal prototype to avoid an error.
8601 Use char because int might match the return type of a GCC
8602 builtin and then its argument prototype would still apply. */
8615 for ac_lib
in '' x
; do
8616 if test -z "$ac_lib"; then
8617 ac_res
="none required"
8620 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8622 if ac_fn_c_try_link
"$LINENO"; then :
8623 ac_cv_search_opendir
=$ac_res
8625 rm -f core conftest.err conftest.
$ac_objext \
8627 if test "${ac_cv_search_opendir+set}" = set; then :
8631 if test "${ac_cv_search_opendir+set}" = set; then :
8634 ac_cv_search_opendir
=no
8637 LIBS
=$ac_func_search_save_LIBS
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8640 $as_echo "$ac_cv_search_opendir" >&6; }
8641 ac_res
=$ac_cv_search_opendir
8642 if test "$ac_res" != no
; then :
8643 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8650 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8651 if test "${ac_cv_header_stat_broken+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
8654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8656 #include <sys/types.h>
8657 #include <sys/stat.h>
8659 #if defined S_ISBLK && defined S_IFDIR
8660 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8663 #if defined S_ISBLK && defined S_IFCHR
8664 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8667 #if defined S_ISLNK && defined S_IFREG
8668 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8671 #if defined S_ISSOCK && defined S_IFREG
8672 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8676 if ac_fn_c_try_compile
"$LINENO"; then :
8677 ac_cv_header_stat_broken
=no
8679 ac_cv_header_stat_broken
=yes
8681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8684 $as_echo "$ac_cv_header_stat_broken" >&6; }
8685 if test $ac_cv_header_stat_broken = yes; then
8687 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8692 $as_echo_n "checking for ANSI C header files... " >&6; }
8693 if test "${ac_cv_header_stdc+set}" = set; then :
8694 $as_echo_n "(cached) " >&6
8696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8711 if ac_fn_c_try_compile
"$LINENO"; then :
8712 ac_cv_header_stdc
=yes
8714 ac_cv_header_stdc
=no
8716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8718 if test $ac_cv_header_stdc = yes; then
8719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8726 $EGREP "memchr" >/dev
/null
2>&1; then :
8729 ac_cv_header_stdc
=no
8735 if test $ac_cv_header_stdc = yes; then
8736 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8743 $EGREP "free" >/dev
/null
2>&1; then :
8746 ac_cv_header_stdc
=no
8752 if test $ac_cv_header_stdc = yes; then
8753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8754 if test "$cross_compiling" = yes; then :
8757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8761 #if ((' ' & 0x0FF) == 0x020)
8762 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8763 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8765 # define ISLOWER(c) \
8766 (('a' <= (c) && (c) <= 'i') \
8767 || ('j' <= (c) && (c) <= 'r') \
8768 || ('s' <= (c) && (c) <= 'z'))
8769 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8772 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8777 for (i = 0; i < 256; i++)
8778 if (XOR (islower (i), ISLOWER (i))
8779 || toupper (i) != TOUPPER (i))
8784 if ac_fn_c_try_run
"$LINENO"; then :
8787 ac_cv_header_stdc
=no
8789 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8790 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8796 $as_echo "$ac_cv_header_stdc" >&6; }
8797 if test $ac_cv_header_stdc = yes; then
8799 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8803 # elf_hp.h is for HP/UX 64-bit shared library support.
8804 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
8805 # unconditionally, so what's the point in checking these?
8806 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
8807 thread_db.h gnu
/libc-version.h signal.h stddef.h \
8808 stdlib.h string.h memory.h
strings.h sys
/fault.h \
8809 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
8810 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
8811 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
8812 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
8813 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h \
8814 dlfcn.h sys
/socket.h sys
/un.h
8816 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8817 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8818 eval as_val
=\$
$as_ac_Header
8819 if test "x$as_val" = x
""yes; then :
8820 cat >>confdefs.h
<<_ACEOF
8821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8828 for ac_header
in link.h
8830 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
8831 # include <sys/types.h>
8838 if test "x$ac_cv_header_link_h" = x
""yes; then :
8839 cat >>confdefs.h
<<_ACEOF
8840 #define HAVE_LINK_H 1
8847 for ac_header
in sys
/proc.h
8849 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
8850 # include <sys/param.h>
8854 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
8855 cat >>confdefs.h
<<_ACEOF
8856 #define HAVE_SYS_PROC_H 1
8863 for ac_header
in sys
/user.h
8865 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
8866 # include <sys/param.h>
8870 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
8871 cat >>confdefs.h
<<_ACEOF
8872 #define HAVE_SYS_USER_H 1
8880 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
8881 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
8882 # think that we don't have <curses.h> if we're using GCC.
8885 if test "$GCC" = yes; then
8887 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
8891 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
8893 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8894 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8895 eval as_val
=\$
$as_ac_Header
8896 if test "x$as_val" = x
""yes; then :
8897 cat >>confdefs.h
<<_ACEOF
8898 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8905 for ac_header
in term.h
8907 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
8908 # include <curses.h>
8912 if test "x$ac_cv_header_term_h" = x
""yes; then :
8913 cat >>confdefs.h
<<_ACEOF
8914 #define HAVE_TERM_H 1
8922 # ------------------------- #
8923 # Checks for declarations. #
8924 # ------------------------- #
8926 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
8927 if test "x$ac_cv_have_decl_free" = x
""yes; then :
8933 cat >>confdefs.h
<<_ACEOF
8934 #define HAVE_DECL_FREE $ac_have_decl
8936 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
8937 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
8943 cat >>confdefs.h
<<_ACEOF
8944 #define HAVE_DECL_MALLOC $ac_have_decl
8946 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
8947 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
8953 cat >>confdefs.h
<<_ACEOF
8954 #define HAVE_DECL_REALLOC $ac_have_decl
8956 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
8957 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
8963 cat >>confdefs.h
<<_ACEOF
8964 #define HAVE_DECL_STRERROR $ac_have_decl
8966 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8967 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
8973 cat >>confdefs.h
<<_ACEOF
8974 #define HAVE_DECL_STRSTR $ac_have_decl
8976 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
8977 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
8983 cat >>confdefs.h
<<_ACEOF
8984 #define HAVE_DECL_GETOPT $ac_have_decl
8986 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
8987 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
8993 cat >>confdefs.h
<<_ACEOF
8994 #define HAVE_DECL_SNPRINTF $ac_have_decl
8996 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
8997 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
9003 cat >>confdefs.h
<<_ACEOF
9004 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9009 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9010 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9011 $as_echo_n "(cached) " >&6
9013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9024 if ac_fn_c_try_link
"$LINENO"; then :
9025 am_cv_val_LC_MESSAGES
=yes
9027 am_cv_val_LC_MESSAGES
=no
9029 rm -f core conftest.err conftest.
$ac_objext \
9030 conftest
$ac_exeext conftest.
$ac_ext
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9033 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9034 if test $am_cv_val_LC_MESSAGES = yes; then
9036 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9041 # ----------------------- #
9042 # Checks for structures. #
9043 # ----------------------- #
9045 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9046 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
9048 cat >>confdefs.h
<<_ACEOF
9049 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9054 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9055 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
9057 cat >>confdefs.h
<<_ACEOF
9058 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9065 # ------------------ #
9066 # Checks for types. #
9067 # ------------------ #
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9070 $as_echo_n "checking return type of signal handlers... " >&6; }
9071 if test "${ac_cv_type_signal+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #include <sys/types.h>
9082 return *(signal (0, 0)) (0) == 1;
9087 if ac_fn_c_try_compile
"$LINENO"; then :
9088 ac_cv_type_signal
=int
9090 ac_cv_type_signal
=void
9092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9095 $as_echo "$ac_cv_type_signal" >&6; }
9097 cat >>confdefs.h
<<_ACEOF
9098 #define RETSIGTYPE $ac_cv_type_signal
9102 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9103 #include <sys/socket.h>
9106 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
9108 cat >>confdefs.h
<<_ACEOF
9109 #define HAVE_SOCKLEN_T 1
9116 # ------------------------------------- #
9117 # Checks for compiler characteristics. #
9118 # ------------------------------------- #
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9121 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9122 if test "${ac_cv_c_const+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9131 /* FIXME: Include the comments suggested by Paul. */
9133 /* Ultrix mips cc rejects this. */
9134 typedef int charset[2];
9136 /* SunOS 4.1.1 cc rejects this. */
9137 char const *const *pcpcc;
9139 /* NEC SVR4.0.2 mips cc rejects this. */
9140 struct point {int x, y;};
9141 static struct point const zero = {0,0};
9142 /* AIX XL C 1.02.0.0 rejects this.
9143 It does not let you subtract one const X* pointer from another in
9144 an arm of an if-expression whose if-part is not a constant
9146 const char *g = "string";
9147 pcpcc = &g + (g ? g-g : 0);
9148 /* HPUX 7.0 cc rejects these. */
9150 ppc = (char**) pcpcc;
9151 pcpcc = (char const *const *) ppc;
9152 { /* SCO 3.2v4 cc rejects this. */
9154 char const *s = 0 ? (char *) 0 : (char const *) 0;
9159 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9161 const int *foo = &x[0];
9164 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9165 typedef const int *iptr;
9169 { /* AIX XL C 1.02.0.0 rejects this saying
9170 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9171 struct s { int j; const int *ap[3]; };
9172 struct s *b; b->j = 5;
9174 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9178 return !cs[0] && !zero.x;
9185 if ac_fn_c_try_compile
"$LINENO"; then :
9190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9193 $as_echo "$ac_cv_c_const" >&6; }
9194 if test $ac_cv_c_const = no
; then
9196 $as_echo "#define const /**/" >>confdefs.h
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9201 $as_echo_n "checking for inline... " >&6; }
9202 if test "${ac_cv_c_inline+set}" = set; then :
9203 $as_echo_n "(cached) " >&6
9206 for ac_kw
in inline __inline__ __inline
; do
9207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9211 static $ac_kw foo_t static_foo () {return 0; }
9212 $ac_kw foo_t foo () {return 0; }
9216 if ac_fn_c_try_compile
"$LINENO"; then :
9217 ac_cv_c_inline
=$ac_kw
9219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9220 test "$ac_cv_c_inline" != no
&& break
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9225 $as_echo "$ac_cv_c_inline" >&6; }
9227 case $ac_cv_c_inline in
9230 case $ac_cv_c_inline in
9232 *) ac_val
=$ac_cv_c_inline;;
9234 cat >>confdefs.h
<<_ACEOF
9236 #define inline $ac_val
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9243 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9244 if test "${ac_cv_c_bigendian+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
9247 ac_cv_c_bigendian
=unknown
9248 # See if we're dealing with a universal compiler.
9249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9250 /* end confdefs.h. */
9251 #ifndef __APPLE_CC__
9252 not a universal capable compiler
9257 if ac_fn_c_try_compile
"$LINENO"; then :
9259 # Check for potential -arch flags. It is not universal unless
9260 # there are at least two -arch flags with different values.
9263 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9264 if test -n "$ac_prev"; then
9266 i?
86 | x86_64 | ppc | ppc64
)
9267 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9270 ac_cv_c_bigendian
=universal
9276 elif test "x$ac_word" = "x-arch"; then
9281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9282 if test $ac_cv_c_bigendian = unknown
; then
9283 # See if sys/param.h defines the BYTE_ORDER macro.
9284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9286 #include <sys/types.h>
9287 #include <sys/param.h>
9292 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9293 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9302 if ac_fn_c_try_compile
"$LINENO"; then :
9303 # It does; now see whether it defined to BIG_ENDIAN or not.
9304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9306 #include <sys/types.h>
9307 #include <sys/param.h>
9312 #if BYTE_ORDER != BIG_ENDIAN
9320 if ac_fn_c_try_compile
"$LINENO"; then :
9321 ac_cv_c_bigendian
=yes
9323 ac_cv_c_bigendian
=no
9325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9329 if test $ac_cv_c_bigendian = unknown
; then
9330 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9338 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9346 if ac_fn_c_try_compile
"$LINENO"; then :
9347 # It does; now see whether it defined to _BIG_ENDIAN or not.
9348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9363 if ac_fn_c_try_compile
"$LINENO"; then :
9364 ac_cv_c_bigendian
=yes
9366 ac_cv_c_bigendian
=no
9368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9372 if test $ac_cv_c_bigendian = unknown
; then
9373 # Compile a test program.
9374 if test "$cross_compiling" = yes; then :
9375 # Try to guess by grepping values from an object file.
9376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378 short int ascii_mm[] =
9379 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9380 short int ascii_ii[] =
9381 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9382 int use_ascii (int i) {
9383 return ascii_mm[i] + ascii_ii[i];
9385 short int ebcdic_ii[] =
9386 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9387 short int ebcdic_mm[] =
9388 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9389 int use_ebcdic (int i) {
9390 return ebcdic_mm[i] + ebcdic_ii[i];
9397 return use_ascii (foo) == use_ebcdic (foo);
9402 if ac_fn_c_try_compile
"$LINENO"; then :
9403 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9404 ac_cv_c_bigendian
=yes
9406 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9407 if test "$ac_cv_c_bigendian" = unknown
; then
9408 ac_cv_c_bigendian
=no
9410 # finding both strings is unlikely to happen, but who knows?
9411 ac_cv_c_bigendian
=unknown
9415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9419 $ac_includes_default
9424 /* Are we little or big endian? From Harbison&Steele. */
9428 char c[sizeof (long int)];
9431 return u.c[sizeof (long int) - 1] == 1;
9437 if ac_fn_c_try_run
"$LINENO"; then :
9438 ac_cv_c_bigendian
=no
9440 ac_cv_c_bigendian
=yes
9442 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9443 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9449 $as_echo "$ac_cv_c_bigendian" >&6; }
9450 case $ac_cv_c_bigendian in #(
9452 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9458 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9462 as_fn_error
"unknown endianness
9463 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9467 # ------------------------------ #
9468 # Checks for library functions. #
9469 # ------------------------------ #
9471 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9472 # for constant arguments. Useless!
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9474 $as_echo_n "checking for working alloca.h... " >&6; }
9475 if test "${ac_cv_working_alloca_h+set}" = set; then :
9476 $as_echo_n "(cached) " >&6
9478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9484 char *p = (char *) alloca (2 * sizeof (int));
9490 if ac_fn_c_try_link
"$LINENO"; then :
9491 ac_cv_working_alloca_h
=yes
9493 ac_cv_working_alloca_h
=no
9495 rm -f core conftest.err conftest.
$ac_objext \
9496 conftest
$ac_exeext conftest.
$ac_ext
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9499 $as_echo "$ac_cv_working_alloca_h" >&6; }
9500 if test $ac_cv_working_alloca_h = yes; then
9502 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9507 $as_echo_n "checking for alloca... " >&6; }
9508 if test "${ac_cv_func_alloca_works+set}" = set; then :
9509 $as_echo_n "(cached) " >&6
9511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9512 /* end confdefs.h. */
9514 # define alloca __builtin_alloca
9517 # include <malloc.h>
9518 # define alloca _alloca
9520 # ifdef HAVE_ALLOCA_H
9521 # include <alloca.h>
9526 # ifndef alloca /* predefined by HP cc +Olibcalls */
9537 char *p = (char *) alloca (1);
9543 if ac_fn_c_try_link
"$LINENO"; then :
9544 ac_cv_func_alloca_works
=yes
9546 ac_cv_func_alloca_works
=no
9548 rm -f core conftest.err conftest.
$ac_objext \
9549 conftest
$ac_exeext conftest.
$ac_ext
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9552 $as_echo "$ac_cv_func_alloca_works" >&6; }
9554 if test $ac_cv_func_alloca_works = yes; then
9556 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9559 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9560 # that cause trouble. Some versions do not even contain alloca or
9561 # contain a buggy version. If you still want to use their alloca,
9562 # use ar to extract alloca.o from them instead of compiling alloca.c.
9564 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
9566 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9570 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9571 if test "${ac_cv_os_cray+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576 #if defined CRAY && ! defined CRAY2
9583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9584 $EGREP "webecray" >/dev
/null
2>&1; then :
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9593 $as_echo "$ac_cv_os_cray" >&6; }
9594 if test $ac_cv_os_cray = yes; then
9595 for ac_func
in _getb67 GETB67 getb67
; do
9596 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9597 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9598 eval as_val
=\$
$as_ac_var
9599 if test "x$as_val" = x
""yes; then :
9601 cat >>confdefs.h
<<_ACEOF
9602 #define CRAY_STACKSEG_END $ac_func
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9612 $as_echo_n "checking stack direction for C alloca... " >&6; }
9613 if test "${ac_cv_c_stack_direction+set}" = set; then :
9614 $as_echo_n "(cached) " >&6
9616 if test "$cross_compiling" = yes; then :
9617 ac_cv_c_stack_direction
=0
9619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h. */
9621 $ac_includes_default
9623 find_stack_direction ()
9625 static char *addr = 0;
9630 return find_stack_direction ();
9633 return (&dummy > addr) ? 1 : -1;
9639 return find_stack_direction () < 0;
9642 if ac_fn_c_try_run
"$LINENO"; then :
9643 ac_cv_c_stack_direction
=1
9645 ac_cv_c_stack_direction
=-1
9647 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9648 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9653 $as_echo "$ac_cv_c_stack_direction" >&6; }
9654 cat >>confdefs.h
<<_ACEOF
9655 #define STACK_DIRECTION $ac_cv_c_stack_direction
9661 for ac_header
in stdlib.h unistd.h
9663 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9664 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9665 eval as_val
=\$
$as_ac_Header
9666 if test "x$as_val" = x
""yes; then :
9667 cat >>confdefs.h
<<_ACEOF
9668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9675 for ac_func
in getpagesize
9677 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9678 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9679 cat >>confdefs.h
<<_ACEOF
9680 #define HAVE_GETPAGESIZE 1
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9687 $as_echo_n "checking for working mmap... " >&6; }
9688 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9691 if test "$cross_compiling" = yes; then :
9692 ac_cv_func_mmap_fixed_mapped
=no
9694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9695 /* end confdefs.h. */
9696 $ac_includes_default
9697 /* malloc might have been renamed as rpl_malloc. */
9700 /* Thanks to Mike Haertel and Jim Avera for this test.
9701 Here is a matrix of mmap possibilities:
9702 mmap private not fixed
9703 mmap private fixed at somewhere currently unmapped
9704 mmap private fixed at somewhere already mapped
9705 mmap shared not fixed
9706 mmap shared fixed at somewhere currently unmapped
9707 mmap shared fixed at somewhere already mapped
9708 For private mappings, we should verify that changes cannot be read()
9709 back from the file, nor mmap's back from the file at a different
9710 address. (There have been systems where private was not correctly
9711 implemented like the infamous i386 svr4.0, and systems where the
9712 VM page cache was not coherent with the file system buffer cache
9713 like early versions of FreeBSD and possibly contemporary NetBSD.)
9714 For shared mappings, we should conversely verify that changes get
9715 propagated back to all the places they're supposed to be.
9717 Grep wants private fixed already mapped.
9718 The main things grep needs to know about mmap are:
9719 * does it exist and is it safe to write into the mmap'd area
9720 * how to use it (BSD variants) */
9723 #include <sys/mman.h>
9725 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9729 /* This mess was copied from the GNU getpagesize.h. */
9730 #ifndef HAVE_GETPAGESIZE
9731 /* Assume that all systems that can run configure have sys/param.h. */
9732 # ifndef HAVE_SYS_PARAM_H
9733 # define HAVE_SYS_PARAM_H 1
9736 # ifdef _SC_PAGESIZE
9737 # define getpagesize() sysconf(_SC_PAGESIZE)
9738 # else /* no _SC_PAGESIZE */
9739 # ifdef HAVE_SYS_PARAM_H
9740 # include <sys/param.h>
9741 # ifdef EXEC_PAGESIZE
9742 # define getpagesize() EXEC_PAGESIZE
9743 # else /* no EXEC_PAGESIZE */
9745 # define getpagesize() NBPG * CLSIZE
9748 # endif /* no CLSIZE */
9749 # else /* no NBPG */
9751 # define getpagesize() NBPC
9752 # else /* no NBPC */
9754 # define getpagesize() PAGESIZE
9755 # endif /* PAGESIZE */
9756 # endif /* no NBPC */
9757 # endif /* no NBPG */
9758 # endif /* no EXEC_PAGESIZE */
9759 # else /* no HAVE_SYS_PARAM_H */
9760 # define getpagesize() 8192 /* punt totally */
9761 # endif /* no HAVE_SYS_PARAM_H */
9762 # endif /* no _SC_PAGESIZE */
9764 #endif /* no HAVE_GETPAGESIZE */
9769 char *data, *data2, *data3;
9773 pagesize = getpagesize ();
9775 /* First, make a file with some known garbage in it. */
9776 data = (char *) malloc (pagesize);
9779 for (i = 0; i < pagesize; ++i)
9780 *(data + i) = rand ();
9782 fd = creat ("conftest.mmap", 0600);
9785 if (write (fd, data, pagesize) != pagesize)
9789 /* Next, try to mmap the file at a fixed address which already has
9790 something else allocated at it. If we can, also make sure that
9791 we see the same garbage. */
9792 fd = open ("conftest.mmap", O_RDWR);
9795 data2 = (char *) malloc (2 * pagesize);
9798 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9799 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9800 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9802 for (i = 0; i < pagesize; ++i)
9803 if (*(data + i) != *(data2 + i))
9806 /* Finally, make sure that changes to the mapped area do not
9807 percolate back to the file as seen by read(). (This is a bug on
9808 some variants of i386 svr4.0.) */
9809 for (i = 0; i < pagesize; ++i)
9810 *(data2 + i) = *(data2 + i) + 1;
9811 data3 = (char *) malloc (pagesize);
9814 if (read (fd, data3, pagesize) != pagesize)
9816 for (i = 0; i < pagesize; ++i)
9817 if (*(data + i) != *(data3 + i))
9823 if ac_fn_c_try_run
"$LINENO"; then :
9824 ac_cv_func_mmap_fixed_mapped
=yes
9826 ac_cv_func_mmap_fixed_mapped
=no
9828 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9829 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9834 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9835 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9837 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9842 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9843 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9847 cat >>confdefs.h
<<_ACEOF
9853 for ac_header
in vfork.h
9855 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9856 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9857 cat >>confdefs.h
<<_ACEOF
9858 #define HAVE_VFORK_H 1
9865 for ac_func
in fork vfork
9867 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9868 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9869 eval as_val
=\$
$as_ac_var
9870 if test "x$as_val" = x
""yes; then :
9871 cat >>confdefs.h
<<_ACEOF
9872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9878 if test "x$ac_cv_func_fork" = xyes
; then
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9880 $as_echo_n "checking for working fork... " >&6; }
9881 if test "${ac_cv_func_fork_works+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
9884 if test "$cross_compiling" = yes; then :
9885 ac_cv_func_fork_works
=cross
9887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 $ac_includes_default
9894 /* By Ruediger Kuhlmann. */
9901 if ac_fn_c_try_run
"$LINENO"; then :
9902 ac_cv_func_fork_works
=yes
9904 ac_cv_func_fork_works
=no
9906 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9907 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9912 $as_echo "$ac_cv_func_fork_works" >&6; }
9915 ac_cv_func_fork_works
=$ac_cv_func_fork
9917 if test "x$ac_cv_func_fork_works" = xcross
; then
9919 *-*-amigaos* |
*-*-msdosdjgpp*)
9920 # Override, as these systems have only a dummy fork() stub
9921 ac_cv_func_fork_works
=no
9924 ac_cv_func_fork_works
=yes
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9928 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9930 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9931 if test "x$ac_cv_func_vfork" = xyes
; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9933 $as_echo_n "checking for working vfork... " >&6; }
9934 if test "${ac_cv_func_vfork_works+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9937 if test "$cross_compiling" = yes; then :
9938 ac_cv_func_vfork_works
=cross
9940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 /* Thanks to Paul Eggert for this test. */
9943 $ac_includes_default
9944 #include <sys/wait.h>
9948 /* On some sparc systems, changes by the child to local and incoming
9949 argument registers are propagated back to the parent. The compiler
9950 is told about this with #include <vfork.h>, but some compilers
9951 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9952 static variable whose address is put into a register that is
9953 clobbered by the vfork. */
9956 sparc_address_test (int arg)
9958 sparc_address_test (arg) int arg;
9979 pid_t parent = getpid ();
9982 sparc_address_test (0);
9987 /* Here is another test for sparc vfork register problems. This
9988 test uses lots of local variables, at least as many local
9989 variables as main has allocated so far including compiler
9990 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9991 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9992 reuse the register of parent for one of the local variables,
9993 since it will think that parent can't possibly be used any more
9994 in this routine. Assigning to the local variable will thus
9995 munge parent in the parent process. */
9997 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9998 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9999 /* Convince the compiler that p..p7 are live; otherwise, it might
10000 use the same hardware register for all 8 local variables. */
10001 if (p != p1 || p != p2 || p != p3 || p != p4
10002 || p != p5 || p != p6 || p != p7)
10005 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10006 from child file descriptors. If the child closes a descriptor
10007 before it execs or exits, this munges the parent's descriptor
10008 as well. Test for this by closing stdout in the child. */
10009 _exit(close(fileno(stdout)) != 0);
10014 while (wait(&status) != child)
10017 /* Was there some problem with vforking? */
10020 /* Did the child fail? (This shouldn't happen.) */
10023 /* Did the vfork/compiler bug occur? */
10024 || parent != getpid()
10026 /* Did the file descriptor bug occur? */
10027 || fstat(fileno(stdout), &st) != 0
10032 if ac_fn_c_try_run
"$LINENO"; then :
10033 ac_cv_func_vfork_works
=yes
10035 ac_cv_func_vfork_works
=no
10037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10043 $as_echo "$ac_cv_func_vfork_works" >&6; }
10046 if test "x$ac_cv_func_fork_works" = xcross
; then
10047 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10049 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10052 if test "x$ac_cv_func_vfork_works" = xyes
; then
10054 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10058 $as_echo "#define vfork fork" >>confdefs.h
10061 if test "x$ac_cv_func_fork_works" = xyes
; then
10063 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10067 for ac_func
in canonicalize_file_name realpath getrusage getuid getgid \
10068 pipe poll pread pread64 pwrite readlink resize_term \
10069 sbrk setpgid setpgrp setsid \
10070 sigaction sigprocmask sigsetmask socketpair syscall \
10071 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10072 setrlimit getrlimit posix_madvise waitpid lstat
10074 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10075 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10076 eval as_val
=\$
$as_ac_var
10077 if test "x$as_val" = x
""yes; then :
10078 cat >>confdefs.h
<<_ACEOF
10079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10087 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10088 if test "${am_cv_langinfo_codeset+set}" = set; then :
10089 $as_echo_n "(cached) " >&6
10091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10092 /* end confdefs.h. */
10093 #include <langinfo.h>
10097 char* cs = nl_langinfo(CODESET);
10102 if ac_fn_c_try_link
"$LINENO"; then :
10103 am_cv_langinfo_codeset
=yes
10105 am_cv_langinfo_codeset
=no
10107 rm -f core conftest.err conftest.
$ac_objext \
10108 conftest
$ac_exeext conftest.
$ac_ext
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10112 $as_echo "$am_cv_langinfo_codeset" >&6; }
10113 if test $am_cv_langinfo_codeset = yes; then
10115 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10120 # Check the return and argument types of ptrace. No canned test for
10121 # this, so roll our own.
10122 gdb_ptrace_headers
='
10123 #if HAVE_SYS_TYPES_H
10124 # include <sys/types.h>
10126 #if HAVE_SYS_PTRACE_H
10127 # include <sys/ptrace.h>
10130 # include <unistd.h>
10133 # There is no point in checking if we don't have a prototype.
10134 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10136 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
10142 cat >>confdefs.h
<<_ACEOF
10143 #define HAVE_DECL_PTRACE $ac_have_decl
10145 if test $ac_have_decl = 1; then :
10149 : ${gdb_cv_func_ptrace_ret='int'}
10150 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10154 # Check return type. Varargs (used on GNU/Linux) conflict with the
10155 # empty argument list, so check for that explicitly.
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10157 $as_echo_n "checking return type of ptrace... " >&6; }
10158 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
10159 $as_echo_n "(cached) " >&6
10161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163 $gdb_ptrace_headers
10167 extern long ptrace (enum __ptrace_request, ...);
10172 if ac_fn_c_try_compile
"$LINENO"; then :
10173 gdb_cv_func_ptrace_ret
='long'
10175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10177 $gdb_ptrace_headers
10181 extern int ptrace ();
10186 if ac_fn_c_try_compile
"$LINENO"; then :
10187 gdb_cv_func_ptrace_ret
='int'
10189 gdb_cv_func_ptrace_ret
='long'
10191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10196 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10198 cat >>confdefs.h
<<_ACEOF
10199 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10202 # Check argument types.
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10204 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10205 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
10206 $as_echo_n "(cached) " >&6
10209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10210 /* end confdefs.h. */
10211 $gdb_ptrace_headers
10215 extern long ptrace (enum __ptrace_request, ...);
10220 if ac_fn_c_try_compile
"$LINENO"; then :
10221 gdb_cv_func_ptrace_args
='int,int,long,long'
10224 for gdb_arg1
in 'int' 'long'; do
10225 for gdb_arg2
in 'pid_t' 'int' 'long'; do
10226 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10227 for gdb_arg4
in 'int' 'long'; do
10228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10230 $gdb_ptrace_headers
10235 extern $gdb_cv_func_ptrace_ret
10236 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10242 if ac_fn_c_try_compile
"$LINENO"; then :
10243 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10247 for gdb_arg5
in 'int *' 'int' 'long'; do
10248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10250 $gdb_ptrace_headers
10255 extern $gdb_cv_func_ptrace_ret
10256 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10262 if ac_fn_c_try_compile
"$LINENO"; then :
10264 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10273 # Provide a safe default value.
10274 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10280 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10281 ac_save_IFS
=$IFS; IFS
=','
10282 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10286 cat >>confdefs.h
<<_ACEOF
10287 #define PTRACE_TYPE_ARG3 $3
10290 if test -n "$5"; then
10292 cat >>confdefs.h
<<_ACEOF
10293 #define PTRACE_TYPE_ARG5 $5
10298 if test "$cross_compiling" = no
; then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10300 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10301 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10302 $as_echo_n "(cached) " >&6
10304 if test "$cross_compiling" = yes; then :
10305 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
10307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309 $ac_includes_default
10313 /* If this system has a BSD-style setpgrp which takes arguments,
10314 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10315 exit successfully. */
10316 return setpgrp (1,1) != -1;
10321 if ac_fn_c_try_run
"$LINENO"; then :
10322 ac_cv_func_setpgrp_void
=no
10324 ac_cv_func_setpgrp_void
=yes
10326 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10327 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10332 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10333 if test $ac_cv_func_setpgrp_void = yes; then
10335 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10341 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10342 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10343 $as_echo_n "(cached) " >&6
10345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10348 #include <unistd.h>
10354 if (setpgrp(1,1) == -1)
10363 if ac_fn_c_try_compile
"$LINENO"; then :
10364 ac_cv_func_setpgrp_void
=no
10366 ac_cv_func_setpgrp_void
=yes
10368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10371 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10372 if test $ac_cv_func_setpgrp_void = yes; then
10373 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10378 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
10379 # since sigsetjmp might only be defined as a macro.
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
10381 $as_echo_n "checking for sigsetjmp... " >&6; }
10382 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
10383 $as_echo_n "(cached) " >&6
10385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10388 #include <setjmp.h>
10393 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
10398 if ac_fn_c_try_compile
"$LINENO"; then :
10399 gdb_cv_func_sigsetjmp
=yes
10401 gdb_cv_func_sigsetjmp
=no
10403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
10406 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
10407 if test $gdb_cv_func_sigsetjmp = yes; then
10409 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
10413 # Assume we'll default to using the included libiberty regex.
10414 gdb_use_included_regex
=yes
10416 # However, if the system regex is GNU regex, then default to *not*
10417 # using the included regex.
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
10419 $as_echo_n "checking for GNU regex... " >&6; }
10420 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
10421 $as_echo_n "(cached) " >&6
10423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 #include <gnu-versions.h>
10429 #define REGEX_INTERFACE_VERSION 1
10430 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
10431 # error "Version mismatch"
10437 if ac_fn_c_try_compile
"$LINENO"; then :
10438 gdb_cv_have_gnu_regex
=yes
10440 gdb_cv_have_gnu_regex
=no
10442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
10445 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
10446 if test $gdb_cv_have_gnu_regex = yes; then
10447 gdb_use_included_regex
=no
10451 # Check whether --with-included-regex was given.
10452 if test "${with_included_regex+set}" = set; then :
10453 withval
=$with_included_regex; gdb_with_regex
=$withval
10455 gdb_with_regex
=$gdb_use_included_regex
10458 if test "$gdb_with_regex" = yes; then
10460 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
10464 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
10465 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
10466 #include <sys/proc.h>
10469 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
10471 cat >>confdefs.h
<<_ACEOF
10472 #define HAVE_STRUCT_THREAD_TD_PCB 1
10479 # See if <sys/lwp.h> defines `struct lwp`.
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
10481 $as_echo_n "checking for struct lwp... " >&6; }
10482 if test "${gdb_cv_struct_lwp+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10487 #include <sys/param.h>
10488 #include <sys/lwp.h>
10497 if ac_fn_c_try_compile
"$LINENO"; then :
10498 gdb_cv_struct_lwp
=yes
10500 gdb_cv_struct_lwp
=no
10502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
10505 $as_echo "$gdb_cv_struct_lwp" >&6; }
10506 if test $gdb_cv_struct_lwp = yes; then
10508 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
10512 # See if <machine/reg.h> degines `struct reg'.
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
10514 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
10515 if test "${gdb_cv_struct_reg+set}" = set; then :
10516 $as_echo_n "(cached) " >&6
10518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10519 /* end confdefs.h. */
10520 #include <sys/types.h>
10521 #include <machine/reg.h>
10530 if ac_fn_c_try_compile
"$LINENO"; then :
10531 gdb_cv_struct_reg
=yes
10533 gdb_cv_struct_reg
=no
10535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
10538 $as_echo "$gdb_cv_struct_reg" >&6; }
10539 if test $gdb_cv_struct_reg = yes; then
10541 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
10545 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
10546 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
10547 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
10549 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
10551 cat >>confdefs.h
<<_ACEOF
10552 #define HAVE_STRUCT_REG_R_FS 1
10557 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
10559 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
10561 cat >>confdefs.h
<<_ACEOF
10562 #define HAVE_STRUCT_REG_R_GS 1
10569 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10571 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10572 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
10573 $as_echo_n "(cached) " >&6
10575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h. */
10577 #include <sys/ptrace.h>
10586 if ac_fn_c_try_compile
"$LINENO"; then :
10587 gdb_cv_have_ptrace_getregs
=yes
10589 gdb_cv_have_ptrace_getregs
=no
10591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
10595 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
10596 if test $gdb_cv_have_ptrace_getregs = yes; then
10598 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10602 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10604 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10605 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
10606 $as_echo_n "(cached) " >&6
10608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10610 #include <sys/ptrace.h>
10619 if ac_fn_c_try_compile
"$LINENO"; then :
10620 gdb_cv_have_ptrace_getfpxregs
=yes
10622 gdb_cv_have_ptrace_getfpxregs
=no
10624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
10628 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
10629 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
10631 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10635 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
10637 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
10638 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
10639 $as_echo_n "(cached) " >&6
10641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10643 #include <sys/types.h>
10644 #include <sys/ptrace.h>
10653 if ac_fn_c_try_compile
"$LINENO"; then :
10654 gdb_cv_have_pt_getdbregs
=yes
10656 gdb_cv_have_pt_getdbregs
=no
10658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
10662 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
10663 if test $gdb_cv_have_pt_getdbregs = yes; then
10665 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
10669 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
10671 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
10672 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
10673 $as_echo_n "(cached) " >&6
10675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 #include <sys/types.h>
10678 #include <sys/ptrace.h>
10687 if ac_fn_c_try_compile
"$LINENO"; then :
10688 gdb_cv_have_pt_getxmmregs
=yes
10690 gdb_cv_have_pt_getxmmregs
=no
10692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
10696 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
10697 if test $gdb_cv_have_pt_getxmmregs = yes; then
10699 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
10703 # Detect which type of /proc is in use, such as for Unixware or Solaris.
10705 if test "${target}" = "${host}"; then
10707 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
10709 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10712 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
10714 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10718 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
10720 $as_echo "#define _KMEMUSER 1" >>confdefs.h
10726 if test "$ac_cv_header_sys_procfs_h" = yes; then
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
10728 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
10729 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
10730 $as_echo_n "(cached) " >&6
10732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10736 /* Needed for new procfs interface on sparc-solaris. */
10737 #define _STRUCTURED_PROC 1
10738 #include <sys/procfs.h>
10747 if ac_fn_c_try_compile
"$LINENO"; then :
10748 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
10750 bfd_cv_have_sys_procfs_type_pstatus_t
=no
10753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10756 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10758 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10762 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
10765 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
10766 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
10769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10773 /* Needed for new procfs interface on sparc-solaris. */
10774 #define _STRUCTURED_PROC 1
10775 #include <sys/procfs.h>
10784 if ac_fn_c_try_compile
"$LINENO"; then :
10785 bfd_cv_have_sys_procfs_type_prrun_t
=yes
10787 bfd_cv_have_sys_procfs_type_prrun_t
=no
10790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10793 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
10795 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
10799 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10802 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10803 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
10804 $as_echo_n "(cached) " >&6
10806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10810 /* Needed for new procfs interface on sparc-solaris. */
10811 #define _STRUCTURED_PROC 1
10812 #include <sys/procfs.h>
10821 if ac_fn_c_try_compile
"$LINENO"; then :
10822 bfd_cv_have_sys_procfs_type_gregset_t
=yes
10824 bfd_cv_have_sys_procfs_type_gregset_t
=no
10827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10830 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10832 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10836 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10839 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10840 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
10841 $as_echo_n "(cached) " >&6
10843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10847 /* Needed for new procfs interface on sparc-solaris. */
10848 #define _STRUCTURED_PROC 1
10849 #include <sys/procfs.h>
10858 if ac_fn_c_try_compile
"$LINENO"; then :
10859 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
10861 bfd_cv_have_sys_procfs_type_fpregset_t
=no
10864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10867 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10869 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10873 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10876 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10877 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10884 /* Needed for new procfs interface on sparc-solaris. */
10885 #define _STRUCTURED_PROC 1
10886 #include <sys/procfs.h>
10895 if ac_fn_c_try_compile
"$LINENO"; then :
10896 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
10898 bfd_cv_have_sys_procfs_type_prgregset_t
=no
10901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10904 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10906 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10910 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10913 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10914 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
10915 $as_echo_n "(cached) " >&6
10917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10921 /* Needed for new procfs interface on sparc-solaris. */
10922 #define _STRUCTURED_PROC 1
10923 #include <sys/procfs.h>
10932 if ac_fn_c_try_compile
"$LINENO"; then :
10933 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
10935 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
10938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10941 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10943 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10947 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10950 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10951 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
10952 $as_echo_n "(cached) " >&6
10954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10958 /* Needed for new procfs interface on sparc-solaris. */
10959 #define _STRUCTURED_PROC 1
10960 #include <sys/procfs.h>
10969 if ac_fn_c_try_compile
"$LINENO"; then :
10970 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
10972 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
10975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10978 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10980 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10984 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
10987 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
10988 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
10989 $as_echo_n "(cached) " >&6
10991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10995 /* Needed for new procfs interface on sparc-solaris. */
10996 #define _STRUCTURED_PROC 1
10997 #include <sys/procfs.h>
11001 prfpregset32_t avar
11006 if ac_fn_c_try_compile
"$LINENO"; then :
11007 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
11009 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
11012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11015 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
11017 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
11021 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11024 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11025 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
11028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11032 /* Needed for new procfs interface on sparc-solaris. */
11033 #define _STRUCTURED_PROC 1
11034 #include <sys/procfs.h>
11043 if ac_fn_c_try_compile
"$LINENO"; then :
11044 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
11046 bfd_cv_have_sys_procfs_type_lwpid_t
=no
11049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11052 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11054 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11058 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11061 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11062 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11063 $as_echo_n "(cached) " >&6
11065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11069 /* Needed for new procfs interface on sparc-solaris. */
11070 #define _STRUCTURED_PROC 1
11071 #include <sys/procfs.h>
11080 if ac_fn_c_try_compile
"$LINENO"; then :
11081 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
11083 bfd_cv_have_sys_procfs_type_psaddr_t
=no
11086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11089 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11091 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11095 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11098 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11099 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
11102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11106 /* Needed for new procfs interface on sparc-solaris. */
11107 #define _STRUCTURED_PROC 1
11108 #include <sys/procfs.h>
11117 if ac_fn_c_try_compile
"$LINENO"; then :
11118 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
11120 bfd_cv_have_sys_procfs_type_prsysent_t
=no
11123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11126 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11128 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11132 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11135 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11136 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11137 $as_echo_n "(cached) " >&6
11139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h. */
11143 /* Needed for new procfs interface on sparc-solaris. */
11144 #define _STRUCTURED_PROC 1
11145 #include <sys/procfs.h>
11154 if ac_fn_c_try_compile
"$LINENO"; then :
11155 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
11157 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
11160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11163 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11165 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11169 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11172 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11173 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11174 $as_echo_n "(cached) " >&6
11176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h. */
11180 /* Needed for new procfs interface on sparc-solaris. */
11181 #define _STRUCTURED_PROC 1
11182 #include <sys/procfs.h>
11186 pr_sigaction64_t avar
11191 if ac_fn_c_try_compile
"$LINENO"; then :
11192 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
11194 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
11197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11200 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11202 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11206 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11209 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11210 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11211 $as_echo_n "(cached) " >&6
11213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11217 /* Needed for new procfs interface on sparc-solaris. */
11218 #define _STRUCTURED_PROC 1
11219 #include <sys/procfs.h>
11223 pr_siginfo64_t avar
11228 if ac_fn_c_try_compile
"$LINENO"; then :
11229 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
11231 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
11234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11237 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
11239 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
11243 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
11249 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
11251 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
11252 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
11253 $as_echo_n "(cached) " >&6
11255 if test "$cross_compiling" = yes; then :
11256 gdb_cv_prfpregset_t_broken
=yes
11258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11260 #include <sys/procfs.h>
11263 if (sizeof (prfpregset_t) == sizeof (void *))
11268 if ac_fn_c_try_run
"$LINENO"; then :
11269 gdb_cv_prfpregset_t_broken
=no
11271 gdb_cv_prfpregset_t_broken
=yes
11273 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11274 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
11280 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
11281 if test $gdb_cv_prfpregset_t_broken = yes; then
11283 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
11290 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
11291 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
11292 $as_echo_n "(cached) " >&6
11294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11296 #include <unistd.h>
11297 #include <sys/types.h>
11298 #include <sys/procfs.h>
11305 dummy = ioctl(0, PIOCSET, &dummy);
11311 if ac_fn_c_try_compile
"$LINENO"; then :
11312 gdb_cv_have_procfs_piocset
=yes
11314 gdb_cv_have_procfs_piocset
=no
11316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
11320 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
11321 if test $gdb_cv_have_procfs_piocset = yes; then
11323 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
11328 if test ${host} = ${target} ; then
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
11331 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
11332 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
11333 $as_echo_n "(cached) " >&6
11335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11341 struct link_map lm; (void) lm.l_addr;
11346 if ac_fn_c_try_compile
"$LINENO"; then :
11347 gdb_cv_have_struct_link_map_with_l_members
=yes
11349 gdb_cv_have_struct_link_map_with_l_members
=no
11351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
11355 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
11356 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
11358 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
11364 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
11365 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
11366 $as_echo_n "(cached) " >&6
11368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11370 #include <sys/types.h>
11375 struct link_map lm; (void) lm.lm_addr;
11380 if ac_fn_c_try_compile
"$LINENO"; then :
11381 gdb_cv_have_struct_link_map_with_lm_members
=yes
11383 gdb_cv_have_struct_link_map_with_lm_members
=no
11385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
11389 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
11390 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
11392 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
11398 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
11399 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
11402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11404 #include <sys/types.h>
11405 #ifdef HAVE_NLIST_H
11412 struct so_map lm; (void) lm.som_addr;
11417 if ac_fn_c_try_compile
"$LINENO"; then :
11418 gdb_cv_have_struct_so_map_with_som_members
=yes
11420 gdb_cv_have_struct_so_map_with_som_members
=no
11422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
11426 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
11427 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
11429 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
11435 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
11436 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
11437 $as_echo_n "(cached) " >&6
11439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11442 #include <sys/link.h>
11446 struct link_map32 l;
11451 if ac_fn_c_try_compile
"$LINENO"; then :
11452 gdb_cv_have_struct_link_map32
=yes
11454 gdb_cv_have_struct_link_map32
=no
11456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
11460 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
11461 if test $gdb_cv_have_struct_link_map32 = yes; then
11463 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
11466 $as_echo "#define _SYSCALL32 1" >>confdefs.h
11471 # Check if the compiler supports the `long long' type.
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
11474 $as_echo_n "checking for long long support in compiler... " >&6; }
11475 if test "${gdb_cv_c_long_long+set}" = set; then :
11476 $as_echo_n "(cached) " >&6
11478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11480 extern long long foo;
11484 switch (foo & 2) { case 0: return 1; }
11489 if ac_fn_c_try_compile
"$LINENO"; then :
11490 gdb_cv_c_long_long
=yes
11492 gdb_cv_c_long_long
=no
11494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
11497 $as_echo "$gdb_cv_c_long_long" >&6; }
11498 if test $gdb_cv_c_long_long = yes; then
11500 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
11504 # Check if the compiler and runtime support printing long longs.
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
11507 $as_echo_n "checking for long long support in printf... " >&6; }
11508 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
11509 $as_echo_n "(cached) " >&6
11511 if test "$cross_compiling" = yes; then :
11512 gdb_cv_printf_has_long_long
=no
11514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11516 $ac_includes_default
11522 l = (l << 16) + 0x0123;
11523 l = (l << 16) + 0x4567;
11524 l = (l << 16) + 0x89ab;
11525 l = (l << 16) + 0xcdef;
11526 sprintf (buf, "0x%016llx", l);
11527 return (strcmp ("0x0123456789abcdef", buf));
11532 if ac_fn_c_try_run
"$LINENO"; then :
11533 gdb_cv_printf_has_long_long
=yes
11535 gdb_cv_printf_has_long_long
=no
11537 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11538 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
11543 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
11544 if test $gdb_cv_printf_has_long_long = yes; then
11546 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
11550 # Check if the compiler and runtime support printing decfloats.
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
11553 $as_echo_n "checking for decfloat support in printf... " >&6; }
11554 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
11557 if test "$cross_compiling" = yes; then :
11558 gdb_cv_printf_has_decfloat
=no
11560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11562 $ac_includes_default
11567 _Decimal32 d32 = 1.2345df;
11568 _Decimal64 d64 = 1.2345dd;
11569 _Decimal128 d128 = 1.2345dl;
11570 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
11571 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
11576 if ac_fn_c_try_run
"$LINENO"; then :
11577 gdb_cv_printf_has_decfloat
=yes
11579 gdb_cv_printf_has_decfloat
=no
11581 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11582 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
11587 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
11588 if test $gdb_cv_printf_has_decfloat = yes; then
11590 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
11594 # Check if the compiler supports the `long double' type. We can't use
11595 # AC_C_LONG_DOUBLE because that one does additional checks on the
11596 # constants defined in <float.h> that fail on some systems,
11597 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
11600 $as_echo_n "checking for long double support in compiler... " >&6; }
11601 if test "${gdb_cv_c_long_double+set}" = set; then :
11602 $as_echo_n "(cached) " >&6
11604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11608 if ac_fn_c_try_compile
"$LINENO"; then :
11609 gdb_cv_c_long_double
=yes
11611 gdb_cv_c_long_double
=no
11613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
11616 $as_echo "$gdb_cv_c_long_double" >&6; }
11617 if test $gdb_cv_c_long_double = yes; then
11619 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11623 # Check if the compiler and runtime support printing long doubles.
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
11626 $as_echo_n "checking for long double support in printf... " >&6; }
11627 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
11628 $as_echo_n "(cached) " >&6
11630 if test "$cross_compiling" = yes; then :
11631 gdb_cv_printf_has_long_double
=no
11633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11635 $ac_includes_default
11640 long double f = 3.141592653;
11641 sprintf (buf, "%Lg", f);
11642 return (strncmp ("3.14159", buf, 7));
11647 if ac_fn_c_try_run
"$LINENO"; then :
11648 gdb_cv_printf_has_long_double
=yes
11650 gdb_cv_printf_has_long_double
=no
11652 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11653 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
11658 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
11659 if test $gdb_cv_printf_has_long_double = yes; then
11661 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
11665 # Check if the compiler and runtime support scanning long doubles.
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
11668 $as_echo_n "checking for long double support in scanf... " >&6; }
11669 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
11670 $as_echo_n "(cached) " >&6
11672 if test "$cross_compiling" = yes; then :
11673 gdb_cv_scanf_has_long_double
=no
11675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11681 char *buf = "3.141592653";
11683 sscanf (buf, "%Lg", &f);
11684 return !(f > 3.14159 && f < 3.14160);
11689 if ac_fn_c_try_run
"$LINENO"; then :
11690 gdb_cv_scanf_has_long_double
=yes
11692 gdb_cv_scanf_has_long_double
=no
11694 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11695 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
11700 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
11701 if test $gdb_cv_scanf_has_long_double = yes; then
11703 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11710 $as_echo_n "checking for -bbigtoc option... " >&6; }
11711 if test "${gdb_cv_bigtoc+set}" = set; then :
11712 $as_echo_n "(cached) " >&6
11715 SAVE_LDFLAGS
=$LDFLAGS
11718 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11719 *) gdb_cv_bigtoc
=-bbigtoc ;;
11722 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11724 /* end confdefs.h. */
11734 if ac_fn_c_try_link
"$LINENO"; then :
11739 rm -f core conftest.err conftest.
$ac_objext \
11740 conftest
$ac_exeext conftest.
$ac_ext
11741 LDFLAGS
="${SAVE_LDFLAGS}"
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11745 $as_echo "$gdb_cv_bigtoc" >&6; }
11746 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
11751 $as_echo_n "checking for the dynamic export flag... " >&6; }
11753 if test "${gdb_native}" = yes; then
11754 # The dynamically loaded libthread_db needs access to symbols in the gdb
11755 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
11756 # may not be supported there.
11757 old_LDFLAGS
="$LDFLAGS"
11758 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
11759 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
11760 LDFLAGS
="$LDFLAGS $RDYNAMIC"
11761 if test "${have_libpython}" = no
; then
11762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11773 if ac_fn_c_try_link
"$LINENO"; then :
11776 rm -f core conftest.err conftest.
$ac_objext \
11777 conftest
$ac_exeext conftest.
$ac_ext
11779 # Workaround http://bugs.python.org/issue4434 where static
11780 # libpythonX.Y.a would get its symbols required for
11781 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
11782 # Problem does not happen for the recommended libpythonX.Y.so linkage.
11783 old_CFLAGS
="$CFLAGS"
11784 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
11785 if test "$cross_compiling" = yes; then :
11788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11790 #include "${have_libpython}/Python.h"
11796 err = PyRun_SimpleString ("import itertools\n");
11798 return err == 0 ? 0 : 1;
11803 if ac_fn_c_try_run
"$LINENO"; then :
11806 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11807 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11810 CFLAGS
="$old_CFLAGS"
11812 LDFLAGS
="$old_LDFLAGS"
11814 if $dynamic_list; then
11815 found
="-Wl,--dynamic-list"
11816 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
11819 RDYNAMIC
="-rdynamic"
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
11823 $as_echo "$found" >&6; }
11826 if test ${build} = ${host} -a ${host} = ${target} ; then
11829 # See if thread_db library is around for Solaris thread debugging.
11830 # Note that we must explicitly test for version 1 of the library
11831 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
11834 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
11835 if test -f /usr
/lib
/libthread_db.so
.1 ; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837 $as_echo "yes" >&6; }
11839 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
11841 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
11842 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11844 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11845 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11846 $as_echo_n "(cached) " >&6
11848 ac_check_lib_save_LIBS
=$LIBS
11850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11853 /* Override any GCC internal prototype to avoid an error.
11854 Use char because int might match the return type of a GCC
11855 builtin and then its argument prototype would still apply. */
11868 if ac_fn_c_try_link
"$LINENO"; then :
11869 ac_cv_lib_dl_dlopen
=yes
11871 ac_cv_lib_dl_dlopen
=no
11873 rm -f core conftest.err conftest.
$ac_objext \
11874 conftest
$ac_exeext conftest.
$ac_ext
11875 LIBS
=$ac_check_lib_save_LIBS
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11878 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11879 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11880 cat >>confdefs.h
<<_ACEOF
11881 #define HAVE_LIBDL 1
11888 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
11889 # Sun randomly tweaked the prototypes in <proc_service.h>
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
11892 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
11893 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
11894 $as_echo_n "(cached) " >&6
11897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11900 #include <proc_service.h>
11901 ps_err_e ps_pdwrite
11902 (struct ps_prochandle*, psaddr_t, const void*, size_t);
11912 if ac_fn_c_try_compile
"$LINENO"; then :
11913 gdb_cv_proc_service_is_old
=no
11915 gdb_cv_proc_service_is_old
=yes
11917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
11922 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
11923 if test $gdb_cv_proc_service_is_old = yes; then
11925 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
11935 $as_echo_n "checking for AiX thread debugging library... " >&6; }
11936 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
11937 $as_echo_n "(cached) " >&6
11939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11941 #include <sys/pthdebug.h>
11945 #ifndef PTHDB_VERSION_3
11952 if ac_fn_c_try_compile
"$LINENO"; then :
11953 gdb_cv_have_aix_thread_debug
=yes
11955 gdb_cv_have_aix_thread_debug
=no
11957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
11961 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
11962 if test $gdb_cv_have_aix_thread_debug = yes; then
11963 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
11964 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
11965 LIBS
="$LIBS -lpthdebug"
11967 # Older versions of AIX do not provide the declaration for
11968 # the getthrds function (it appears that it was introduced
11970 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
11972 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
11978 cat >>confdefs.h
<<_ACEOF
11979 #define HAVE_DECL_GETTHRDS $ac_have_decl
11988 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
11990 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
11991 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
11992 $as_echo_n "(cached) " >&6
11994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996 #include <thread_db.h>
12000 int i = TD_NOTALLOC;
12005 if ac_fn_c_try_compile
"$LINENO"; then :
12006 gdb_cv_thread_db_h_has_td_notalloc
=yes
12008 gdb_cv_thread_db_h_has_td_notalloc
=no
12011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12015 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12017 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12018 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12019 $as_echo_n "(cached) " >&6
12021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12023 #include <thread_db.h>
12027 int i = TD_VERSION;
12032 if ac_fn_c_try_compile
"$LINENO"; then :
12033 gdb_cv_thread_db_h_has_td_version
=yes
12035 gdb_cv_thread_db_h_has_td_version
=no
12038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12042 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12044 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12045 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12046 $as_echo_n "(cached) " >&6
12048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050 #include <thread_db.h>
12059 if ac_fn_c_try_compile
"$LINENO"; then :
12060 gdb_cv_thread_db_h_has_td_notls
=yes
12062 gdb_cv_thread_db_h_has_td_notls
=no
12065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12069 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12071 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12073 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12076 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12078 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12081 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12083 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12087 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12089 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12090 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12091 $as_echo_n "(cached) " >&6
12093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095 #include <sys/syscall.h>
12099 int i = __NR_tkill;
12104 if ac_fn_c_try_compile
"$LINENO"; then :
12105 gdb_cv_sys_syscall_h_has_tkill
=yes
12107 gdb_cv_sys_syscall_h_has_tkill
=no
12110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12114 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12116 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12118 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12122 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12124 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
12130 cat >>confdefs.h
<<_ACEOF
12131 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12135 if test "$cross_compiling" = yes; then :
12136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12138 #include <sys/personality.h>
12143 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12144 # define ADDR_NO_RANDOMIZE 0x0040000
12146 /* Test the flag could be set and stays set. */
12147 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12148 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12154 if ac_fn_c_try_link
"$LINENO"; then :
12155 have_personality
=true
12157 have_personality
=false
12159 rm -f core conftest.err conftest.
$ac_objext \
12160 conftest
$ac_exeext conftest.
$ac_ext
12162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12164 #include <sys/personality.h>
12169 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12170 # define ADDR_NO_RANDOMIZE 0x0040000
12172 /* Test the flag could be set and stays set. */
12173 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12174 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12180 if ac_fn_c_try_run
"$LINENO"; then :
12181 have_personality
=true
12183 have_personality
=false
12185 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12186 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12189 if $have_personality
12192 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12197 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12198 # except that the argument to --with-sysroot is optional.
12199 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12200 if test "x$with_sysroot" = xyes
; then
12201 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
12204 # Check whether --with-sysroot was given.
12205 if test "${with_sysroot+set}" = set; then :
12206 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
12208 TARGET_SYSTEM_ROOT
=
12212 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
12213 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12214 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
12215 ac_define_dir
=`eval echo $ac_define_dir`
12217 cat >>confdefs.h
<<_ACEOF
12218 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12224 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12225 if test "x$prefix" = xNONE
; then
12226 test_prefix
=/usr
/local
12228 test_prefix
=$prefix
12231 test_prefix
=$exec_prefix
12234 case ${ac_define_dir} in
12235 "${test_prefix}"|
"${test_prefix}/"*|\
12236 '${exec_prefix}'|
'${exec_prefix}/'*)
12241 cat >>confdefs.h
<<_ACEOF
12242 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12249 # Check whether --with-system-gdbinit was given.
12250 if test "${with_system_gdbinit+set}" = set; then :
12251 withval
=$with_system_gdbinit;
12252 SYSTEM_GDBINIT
=$withval
12258 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
12259 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12260 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
12261 ac_define_dir
=`eval echo $ac_define_dir`
12263 cat >>confdefs.h
<<_ACEOF
12264 #define SYSTEM_GDBINIT "$ac_define_dir"
12270 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12271 if test "x$prefix" = xNONE
; then
12272 test_prefix
=/usr
/local
12274 test_prefix
=$prefix
12277 test_prefix
=$exec_prefix
12280 case ${ac_define_dir} in
12281 "${test_prefix}"|
"${test_prefix}/"*|\
12282 '${exec_prefix}'|
'${exec_prefix}/'*)
12287 cat >>confdefs.h
<<_ACEOF
12288 #define SYSTEM_GDBINIT_RELOCATABLE $value
12294 # Check whether --enable-werror was given.
12295 if test "${enable_werror+set}" = set; then :
12296 enableval
=$enable_werror; case "${enableval}" in
12297 yes | y
) ERROR_ON_WARNING
="yes" ;;
12298 no | n
) ERROR_ON_WARNING
="no" ;;
12299 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12304 # Enable -Werror by default when using gcc
12305 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12306 ERROR_ON_WARNING
=yes
12310 if test "${ERROR_ON_WARNING}" = yes ; then
12311 WERROR_CFLAGS
="-Werror"
12314 # The entries after -Wno-pointer-sign are disabled warnings which may
12315 # be enabled in the future, which can not currently be used to build
12317 # NOTE: If you change this list, remember to update
12318 # gdb/doc/gdbint.texinfo.
12319 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12320 -Wformat-nonliteral -Wno-pointer-sign \
12321 -Wno-unused -Wunused-value -Wunused-function \
12322 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
12324 # Enable -Wno-format by default when using gcc on mingw since many
12325 # GCC versions complain about %I64.
12327 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
12330 # Check whether --enable-build-warnings was given.
12331 if test "${enable_build_warnings+set}" = set; then :
12332 enableval
=$enable_build_warnings; case "${enableval}" in
12334 no
) build_warnings
="-w";;
12335 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12336 build_warnings
="${build_warnings} ${t}";;
12337 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12338 build_warnings
="${t} ${build_warnings}";;
12339 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12341 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
12342 echo "Setting compiler warning flags = $build_warnings" 6>&1
12345 # Check whether --enable-gdb-build-warnings was given.
12346 if test "${enable_gdb_build_warnings+set}" = set; then :
12347 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
12349 no
) build_warnings
="-w";;
12350 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12351 build_warnings
="${build_warnings} ${t}";;
12352 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12353 build_warnings
="${t} ${build_warnings}";;
12354 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12356 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
12357 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12361 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12364 $as_echo_n "checking compiler warning flags... " >&6; }
12365 # Separate out the -Werror flag as some files just cannot be
12366 # compiled with it enabled.
12367 for w
in ${build_warnings}; do
12369 -Werr*) WERROR_CFLAGS
=-Werror ;;
12370 *) # Check that GCC accepts it
12371 saved_CFLAGS
="$CFLAGS"
12372 CFLAGS
="$CFLAGS $w"
12373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12384 if ac_fn_c_try_compile
"$LINENO"; then :
12385 WARN_CFLAGS
="${WARN_CFLAGS} $w"
12387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12388 CFLAGS
="$saved_CFLAGS"
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12392 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12397 # In the Cygwin environment, we need some additional flags.
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
12399 $as_echo_n "checking
for cygwin...
" >&6; }
12400 if test "${gdb_cv_os_cygwin+set}" = set; then :
12401 $as_echo_n "(cached
) " >&6
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12406 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
12410 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12411 $EGREP "lose
" >/dev/null 2>&1; then :
12412 gdb_cv_os_cygwin=yes
12414 gdb_cv_os_cygwin=no
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
12420 $as_echo "$gdb_cv_os_cygwin" >&6; }
12423 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
12425 *go32* ) SER_HARDWIRE=ser-go32.o ;;
12426 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
12427 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
12431 # libreadline needs libuser32.a in a cygwin environment
12433 if test x$gdb_cv_os_cygwin = xyes; then
12434 WIN32LIBS="-luser32"
12435 case "${target}" in
12436 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
12441 # The ser-tcp.c module requires sockets.
12445 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12447 WIN32LIBS
="$WIN32LIBS -lws2_32"
12452 # Add ELF support to GDB, but only if BFD includes ELF support.
12454 OLD_LDFLAGS
=$LDFLAGS
12456 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12457 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12458 # always want our bfd.
12459 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12460 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
12461 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12462 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12463 if test "$plugins" = "yes"; then
12466 LIBS
="-lbfd -liberty $intl $LIBS"
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
12468 $as_echo_n "checking for ELF support in BFD... " >&6; }
12469 if test "${gdb_cv_var_elf+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
12472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474 #include <stdlib.h>
12476 #include "elf-bfd.h"
12481 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
12486 if ac_fn_c_try_link
"$LINENO"; then :
12491 rm -f core conftest.err conftest.
$ac_objext \
12492 conftest
$ac_exeext conftest.
$ac_ext
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
12495 $as_echo "$gdb_cv_var_elf" >&6; }
12496 if test $gdb_cv_var_elf = yes; then
12497 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o"
12499 $as_echo "#define HAVE_ELF 1" >>confdefs.h
12501 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12502 if test "$plugins" = "yes"; then
12503 OLD_LIBS
="-ldl $OLD_LIBS"
12507 LDFLAGS
=$OLD_LDFLAGS
12510 # Add any host-specific objects to GDB.
12511 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
12513 LIBGUI
="../libgui/src/libgui.a"
12514 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
12523 *-*-cygwin* |
*-*-mingw* )
12532 if test "${enable_gdbtk}" = "yes"; then
12534 # Gdbtk must have an absolute path to srcdir in order to run
12535 # properly when not installed.
12538 GDBTK_SRC_DIR
=`pwd`
12543 # Ok, lets find the tcl configuration
12544 # First, look for one uninstalled.
12545 # the alternative search directory is invoked by --with-tcl
12548 if test x
"${no_tcl}" = x
; then
12549 # we reset no_tcl in case something fails here
12552 # Check whether --with-tcl was given.
12553 if test "${with_tcl+set}" = set; then :
12554 withval
=$with_tcl; with_tclconfig
=${withval}
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12558 $as_echo_n "checking for Tcl configuration... " >&6; }
12559 if test "${ac_cv_c_tclconfig+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12564 # First check to see if --with-tcl was specified.
12566 *-*-cygwin*) platDir
="win" ;;
12567 *) platDir
="unix" ;;
12569 if test x
"${with_tclconfig}" != x
; then
12570 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12571 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
12573 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12577 # then check for a private Tcl installation
12578 if test x
"${ac_cv_c_tclconfig}" = x
; then
12581 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12582 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12583 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12585 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12586 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12587 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12589 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12590 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12591 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
12592 if test -f "$i/$platDir/tclConfig.sh" ; then
12593 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
12599 # on Darwin, check in Framework installation locations
12600 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
12601 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
12602 `ls -d /Library/Frameworks 2>/dev/null` \
12603 `ls -d /Network/Library/Frameworks 2>/dev/null` \
12604 `ls -d /System/Library/Frameworks 2>/dev/null` \
12606 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
12607 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
12613 # check in a few common install locations
12614 if test x
"${ac_cv_c_tclconfig}" = x
; then
12615 for i
in `ls -d ${libdir} 2>/dev/null` \
12616 `ls -d ${exec_prefix}/lib 2>/dev/null` \
12617 `ls -d ${prefix}/lib 2>/dev/null` \
12618 `ls -d /usr/local/lib 2>/dev/null` \
12619 `ls -d /usr/contrib/lib 2>/dev/null` \
12620 `ls -d /usr/lib 2>/dev/null` \
12622 if test -f "$i/tclConfig.sh" ; then
12623 ac_cv_c_tclconfig
=`(cd $i; pwd)`
12629 # check in a few other private locations
12630 if test x
"${ac_cv_c_tclconfig}" = x
; then
12633 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12634 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12635 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
12636 if test -f "$i/$platDir/tclConfig.sh" ; then
12637 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
12646 if test x
"${ac_cv_c_tclconfig}" = x
; then
12647 TCL_BIN_DIR
="# no Tcl configs found"
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
12649 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12652 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
12654 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12659 # If $no_tk is nonempty, then we can't do Tk, and there is no
12660 # point to doing Tcl.
12663 # Ok, lets find the tk configuration
12664 # First, look for one uninstalled.
12665 # the alternative search directory is invoked by --with-tk
12668 if test x
"${no_tk}" = x
; then
12669 # we reset no_tk in case something fails here
12672 # Check whether --with-tk was given.
12673 if test "${with_tk+set}" = set; then :
12674 withval
=$with_tk; with_tkconfig
=${withval}
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
12678 $as_echo_n "checking for Tk configuration... " >&6; }
12679 if test "${ac_cv_c_tkconfig+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12684 # First check to see if --with-tkconfig was specified.
12685 if test x
"${with_tkconfig}" != x
; then
12686 if test -f "${with_tkconfig}/tkConfig.sh" ; then
12687 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
12689 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
12693 # then check for a private Tk library
12695 *-*-cygwin*) platDir
="win" ;;
12696 *) platDir
="unix" ;;
12698 if test x
"${ac_cv_c_tkconfig}" = x
; then
12701 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12702 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
12703 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
12705 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12706 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
12707 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
12709 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12710 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
12711 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
12712 if test -f "$i/$platDir/tkConfig.sh" ; then
12713 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
12719 # on Darwin, check in Framework installation locations
12720 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
12721 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
12722 `ls -d /Library/Frameworks 2>/dev/null` \
12723 `ls -d /Network/Library/Frameworks 2>/dev/null` \
12724 `ls -d /System/Library/Frameworks 2>/dev/null` \
12726 if test -f "$i/Tk.framework/tkConfig.sh" ; then
12727 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
12733 # check in a few common install locations
12734 if test x
"${ac_cv_c_tkconfig}" = x
; then
12735 for i
in `ls -d ${libdir} 2>/dev/null` \
12736 `ls -d ${exec_prefix}/lib 2>/dev/null` \
12737 `ls -d ${prefix}/lib 2>/dev/null` \
12738 `ls -d /usr/local/lib 2>/dev/null` \
12739 `ls -d /usr/contrib/lib 2>/dev/null` \
12740 `ls -d /usr/lib 2>/dev/null` \
12742 if test -f "$i/tkConfig.sh" ; then
12743 ac_cv_c_tkconfig
=`(cd $i; pwd)`
12748 # check in a few other private locations
12749 if test x
"${ac_cv_c_tkconfig}" = x
; then
12752 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12753 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
12754 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
12755 if test -f "$i/$platDir/tkConfig.sh" ; then
12756 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
12765 if test x
"${ac_cv_c_tkconfig}" = x
; then
12766 TK_BIN_DIR
="# no Tk configs found"
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
12768 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
12771 TK_BIN_DIR
=${ac_cv_c_tkconfig}
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
12773 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
12778 if test -z "${no_tcl}" -a -z "${no_tk}"; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
12781 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
12783 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12785 $as_echo "loading" >&6; }
12786 .
${TCL_BIN_DIR}/tclConfig.sh
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
12789 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12792 # eval is required to do the TCL_DBGX substitution
12793 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12794 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12796 # If the TCL_BIN_DIR is the build directory (not the install directory),
12797 # then set the common variable name to the value of the build variables.
12798 # For example, the variable TCL_LIB_SPEC will be set to the value
12799 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12800 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12801 # installed and uninstalled version of Tcl.
12802 if test -f "${TCL_BIN_DIR}/Makefile" ; then
12803 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
12804 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
12805 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
12806 elif test "`uname -s`" = "Darwin"; then
12807 # If Tcl was built as a framework, attempt to use the libraries
12808 # from the framework at the given location so that linking works
12809 # against Tcl.framework installed in an arbitary location.
12810 case ${TCL_DEFS} in
12812 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
12813 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
12814 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
12815 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
12816 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
12821 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
12822 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
12823 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
12829 # eval is required to do the TCL_DBGX substitution
12830 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12831 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12832 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12833 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12849 # Check for in-tree tcl
12856 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
12860 # Find Tcl private headers
12861 if test x
"${intree}" = xno
; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
12864 $as_echo_n "checking for Tcl private headers... " >&6; }
12866 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
12867 if test -f ${dir}/tclInt.h
; then
12871 if test x
"${private_dir}" = x
; then
12872 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
12874 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
12876 $as_echo "${private_dir}" >&6; }
12879 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
12880 TCL_LIBRARY
="${TCL_LIB_SPEC}"
12883 # If building tcl in the same src tree, private headers
12884 # are not needed, but we need to be sure to use the right
12886 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
12887 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
12888 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
12896 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
12898 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12900 $as_echo "loading" >&6; }
12901 .
${TK_BIN_DIR}/tkConfig.sh
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
12904 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
12907 # eval is required to do the TK_DBGX substitution
12908 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
12909 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
12911 # If the TK_BIN_DIR is the build directory (not the install directory),
12912 # then set the common variable name to the value of the build variables.
12913 # For example, the variable TK_LIB_SPEC will be set to the value
12914 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
12915 # instead of TK_BUILD_LIB_SPEC since it will work with both an
12916 # installed and uninstalled version of Tcl.
12917 if test -f "${TK_BIN_DIR}/Makefile" ; then
12918 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
12919 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
12920 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
12921 elif test "`uname -s`" = "Darwin"; then
12922 # If Tk was built as a framework, attempt to use the libraries
12923 # from the framework at the given location so that linking works
12924 # against Tk.framework installed in an arbitary location.
12927 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
12928 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
12929 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
12930 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
12931 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
12936 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
12937 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
12938 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
12944 # eval is required to do the TK_DBGX substitution
12945 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
12946 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
12947 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
12948 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
12963 # Check for in-tree Tk
12965 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
12969 # Find Tk private headers
12970 if test x
"${intree}" = xno
; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
12973 $as_echo_n "checking for Tk private headers... " >&6; }
12975 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
12976 if test -f ${dir}/tkInt.h
; then
12980 if test x
"${private_dir}" = x
; then
12981 as_fn_error
"could not find Tk private headers" "$LINENO" 5
12983 TK_PRIVATE_INCLUDE
="-I${private_dir}"
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
12985 $as_echo "${private_dir}" >&6; }
12988 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
12989 TK_LIBRARY
=${TK_LIB_SPEC}
12992 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
12993 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
12994 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
13001 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
13003 # Include some libraries that Tcl and Tk want.
13004 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
13005 # Yes, the ordering seems wrong here. But it isn't.
13006 # TK_LIBS is the list of libraries that need to be linked
13007 # after Tcl/Tk. Note that this isn't put into LIBS. If it
13008 # were in LIBS then any link tests after this point would
13009 # try to include things like `$(LIBGUI)', which wouldn't work.
13010 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
13012 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
13013 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
13014 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
13015 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
13016 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
13017 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
13018 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
13020 if test x
$gdb_cv_os_cygwin = xyes
; then
13021 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
13022 WIN32LDAPP
="-Wl,--subsystem,console"
13023 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
13026 subdirs
="$subdirs gdbtk"
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13039 $as_echo_n "checking for X... " >&6; }
13042 # Check whether --with-x was given.
13043 if test "${with_x+set}" = set; then :
13047 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13048 if test "x$with_x" = xno
; then
13049 # The user explicitly disabled X.
13052 case $x_includes,$x_libraries in #(
13053 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
13054 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
13055 $as_echo_n "(cached) " >&6
13057 # One or both of the vars are not set, and there is no cached value.
13058 ac_x_includes
=no ac_x_libraries
=no
13059 rm -f -r conftest.dir
13060 if mkdir conftest.dir
; then
13062 cat >Imakefile
<<'_ACEOF'
13064 @echo incroot='${INCROOT}'
13066 @echo usrlibdir='${USRLIBDIR}'
13068 @echo libdir='${LIBDIR}'
13070 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
13071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13072 for ac_var
in incroot usrlibdir libdir
; do
13073 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13075 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13076 for ac_extension
in a so sl dylib la dll
; do
13077 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13078 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13079 ac_im_usrlibdir
=$ac_im_libdir; break
13082 # Screen out bogus values from the imake configuration. They are
13083 # bogus both because they are the default anyway, and because
13084 # using them would break gcc on systems where it needs fixed includes.
13085 case $ac_im_incroot in
13086 /usr
/include
) ac_x_includes
= ;;
13087 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
13089 case $ac_im_usrlibdir in
13090 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
13091 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
13095 rm -f -r conftest.dir
13098 # Standard set of common directories for X headers.
13099 # Check X11 before X11Rn because it is often a symlink to the current release.
13113 /usr/local/X11/include
13114 /usr/local/X11R7/include
13115 /usr/local/X11R6/include
13116 /usr/local/X11R5/include
13117 /usr/local/X11R4/include
13119 /usr/local/include/X11
13120 /usr/local/include/X11R7
13121 /usr/local/include/X11R6
13122 /usr/local/include/X11R5
13123 /usr/local/include/X11R4
13127 /usr/XFree86/include/X11
13131 /usr/unsupported/include
13132 /usr/athena/include
13133 /usr/local/x11r5/include
13134 /usr/lpp/Xamples/include
13136 /usr/openwin/include
13137 /usr/openwin/share/include'
13139 if test "$ac_x_includes" = no
; then
13140 # Guess where to find include files, by looking for Xlib.h.
13141 # First, try using that file with no special directory specified.
13142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13144 #include <X11/Xlib.h>
13146 if ac_fn_c_try_cpp
"$LINENO"; then :
13147 # We can compile using X headers with no special include directory.
13150 for ac_dir
in $ac_x_header_dirs; do
13151 if test -r "$ac_dir/X11/Xlib.h"; then
13152 ac_x_includes
=$ac_dir
13157 rm -f conftest.err conftest.
$ac_ext
13158 fi # $ac_x_includes = no
13160 if test "$ac_x_libraries" = no
; then
13161 # Check for the libraries.
13162 # See if we find them without any special options.
13163 # Don't add to $LIBS permanently.
13166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13167 /* end confdefs.h. */
13168 #include <X11/Xlib.h>
13177 if ac_fn_c_try_link
"$LINENO"; then :
13179 # We can link X programs with no special library path.
13183 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13185 # Don't even attempt the hair of trying to link an X program!
13186 for ac_extension
in a so sl dylib la dll
; do
13187 if test -r "$ac_dir/libX11.$ac_extension"; then
13188 ac_x_libraries
=$ac_dir
13194 rm -f core conftest.err conftest.
$ac_objext \
13195 conftest
$ac_exeext conftest.
$ac_ext
13196 fi # $ac_x_libraries = no
13198 case $ac_x_includes,$ac_x_libraries in #(
13199 no
,* |
*,no |
*\'*)
13200 # Didn't find X, or a directory has "'" in its name.
13201 ac_cv_have_x
="have_x=no";; #(
13203 # Record where we found X for the cache.
13204 ac_cv_have_x
="have_x=yes\
13205 ac_x_includes='$ac_x_includes'\
13206 ac_x_libraries='$ac_x_libraries'"
13212 eval "$ac_cv_have_x"
13215 if test "$have_x" != yes; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13217 $as_echo "$have_x" >&6; }
13220 # If each of the values was on the command line, it overrides each guess.
13221 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
13222 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
13223 # Update the cache value to reflect the command line values.
13224 ac_cv_have_x
="have_x=yes\
13225 ac_x_includes='$x_includes'\
13226 ac_x_libraries='$x_libraries'"
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13228 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13232 # Unlike the sim directory, whether a simulator is linked is controlled by
13233 # presence of a gdb_sim definition in the target configure.tgt entry.
13234 # This code just checks for a few cases where we'd like to ignore those
13235 # definitions, even when they're present in the '.mt' file. These cases
13236 # are when --disable-sim is specified, or if the simulator directory is
13237 # not part of the source tree.
13239 # Check whether --enable-sim was given.
13240 if test "${enable_sim+set}" = set; then :
13241 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
13242 echo "enableval = ${enableval}";
13243 case "${enableval}" in
13244 yes) ignore_sim
=false
;;
13245 no
) ignore_sim
=true
;;
13246 *) ignore_sim
=false
;;
13253 if test ! -d "${srcdir}/../sim"; then
13259 if test "${ignore_sim}" = "false"; then
13260 if test x
"${gdb_sim}" != x
; then
13262 SIM_OBS
="remote-sim.o"
13264 $as_echo "#define WITH_SIM 1" >>confdefs.h
13282 # List of host floatformats.
13284 cat >>confdefs.h
<<_ACEOF
13285 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
13289 cat >>confdefs.h
<<_ACEOF
13290 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
13294 cat >>confdefs.h
<<_ACEOF
13295 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
13299 # target_subdir is used by the testsuite to find the target libraries.
13301 if test "${host}" != "${target}"; then
13302 target_subdir
="${target_alias}/"
13307 if test "${gdb_native}" = "yes"; then
13308 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
13309 if test ! -f ${host_makefile_frag}; then
13310 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
13312 frags
="$frags $host_makefile_frag"
13314 host_makefile_frag
=/dev
/null
13320 if test "${gdb_native}" = "yes"; then
13321 # We pick this up from the host configuration file (.mh) because we
13322 # do not have a native configuration Makefile fragment.
13323 nativefile
=`sed -n '
13324 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
13325 ' ${host_makefile_frag}`
13329 if test x
"${gdb_osabi}" != x
; then
13331 cat >>confdefs.h
<<_ACEOF
13332 #define GDB_OSABI_DEFAULT $gdb_osabi
13337 # Enable multi-ice-gdb-server.
13338 # Check whether --enable-multi-ice was given.
13339 if test "${enable_multi_ice+set}" = set; then :
13340 enableval
=$enable_multi_ice; case $enableval in
13343 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
13347 if test "x$enable_multi_ice" = xyes
; then
13348 subdirs
="$subdirs multi-ice"
13352 # Check whether --enable-gdbserver was given.
13353 if test "${enable_gdbserver+set}" = set; then :
13354 enableval
=$enable_gdbserver; case "${enableval}" in
13356 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
13359 enable_gdbserver
=auto
13363 # We only build gdbserver automatically in a native configuration, and
13364 # only if the user did not explicitly disable its build.
13365 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
13367 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
13368 if test "x$build_gdbserver" = xyes
; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13370 $as_echo "yes" >&6; }
13371 subdirs
="$subdirs gdbserver"
13373 gdbserver_build_enabled
=yes
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376 $as_echo "no" >&6; }
13380 # If the user explicitly request the gdbserver to be built, verify that
13381 # we were in fact able to enable it.
13382 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
13383 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
13386 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
13387 # to an empty version.
13393 if test "${nativefile}" != ""; then
13394 case "${nativefile}" in
13395 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
13396 * ) GDB_NM_FILE
="${nativefile}"
13398 files
="${files} ${GDB_NM_FILE}"
13399 links
="${links} nm.h"
13401 cat >>confdefs.h
<<_ACEOF
13402 #define GDB_NM_FILE "${GDB_NM_FILE}"
13408 ac_sources
="$files"
13410 while test -n "$ac_sources"; do
13411 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
13412 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
13413 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
13415 ac_config_links
="$ac_config_links $ac_config_links_1"
13421 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
13424 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
13426 ac_config_commands
="$ac_config_commands default"
13428 cat >confcache
<<\_ACEOF
13429 # This file is a shell script that caches the results of configure
13430 # tests run on this system so they can be shared between configure
13431 # scripts and configure runs, see configure's option --config-cache.
13432 # It is not useful on other systems. If it contains results you don't
13433 # want to keep, you may remove or edit it.
13435 # config.status only pays attention to the cache file if you give it
13436 # the --recheck option to rerun configure.
13438 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13440 # following values.
13444 # The following way of writing the cache mishandles newlines in values,
13445 # but we know of no workaround that is simple, portable, and efficient.
13446 # So, we kill variables containing newlines.
13447 # Ultrix sh set writes to stderr and can't be redirected directly,
13448 # and sets the high bit in the cache file unless we assign to the vars.
13450 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13451 eval ac_val
=\$
$ac_var
13455 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13456 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13459 _ | IFS | as_nl
) ;; #(
13460 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13461 *) { eval $ac_var=; unset $ac_var;} ;;
13467 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13468 *${as_nl}ac_space
=\
*)
13469 # `set' does not quote correctly, so add quotes: double-quote
13470 # substitution turns \\\\ into \\, and sed turns \\ into \.
13473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13476 # `set' quotes correctly as required by POSIX, so do not add quotes.
13477 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13486 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13488 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13490 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13491 if test -w "$cache_file"; then
13492 test "x$cache_file" != "x/dev/null" &&
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13494 $as_echo "$as_me: updating cache $cache_file" >&6;}
13495 cat confcache
>$cache_file
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13498 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13503 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13504 # Let make expand exec_prefix.
13505 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13507 DEFS
=-DHAVE_CONFIG_H
13511 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13512 # 1. Remove the extension, and $U if already installed.
13513 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13514 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13515 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13516 # will be set to the directory where LIBOBJS objects are built.
13517 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13518 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13520 LIBOBJS
=$ac_libobjs
13522 LTLIBOBJS
=$ac_ltlibobjs
13525 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13526 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
13527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13529 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
13530 as_fn_error
"conditional \"GMAKE\" was never defined.
13531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13535 : ${CONFIG_STATUS=./config.status}
13537 ac_clean_files_save
=$ac_clean_files
13538 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13540 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13542 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13544 # Generated by $as_me.
13545 # Run this file to recreate the current configuration.
13546 # Compiler output produced by configure, useful for debugging
13547 # configure, is in config.log if it exists.
13550 ac_cs_recheck=false
13553 SHELL=\${CONFIG_SHELL-$SHELL}
13556 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
13557 ## -------------------- ##
13558 ## M4sh Initialization. ##
13559 ## -------------------- ##
13561 # Be more Bourne compatible
13562 DUALCASE
=1; export DUALCASE
# for MKS sh
13563 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13566 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13567 # is contrary to our usage. Disable this feature.
13568 alias -g '${1+"$@"}'='"$@"'
13569 setopt NO_GLOB_SUBST
13571 case `(set -o) 2>/dev/null` in #(
13583 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13584 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13585 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13586 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13587 # Prefer a ksh shell builtin over an external printf program on Solaris,
13588 # but without wasting forks for bash or zsh.
13589 if test -z "$BASH_VERSION$ZSH_VERSION" \
13590 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13591 as_echo='print
-r --'
13592 as_echo_n='print
-rn --'
13593 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13594 as_echo='printf %s
\n'
13595 as_echo_n='printf %s
'
13597 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13598 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
13599 as_echo_n='/usr
/ucb
/echo -n'
13601 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13602 as_echo_n_body='eval
13606 expr "X$arg" : "X\\(.*\\)$as_nl";
13607 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13609 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
13611 export as_echo_n_body
13612 as_echo_n='sh
-c $as_echo_n_body as_echo
'
13614 export as_echo_body
13615 as_echo='sh
-c $as_echo_body as_echo
'
13618 # The user is always right.
13619 if test "${PATH_SEPARATOR+set}" != set; then
13621 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13622 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13629 # We need space, tab and new line, in precisely that order. Quoting is
13630 # there to prevent editors from complaining about space-tab.
13631 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13632 # splitting by setting IFS to empty value.)
13635 # Find who we are. Look in the path if we contain no directory separator.
13637 *[\\/]* ) as_myself=$0 ;;
13638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13639 for as_dir in $PATH
13642 test -z "$as_dir" && as_dir=.
13643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13649 # We did not find ourselves, most probably we were run as `sh COMMAND'
13650 # in which case we are not to be found in the path.
13651 if test "x$as_myself" = x
; then
13654 if test ! -f "$as_myself"; then
13655 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13659 # Unset variables that we do not need and which cause bugs (e.g. in
13660 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13661 # suppresses any "Segmentation fault" message there. '((' could
13662 # trigger a bug in pdksh 5.2.14.
13663 for as_var
in BASH_ENV ENV MAIL MAILPATH
13664 do eval test x\
${$as_var+set} = xset \
13665 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
13678 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
13681 # as_fn_error ERROR [LINENO LOG_FD]
13682 # ---------------------------------
13683 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13684 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13685 # script with status $?, using 1 if that was 0.
13688 as_status
=$?
; test $as_status -eq 0 && as_status
=1
13690 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
13691 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13693 $as_echo "$as_me: error: $1" >&2
13694 as_fn_exit
$as_status
13698 # as_fn_set_status STATUS
13699 # -----------------------
13700 # Set $? to STATUS, without forking.
13701 as_fn_set_status
()
13704 } # as_fn_set_status
13706 # as_fn_exit STATUS
13707 # -----------------
13708 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13712 as_fn_set_status
$1
13718 # Portably unset VAR.
13721 { eval $1=; unset $1;}
13723 as_unset
=as_fn_unset
13724 # as_fn_append VAR VALUE
13725 # ----------------------
13726 # Append the text in VALUE to the end of the definition contained in VAR. Take
13727 # advantage of any shell optimizations that allow amortized linear growth over
13728 # repeated appends, instead of the typical quadratic growth present in naive
13730 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13731 eval 'as_fn_append ()
13742 # as_fn_arith ARG...
13743 # ------------------
13744 # Perform arithmetic evaluation on the ARGs, and store the result in the
13745 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13746 # must be portable across $(()) and expr.
13747 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
13748 eval 'as_fn_arith ()
13755 as_val
=`expr "$@" || test $? -eq 1`
13760 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13761 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13767 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13768 as_basename
=basename
13773 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13779 as_me
=`$as_basename -- "$0" ||
13780 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13781 X"$0" : 'X\(//\)$' \| \
13782 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13784 sed '/^.*\/\([^/][^/]*\)\/*$/{
13798 # Avoid depending upon Character Ranges.
13799 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13800 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13801 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13802 as_cr_digits
='0123456789'
13803 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13805 ECHO_C
= ECHO_N
= ECHO_T
=
13806 case `echo -n x` in #(((((
13808 case `echo 'xy\c'` in
13809 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13811 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13818 rm -f conf$$ conf$$.exe conf$$.
file
13819 if test -d conf$$.dir
; then
13820 rm -f conf$$.dir
/conf$$.
file
13823 mkdir conf$$.dir
2>/dev
/null
13825 if (echo >conf$$.
file) 2>/dev
/null
; then
13826 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13828 # ... but there are two gotchas:
13829 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13830 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13831 # In both cases, we have to default to `cp -p'.
13832 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13834 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13842 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13843 rmdir conf$$.dir
2>/dev
/null
13848 # Create "$as_dir" as a directory, including parents if necessary.
13853 -*) as_dir
=.
/$as_dir;;
13855 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
13859 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13860 *) as_qdir
=$as_dir;;
13862 as_dirs
="'$as_qdir' $as_dirs"
13863 as_dir
=`$as_dirname -- "$as_dir" ||
13864 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13865 X"$as_dir" : 'X\(//\)[^/]' \| \
13866 X"$as_dir" : 'X\(//\)$' \| \
13867 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13868 $as_echo X"$as_dir" |
13869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13873 /^X\(\/\/\)[^/].*/{
13886 test -d "$as_dir" && break
13888 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13889 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
13893 if mkdir
-p .
2>/dev
/null
; then
13894 as_mkdir_p
='mkdir -p "$as_dir"'
13896 test -d .
/-p && rmdir .
/-p
13900 if test -x / >/dev
/null
2>&1; then
13901 as_test_x
='test -x'
13903 if ls -dL / >/dev
/null
2>&1; then
13910 if test -d "$1"; then
13916 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13917 ???[sx]*):;;*)false;;esac;fi
13921 as_executable_p
=$as_test_x
13923 # Sed expression to map a string onto a valid CPP name.
13924 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13926 # Sed expression to map a string onto a valid variable name.
13927 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13931 ## ----------------------------------- ##
13932 ## Main body of $CONFIG_STATUS script. ##
13933 ## ----------------------------------- ##
13935 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
13937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13938 # Save the log message, to keep $0 and so on meaningful, and to
13939 # report actual input values of CONFIG_FILES etc. instead of their
13940 # values after options handling.
13942 This file was extended by $as_me, which was
13943 generated by GNU Autoconf 2.64. Invocation command line was
13945 CONFIG_FILES = $CONFIG_FILES
13946 CONFIG_HEADERS = $CONFIG_HEADERS
13947 CONFIG_LINKS = $CONFIG_LINKS
13948 CONFIG_COMMANDS = $CONFIG_COMMANDS
13951 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13956 case $ac_config_files in *"
13957 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13960 case $ac_config_headers in *"
13961 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13966 # Files that config.status was made for.
13967 config_files="$ac_config_files"
13968 config_headers="$ac_config_headers"
13969 config_links="$ac_config_links"
13970 config_commands="$ac_config_commands"
13974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13976 \`$as_me' instantiates files and other configuration actions
13977 from templates according to the current configuration. Unless the files
13978 and actions are specified as TAGs, all are instantiated by default.
13980 Usage: $0 [OPTION]... [TAG]...
13982 -h, --help print this help, then exit
13983 -V, --version print version number and configuration settings, then exit
13984 -q, --quiet, --silent
13985 do not print progress messages
13986 -d, --debug don't remove temporary files
13987 --recheck update $as_me by reconfiguring in the same conditions
13988 --file=FILE[:TEMPLATE]
13989 instantiate the configuration file FILE
13990 --header=FILE[:TEMPLATE]
13991 instantiate the configuration header FILE
13993 Configuration files:
13996 Configuration headers:
13999 Configuration links:
14002 Configuration commands:
14005 Report bugs to the package provider."
14008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14011 configured by $0, generated by GNU Autoconf 2.64,
14012 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14014 Copyright (C) 2009 Free Software Foundation, Inc.
14015 This config.status script is free software; the Free Software Foundation
14016 gives unlimited permission to copy, distribute and modify it."
14022 test -n "\$AWK" || AWK=awk
14025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14026 # The default lists apply if the user does not specify any file.
14032 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14033 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14044 # Handling of the options.
14045 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14047 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14048 $as_echo "$ac_cs_version"; exit ;;
14049 --debug |
--debu |
--deb |
--de |
--d |
-d )
14051 --file |
--fil |
--fi |
--f )
14054 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14056 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14057 ac_need_defaults
=false
;;
14058 --header |
--heade |
--head |
--hea )
14061 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14063 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14064 ac_need_defaults
=false
;;
14066 # Conflict between --help and --header
14067 as_fn_error
"ambiguous option: \`$1'
14068 Try \`$0 --help' for more information.";;
14069 --help |
--hel |
-h )
14070 $as_echo "$ac_cs_usage"; exit ;;
14071 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14072 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14075 # This is an error.
14076 -*) as_fn_error
"unrecognized option: \`$1'
14077 Try \`$0 --help' for more information." ;;
14079 *) as_fn_append ac_config_targets
" $1"
14080 ac_need_defaults
=false
;;
14086 ac_configure_extra_args
=
14088 if $ac_cs_silent; then
14090 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14095 if \$ac_cs_recheck; then
14096 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14098 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14099 CONFIG_SHELL='$SHELL'
14100 export CONFIG_SHELL
14105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14109 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14110 ## Running $as_me. ##
14116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14120 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14126 # Handling of arguments.
14127 for ac_config_target
in $ac_config_targets
14129 case $ac_config_target in
14130 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
14131 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
14132 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
14133 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
14134 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14135 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
14136 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
14137 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
14138 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14140 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14145 # If the user did not use the arguments to specify the items to instantiate,
14146 # then the envvar interface is used. Set only those that are not.
14147 # We use the long form for the default assignment because of an extremely
14148 # bizarre bug on SunOS 4.1.3.
14149 if $ac_need_defaults; then
14150 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14151 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14152 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
14153 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14156 # Have a temporary directory for convenience. Make it in the build tree
14157 # simply because there is no reason against having it here, and in addition,
14158 # creating and moving files from /tmp can sometimes cause problems.
14159 # Hook for its removal unless debugging.
14160 # Note that there is a small window in which the directory will not be cleaned:
14161 # after its creation but before its name has been assigned to `$tmp'.
14165 trap 'exit_status=$?
14166 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14168 trap 'as_fn_exit 1' 1 2 13 15
14170 # Create a (secure) tmp directory for tmp files.
14173 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14174 test -n "$tmp" && test -d "$tmp"
14177 tmp
=.
/conf$$
-$RANDOM
14178 (umask 077 && mkdir
"$tmp")
14179 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
14181 # Set up the scripts for CONFIG_FILES section.
14182 # No need to generate them if there are no CONFIG_FILES.
14183 # This happens for instance with `./config.status config.h'.
14184 if test -n "$CONFIG_FILES"; then
14186 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
14187 ac_cs_awk_getline
=:
14188 ac_cs_awk_pipe_init
=
14189 ac_cs_awk_read_file
='
14190 while ((getline aline < (F[key])) > 0)
14193 ac_cs_awk_pipe_fini
=
14195 ac_cs_awk_getline
=false
14196 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
14197 ac_cs_awk_read_file
='
14199 print "cat " F[key] " &&"
14200 '$ac_cs_awk_pipe_init
14201 # The final `:' finishes the AND list.
14202 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
14204 ac_cr
=`echo X | tr X '\015'`
14205 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14206 # But we know of no other shell where ac_cr would be empty at this
14207 # point, so we can use a bashism as a fallback.
14208 if test "x$ac_cr" = x
; then
14209 eval ac_cr
=\$
\'\\r
\'
14211 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14212 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14215 ac_cs_awk_cr
=$ac_cr
14218 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14221 # Create commands to substitute file output variables.
14223 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14224 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14225 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
14228 } >conf$
$files.sh
&&
14229 . .
/conf$
$files.sh ||
14230 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
14231 rm -f conf$
$files.sh
14234 echo "cat >conf$$subs.awk <<_ACEOF" &&
14235 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14237 } >conf$$subs.sh ||
14238 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14239 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14241 for ac_last_try in false false false false false :; do
14242 . ./conf$$subs.sh ||
14243 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14245 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14246 if test $ac_delim_n = $ac_delim_num; then
14248 elif $ac_last_try; then
14249 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14251 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14254 rm -f conf$$subs.sh
14256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14257 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
14261 s/^/S["/; s
/!.
*/"]=/
14271 s/\(.\{148\}\).*/\1/
14273 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14278 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14285 s/\(.\{148\}\).*/\1/
14287 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14291 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14296 ' <conf$$subs.awk | sed '
14301 ' >>$CONFIG_STATUS || ac_write_fail=1
14302 rm -f conf$$subs.awk
14303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14305 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
14306 for (key in S) S_is_set[key] = 1
14308 \$ac_cs_awk_pipe_init
14312 nfields = split(line, field, "@
")
14314 len = length(field[1])
14315 for (i = 2; i < nfields; i++) {
14317 keylen = length(key)
14318 if (S_is_set[key]) {
14320 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14321 len += length(value) + length(field[++i])
14326 if (nfields == 3 && !substed) {
14328 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14329 \$ac_cs_awk_read_file
14335 \$ac_cs_awk_pipe_fini
14338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14339 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14340 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14343 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
14344 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
14347 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14348 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
14349 # trailing colons and then remove the whole line if VPATH becomes empty
14350 # (actually we leave an empty line to preserve line numbers).
14351 if test "x
$srcdir" = x.; then
14352 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14353 s/:*\$(srcdir):*/:/
14354 s/:*\${srcdir}:*/:/
14356 s/^\([^=]*=[ ]*\):*/\1/
14362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14363 fi # test -n "$CONFIG_FILES"
14365 # Set up the scripts for CONFIG_HEADERS section.
14366 # No need to generate them if there are no CONFIG_HEADERS.
14367 # This happens for instance with `./config.status Makefile'.
14368 if test -n "$CONFIG_HEADERS"; then
14369 cat >"$tmp/defines.
awk" <<\_ACAWK ||
14373 # Transform confdefs.h into an awk script `defines.awk', embedded as
14374 # here-document in config.status, that substitutes the proper values into
14375 # config.h.in to produce config.h.
14377 # Create a delimiter string that does not exist in confdefs.h, to ease
14378 # handling of long lines.
14380 for ac_last_try in false false :; do
14381 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
14382 if test -z "$ac_t"; then
14384 elif $ac_last_try; then
14385 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
14387 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14391 # For the awk script, D is an array of macro values keyed by name,
14392 # likewise P contains macro parameters if any. Preserve backslash
14393 # newline sequences.
14395 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14397 s/.\{148\}/&'"$ac_delim"'/g
14400 s/^[ ]*#[ ]*define[ ][ ]*/ /
14407 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14409 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14413 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14414 D["\
1"]=" \
3\\\\\\n
"\\/p
14416 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14421 s/.\{148\}/&'"$ac_delim"'/g
14426 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14429 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14431 ' <confdefs.h | sed '
14432 s/'"$ac_delim"'/"\\\
14433 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14436 for (key in D) D_is_set[key] = 1
14439 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14441 split(line, arg, " ")
14442 if (arg[1] == "#") {
14446 defundef
= substr
(arg
[1], 2)
14449 split(mac1
, mac2
, "(") #)
14451 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14452 if (D_is_set
[macro
]) {
14453 # Preserve the white space surrounding the "#".
14454 print prefix
"define", macro P
[macro
] D
[macro
]
14457 # Replace #undef with comments. This is necessary, for example,
14458 # in the case of _POSIX_SOURCE, which is predefined and required
14459 # on some systems where configure will not decide to define it.
14460 if (defundef
== "undef") {
14461 print
"/*", prefix defundef
, macro
, "*/"
14469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14470 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
14471 fi # test -n "$CONFIG_HEADERS"
14474 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14479 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14481 case $ac_mode$ac_tag in
14483 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14484 :[FH
]-) ac_tag
=-:-;;
14485 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14502 -) ac_f
="$tmp/stdin";;
14503 *) # Look for the file first in the build tree, then in the source tree
14504 # (if the path is not absolute). The absolute path cannot be DOS-style,
14505 # because $ac_f cannot contain `:'.
14509 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14511 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
14513 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14514 as_fn_append ac_file_inputs
" '$ac_f'"
14517 # Let's still pretend it is `configure' which instantiates (i.e., don't
14518 # use $as_me), people would be surprised to read:
14519 # /* config.h. Generated by config.status. */
14520 configure_input
='Generated from '`
14521 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14523 if test x
"$ac_file" != x-
; then
14524 configure_input
="$ac_file. $configure_input"
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14526 $as_echo "$as_me: creating $ac_file" >&6;}
14528 # Neutralize special characters interpreted by sed in replacement strings.
14529 case $configure_input in #(
14530 *\
&* |
*\|
* |
*\\* )
14531 ac_sed_conf_input
=`$as_echo "$configure_input" |
14532 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14533 *) ac_sed_conf_input
=$configure_input;;
14537 *:-:* |
*:-) cat >"$tmp/stdin" \
14538 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
14543 ac_dir
=`$as_dirname -- "$ac_file" ||
14544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14545 X"$ac_file" : 'X\(//\)[^/]' \| \
14546 X"$ac_file" : 'X\(//\)$' \| \
14547 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14548 $as_echo X"$ac_file" |
14549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14553 /^X\(\/\/\)[^/].*/{
14566 as_dir
="$ac_dir"; as_fn_mkdir_p
14570 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14572 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14573 # A ".." for each directory in $ac_dir_suffix.
14574 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14575 case $ac_top_builddir_sub in
14576 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14577 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14580 ac_abs_top_builddir
=$ac_pwd
14581 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14582 # for backward compatibility:
14583 ac_top_builddir
=$ac_top_build_prefix
14586 .
) # We are building in place.
14588 ac_top_srcdir
=$ac_top_builddir_sub
14589 ac_abs_top_srcdir
=$ac_pwd ;;
14590 [\\/]* | ?
:[\\/]* ) # Absolute name.
14591 ac_srcdir
=$srcdir$ac_dir_suffix;
14592 ac_top_srcdir
=$srcdir
14593 ac_abs_top_srcdir
=$srcdir ;;
14594 *) # Relative name.
14595 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14596 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14597 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14599 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14609 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14610 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14615 # If the template does not know about datarootdir, expand it.
14616 # FIXME: This hack should be removed a few years after 2.60.
14617 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14628 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14629 *datarootdir
*) ac_datarootdir_seen
=yes;;
14630 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14632 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14635 ac_datarootdir_hack='
14636 s&@datadir@&$datadir&g
14637 s&@docdir@&$docdir&g
14638 s&@infodir@&$infodir&g
14639 s&@localedir@&$localedir&g
14640 s&@mandir@&$mandir&g
14641 s&\\\${datarootdir}&$datarootdir&g' ;;
14645 # Neutralize VPATH when `$srcdir' = `.'.
14646 # Shell code in configure.ac might set extrasub.
14647 # FIXME: do we really want to maintain this feature?
14648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14649 ac_sed_extra="$ac_vpsub
14652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14654 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14655 s|@configure_input@|
$ac_sed_conf_input|
;t t
14656 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14657 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
14658 s
&@srcdir@
&$ac_srcdir&;t t
14659 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14660 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14661 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14662 s
&@builddir@
&$ac_builddir&;t t
14663 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14664 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14665 s
&@INSTALL@
&$ac_INSTALL&;t t
14666 $ac_datarootdir_hack
14668 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14669 if $ac_cs_awk_getline; then
14670 $AWK -f "$tmp/subs.
awk"
14672 $AWK -f "$tmp/subs.
awk" | $SHELL
14674 || as_fn_error "could not create
$ac_file" "$LINENO" 5
14676 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14677 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14678 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14680 which seems to be undefined. Please make sure it is defined." >&5
14681 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14682 which seems to be undefined. Please make sure it is defined." >&2;}
14686 -) cat "$tmp/out" && rm -f "$tmp/out";;
14687 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14689 || as_fn_error "could not create $ac_file" "$LINENO" 5
14695 if test x"$ac_file" != x-; then
14697 $as_echo "/* $configure_input */" \
14698 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14699 } >"$tmp/config.h" \
14700 || as_fn_error "could not create $ac_file" "$LINENO" 5
14701 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14703 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14706 mv "$tmp/config.h" "$ac_file" \
14707 || as_fn_error "could not create $ac_file" "$LINENO" 5
14710 $as_echo "/* $configure_input */" \
14711 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14712 || as_fn_error "could not create -" "$LINENO" 5
14720 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
14723 # Prefer the file from the source tree if names are identical.
14724 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14725 ac_source=$srcdir/$ac_source
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14729 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14731 if test ! -r "$ac_source"; then
14732 as_fn_error "$ac_source: file not found" "$LINENO" 5
14736 # Try a relative symlink, then a hard link, then a copy.
14738 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14739 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14741 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14742 ln "$ac_source" "$ac_file" 2>/dev/null ||
14743 cp -p "$ac_source" "$ac_file" ||
14744 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14747 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14748 $as_echo "$as_me: executing $ac_file commands" >&6;}
14753 case $ac_file$ac_mode in
14754 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
14756 case x$CONFIG_HEADERS in
14757 xconfig.h:config.in)
14768 ac_clean_files=$ac_clean_files_save
14770 test $ac_write_fail = 0 ||
14771 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14774 # configure is writing to config.log, and then calls config.status.
14775 # config.status does its own redirection, appending to config.log.
14776 # Unfortunately, on DOS this fails, as config.log is still kept open
14777 # by configure, so config.status won't be able to
write to it
; its
14778 # output is simply discarded. So we exec the FD to /dev/null,
14779 # effectively closing config.log, so it can be properly (re)opened and
14780 # appended to by config.status. When coming back to configure, we
14781 # need to make the FD available again.
14782 if test "$no_create" != yes; then
14784 ac_config_status_args
=
14785 test "$silent" = yes &&
14786 ac_config_status_args
="$ac_config_status_args --quiet"
14788 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14790 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14791 # would make configure fail if this is the last instruction.
14792 $ac_cs_success || as_fn_exit $?
14796 # CONFIG_SUBDIRS section.
14798 if test "$no_recursion" != yes; then
14800 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14801 # so they do not pile up.
14802 ac_sub_configure_args
=
14804 eval "set x $ac_configure_args"
14808 if test -n "$ac_prev"; then
14813 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
14814 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
14815 ac_prev
=cache_file
;;
14816 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
14817 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
14820 --config-cache |
-C)
14822 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
14824 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
14826 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
14828 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
14830 --disable-option-checking)
14834 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14836 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
14840 # Always prepend --prefix to ensure using the same prefix
14841 # in subdir configurations.
14842 ac_arg
="--prefix=$prefix"
14844 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14846 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
14849 if test "$silent" = yes; then
14850 ac_sub_configure_args
="--silent $ac_sub_configure_args"
14853 # Always prepend --disable-option-checking to silence warnings, since
14854 # different subdirs can have different --enable and --with options.
14855 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
14858 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
14860 # Do not complain, so a configure script can configure whichever
14861 # parts of a large source tree are present.
14862 test -d "$srcdir/$ac_dir" ||
continue
14864 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14865 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14866 $as_echo "$ac_msg" >&6
14867 as_dir
="$ac_dir"; as_fn_mkdir_p
14871 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14873 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14874 # A ".." for each directory in $ac_dir_suffix.
14875 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14876 case $ac_top_builddir_sub in
14877 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14878 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14881 ac_abs_top_builddir
=$ac_pwd
14882 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14883 # for backward compatibility:
14884 ac_top_builddir
=$ac_top_build_prefix
14887 .
) # We are building in place.
14889 ac_top_srcdir
=$ac_top_builddir_sub
14890 ac_abs_top_srcdir
=$ac_pwd ;;
14891 [\\/]* | ?
:[\\/]* ) # Absolute name.
14892 ac_srcdir
=$srcdir$ac_dir_suffix;
14893 ac_top_srcdir
=$srcdir
14894 ac_abs_top_srcdir
=$srcdir ;;
14895 *) # Relative name.
14896 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14897 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14898 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14900 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14905 # Check for guested configure; otherwise get Cygnus style configure.
14906 if test -f "$ac_srcdir/configure.gnu"; then
14907 ac_sub_configure
=$ac_srcdir/configure.gnu
14908 elif test -f "$ac_srcdir/configure"; then
14909 ac_sub_configure
=$ac_srcdir/configure
14910 elif test -f "$ac_srcdir/configure.in"; then
14911 # This should be Cygnus configure.
14912 ac_sub_configure
=$ac_aux_dir/configure
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14915 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14919 # The recursion is here.
14920 if test -n "$ac_sub_configure"; then
14921 # Make the cache file name correct relative to the subdirectory.
14922 case $cache_file in
14923 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
14924 *) # Relative name.
14925 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
14928 { $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
14929 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14930 # The eval makes quoting arguments work.
14931 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14932 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14933 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14939 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14941 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}