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
781 with_auto_load_safe_path
807 enable_build_warnings
808 enable_gdb_build_warnings
816 ac_precious_vars
='build_alias
830 ac_subdirs_all
='testsuite
835 # Initialize some variables set by options.
837 ac_init_version
=false
838 ac_unrecognized_opts
=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
849 program_transform_name
=s
,x
,x
,
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir
='${exec_prefix}/bin'
864 sbindir
='${exec_prefix}/sbin'
865 libexecdir
='${exec_prefix}/libexec'
866 datarootdir
='${prefix}/share'
867 datadir
='${datarootdir}'
868 sysconfdir
='${prefix}/etc'
869 sharedstatedir
='${prefix}/com'
870 localstatedir
='${prefix}/var'
871 includedir
='${prefix}/include'
872 oldincludedir
='/usr/include'
873 docdir
='${datarootdir}/doc/${PACKAGE}'
874 infodir
='${datarootdir}/info'
879 libdir
='${exec_prefix}/lib'
880 localedir
='${datarootdir}/locale'
881 mandir
='${datarootdir}/man'
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\
$ac_option
895 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 # Accept the important Cygnus configure options, so we can diagnose typos.
901 case $ac_dashdash$ac_option in
905 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
907 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
910 -build |
--build |
--buil |
--bui |
--bu)
911 ac_prev
=build_alias
;;
912 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
913 build_alias
=$ac_optarg ;;
915 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
916 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
917 ac_prev
=cache_file
;;
918 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
919 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
920 cache_file
=$ac_optarg ;;
923 cache_file
=config.cache
;;
925 -datadir |
--datadir |
--datadi |
--datad)
927 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
928 datadir
=$ac_optarg ;;
930 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
931 |
--dataroo |
--dataro |
--datar)
932 ac_prev
=datarootdir
;;
933 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
934 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
935 datarootdir
=$ac_optarg ;;
937 -disable-* |
--disable-*)
938 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
941 as_fn_error
"invalid feature name: $ac_useropt"
942 ac_useropt_orig
=$ac_useropt
943 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
948 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep
=', ';;
951 eval enable_
$ac_useropt=no
;;
953 -docdir |
--docdir |
--docdi |
--doc |
--do)
955 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
958 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
960 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
963 -enable-* |
--enable-*)
964 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
967 as_fn_error
"invalid feature name: $ac_useropt"
968 ac_useropt_orig
=$ac_useropt
969 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep
=', ';;
977 eval enable_
$ac_useropt=\
$ac_optarg ;;
979 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
980 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
981 |
--exec |
--exe |
--ex)
982 ac_prev
=exec_prefix
;;
983 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
984 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
985 |
--exec=* |
--exe=* |
--ex=*)
986 exec_prefix
=$ac_optarg ;;
988 -gas |
--gas |
--ga |
--g)
989 # Obsolete; use --with-gas.
992 -help |
--help |
--hel |
--he |
-h)
994 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
995 ac_init_help
=recursive
;;
996 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
997 ac_init_help
=short
;;
999 -host |
--host |
--hos |
--ho)
1000 ac_prev
=host_alias
;;
1001 -host=* |
--host=* |
--hos=* |
--ho=*)
1002 host_alias
=$ac_optarg ;;
1004 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1006 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1008 htmldir
=$ac_optarg ;;
1010 -includedir |
--includedir |
--includedi |
--included |
--include \
1011 |
--includ |
--inclu |
--incl |
--inc)
1012 ac_prev
=includedir
;;
1013 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1014 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1015 includedir
=$ac_optarg ;;
1017 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1019 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1020 infodir
=$ac_optarg ;;
1022 -libdir |
--libdir |
--libdi |
--libd)
1024 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1025 libdir
=$ac_optarg ;;
1027 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1028 |
--libexe |
--libex |
--libe)
1029 ac_prev
=libexecdir
;;
1030 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1031 |
--libexe=* |
--libex=* |
--libe=*)
1032 libexecdir
=$ac_optarg ;;
1034 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1035 ac_prev
=localedir
;;
1036 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1037 localedir
=$ac_optarg ;;
1039 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1040 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1041 ac_prev
=localstatedir
;;
1042 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1043 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1044 localstatedir
=$ac_optarg ;;
1046 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1048 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1049 mandir
=$ac_optarg ;;
1051 -nfp |
--nfp |
--nf)
1052 # Obsolete; use --without-fp.
1055 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1056 |
--no-cr |
--no-c |
-n)
1059 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1060 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1063 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1064 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1065 |
--oldin |
--oldi |
--old |
--ol |
--o)
1066 ac_prev
=oldincludedir
;;
1067 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1068 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1069 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1070 oldincludedir
=$ac_optarg ;;
1072 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1074 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1075 prefix
=$ac_optarg ;;
1077 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1078 |
--program-pre |
--program-pr |
--program-p)
1079 ac_prev
=program_prefix
;;
1080 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1081 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1082 program_prefix
=$ac_optarg ;;
1084 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1085 |
--program-suf |
--program-su |
--program-s)
1086 ac_prev
=program_suffix
;;
1087 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1088 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1089 program_suffix
=$ac_optarg ;;
1091 -program-transform-name |
--program-transform-name \
1092 |
--program-transform-nam |
--program-transform-na \
1093 |
--program-transform-n |
--program-transform- \
1094 |
--program-transform |
--program-transfor \
1095 |
--program-transfo |
--program-transf \
1096 |
--program-trans |
--program-tran \
1097 |
--progr-tra |
--program-tr |
--program-t)
1098 ac_prev
=program_transform_name
;;
1099 -program-transform-name=* |
--program-transform-name=* \
1100 |
--program-transform-nam=* |
--program-transform-na=* \
1101 |
--program-transform-n=* |
--program-transform-=* \
1102 |
--program-transform=* |
--program-transfor=* \
1103 |
--program-transfo=* |
--program-transf=* \
1104 |
--program-trans=* |
--program-tran=* \
1105 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1106 program_transform_name
=$ac_optarg ;;
1108 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1110 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1111 pdfdir
=$ac_optarg ;;
1113 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1115 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1118 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1119 |
-silent |
--silent |
--silen |
--sile |
--sil)
1122 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1124 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1126 sbindir
=$ac_optarg ;;
1128 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1129 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1130 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1132 ac_prev
=sharedstatedir
;;
1133 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1134 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1135 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1137 sharedstatedir
=$ac_optarg ;;
1139 -site |
--site |
--sit)
1141 -site=* |
--site=* |
--sit=*)
1144 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1146 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1147 srcdir
=$ac_optarg ;;
1149 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1150 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1151 ac_prev
=sysconfdir
;;
1152 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1153 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1154 sysconfdir
=$ac_optarg ;;
1156 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1157 ac_prev
=target_alias
;;
1158 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1159 target_alias
=$ac_optarg ;;
1161 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1164 -version |
--version |
--versio |
--versi |
--vers |
-V)
1165 ac_init_version
=: ;;
1168 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1171 as_fn_error
"invalid package name: $ac_useropt"
1172 ac_useropt_orig
=$ac_useropt
1173 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1178 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep
=', ';;
1181 eval with_
$ac_useropt=\
$ac_optarg ;;
1183 -without-* |
--without-*)
1184 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1187 as_fn_error
"invalid package name: $ac_useropt"
1188 ac_useropt_orig
=$ac_useropt
1189 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1194 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep
=', ';;
1197 eval with_
$ac_useropt=no
;;
1200 # Obsolete; use --with-x.
1203 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1204 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1205 ac_prev
=x_includes
;;
1206 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1207 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1208 x_includes
=$ac_optarg ;;
1210 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1211 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1212 ac_prev
=x_libraries
;;
1213 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1214 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1215 x_libraries
=$ac_optarg ;;
1217 -*) as_fn_error
"unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information."
1222 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1226 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1228 eval $ac_envvar=\
$ac_optarg
1229 export $ac_envvar ;;
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1242 if test -n "$ac_prev"; then
1243 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error
"missing argument to $ac_option"
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1250 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 # Check all directory arguments for consistency.
1256 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1261 eval ac_val
=\$
$ac_var
1262 # Remove trailing slashes.
1265 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\
$ac_val;;
1268 # Be sure to have absolute directory names.
1270 [\\/$
]* | ?
:[\\/]* ) continue;;
1271 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1273 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1281 target
=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x
; then
1285 if test "x$build_alias" = x
; then
1286 cross_compiling
=maybe
1287 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288 If a cross compiler is detected then cross compile mode will be used." >&2
1289 elif test "x$build_alias" != "x$host_alias"; then
1295 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1297 test "$silent" = yes && exec 6>/dev
/null
1300 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di
=`ls -di .` &&
1302 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error
"working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error
"pwd does not report name of working directory"
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted
=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir
=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1340 ac_srcdir_defaulted
=no
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1344 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1346 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1358 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 for ac_var
in $ac_precious_vars; do
1361 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1363 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1374 \`configure' configures this package to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1437 --x-includes=DIR X include files are
in DIR
1438 --x-libraries=DIR X library files are
in DIR
1441 --build=BUILD configure
for building on BUILD
[guessed
]
1442 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1443 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1447 if test -n "$ac_init_help"; then
1452 --disable-option-checking ignore unrecognized
--enable/--with options
1453 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1454 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1455 --enable-maintainer-mode enable make rules and dependencies not useful
1456 (and sometimes confusing
) to the casual installer
1457 --enable-plugins Enable support
for plugins
(defaults no
)
1458 --disable-largefile omit support
for large files
1459 --enable-targets=TARGETS
1460 alternative target configurations
1461 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1462 --disable-gdbcli disable command-line interface
(CLI
)
1463 --disable-gdbmi disable machine-interface
(MI
)
1464 --enable-tui enable full-screen terminal user interface
(TUI
)
1465 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1466 --enable-profiling enable profiling of GDB
1467 --disable-rpath do not hardcode runtime library paths
1468 --enable-werror treat compile warnings as errors
1469 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1470 --enable-gdb-build-warnings
1471 enable GDB specific build-time compiler warnings
if
1473 --enable-sim link gdb with simulator
1474 --enable-multi-ice build the multi-ice-gdb-server
1475 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1479 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1480 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1481 --with-separate-debug-dir=PATH
1482 look for global separate debug info
in this path
1484 --with-gdb-datadir=PATH
look for global separate data files
in this path
1486 --with-relocated-sources=PATH
1487 automatically relocate this path
for source files
1488 --with-auto-load-safe-path=PATH
1489 directories safe to hold auto-loaded files
1490 --without-auto-load-safe-path
1491 do not restrict auto-loaded files locations
1492 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1493 --with-curses use the curses library instead of the termcap
1495 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1496 --with-bugurl=URL Direct users to URL to report a bug
1497 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1498 --with-libiconv-prefix=DIR
1499 search
for libiconv
in DIR
/include and DIR
/lib
1500 --with-iconv-bin=PATH specify where to
find the
iconv program
1501 --with-system-readline use installed readline library
1502 --with-jit-reader-dir=PATH
1503 directory to load the JIT readers from
1504 --with-expat include expat support
(auto
/yes
/no
)
1505 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1506 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1507 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1508 --with-python[=PYTHON] include python support
1509 (auto/yes/no/<python-program>)
1510 --without-included-regex
1511 don't use included regex
; this is the default on
1512 systems with version
2 of the GNU C library
(use
1513 with caution on other system
)
1514 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1515 --with-system-gdbinit=PATH
1516 automatically load a system-wide gdbinit
file
1517 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1518 --with-tk directory containing tk configuration
(tkConfig.sh
)
1519 --with-x use the X Window System
1521 Some influential environment variables
:
1522 CC C compiler
command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1525 nonstandard directory
<lib dir
>
1526 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1527 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1528 you have headers
in a nonstandard directory
<include dir
>
1530 MAKEINFO Parent configure detects
if it is of sufficient version.
1532 Parameters
for MAKEINFO.
1533 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1534 the first program found out of: `bison
-y', `byacc', `yacc'.
1535 YFLAGS The list of arguments that will be passed by default to $YACC.
1536 This script will default YFLAGS to the empty string to avoid a
1537 default value of `-d' given by some make applications.
1538 XMKMF Path to xmkmf, Makefile generator for X Window System
1540 Use these variables to override the choices made by `configure' or to
help
1541 it to
find libraries and programs with nonstandard names
/locations.
1543 Report bugs to the package provider.
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1557 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1559 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1564 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1567 ac_abs_top_builddir
=$ac_pwd
1568 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir
=$ac_top_build_prefix
1573 .
) # We are building in place.
1575 ac_top_srcdir
=$ac_top_builddir_sub
1576 ac_abs_top_srcdir
=$ac_pwd ;;
1577 [\\/]* | ?
:[\\/]* ) # Absolute name.
1578 ac_srcdir
=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir
=$srcdir
1580 ac_abs_top_srcdir
=$srcdir ;;
1582 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1586 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1588 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1607 generated by GNU Autoconf
2.64
1609 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1610 This configure
script is free software
; the Free Software Foundation
1611 gives unlimited permission to copy
, distribute and modify it.
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile
()
1625 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1626 rm -f conftest.
$ac_objext
1627 if { { ac_try
="$ac_compile"
1629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656 } # ac_fn_c_try_compile
1658 # ac_fn_c_try_cpp LINENO
1659 # ----------------------
1660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1667 *) ac_try_echo
=$ac_try;;
1669 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673 if test -s conftest.err
; then
1674 grep -v '^ *+' conftest.err
>conftest.er1
1675 cat conftest.er1
>&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } >/dev
/null
&& {
1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.
$ac_ext >&5
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1695 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1698 # the include files in INCLUDES and setting the cache variable VAR
1700 ac_fn_c_check_header_mongrel
()
1702 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1703 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1707 $as_echo_n "(cached) " >&6
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1713 # Is the header compilable?
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1715 $as_echo_n "checking $2 usability... " >&6; }
1716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1721 if ac_fn_c_try_compile
"$LINENO"; then :
1722 ac_header_compiler
=yes
1724 ac_header_compiler
=no
1726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1728 $as_echo "$ac_header_compiler" >&6; }
1730 # Is the header present?
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1732 $as_echo_n "checking $2 presence... " >&6; }
1733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1737 if ac_fn_c_try_cpp
"$LINENO"; then :
1738 ac_header_preproc
=yes
1740 ac_header_preproc
=no
1742 rm -f conftest.err conftest.
$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1744 $as_echo "$ac_header_preproc" >&6; }
1746 # So? What about this header?
1747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1750 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1752 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1756 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1758 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1760 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1762 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 $as_echo_n "(cached) " >&6
1772 eval "$3=\$ac_header_compiler"
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1780 } # ac_fn_c_check_header_mongrel
1782 # ac_fn_c_try_run LINENO
1783 # ----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785 # that executables *can* be run.
1788 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1789 if { { ac_try
="$ac_link"
1791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>&5
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800 { { case "(($ac_try" in
1801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1802 *) ac_try_echo
=$ac_try;;
1804 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_try") 2>&5
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; }; }; then :
1812 $as_echo "$as_me: program exited with status $ac_status" >&5
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.
$ac_ext >&5
1816 ac_retval
=$ac_status
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1824 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1825 # -------------------------------------------------------
1826 # Tests whether HEADER exists and can be compiled using the include files in
1827 # INCLUDES, setting the cache variable VAR accordingly.
1828 ac_fn_c_check_header_compile
()
1830 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834 $as_echo_n "(cached) " >&6
1836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1841 if ac_fn_c_try_compile
"$LINENO"; then :
1846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1853 } # ac_fn_c_check_header_compile
1855 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1856 # --------------------------------------------
1857 # Tries to find the compile-time value of EXPR in a program that includes
1858 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1860 ac_fn_c_compute_int
()
1862 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1863 if test "$cross_compiling" = yes; then
1864 # Depending upon the size, compute the lo and hi bounds.
1865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1871 static int test_array [1 - 2 * !(($2) >= 0)];
1878 if ac_fn_c_try_compile
"$LINENO"; then :
1881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1887 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1894 if ac_fn_c_try_compile
"$LINENO"; then :
1895 ac_hi
=$ac_mid; break
1897 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1898 if test $ac_lo -le $ac_mid; then
1902 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1913 static int test_array [1 - 2 * !(($2) < 0)];
1920 if ac_fn_c_try_compile
"$LINENO"; then :
1923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1929 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1936 if ac_fn_c_try_compile
"$LINENO"; then :
1937 ac_lo
=$ac_mid; break
1939 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1940 if test $ac_mid -le $ac_hi; then
1944 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1954 # Binary search between lo and hi bounds.
1955 while test "x$ac_lo" != "x$ac_hi"; do
1956 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
1957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1963 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1970 if ac_fn_c_try_compile
"$LINENO"; then :
1973 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
1975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1978 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
1982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1985 static long int longval () { return $2; }
1986 static unsigned long int ulongval () { return $2; }
1993 FILE *f = fopen ("conftest.val", "w");
1998 long int i = longval ();
2001 fprintf (f, "%ld", i);
2005 unsigned long int i = ulongval ();
2008 fprintf (f, "%lu", i);
2010 /* Do not output a trailing newline, as this causes \r\n confusion
2011 on some platforms. */
2012 return ferror (f) || fclose (f) != 0;
2018 if ac_fn_c_try_run
"$LINENO"; then :
2019 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2023 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2024 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2031 } # ac_fn_c_compute_int
2033 # ac_fn_c_try_link LINENO
2034 # -----------------------
2035 # Try to link conftest.$ac_ext, and return whether this succeeded.
2038 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2039 rm -f conftest.
$ac_objext conftest
$ac_exeext
2040 if { { ac_try
="$ac_link"
2042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2043 *) ac_try_echo=$ac_try;;
2045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2046 $as_echo "$ac_try_echo"; } >&5
2047 (eval "$ac_link") 2>conftest.err
2049 if test -s conftest.err; then
2050 grep -v '^ *+' conftest.err >conftest.er1
2051 cat conftest.er1 >&5
2052 mv -f conftest.er1 conftest.err
2054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055 test $ac_status = 0; } && {
2056 test -z "$ac_c_werror_flag" ||
2057 test ! -s conftest.err
2058 } && test -s conftest$ac_exeext && {
2059 test "$cross_compiling" = yes ||
2060 $as_test_x conftest$ac_exeext
2064 $as_echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2069 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2070 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2071 # interfere with the next link command; also delete a directory that is
2072 # left behind by Apple's compiler. We do this before executing the actions.
2073 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 } # ac_fn_c_try_link
2079 # ac_fn_c_check_func LINENO FUNC VAR
2080 # ----------------------------------
2081 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2082 ac_fn_c_check_func ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2088 $as_echo_n "(cached) " >&6
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2094 #define $2 innocuous_$2
2096 /* System header to define __stub macros and hopefully few prototypes,
2097 which can conflict with char $2 (); below.
2098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2099 <limits.h> exists even on freestanding compilers. */
2102 # include <limits.h>
2104 # include <assert.h>
2109 /* Override any GCC internal prototype to avoid an error.
2110 Use char because int might match the return type of a GCC
2111 builtin and then its argument prototype would still apply. */
2116 /* The GNU C library defines this for functions which it implements
2117 to always fail with ENOSYS. Some functions are actually named
2118 something starting with __ and the normal name is an alias. */
2119 #if defined __stub_$2 || defined __stub___$2
2131 if ac_fn_c_try_link "$LINENO"; then :
2136 rm -f core conftest.err conftest.$ac_objext \
2137 conftest$ac_exeext conftest.$ac_ext
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141 $as_echo "$ac_res" >&6; }
2142 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2144 } # ac_fn_c_check_func
2146 # ac_fn_c_check_decl LINENO SYMBOL VAR
2147 # ------------------------------------
2148 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2149 ac_fn_c_check_decl ()
2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2153 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2155 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2156 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2157 $as_echo_n "(cached) " >&6
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2165 #ifndef $as_decl_name
2167 (void) $as_decl_use;
2169 (void) $as_decl_name;
2177 if ac_fn_c_try_compile "$LINENO"; then :
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2189 } # ac_fn_c_check_decl
2191 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2192 # ----------------------------------------------------
2193 # Tries to find if the field MEMBER exists in type AGGR, after including
2194 # INCLUDES, setting cache variable VAR accordingly.
2195 ac_fn_c_check_member ()
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2199 $as_echo_n "checking for $2.$3... " >&6; }
2200 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2201 $as_echo_n "(cached) " >&6
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2216 if ac_fn_c_try_compile "$LINENO"; then :
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2226 if (sizeof ac_aggr.$3)
2232 if ac_fn_c_try_compile "$LINENO"; then :
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243 $as_echo "$ac_res" >&6; }
2244 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246 } # ac_fn_c_check_member
2248 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2249 # -------------------------------------------
2250 # Tests whether TYPE exists after having included INCLUDES, setting cache
2251 # variable VAR accordingly.
2252 ac_fn_c_check_type ()
2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256 $as_echo_n "checking for $2... " >&6; }
2257 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2258 $as_echo_n "(cached) " >&6
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2273 if ac_fn_c_try_compile "$LINENO"; then :
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2286 if ac_fn_c_try_compile "$LINENO"; then :
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297 $as_echo "$ac_res" >&6; }
2298 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2300 } # ac_fn_c_check_type
2301 cat >config.log <<_ACEOF
2302 This file contains any messages produced by compilers while
2303 running configure, to aid debugging if configure makes a mistake.
2305 It was created by $as_me, which was
2306 generated by GNU Autoconf 2.64. Invocation command line was
2318 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2319 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2320 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2321 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2322 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2324 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2325 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2327 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2328 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2329 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2330 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2331 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2332 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2333 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 test -z "$as_dir" && as_dir=.
2342 $as_echo "PATH: $as_dir"
2358 # Keep a trace of the command line.
2359 # Strip out --no-create and --no-recursion so they do not pile up.
2360 # Strip out --silent because we don't want to record it for future runs.
2361 # Also quote any args containing shell meta-characters.
2362 # Make two passes to allow for proper duplicate-argument suppression.
2366 ac_must_keep_next=false
2372 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2374 | -silent | --silent | --silen | --sile | --sil)
2377 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2380 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2382 as_fn_append ac_configure_args1 " '$ac_arg'"
2383 if test $ac_must_keep_next = true; then
2384 ac_must_keep_next=false # Got value, back to normal.
2387 *=* | --config-cache | -C | -disable-* | --disable-* \
2388 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2389 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2390 | -with-* | --with-* | -without-* | --without-* | --x)
2391 case "$ac_configure_args0 " in
2392 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2395 -* ) ac_must_keep_next=true ;;
2398 as_fn_append ac_configure_args " '$ac_arg'"
2403 { ac_configure_args0=; unset ac_configure_args0;}
2404 { ac_configure_args1=; unset ac_configure_args1;}
2406 # When interrupted or exit'd, cleanup temporary files, and complete
2407 # config.log. We remove comments because anyway the quotes in there
2408 # would cause problems or look ugly.
2409 # WARNING: Use '\'' to represent an apostrophe within the trap.
2410 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2411 trap 'exit_status=$?
2412 # Save into config.log some information that might help in debugging.
2417 ## ---------------- ##
2418 ## Cache variables. ##
2419 ## ---------------- ##
2422 # The following way of writing the cache mishandles newlines in values,
2424 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2425 eval ac_val=\$$ac_var
2429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2430 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2433 _ | IFS | as_nl) ;; #(
2434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2435 *) { eval $ac_var=; unset $ac_var;} ;;
2440 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2441 *${as_nl}ac_space=\ *)
2443 "s/'\''/'\''\\\\'\'''\''/g;
2444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2455 ## ----------------- ##
2456 ## Output variables. ##
2457 ## ----------------- ##
2460 for ac_var in $ac_subst_vars
2462 eval ac_val=\$$ac_var
2464 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2466 $as_echo "$ac_var='\''$ac_val'\''"
2470 if test -n "$ac_subst_files"; then
2472 ## ------------------- ##
2473 ## File substitutions. ##
2474 ## ------------------- ##
2477 for ac_var in $ac_subst_files
2479 eval ac_val=\$$ac_var
2481 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483 $as_echo "$ac_var='\''$ac_val'\''"
2488 if test -s confdefs.h; then
2498 test "$ac_signal" != 0 &&
2499 $as_echo "$as_me: caught signal $ac_signal"
2500 $as_echo "$as_me: exit $exit_status"
2502 rm -f core *.core core.conftest.* &&
2503 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2506 for ac_signal in 1 2 13 15; do
2507 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2512 rm -f -r conftest* confdefs.h
2514 $as_echo "/* confdefs.h */" > confdefs.h
2516 # Predefined preprocessor variables.
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_NAME "$PACKAGE_NAME"
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_STRING "$PACKAGE_STRING"
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_URL "$PACKAGE_URL"
2543 # Let the site file select an alternate cache file if it wants to.
2544 # Prefer an explicitly selected file to automatically selected ones.
2547 if test -n "$CONFIG_SITE"; then
2548 ac_site_file1=$CONFIG_SITE
2549 elif test "x$prefix" != xNONE; then
2550 ac_site_file1=$prefix/share/config.site
2551 ac_site_file2=$prefix/etc/config.site
2553 ac_site_file1=$ac_default_prefix/share/config.site
2554 ac_site_file2=$ac_default_prefix/etc/config.site
2556 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2558 test "x$ac_site_file" = xNONE && continue
2559 if test -r "$ac_site_file"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2561 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2562 sed 's/^/| /' "$ac_site_file" >&5
2567 if test -r "$cache_file"; then
2568 # Some versions of bash will fail to source /dev/null (special
2569 # files actually), so we avoid doing that.
2570 if test -f "$cache_file"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2572 $as_echo "$as_me: loading cache $cache_file" >&6;}
2574 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2575 *) . "./$cache_file";;
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2580 $as_echo "$as_me: creating cache $cache_file" >&6;}
2584 # Check that the precious variables saved in the cache have kept the same
2586 ac_cache_corrupted=false
2587 for ac_var in $ac_precious_vars; do
2588 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2589 eval ac_new_set=\$ac_env_${ac_var}_set
2590 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2591 eval ac_new_val=\$ac_env_${ac_var}_value
2592 case $ac_old_set,$ac_new_set in
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2595 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2596 ac_cache_corrupted=: ;;
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2599 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2600 ac_cache_corrupted=: ;;
2603 if test "x$ac_old_val" != "x$ac_new_val"; then
2604 # differences in whitespace do not lead to failure.
2605 ac_old_val_w=`echo x
$ac_old_val`
2606 ac_new_val_w=`echo x
$ac_new_val`
2607 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2609 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2610 ac_cache_corrupted=:
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2613 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2614 eval $ac_var=\$ac_old_val
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2617 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2619 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2622 # Pass precious variables to config.status.
2623 if test "$ac_new_set" = set; then
2625 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2626 *) ac_arg=$ac_var=$ac_new_val ;;
2628 case " $ac_configure_args " in
2629 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2630 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2634 if $ac_cache_corrupted; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2638 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2639 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2641 ## -------------------- ##
2642 ## Main body of script. ##
2643 ## -------------------- ##
2646 ac_cpp='$CPP $CPPFLAGS'
2647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655 ac_config_headers="$ac_config_headers config.h:config.in"
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2659 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2660 # Check whether --enable-maintainer-mode was given.
2661 if test "${enable_maintainer_mode+set}" = set; then :
2662 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2664 USE_MAINTAINER_MODE=no
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2668 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2669 if test $USE_MAINTAINER_MODE = yes; then
2670 MAINTAINER_MODE_TRUE=
2671 MAINTAINER_MODE_FALSE='#'
2673 MAINTAINER_MODE_TRUE='#'
2674 MAINTAINER_MODE_FALSE=
2677 MAINT=$MAINTAINER_MODE_TRUE
2682 ac_cpp='$CPP $CPPFLAGS'
2683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2686 if test -n "$ac_tool_prefix"; then
2687 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2688 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if test "${ac_cv_prog_CC+set}" = set; then :
2692 $as_echo_n "(cached) " >&6
2694 if test -n "$CC"; then
2695 ac_cv_prog_CC="$CC" # Let the user override the test.
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 if test -n "$CC"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717 $as_echo "$CC" >&6; }
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2725 if test -z "$ac_cv_prog_CC"; then
2727 # Extract the first word of "gcc", so it can be a program name with args.
2728 set dummy gcc; ac_word=$2
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730 $as_echo_n "checking for $ac_word... " >&6; }
2731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2732 $as_echo_n "(cached) " >&6
2734 if test -n "$ac_ct_CC"; then
2735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744 ac_cv_prog_ac_ct_CC="gcc"
2745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2755 if test -n "$ac_ct_CC"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2757 $as_echo "$ac_ct_CC" >&6; }
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2763 if test "x$ac_ct_CC" = x; then
2766 case $cross_compiling:$ac_tool_warned in
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2770 ac_tool_warned=yes ;;
2778 if test -z "$CC"; then
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}cc; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_prog_CC+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_CC="${ac_tool_prefix}cc"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 if test -n "$CC"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810 $as_echo "$CC" >&6; }
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2819 if test -z "$CC"; then
2820 # Extract the first word of "cc", so it can be a program name with args.
2821 set dummy cc; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if test "${ac_cv_prog_CC+set}" = set; then :
2825 $as_echo_n "(cached) " >&6
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2839 ac_prog_rejected=yes
2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 if test $ac_prog_rejected = yes; then
2851 # We found a bogon in the path, so make sure we never use it.
2852 set dummy $ac_cv_prog_CC
2854 if test $# != 0; then
2855 # We chose a different compiler from the bogus one.
2856 # However, it has the same basename, so the bogon will be chosen
2857 # first if we set CC to just the basename; use the full file name.
2859 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2875 if test -z "$CC"; then
2876 if test -n "$ac_tool_prefix"; then
2877 for ac_prog in cl.exe
2879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if test "${ac_cv_prog_CC+set}" = set; then :
2884 $as_echo_n "(cached) " >&6
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 if test -n "$CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909 $as_echo "$CC" >&6; }
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2916 test -n "$CC" && break
2919 if test -z "$CC"; then
2921 for ac_prog in cl.exe
2923 # Extract the first word of "$ac_prog", so it can be a program name with args.
2924 set dummy $ac_prog; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2928 $as_echo_n "(cached) " >&6
2930 if test -n "$ac_ct_CC"; then
2931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 ac_cv_prog_ac_ct_CC="$ac_prog"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951 if test -n "$ac_ct_CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2953 $as_echo "$ac_ct_CC" >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2960 test -n "$ac_ct_CC" && break
2963 if test "x$ac_ct_CC" = x; then
2966 case $cross_compiling:$ac_tool_warned in
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2970 ac_tool_warned=yes ;;
2979 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981 as_fn_error "no acceptable C compiler found
in \
$PATH
2982 See \
`config.log' for more details." "$LINENO" 5; }
2984 # Provide some information about the compiler.
2985 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2988 for ac_option in --version -v -V -qversion; do
2989 { { ac_try="$ac_compiler $ac_option >&5"
2991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2992 *) ac_try_echo
=$ac_try;;
2994 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995 $as_echo "$ac_try_echo"; } >&5
2996 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2998 if test -s conftest.err
; then
3000 ... rest of stderr output deleted ...
3001 10q' conftest.err
>conftest.er1
3002 cat conftest.er1
>&5
3003 rm -f conftest.er1 conftest.err
3005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006 test $ac_status = 0; }
3009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3020 ac_clean_files_save
=$ac_clean_files
3021 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3022 # Try to create an executable without -o first, disregard a.out.
3023 # It will help us diagnose broken compilers, and finding out an intuition
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3026 $as_echo_n "checking for C compiler default output file name... " >&6; }
3027 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3029 # The possible output files:
3030 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3033 for ac_file
in $ac_files
3036 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3037 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3042 if { { ac_try
="$ac_link_default"
3044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 $as_echo "$ac_try_echo"; } >&5
3049 (eval "$ac_link_default") 2>&5
3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }; then :
3053 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3054 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3055 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3056 # so that the user can short-circuit this test for compilers unknown to
3058 for ac_file in $ac_files ''
3060 test -f "$ac_file" || continue
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3065 # We found the default executable, but exeext='' is most
3069 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3071 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073 # We set ac_cv_exeext here because the later test for it is not
3074 # safe: cross compilers may not add the suffix if given an `-o'
3075 # argument, so we may need to know it at that point already.
3076 # Even if this section looks crufty: it has the advantage of
3083 test "$ac_cv_exeext" = no && ac_cv_exeext=
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3089 $as_echo "$ac_file" >&6; }
3090 if test -z "$ac_file"; then :
3091 $as_echo "$as_me: failed program was:" >&5
3092 sed 's
/^
/|
/' conftest.$ac_ext >&5
3094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3096 { as_fn_set_status 77
3097 as_fn_error "C compiler cannot create executables
3098 See \`config.log
' for more details." "$LINENO" 5; }; }
3100 ac_exeext=$ac_cv_exeext
3102 # Check that the compiler produces executables we can run. If not, either
3103 # the compiler is broken, or we cross compile.
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3105 $as_echo_n "checking whether the C compiler works... " >&6; }
3106 # If not cross compiling, check that we can run a simple program.
3107 if test "$cross_compiling" != yes; then
3108 if { ac_try='.
/$ac_file'
3109 { { case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_try") 2>&5
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; }; then
3121 if test "$cross_compiling" = maybe; then
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3126 as_fn_error "cannot run C compiled programs.
3127 If you meant to cross compile, use \`--host'.
3128 See \`config.log' for more details.
" "$LINENO" 5; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3133 $as_echo "yes" >&6; }
3135 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3136 ac_clean_files=$ac_clean_files_save
3137 # Check that the compiler produces executables we can run. If not, either
3138 # the compiler is broken, or we cross compile.
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3140 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3142 $as_echo "$cross_compiling" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3145 $as_echo_n "checking
for suffix of executables...
" >&6; }
3146 if { { ac_try="$ac_link"
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 $as_echo "$ac_try_echo"; } >&5
3153 (eval "$ac_link") 2>&5
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3156 test $ac_status = 0; }; then :
3157 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3158 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3159 # work properly (i.e., refer to `conftest.exe'), while it won't with
3161 for ac_file in conftest.exe conftest conftest.*; do
3162 test -f "$ac_file" || continue
3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3165 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error "cannot compute suffix of executables: cannot compile and link
3174 See \`config.log' for more details.
" "$LINENO" 5; }
3176 rm -f conftest$ac_cv_exeext
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3178 $as_echo "$ac_cv_exeext" >&6; }
3180 rm -f conftest.$ac_ext
3181 EXEEXT=$ac_cv_exeext
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3184 $as_echo_n "checking
for suffix of object files...
" >&6; }
3185 if test "${ac_cv_objext+set}" = set; then :
3186 $as_echo_n "(cached
) " >&6
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3199 rm -f conftest.o conftest.obj
3200 if { { ac_try="$ac_compile"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_compile") 2>&5
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3210 test $ac_status = 0; }; then :
3211 for ac_file in conftest.o conftest.obj conftest.*; do
3212 test -f "$ac_file" || continue;
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3215 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3220 $as_echo "$as_me: failed program was
:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 as_fn_error "cannot compute suffix of object files: cannot compile
3226 See \`config.log' for more details.
" "$LINENO" 5; }
3228 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3231 $as_echo "$ac_cv_objext" >&6; }
3232 OBJEXT=$ac_cv_objext
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3235 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3236 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3237 $as_echo_n "(cached
) " >&6
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3253 if ac_fn_c_try_compile "$LINENO"; then :
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3263 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3264 if test $ac_compiler_gnu = yes; then
3269 ac_test_CFLAGS=${CFLAGS+set}
3270 ac_save_CFLAGS=$CFLAGS
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3272 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3273 if test "${ac_cv_prog_cc_g+set}" = set; then :
3274 $as_echo_n "(cached
) " >&6
3276 ac_save_c_werror_flag=$ac_c_werror_flag
3277 ac_c_werror_flag=yes
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3291 if ac_fn_c_try_compile "$LINENO"; then :
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3306 if ac_fn_c_try_compile "$LINENO"; then :
3309 ac_c_werror_flag=$ac_save_c_werror_flag
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3322 if ac_fn_c_try_compile "$LINENO"; then :
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_c_werror_flag=$ac_save_c_werror_flag
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3333 $as_echo "$ac_cv_prog_cc_g" >&6; }
3334 if test "$ac_test_CFLAGS" = set; then
3335 CFLAGS=$ac_save_CFLAGS
3336 elif test $ac_cv_prog_cc_g = yes; then
3337 if test "$GCC" = yes; then
3343 if test "$GCC" = yes; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3350 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3351 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3352 $as_echo_n "(cached
) " >&6
3354 ac_cv_prog_cc_c89=no
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3360 #include <sys/types.h>
3361 #include <sys/stat.h>
3362 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3363 struct buf { int x; };
3364 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3365 static char *e (p, i)
3371 static char *f (char * (*g) (char **, int), char **p, ...)
3376 s = g (p, va_arg (v,int));
3381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3382 function prototypes and stuff, but not '\xHH' hex character constants.
3383 These don't provoke an error unfortunately, instead are silently treated
3384 as 'x'. The following induces an error, until -std is added to get
3385 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3386 array size at least. It's necessary to write '\x00'==0 to get something
3387 that's true only with -std. */
3388 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3390 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3391 inside strings and character constants. */
3393 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3395 int test (int i, double x);
3396 struct s1 {int (*f) (int a);};
3397 struct s2 {int (*f) (double a);};
3398 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3404 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3409 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3410 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3412 CC="$ac_save_CC $ac_arg"
3413 if ac_fn_c_try_compile "$LINENO"; then :
3414 ac_cv_prog_cc_c89=$ac_arg
3416 rm -f core conftest.err conftest.$ac_objext
3417 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3419 rm -f conftest.$ac_ext
3424 case "x
$ac_cv_prog_cc_c89" in
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3427 $as_echo "none needed
" >&6; } ;;
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3430 $as_echo "unsupported
" >&6; } ;;
3432 CC="$CC $ac_cv_prog_cc_c89"
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3434 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3436 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3453 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3454 # On Suns, sometimes $CPP names a directory.
3455 if test -n "$CPP" && test -d "$CPP"; then
3458 if test -z "$CPP"; then
3459 if test "${ac_cv_prog_CPP+set}" = set; then :
3460 $as_echo_n "(cached
) " >&6
3462 # Double quotes because CPP needs to be expanded
3463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3466 for ac_c_preproc_warn_flag in '' yes
3468 # Use a header file that comes with gcc, so configuring glibc
3469 # with a fresh cross-compiler works.
3470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3471 # <limits.h> exists even on freestanding compilers.
3472 # On the NeXT, cc -E runs the code through the compiler's parser,
3473 # not just through cpp. "Syntax error
" is here to catch this case.
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3477 # include <limits.h>
3479 # include <assert.h>
3483 if ac_fn_c_try_cpp "$LINENO"; then :
3486 # Broken: fails on valid input.
3489 rm -f conftest.err conftest.$ac_ext
3491 # OK, works on sane cases. Now check whether nonexistent headers
3492 # can be detected and how.
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495 #include <ac_nonexistent.h>
3497 if ac_fn_c_try_cpp "$LINENO"; then :
3498 # Broken: success on invalid input.
3501 # Passes both tests.
3505 rm -f conftest.err conftest.$ac_ext
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then :
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3523 $as_echo "$CPP" >&6; }
3525 for ac_c_preproc_warn_flag in '' yes
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error
" is here to catch this case.
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3536 # include <limits.h>
3538 # include <assert.h>
3542 if ac_fn_c_try_cpp "$LINENO"; then :
3545 # Broken: fails on valid input.
3548 rm -f conftest.err conftest.$ac_ext
3550 # OK, works on sane cases. Now check whether nonexistent headers
3551 # can be detected and how.
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3554 #include <ac_nonexistent.h>
3556 if ac_fn_c_try_cpp "$LINENO"; then :
3557 # Broken: success on invalid input.
3560 # Passes both tests.
3564 rm -f conftest.err conftest.$ac_ext
3567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3568 rm -f conftest.err conftest.$ac_ext
3569 if $ac_preproc_ok; then :
3572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3575 See \`config.log' for more details.
" "$LINENO" 5; }
3579 ac_cpp='$CPP $CPPFLAGS'
3580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3586 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3587 if test "${ac_cv_path_GREP+set}" = set; then :
3588 $as_echo_n "(cached
) " >&6
3590 if test -z "$GREP"; then
3591 ac_path_GREP_found=false
3592 # Loop through the user's path and test for each of PROGNAME-LIST
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3597 test -z "$as_dir" && as_dir=.
3598 for ac_prog in grep ggrep; do
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3601 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3602 # Check for GNU ac_path_GREP and select it if it is found.
3603 # Check for GNU $ac_path_GREP
3604 case `"$ac_path_GREP" --version 2>&1` in
3606 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3609 $as_echo_n 0123456789 >"conftest.
in"
3612 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3613 mv "conftest.tmp
" "conftest.
in"
3614 cp "conftest.
in" "conftest.
nl"
3615 $as_echo 'GREP' >> "conftest.
nl"
3616 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3617 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3618 as_fn_arith $ac_count + 1 && ac_count=$as_val
3619 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3620 # Best one so far, save it but keep looking for a better one
3621 ac_cv_path_GREP="$ac_path_GREP"
3622 ac_path_GREP_max=$ac_count
3624 # 10*(2^10) chars as input seems more than enough
3625 test $ac_count -gt 10 && break
3627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3630 $ac_path_GREP_found && break 3
3635 if test -z "$ac_cv_path_GREP"; then
3636 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3639 ac_cv_path_GREP=$GREP
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3644 $as_echo "$ac_cv_path_GREP" >&6; }
3645 GREP="$ac_cv_path_GREP"
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3649 $as_echo_n "checking
for egrep...
" >&6; }
3650 if test "${ac_cv_path_EGREP+set}" = set; then :
3651 $as_echo_n "(cached
) " >&6
3653 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3654 then ac_cv_path_EGREP="$GREP -E"
3656 if test -z "$EGREP"; then
3657 ac_path_EGREP_found=false
3658 # Loop through the user's path and test for each of PROGNAME-LIST
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3663 test -z "$as_dir" && as_dir=.
3664 for ac_prog in egrep; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3667 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3668 # Check for GNU ac_path_EGREP and select it if it is found.
3669 # Check for GNU $ac_path_EGREP
3670 case `"$ac_path_EGREP" --version 2>&1` in
3672 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3675 $as_echo_n 0123456789 >"conftest.
in"
3678 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3679 mv "conftest.tmp
" "conftest.
in"
3680 cp "conftest.
in" "conftest.
nl"
3681 $as_echo 'EGREP' >> "conftest.
nl"
3682 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3683 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3684 as_fn_arith $ac_count + 1 && ac_count=$as_val
3685 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3686 # Best one so far, save it but keep looking for a better one
3687 ac_cv_path_EGREP="$ac_path_EGREP"
3688 ac_path_EGREP_max=$ac_count
3690 # 10*(2^10) chars as input seems more than enough
3691 test $ac_count -gt 10 && break
3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3696 $ac_path_EGREP_found && break 3
3701 if test -z "$ac_cv_path_EGREP"; then
3702 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3705 ac_cv_path_EGREP=$EGREP
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3711 $as_echo "$ac_cv_path_EGREP" >&6; }
3712 EGREP="$ac_cv_path_EGREP"
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3716 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3717 if test "${ac_cv_header_stdc+set}" = set; then :
3718 $as_echo_n "(cached
) " >&6
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_cv_header_stdc=yes
3738 ac_cv_header_stdc=no
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 if test $ac_cv_header_stdc = yes; then
3743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3749 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3750 $EGREP "memchr
" >/dev/null 2>&1; then :
3753 ac_cv_header_stdc=no
3759 if test $ac_cv_header_stdc = yes; then
3760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3766 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3767 $EGREP "free
" >/dev/null 2>&1; then :
3770 ac_cv_header_stdc=no
3776 if test $ac_cv_header_stdc = yes; then
3777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3778 if test "$cross_compiling" = yes; then :
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3785 #if ((' ' & 0x0FF) == 0x020)
3786 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3787 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3789 # define ISLOWER(c) \
3790 (('a' <= (c) && (c) <= 'i') \
3791 || ('j' <= (c) && (c) <= 'r') \
3792 || ('s' <= (c) && (c) <= 'z'))
3793 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3796 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3801 for (i = 0; i < 256; i++)
3802 if (XOR (islower (i), ISLOWER (i))
3803 || toupper (i) != TOUPPER (i))
3808 if ac_fn_c_try_run "$LINENO"; then :
3811 ac_cv_header_stdc=no
3813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3814 conftest.$ac_objext conftest.beam conftest.$ac_ext
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3820 $as_echo "$ac_cv_header_stdc" >&6; }
3821 if test $ac_cv_header_stdc = yes; then
3823 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3827 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3828 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3829 inttypes.h stdint.h unistd.h
3831 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3832 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3834 eval as_val
=\$
$as_ac_Header
3835 if test "x$as_val" = x
""yes; then :
3836 cat >>confdefs.h
<<_ACEOF
3837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3846 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3847 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3854 if test "$MINIX" = yes; then
3856 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3859 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3862 $as_echo "#define _MINIX 1" >>confdefs.h
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3868 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3869 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3870 $as_echo_n "(cached) " >&6
3872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3875 # define __EXTENSIONS__ 1
3876 $ac_includes_default
3885 if ac_fn_c_try_compile
"$LINENO"; then :
3886 ac_cv_safe_to_define___extensions__
=yes
3888 ac_cv_safe_to_define___extensions__
=no
3890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3893 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3894 test $ac_cv_safe_to_define___extensions__ = yes &&
3895 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3897 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3899 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3901 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3903 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3907 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3908 for ac_t
in install-sh
install.sh shtool
; do
3909 if test -f "$ac_dir/$ac_t"; then
3911 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3916 if test -z "$ac_aux_dir"; then
3917 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3920 # These three variables are undocumented and unsupported,
3921 # and are intended to be withdrawn in a future Autoconf release.
3922 # They can cause serious problems if a builder's source tree is in a directory
3923 # whose full name contains unusual characters.
3924 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3925 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3926 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3929 # Make sure we can run config.sub.
3930 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3931 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3934 $as_echo_n "checking build system type... " >&6; }
3935 if test "${ac_cv_build+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
3938 ac_build_alias
=$build_alias
3939 test "x$ac_build_alias" = x
&&
3940 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3941 test "x$ac_build_alias" = x
&&
3942 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3943 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3944 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3948 $as_echo "$ac_cv_build" >&6; }
3949 case $ac_cv_build in
3951 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3954 ac_save_IFS
=$IFS; IFS
='-'
3960 # Remember, the first character of IFS is used to create $*,
3961 # except with old shells:
3964 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3968 $as_echo_n "checking host system type... " >&6; }
3969 if test "${ac_cv_host+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3972 if test "x$host_alias" = x
; then
3973 ac_cv_host
=$ac_cv_build
3975 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3976 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3981 $as_echo "$ac_cv_host" >&6; }
3984 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3987 ac_save_IFS
=$IFS; IFS
='-'
3993 # Remember, the first character of IFS is used to create $*,
3994 # except with old shells:
3997 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4001 $as_echo_n "checking target system type... " >&6; }
4002 if test "${ac_cv_target+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4005 if test "x$target_alias" = x
; then
4006 ac_cv_target
=$ac_cv_host
4008 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4009 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4014 $as_echo "$ac_cv_target" >&6; }
4015 case $ac_cv_target in
4017 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4019 target
=$ac_cv_target
4020 ac_save_IFS
=$IFS; IFS
='-'
4026 # Remember, the first character of IFS is used to create $*,
4027 # except with old shells:
4030 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4033 # The aliases save the names the user supplied, while $host etc.
4034 # will get canonicalized.
4035 test -n "$target_alias" &&
4036 test "$program_prefix$program_suffix$program_transform_name" = \
4038 program_prefix
=${target_alias}-
4040 # The tests for host and target for $enable_largefile require
4045 # As the $enable_largefile decision depends on --enable-plugins we must set it
4046 # even in directories otherwise not depending on the $plugins option.
4049 # Check whether --enable-plugins was given.
4050 if test "${enable_plugins+set}" = set; then :
4051 enableval
=$enable_plugins; case "${enableval}" in
4052 yes |
"") plugins
=yes ;;
4063 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4064 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4065 # are mutually exclusive; and without procfs support, the bfd/ elf module
4066 # cannot provide certain routines such as elfcore_write_prpsinfo
4067 # or elfcore_write_prstatus. So unless the user explicitly requested
4068 # large-file support through the --enable-largefile switch, disable
4069 # large-file support in favor of procfs support.
4070 test "${target}" = "${host}" -a "x$plugins" = xno \
4071 && : ${enable_largefile="no"}
4075 # Check whether --enable-largefile was given.
4076 if test "${enable_largefile+set}" = set; then :
4077 enableval
=$enable_largefile;
4080 if test "$enable_largefile" != no
; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4083 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4084 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4087 ac_cv_sys_largefile_CC
=no
4088 if test "$GCC" != yes; then
4091 # IRIX 6.2 and later do not support large files by default,
4092 # so use the C compiler's -n32 option if that helps.
4093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #include <sys/types.h>
4096 /* Check that off_t can represent 2**63 - 1 correctly.
4097 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4098 since some C++ compilers masquerading as C compilers
4099 incorrectly reject 9223372036854775807. */
4100 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4101 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4102 && LARGE_OFF_T % 2147483647 == 1)
4112 if ac_fn_c_try_compile
"$LINENO"; then :
4115 rm -f core conftest.err conftest.
$ac_objext
4117 if ac_fn_c_try_compile
"$LINENO"; then :
4118 ac_cv_sys_largefile_CC
=' -n32'; break
4120 rm -f core conftest.err conftest.
$ac_objext
4124 rm -f conftest.
$ac_ext
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4128 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4129 if test "$ac_cv_sys_largefile_CC" != no
; then
4130 CC
=$CC$ac_cv_sys_largefile_CC
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4134 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4135 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
4139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 #include <sys/types.h>
4142 /* Check that off_t can represent 2**63 - 1 correctly.
4143 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4144 since some C++ compilers masquerading as C compilers
4145 incorrectly reject 9223372036854775807. */
4146 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4148 && LARGE_OFF_T % 2147483647 == 1)
4158 if ac_fn_c_try_compile
"$LINENO"; then :
4159 ac_cv_sys_file_offset_bits
=no
; break
4161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164 #define _FILE_OFFSET_BITS 64
4165 #include <sys/types.h>
4166 /* Check that off_t can represent 2**63 - 1 correctly.
4167 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4168 since some C++ compilers masquerading as C compilers
4169 incorrectly reject 9223372036854775807. */
4170 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4171 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4172 && LARGE_OFF_T % 2147483647 == 1)
4182 if ac_fn_c_try_compile
"$LINENO"; then :
4183 ac_cv_sys_file_offset_bits
=64; break
4185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4186 ac_cv_sys_file_offset_bits
=unknown
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4191 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4192 case $ac_cv_sys_file_offset_bits in #(
4195 cat >>confdefs.h
<<_ACEOF
4196 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4201 if test $ac_cv_sys_file_offset_bits = unknown
; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4203 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4204 if test "${ac_cv_sys_large_files+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
4208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #include <sys/types.h>
4211 /* Check that off_t can represent 2**63 - 1 correctly.
4212 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4213 since some C++ compilers masquerading as C compilers
4214 incorrectly reject 9223372036854775807. */
4215 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4216 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4217 && LARGE_OFF_T % 2147483647 == 1)
4227 if ac_fn_c_try_compile
"$LINENO"; then :
4228 ac_cv_sys_large_files
=no
; break
4230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233 #define _LARGE_FILES 1
4234 #include <sys/types.h>
4235 /* Check that off_t can represent 2**63 - 1 correctly.
4236 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4237 since some C++ compilers masquerading as C compilers
4238 incorrectly reject 9223372036854775807. */
4239 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4240 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4241 && LARGE_OFF_T % 2147483647 == 1)
4251 if ac_fn_c_try_compile
"$LINENO"; then :
4252 ac_cv_sys_large_files
=1; break
4254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4255 ac_cv_sys_large_files
=unknown
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4260 $as_echo "$ac_cv_sys_large_files" >&6; }
4261 case $ac_cv_sys_large_files in #(
4264 cat >>confdefs.h
<<_ACEOF
4265 #define _LARGE_FILES $ac_cv_sys_large_files
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4278 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4279 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4280 $as_echo_n "(cached) " >&6
4282 am_cv_prog_cc_stdc
=no
4284 # Don't try gcc -ansi; that turns off useful extensions and
4285 # breaks some systems' header files.
4286 # AIX -qlanglvl=ansi
4287 # Ultrix and OSF/1 -std1
4288 # HP-UX 10.20 and later -Ae
4289 # HP-UX older versions -Aa -D_HPUX_SOURCE
4290 # SVR4 -Xc -D__EXTENSIONS__
4291 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4293 CC
="$ac_save_CC $ac_arg"
4294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4298 #include <sys/types.h>
4299 #include <sys/stat.h>
4300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4301 struct buf { int x; };
4302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4303 static char *e (p, i)
4309 static char *f (char * (*g) (char **, int), char **p, ...)
4314 s = g (p, va_arg (v,int));
4318 int test (int i, double x);
4319 struct s1 {int (*f) (int a);};
4320 struct s2 {int (*f) (double a);};
4321 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4335 if ac_fn_c_try_compile
"$LINENO"; then :
4336 am_cv_prog_cc_stdc
="$ac_arg"; break
4338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4344 if test -z "$am_cv_prog_cc_stdc"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4346 $as_echo "none needed" >&6; }
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4349 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4351 case "x$am_cv_prog_cc_stdc" in
4353 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4358 for ac_dir
in ..
"$srcdir"/..
; do
4359 for ac_t
in install-sh
install.sh shtool
; do
4360 if test -f "$ac_dir/$ac_t"; then
4362 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4367 if test -z "$ac_aux_dir"; then
4368 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4371 # These three variables are undocumented and unsupported,
4372 # and are intended to be withdrawn in a future Autoconf release.
4373 # They can cause serious problems if a builder's source tree is in a directory
4374 # whose full name contains unusual characters.
4375 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4376 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4377 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4381 test "$program_prefix" != NONE
&&
4382 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4383 # Use a double $ so make ignores it.
4384 test "$program_suffix" != NONE
&&
4385 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4386 # Double any \ or $.
4387 # By default was `s,x,x', remove it if useless.
4388 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4389 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4392 # Dependency checking.
4393 rm -rf .tst
2>/dev
/null
4394 mkdir .tst
2>/dev
/null
4395 if test -d .tst
; then
4400 rmdir .tst
2>/dev
/null
4402 DEPDIR
="${am__leading_dot}deps"
4404 ac_config_commands
="$ac_config_commands depdir"
4407 depcc
="$CC" am_compiler_list
=
4409 am_depcomp
=$ac_aux_dir/depcomp
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4411 $as_echo_n "checking dependency style of $depcc... " >&6; }
4412 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4415 if test -f "$am_depcomp"; then
4416 # We make a subdir and do the tests there. Otherwise we can end up
4417 # making bogus files that we don't know about and never remove. For
4418 # instance it was reported that on HP-UX the gcc test will end up
4419 # making a dummy file named `D' -- because `-MD' means `put the output
4422 # Copy depcomp to subdir because otherwise we won't find it if we're
4423 # using a relative directory.
4424 cp "$am_depcomp" conftest.dir
4426 # We will build objects and dependencies in a subdirectory because
4427 # it helps to detect inapplicable dependency modes. For instance
4428 # both Tru64's cc and ICC support -MD to output dependencies as a
4429 # side effect of compilation, but ICC will put the dependencies in
4430 # the current directory while Tru64 will put them in the object
4434 am_cv_CC_dependencies_compiler_type
=none
4435 if test "$am_compiler_list" = ""; then
4436 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4438 for depmode
in $am_compiler_list; do
4439 if test $depmode = none
; then break; fi
4441 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4442 # Setup a source with many dependencies, because some compilers
4443 # like to wrap large dependency lists on column 80 (with \), and
4444 # we should not choose a depcomp mode which is confused by this.
4446 # We need to recreate these files for each test, as the compiler may
4447 # overwrite some of them when testing with obscure command lines.
4448 # This happens at least with the AIX C compiler.
4450 for i
in 1 2 3 4 5 6; do
4451 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4452 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4453 # Solaris 8's {/usr,}/bin/sh.
4454 touch sub
/conftst
$i.h
4456 echo "include sub/conftest.Po" > confmf
4458 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4459 # mode. It turns out that the SunPro C++ compiler does not properly
4460 # handle `-M -o', and we need to detect this.
4461 depcmd
="depmode=$depmode \
4462 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4463 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4464 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4465 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4466 if env
$depcmd > conftest.err
2>&1 &&
4467 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4468 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4469 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4470 # icc doesn't choke on unknown options, it will just issue warnings
4471 # or remarks (even with -Werror). So we grep stderr for any message
4472 # that says an option was ignored or not supported.
4473 # When given -MP, icc 7.0 and 7.1 complain thusly:
4474 # icc: Command line warning: ignoring option '-M'; no argument required
4475 # The diagnosis changed in icc 8.0:
4476 # icc: Command line remark: option '-MP' not supported
4477 if (grep 'ignoring option' conftest.err ||
4478 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4479 am_cv_CC_dependencies_compiler_type
=$depmode
4480 $as_echo "$as_me:$LINENO: success" >&5
4484 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4485 sed -e 's/^/| /' < conftest.err
>&5
4491 am_cv_CC_dependencies_compiler_type
=none
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4496 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4497 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4498 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4499 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4504 # Check for the 'make' the user wants to use.
4507 # Extract the first word of "$ac_prog", so it can be a program name with args.
4508 set dummy
$ac_prog; ac_word
=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if test "${ac_cv_prog_MAKE+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4514 if test -n "$MAKE"; then
4515 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4521 test -z "$as_dir" && as_dir
=.
4522 for ac_exec_ext
in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 ac_cv_prog_MAKE
="$ac_prog"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 MAKE
=$ac_cv_prog_MAKE
4535 if test -n "$MAKE"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4537 $as_echo "$MAKE" >&6; }
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4544 test -n "$MAKE" && break
4548 case "`$MAKE --version 2>&1 | sed 1q`" in
4553 if test "$MAKE_IS_GNU" = yes; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4562 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4564 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4565 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4566 $as_echo_n "(cached) " >&6
4568 cat >conftest.
make <<\_ACEOF
4571 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4573 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4574 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4576 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4578 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4582 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4584 $as_echo "yes" >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 SET_MAKE
="MAKE=${MAKE-make}"
4593 # Configure gnulib. We need to build gnulib under some other
4594 # directory not "gnulib", to avoid the problem of both GDB and
4595 # GDBserver wanting to build it in the same directory, when building
4596 # in the source dir.
4599 in_build
="build-gnulib"
4601 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4602 # so they do not pile up.
4603 ac_sub_configure_args
=
4605 eval "set x $ac_configure_args"
4609 if test -n "$ac_prev"; then
4614 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
4615 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
4616 ac_prev
=cache_file
;;
4617 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
4618 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
4621 --config-cache |
-C)
4623 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
4625 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
4627 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
4629 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
4631 --disable-option-checking)
4635 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4637 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
4641 # Always prepend --prefix to ensure using the same prefix
4642 # in subdir configurations.
4643 ac_arg
="--prefix=$prefix"
4645 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4647 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
4650 if test "$silent" = yes; then
4651 ac_sub_configure_args
="--silent $ac_sub_configure_args"
4654 # Always prepend --disable-option-checking to silence warnings, since
4655 # different subdirs can have different --enable and --with options.
4656 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
4661 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4663 $as_echo "$ac_msg" >&6
4664 as_dir
="$ac_dir"; as_fn_mkdir_p
4668 ac_srcdir
=$srcdir/$in_src ;;
4670 ac_srcdir
=..
/$srcdir/$in_src ;;
4675 ac_sub_configure
=$ac_srcdir/configure
4677 # Make the cache file name correct relative to the subdirectory.
4679 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
4681 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
4684 { $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
4685 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4686 # The eval makes quoting arguments work.
4687 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4688 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4689 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4705 # If we haven't got the data from the intl directory,
4706 # assume NLS is disabled.
4715 if test -f ..
/intl
/config.intl
; then
4716 . ..
/intl
/config.intl
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4719 $as_echo_n "checking whether NLS is requested... " >&6; }
4720 if test x
"$USE_NLS" != xyes
; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4725 $as_echo "yes" >&6; }
4727 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4731 $as_echo_n "checking for catalogs to be installed... " >&6; }
4732 # Look for .po and .gmo files in the source directory.
4735 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4736 # If there aren't any .gmo files the shell will give us the
4737 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4739 case "$cat" in *\
**)
4742 # The quadruple backslash is collapsed to a double backslash
4743 # by the backticks, then collapsed again by the double quotes,
4744 # leaving us with one backslash in the sed expression (right
4745 # before the dot that mustn't act as a wildcard).
4746 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4747 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4748 # The user is allowed to set LINGUAS to a list of languages to
4749 # install catalogs for. If it's empty that means "all of them."
4750 if test "x$LINGUAS" = x
; then
4751 CATALOGS
="$CATALOGS $cat"
4752 XLINGUAS
="$XLINGUAS $lang"
4754 case "$LINGUAS" in *$lang*)
4755 CATALOGS
="$CATALOGS $cat"
4756 XLINGUAS
="$XLINGUAS $lang"
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4763 $as_echo "$LINGUAS" >&6; }
4776 localedir
='${datadir}/locale'
4779 if test x
"$USE_NLS" = xyes
; then
4780 CONFIG_ALL
="$CONFIG_ALL all-po"
4781 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4782 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4783 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4786 GNULIB
=build-gnulib
/import
4788 # For Makefile dependencies.
4790 if test x
"$STDINT_H" != x
; then
4791 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
4797 cat >>confdefs.h
<<_ACEOF
4798 #define PACKAGE "$PACKAGE"
4803 # We never need to detect it in this sub-configure.
4804 # But preserve it for config.status --recheck.
4808 MAKEINFO_EXTRA_FLAGS
=""
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4810 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4811 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4814 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4815 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4816 gdb_cv_have_makeinfo_click
=yes
4818 gdb_cv_have_makeinfo_click
=no
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4822 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4823 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
4824 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4830 # Check whether --with-separate-debug-dir was given.
4831 if test "${with_separate_debug_dir+set}" = set; then :
4832 withval
=$with_separate_debug_dir;
4835 DEBUGDIR
=${libdir}/debug
4839 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4840 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4841 ac_define_dir
=`eval echo $DEBUGDIR`
4842 ac_define_dir
=`eval echo $ac_define_dir`
4844 cat >>confdefs.h
<<_ACEOF
4845 #define DEBUGDIR "$ac_define_dir"
4851 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
4852 if test "x$prefix" = xNONE
; then
4853 test_prefix
=/usr
/local
4858 test_prefix
=$exec_prefix
4861 case ${ac_define_dir} in
4862 "${test_prefix}"|
"${test_prefix}/"*|\
4863 '${exec_prefix}'|
'${exec_prefix}/'*)
4868 cat >>confdefs.h
<<_ACEOF
4869 #define DEBUGDIR_RELOCATABLE $value
4875 # We can't pass paths as command line arguments.
4876 # Mingw32 tries to be clever and will convert the paths for us.
4877 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
4878 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
4879 # This breaks GDB's relocatable path conversions since paths passed in
4880 # config.h would not get so translated, the path prefixes no longer match.
4882 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4883 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4884 ac_define_dir
=`eval echo $bindir`
4885 ac_define_dir
=`eval echo $ac_define_dir`
4887 cat >>confdefs.h
<<_ACEOF
4888 #define BINDIR "$ac_define_dir"
4893 # GDB's datadir relocation
4897 # Check whether --with-gdb-datadir was given.
4898 if test "${with_gdb_datadir+set}" = set; then :
4899 withval
=$with_gdb_datadir;
4900 GDB_DATADIR
=$withval
4902 GDB_DATADIR
=${datadir}/gdb
4906 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4907 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4908 ac_define_dir
=`eval echo $GDB_DATADIR`
4909 ac_define_dir
=`eval echo $ac_define_dir`
4911 cat >>confdefs.h
<<_ACEOF
4912 #define GDB_DATADIR "$ac_define_dir"
4918 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
4919 if test "x$prefix" = xNONE
; then
4920 test_prefix
=/usr
/local
4925 test_prefix
=$exec_prefix
4928 case ${ac_define_dir} in
4929 "${test_prefix}"|
"${test_prefix}/"*|\
4930 '${exec_prefix}'|
'${exec_prefix}/'*)
4935 cat >>confdefs.h
<<_ACEOF
4936 #define GDB_DATADIR_RELOCATABLE $value
4943 # Check whether --with-relocated-sources was given.
4944 if test "${with_relocated_sources+set}" = set; then :
4945 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
4947 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4948 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4949 ac_define_dir
=`eval echo $reloc_srcdir`
4950 ac_define_dir
=`eval echo $ac_define_dir`
4952 cat >>confdefs.h
<<_ACEOF
4953 #define RELOC_SRCDIR "$ac_define_dir"
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
4962 $as_echo_n "checking for default auto-load safe-path... " >&6; }
4964 # Check whether --with-auto-load-safe-path was given.
4965 if test "${with_auto_load_safe_path+set}" = set; then :
4966 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
4967 with_auto_load_safe_path
=""
4970 with_auto_load_safe_path
="$prefix"
4974 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4975 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4976 ac_define_dir
=`eval echo $with_auto_load_safe_path`
4977 ac_define_dir
=`eval echo $ac_define_dir`
4979 cat >>confdefs.h
<<_ACEOF
4980 #define DEFAULT_AUTO_LOAD_SAFE_PATH "$ac_define_dir"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
4985 $as_echo "$with_auto_load_safe_path" >&6; }
4989 subdirs
="$subdirs testsuite"
4992 # Check whether to support alternative target configurations
4993 # Check whether --enable-targets was given.
4994 if test "${enable_targets+set}" = set; then :
4995 enableval
=$enable_targets; case "${enableval}" in
4996 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
4998 no
) enable_targets
= ;;
4999 *) enable_targets
=$enableval ;;
5004 # Check whether to enable 64-bit support on 32-bit hosts
5005 # Check whether --enable-64-bit-bfd was given.
5006 if test "${enable_64_bit_bfd+set}" = set; then :
5007 enableval
=$enable_64_bit_bfd; case "${enableval}" in
5010 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5016 # Provide defaults for some variables set by the per-host and per-target
5018 gdb_host_obs
=posix-hdep.o
5020 if test "${target}" = "${host}"; then
5026 .
$srcdir/configure.
host
5028 # Accumulate some settings from configure.tgt over all enabled targets
5033 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5035 if test "$targ_alias" = "all"; then
5038 # Canonicalize the secondary target names.
5039 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5040 if test -n "$result"; then
5046 .
${srcdir}/configure.tgt
5048 if test -z "${gdb_target_obs}"; then :
5049 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
5052 # Target-specific object files
5053 for i
in ${gdb_target_obs}; do
5054 case " $TARGET_OBS " in
5057 TARGET_OBS
="$TARGET_OBS ${i}"
5062 # Check whether this target needs 64-bit CORE_ADDR
5063 if test x
${want64} = xfalse
; then
5064 .
${srcdir}/..
/bfd
/config.bfd
5069 if test x
${all_targets} = xtrue
; then
5071 # We want all 64-bit targets if we either:
5072 # - run on a 64-bit host or
5073 # - already require 64-bit support for some other target or
5074 # - the --enable-64-bit-bfd option was supplied
5075 # Otherwise we only support all 32-bit targets.
5077 # NOTE: This test must be in sync with the corresponding
5080 if test x
${want64} = xfalse
; then
5081 # The cast to long int works around a bug in the HP C Compiler
5082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5084 # This bug is HP SR number 8606223364.
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5086 $as_echo_n "checking size of long... " >&6; }
5087 if test "${ac_cv_sizeof_long+set}" = set; then :
5088 $as_echo_n "(cached) " >&6
5090 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5093 if test "$ac_cv_type_long" = yes; then
5094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5096 { as_fn_set_status
77
5097 as_fn_error
"cannot compute sizeof (long)
5098 See \`config.log' for more details." "$LINENO" 5; }; }
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5106 $as_echo "$ac_cv_sizeof_long" >&6; }
5110 cat >>confdefs.h
<<_ACEOF
5111 #define SIZEOF_LONG $ac_cv_sizeof_long
5115 if test "x${ac_cv_sizeof_long}" = "x8"; then
5119 if test x
${want64} = xtrue
; then
5120 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5122 TARGET_OBS
='$(ALL_TARGET_OBS)'
5128 # For other settings, only the main target counts.
5132 targ
=$target; .
${srcdir}/configure.tgt
5134 # Fetch the default architecture and default target vector from BFD.
5135 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5137 # We only want the first architecture, so strip off the others if
5138 # there is more than one.
5139 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5141 if test "x$targ_archs" != x
; then
5143 cat >>confdefs.h
<<_ACEOF
5144 #define DEFAULT_BFD_ARCH $targ_archs
5148 if test "x$targ_defvec" != x
; then
5150 cat >>confdefs.h
<<_ACEOF
5151 #define DEFAULT_BFD_VEC $targ_defvec
5156 # The CLI cannot be disabled yet, but may be in the future.
5159 # Check whether --enable-gdbcli was given.
5160 if test "${enable_gdbcli+set}" = set; then :
5161 enableval
=$enable_gdbcli; case $enableval in
5165 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5167 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5173 if test x
"$enable_gdbcli" = xyes
; then
5174 if test -d $srcdir/cli
; then
5175 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5176 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5177 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5178 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5183 # Check whether --enable-gdbmi was given.
5184 if test "${enable_gdbmi+set}" = set; then :
5185 enableval
=$enable_gdbmi; case $enableval in
5189 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5195 if test x
"$enable_gdbmi" = xyes
; then
5196 if test -d $srcdir/mi
; then
5197 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5198 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5199 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5200 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5205 # Check whether --enable-tui was given.
5206 if test "${enable_tui+set}" = set; then :
5207 enableval
=$enable_tui; case $enableval in
5211 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5219 # Check whether --enable-gdbtk was given.
5220 if test "${enable_gdbtk+set}" = set; then :
5221 enableval
=$enable_gdbtk; case $enableval in
5225 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5228 if test -d $srcdir/gdbtk
; then
5235 # We unconditionally disable gdbtk tests on selected platforms.
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5239 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5243 # Libunwind support for ia64.
5246 # Check whether --with-libunwind-ia64 was given.
5247 if test "${with_libunwind_ia64+set}" = set; then :
5248 withval
=$with_libunwind_ia64;
5250 with_libunwind_ia64
=auto
5254 # Backward compatibility option.
5255 if test "${with_libunwind+set}" = set; then
5256 if test x
"$with_libunwind_ia64" != xauto
; then
5257 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5260 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5261 with_libunwind_ia64
="$with_libunwind"
5264 case "$with_libunwind_ia64" in
5268 for ac_header
in libunwind-ia64.h
5270 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5271 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5272 cat >>confdefs.h
<<_ACEOF
5273 #define HAVE_LIBUNWIND_IA64_H 1
5280 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
5283 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5287 if test x
"$with_libunwind_ia64" = xyes
; then
5288 for ac_header
in libunwind-ia64.h
5290 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5291 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5292 cat >>confdefs.h
<<_ACEOF
5293 #define HAVE_LIBUNWIND_IA64_H 1
5300 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
5301 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5303 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
5304 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
5305 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
5310 # Check whether --with-curses was given.
5311 if test "${with_curses+set}" = set; then :
5312 withval
=$with_curses; opt_curses
=$withval
5317 if test "$opt_curses" = "yes"; then
5321 # Profiling support.
5322 # Check whether --enable-profiling was given.
5323 if test "${enable_profiling+set}" = set; then :
5324 enableval
=$enable_profiling; case $enableval in
5328 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5335 for ac_func
in monstartup _mcleanup
5337 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5338 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5339 eval as_val
=\$
$as_ac_var
5340 if test "x$as_val" = x
""yes; then :
5341 cat >>confdefs.h
<<_ACEOF
5342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5349 $as_echo_n "checking for _etext... " >&6; }
5350 if test "${ac_cv_var__etext+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5366 if ac_fn_c_try_link
"$LINENO"; then :
5367 ac_cv_var__etext
=yes
5371 rm -f core conftest.err conftest.
$ac_objext \
5372 conftest
$ac_exeext conftest.
$ac_ext
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5375 $as_echo "$ac_cv_var__etext" >&6; }
5376 if test $ac_cv_var__etext = yes; then
5378 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5382 $as_echo_n "checking for etext... " >&6; }
5383 if test "${ac_cv_var_etext+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5399 if ac_fn_c_try_link
"$LINENO"; then :
5404 rm -f core conftest.err conftest.
$ac_objext \
5405 conftest
$ac_exeext conftest.
$ac_ext
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5408 $as_echo "$ac_cv_var_etext" >&6; }
5409 if test $ac_cv_var_etext = yes; then
5411 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5414 if test "$enable_profiling" = yes ; then
5415 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
5416 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5419 OLD_CFLAGS
="$CFLAGS"
5420 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5423 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5424 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5438 if ac_fn_c_try_compile
"$LINENO"; then :
5439 ac_cv_cc_supports_pg
=yes
5441 ac_cv_cc_supports_pg
=no
5443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5446 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5448 if test $ac_cv_cc_supports_pg = no
; then
5449 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5452 CFLAGS
="$OLD_CFLAGS"
5457 # Check whether --with-pkgversion was given.
5458 if test "${with_pkgversion+set}" = set; then :
5459 withval
=$with_pkgversion; case "$withval" in
5460 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
5462 *) PKGVERSION
="($withval) " ;;
5473 # Check whether --with-bugurl was given.
5474 if test "${with_bugurl+set}" = set; then :
5475 withval
=$with_bugurl; case "$withval" in
5476 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
5479 *) BUGURL
="$withval"
5483 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
5493 REPORT_BUGS_TO
="<$BUGURL>"
5494 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
5501 cat >>confdefs.h
<<_ACEOF
5502 #define PKGVERSION "$PKGVERSION"
5506 cat >>confdefs.h
<<_ACEOF
5507 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5511 # --------------------- #
5512 # Checks for programs. #
5513 # --------------------- #
5515 for ac_prog
in gawk mawk nawk
awk
5517 # Extract the first word of "$ac_prog", so it can be a program name with args.
5518 set dummy
$ac_prog; ac_word
=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if test "${ac_cv_prog_AWK+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5524 if test -n "$AWK"; then
5525 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5531 test -z "$as_dir" && as_dir
=.
5532 for ac_exec_ext
in '' $ac_executable_extensions; do
5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534 ac_cv_prog_AWK
="$ac_prog"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 if test -n "$AWK"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5547 $as_echo "$AWK" >&6; }
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5554 test -n "$AWK" && break
5557 # Find a good install program. We prefer a C program (faster),
5558 # so one script is as good as another. But avoid the broken or
5559 # incompatible versions:
5560 # SysV /etc/install, /usr/sbin/install
5561 # SunOS /usr/etc/install
5562 # IRIX /sbin/install
5564 # AmigaOS /C/install, which installs bootblocks on floppy discs
5565 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5566 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5567 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5568 # OS/2's system install, which has a completely different semantic
5569 # ./install, which can be erroneously created by make from ./install.sh.
5570 # Reject install programs that cannot install multiple files.
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5572 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5573 if test -z "$INSTALL"; then
5574 if test "${ac_cv_path_install+set}" = set; then :
5575 $as_echo_n "(cached) " >&6
5577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5581 test -z "$as_dir" && as_dir
=.
5582 # Account for people who put trailing slashes in PATH elements.
5583 case $as_dir/ in #((
5584 .
/ | .
// |
/[cC
]/* | \
5585 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5586 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5589 # OSF1 and SCO ODT 3.0 have their own names for install.
5590 # Don't use installbsd from OSF since it installs stuff as root
5592 for ac_prog
in ginstall scoinst
install; do
5593 for ac_exec_ext
in '' $ac_executable_extensions; do
5594 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5595 if test $ac_prog = install &&
5596 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5597 # AIX install. It has an incompatible calling convention.
5599 elif test $ac_prog = install &&
5600 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5601 # program-specific install script used by HP pwplus--don't use.
5604 rm -rf conftest.one conftest.two conftest.dir
5605 echo one
> conftest.one
5606 echo two
> conftest.two
5608 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5609 test -s conftest.one
&& test -s conftest.two
&&
5610 test -s conftest.dir
/conftest.one
&&
5611 test -s conftest.dir
/conftest.two
5613 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5626 rm -rf conftest.one conftest.two conftest.dir
5629 if test "${ac_cv_path_install+set}" = set; then
5630 INSTALL
=$ac_cv_path_install
5632 # As a last resort, use the slow shell script. Don't cache a
5633 # value for INSTALL within a source directory, because that will
5634 # break other packages using the cache if that directory is
5635 # removed, or if the value is a relative name.
5636 INSTALL
=$ac_install_sh
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5640 $as_echo "$INSTALL" >&6; }
5642 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5643 # It thinks the first close brace ends the variable substitution.
5644 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5646 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5648 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5651 $as_echo_n "checking whether ln -s works... " >&6; }
5653 if test "$LN_S" = "ln -s"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5655 $as_echo "yes" >&6; }
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5658 $as_echo "no, using $LN_S" >&6; }
5661 if test -n "$ac_tool_prefix"; then
5662 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5663 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5667 $as_echo_n "(cached) " >&6
5669 if test -n "$RANLIB"; then
5670 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5676 test -z "$as_dir" && as_dir
=.
5677 for ac_exec_ext
in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 RANLIB
=$ac_cv_prog_RANLIB
5690 if test -n "$RANLIB"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5692 $as_echo "$RANLIB" >&6; }
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5700 if test -z "$ac_cv_prog_RANLIB"; then
5701 ac_ct_RANLIB
=$RANLIB
5702 # Extract the first word of "ranlib", so it can be a program name with args.
5703 set dummy ranlib
; ac_word
=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5709 if test -n "$ac_ct_RANLIB"; then
5710 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5716 test -z "$as_dir" && as_dir
=.
5717 for ac_exec_ext
in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5730 if test -n "$ac_ct_RANLIB"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5732 $as_echo "$ac_ct_RANLIB" >&6; }
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5738 if test "x$ac_ct_RANLIB" = x
; then
5741 case $cross_compiling:$ac_tool_warned in
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5745 ac_tool_warned
=yes ;;
5747 RANLIB
=$ac_ct_RANLIB
5750 RANLIB
="$ac_cv_prog_RANLIB"
5753 for ac_prog
in 'bison -y' byacc
5755 # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy
$ac_prog; ac_word
=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if test "${ac_cv_prog_YACC+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5762 if test -n "$YACC"; then
5763 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5769 test -z "$as_dir" && as_dir
=.
5770 for ac_exec_ext
in '' $ac_executable_extensions; do
5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772 ac_cv_prog_YACC
="$ac_prog"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 YACC
=$ac_cv_prog_YACC
5783 if test -n "$YACC"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5785 $as_echo "$YACC" >&6; }
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5792 test -n "$YACC" && break
5794 test -n "$YACC" || YACC
="yacc"
5797 if test -n "$ac_tool_prefix"; then
5798 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5799 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if test "${ac_cv_prog_AR+set}" = set; then :
5803 $as_echo_n "(cached) " >&6
5805 if test -n "$AR"; then
5806 ac_cv_prog_AR
="$AR" # Let the user override the test.
5808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5812 test -z "$as_dir" && as_dir
=.
5813 for ac_exec_ext
in '' $ac_executable_extensions; do
5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 if test -n "$AR"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5828 $as_echo "$AR" >&6; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5836 if test -z "$ac_cv_prog_AR"; then
5838 # Extract the first word of "ar", so it can be a program name with args.
5839 set dummy
ar; ac_word
=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5845 if test -n "$ac_ct_AR"; then
5846 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5852 test -z "$as_dir" && as_dir
=.
5853 for ac_exec_ext
in '' $ac_executable_extensions; do
5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5855 ac_cv_prog_ac_ct_AR
="ar"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5866 if test -n "$ac_ct_AR"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5868 $as_echo "$ac_ct_AR" >&6; }
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5874 if test "x$ac_ct_AR" = x
; then
5877 case $cross_compiling:$ac_tool_warned in
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881 ac_tool_warned
=yes ;;
5889 if test -n "$ac_tool_prefix"; then
5890 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5891 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893 $as_echo_n "checking for $ac_word... " >&6; }
5894 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5897 if test -n "$DLLTOOL"; then
5898 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
5900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5904 test -z "$as_dir" && as_dir
=.
5905 for ac_exec_ext
in '' $ac_executable_extensions; do
5906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5907 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 DLLTOOL
=$ac_cv_prog_DLLTOOL
5918 if test -n "$DLLTOOL"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5920 $as_echo "$DLLTOOL" >&6; }
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5928 if test -z "$ac_cv_prog_DLLTOOL"; then
5929 ac_ct_DLLTOOL
=$DLLTOOL
5930 # Extract the first word of "dlltool", so it can be a program name with args.
5931 set dummy dlltool
; ac_word
=$2
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5937 if test -n "$ac_ct_DLLTOOL"; then
5938 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
5940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5944 test -z "$as_dir" && as_dir
=.
5945 for ac_exec_ext
in '' $ac_executable_extensions; do
5946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
5948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
5958 if test -n "$ac_ct_DLLTOOL"; then
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5960 $as_echo "$ac_ct_DLLTOOL" >&6; }
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5966 if test "x$ac_ct_DLLTOOL" = x
; then
5969 case $cross_compiling:$ac_tool_warned in
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5973 ac_tool_warned
=yes ;;
5975 DLLTOOL
=$ac_ct_DLLTOOL
5978 DLLTOOL
="$ac_cv_prog_DLLTOOL"
5981 if test -n "$ac_tool_prefix"; then
5982 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5983 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if test "${ac_cv_prog_WINDRES+set}" = set; then :
5987 $as_echo_n "(cached) " >&6
5989 if test -n "$WINDRES"; then
5990 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
5992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5996 test -z "$as_dir" && as_dir
=.
5997 for ac_exec_ext
in '' $ac_executable_extensions; do
5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 WINDRES
=$ac_cv_prog_WINDRES
6010 if test -n "$WINDRES"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6012 $as_echo "$WINDRES" >&6; }
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6020 if test -z "$ac_cv_prog_WINDRES"; then
6021 ac_ct_WINDRES
=$WINDRES
6022 # Extract the first word of "windres", so it can be a program name with args.
6023 set dummy windres
; ac_word
=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6027 $as_echo_n "(cached) " >&6
6029 if test -n "$ac_ct_WINDRES"; then
6030 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
6032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6036 test -z "$as_dir" && as_dir
=.
6037 for ac_exec_ext
in '' $ac_executable_extensions; do
6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039 ac_cv_prog_ac_ct_WINDRES
="windres"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
6050 if test -n "$ac_ct_WINDRES"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6052 $as_echo "$ac_ct_WINDRES" >&6; }
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6058 if test "x$ac_ct_WINDRES" = x
; then
6061 case $cross_compiling:$ac_tool_warned in
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6065 ac_tool_warned
=yes ;;
6067 WINDRES
=$ac_ct_WINDRES
6070 WINDRES
="$ac_cv_prog_WINDRES"
6074 # Needed for GNU/Hurd.
6075 if test -n "$ac_tool_prefix"; then
6076 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6077 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if test "${ac_cv_prog_MIG+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6083 if test -n "$MIG"; then
6084 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
6086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6090 test -z "$as_dir" && as_dir
=.
6091 for ac_exec_ext
in '' $ac_executable_extensions; do
6092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6093 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
6094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 if test -n "$MIG"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6106 $as_echo "$MIG" >&6; }
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6114 if test -z "$ac_cv_prog_MIG"; then
6116 # Extract the first word of "mig", so it can be a program name with args.
6117 set dummy mig
; ac_word
=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6123 if test -n "$ac_ct_MIG"; then
6124 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
6126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6130 test -z "$as_dir" && as_dir
=.
6131 for ac_exec_ext
in '' $ac_executable_extensions; do
6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133 ac_cv_prog_ac_ct_MIG
="mig"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
6144 if test -n "$ac_ct_MIG"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6146 $as_echo "$ac_ct_MIG" >&6; }
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 $as_echo "no" >&6; }
6152 if test "x$ac_ct_MIG" = x
; then
6155 case $cross_compiling:$ac_tool_warned in
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6159 ac_tool_warned
=yes ;;
6164 MIG
="$ac_cv_prog_MIG"
6168 # ---------------------- #
6169 # Checks for libraries. #
6170 # ---------------------- #
6172 # We might need to link with -lm; most simulators need it.
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6174 $as_echo_n "checking for main in -lm... " >&6; }
6175 if test "${ac_cv_lib_m_main+set}" = set; then :
6176 $as_echo_n "(cached) " >&6
6178 ac_check_lib_save_LIBS
=$LIBS
6180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6192 if ac_fn_c_try_link
"$LINENO"; then :
6193 ac_cv_lib_m_main
=yes
6197 rm -f core conftest.err conftest.
$ac_objext \
6198 conftest
$ac_exeext conftest.
$ac_ext
6199 LIBS
=$ac_check_lib_save_LIBS
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6202 $as_echo "$ac_cv_lib_m_main" >&6; }
6203 if test "x$ac_cv_lib_m_main" = x
""yes; then :
6204 cat >>confdefs.h
<<_ACEOF
6213 # We need to link with -lw to get `wctype' on Solaris before Solaris
6214 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6215 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6216 # is known to have this problem). Therefore we avoid libw if we can.
6217 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6218 if test "x$ac_cv_func_wctype" = x
""yes; then :
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6222 $as_echo_n "checking for wctype in -lw... " >&6; }
6223 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6224 $as_echo_n "(cached) " >&6
6226 ac_check_lib_save_LIBS
=$LIBS
6228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6231 /* Override any GCC internal prototype to avoid an error.
6232 Use char because int might match the return type of a GCC
6233 builtin and then its argument prototype would still apply. */
6246 if ac_fn_c_try_link
"$LINENO"; then :
6247 ac_cv_lib_w_wctype
=yes
6249 ac_cv_lib_w_wctype
=no
6251 rm -f core conftest.err conftest.
$ac_objext \
6252 conftest
$ac_exeext conftest.
$ac_ext
6253 LIBS
=$ac_check_lib_save_LIBS
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6256 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6257 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
6258 cat >>confdefs.h
<<_ACEOF
6269 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6271 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6272 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6275 ac_func_search_save_LIBS
=$LIBS
6276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6279 /* Override any GCC internal prototype to avoid an error.
6280 Use char because int might match the return type of a GCC
6281 builtin and then its argument prototype would still apply. */
6285 char gethostbyname ();
6289 return gethostbyname ();
6294 for ac_lib
in '' nsl
; do
6295 if test -z "$ac_lib"; then
6296 ac_res
="none required"
6299 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6301 if ac_fn_c_try_link
"$LINENO"; then :
6302 ac_cv_search_gethostbyname
=$ac_res
6304 rm -f core conftest.err conftest.
$ac_objext \
6306 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6310 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6313 ac_cv_search_gethostbyname
=no
6316 LIBS
=$ac_func_search_save_LIBS
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6319 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6320 ac_res
=$ac_cv_search_gethostbyname
6321 if test "$ac_res" != no
; then :
6322 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6327 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6329 $as_echo_n "checking for library containing socketpair... " >&6; }
6330 if test "${ac_cv_search_socketpair+set}" = set; then :
6331 $as_echo_n "(cached) " >&6
6333 ac_func_search_save_LIBS
=$LIBS
6334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6337 /* Override any GCC internal prototype to avoid an error.
6338 Use char because int might match the return type of a GCC
6339 builtin and then its argument prototype would still apply. */
6347 return socketpair ();
6352 for ac_lib
in '' socket
; do
6353 if test -z "$ac_lib"; then
6354 ac_res
="none required"
6357 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6359 if ac_fn_c_try_link
"$LINENO"; then :
6360 ac_cv_search_socketpair
=$ac_res
6362 rm -f core conftest.err conftest.
$ac_objext \
6364 if test "${ac_cv_search_socketpair+set}" = set; then :
6368 if test "${ac_cv_search_socketpair+set}" = set; then :
6371 ac_cv_search_socketpair
=no
6374 LIBS
=$ac_func_search_save_LIBS
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6377 $as_echo "$ac_cv_search_socketpair" >&6; }
6378 ac_res
=$ac_cv_search_socketpair
6379 if test "$ac_res" != no
; then :
6380 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6385 # Link in zlib if we can. This allows us to read compressed debug sections.
6387 # See if the user specified whether he wants zlib support or not.
6389 # Check whether --with-zlib was given.
6390 if test "${with_zlib+set}" = set; then :
6397 if test "$with_zlib" != "no"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6399 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6400 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6403 ac_func_search_save_LIBS
=$LIBS
6404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6407 /* Override any GCC internal prototype to avoid an error.
6408 Use char because int might match the return type of a GCC
6409 builtin and then its argument prototype would still apply. */
6413 char zlibVersion ();
6417 return zlibVersion ();
6422 for ac_lib
in '' z
; do
6423 if test -z "$ac_lib"; then
6424 ac_res
="none required"
6427 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6429 if ac_fn_c_try_link
"$LINENO"; then :
6430 ac_cv_search_zlibVersion
=$ac_res
6432 rm -f core conftest.err conftest.
$ac_objext \
6434 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6438 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6441 ac_cv_search_zlibVersion
=no
6444 LIBS
=$ac_func_search_save_LIBS
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6447 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6448 ac_res
=$ac_cv_search_zlibVersion
6449 if test "$ac_res" != no
; then :
6450 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6451 for ac_header
in zlib.h
6453 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6454 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
6455 cat >>confdefs.h
<<_ACEOF
6456 #define HAVE_ZLIB_H 1
6465 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6466 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6471 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6473 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6474 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6477 ac_func_search_save_LIBS
=$LIBS
6478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6481 /* Override any GCC internal prototype to avoid an error.
6482 Use char because int might match the return type of a GCC
6483 builtin and then its argument prototype would still apply. */
6487 char dlgetmodinfo ();
6491 return dlgetmodinfo ();
6496 for ac_lib
in '' dl xpdl
; do
6497 if test -z "$ac_lib"; then
6498 ac_res
="none required"
6501 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6503 if ac_fn_c_try_link
"$LINENO"; then :
6504 ac_cv_search_dlgetmodinfo
=$ac_res
6506 rm -f core conftest.err conftest.
$ac_objext \
6508 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6512 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6515 ac_cv_search_dlgetmodinfo
=no
6518 LIBS
=$ac_func_search_save_LIBS
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6521 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6522 ac_res
=$ac_cv_search_dlgetmodinfo
6523 if test "$ac_res" != no
; then :
6524 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6532 # Check whether --with-libiconv-prefix was given.
6533 if test "${with_libiconv_prefix+set}" = set; then :
6534 withval
=$with_libiconv_prefix;
6535 for dir
in `echo "$withval" | tr : ' '`; do
6536 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
6537 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
6543 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
6544 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6547 $as_echo_n "checking for iconv... " >&6; }
6548 if test "${am_cv_func_iconv+set}" = set; then :
6549 $as_echo_n "(cached) " >&6
6552 am_cv_func_iconv
="no, consider installing GNU libiconv"
6554 am_cv_use_build_libiconv
=no
6555 am_cv_build_libiconv_path
=
6557 # If libiconv is part of the build tree, then try using it over
6559 if test -d ..
/libiconv
; then
6560 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
6561 am_save_LIBS
="$LIBS"
6562 am_save_CPPFLAGS
="$CPPFLAGS"
6563 LIBS
="$LIBS $lib_dir/libiconv.a"
6564 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6572 iconv_t cd = iconv_open("","");
6573 iconv(cd,NULL,NULL,NULL,NULL);
6579 if ac_fn_c_try_link
"$LINENO"; then :
6580 am_cv_use_build_libiconv
=yes
6581 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
6583 am_cv_func_iconv
=yes
6585 rm -f core conftest.err conftest.
$ac_objext \
6586 conftest
$ac_exeext conftest.
$ac_ext
6587 LIBS
="$am_save_LIBS"
6588 CPPFLAGS
="$am_save_CPPFLAGS"
6589 if test "$am_cv_use_build_libiconv" = "yes"; then
6595 # Next, try to find iconv in libc.
6596 if test "$am_cv_func_iconv" != yes; then
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_func_iconv
=yes
6614 rm -f core conftest.err conftest.
$ac_objext \
6615 conftest
$ac_exeext conftest.
$ac_ext
6618 # If iconv was not in libc, try -liconv. In this case, arrange to
6619 # look in the libiconv prefix, if it was specified by the user.
6620 if test "$am_cv_func_iconv" != yes; then
6621 am_save_CPPFLAGS
="$CPPFLAGS"
6622 am_save_LIBS
="$LIBS"
6623 if test -n "$LIBICONV_INCLUDE"; then
6624 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
6625 LIBS
="$LIBS $LIBICONV_LIBDIR"
6627 LIBS
="$LIBS -liconv"
6628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6635 iconv_t cd = iconv_open("","");
6636 iconv(cd,NULL,NULL,NULL,NULL);
6642 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
6648 LIBS
="$am_save_LIBS"
6649 CPPFLAGS
="$am_save_CPPFLAGS"
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6654 $as_echo "$am_cv_func_iconv" >&6; }
6656 # Set the various flags based on the cache variables. We can't rely
6657 # on the flags to remain set from the above code, due to caching.
6659 if test "$am_cv_lib_iconv" = yes; then
6665 if test "$am_cv_use_build_libiconv" = yes; then
6666 LIBICONV
="$am_cv_build_libiconv_path"
6668 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
6670 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
6671 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6673 if test "$am_cv_func_iconv" = yes; then
6675 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6678 $as_echo_n "checking for iconv declaration... " >&6; }
6679 if test "${am_cv_proto_iconv+set}" = set; then :
6680 $as_echo_n "(cached) " >&6
6683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6692 #if defined(__STDC__) || defined(__cplusplus)
6693 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6706 if ac_fn_c_try_compile
"$LINENO"; then :
6707 am_cv_proto_iconv_arg1
=""
6709 am_cv_proto_iconv_arg1
="const"
6711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6712 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);"
6715 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6717 }$am_cv_proto_iconv" >&5
6719 }$am_cv_proto_iconv" >&6; }
6721 cat >>confdefs.h
<<_ACEOF
6722 #define ICONV_CONST $am_cv_proto_iconv_arg1
6728 # GDB may fork/exec the iconv program to get the list of supported character
6729 # sets. Allow the user to specify where to find it.
6730 # There are several factors affecting the choice of option name:
6731 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6732 # the build-time location of libiconv files.
6733 # - The program we need to find is iconv, which comes with glibc. The user
6734 # doesn't necessarily have libiconv installed. Therefore naming this
6735 # --with-libiconv-foo feels wrong.
6736 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6737 # defined to work on directories not files (though it really doesn't know
6739 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6740 # with --with-libiconv-prefix.
6741 # Putting these together is why the option name is --with-iconv-bin.
6744 # Check whether --with-iconv-bin was given.
6745 if test "${with_iconv_bin+set}" = set; then :
6746 withval
=$with_iconv_bin; iconv_bin
="${withval}"
6748 cat >>confdefs.h
<<_ACEOF
6749 #define ICONV_BIN "${iconv_bin}"
6753 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6754 if test "x$prefix" = xNONE
; then
6755 test_prefix
=/usr
/local
6760 test_prefix
=$exec_prefix
6763 case ${iconv_bin} in
6764 "${test_prefix}"|
"${test_prefix}/"*|\
6765 '${exec_prefix}'|
'${exec_prefix}/'*)
6770 cat >>confdefs.h
<<_ACEOF
6771 #define ICONV_BIN_RELOCATABLE $value
6779 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6780 # There is a very specific comment in /usr/include/curses.h explaining that
6781 # termcap routines built into libcurses must not be used.
6783 # The symptoms we observed so far is GDB unexpectedly changing
6784 # the terminal settings when tgetent is called - this is particularly
6785 # visible as the output is missing carriage returns, and so rapidly
6786 # becomes very hard to read.
6788 # The readline configure script has already decided that libtermcap
6789 # was enough for its purposes, and so decided to build readline using
6790 # libtermcap. Since the TUI mode requires curses, building GDB with
6791 # TUI enabled results in both libraries to be used at the same time,
6792 # which is not allowed. This basically means that GDB with TUI is
6793 # broken on alpha-osf.
6797 if test x
"$enable_tui" = xyes
; then
6798 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6800 if test x
"$enable_tui" = xauto
; then
6806 # For the TUI, we need enhanced curses functionality.
6807 if test x
"$enable_tui" != xno
; then
6812 if test x
"$prefer_curses" = xyes
; then
6813 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6814 # curses library because the latter might not provide all the
6815 # functionality we need. However, this leads to problems on systems
6816 # where the linker searches /usr/local/lib, but the compiler doesn't
6817 # search /usr/local/include, if ncurses is installed in /usr/local. A
6818 # default installation of ncurses on alpha*-dec-osf* will lead to such
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
6821 $as_echo_n "checking for library containing waddstr... " >&6; }
6822 if test "${ac_cv_search_waddstr+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6825 ac_func_search_save_LIBS
=$LIBS
6826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6829 /* Override any GCC internal prototype to avoid an error.
6830 Use char because int might match the return type of a GCC
6831 builtin and then its argument prototype would still apply. */
6844 for ac_lib
in '' ncurses cursesX curses
; do
6845 if test -z "$ac_lib"; then
6846 ac_res
="none required"
6849 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6851 if ac_fn_c_try_link
"$LINENO"; then :
6852 ac_cv_search_waddstr
=$ac_res
6854 rm -f core conftest.err conftest.
$ac_objext \
6856 if test "${ac_cv_search_waddstr+set}" = set; then :
6860 if test "${ac_cv_search_waddstr+set}" = set; then :
6863 ac_cv_search_waddstr
=no
6866 LIBS
=$ac_func_search_save_LIBS
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
6869 $as_echo "$ac_cv_search_waddstr" >&6; }
6870 ac_res
=$ac_cv_search_waddstr
6871 if test "$ac_res" != no
; then :
6872 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6877 if test "$ac_cv_search_waddstr" != no
; then
6882 # Check whether we should enable the TUI, but only do so if we really
6884 if test x
"$enable_tui" != xno
; then
6885 if test -d $srcdir/tui
; then
6886 if test "$curses_found" != no
; then
6887 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
6888 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
6889 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
6890 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
6892 if test x
"$enable_tui" = xyes
; then
6893 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
6896 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
6902 # Since GDB uses Readline, we need termcap functionality. In many
6903 # cases this will be provided by the curses library, but some systems
6904 # have a seperate termcap library, or no curses library at all.
6908 if test -d $srcdir/libtermcap
; then
6909 LIBS
="../libtermcap/libtermcap.a $LIBS"
6910 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
6913 ac_cv_search_tgetent
="none required"
6916 ac_cv_search_tgetent
="none required"
6917 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
6921 # These are the libraries checked by Readline.
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
6923 $as_echo_n "checking for library containing tgetent... " >&6; }
6924 if test "${ac_cv_search_tgetent+set}" = set; then :
6925 $as_echo_n "(cached) " >&6
6927 ac_func_search_save_LIBS
=$LIBS
6928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6931 /* Override any GCC internal prototype to avoid an error.
6932 Use char because int might match the return type of a GCC
6933 builtin and then its argument prototype would still apply. */
6946 for ac_lib
in '' termcap tinfo curses ncurses
; do
6947 if test -z "$ac_lib"; then
6948 ac_res
="none required"
6951 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6953 if ac_fn_c_try_link
"$LINENO"; then :
6954 ac_cv_search_tgetent
=$ac_res
6956 rm -f core conftest.err conftest.
$ac_objext \
6958 if test "${ac_cv_search_tgetent+set}" = set; then :
6962 if test "${ac_cv_search_tgetent+set}" = set; then :
6965 ac_cv_search_tgetent
=no
6968 LIBS
=$ac_func_search_save_LIBS
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
6971 $as_echo "$ac_cv_search_tgetent" >&6; }
6972 ac_res
=$ac_cv_search_tgetent
6973 if test "$ac_res" != no
; then :
6974 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6979 if test "$ac_cv_search_tgetent" = no
; then
6980 as_fn_error
"no termcap library found" "$LINENO" 5
6984 # Check whether --with-system-readline was given.
6985 if test "${with_system_readline+set}" = set; then :
6986 withval
=$with_system_readline;
6990 if test "$with_system_readline" = yes; then
6994 READLINE_TEXI_INCFLAG
=
6996 READLINE
='$(READLINE_DIR)/libreadline.a'
6997 READLINE_DEPS
='$(READLINE)'
6998 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
6999 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
7006 # Generate jit-reader.h
7008 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7011 # The cast to long int works around a bug in the HP C Compiler
7012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7014 # This bug is HP SR number 8606223364.
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7016 $as_echo_n "checking size of unsigned long long... " >&6; }
7017 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7018 $as_echo_n "(cached) " >&6
7020 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7023 if test "$ac_cv_type_unsigned_long_long" = yes; then
7024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7026 { as_fn_set_status
77
7027 as_fn_error
"cannot compute sizeof (unsigned long long)
7028 See \`config.log' for more details." "$LINENO" 5; }; }
7030 ac_cv_sizeof_unsigned_long_long
=0
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7036 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7040 cat >>confdefs.h
<<_ACEOF
7041 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7045 # The cast to long int works around a bug in the HP C Compiler
7046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7048 # This bug is HP SR number 8606223364.
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7050 $as_echo_n "checking size of unsigned long... " >&6; }
7051 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7054 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7057 if test "$ac_cv_type_unsigned_long" = yes; then
7058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7060 { as_fn_set_status
77
7061 as_fn_error
"cannot compute sizeof (unsigned long)
7062 See \`config.log' for more details." "$LINENO" 5; }; }
7064 ac_cv_sizeof_unsigned_long
=0
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7070 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7074 cat >>confdefs.h
<<_ACEOF
7075 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7079 # The cast to long int works around a bug in the HP C Compiler
7080 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7081 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7082 # This bug is HP SR number 8606223364.
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7084 $as_echo_n "checking size of unsigned __int128... " >&6; }
7085 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7086 $as_echo_n "(cached) " >&6
7088 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7091 if test "$ac_cv_type_unsigned___int128" = yes; then
7092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7094 { as_fn_set_status
77
7095 as_fn_error
"cannot compute sizeof (unsigned __int128)
7096 See \`config.log' for more details." "$LINENO" 5; }; }
7098 ac_cv_sizeof_unsigned___int128
=0
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7104 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7108 cat >>confdefs.h
<<_ACEOF
7109 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7114 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7115 TARGET_PTR
="unsigned long"
7116 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7117 TARGET_PTR
="unsigned long long"
7118 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7119 TARGET_PTR
="unsigned __int128"
7121 TARGET_PTR
="unsigned long"
7125 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7129 $as_echo_n "checking for library containing dlopen... " >&6; }
7130 if test "${ac_cv_search_dlopen+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7133 ac_func_search_save_LIBS
=$LIBS
7134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7137 /* Override any GCC internal prototype to avoid an error.
7138 Use char because int might match the return type of a GCC
7139 builtin and then its argument prototype would still apply. */
7152 for ac_lib
in '' dl
; do
7153 if test -z "$ac_lib"; then
7154 ac_res
="none required"
7157 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7159 if ac_fn_c_try_link
"$LINENO"; then :
7160 ac_cv_search_dlopen
=$ac_res
7162 rm -f core conftest.err conftest.
$ac_objext \
7164 if test "${ac_cv_search_dlopen+set}" = set; then :
7168 if test "${ac_cv_search_dlopen+set}" = set; then :
7171 ac_cv_search_dlopen
=no
7174 LIBS
=$ac_func_search_save_LIBS
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7177 $as_echo "$ac_cv_search_dlopen" >&6; }
7178 ac_res
=$ac_cv_search_dlopen
7179 if test "$ac_res" != no
; then :
7180 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7187 # Check whether --with-jit-reader-dir was given.
7188 if test "${with_jit_reader_dir+set}" = set; then :
7189 withval
=$with_jit_reader_dir;
7190 JIT_READER_DIR
=$withval
7192 JIT_READER_DIR
=${libdir}/gdb
7196 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7197 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7198 ac_define_dir
=`eval echo $JIT_READER_DIR`
7199 ac_define_dir
=`eval echo $ac_define_dir`
7201 cat >>confdefs.h
<<_ACEOF
7202 #define JIT_READER_DIR "$ac_define_dir"
7208 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7209 if test "x$prefix" = xNONE
; then
7210 test_prefix
=/usr
/local
7215 test_prefix
=$exec_prefix
7218 case ${ac_define_dir} in
7219 "${test_prefix}"|
"${test_prefix}/"*|\
7220 '${exec_prefix}'|
'${exec_prefix}/'*)
7225 cat >>confdefs.h
<<_ACEOF
7226 #define JIT_READER_DIR_RELOCATABLE $value
7233 # Check whether --with-expat was given.
7234 if test "${with_expat+set}" = set; then :
7235 withval
=$with_expat;
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7241 $as_echo_n "checking whether to use expat... " >&6; }
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7243 $as_echo "$with_expat" >&6; }
7245 if test "${with_expat}" = no
; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7247 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7251 if test "X$prefix" = "XNONE"; then
7252 acl_final_prefix
="$ac_default_prefix"
7254 acl_final_prefix
="$prefix"
7256 if test "X$exec_prefix" = "XNONE"; then
7257 acl_final_exec_prefix
='${prefix}'
7259 acl_final_exec_prefix
="$exec_prefix"
7261 acl_save_prefix
="$prefix"
7262 prefix
="$acl_final_prefix"
7263 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7264 prefix
="$acl_save_prefix"
7267 # Check whether --with-gnu-ld was given.
7268 if test "${with_gnu_ld+set}" = set; then :
7269 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7274 # Prepare PATH_SEPARATOR.
7275 # The user is always right.
7276 if test "${PATH_SEPARATOR+set}" != set; then
7277 echo "#! /bin/sh" >conf$$.sh
7278 echo "exit 0" >>conf$$.sh
7280 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7288 if test "$GCC" = yes; then
7289 # Check if gcc -print-prog-name=ld gives a path.
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7291 $as_echo_n "checking for ld used by GCC... " >&6; }
7294 # gcc leaves a trailing carriage return which upsets mingw
7295 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7297 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7300 # Accept absolute paths.
7301 [\\/]* |
[A-Za-z
]:[\\/]*)
7302 re_direlt
='/[^/][^/]*/\.\./'
7303 # Canonicalize the path of ld
7304 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7305 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7306 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7308 test -z "$LD" && LD
="$ac_prog"
7311 # If it fails, then pretend we aren't using GCC.
7315 # If it is relative, then search for the first ld in PATH.
7319 elif test "$with_gnu_ld" = yes; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7321 $as_echo_n "checking for GNU ld... " >&6; }
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7324 $as_echo_n "checking for non-GNU ld... " >&6; }
7326 if test "${acl_cv_path_LD+set}" = set; then :
7327 $as_echo_n "(cached) " >&6
7329 if test -z "$LD"; then
7330 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7331 for ac_dir
in $PATH; do
7332 test -z "$ac_dir" && ac_dir
=.
7333 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7334 acl_cv_path_LD
="$ac_dir/$ac_prog"
7335 # Check to see if the program is GNU ld. I'd rather use --version,
7336 # but apparently some GNU ld's only accept -v.
7337 # Break only if it was the GNU/non-GNU ld that we prefer.
7338 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7339 test "$with_gnu_ld" != no
&& break
7341 test "$with_gnu_ld" != yes && break
7347 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7351 LD
="$acl_cv_path_LD"
7352 if test -n "$LD"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7354 $as_echo "$LD" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7359 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7361 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7362 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7363 $as_echo_n "(cached) " >&6
7365 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7366 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7367 acl_cv_prog_gnu_ld
=yes
7369 acl_cv_prog_gnu_ld
=no
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7373 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7374 with_gnu_ld
=$acl_cv_prog_gnu_ld
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7379 $as_echo_n "checking for shared library run path origin... " >&6; }
7380 if test "${acl_cv_rpath+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7384 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7385 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7392 $as_echo "$acl_cv_rpath" >&6; }
7394 libext
="$acl_cv_libext"
7395 shlibext
="$acl_cv_shlibext"
7396 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7397 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7398 hardcode_direct
="$acl_cv_hardcode_direct"
7399 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7400 # Check whether --enable-rpath was given.
7401 if test "${enable_rpath+set}" = set; then :
7402 enableval
=$enable_rpath; :
7418 acl_save_prefix
="$prefix"
7419 prefix
="$acl_final_prefix"
7420 acl_save_exec_prefix
="$exec_prefix"
7421 exec_prefix
="$acl_final_exec_prefix"
7423 eval additional_includedir
=\"$includedir\"
7424 eval additional_libdir
=\"$libdir\"
7426 exec_prefix
="$acl_save_exec_prefix"
7427 prefix
="$acl_save_prefix"
7430 # Check whether --with-libexpat-prefix was given.
7431 if test "${with_libexpat_prefix+set}" = set; then :
7432 withval
=$with_libexpat_prefix;
7433 if test "X$withval" = "Xno"; then
7436 if test "X$withval" = "X"; then
7438 acl_save_prefix
="$prefix"
7439 prefix
="$acl_final_prefix"
7440 acl_save_exec_prefix
="$exec_prefix"
7441 exec_prefix
="$acl_final_exec_prefix"
7443 eval additional_includedir
=\"$includedir\"
7444 eval additional_libdir
=\"$libdir\"
7446 exec_prefix
="$acl_save_exec_prefix"
7447 prefix
="$acl_save_prefix"
7450 additional_includedir
="$withval/include"
7451 additional_libdir
="$withval/lib"
7462 names_already_handled
=
7463 names_next_round
='expat '
7464 while test -n "$names_next_round"; do
7465 names_this_round
="$names_next_round"
7467 for name
in $names_this_round; do
7469 for n
in $names_already_handled; do
7470 if test "$n" = "$name"; then
7475 if test -z "$already_handled"; then
7476 names_already_handled
="$names_already_handled $name"
7477 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7478 eval value
=\"\
$HAVE_LIB$uppername\"
7479 if test -n "$value"; then
7480 if test "$value" = yes; then
7481 eval value
=\"\
$LIB$uppername\"
7482 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
7483 eval value
=\"\
$LTLIB$uppername\"
7484 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7493 if test $use_additional = yes; then
7494 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7495 found_dir
="$additional_libdir"
7496 found_so
="$additional_libdir/lib$name.$shlibext"
7497 if test -f "$additional_libdir/lib$name.la"; then
7498 found_la
="$additional_libdir/lib$name.la"
7501 if test -f "$additional_libdir/lib$name.$libext"; then
7502 found_dir
="$additional_libdir"
7503 found_a
="$additional_libdir/lib$name.$libext"
7504 if test -f "$additional_libdir/lib$name.la"; then
7505 found_la
="$additional_libdir/lib$name.la"
7510 if test "X$found_dir" = "X"; then
7511 for x
in $LDFLAGS $LTLIBEXPAT; do
7513 acl_save_prefix
="$prefix"
7514 prefix
="$acl_final_prefix"
7515 acl_save_exec_prefix
="$exec_prefix"
7516 exec_prefix
="$acl_final_exec_prefix"
7518 exec_prefix
="$acl_save_exec_prefix"
7519 prefix
="$acl_save_prefix"
7523 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7524 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7526 found_so
="$dir/lib$name.$shlibext"
7527 if test -f "$dir/lib$name.la"; then
7528 found_la
="$dir/lib$name.la"
7531 if test -f "$dir/lib$name.$libext"; then
7533 found_a
="$dir/lib$name.$libext"
7534 if test -f "$dir/lib$name.la"; then
7535 found_la
="$dir/lib$name.la"
7541 if test "X$found_dir" != "X"; then
7546 if test "X$found_dir" != "X"; then
7547 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7548 if test "X$found_so" != "X"; then
7549 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7550 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7553 for x
in $ltrpathdirs; do
7554 if test "X$x" = "X$found_dir"; then
7559 if test -z "$haveit"; then
7560 ltrpathdirs
="$ltrpathdirs $found_dir"
7562 if test "$hardcode_direct" = yes; then
7563 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7565 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7566 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7568 for x
in $rpathdirs; do
7569 if test "X$x" = "X$found_dir"; then
7574 if test -z "$haveit"; then
7575 rpathdirs
="$rpathdirs $found_dir"
7579 for x
in $LDFLAGS $LIBEXPAT; do
7581 acl_save_prefix
="$prefix"
7582 prefix
="$acl_final_prefix"
7583 acl_save_exec_prefix
="$exec_prefix"
7584 exec_prefix
="$acl_final_exec_prefix"
7586 exec_prefix
="$acl_save_exec_prefix"
7587 prefix
="$acl_save_prefix"
7589 if test "X$x" = "X-L$found_dir"; then
7594 if test -z "$haveit"; then
7595 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7597 if test "$hardcode_minus_L" != no
; then
7598 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7600 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7606 if test "X$found_a" != "X"; then
7607 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7609 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7612 additional_includedir
=
7613 case "$found_dir" in
7615 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7616 additional_includedir
="$basedir/include"
7619 if test "X$additional_includedir" != "X"; then
7620 if test "X$additional_includedir" != "X/usr/include"; then
7622 if test "X$additional_includedir" = "X/usr/local/include"; then
7623 if test -n "$GCC"; then
7625 linux
*) haveit
=yes;;
7629 if test -z "$haveit"; then
7630 for x
in $CPPFLAGS $INCEXPAT; do
7632 acl_save_prefix
="$prefix"
7633 prefix
="$acl_final_prefix"
7634 acl_save_exec_prefix
="$exec_prefix"
7635 exec_prefix
="$acl_final_exec_prefix"
7637 exec_prefix
="$acl_save_exec_prefix"
7638 prefix
="$acl_save_prefix"
7640 if test "X$x" = "X-I$additional_includedir"; then
7645 if test -z "$haveit"; then
7646 if test -d "$additional_includedir"; then
7647 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7653 if test -n "$found_la"; then
7654 save_libdir
="$libdir"
7656 */* |
*\\*) .
"$found_la" ;;
7657 *) .
"./$found_la" ;;
7659 libdir
="$save_libdir"
7660 for dep
in $dependency_libs; do
7663 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7664 if test "X$additional_libdir" != "X/usr/lib"; then
7666 if test "X$additional_libdir" = "X/usr/local/lib"; then
7667 if test -n "$GCC"; then
7669 linux
*) haveit
=yes;;
7673 if test -z "$haveit"; then
7675 for x
in $LDFLAGS $LIBEXPAT; do
7677 acl_save_prefix
="$prefix"
7678 prefix
="$acl_final_prefix"
7679 acl_save_exec_prefix
="$exec_prefix"
7680 exec_prefix
="$acl_final_exec_prefix"
7682 exec_prefix
="$acl_save_exec_prefix"
7683 prefix
="$acl_save_prefix"
7685 if test "X$x" = "X-L$additional_libdir"; then
7690 if test -z "$haveit"; then
7691 if test -d "$additional_libdir"; then
7692 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7696 for x
in $LDFLAGS $LTLIBEXPAT; do
7698 acl_save_prefix
="$prefix"
7699 prefix
="$acl_final_prefix"
7700 acl_save_exec_prefix
="$exec_prefix"
7701 exec_prefix
="$acl_final_exec_prefix"
7703 exec_prefix
="$acl_save_exec_prefix"
7704 prefix
="$acl_save_prefix"
7706 if test "X$x" = "X-L$additional_libdir"; then
7711 if test -z "$haveit"; then
7712 if test -d "$additional_libdir"; then
7713 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7720 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7721 if test "$enable_rpath" != no
; then
7723 for x
in $rpathdirs; do
7724 if test "X$x" = "X$dir"; then
7729 if test -z "$haveit"; then
7730 rpathdirs
="$rpathdirs $dir"
7733 for x
in $ltrpathdirs; do
7734 if test "X$x" = "X$dir"; then
7739 if test -z "$haveit"; then
7740 ltrpathdirs
="$ltrpathdirs $dir"
7745 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7748 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7751 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7752 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7758 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7759 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7765 if test "X$rpathdirs" != "X"; then
7766 if test -n "$hardcode_libdir_separator"; then
7768 for found_dir
in $rpathdirs; do
7769 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7771 acl_save_libdir
="$libdir"
7773 eval flag
=\"$hardcode_libdir_flag_spec\"
7774 libdir
="$acl_save_libdir"
7775 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7777 for found_dir
in $rpathdirs; do
7778 acl_save_libdir
="$libdir"
7780 eval flag
=\"$hardcode_libdir_flag_spec\"
7781 libdir
="$acl_save_libdir"
7782 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7786 if test "X$ltrpathdirs" != "X"; then
7787 for found_dir
in $ltrpathdirs; do
7788 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7793 ac_save_CPPFLAGS
="$CPPFLAGS"
7795 for element
in $INCEXPAT; do
7797 for x
in $CPPFLAGS; do
7799 acl_save_prefix
="$prefix"
7800 prefix
="$acl_final_prefix"
7801 acl_save_exec_prefix
="$exec_prefix"
7802 exec_prefix
="$acl_final_exec_prefix"
7804 exec_prefix
="$acl_save_exec_prefix"
7805 prefix
="$acl_save_prefix"
7807 if test "X$x" = "X$element"; then
7812 if test -z "$haveit"; then
7813 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
7819 $as_echo_n "checking for libexpat... " >&6; }
7820 if test "${ac_cv_libexpat+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
7824 ac_save_LIBS
="$LIBS"
7825 LIBS
="$LIBS $LIBEXPAT"
7826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7832 XML_Parser p = XML_ParserCreate (0);
7837 if ac_fn_c_try_link
"$LINENO"; then :
7842 rm -f core conftest.err conftest.
$ac_objext \
7843 conftest
$ac_exeext conftest.
$ac_ext
7844 LIBS
="$ac_save_LIBS"
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
7848 $as_echo "$ac_cv_libexpat" >&6; }
7849 if test "$ac_cv_libexpat" = yes; then
7852 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
7855 $as_echo_n "checking how to link with libexpat... " >&6; }
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
7857 $as_echo "$LIBEXPAT" >&6; }
7860 CPPFLAGS
="$ac_save_CPPFLAGS"
7870 if test "$HAVE_LIBEXPAT" != yes; then
7871 if test "$with_expat" = yes; then
7872 as_fn_error
"expat is missing or unusable" "$LINENO" 5
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7875 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7879 LIBS
="$LIBS $LIBEXPAT"
7880 for ac_func
in XML_StopParser
7882 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
7883 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
7884 cat >>confdefs.h
<<_ACEOF
7885 #define HAVE_XML_STOPPARSER 1
7900 # Check whether --with-python was given.
7901 if test "${with_python+set}" = set; then :
7902 withval
=$with_python;
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
7908 $as_echo_n "checking whether to use python... " >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7910 $as_echo "$with_python" >&6; }
7912 if test "${with_python}" = no
; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
7914 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
7917 case "${with_python}" in
7919 if test -d ${with_python}; then
7920 # Assume the python binary is ${with_python}/bin/python.
7921 python_prog
="${with_python}/bin/python"
7923 # If python does not exit ${with_python}/bin, then try in
7924 # ${with_python}. On Windows/MinGW, this is where the Python
7926 if test ! -x "${python_prog}"; then
7927 python_prog
="${with_python}/python"
7930 if test ! -x "${python_prog}"; then
7931 # Fall back to gdb 7.0/7.1 behaviour.
7933 python_prefix
=${with_python}
7935 elif test -x "${with_python}"; then
7936 # While we can't run python compiled for $host (unless host == build),
7937 # the user could write a script that provides the needed information,
7938 # so we support that.
7939 python_prog
=${with_python}
7942 as_fn_error
"invalid value for --with-python" "$LINENO" 5
7946 # Disallow --with-python=foo/bar.
7947 as_fn_error
"invalid value for --with-python" "$LINENO" 5
7950 # The user has either specified auto, yes, or the name of the python
7951 # program assumed to be in $PATH.
7953 case "${with_python}" in
7955 if test ${build} = ${host}; then
7956 # Extract the first word of "python", so it can be a program name with args.
7957 set dummy python
; ac_word
=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if test "${ac_cv_path_python_prog_path+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
7963 case $python_prog_path in
7965 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
7968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7972 test -z "$as_dir" && as_dir
=.
7973 for ac_exec_ext
in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
7987 python_prog_path
=$ac_cv_path_python_prog_path
7988 if test -n "$python_prog_path"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
7990 $as_echo "$python_prog_path" >&6; }
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7997 if test "${python_prog_path}" = missing
; then
8000 python_prog
=${python_prog_path}
8003 # Not much we can do except assume the cross-compiler will find the
8009 # While we can't run python compiled for $host (unless host == build),
8010 # the user could write a script that provides the needed information,
8011 # so we support that.
8012 python_prog
="${with_python}"
8013 # Extract the first word of "${python_prog}", so it can be a program name with args.
8014 set dummy
${python_prog}; ac_word
=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8020 case $python_prog_path in
8022 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8029 test -z "$as_dir" && as_dir
=.
8030 for ac_exec_ext
in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8044 python_prog_path
=$ac_cv_path_python_prog_path
8045 if test -n "$python_prog_path"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8047 $as_echo "$python_prog_path" >&6; }
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8054 if test "${python_prog_path}" = missing
; then
8055 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
8061 if test "${python_prog}" != missing
; then
8062 # We have a python program to use, but it may be too old.
8063 # Don't flag an error for --with-python=auto (the default).
8064 have_python_config
=yes
8065 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
8066 if test $?
!= 0; then
8067 have_python_config
=failed
8068 if test "${with_python}" != auto
; then
8069 as_fn_error
"failure running python-config --includes" "$LINENO" 5
8072 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8073 if test $?
!= 0; then
8074 have_python_config
=failed
8075 if test "${with_python}" != auto
; then
8076 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
8079 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8080 if test $?
!= 0; then
8081 have_python_config
=failed
8082 if test "${with_python}" != auto
; then
8083 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
8087 # We do not have a python executable we can use to determine where
8088 # to find the Python headers and libs. We cannot guess the include
8089 # path from the python_prefix either, because that include path
8090 # depends on the Python version. So, there is nothing much we can
8091 # do except assume that the compiler will be able to find those files.
8094 have_python_config
=no
8097 # If we have python-config, only try the configuration it provides.
8098 # Otherwise fallback on the old way of trying different versions of
8102 if test "${have_python_config}" = yes; then
8103 # Determine the Python version by extracting "-lpython<version>"
8104 # part of the python_libs. <version> is usually X.Y with X and Y
8105 # being decimal numbers, but can also be XY (seen on Windows).
8107 # The extraction is performed using sed with a regular expression.
8108 # Initially, the regexp used was using the '?' quantifier to make
8109 # the dot in the version number optional. Unfortunately, this
8110 # does not work with non-GNU versions of sed because, because of
8111 # what looks like a limitation (the '?' quantifier does not work
8112 # with back-references). We work around this limitation by using
8113 # the '*' quantifier instead. It means that, in theory, we might
8114 # match unexpected version strings such as "-lpython2..7", but
8115 # this seems unlikely in practice. And even if that happens,
8116 # an error will be triggered later on, when checking that version
8118 python_version
=`echo " ${python_libs} " \
8119 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8120 case "${python_version}" in
8123 version
=${python_version}
8125 new_CPPFLAGS
=${python_includes}
8126 new_LIBS
=${python_libs}
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8128 $as_echo_n "checking for ${version}... " >&6; }
8129 save_CPPFLAGS
=$CPPFLAGS
8131 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8132 LIBS
="$LIBS $new_LIBS"
8133 found_usable_python
=no
8134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8145 if ac_fn_c_try_link
"$LINENO"; then :
8146 have_libpython
=${version}
8147 found_usable_python
=yes
8148 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8149 PYTHON_LIBS
=$new_LIBS
8151 rm -f core conftest.err conftest.
$ac_objext \
8152 conftest
$ac_exeext conftest.
$ac_ext
8153 CPPFLAGS
=$save_CPPFLAGS
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8156 $as_echo "${found_usable_python}" >&6; }
8160 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
8163 elif test "${have_python_config}" != failed
; then
8164 if test "${have_libpython}" = no
; then
8168 new_CPPFLAGS
=${python_includes}
8169 new_LIBS
="${python_libs} -lpython2.7"
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8171 $as_echo_n "checking for ${version}... " >&6; }
8172 save_CPPFLAGS
=$CPPFLAGS
8174 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8175 LIBS
="$LIBS $new_LIBS"
8176 found_usable_python
=no
8177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8188 if ac_fn_c_try_link
"$LINENO"; then :
8189 have_libpython
=${version}
8190 found_usable_python
=yes
8191 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8192 PYTHON_LIBS
=$new_LIBS
8194 rm -f core conftest.err conftest.
$ac_objext \
8195 conftest
$ac_exeext conftest.
$ac_ext
8196 CPPFLAGS
=$save_CPPFLAGS
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8199 $as_echo "${found_usable_python}" >&6; }
8202 if test "${have_libpython}" = no
; then
8206 new_CPPFLAGS
=${python_includes}
8207 new_LIBS
="${python_libs} -lpython2.6"
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8209 $as_echo_n "checking for ${version}... " >&6; }
8210 save_CPPFLAGS
=$CPPFLAGS
8212 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8213 LIBS
="$LIBS $new_LIBS"
8214 found_usable_python
=no
8215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8226 if ac_fn_c_try_link
"$LINENO"; then :
8227 have_libpython
=${version}
8228 found_usable_python
=yes
8229 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8230 PYTHON_LIBS
=$new_LIBS
8232 rm -f core conftest.err conftest.
$ac_objext \
8233 conftest
$ac_exeext conftest.
$ac_ext
8234 CPPFLAGS
=$save_CPPFLAGS
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8237 $as_echo "${found_usable_python}" >&6; }
8240 if test ${have_libpython} = no
; then
8244 new_CPPFLAGS
=${python_includes}
8245 new_LIBS
="${python_libs} -lpython2.5"
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8247 $as_echo_n "checking for ${version}... " >&6; }
8248 save_CPPFLAGS
=$CPPFLAGS
8250 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8251 LIBS
="$LIBS $new_LIBS"
8252 found_usable_python
=no
8253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8264 if ac_fn_c_try_link
"$LINENO"; then :
8265 have_libpython
=${version}
8266 found_usable_python
=yes
8267 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8268 PYTHON_LIBS
=$new_LIBS
8270 rm -f core conftest.err conftest.
$ac_objext \
8271 conftest
$ac_exeext conftest.
$ac_ext
8272 CPPFLAGS
=$save_CPPFLAGS
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8275 $as_echo "${found_usable_python}" >&6; }
8278 if test ${have_libpython} = no
; then
8282 new_CPPFLAGS
=${python_includes}
8283 new_LIBS
="${python_libs} -lpython2.4"
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8285 $as_echo_n "checking for ${version}... " >&6; }
8286 save_CPPFLAGS
=$CPPFLAGS
8288 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8289 LIBS
="$LIBS $new_LIBS"
8290 found_usable_python
=no
8291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8302 if ac_fn_c_try_link
"$LINENO"; then :
8303 have_libpython
=${version}
8304 found_usable_python
=yes
8305 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8306 PYTHON_LIBS
=$new_LIBS
8308 rm -f core conftest.err conftest.
$ac_objext \
8309 conftest
$ac_exeext conftest.
$ac_ext
8310 CPPFLAGS
=$save_CPPFLAGS
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8313 $as_echo "${found_usable_python}" >&6; }
8317 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
8319 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8321 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
8323 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8325 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
8327 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8329 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
8331 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8335 if test "${have_libpython}" = no
; then
8336 case "${with_python}" in
8338 as_fn_error
"python is missing or unusable" "$LINENO" 5
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8342 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8345 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
8349 if test -n "${python_prefix}"; then
8351 cat >>confdefs.h
<<_ACEOF
8352 #define WITH_PYTHON_PATH "${python_prefix}"
8356 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8357 if test "x$prefix" = xNONE
; then
8358 test_prefix
=/usr
/local
8363 test_prefix
=$exec_prefix
8366 case ${python_prefix} in
8367 "${test_prefix}"|
"${test_prefix}/"*|\
8368 '${exec_prefix}'|
'${exec_prefix}/'*)
8373 cat >>confdefs.h
<<_ACEOF
8374 #define PYTHON_PATH_RELOCATABLE $value
8382 if test "${have_libpython}" != no
; then
8384 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8386 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8387 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8388 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8389 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
8390 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8392 # Flags needed to compile Python code (taken from python-config --cflags).
8393 # We cannot call python-config directly because it will output whatever was
8394 # used when compiling the Python interpreter itself, including flags which
8395 # would make the python-related objects be compiled differently from the
8396 # rest of GDB (e.g., -O2 and -fPIC).
8397 if test "${GCC}" = yes; then
8398 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
8401 if test "x${tentative_python_cflags}" != x
; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8403 $as_echo_n "checking compiler flags for python code... " >&6; }
8404 for flag
in ${tentative_python_cflags}; do
8405 # Check that the compiler accepts it
8406 saved_CFLAGS
="$CFLAGS"
8407 CFLAGS
="$CFLAGS $flag"
8408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8419 if ac_fn_c_try_compile
"$LINENO"; then :
8420 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
8422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8423 CFLAGS
="$saved_CFLAGS"
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8426 $as_echo "${PYTHON_CFLAGS}" >&6; }
8429 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8431 # #define siginfo __siginfo
8433 # The problem is that including Python causes some XOPEN macros to be
8434 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8435 # to false. So, we work around this issue by defining siginfo ourself
8436 # though the command-line.
8438 irix
*) if test "${GCC}" = yes; then
8439 CPPFLAGS
="$CPPFLAGS -Dsiginfo=__siginfo"
8444 # Even if Python support is not compiled in, we need to have these files
8446 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
8447 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
8448 python/py-prettyprint.c python/py-auto-load.c"
8454 # ------------------------- #
8455 # Checks for header files. #
8456 # ------------------------- #
8459 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
8460 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8462 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8463 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8464 $as_echo_n "(cached) " >&6
8466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8468 #include <sys/types.h>
8480 if ac_fn_c_try_compile
"$LINENO"; then :
8481 eval "$as_ac_Header=yes"
8483 eval "$as_ac_Header=no"
8485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8487 eval ac_res
=\$
$as_ac_Header
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8489 $as_echo "$ac_res" >&6; }
8490 eval as_val
=\$
$as_ac_Header
8491 if test "x$as_val" = x
""yes; then :
8492 cat >>confdefs.h
<<_ACEOF
8493 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8496 ac_header_dirent
=$ac_hdr; break
8500 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8501 if test $ac_header_dirent = dirent.h
; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8503 $as_echo_n "checking for library containing opendir... " >&6; }
8504 if test "${ac_cv_search_opendir+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8507 ac_func_search_save_LIBS
=$LIBS
8508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8511 /* Override any GCC internal prototype to avoid an error.
8512 Use char because int might match the return type of a GCC
8513 builtin and then its argument prototype would still apply. */
8526 for ac_lib
in '' dir
; do
8527 if test -z "$ac_lib"; then
8528 ac_res
="none required"
8531 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8533 if ac_fn_c_try_link
"$LINENO"; then :
8534 ac_cv_search_opendir
=$ac_res
8536 rm -f core conftest.err conftest.
$ac_objext \
8538 if test "${ac_cv_search_opendir+set}" = set; then :
8542 if test "${ac_cv_search_opendir+set}" = set; then :
8545 ac_cv_search_opendir
=no
8548 LIBS
=$ac_func_search_save_LIBS
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8551 $as_echo "$ac_cv_search_opendir" >&6; }
8552 ac_res
=$ac_cv_search_opendir
8553 if test "$ac_res" != no
; then :
8554 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8560 $as_echo_n "checking for library containing opendir... " >&6; }
8561 if test "${ac_cv_search_opendir+set}" = set; then :
8562 $as_echo_n "(cached) " >&6
8564 ac_func_search_save_LIBS
=$LIBS
8565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8568 /* Override any GCC internal prototype to avoid an error.
8569 Use char because int might match the return type of a GCC
8570 builtin and then its argument prototype would still apply. */
8583 for ac_lib
in '' x
; do
8584 if test -z "$ac_lib"; then
8585 ac_res
="none required"
8588 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8590 if ac_fn_c_try_link
"$LINENO"; then :
8591 ac_cv_search_opendir
=$ac_res
8593 rm -f core conftest.err conftest.
$ac_objext \
8595 if test "${ac_cv_search_opendir+set}" = set; then :
8599 if test "${ac_cv_search_opendir+set}" = set; then :
8602 ac_cv_search_opendir
=no
8605 LIBS
=$ac_func_search_save_LIBS
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8608 $as_echo "$ac_cv_search_opendir" >&6; }
8609 ac_res
=$ac_cv_search_opendir
8610 if test "$ac_res" != no
; then :
8611 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8618 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8619 if test "${ac_cv_header_stat_broken+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 #include <sys/types.h>
8625 #include <sys/stat.h>
8627 #if defined S_ISBLK && defined S_IFDIR
8628 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8631 #if defined S_ISBLK && defined S_IFCHR
8632 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8635 #if defined S_ISLNK && defined S_IFREG
8636 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8639 #if defined S_ISSOCK && defined S_IFREG
8640 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8644 if ac_fn_c_try_compile
"$LINENO"; then :
8645 ac_cv_header_stat_broken
=no
8647 ac_cv_header_stat_broken
=yes
8649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8652 $as_echo "$ac_cv_header_stat_broken" >&6; }
8653 if test $ac_cv_header_stat_broken = yes; then
8655 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8660 $as_echo_n "checking for ANSI C header files... " >&6; }
8661 if test "${ac_cv_header_stdc+set}" = set; then :
8662 $as_echo_n "(cached) " >&6
8664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8679 if ac_fn_c_try_compile
"$LINENO"; then :
8680 ac_cv_header_stdc
=yes
8682 ac_cv_header_stdc
=no
8684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8686 if test $ac_cv_header_stdc = yes; then
8687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8694 $EGREP "memchr" >/dev
/null
2>&1; then :
8697 ac_cv_header_stdc
=no
8703 if test $ac_cv_header_stdc = yes; then
8704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8711 $EGREP "free" >/dev
/null
2>&1; then :
8714 ac_cv_header_stdc
=no
8720 if test $ac_cv_header_stdc = yes; then
8721 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8722 if test "$cross_compiling" = yes; then :
8725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8729 #if ((' ' & 0x0FF) == 0x020)
8730 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8731 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8733 # define ISLOWER(c) \
8734 (('a' <= (c) && (c) <= 'i') \
8735 || ('j' <= (c) && (c) <= 'r') \
8736 || ('s' <= (c) && (c) <= 'z'))
8737 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8745 for (i = 0; i < 256; i++)
8746 if (XOR (islower (i), ISLOWER (i))
8747 || toupper (i) != TOUPPER (i))
8752 if ac_fn_c_try_run
"$LINENO"; then :
8755 ac_cv_header_stdc
=no
8757 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8758 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8764 $as_echo "$ac_cv_header_stdc" >&6; }
8765 if test $ac_cv_header_stdc = yes; then
8767 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8771 # elf_hp.h is for HP/UX 64-bit shared library support.
8772 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
8773 # unconditionally, so what's the point in checking these?
8774 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
8775 thread_db.h gnu
/libc-version.h signal.h stddef.h \
8776 stdlib.h string.h memory.h
strings.h sys
/fault.h \
8777 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
8778 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
8779 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
8780 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
8781 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h \
8782 dlfcn.h sys
/socket.h sys
/un.h
8784 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8785 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8786 eval as_val
=\$
$as_ac_Header
8787 if test "x$as_val" = x
""yes; then :
8788 cat >>confdefs.h
<<_ACEOF
8789 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8796 for ac_header
in link.h
8798 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
8799 # include <sys/types.h>
8806 if test "x$ac_cv_header_link_h" = x
""yes; then :
8807 cat >>confdefs.h
<<_ACEOF
8808 #define HAVE_LINK_H 1
8815 for ac_header
in sys
/proc.h
8817 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
8818 # include <sys/param.h>
8822 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
8823 cat >>confdefs.h
<<_ACEOF
8824 #define HAVE_SYS_PROC_H 1
8831 for ac_header
in sys
/user.h
8833 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
8834 # include <sys/param.h>
8838 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
8839 cat >>confdefs.h
<<_ACEOF
8840 #define HAVE_SYS_USER_H 1
8848 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
8849 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
8850 # think that we don't have <curses.h> if we're using GCC.
8853 if test "$GCC" = yes; then
8855 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
8859 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
8861 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8862 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8863 eval as_val
=\$
$as_ac_Header
8864 if test "x$as_val" = x
""yes; then :
8865 cat >>confdefs.h
<<_ACEOF
8866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8873 for ac_header
in term.h
8875 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
8876 # include <curses.h>
8880 if test "x$ac_cv_header_term_h" = x
""yes; then :
8881 cat >>confdefs.h
<<_ACEOF
8882 #define HAVE_TERM_H 1
8890 # ------------------------- #
8891 # Checks for declarations. #
8892 # ------------------------- #
8894 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
8895 if test "x$ac_cv_have_decl_free" = x
""yes; then :
8901 cat >>confdefs.h
<<_ACEOF
8902 #define HAVE_DECL_FREE $ac_have_decl
8904 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
8905 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
8911 cat >>confdefs.h
<<_ACEOF
8912 #define HAVE_DECL_MALLOC $ac_have_decl
8914 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
8915 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
8921 cat >>confdefs.h
<<_ACEOF
8922 #define HAVE_DECL_REALLOC $ac_have_decl
8924 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
8925 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
8931 cat >>confdefs.h
<<_ACEOF
8932 #define HAVE_DECL_STRERROR $ac_have_decl
8934 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8935 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
8941 cat >>confdefs.h
<<_ACEOF
8942 #define HAVE_DECL_STRSTR $ac_have_decl
8944 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
8945 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
8951 cat >>confdefs.h
<<_ACEOF
8952 #define HAVE_DECL_GETOPT $ac_have_decl
8954 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
8955 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
8961 cat >>confdefs.h
<<_ACEOF
8962 #define HAVE_DECL_SNPRINTF $ac_have_decl
8964 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
8965 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
8971 cat >>confdefs.h
<<_ACEOF
8972 #define HAVE_DECL_VSNPRINTF $ac_have_decl
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8977 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8978 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8979 $as_echo_n "(cached) " >&6
8981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8992 if ac_fn_c_try_link
"$LINENO"; then :
8993 am_cv_val_LC_MESSAGES
=yes
8995 am_cv_val_LC_MESSAGES
=no
8997 rm -f core conftest.err conftest.
$ac_objext \
8998 conftest
$ac_exeext conftest.
$ac_ext
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9001 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9002 if test $am_cv_val_LC_MESSAGES = yes; then
9004 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9009 # ----------------------- #
9010 # Checks for structures. #
9011 # ----------------------- #
9013 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9014 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
9016 cat >>confdefs.h
<<_ACEOF
9017 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9022 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9023 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
9025 cat >>confdefs.h
<<_ACEOF
9026 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9033 # ------------------ #
9034 # Checks for types. #
9035 # ------------------ #
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9038 $as_echo_n "checking return type of signal handlers... " >&6; }
9039 if test "${ac_cv_type_signal+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044 #include <sys/types.h>
9050 return *(signal (0, 0)) (0) == 1;
9055 if ac_fn_c_try_compile
"$LINENO"; then :
9056 ac_cv_type_signal
=int
9058 ac_cv_type_signal
=void
9060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9063 $as_echo "$ac_cv_type_signal" >&6; }
9065 cat >>confdefs.h
<<_ACEOF
9066 #define RETSIGTYPE $ac_cv_type_signal
9070 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9071 #include <sys/socket.h>
9074 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
9076 cat >>confdefs.h
<<_ACEOF
9077 #define HAVE_SOCKLEN_T 1
9084 # ------------------------------------- #
9085 # Checks for compiler characteristics. #
9086 # ------------------------------------- #
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9089 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9090 if test "${ac_cv_c_const+set}" = set; then :
9091 $as_echo_n "(cached) " >&6
9093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9099 /* FIXME: Include the comments suggested by Paul. */
9101 /* Ultrix mips cc rejects this. */
9102 typedef int charset[2];
9104 /* SunOS 4.1.1 cc rejects this. */
9105 char const *const *pcpcc;
9107 /* NEC SVR4.0.2 mips cc rejects this. */
9108 struct point {int x, y;};
9109 static struct point const zero = {0,0};
9110 /* AIX XL C 1.02.0.0 rejects this.
9111 It does not let you subtract one const X* pointer from another in
9112 an arm of an if-expression whose if-part is not a constant
9114 const char *g = "string";
9115 pcpcc = &g + (g ? g-g : 0);
9116 /* HPUX 7.0 cc rejects these. */
9118 ppc = (char**) pcpcc;
9119 pcpcc = (char const *const *) ppc;
9120 { /* SCO 3.2v4 cc rejects this. */
9122 char const *s = 0 ? (char *) 0 : (char const *) 0;
9127 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9129 const int *foo = &x[0];
9132 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9133 typedef const int *iptr;
9137 { /* AIX XL C 1.02.0.0 rejects this saying
9138 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9139 struct s { int j; const int *ap[3]; };
9140 struct s *b; b->j = 5;
9142 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9146 return !cs[0] && !zero.x;
9153 if ac_fn_c_try_compile
"$LINENO"; then :
9158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9161 $as_echo "$ac_cv_c_const" >&6; }
9162 if test $ac_cv_c_const = no
; then
9164 $as_echo "#define const /**/" >>confdefs.h
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9169 $as_echo_n "checking for inline... " >&6; }
9170 if test "${ac_cv_c_inline+set}" = set; then :
9171 $as_echo_n "(cached) " >&6
9174 for ac_kw
in inline __inline__ __inline
; do
9175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h. */
9179 static $ac_kw foo_t static_foo () {return 0; }
9180 $ac_kw foo_t foo () {return 0; }
9184 if ac_fn_c_try_compile
"$LINENO"; then :
9185 ac_cv_c_inline
=$ac_kw
9187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9188 test "$ac_cv_c_inline" != no
&& break
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9193 $as_echo "$ac_cv_c_inline" >&6; }
9195 case $ac_cv_c_inline in
9198 case $ac_cv_c_inline in
9200 *) ac_val
=$ac_cv_c_inline;;
9202 cat >>confdefs.h
<<_ACEOF
9204 #define inline $ac_val
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9211 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9212 if test "${ac_cv_c_bigendian+set}" = set; then :
9213 $as_echo_n "(cached) " >&6
9215 ac_cv_c_bigendian
=unknown
9216 # See if we're dealing with a universal compiler.
9217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219 #ifndef __APPLE_CC__
9220 not a universal capable compiler
9225 if ac_fn_c_try_compile
"$LINENO"; then :
9227 # Check for potential -arch flags. It is not universal unless
9228 # there are at least two -arch flags with different values.
9231 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9232 if test -n "$ac_prev"; then
9234 i?
86 | x86_64 | ppc | ppc64
)
9235 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9238 ac_cv_c_bigendian
=universal
9244 elif test "x$ac_word" = "x-arch"; then
9249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9250 if test $ac_cv_c_bigendian = unknown
; then
9251 # See if sys/param.h defines the BYTE_ORDER macro.
9252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9254 #include <sys/types.h>
9255 #include <sys/param.h>
9260 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9261 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9270 if ac_fn_c_try_compile
"$LINENO"; then :
9271 # It does; now see whether it defined to BIG_ENDIAN or not.
9272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9274 #include <sys/types.h>
9275 #include <sys/param.h>
9280 #if BYTE_ORDER != BIG_ENDIAN
9288 if ac_fn_c_try_compile
"$LINENO"; then :
9289 ac_cv_c_bigendian
=yes
9291 ac_cv_c_bigendian
=no
9293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9297 if test $ac_cv_c_bigendian = unknown
; then
9298 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9306 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9314 if ac_fn_c_try_compile
"$LINENO"; then :
9315 # It does; now see whether it defined to _BIG_ENDIAN or not.
9316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9331 if ac_fn_c_try_compile
"$LINENO"; then :
9332 ac_cv_c_bigendian
=yes
9334 ac_cv_c_bigendian
=no
9336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9340 if test $ac_cv_c_bigendian = unknown
; then
9341 # Compile a test program.
9342 if test "$cross_compiling" = yes; then :
9343 # Try to guess by grepping values from an object file.
9344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9346 short int ascii_mm[] =
9347 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9348 short int ascii_ii[] =
9349 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9350 int use_ascii (int i) {
9351 return ascii_mm[i] + ascii_ii[i];
9353 short int ebcdic_ii[] =
9354 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9355 short int ebcdic_mm[] =
9356 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9357 int use_ebcdic (int i) {
9358 return ebcdic_mm[i] + ebcdic_ii[i];
9365 return use_ascii (foo) == use_ebcdic (foo);
9370 if ac_fn_c_try_compile
"$LINENO"; then :
9371 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9372 ac_cv_c_bigendian
=yes
9374 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9375 if test "$ac_cv_c_bigendian" = unknown
; then
9376 ac_cv_c_bigendian
=no
9378 # finding both strings is unlikely to happen, but who knows?
9379 ac_cv_c_bigendian
=unknown
9383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 $ac_includes_default
9392 /* Are we little or big endian? From Harbison&Steele. */
9396 char c[sizeof (long int)];
9399 return u.c[sizeof (long int) - 1] == 1;
9405 if ac_fn_c_try_run
"$LINENO"; then :
9406 ac_cv_c_bigendian
=no
9408 ac_cv_c_bigendian
=yes
9410 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9411 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9417 $as_echo "$ac_cv_c_bigendian" >&6; }
9418 case $ac_cv_c_bigendian in #(
9420 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9426 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9430 as_fn_error
"unknown endianness
9431 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9435 # ------------------------------ #
9436 # Checks for library functions. #
9437 # ------------------------------ #
9439 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9440 # for constant arguments. Useless!
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9442 $as_echo_n "checking for working alloca.h... " >&6; }
9443 if test "${ac_cv_working_alloca_h+set}" = set; then :
9444 $as_echo_n "(cached) " >&6
9446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9452 char *p = (char *) alloca (2 * sizeof (int));
9458 if ac_fn_c_try_link
"$LINENO"; then :
9459 ac_cv_working_alloca_h
=yes
9461 ac_cv_working_alloca_h
=no
9463 rm -f core conftest.err conftest.
$ac_objext \
9464 conftest
$ac_exeext conftest.
$ac_ext
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9467 $as_echo "$ac_cv_working_alloca_h" >&6; }
9468 if test $ac_cv_working_alloca_h = yes; then
9470 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9475 $as_echo_n "checking for alloca... " >&6; }
9476 if test "${ac_cv_func_alloca_works+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
9479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9482 # define alloca __builtin_alloca
9485 # include <malloc.h>
9486 # define alloca _alloca
9488 # ifdef HAVE_ALLOCA_H
9489 # include <alloca.h>
9494 # ifndef alloca /* predefined by HP cc +Olibcalls */
9505 char *p = (char *) alloca (1);
9511 if ac_fn_c_try_link
"$LINENO"; then :
9512 ac_cv_func_alloca_works
=yes
9514 ac_cv_func_alloca_works
=no
9516 rm -f core conftest.err conftest.
$ac_objext \
9517 conftest
$ac_exeext conftest.
$ac_ext
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9520 $as_echo "$ac_cv_func_alloca_works" >&6; }
9522 if test $ac_cv_func_alloca_works = yes; then
9524 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9527 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9528 # that cause trouble. Some versions do not even contain alloca or
9529 # contain a buggy version. If you still want to use their alloca,
9530 # use ar to extract alloca.o from them instead of compiling alloca.c.
9532 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
9534 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9538 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9539 if test "${ac_cv_os_cray+set}" = set; then :
9540 $as_echo_n "(cached) " >&6
9542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544 #if defined CRAY && ! defined CRAY2
9551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9552 $EGREP "webecray" >/dev
/null
2>&1; then :
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9561 $as_echo "$ac_cv_os_cray" >&6; }
9562 if test $ac_cv_os_cray = yes; then
9563 for ac_func
in _getb67 GETB67 getb67
; do
9564 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9565 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9566 eval as_val
=\$
$as_ac_var
9567 if test "x$as_val" = x
""yes; then :
9569 cat >>confdefs.h
<<_ACEOF
9570 #define CRAY_STACKSEG_END $ac_func
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9580 $as_echo_n "checking stack direction for C alloca... " >&6; }
9581 if test "${ac_cv_c_stack_direction+set}" = set; then :
9582 $as_echo_n "(cached) " >&6
9584 if test "$cross_compiling" = yes; then :
9585 ac_cv_c_stack_direction
=0
9587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9589 $ac_includes_default
9591 find_stack_direction ()
9593 static char *addr = 0;
9598 return find_stack_direction ();
9601 return (&dummy > addr) ? 1 : -1;
9607 return find_stack_direction () < 0;
9610 if ac_fn_c_try_run
"$LINENO"; then :
9611 ac_cv_c_stack_direction
=1
9613 ac_cv_c_stack_direction
=-1
9615 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9616 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9621 $as_echo "$ac_cv_c_stack_direction" >&6; }
9622 cat >>confdefs.h
<<_ACEOF
9623 #define STACK_DIRECTION $ac_cv_c_stack_direction
9629 for ac_header
in stdlib.h unistd.h
9631 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9632 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9633 eval as_val
=\$
$as_ac_Header
9634 if test "x$as_val" = x
""yes; then :
9635 cat >>confdefs.h
<<_ACEOF
9636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9643 for ac_func
in getpagesize
9645 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9646 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9647 cat >>confdefs.h
<<_ACEOF
9648 #define HAVE_GETPAGESIZE 1
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9655 $as_echo_n "checking for working mmap... " >&6; }
9656 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
9659 if test "$cross_compiling" = yes; then :
9660 ac_cv_func_mmap_fixed_mapped
=no
9662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9664 $ac_includes_default
9665 /* malloc might have been renamed as rpl_malloc. */
9668 /* Thanks to Mike Haertel and Jim Avera for this test.
9669 Here is a matrix of mmap possibilities:
9670 mmap private not fixed
9671 mmap private fixed at somewhere currently unmapped
9672 mmap private fixed at somewhere already mapped
9673 mmap shared not fixed
9674 mmap shared fixed at somewhere currently unmapped
9675 mmap shared fixed at somewhere already mapped
9676 For private mappings, we should verify that changes cannot be read()
9677 back from the file, nor mmap's back from the file at a different
9678 address. (There have been systems where private was not correctly
9679 implemented like the infamous i386 svr4.0, and systems where the
9680 VM page cache was not coherent with the file system buffer cache
9681 like early versions of FreeBSD and possibly contemporary NetBSD.)
9682 For shared mappings, we should conversely verify that changes get
9683 propagated back to all the places they're supposed to be.
9685 Grep wants private fixed already mapped.
9686 The main things grep needs to know about mmap are:
9687 * does it exist and is it safe to write into the mmap'd area
9688 * how to use it (BSD variants) */
9691 #include <sys/mman.h>
9693 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9697 /* This mess was copied from the GNU getpagesize.h. */
9698 #ifndef HAVE_GETPAGESIZE
9699 /* Assume that all systems that can run configure have sys/param.h. */
9700 # ifndef HAVE_SYS_PARAM_H
9701 # define HAVE_SYS_PARAM_H 1
9704 # ifdef _SC_PAGESIZE
9705 # define getpagesize() sysconf(_SC_PAGESIZE)
9706 # else /* no _SC_PAGESIZE */
9707 # ifdef HAVE_SYS_PARAM_H
9708 # include <sys/param.h>
9709 # ifdef EXEC_PAGESIZE
9710 # define getpagesize() EXEC_PAGESIZE
9711 # else /* no EXEC_PAGESIZE */
9713 # define getpagesize() NBPG * CLSIZE
9716 # endif /* no CLSIZE */
9717 # else /* no NBPG */
9719 # define getpagesize() NBPC
9720 # else /* no NBPC */
9722 # define getpagesize() PAGESIZE
9723 # endif /* PAGESIZE */
9724 # endif /* no NBPC */
9725 # endif /* no NBPG */
9726 # endif /* no EXEC_PAGESIZE */
9727 # else /* no HAVE_SYS_PARAM_H */
9728 # define getpagesize() 8192 /* punt totally */
9729 # endif /* no HAVE_SYS_PARAM_H */
9730 # endif /* no _SC_PAGESIZE */
9732 #endif /* no HAVE_GETPAGESIZE */
9737 char *data, *data2, *data3;
9741 pagesize = getpagesize ();
9743 /* First, make a file with some known garbage in it. */
9744 data = (char *) malloc (pagesize);
9747 for (i = 0; i < pagesize; ++i)
9748 *(data + i) = rand ();
9750 fd = creat ("conftest.mmap", 0600);
9753 if (write (fd, data, pagesize) != pagesize)
9757 /* Next, try to mmap the file at a fixed address which already has
9758 something else allocated at it. If we can, also make sure that
9759 we see the same garbage. */
9760 fd = open ("conftest.mmap", O_RDWR);
9763 data2 = (char *) malloc (2 * pagesize);
9766 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9767 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9768 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9770 for (i = 0; i < pagesize; ++i)
9771 if (*(data + i) != *(data2 + i))
9774 /* Finally, make sure that changes to the mapped area do not
9775 percolate back to the file as seen by read(). (This is a bug on
9776 some variants of i386 svr4.0.) */
9777 for (i = 0; i < pagesize; ++i)
9778 *(data2 + i) = *(data2 + i) + 1;
9779 data3 = (char *) malloc (pagesize);
9782 if (read (fd, data3, pagesize) != pagesize)
9784 for (i = 0; i < pagesize; ++i)
9785 if (*(data + i) != *(data3 + i))
9791 if ac_fn_c_try_run
"$LINENO"; then :
9792 ac_cv_func_mmap_fixed_mapped
=yes
9794 ac_cv_func_mmap_fixed_mapped
=no
9796 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9797 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9802 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9803 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9805 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9810 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9811 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9815 cat >>confdefs.h
<<_ACEOF
9821 for ac_header
in vfork.h
9823 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9824 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9825 cat >>confdefs.h
<<_ACEOF
9826 #define HAVE_VFORK_H 1
9833 for ac_func
in fork vfork
9835 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9836 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9837 eval as_val
=\$
$as_ac_var
9838 if test "x$as_val" = x
""yes; then :
9839 cat >>confdefs.h
<<_ACEOF
9840 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9846 if test "x$ac_cv_func_fork" = xyes
; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9848 $as_echo_n "checking for working fork... " >&6; }
9849 if test "${ac_cv_func_fork_works+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9852 if test "$cross_compiling" = yes; then :
9853 ac_cv_func_fork_works
=cross
9855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9857 $ac_includes_default
9862 /* By Ruediger Kuhlmann. */
9869 if ac_fn_c_try_run
"$LINENO"; then :
9870 ac_cv_func_fork_works
=yes
9872 ac_cv_func_fork_works
=no
9874 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9875 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9880 $as_echo "$ac_cv_func_fork_works" >&6; }
9883 ac_cv_func_fork_works
=$ac_cv_func_fork
9885 if test "x$ac_cv_func_fork_works" = xcross
; then
9887 *-*-amigaos* |
*-*-msdosdjgpp*)
9888 # Override, as these systems have only a dummy fork() stub
9889 ac_cv_func_fork_works
=no
9892 ac_cv_func_fork_works
=yes
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9896 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9898 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9899 if test "x$ac_cv_func_vfork" = xyes
; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9901 $as_echo_n "checking for working vfork... " >&6; }
9902 if test "${ac_cv_func_vfork_works+set}" = set; then :
9903 $as_echo_n "(cached) " >&6
9905 if test "$cross_compiling" = yes; then :
9906 ac_cv_func_vfork_works
=cross
9908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 /* Thanks to Paul Eggert for this test. */
9911 $ac_includes_default
9912 #include <sys/wait.h>
9916 /* On some sparc systems, changes by the child to local and incoming
9917 argument registers are propagated back to the parent. The compiler
9918 is told about this with #include <vfork.h>, but some compilers
9919 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9920 static variable whose address is put into a register that is
9921 clobbered by the vfork. */
9924 sparc_address_test (int arg)
9926 sparc_address_test (arg) int arg;
9947 pid_t parent = getpid ();
9950 sparc_address_test (0);
9955 /* Here is another test for sparc vfork register problems. This
9956 test uses lots of local variables, at least as many local
9957 variables as main has allocated so far including compiler
9958 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9959 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9960 reuse the register of parent for one of the local variables,
9961 since it will think that parent can't possibly be used any more
9962 in this routine. Assigning to the local variable will thus
9963 munge parent in the parent process. */
9965 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9966 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9967 /* Convince the compiler that p..p7 are live; otherwise, it might
9968 use the same hardware register for all 8 local variables. */
9969 if (p != p1 || p != p2 || p != p3 || p != p4
9970 || p != p5 || p != p6 || p != p7)
9973 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9974 from child file descriptors. If the child closes a descriptor
9975 before it execs or exits, this munges the parent's descriptor
9976 as well. Test for this by closing stdout in the child. */
9977 _exit(close(fileno(stdout)) != 0);
9982 while (wait(&status) != child)
9985 /* Was there some problem with vforking? */
9988 /* Did the child fail? (This shouldn't happen.) */
9991 /* Did the vfork/compiler bug occur? */
9992 || parent != getpid()
9994 /* Did the file descriptor bug occur? */
9995 || fstat(fileno(stdout), &st) != 0
10000 if ac_fn_c_try_run
"$LINENO"; then :
10001 ac_cv_func_vfork_works
=yes
10003 ac_cv_func_vfork_works
=no
10005 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10006 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10011 $as_echo "$ac_cv_func_vfork_works" >&6; }
10014 if test "x$ac_cv_func_fork_works" = xcross
; then
10015 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10017 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10020 if test "x$ac_cv_func_vfork_works" = xyes
; then
10022 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10026 $as_echo "#define vfork fork" >>confdefs.h
10029 if test "x$ac_cv_func_fork_works" = xyes
; then
10031 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10035 for ac_func
in canonicalize_file_name realpath getrusage getuid getgid \
10036 pipe poll pread pread64 pwrite readlink resize_term \
10037 sbrk setpgid setpgrp setsid \
10038 sigaction sigprocmask sigsetmask socketpair syscall \
10039 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10040 setrlimit getrlimit posix_madvise waitpid lstat
10042 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10043 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10044 eval as_val
=\$
$as_ac_var
10045 if test "x$as_val" = x
""yes; then :
10046 cat >>confdefs.h
<<_ACEOF
10047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10055 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10056 if test "${am_cv_langinfo_codeset+set}" = set; then :
10057 $as_echo_n "(cached) " >&6
10059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10061 #include <langinfo.h>
10065 char* cs = nl_langinfo(CODESET);
10070 if ac_fn_c_try_link
"$LINENO"; then :
10071 am_cv_langinfo_codeset
=yes
10073 am_cv_langinfo_codeset
=no
10075 rm -f core conftest.err conftest.
$ac_objext \
10076 conftest
$ac_exeext conftest.
$ac_ext
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10080 $as_echo "$am_cv_langinfo_codeset" >&6; }
10081 if test $am_cv_langinfo_codeset = yes; then
10083 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10088 # Check the return and argument types of ptrace. No canned test for
10089 # this, so roll our own.
10090 gdb_ptrace_headers
='
10091 #if HAVE_SYS_TYPES_H
10092 # include <sys/types.h>
10094 #if HAVE_SYS_PTRACE_H
10095 # include <sys/ptrace.h>
10098 # include <unistd.h>
10101 # There is no point in checking if we don't have a prototype.
10102 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10104 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
10110 cat >>confdefs.h
<<_ACEOF
10111 #define HAVE_DECL_PTRACE $ac_have_decl
10113 if test $ac_have_decl = 1; then :
10117 : ${gdb_cv_func_ptrace_ret='int'}
10118 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10122 # Check return type. Varargs (used on GNU/Linux) conflict with the
10123 # empty argument list, so check for that explicitly.
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10125 $as_echo_n "checking return type of ptrace... " >&6; }
10126 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
10127 $as_echo_n "(cached) " >&6
10129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10131 $gdb_ptrace_headers
10135 extern long ptrace (enum __ptrace_request, ...);
10140 if ac_fn_c_try_compile
"$LINENO"; then :
10141 gdb_cv_func_ptrace_ret
='long'
10143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10145 $gdb_ptrace_headers
10149 extern int ptrace ();
10154 if ac_fn_c_try_compile
"$LINENO"; then :
10155 gdb_cv_func_ptrace_ret
='int'
10157 gdb_cv_func_ptrace_ret
='long'
10159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10164 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10166 cat >>confdefs.h
<<_ACEOF
10167 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10170 # Check argument types.
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10172 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10173 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
10174 $as_echo_n "(cached) " >&6
10177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179 $gdb_ptrace_headers
10183 extern long ptrace (enum __ptrace_request, ...);
10188 if ac_fn_c_try_compile
"$LINENO"; then :
10189 gdb_cv_func_ptrace_args
='int,int,long,long'
10192 for gdb_arg1
in 'int' 'long'; do
10193 for gdb_arg2
in 'pid_t' 'int' 'long'; do
10194 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10195 for gdb_arg4
in 'int' 'long'; do
10196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 $gdb_ptrace_headers
10203 extern $gdb_cv_func_ptrace_ret
10204 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10210 if ac_fn_c_try_compile
"$LINENO"; then :
10211 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10215 for gdb_arg5
in 'int *' 'int' 'long'; do
10216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 $gdb_ptrace_headers
10223 extern $gdb_cv_func_ptrace_ret
10224 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10230 if ac_fn_c_try_compile
"$LINENO"; then :
10232 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10241 # Provide a safe default value.
10242 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10248 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10249 ac_save_IFS
=$IFS; IFS
=','
10250 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10254 cat >>confdefs.h
<<_ACEOF
10255 #define PTRACE_TYPE_ARG3 $3
10258 if test -n "$5"; then
10260 cat >>confdefs.h
<<_ACEOF
10261 #define PTRACE_TYPE_ARG5 $5
10266 if test "$cross_compiling" = no
; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10268 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10269 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10270 $as_echo_n "(cached) " >&6
10272 if test "$cross_compiling" = yes; then :
10273 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
10275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10277 $ac_includes_default
10281 /* If this system has a BSD-style setpgrp which takes arguments,
10282 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10283 exit successfully. */
10284 return setpgrp (1,1) != -1;
10289 if ac_fn_c_try_run
"$LINENO"; then :
10290 ac_cv_func_setpgrp_void
=no
10292 ac_cv_func_setpgrp_void
=yes
10294 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10295 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10300 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10301 if test $ac_cv_func_setpgrp_void = yes; then
10303 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10309 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10310 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10311 $as_echo_n "(cached) " >&6
10313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10314 /* end confdefs.h. */
10316 #include <unistd.h>
10322 if (setpgrp(1,1) == -1)
10331 if ac_fn_c_try_compile
"$LINENO"; then :
10332 ac_cv_func_setpgrp_void
=no
10334 ac_cv_func_setpgrp_void
=yes
10336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10339 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10340 if test $ac_cv_func_setpgrp_void = yes; then
10341 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10346 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
10347 # since sigsetjmp might only be defined as a macro.
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
10349 $as_echo_n "checking for sigsetjmp... " >&6; }
10350 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
10351 $as_echo_n "(cached) " >&6
10353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10356 #include <setjmp.h>
10361 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
10366 if ac_fn_c_try_compile
"$LINENO"; then :
10367 gdb_cv_func_sigsetjmp
=yes
10369 gdb_cv_func_sigsetjmp
=no
10371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
10374 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
10375 if test $gdb_cv_func_sigsetjmp = yes; then
10377 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
10381 # Assume we'll default to using the included libiberty regex.
10382 gdb_use_included_regex
=yes
10384 # However, if the system regex is GNU regex, then default to *not*
10385 # using the included regex.
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
10387 $as_echo_n "checking for GNU regex... " >&6; }
10388 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
10389 $as_echo_n "(cached) " >&6
10391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10393 #include <gnu-versions.h>
10397 #define REGEX_INTERFACE_VERSION 1
10398 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
10399 # error "Version mismatch"
10405 if ac_fn_c_try_compile
"$LINENO"; then :
10406 gdb_cv_have_gnu_regex
=yes
10408 gdb_cv_have_gnu_regex
=no
10410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
10413 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
10414 if test $gdb_cv_have_gnu_regex = yes; then
10415 gdb_use_included_regex
=no
10419 # Check whether --with-included-regex was given.
10420 if test "${with_included_regex+set}" = set; then :
10421 withval
=$with_included_regex; gdb_with_regex
=$withval
10423 gdb_with_regex
=$gdb_use_included_regex
10426 if test "$gdb_with_regex" = yes; then
10428 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
10432 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
10433 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
10434 #include <sys/proc.h>
10437 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
10439 cat >>confdefs.h
<<_ACEOF
10440 #define HAVE_STRUCT_THREAD_TD_PCB 1
10447 # See if <sys/lwp.h> defines `struct lwp`.
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
10449 $as_echo_n "checking for struct lwp... " >&6; }
10450 if test "${gdb_cv_struct_lwp+set}" = set; then :
10451 $as_echo_n "(cached) " >&6
10453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10455 #include <sys/param.h>
10456 #include <sys/lwp.h>
10465 if ac_fn_c_try_compile
"$LINENO"; then :
10466 gdb_cv_struct_lwp
=yes
10468 gdb_cv_struct_lwp
=no
10470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
10473 $as_echo "$gdb_cv_struct_lwp" >&6; }
10474 if test $gdb_cv_struct_lwp = yes; then
10476 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
10480 # See if <machine/reg.h> degines `struct reg'.
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
10482 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
10483 if test "${gdb_cv_struct_reg+set}" = set; then :
10484 $as_echo_n "(cached) " >&6
10486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10488 #include <sys/types.h>
10489 #include <machine/reg.h>
10498 if ac_fn_c_try_compile
"$LINENO"; then :
10499 gdb_cv_struct_reg
=yes
10501 gdb_cv_struct_reg
=no
10503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
10506 $as_echo "$gdb_cv_struct_reg" >&6; }
10507 if test $gdb_cv_struct_reg = yes; then
10509 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
10513 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
10514 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
10515 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
10517 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
10519 cat >>confdefs.h
<<_ACEOF
10520 #define HAVE_STRUCT_REG_R_FS 1
10525 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
10527 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
10529 cat >>confdefs.h
<<_ACEOF
10530 #define HAVE_STRUCT_REG_R_GS 1
10537 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10539 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10540 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
10541 $as_echo_n "(cached) " >&6
10543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10545 #include <sys/ptrace.h>
10554 if ac_fn_c_try_compile
"$LINENO"; then :
10555 gdb_cv_have_ptrace_getregs
=yes
10557 gdb_cv_have_ptrace_getregs
=no
10559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
10563 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
10564 if test $gdb_cv_have_ptrace_getregs = yes; then
10566 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10570 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10572 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10573 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
10574 $as_echo_n "(cached) " >&6
10576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h. */
10578 #include <sys/ptrace.h>
10587 if ac_fn_c_try_compile
"$LINENO"; then :
10588 gdb_cv_have_ptrace_getfpxregs
=yes
10590 gdb_cv_have_ptrace_getfpxregs
=no
10592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
10596 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
10597 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
10599 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10603 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
10605 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
10606 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
10607 $as_echo_n "(cached) " >&6
10609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 #include <sys/types.h>
10612 #include <sys/ptrace.h>
10621 if ac_fn_c_try_compile
"$LINENO"; then :
10622 gdb_cv_have_pt_getdbregs
=yes
10624 gdb_cv_have_pt_getdbregs
=no
10626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
10630 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
10631 if test $gdb_cv_have_pt_getdbregs = yes; then
10633 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
10637 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
10639 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
10640 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
10641 $as_echo_n "(cached) " >&6
10643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645 #include <sys/types.h>
10646 #include <sys/ptrace.h>
10655 if ac_fn_c_try_compile
"$LINENO"; then :
10656 gdb_cv_have_pt_getxmmregs
=yes
10658 gdb_cv_have_pt_getxmmregs
=no
10660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
10664 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
10665 if test $gdb_cv_have_pt_getxmmregs = yes; then
10667 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
10671 # Detect which type of /proc is in use, such as for Unixware or Solaris.
10673 if test "${target}" = "${host}"; then
10675 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
10677 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10680 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
10682 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10686 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
10688 $as_echo "#define _KMEMUSER 1" >>confdefs.h
10694 if test "$ac_cv_header_sys_procfs_h" = yes; then
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
10696 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
10697 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
10698 $as_echo_n "(cached) " >&6
10700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10704 /* Needed for new procfs interface on sparc-solaris. */
10705 #define _STRUCTURED_PROC 1
10706 #include <sys/procfs.h>
10715 if ac_fn_c_try_compile
"$LINENO"; then :
10716 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
10718 bfd_cv_have_sys_procfs_type_pstatus_t
=no
10721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10724 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10726 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10730 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
10733 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
10734 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10741 /* Needed for new procfs interface on sparc-solaris. */
10742 #define _STRUCTURED_PROC 1
10743 #include <sys/procfs.h>
10752 if ac_fn_c_try_compile
"$LINENO"; then :
10753 bfd_cv_have_sys_procfs_type_prrun_t
=yes
10755 bfd_cv_have_sys_procfs_type_prrun_t
=no
10758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10761 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
10763 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
10767 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10770 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10771 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
10772 $as_echo_n "(cached) " >&6
10774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10778 /* Needed for new procfs interface on sparc-solaris. */
10779 #define _STRUCTURED_PROC 1
10780 #include <sys/procfs.h>
10789 if ac_fn_c_try_compile
"$LINENO"; then :
10790 bfd_cv_have_sys_procfs_type_gregset_t
=yes
10792 bfd_cv_have_sys_procfs_type_gregset_t
=no
10795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10798 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10800 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10804 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10807 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10808 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10815 /* Needed for new procfs interface on sparc-solaris. */
10816 #define _STRUCTURED_PROC 1
10817 #include <sys/procfs.h>
10826 if ac_fn_c_try_compile
"$LINENO"; then :
10827 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
10829 bfd_cv_have_sys_procfs_type_fpregset_t
=no
10832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10835 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10837 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10841 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10844 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10845 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
10846 $as_echo_n "(cached) " >&6
10848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10852 /* Needed for new procfs interface on sparc-solaris. */
10853 #define _STRUCTURED_PROC 1
10854 #include <sys/procfs.h>
10863 if ac_fn_c_try_compile
"$LINENO"; then :
10864 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
10866 bfd_cv_have_sys_procfs_type_prgregset_t
=no
10869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10872 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10874 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10878 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10881 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10882 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
10883 $as_echo_n "(cached) " >&6
10885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10889 /* Needed for new procfs interface on sparc-solaris. */
10890 #define _STRUCTURED_PROC 1
10891 #include <sys/procfs.h>
10900 if ac_fn_c_try_compile
"$LINENO"; then :
10901 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
10903 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
10906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10909 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10911 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10915 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10918 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10919 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
10920 $as_echo_n "(cached) " >&6
10922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10926 /* Needed for new procfs interface on sparc-solaris. */
10927 #define _STRUCTURED_PROC 1
10928 #include <sys/procfs.h>
10937 if ac_fn_c_try_compile
"$LINENO"; then :
10938 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
10940 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
10943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10946 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10948 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10952 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
10955 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
10956 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
10957 $as_echo_n "(cached) " >&6
10959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h. */
10963 /* Needed for new procfs interface on sparc-solaris. */
10964 #define _STRUCTURED_PROC 1
10965 #include <sys/procfs.h>
10969 prfpregset32_t avar
10974 if ac_fn_c_try_compile
"$LINENO"; then :
10975 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
10977 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
10980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10983 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
10985 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
10989 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10992 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10993 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
10994 $as_echo_n "(cached) " >&6
10996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
11000 /* Needed for new procfs interface on sparc-solaris. */
11001 #define _STRUCTURED_PROC 1
11002 #include <sys/procfs.h>
11011 if ac_fn_c_try_compile
"$LINENO"; then :
11012 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
11014 bfd_cv_have_sys_procfs_type_lwpid_t
=no
11017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11020 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11022 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11026 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11029 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11030 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11037 /* Needed for new procfs interface on sparc-solaris. */
11038 #define _STRUCTURED_PROC 1
11039 #include <sys/procfs.h>
11048 if ac_fn_c_try_compile
"$LINENO"; then :
11049 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
11051 bfd_cv_have_sys_procfs_type_psaddr_t
=no
11054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11057 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11059 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11063 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11066 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11067 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11074 /* Needed for new procfs interface on sparc-solaris. */
11075 #define _STRUCTURED_PROC 1
11076 #include <sys/procfs.h>
11085 if ac_fn_c_try_compile
"$LINENO"; then :
11086 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
11088 bfd_cv_have_sys_procfs_type_prsysent_t
=no
11091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11094 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11096 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11100 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11103 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11104 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11105 $as_echo_n "(cached) " >&6
11107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11111 /* Needed for new procfs interface on sparc-solaris. */
11112 #define _STRUCTURED_PROC 1
11113 #include <sys/procfs.h>
11122 if ac_fn_c_try_compile
"$LINENO"; then :
11123 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
11125 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
11128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11131 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11133 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11137 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11140 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11141 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11142 $as_echo_n "(cached) " >&6
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11148 /* Needed for new procfs interface on sparc-solaris. */
11149 #define _STRUCTURED_PROC 1
11150 #include <sys/procfs.h>
11154 pr_sigaction64_t avar
11159 if ac_fn_c_try_compile
"$LINENO"; then :
11160 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
11162 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
11165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11168 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11170 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11174 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11177 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11178 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11179 $as_echo_n "(cached) " >&6
11181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11185 /* Needed for new procfs interface on sparc-solaris. */
11186 #define _STRUCTURED_PROC 1
11187 #include <sys/procfs.h>
11191 pr_siginfo64_t avar
11196 if ac_fn_c_try_compile
"$LINENO"; then :
11197 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
11199 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
11202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11205 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
11207 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
11211 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
11217 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
11219 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
11220 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
11221 $as_echo_n "(cached) " >&6
11223 if test "$cross_compiling" = yes; then :
11224 gdb_cv_prfpregset_t_broken
=yes
11226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228 #include <sys/procfs.h>
11231 if (sizeof (prfpregset_t) == sizeof (void *))
11236 if ac_fn_c_try_run
"$LINENO"; then :
11237 gdb_cv_prfpregset_t_broken
=no
11239 gdb_cv_prfpregset_t_broken
=yes
11241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11242 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
11248 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
11249 if test $gdb_cv_prfpregset_t_broken = yes; then
11251 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
11258 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
11259 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
11260 $as_echo_n "(cached) " >&6
11262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h. */
11264 #include <unistd.h>
11265 #include <sys/types.h>
11266 #include <sys/procfs.h>
11273 dummy = ioctl(0, PIOCSET, &dummy);
11279 if ac_fn_c_try_compile
"$LINENO"; then :
11280 gdb_cv_have_procfs_piocset
=yes
11282 gdb_cv_have_procfs_piocset
=no
11284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
11288 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
11289 if test $gdb_cv_have_procfs_piocset = yes; then
11291 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
11296 if test ${host} = ${target} ; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
11299 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
11300 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
11301 $as_echo_n "(cached) " >&6
11303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11309 struct link_map lm; (void) lm.l_addr;
11314 if ac_fn_c_try_compile
"$LINENO"; then :
11315 gdb_cv_have_struct_link_map_with_l_members
=yes
11317 gdb_cv_have_struct_link_map_with_l_members
=no
11319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
11323 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
11324 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
11326 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
11332 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
11333 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
11334 $as_echo_n "(cached) " >&6
11336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11338 #include <sys/types.h>
11343 struct link_map lm; (void) lm.lm_addr;
11348 if ac_fn_c_try_compile
"$LINENO"; then :
11349 gdb_cv_have_struct_link_map_with_lm_members
=yes
11351 gdb_cv_have_struct_link_map_with_lm_members
=no
11353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
11357 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
11358 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
11360 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
11366 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
11367 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
11368 $as_echo_n "(cached) " >&6
11370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11372 #include <sys/types.h>
11373 #ifdef HAVE_NLIST_H
11380 struct so_map lm; (void) lm.som_addr;
11385 if ac_fn_c_try_compile
"$LINENO"; then :
11386 gdb_cv_have_struct_so_map_with_som_members
=yes
11388 gdb_cv_have_struct_so_map_with_som_members
=no
11390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
11394 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
11395 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
11397 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
11403 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
11404 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
11407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11410 #include <sys/link.h>
11414 struct link_map32 l;
11419 if ac_fn_c_try_compile
"$LINENO"; then :
11420 gdb_cv_have_struct_link_map32
=yes
11422 gdb_cv_have_struct_link_map32
=no
11424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
11428 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
11429 if test $gdb_cv_have_struct_link_map32 = yes; then
11431 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
11434 $as_echo "#define _SYSCALL32 1" >>confdefs.h
11439 # Check if the compiler supports the `long long' type.
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
11442 $as_echo_n "checking for long long support in compiler... " >&6; }
11443 if test "${gdb_cv_c_long_long+set}" = set; then :
11444 $as_echo_n "(cached) " >&6
11446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11447 /* end confdefs.h. */
11448 extern long long foo;
11452 switch (foo & 2) { case 0: return 1; }
11457 if ac_fn_c_try_compile
"$LINENO"; then :
11458 gdb_cv_c_long_long
=yes
11460 gdb_cv_c_long_long
=no
11462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
11465 $as_echo "$gdb_cv_c_long_long" >&6; }
11466 if test $gdb_cv_c_long_long = yes; then
11468 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
11472 # Check if the compiler and runtime support printing long longs.
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
11475 $as_echo_n "checking for long long support in printf... " >&6; }
11476 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
11477 $as_echo_n "(cached) " >&6
11479 if test "$cross_compiling" = yes; then :
11480 gdb_cv_printf_has_long_long
=no
11482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h. */
11484 $ac_includes_default
11490 l = (l << 16) + 0x0123;
11491 l = (l << 16) + 0x4567;
11492 l = (l << 16) + 0x89ab;
11493 l = (l << 16) + 0xcdef;
11494 sprintf (buf, "0x%016llx", l);
11495 return (strcmp ("0x0123456789abcdef", buf));
11500 if ac_fn_c_try_run
"$LINENO"; then :
11501 gdb_cv_printf_has_long_long
=yes
11503 gdb_cv_printf_has_long_long
=no
11505 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11506 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
11511 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
11512 if test $gdb_cv_printf_has_long_long = yes; then
11514 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
11518 # Check if the compiler and runtime support printing decfloats.
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
11521 $as_echo_n "checking for decfloat support in printf... " >&6; }
11522 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
11523 $as_echo_n "(cached) " >&6
11525 if test "$cross_compiling" = yes; then :
11526 gdb_cv_printf_has_decfloat
=no
11528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11530 $ac_includes_default
11535 _Decimal32 d32 = 1.2345df;
11536 _Decimal64 d64 = 1.2345dd;
11537 _Decimal128 d128 = 1.2345dl;
11538 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
11539 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
11544 if ac_fn_c_try_run
"$LINENO"; then :
11545 gdb_cv_printf_has_decfloat
=yes
11547 gdb_cv_printf_has_decfloat
=no
11549 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11550 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
11555 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
11556 if test $gdb_cv_printf_has_decfloat = yes; then
11558 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
11562 # Check if the compiler supports the `long double' type. We can't use
11563 # AC_C_LONG_DOUBLE because that one does additional checks on the
11564 # constants defined in <float.h> that fail on some systems,
11565 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
11568 $as_echo_n "checking for long double support in compiler... " >&6; }
11569 if test "${gdb_cv_c_long_double+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11576 if ac_fn_c_try_compile
"$LINENO"; then :
11577 gdb_cv_c_long_double
=yes
11579 gdb_cv_c_long_double
=no
11581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
11584 $as_echo "$gdb_cv_c_long_double" >&6; }
11585 if test $gdb_cv_c_long_double = yes; then
11587 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11591 # Check if the compiler and runtime support printing long doubles.
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
11594 $as_echo_n "checking for long double support in printf... " >&6; }
11595 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11598 if test "$cross_compiling" = yes; then :
11599 gdb_cv_printf_has_long_double
=no
11601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11603 $ac_includes_default
11608 long double f = 3.141592653;
11609 sprintf (buf, "%Lg", f);
11610 return (strncmp ("3.14159", buf, 7));
11615 if ac_fn_c_try_run
"$LINENO"; then :
11616 gdb_cv_printf_has_long_double
=yes
11618 gdb_cv_printf_has_long_double
=no
11620 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11621 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
11626 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
11627 if test $gdb_cv_printf_has_long_double = yes; then
11629 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
11633 # Check if the compiler and runtime support scanning long doubles.
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
11636 $as_echo_n "checking for long double support in scanf... " >&6; }
11637 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
11638 $as_echo_n "(cached) " >&6
11640 if test "$cross_compiling" = yes; then :
11641 gdb_cv_scanf_has_long_double
=no
11643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11649 char *buf = "3.141592653";
11651 sscanf (buf, "%Lg", &f);
11652 return !(f > 3.14159 && f < 3.14160);
11657 if ac_fn_c_try_run
"$LINENO"; then :
11658 gdb_cv_scanf_has_long_double
=yes
11660 gdb_cv_scanf_has_long_double
=no
11662 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11663 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
11668 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
11669 if test $gdb_cv_scanf_has_long_double = yes; then
11671 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11678 $as_echo_n "checking for -bbigtoc option... " >&6; }
11679 if test "${gdb_cv_bigtoc+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
11683 SAVE_LDFLAGS
=$LDFLAGS
11686 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11687 *) gdb_cv_bigtoc
=-bbigtoc ;;
11690 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11702 if ac_fn_c_try_link
"$LINENO"; then :
11707 rm -f core conftest.err conftest.
$ac_objext \
11708 conftest
$ac_exeext conftest.
$ac_ext
11709 LDFLAGS
="${SAVE_LDFLAGS}"
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11713 $as_echo "$gdb_cv_bigtoc" >&6; }
11714 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
11719 $as_echo_n "checking for the dynamic export flag... " >&6; }
11721 if test "${gdb_native}" = yes; then
11722 # The dynamically loaded libthread_db needs access to symbols in the gdb
11723 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
11724 # may not be supported there.
11725 old_LDFLAGS
="$LDFLAGS"
11726 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
11727 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
11728 LDFLAGS
="$LDFLAGS $RDYNAMIC"
11729 if test "${have_libpython}" = no
; then
11730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11741 if ac_fn_c_try_link
"$LINENO"; then :
11744 rm -f core conftest.err conftest.
$ac_objext \
11745 conftest
$ac_exeext conftest.
$ac_ext
11747 # Workaround http://bugs.python.org/issue4434 where static
11748 # libpythonX.Y.a would get its symbols required for
11749 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
11750 # Problem does not happen for the recommended libpythonX.Y.so linkage.
11751 old_CFLAGS
="$CFLAGS"
11752 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
11753 if test "$cross_compiling" = yes; then :
11756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h. */
11758 #include "${have_libpython}/Python.h"
11764 err = PyRun_SimpleString ("import itertools\n");
11766 return err == 0 ? 0 : 1;
11771 if ac_fn_c_try_run
"$LINENO"; then :
11774 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11775 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11778 CFLAGS
="$old_CFLAGS"
11780 LDFLAGS
="$old_LDFLAGS"
11782 if $dynamic_list; then
11783 found
="-Wl,--dynamic-list"
11784 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
11787 RDYNAMIC
="-rdynamic"
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
11791 $as_echo "$found" >&6; }
11794 if test ${build} = ${host} -a ${host} = ${target} ; then
11797 # See if thread_db library is around for Solaris thread debugging.
11798 # Note that we must explicitly test for version 1 of the library
11799 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
11802 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
11803 if test -f /usr
/lib
/libthread_db.so
.1 ; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11805 $as_echo "yes" >&6; }
11807 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
11809 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
11810 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11813 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11814 $as_echo_n "(cached) " >&6
11816 ac_check_lib_save_LIBS
=$LIBS
11818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11821 /* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11836 if ac_fn_c_try_link
"$LINENO"; then :
11837 ac_cv_lib_dl_dlopen
=yes
11839 ac_cv_lib_dl_dlopen
=no
11841 rm -f core conftest.err conftest.
$ac_objext \
11842 conftest
$ac_exeext conftest.
$ac_ext
11843 LIBS
=$ac_check_lib_save_LIBS
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11847 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11848 cat >>confdefs.h
<<_ACEOF
11849 #define HAVE_LIBDL 1
11856 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
11857 # Sun randomly tweaked the prototypes in <proc_service.h>
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
11860 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
11861 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11868 #include <proc_service.h>
11869 ps_err_e ps_pdwrite
11870 (struct ps_prochandle*, psaddr_t, const void*, size_t);
11880 if ac_fn_c_try_compile
"$LINENO"; then :
11881 gdb_cv_proc_service_is_old
=no
11883 gdb_cv_proc_service_is_old
=yes
11885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
11890 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
11891 if test $gdb_cv_proc_service_is_old = yes; then
11893 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
11903 $as_echo_n "checking for AiX thread debugging library... " >&6; }
11904 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
11905 $as_echo_n "(cached) " >&6
11907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h. */
11909 #include <sys/pthdebug.h>
11913 #ifndef PTHDB_VERSION_3
11920 if ac_fn_c_try_compile
"$LINENO"; then :
11921 gdb_cv_have_aix_thread_debug
=yes
11923 gdb_cv_have_aix_thread_debug
=no
11925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
11929 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
11930 if test $gdb_cv_have_aix_thread_debug = yes; then
11931 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
11932 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
11933 LIBS
="$LIBS -lpthdebug"
11935 # Older versions of AIX do not provide the declaration for
11936 # the getthrds function (it appears that it was introduced
11938 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
11940 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
11946 cat >>confdefs.h
<<_ACEOF
11947 #define HAVE_DECL_GETTHRDS $ac_have_decl
11956 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
11958 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
11959 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
11960 $as_echo_n "(cached) " >&6
11962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11964 #include <thread_db.h>
11968 int i = TD_NOTALLOC;
11973 if ac_fn_c_try_compile
"$LINENO"; then :
11974 gdb_cv_thread_db_h_has_td_notalloc
=yes
11976 gdb_cv_thread_db_h_has_td_notalloc
=no
11979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
11983 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
11985 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
11986 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
11987 $as_echo_n "(cached) " >&6
11989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
11991 #include <thread_db.h>
11995 int i = TD_VERSION;
12000 if ac_fn_c_try_compile
"$LINENO"; then :
12001 gdb_cv_thread_db_h_has_td_version
=yes
12003 gdb_cv_thread_db_h_has_td_version
=no
12006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12010 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12012 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12013 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12018 #include <thread_db.h>
12027 if ac_fn_c_try_compile
"$LINENO"; then :
12028 gdb_cv_thread_db_h_has_td_notls
=yes
12030 gdb_cv_thread_db_h_has_td_notls
=no
12033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12037 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12039 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12041 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12044 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12046 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12049 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12051 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12055 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12057 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12058 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12059 $as_echo_n "(cached) " >&6
12061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12063 #include <sys/syscall.h>
12067 int i = __NR_tkill;
12072 if ac_fn_c_try_compile
"$LINENO"; then :
12073 gdb_cv_sys_syscall_h_has_tkill
=yes
12075 gdb_cv_sys_syscall_h_has_tkill
=no
12078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12082 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12084 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12086 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12090 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12092 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
12098 cat >>confdefs.h
<<_ACEOF
12099 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12103 if test "$cross_compiling" = yes; then :
12104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106 #include <sys/personality.h>
12111 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12112 # define ADDR_NO_RANDOMIZE 0x0040000
12114 /* Test the flag could be set and stays set. */
12115 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12116 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12122 if ac_fn_c_try_link
"$LINENO"; then :
12123 have_personality
=true
12125 have_personality
=false
12127 rm -f core conftest.err conftest.
$ac_objext \
12128 conftest
$ac_exeext conftest.
$ac_ext
12130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12132 #include <sys/personality.h>
12137 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12138 # define ADDR_NO_RANDOMIZE 0x0040000
12140 /* Test the flag could be set and stays set. */
12141 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12142 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12148 if ac_fn_c_try_run
"$LINENO"; then :
12149 have_personality
=true
12151 have_personality
=false
12153 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12154 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12157 if $have_personality
12160 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12165 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12166 # except that the argument to --with-sysroot is optional.
12167 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12168 if test "x$with_sysroot" = xyes
; then
12169 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
12172 # Check whether --with-sysroot was given.
12173 if test "${with_sysroot+set}" = set; then :
12174 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
12176 TARGET_SYSTEM_ROOT
=
12180 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
12181 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12182 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
12183 ac_define_dir
=`eval echo $ac_define_dir`
12185 cat >>confdefs.h
<<_ACEOF
12186 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12192 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12193 if test "x$prefix" = xNONE
; then
12194 test_prefix
=/usr
/local
12196 test_prefix
=$prefix
12199 test_prefix
=$exec_prefix
12202 case ${ac_define_dir} in
12203 "${test_prefix}"|
"${test_prefix}/"*|\
12204 '${exec_prefix}'|
'${exec_prefix}/'*)
12209 cat >>confdefs.h
<<_ACEOF
12210 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12217 # Check whether --with-system-gdbinit was given.
12218 if test "${with_system_gdbinit+set}" = set; then :
12219 withval
=$with_system_gdbinit;
12220 SYSTEM_GDBINIT
=$withval
12226 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
12227 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12228 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
12229 ac_define_dir
=`eval echo $ac_define_dir`
12231 cat >>confdefs.h
<<_ACEOF
12232 #define SYSTEM_GDBINIT "$ac_define_dir"
12238 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12239 if test "x$prefix" = xNONE
; then
12240 test_prefix
=/usr
/local
12242 test_prefix
=$prefix
12245 test_prefix
=$exec_prefix
12248 case ${ac_define_dir} in
12249 "${test_prefix}"|
"${test_prefix}/"*|\
12250 '${exec_prefix}'|
'${exec_prefix}/'*)
12255 cat >>confdefs.h
<<_ACEOF
12256 #define SYSTEM_GDBINIT_RELOCATABLE $value
12262 # Check whether --enable-werror was given.
12263 if test "${enable_werror+set}" = set; then :
12264 enableval
=$enable_werror; case "${enableval}" in
12265 yes | y
) ERROR_ON_WARNING
="yes" ;;
12266 no | n
) ERROR_ON_WARNING
="no" ;;
12267 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12272 # Enable -Werror by default when using gcc
12273 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12274 ERROR_ON_WARNING
=yes
12278 if test "${ERROR_ON_WARNING}" = yes ; then
12279 WERROR_CFLAGS
="-Werror"
12282 # The entries after -Wno-pointer-sign are disabled warnings which may
12283 # be enabled in the future, which can not currently be used to build
12285 # NOTE: If you change this list, remember to update
12286 # gdb/doc/gdbint.texinfo.
12287 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12288 -Wformat-nonliteral -Wno-pointer-sign \
12289 -Wno-unused -Wunused-value -Wunused-function \
12290 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
12292 # Enable -Wno-format by default when using gcc on mingw since many
12293 # GCC versions complain about %I64.
12295 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
12298 # Check whether --enable-build-warnings was given.
12299 if test "${enable_build_warnings+set}" = set; then :
12300 enableval
=$enable_build_warnings; case "${enableval}" in
12302 no
) build_warnings
="-w";;
12303 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12304 build_warnings
="${build_warnings} ${t}";;
12305 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12306 build_warnings
="${t} ${build_warnings}";;
12307 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12309 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
12310 echo "Setting compiler warning flags = $build_warnings" 6>&1
12313 # Check whether --enable-gdb-build-warnings was given.
12314 if test "${enable_gdb_build_warnings+set}" = set; then :
12315 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
12317 no
) build_warnings
="-w";;
12318 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12319 build_warnings
="${build_warnings} ${t}";;
12320 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12321 build_warnings
="${t} ${build_warnings}";;
12322 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12324 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
12325 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12329 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12332 $as_echo_n "checking compiler warning flags... " >&6; }
12333 # Separate out the -Werror flag as some files just cannot be
12334 # compiled with it enabled.
12335 for w
in ${build_warnings}; do
12337 -Werr*) WERROR_CFLAGS
=-Werror ;;
12338 *) # Check that GCC accepts it
12339 saved_CFLAGS
="$CFLAGS"
12340 CFLAGS
="$CFLAGS $w"
12341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12352 if ac_fn_c_try_compile
"$LINENO"; then :
12353 WARN_CFLAGS
="${WARN_CFLAGS} $w"
12355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12356 CFLAGS
="$saved_CFLAGS"
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12360 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12365 # In the Cygwin environment, we need some additional flags.
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
12367 $as_echo_n "checking
for cygwin...
" >&6; }
12368 if test "${gdb_cv_os_cygwin+set}" = set; then :
12369 $as_echo_n "(cached
) " >&6
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12374 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
12378 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12379 $EGREP "lose
" >/dev/null 2>&1; then :
12380 gdb_cv_os_cygwin=yes
12382 gdb_cv_os_cygwin=no
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
12388 $as_echo "$gdb_cv_os_cygwin" >&6; }
12391 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
12393 *go32* ) SER_HARDWIRE=ser-go32.o ;;
12394 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
12395 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
12399 # libreadline needs libuser32.a in a cygwin environment
12401 if test x$gdb_cv_os_cygwin = xyes; then
12402 WIN32LIBS="-luser32"
12403 case "${target}" in
12404 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
12409 # The ser-tcp.c module requires sockets.
12413 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12415 WIN32LIBS
="$WIN32LIBS -lws2_32"
12420 # Add ELF support to GDB, but only if BFD includes ELF support.
12422 OLD_LDFLAGS
=$LDFLAGS
12424 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12425 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12426 # always want our bfd.
12427 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12428 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
12429 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12430 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12431 if test "$plugins" = "yes"; then
12434 LIBS
="-lbfd -liberty $intl $LIBS"
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
12436 $as_echo_n "checking for ELF support in BFD... " >&6; }
12437 if test "${gdb_cv_var_elf+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442 #include <stdlib.h>
12444 #include "elf-bfd.h"
12449 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
12454 if ac_fn_c_try_link
"$LINENO"; then :
12459 rm -f core conftest.err conftest.
$ac_objext \
12460 conftest
$ac_exeext conftest.
$ac_ext
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
12463 $as_echo "$gdb_cv_var_elf" >&6; }
12464 if test $gdb_cv_var_elf = yes; then
12465 CONFIG_OBS
="$CONFIG_OBS elfread.o"
12467 $as_echo "#define HAVE_ELF 1" >>confdefs.h
12469 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12470 if test "$plugins" = "yes"; then
12471 OLD_LIBS
="-ldl $OLD_LIBS"
12475 LDFLAGS
=$OLD_LDFLAGS
12478 # Add any host-specific objects to GDB.
12479 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
12481 LIBGUI
="../libgui/src/libgui.a"
12482 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
12491 *-*-cygwin* |
*-*-mingw* )
12500 if test "${enable_gdbtk}" = "yes"; then
12502 # Gdbtk must have an absolute path to srcdir in order to run
12503 # properly when not installed.
12506 GDBTK_SRC_DIR
=`pwd`
12511 # Ok, lets find the tcl configuration
12512 # First, look for one uninstalled.
12513 # the alternative search directory is invoked by --with-tcl
12516 if test x
"${no_tcl}" = x
; then
12517 # we reset no_tcl in case something fails here
12520 # Check whether --with-tcl was given.
12521 if test "${with_tcl+set}" = set; then :
12522 withval
=$with_tcl; with_tclconfig
=${withval}
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12526 $as_echo_n "checking for Tcl configuration... " >&6; }
12527 if test "${ac_cv_c_tclconfig+set}" = set; then :
12528 $as_echo_n "(cached) " >&6
12532 # First check to see if --with-tcl was specified.
12534 *-*-cygwin*) platDir
="win" ;;
12535 *) platDir
="unix" ;;
12537 if test x
"${with_tclconfig}" != x
; then
12538 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12539 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
12541 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12545 # then check for a private Tcl installation
12546 if test x
"${ac_cv_c_tclconfig}" = x
; then
12549 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12550 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12551 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12553 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12554 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12555 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12557 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12558 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12559 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
12560 if test -f "$i/$platDir/tclConfig.sh" ; then
12561 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
12567 # on Darwin, check in Framework installation locations
12568 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
12569 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
12570 `ls -d /Library/Frameworks 2>/dev/null` \
12571 `ls -d /Network/Library/Frameworks 2>/dev/null` \
12572 `ls -d /System/Library/Frameworks 2>/dev/null` \
12574 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
12575 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
12581 # check in a few common install locations
12582 if test x
"${ac_cv_c_tclconfig}" = x
; then
12583 for i
in `ls -d ${libdir} 2>/dev/null` \
12584 `ls -d ${exec_prefix}/lib 2>/dev/null` \
12585 `ls -d ${prefix}/lib 2>/dev/null` \
12586 `ls -d /usr/local/lib 2>/dev/null` \
12587 `ls -d /usr/contrib/lib 2>/dev/null` \
12588 `ls -d /usr/lib 2>/dev/null` \
12590 if test -f "$i/tclConfig.sh" ; then
12591 ac_cv_c_tclconfig
=`(cd $i; pwd)`
12597 # check in a few other private locations
12598 if test x
"${ac_cv_c_tclconfig}" = x
; then
12601 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12602 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12603 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
12604 if test -f "$i/$platDir/tclConfig.sh" ; then
12605 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
12614 if test x
"${ac_cv_c_tclconfig}" = x
; then
12615 TCL_BIN_DIR
="# no Tcl configs found"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
12617 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12620 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
12622 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12627 # If $no_tk is nonempty, then we can't do Tk, and there is no
12628 # point to doing Tcl.
12631 # Ok, lets find the tk configuration
12632 # First, look for one uninstalled.
12633 # the alternative search directory is invoked by --with-tk
12636 if test x
"${no_tk}" = x
; then
12637 # we reset no_tk in case something fails here
12640 # Check whether --with-tk was given.
12641 if test "${with_tk+set}" = set; then :
12642 withval
=$with_tk; with_tkconfig
=${withval}
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
12646 $as_echo_n "checking for Tk configuration... " >&6; }
12647 if test "${ac_cv_c_tkconfig+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12652 # First check to see if --with-tkconfig was specified.
12653 if test x
"${with_tkconfig}" != x
; then
12654 if test -f "${with_tkconfig}/tkConfig.sh" ; then
12655 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
12657 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
12661 # then check for a private Tk library
12663 *-*-cygwin*) platDir
="win" ;;
12664 *) platDir
="unix" ;;
12666 if test x
"${ac_cv_c_tkconfig}" = x
; then
12669 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12670 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
12671 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
12673 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12674 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
12675 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
12677 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12678 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
12679 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
12680 if test -f "$i/$platDir/tkConfig.sh" ; then
12681 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
12687 # on Darwin, check in Framework installation locations
12688 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
12689 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
12690 `ls -d /Library/Frameworks 2>/dev/null` \
12691 `ls -d /Network/Library/Frameworks 2>/dev/null` \
12692 `ls -d /System/Library/Frameworks 2>/dev/null` \
12694 if test -f "$i/Tk.framework/tkConfig.sh" ; then
12695 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
12701 # check in a few common install locations
12702 if test x
"${ac_cv_c_tkconfig}" = x
; then
12703 for i
in `ls -d ${libdir} 2>/dev/null` \
12704 `ls -d ${exec_prefix}/lib 2>/dev/null` \
12705 `ls -d ${prefix}/lib 2>/dev/null` \
12706 `ls -d /usr/local/lib 2>/dev/null` \
12707 `ls -d /usr/contrib/lib 2>/dev/null` \
12708 `ls -d /usr/lib 2>/dev/null` \
12710 if test -f "$i/tkConfig.sh" ; then
12711 ac_cv_c_tkconfig
=`(cd $i; pwd)`
12716 # check in a few other private locations
12717 if test x
"${ac_cv_c_tkconfig}" = x
; then
12720 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12721 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
12722 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
12723 if test -f "$i/$platDir/tkConfig.sh" ; then
12724 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
12733 if test x
"${ac_cv_c_tkconfig}" = x
; then
12734 TK_BIN_DIR
="# no Tk configs found"
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
12736 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
12739 TK_BIN_DIR
=${ac_cv_c_tkconfig}
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
12741 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
12746 if test -z "${no_tcl}" -a -z "${no_tk}"; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
12749 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
12751 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12753 $as_echo "loading" >&6; }
12754 .
${TCL_BIN_DIR}/tclConfig.sh
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
12757 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12760 # eval is required to do the TCL_DBGX substitution
12761 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12762 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12764 # If the TCL_BIN_DIR is the build directory (not the install directory),
12765 # then set the common variable name to the value of the build variables.
12766 # For example, the variable TCL_LIB_SPEC will be set to the value
12767 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12768 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12769 # installed and uninstalled version of Tcl.
12770 if test -f "${TCL_BIN_DIR}/Makefile" ; then
12771 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
12772 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
12773 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
12774 elif test "`uname -s`" = "Darwin"; then
12775 # If Tcl was built as a framework, attempt to use the libraries
12776 # from the framework at the given location so that linking works
12777 # against Tcl.framework installed in an arbitary location.
12778 case ${TCL_DEFS} in
12780 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
12781 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
12782 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
12783 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
12784 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
12789 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
12790 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
12791 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
12797 # eval is required to do the TCL_DBGX substitution
12798 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12799 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12800 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12801 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12817 # Check for in-tree tcl
12824 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
12828 # Find Tcl private headers
12829 if test x
"${intree}" = xno
; then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
12832 $as_echo_n "checking for Tcl private headers... " >&6; }
12834 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
12835 if test -f ${dir}/tclInt.h
; then
12839 if test x
"${private_dir}" = x
; then
12840 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
12842 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
12844 $as_echo "${private_dir}" >&6; }
12847 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
12848 TCL_LIBRARY
="${TCL_LIB_SPEC}"
12851 # If building tcl in the same src tree, private headers
12852 # are not needed, but we need to be sure to use the right
12854 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
12855 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
12856 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
12864 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
12866 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12868 $as_echo "loading" >&6; }
12869 .
${TK_BIN_DIR}/tkConfig.sh
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
12872 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
12875 # eval is required to do the TK_DBGX substitution
12876 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
12877 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
12879 # If the TK_BIN_DIR is the build directory (not the install directory),
12880 # then set the common variable name to the value of the build variables.
12881 # For example, the variable TK_LIB_SPEC will be set to the value
12882 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
12883 # instead of TK_BUILD_LIB_SPEC since it will work with both an
12884 # installed and uninstalled version of Tcl.
12885 if test -f "${TK_BIN_DIR}/Makefile" ; then
12886 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
12887 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
12888 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
12889 elif test "`uname -s`" = "Darwin"; then
12890 # If Tk was built as a framework, attempt to use the libraries
12891 # from the framework at the given location so that linking works
12892 # against Tk.framework installed in an arbitary location.
12895 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
12896 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
12897 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
12898 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
12899 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
12904 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
12905 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
12906 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
12912 # eval is required to do the TK_DBGX substitution
12913 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
12914 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
12915 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
12916 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
12931 # Check for in-tree Tk
12933 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
12937 # Find Tk private headers
12938 if test x
"${intree}" = xno
; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
12941 $as_echo_n "checking for Tk private headers... " >&6; }
12943 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
12944 if test -f ${dir}/tkInt.h
; then
12948 if test x
"${private_dir}" = x
; then
12949 as_fn_error
"could not find Tk private headers" "$LINENO" 5
12951 TK_PRIVATE_INCLUDE
="-I${private_dir}"
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
12953 $as_echo "${private_dir}" >&6; }
12956 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
12957 TK_LIBRARY
=${TK_LIB_SPEC}
12960 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
12961 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
12962 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
12969 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
12971 # Include some libraries that Tcl and Tk want.
12972 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
12973 # Yes, the ordering seems wrong here. But it isn't.
12974 # TK_LIBS is the list of libraries that need to be linked
12975 # after Tcl/Tk. Note that this isn't put into LIBS. If it
12976 # were in LIBS then any link tests after this point would
12977 # try to include things like `$(LIBGUI)', which wouldn't work.
12978 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
12980 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
12981 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
12982 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
12983 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
12984 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
12985 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
12986 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
12988 if test x
$gdb_cv_os_cygwin = xyes
; then
12989 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
12990 WIN32LDAPP
="-Wl,--subsystem,console"
12991 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
12994 subdirs
="$subdirs gdbtk"
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13007 $as_echo_n "checking for X... " >&6; }
13010 # Check whether --with-x was given.
13011 if test "${with_x+set}" = set; then :
13015 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13016 if test "x$with_x" = xno
; then
13017 # The user explicitly disabled X.
13020 case $x_includes,$x_libraries in #(
13021 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
13022 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
13023 $as_echo_n "(cached) " >&6
13025 # One or both of the vars are not set, and there is no cached value.
13026 ac_x_includes
=no ac_x_libraries
=no
13027 rm -f -r conftest.dir
13028 if mkdir conftest.dir
; then
13030 cat >Imakefile
<<'_ACEOF'
13032 @echo incroot='${INCROOT}'
13034 @echo usrlibdir='${USRLIBDIR}'
13036 @echo libdir='${LIBDIR}'
13038 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
13039 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13040 for ac_var
in incroot usrlibdir libdir
; do
13041 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13043 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13044 for ac_extension
in a so sl dylib la dll
; do
13045 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13046 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13047 ac_im_usrlibdir
=$ac_im_libdir; break
13050 # Screen out bogus values from the imake configuration. They are
13051 # bogus both because they are the default anyway, and because
13052 # using them would break gcc on systems where it needs fixed includes.
13053 case $ac_im_incroot in
13054 /usr
/include
) ac_x_includes
= ;;
13055 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
13057 case $ac_im_usrlibdir in
13058 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
13059 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
13063 rm -f -r conftest.dir
13066 # Standard set of common directories for X headers.
13067 # Check X11 before X11Rn because it is often a symlink to the current release.
13081 /usr/local/X11/include
13082 /usr/local/X11R7/include
13083 /usr/local/X11R6/include
13084 /usr/local/X11R5/include
13085 /usr/local/X11R4/include
13087 /usr/local/include/X11
13088 /usr/local/include/X11R7
13089 /usr/local/include/X11R6
13090 /usr/local/include/X11R5
13091 /usr/local/include/X11R4
13095 /usr/XFree86/include/X11
13099 /usr/unsupported/include
13100 /usr/athena/include
13101 /usr/local/x11r5/include
13102 /usr/lpp/Xamples/include
13104 /usr/openwin/include
13105 /usr/openwin/share/include'
13107 if test "$ac_x_includes" = no
; then
13108 # Guess where to find include files, by looking for Xlib.h.
13109 # First, try using that file with no special directory specified.
13110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112 #include <X11/Xlib.h>
13114 if ac_fn_c_try_cpp
"$LINENO"; then :
13115 # We can compile using X headers with no special include directory.
13118 for ac_dir
in $ac_x_header_dirs; do
13119 if test -r "$ac_dir/X11/Xlib.h"; then
13120 ac_x_includes
=$ac_dir
13125 rm -f conftest.err conftest.
$ac_ext
13126 fi # $ac_x_includes = no
13128 if test "$ac_x_libraries" = no
; then
13129 # Check for the libraries.
13130 # See if we find them without any special options.
13131 # Don't add to $LIBS permanently.
13134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136 #include <X11/Xlib.h>
13145 if ac_fn_c_try_link
"$LINENO"; then :
13147 # We can link X programs with no special library path.
13151 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13153 # Don't even attempt the hair of trying to link an X program!
13154 for ac_extension
in a so sl dylib la dll
; do
13155 if test -r "$ac_dir/libX11.$ac_extension"; then
13156 ac_x_libraries
=$ac_dir
13162 rm -f core conftest.err conftest.
$ac_objext \
13163 conftest
$ac_exeext conftest.
$ac_ext
13164 fi # $ac_x_libraries = no
13166 case $ac_x_includes,$ac_x_libraries in #(
13167 no
,* |
*,no |
*\'*)
13168 # Didn't find X, or a directory has "'" in its name.
13169 ac_cv_have_x
="have_x=no";; #(
13171 # Record where we found X for the cache.
13172 ac_cv_have_x
="have_x=yes\
13173 ac_x_includes='$ac_x_includes'\
13174 ac_x_libraries='$ac_x_libraries'"
13180 eval "$ac_cv_have_x"
13183 if test "$have_x" != yes; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13185 $as_echo "$have_x" >&6; }
13188 # If each of the values was on the command line, it overrides each guess.
13189 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
13190 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
13191 # Update the cache value to reflect the command line values.
13192 ac_cv_have_x
="have_x=yes\
13193 ac_x_includes='$x_includes'\
13194 ac_x_libraries='$x_libraries'"
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13196 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13200 # Unlike the sim directory, whether a simulator is linked is controlled by
13201 # presence of a gdb_sim definition in the target configure.tgt entry.
13202 # This code just checks for a few cases where we'd like to ignore those
13203 # definitions, even when they're present in the '.mt' file. These cases
13204 # are when --disable-sim is specified, or if the simulator directory is
13205 # not part of the source tree.
13207 # Check whether --enable-sim was given.
13208 if test "${enable_sim+set}" = set; then :
13209 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
13210 echo "enableval = ${enableval}";
13211 case "${enableval}" in
13212 yes) ignore_sim
=false
;;
13213 no
) ignore_sim
=true
;;
13214 *) ignore_sim
=false
;;
13221 if test ! -d "${srcdir}/../sim"; then
13227 if test "${ignore_sim}" = "false"; then
13228 if test x
"${gdb_sim}" != x
; then
13230 SIM_OBS
="remote-sim.o"
13232 $as_echo "#define WITH_SIM 1" >>confdefs.h
13250 # List of host floatformats.
13252 cat >>confdefs.h
<<_ACEOF
13253 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
13257 cat >>confdefs.h
<<_ACEOF
13258 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
13262 cat >>confdefs.h
<<_ACEOF
13263 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
13267 # target_subdir is used by the testsuite to find the target libraries.
13269 if test "${host}" != "${target}"; then
13270 target_subdir
="${target_alias}/"
13275 if test "${gdb_native}" = "yes"; then
13276 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
13277 if test ! -f ${host_makefile_frag}; then
13278 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
13280 frags
="$frags $host_makefile_frag"
13282 host_makefile_frag
=/dev
/null
13288 if test "${gdb_native}" = "yes"; then
13289 # We pick this up from the host configuration file (.mh) because we
13290 # do not have a native configuration Makefile fragment.
13291 nativefile
=`sed -n '
13292 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
13293 ' ${host_makefile_frag}`
13297 if test x
"${gdb_osabi}" != x
; then
13299 cat >>confdefs.h
<<_ACEOF
13300 #define GDB_OSABI_DEFAULT $gdb_osabi
13305 # Enable multi-ice-gdb-server.
13306 # Check whether --enable-multi-ice was given.
13307 if test "${enable_multi_ice+set}" = set; then :
13308 enableval
=$enable_multi_ice; case $enableval in
13311 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
13315 if test "x$enable_multi_ice" = xyes
; then
13316 subdirs
="$subdirs multi-ice"
13320 # Check whether --enable-gdbserver was given.
13321 if test "${enable_gdbserver+set}" = set; then :
13322 enableval
=$enable_gdbserver; case "${enableval}" in
13324 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
13327 enable_gdbserver
=auto
13331 # We only build gdbserver automatically in a native configuration, and
13332 # only if the user did not explicitly disable its build.
13333 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
13335 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
13336 if test "x$build_gdbserver" = xyes
; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13338 $as_echo "yes" >&6; }
13339 subdirs
="$subdirs gdbserver"
13341 gdbserver_build_enabled
=yes
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344 $as_echo "no" >&6; }
13348 # If the user explicitly request the gdbserver to be built, verify that
13349 # we were in fact able to enable it.
13350 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
13351 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
13354 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
13355 # to an empty version.
13361 if test "${nativefile}" != ""; then
13362 case "${nativefile}" in
13363 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
13364 * ) GDB_NM_FILE
="${nativefile}"
13366 files
="${files} ${GDB_NM_FILE}"
13367 links
="${links} nm.h"
13369 cat >>confdefs.h
<<_ACEOF
13370 #define GDB_NM_FILE "${GDB_NM_FILE}"
13376 ac_sources
="$files"
13378 while test -n "$ac_sources"; do
13379 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
13380 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
13381 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
13383 ac_config_links
="$ac_config_links $ac_config_links_1"
13389 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
13392 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
13394 ac_config_commands
="$ac_config_commands default"
13396 cat >confcache
<<\_ACEOF
13397 # This file is a shell script that caches the results of configure
13398 # tests run on this system so they can be shared between configure
13399 # scripts and configure runs, see configure's option --config-cache.
13400 # It is not useful on other systems. If it contains results you don't
13401 # want to keep, you may remove or edit it.
13403 # config.status only pays attention to the cache file if you give it
13404 # the --recheck option to rerun configure.
13406 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13407 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13408 # following values.
13412 # The following way of writing the cache mishandles newlines in values,
13413 # but we know of no workaround that is simple, portable, and efficient.
13414 # So, we kill variables containing newlines.
13415 # Ultrix sh set writes to stderr and can't be redirected directly,
13416 # and sets the high bit in the cache file unless we assign to the vars.
13418 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13419 eval ac_val
=\$
$ac_var
13423 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13424 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13427 _ | IFS | as_nl
) ;; #(
13428 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13429 *) { eval $ac_var=; unset $ac_var;} ;;
13435 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13436 *${as_nl}ac_space
=\
*)
13437 # `set' does not quote correctly, so add quotes: double-quote
13438 # substitution turns \\\\ into \\, and sed turns \\ into \.
13441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13444 # `set' quotes correctly as required by POSIX, so do not add quotes.
13445 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13454 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13456 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13458 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13459 if test -w "$cache_file"; then
13460 test "x$cache_file" != "x/dev/null" &&
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13462 $as_echo "$as_me: updating cache $cache_file" >&6;}
13463 cat confcache
>$cache_file
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13466 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13471 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13472 # Let make expand exec_prefix.
13473 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13475 DEFS
=-DHAVE_CONFIG_H
13479 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13480 # 1. Remove the extension, and $U if already installed.
13481 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13482 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13483 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13484 # will be set to the directory where LIBOBJS objects are built.
13485 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13486 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13488 LIBOBJS
=$ac_libobjs
13490 LTLIBOBJS
=$ac_ltlibobjs
13493 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13494 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
13495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13497 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
13498 as_fn_error
"conditional \"GMAKE\" was never defined.
13499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13503 : ${CONFIG_STATUS=./config.status}
13505 ac_clean_files_save
=$ac_clean_files
13506 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13508 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13510 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13512 # Generated by $as_me.
13513 # Run this file to recreate the current configuration.
13514 # Compiler output produced by configure, useful for debugging
13515 # configure, is in config.log if it exists.
13518 ac_cs_recheck=false
13521 SHELL=\${CONFIG_SHELL-$SHELL}
13524 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
13525 ## -------------------- ##
13526 ## M4sh Initialization. ##
13527 ## -------------------- ##
13529 # Be more Bourne compatible
13530 DUALCASE
=1; export DUALCASE
# for MKS sh
13531 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13534 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13535 # is contrary to our usage. Disable this feature.
13536 alias -g '${1+"$@"}'='"$@"'
13537 setopt NO_GLOB_SUBST
13539 case `(set -o) 2>/dev/null` in #(
13551 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13552 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13553 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13555 # Prefer a ksh shell builtin over an external printf program on Solaris,
13556 # but without wasting forks for bash or zsh.
13557 if test -z "$BASH_VERSION$ZSH_VERSION" \
13558 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13559 as_echo='print
-r --'
13560 as_echo_n='print
-rn --'
13561 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13562 as_echo='printf %s
\n'
13563 as_echo_n='printf %s
'
13565 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13566 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
13567 as_echo_n='/usr
/ucb
/echo -n'
13569 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13570 as_echo_n_body='eval
13574 expr "X$arg" : "X\\(.*\\)$as_nl";
13575 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13577 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
13579 export as_echo_n_body
13580 as_echo_n='sh
-c $as_echo_n_body as_echo
'
13582 export as_echo_body
13583 as_echo='sh
-c $as_echo_body as_echo
'
13586 # The user is always right.
13587 if test "${PATH_SEPARATOR+set}" != set; then
13589 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13590 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13597 # We need space, tab and new line, in precisely that order. Quoting is
13598 # there to prevent editors from complaining about space-tab.
13599 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13600 # splitting by setting IFS to empty value.)
13603 # Find who we are. Look in the path if we contain no directory separator.
13605 *[\\/]* ) as_myself=$0 ;;
13606 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13607 for as_dir in $PATH
13610 test -z "$as_dir" && as_dir=.
13611 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13617 # We did not find ourselves, most probably we were run as `sh COMMAND'
13618 # in which case we are not to be found in the path.
13619 if test "x$as_myself" = x
; then
13622 if test ! -f "$as_myself"; then
13623 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13627 # Unset variables that we do not need and which cause bugs (e.g. in
13628 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13629 # suppresses any "Segmentation fault" message there. '((' could
13630 # trigger a bug in pdksh 5.2.14.
13631 for as_var
in BASH_ENV ENV MAIL MAILPATH
13632 do eval test x\
${$as_var+set} = xset \
13633 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
13646 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
13649 # as_fn_error ERROR [LINENO LOG_FD]
13650 # ---------------------------------
13651 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13652 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13653 # script with status $?, using 1 if that was 0.
13656 as_status
=$?
; test $as_status -eq 0 && as_status
=1
13658 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
13659 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13661 $as_echo "$as_me: error: $1" >&2
13662 as_fn_exit
$as_status
13666 # as_fn_set_status STATUS
13667 # -----------------------
13668 # Set $? to STATUS, without forking.
13669 as_fn_set_status
()
13672 } # as_fn_set_status
13674 # as_fn_exit STATUS
13675 # -----------------
13676 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13680 as_fn_set_status
$1
13686 # Portably unset VAR.
13689 { eval $1=; unset $1;}
13691 as_unset
=as_fn_unset
13692 # as_fn_append VAR VALUE
13693 # ----------------------
13694 # Append the text in VALUE to the end of the definition contained in VAR. Take
13695 # advantage of any shell optimizations that allow amortized linear growth over
13696 # repeated appends, instead of the typical quadratic growth present in naive
13698 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13699 eval 'as_fn_append ()
13710 # as_fn_arith ARG...
13711 # ------------------
13712 # Perform arithmetic evaluation on the ARGs, and store the result in the
13713 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13714 # must be portable across $(()) and expr.
13715 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
13716 eval 'as_fn_arith ()
13723 as_val
=`expr "$@" || test $? -eq 1`
13728 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13729 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13735 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13736 as_basename
=basename
13741 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13747 as_me
=`$as_basename -- "$0" ||
13748 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13749 X"$0" : 'X\(//\)$' \| \
13750 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13752 sed '/^.*\/\([^/][^/]*\)\/*$/{
13766 # Avoid depending upon Character Ranges.
13767 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13768 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13769 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13770 as_cr_digits
='0123456789'
13771 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13773 ECHO_C
= ECHO_N
= ECHO_T
=
13774 case `echo -n x` in #(((((
13776 case `echo 'xy\c'` in
13777 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13779 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13786 rm -f conf$$ conf$$.exe conf$$.
file
13787 if test -d conf$$.dir
; then
13788 rm -f conf$$.dir
/conf$$.
file
13791 mkdir conf$$.dir
2>/dev
/null
13793 if (echo >conf$$.
file) 2>/dev
/null
; then
13794 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13796 # ... but there are two gotchas:
13797 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13798 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13799 # In both cases, we have to default to `cp -p'.
13800 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13802 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13810 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13811 rmdir conf$$.dir
2>/dev
/null
13816 # Create "$as_dir" as a directory, including parents if necessary.
13821 -*) as_dir
=.
/$as_dir;;
13823 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
13827 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13828 *) as_qdir
=$as_dir;;
13830 as_dirs
="'$as_qdir' $as_dirs"
13831 as_dir
=`$as_dirname -- "$as_dir" ||
13832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13833 X"$as_dir" : 'X\(//\)[^/]' \| \
13834 X"$as_dir" : 'X\(//\)$' \| \
13835 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13836 $as_echo X"$as_dir" |
13837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13841 /^X\(\/\/\)[^/].*/{
13854 test -d "$as_dir" && break
13856 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13857 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
13861 if mkdir
-p .
2>/dev
/null
; then
13862 as_mkdir_p
='mkdir -p "$as_dir"'
13864 test -d .
/-p && rmdir .
/-p
13868 if test -x / >/dev
/null
2>&1; then
13869 as_test_x
='test -x'
13871 if ls -dL / >/dev
/null
2>&1; then
13878 if test -d "$1"; then
13884 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13885 ???[sx]*):;;*)false;;esac;fi
13889 as_executable_p
=$as_test_x
13891 # Sed expression to map a string onto a valid CPP name.
13892 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13894 # Sed expression to map a string onto a valid variable name.
13895 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13899 ## ----------------------------------- ##
13900 ## Main body of $CONFIG_STATUS script. ##
13901 ## ----------------------------------- ##
13903 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
13905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13906 # Save the log message, to keep $0 and so on meaningful, and to
13907 # report actual input values of CONFIG_FILES etc. instead of their
13908 # values after options handling.
13910 This file was extended by $as_me, which was
13911 generated by GNU Autoconf 2.64. Invocation command line was
13913 CONFIG_FILES = $CONFIG_FILES
13914 CONFIG_HEADERS = $CONFIG_HEADERS
13915 CONFIG_LINKS = $CONFIG_LINKS
13916 CONFIG_COMMANDS = $CONFIG_COMMANDS
13919 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13924 case $ac_config_files in *"
13925 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13928 case $ac_config_headers in *"
13929 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13934 # Files that config.status was made for.
13935 config_files="$ac_config_files"
13936 config_headers="$ac_config_headers"
13937 config_links="$ac_config_links"
13938 config_commands="$ac_config_commands"
13942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13944 \`$as_me' instantiates files and other configuration actions
13945 from templates according to the current configuration. Unless the files
13946 and actions are specified as TAGs, all are instantiated by default.
13948 Usage: $0 [OPTION]... [TAG]...
13950 -h, --help print this help, then exit
13951 -V, --version print version number and configuration settings, then exit
13952 -q, --quiet, --silent
13953 do not print progress messages
13954 -d, --debug don't remove temporary files
13955 --recheck update $as_me by reconfiguring in the same conditions
13956 --file=FILE[:TEMPLATE]
13957 instantiate the configuration file FILE
13958 --header=FILE[:TEMPLATE]
13959 instantiate the configuration header FILE
13961 Configuration files:
13964 Configuration headers:
13967 Configuration links:
13970 Configuration commands:
13973 Report bugs to the package provider."
13976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13979 configured by $0, generated by GNU Autoconf 2.64,
13980 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13982 Copyright (C) 2009 Free Software Foundation, Inc.
13983 This config.status script is free software; the Free Software Foundation
13984 gives unlimited permission to copy, distribute and modify it."
13990 test -n "\$AWK" || AWK=awk
13993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13994 # The default lists apply if the user does not specify any file.
14000 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14001 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14012 # Handling of the options.
14013 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14015 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14016 $as_echo "$ac_cs_version"; exit ;;
14017 --debug |
--debu |
--deb |
--de |
--d |
-d )
14019 --file |
--fil |
--fi |
--f )
14022 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14024 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14025 ac_need_defaults
=false
;;
14026 --header |
--heade |
--head |
--hea )
14029 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14031 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14032 ac_need_defaults
=false
;;
14034 # Conflict between --help and --header
14035 as_fn_error
"ambiguous option: \`$1'
14036 Try \`$0 --help' for more information.";;
14037 --help |
--hel |
-h )
14038 $as_echo "$ac_cs_usage"; exit ;;
14039 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14040 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14043 # This is an error.
14044 -*) as_fn_error
"unrecognized option: \`$1'
14045 Try \`$0 --help' for more information." ;;
14047 *) as_fn_append ac_config_targets
" $1"
14048 ac_need_defaults
=false
;;
14054 ac_configure_extra_args
=
14056 if $ac_cs_silent; then
14058 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14063 if \$ac_cs_recheck; then
14064 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14066 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14067 CONFIG_SHELL='$SHELL'
14068 export CONFIG_SHELL
14073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14077 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14078 ## Running $as_me. ##
14084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14088 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14094 # Handling of arguments.
14095 for ac_config_target
in $ac_config_targets
14097 case $ac_config_target in
14098 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
14099 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
14100 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
14101 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
14102 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14103 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
14104 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
14105 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
14106 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14108 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14113 # If the user did not use the arguments to specify the items to instantiate,
14114 # then the envvar interface is used. Set only those that are not.
14115 # We use the long form for the default assignment because of an extremely
14116 # bizarre bug on SunOS 4.1.3.
14117 if $ac_need_defaults; then
14118 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14119 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14120 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
14121 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14124 # Have a temporary directory for convenience. Make it in the build tree
14125 # simply because there is no reason against having it here, and in addition,
14126 # creating and moving files from /tmp can sometimes cause problems.
14127 # Hook for its removal unless debugging.
14128 # Note that there is a small window in which the directory will not be cleaned:
14129 # after its creation but before its name has been assigned to `$tmp'.
14133 trap 'exit_status=$?
14134 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14136 trap 'as_fn_exit 1' 1 2 13 15
14138 # Create a (secure) tmp directory for tmp files.
14141 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14142 test -n "$tmp" && test -d "$tmp"
14145 tmp
=.
/conf$$
-$RANDOM
14146 (umask 077 && mkdir
"$tmp")
14147 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
14149 # Set up the scripts for CONFIG_FILES section.
14150 # No need to generate them if there are no CONFIG_FILES.
14151 # This happens for instance with `./config.status config.h'.
14152 if test -n "$CONFIG_FILES"; then
14154 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
14155 ac_cs_awk_getline
=:
14156 ac_cs_awk_pipe_init
=
14157 ac_cs_awk_read_file
='
14158 while ((getline aline < (F[key])) > 0)
14161 ac_cs_awk_pipe_fini
=
14163 ac_cs_awk_getline
=false
14164 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
14165 ac_cs_awk_read_file
='
14167 print "cat " F[key] " &&"
14168 '$ac_cs_awk_pipe_init
14169 # The final `:' finishes the AND list.
14170 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
14172 ac_cr
=`echo X | tr X '\015'`
14173 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14174 # But we know of no other shell where ac_cr would be empty at this
14175 # point, so we can use a bashism as a fallback.
14176 if test "x$ac_cr" = x
; then
14177 eval ac_cr
=\$
\'\\r
\'
14179 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14180 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14183 ac_cs_awk_cr
=$ac_cr
14186 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14189 # Create commands to substitute file output variables.
14191 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14192 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14193 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
14196 } >conf$
$files.sh
&&
14197 . .
/conf$
$files.sh ||
14198 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
14199 rm -f conf$
$files.sh
14202 echo "cat >conf$$subs.awk <<_ACEOF" &&
14203 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14205 } >conf$$subs.sh ||
14206 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14207 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14209 for ac_last_try in false false false false false :; do
14210 . ./conf$$subs.sh ||
14211 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14213 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14214 if test $ac_delim_n = $ac_delim_num; then
14216 elif $ac_last_try; then
14217 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14219 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14222 rm -f conf$$subs.sh
14224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14225 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
14229 s/^/S["/; s
/!.
*/"]=/
14239 s/\(.\{148\}\).*/\1/
14241 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14246 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14253 s/\(.\{148\}\).*/\1/
14255 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14259 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14264 ' <conf$$subs.awk | sed '
14269 ' >>$CONFIG_STATUS || ac_write_fail=1
14270 rm -f conf$$subs.awk
14271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14273 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
14274 for (key in S) S_is_set[key] = 1
14276 \$ac_cs_awk_pipe_init
14280 nfields = split(line, field, "@
")
14282 len = length(field[1])
14283 for (i = 2; i < nfields; i++) {
14285 keylen = length(key)
14286 if (S_is_set[key]) {
14288 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14289 len += length(value) + length(field[++i])
14294 if (nfields == 3 && !substed) {
14296 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14297 \$ac_cs_awk_read_file
14303 \$ac_cs_awk_pipe_fini
14306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14307 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14308 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14311 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
14312 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
14315 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14316 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
14317 # trailing colons and then remove the whole line if VPATH becomes empty
14318 # (actually we leave an empty line to preserve line numbers).
14319 if test "x
$srcdir" = x.; then
14320 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14321 s/:*\$(srcdir):*/:/
14322 s/:*\${srcdir}:*/:/
14324 s/^\([^=]*=[ ]*\):*/\1/
14330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14331 fi # test -n "$CONFIG_FILES"
14333 # Set up the scripts for CONFIG_HEADERS section.
14334 # No need to generate them if there are no CONFIG_HEADERS.
14335 # This happens for instance with `./config.status Makefile'.
14336 if test -n "$CONFIG_HEADERS"; then
14337 cat >"$tmp/defines.
awk" <<\_ACAWK ||
14341 # Transform confdefs.h into an awk script `defines.awk', embedded as
14342 # here-document in config.status, that substitutes the proper values into
14343 # config.h.in to produce config.h.
14345 # Create a delimiter string that does not exist in confdefs.h, to ease
14346 # handling of long lines.
14348 for ac_last_try in false false :; do
14349 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
14350 if test -z "$ac_t"; then
14352 elif $ac_last_try; then
14353 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
14355 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14359 # For the awk script, D is an array of macro values keyed by name,
14360 # likewise P contains macro parameters if any. Preserve backslash
14361 # newline sequences.
14363 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14365 s/.\{148\}/&'"$ac_delim"'/g
14368 s/^[ ]*#[ ]*define[ ][ ]*/ /
14375 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14377 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14381 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14382 D["\
1"]=" \
3\\\\\\n
"\\/p
14384 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14389 s/.\{148\}/&'"$ac_delim"'/g
14394 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14397 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14399 ' <confdefs.h | sed '
14400 s/'"$ac_delim"'/"\\\
14401 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14404 for (key in D) D_is_set[key] = 1
14407 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14409 split(line, arg, " ")
14410 if (arg[1] == "#") {
14414 defundef
= substr
(arg
[1], 2)
14417 split(mac1
, mac2
, "(") #)
14419 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14420 if (D_is_set
[macro
]) {
14421 # Preserve the white space surrounding the "#".
14422 print prefix
"define", macro P
[macro
] D
[macro
]
14425 # Replace #undef with comments. This is necessary, for example,
14426 # in the case of _POSIX_SOURCE, which is predefined and required
14427 # on some systems where configure will not decide to define it.
14428 if (defundef
== "undef") {
14429 print
"/*", prefix defundef
, macro
, "*/"
14437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14438 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
14439 fi # test -n "$CONFIG_HEADERS"
14442 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14447 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14449 case $ac_mode$ac_tag in
14451 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14452 :[FH
]-) ac_tag
=-:-;;
14453 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14470 -) ac_f
="$tmp/stdin";;
14471 *) # Look for the file first in the build tree, then in the source tree
14472 # (if the path is not absolute). The absolute path cannot be DOS-style,
14473 # because $ac_f cannot contain `:'.
14477 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14479 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
14481 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14482 as_fn_append ac_file_inputs
" '$ac_f'"
14485 # Let's still pretend it is `configure' which instantiates (i.e., don't
14486 # use $as_me), people would be surprised to read:
14487 # /* config.h. Generated by config.status. */
14488 configure_input
='Generated from '`
14489 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14491 if test x
"$ac_file" != x-
; then
14492 configure_input
="$ac_file. $configure_input"
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14494 $as_echo "$as_me: creating $ac_file" >&6;}
14496 # Neutralize special characters interpreted by sed in replacement strings.
14497 case $configure_input in #(
14498 *\
&* |
*\|
* |
*\\* )
14499 ac_sed_conf_input
=`$as_echo "$configure_input" |
14500 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14501 *) ac_sed_conf_input
=$configure_input;;
14505 *:-:* |
*:-) cat >"$tmp/stdin" \
14506 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
14511 ac_dir
=`$as_dirname -- "$ac_file" ||
14512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14513 X"$ac_file" : 'X\(//\)[^/]' \| \
14514 X"$ac_file" : 'X\(//\)$' \| \
14515 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14516 $as_echo X"$ac_file" |
14517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14521 /^X\(\/\/\)[^/].*/{
14534 as_dir
="$ac_dir"; as_fn_mkdir_p
14538 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14540 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14541 # A ".." for each directory in $ac_dir_suffix.
14542 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14543 case $ac_top_builddir_sub in
14544 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14545 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14548 ac_abs_top_builddir
=$ac_pwd
14549 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14550 # for backward compatibility:
14551 ac_top_builddir
=$ac_top_build_prefix
14554 .
) # We are building in place.
14556 ac_top_srcdir
=$ac_top_builddir_sub
14557 ac_abs_top_srcdir
=$ac_pwd ;;
14558 [\\/]* | ?
:[\\/]* ) # Absolute name.
14559 ac_srcdir
=$srcdir$ac_dir_suffix;
14560 ac_top_srcdir
=$srcdir
14561 ac_abs_top_srcdir
=$srcdir ;;
14562 *) # Relative name.
14563 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14564 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14565 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14567 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14577 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14578 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14583 # If the template does not know about datarootdir, expand it.
14584 # FIXME: This hack should be removed a few years after 2.60.
14585 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14596 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14597 *datarootdir
*) ac_datarootdir_seen
=yes;;
14598 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14600 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14603 ac_datarootdir_hack='
14604 s&@datadir@&$datadir&g
14605 s&@docdir@&$docdir&g
14606 s&@infodir@&$infodir&g
14607 s&@localedir@&$localedir&g
14608 s&@mandir@&$mandir&g
14609 s&\\\${datarootdir}&$datarootdir&g' ;;
14613 # Neutralize VPATH when `$srcdir' = `.'.
14614 # Shell code in configure.ac might set extrasub.
14615 # FIXME: do we really want to maintain this feature?
14616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14617 ac_sed_extra="$ac_vpsub
14620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14622 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14623 s|@configure_input@|
$ac_sed_conf_input|
;t t
14624 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14625 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
14626 s
&@srcdir@
&$ac_srcdir&;t t
14627 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14628 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14629 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14630 s
&@builddir@
&$ac_builddir&;t t
14631 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14632 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14633 s
&@INSTALL@
&$ac_INSTALL&;t t
14634 $ac_datarootdir_hack
14636 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14637 if $ac_cs_awk_getline; then
14638 $AWK -f "$tmp/subs.
awk"
14640 $AWK -f "$tmp/subs.
awk" | $SHELL
14642 || as_fn_error "could not create
$ac_file" "$LINENO" 5
14644 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14645 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14646 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14648 which seems to be undefined. Please make sure it is defined." >&5
14649 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14650 which seems to be undefined. Please make sure it is defined." >&2;}
14654 -) cat "$tmp/out" && rm -f "$tmp/out";;
14655 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14657 || as_fn_error "could not create $ac_file" "$LINENO" 5
14663 if test x"$ac_file" != x-; then
14665 $as_echo "/* $configure_input */" \
14666 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14667 } >"$tmp/config.h" \
14668 || as_fn_error "could not create $ac_file" "$LINENO" 5
14669 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14671 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14674 mv "$tmp/config.h" "$ac_file" \
14675 || as_fn_error "could not create $ac_file" "$LINENO" 5
14678 $as_echo "/* $configure_input */" \
14679 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14680 || as_fn_error "could not create -" "$LINENO" 5
14688 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
14691 # Prefer the file from the source tree if names are identical.
14692 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14693 ac_source=$srcdir/$ac_source
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14697 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14699 if test ! -r "$ac_source"; then
14700 as_fn_error "$ac_source: file not found" "$LINENO" 5
14704 # Try a relative symlink, then a hard link, then a copy.
14706 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14707 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14709 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14710 ln "$ac_source" "$ac_file" 2>/dev/null ||
14711 cp -p "$ac_source" "$ac_file" ||
14712 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14715 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14716 $as_echo "$as_me: executing $ac_file commands" >&6;}
14721 case $ac_file$ac_mode in
14722 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
14724 case x$CONFIG_HEADERS in
14725 xconfig.h:config.in)
14736 ac_clean_files=$ac_clean_files_save
14738 test $ac_write_fail = 0 ||
14739 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14742 # configure is writing to config.log, and then calls config.status.
14743 # config.status does its own redirection, appending to config.log.
14744 # Unfortunately, on DOS this fails, as config.log is still kept open
14745 # by configure, so config.status won't be able to
write to it
; its
14746 # output is simply discarded. So we exec the FD to /dev/null,
14747 # effectively closing config.log, so it can be properly (re)opened and
14748 # appended to by config.status. When coming back to configure, we
14749 # need to make the FD available again.
14750 if test "$no_create" != yes; then
14752 ac_config_status_args
=
14753 test "$silent" = yes &&
14754 ac_config_status_args
="$ac_config_status_args --quiet"
14756 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14758 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14759 # would make configure fail if this is the last instruction.
14760 $ac_cs_success || as_fn_exit $?
14764 # CONFIG_SUBDIRS section.
14766 if test "$no_recursion" != yes; then
14768 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14769 # so they do not pile up.
14770 ac_sub_configure_args
=
14772 eval "set x $ac_configure_args"
14776 if test -n "$ac_prev"; then
14781 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
14782 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
14783 ac_prev
=cache_file
;;
14784 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
14785 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
14788 --config-cache |
-C)
14790 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
14792 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
14794 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
14796 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
14798 --disable-option-checking)
14802 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14804 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
14808 # Always prepend --prefix to ensure using the same prefix
14809 # in subdir configurations.
14810 ac_arg
="--prefix=$prefix"
14812 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14814 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
14817 if test "$silent" = yes; then
14818 ac_sub_configure_args
="--silent $ac_sub_configure_args"
14821 # Always prepend --disable-option-checking to silence warnings, since
14822 # different subdirs can have different --enable and --with options.
14823 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
14826 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
14828 # Do not complain, so a configure script can configure whichever
14829 # parts of a large source tree are present.
14830 test -d "$srcdir/$ac_dir" ||
continue
14832 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14833 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14834 $as_echo "$ac_msg" >&6
14835 as_dir
="$ac_dir"; as_fn_mkdir_p
14839 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14841 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14842 # A ".." for each directory in $ac_dir_suffix.
14843 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14844 case $ac_top_builddir_sub in
14845 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14846 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14849 ac_abs_top_builddir
=$ac_pwd
14850 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14851 # for backward compatibility:
14852 ac_top_builddir
=$ac_top_build_prefix
14855 .
) # We are building in place.
14857 ac_top_srcdir
=$ac_top_builddir_sub
14858 ac_abs_top_srcdir
=$ac_pwd ;;
14859 [\\/]* | ?
:[\\/]* ) # Absolute name.
14860 ac_srcdir
=$srcdir$ac_dir_suffix;
14861 ac_top_srcdir
=$srcdir
14862 ac_abs_top_srcdir
=$srcdir ;;
14863 *) # Relative name.
14864 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14865 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14866 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14868 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14873 # Check for guested configure; otherwise get Cygnus style configure.
14874 if test -f "$ac_srcdir/configure.gnu"; then
14875 ac_sub_configure
=$ac_srcdir/configure.gnu
14876 elif test -f "$ac_srcdir/configure"; then
14877 ac_sub_configure
=$ac_srcdir/configure
14878 elif test -f "$ac_srcdir/configure.in"; then
14879 # This should be Cygnus configure.
14880 ac_sub_configure
=$ac_aux_dir/configure
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14883 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14887 # The recursion is here.
14888 if test -n "$ac_sub_configure"; then
14889 # Make the cache file name correct relative to the subdirectory.
14890 case $cache_file in
14891 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
14892 *) # Relative name.
14893 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
14896 { $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
14897 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14898 # The eval makes quoting arguments work.
14899 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14900 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14901 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14907 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14909 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}