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
679 READLINE_TEXI_INCFLAG
698 HAVE_NATIVE_GCORE_TARGET
727 INSTALL_STRIP_PROGRAM
753 MAINTAINER_MODE_FALSE
782 program_transform_name
793 ac_subst_files
='host_makefile_frag'
795 enable_option_checking
796 enable_maintainer_mode
799 with_separate_debug_dir
801 with_relocated_sources
803 with_auto_load_safe_path
831 enable_build_warnings
832 enable_gdb_build_warnings
842 with_libbabeltrace_prefix
844 ac_precious_vars
='build_alias
858 ac_subdirs_all
='testsuite
863 # Initialize some variables set by options.
865 ac_init_version
=false
866 ac_unrecognized_opts
=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name
=s
,x
,x
,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir
='${exec_prefix}/bin'
892 sbindir
='${exec_prefix}/sbin'
893 libexecdir
='${exec_prefix}/libexec'
894 datarootdir
='${prefix}/share'
895 datadir
='${datarootdir}'
896 sysconfdir
='${prefix}/etc'
897 sharedstatedir
='${prefix}/com'
898 localstatedir
='${prefix}/var'
899 includedir
='${prefix}/include'
900 oldincludedir
='/usr/include'
901 docdir
='${datarootdir}/doc/${PACKAGE}'
902 infodir
='${datarootdir}/info'
907 libdir
='${exec_prefix}/lib'
908 localedir
='${datarootdir}/locale'
909 mandir
='${datarootdir}/man'
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\
$ac_option
923 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
933 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
935 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
938 -build |
--build |
--buil |
--bui |
--bu)
939 ac_prev
=build_alias
;;
940 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
941 build_alias
=$ac_optarg ;;
943 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
944 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
945 ac_prev
=cache_file
;;
946 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
947 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
948 cache_file
=$ac_optarg ;;
951 cache_file
=config.cache
;;
953 -datadir |
--datadir |
--datadi |
--datad)
955 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
956 datadir
=$ac_optarg ;;
958 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
959 |
--dataroo |
--dataro |
--datar)
960 ac_prev
=datarootdir
;;
961 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
962 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
963 datarootdir
=$ac_optarg ;;
965 -disable-* |
--disable-*)
966 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
969 as_fn_error
"invalid feature name: $ac_useropt"
970 ac_useropt_orig
=$ac_useropt
971 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep
=', ';;
979 eval enable_
$ac_useropt=no
;;
981 -docdir |
--docdir |
--docdi |
--doc |
--do)
983 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
986 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
988 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
991 -enable-* |
--enable-*)
992 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
995 as_fn_error
"invalid feature name: $ac_useropt"
996 ac_useropt_orig
=$ac_useropt
997 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_
$ac_useropt"
1002 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep
=', ';;
1005 eval enable_
$ac_useropt=\
$ac_optarg ;;
1007 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1008 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1009 |
--exec |
--exe |
--ex)
1010 ac_prev
=exec_prefix
;;
1011 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1012 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1013 |
--exec=* |
--exe=* |
--ex=*)
1014 exec_prefix
=$ac_optarg ;;
1016 -gas |
--gas |
--ga |
--g)
1017 # Obsolete; use --with-gas.
1020 -help |
--help |
--hel |
--he |
-h)
1021 ac_init_help
=long
;;
1022 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1023 ac_init_help
=recursive
;;
1024 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1025 ac_init_help
=short
;;
1027 -host |
--host |
--hos |
--ho)
1028 ac_prev
=host_alias
;;
1029 -host=* |
--host=* |
--hos=* |
--ho=*)
1030 host_alias
=$ac_optarg ;;
1032 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1034 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1036 htmldir
=$ac_optarg ;;
1038 -includedir |
--includedir |
--includedi |
--included |
--include \
1039 |
--includ |
--inclu |
--incl |
--inc)
1040 ac_prev
=includedir
;;
1041 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1042 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1043 includedir
=$ac_optarg ;;
1045 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1047 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1048 infodir
=$ac_optarg ;;
1050 -libdir |
--libdir |
--libdi |
--libd)
1052 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1053 libdir
=$ac_optarg ;;
1055 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1056 |
--libexe |
--libex |
--libe)
1057 ac_prev
=libexecdir
;;
1058 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1059 |
--libexe=* |
--libex=* |
--libe=*)
1060 libexecdir
=$ac_optarg ;;
1062 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1063 ac_prev
=localedir
;;
1064 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1065 localedir
=$ac_optarg ;;
1067 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1068 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1069 ac_prev
=localstatedir
;;
1070 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1071 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1072 localstatedir
=$ac_optarg ;;
1074 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1076 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1077 mandir
=$ac_optarg ;;
1079 -nfp |
--nfp |
--nf)
1080 # Obsolete; use --without-fp.
1083 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1084 |
--no-cr |
--no-c |
-n)
1087 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1088 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1091 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1092 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1093 |
--oldin |
--oldi |
--old |
--ol |
--o)
1094 ac_prev
=oldincludedir
;;
1095 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1096 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1097 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1098 oldincludedir
=$ac_optarg ;;
1100 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1102 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1103 prefix
=$ac_optarg ;;
1105 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1106 |
--program-pre |
--program-pr |
--program-p)
1107 ac_prev
=program_prefix
;;
1108 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1109 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1110 program_prefix
=$ac_optarg ;;
1112 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1113 |
--program-suf |
--program-su |
--program-s)
1114 ac_prev
=program_suffix
;;
1115 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1116 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1117 program_suffix
=$ac_optarg ;;
1119 -program-transform-name |
--program-transform-name \
1120 |
--program-transform-nam |
--program-transform-na \
1121 |
--program-transform-n |
--program-transform- \
1122 |
--program-transform |
--program-transfor \
1123 |
--program-transfo |
--program-transf \
1124 |
--program-trans |
--program-tran \
1125 |
--progr-tra |
--program-tr |
--program-t)
1126 ac_prev
=program_transform_name
;;
1127 -program-transform-name=* |
--program-transform-name=* \
1128 |
--program-transform-nam=* |
--program-transform-na=* \
1129 |
--program-transform-n=* |
--program-transform-=* \
1130 |
--program-transform=* |
--program-transfor=* \
1131 |
--program-transfo=* |
--program-transf=* \
1132 |
--program-trans=* |
--program-tran=* \
1133 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1134 program_transform_name
=$ac_optarg ;;
1136 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1138 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1139 pdfdir
=$ac_optarg ;;
1141 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1143 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1146 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1147 |
-silent |
--silent |
--silen |
--sile |
--sil)
1150 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1152 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1154 sbindir
=$ac_optarg ;;
1156 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1157 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1158 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1160 ac_prev
=sharedstatedir
;;
1161 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1162 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1163 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1165 sharedstatedir
=$ac_optarg ;;
1167 -site |
--site |
--sit)
1169 -site=* |
--site=* |
--sit=*)
1172 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1174 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1175 srcdir
=$ac_optarg ;;
1177 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1178 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1179 ac_prev
=sysconfdir
;;
1180 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1181 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1182 sysconfdir
=$ac_optarg ;;
1184 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1185 ac_prev
=target_alias
;;
1186 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1187 target_alias
=$ac_optarg ;;
1189 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1192 -version |
--version |
--versio |
--versi |
--vers |
-V)
1193 ac_init_version
=: ;;
1196 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1199 as_fn_error
"invalid package name: $ac_useropt"
1200 ac_useropt_orig
=$ac_useropt
1201 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1206 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207 ac_unrecognized_sep
=', ';;
1209 eval with_
$ac_useropt=\
$ac_optarg ;;
1211 -without-* |
--without-*)
1212 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1215 as_fn_error
"invalid package name: $ac_useropt"
1216 ac_useropt_orig
=$ac_useropt
1217 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1222 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep
=', ';;
1225 eval with_
$ac_useropt=no
;;
1228 # Obsolete; use --with-x.
1231 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1232 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1233 ac_prev
=x_includes
;;
1234 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1235 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1236 x_includes
=$ac_optarg ;;
1238 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1239 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1240 ac_prev
=x_libraries
;;
1241 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1242 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1243 x_libraries
=$ac_optarg ;;
1245 -*) as_fn_error
"unrecognized option: \`$ac_option'
1246 Try \`$0 --help' for more information."
1250 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 case $ac_envvar in #(
1253 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1254 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1256 eval $ac_envvar=\
$ac_optarg
1257 export $ac_envvar ;;
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 if test -n "$ac_prev"; then
1271 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1272 as_fn_error
"missing argument to $ac_option"
1275 if test -n "$ac_unrecognized_opts"; then
1276 case $enable_option_checking in
1278 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 # Check all directory arguments for consistency.
1284 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
1289 eval ac_val
=\$
$ac_var
1290 # Remove trailing slashes.
1293 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294 eval $ac_var=\
$ac_val;;
1296 # Be sure to have absolute directory names.
1298 [\\/$
]* | ?
:[\\/]* ) continue;;
1299 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1301 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1309 target
=$target_alias
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x
; then
1313 if test "x$build_alias" = x
; then
1314 cross_compiling
=maybe
1315 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1323 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1325 test "$silent" = yes && exec 6>/dev
/null
1328 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di
=`ls -di .` &&
1330 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error
"working directory cannot be determined"
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error
"pwd does not report name of working directory"
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted
=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir
=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 $as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1368 ac_srcdir_defaulted
=no
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1372 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1374 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1386 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 for ac_var
in $ac_precious_vars; do
1389 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1391 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1402 \`configure' configures this package to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1465 --x-includes=DIR X include files are
in DIR
1466 --x-libraries=DIR X library files are
in DIR
1469 --build=BUILD configure
for building on BUILD
[guessed
]
1470 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1471 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1475 if test -n "$ac_init_help"; then
1480 --disable-option-checking ignore unrecognized
--enable/--with options
1481 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1482 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1483 --enable-maintainer-mode enable make rules and dependencies not useful
1484 (and sometimes confusing
) to the casual installer
1485 --enable-plugins Enable support
for plugins
1486 --disable-largefile omit support
for large files
1487 --enable-targets=TARGETS
1488 alternative target configurations
1489 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1490 --disable-gdbcli disable command-line interface
(CLI
)
1491 --disable-gdbmi disable machine-interface
(MI
)
1492 --enable-tui enable full-screen terminal user interface
(TUI
)
1493 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1494 --enable-profiling enable profiling of GDB
1495 --disable-rpath do not hardcode runtime library paths
1496 --enable-libmcheck Try linking with
-lmcheck if available
1497 --enable-werror treat compile warnings as errors
1498 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1499 --enable-gdb-build-warnings
1500 enable GDB specific build-time compiler warnings
if
1502 --enable-sim link gdb with simulator
1503 --enable-multi-ice build the multi-ice-gdb-server
1504 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1508 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1509 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1510 --with-separate-debug-dir=PATH
1511 look for global separate debug info
in this path
1513 --with-gdb-datadir=PATH
look for global separate data files
in this path
1515 --with-relocated-sources=PATH
1516 automatically relocate this path
for source files
1517 --with-auto-load-dir=PATH
1518 directories from
which to load auto-loaded scripts
1519 [$debugdir:$datadir/auto-load
]
1520 --with-auto-load-safe-path=PATH
1521 directories safe to hold auto-loaded files
1522 [--with-auto-load-dir]
1523 --without-auto-load-safe-path
1524 do not restrict auto-loaded files locations
1525 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1526 --with-curses use the curses library instead of the termcap
1528 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1529 --with-bugurl=URL Direct users to URL to report a bug
1530 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1531 --with-libiconv-prefix=DIR
1532 search
for libiconv
in DIR
/include and DIR
/lib
1533 --with-iconv-bin=PATH specify where to
find the
iconv program
1534 --with-system-readline use installed readline library
1535 --with-jit-reader-dir=PATH
1536 directory to load the JIT readers from
1537 --with-expat include expat support
(auto
/yes
/no
)
1538 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1539 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1540 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1541 --with-python[=PYTHON] include python support
1542 (auto/yes/no/<python-program>)
1543 --with-guile[=GUILE] include guile support
1544 (auto/yes/no/<guile-version>/<pkg-config-program>)
1545 --without-included-regex
1546 don't use included regex
; this is the default on
1547 systems with version
2 of the GNU C library
(use
1548 with caution on other system
)
1549 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1550 --with-system-gdbinit=PATH
1551 automatically load a system-wide gdbinit
file
1552 --with-lzma support lzma compression
(auto
/yes
/no
)
1553 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1554 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1555 --with-tcl directory containing tcl configuration (tclConfig.sh)
1556 --with-tk directory containing tk configuration (tkConfig.sh)
1557 --with-x use the X Window System
1558 --with-babeltrace include babeltrace support (auto/yes/no)
1559 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1560 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1562 Some influential environment variables
:
1563 CC C compiler
command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1566 nonstandard directory
<lib dir
>
1567 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1568 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1569 you have headers
in a nonstandard directory
<include dir
>
1571 MAKEINFO Parent configure detects
if it is of sufficient version.
1573 Parameters
for MAKEINFO.
1574 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1575 the first program found out of: `bison
-y', `byacc', `yacc'.
1576 YFLAGS The list of arguments that will be passed by default to $YACC.
1577 This script will default YFLAGS to the empty string to avoid a
1578 default value of `-d' given by some make applications.
1579 XMKMF Path to xmkmf, Makefile generator for X Window System
1581 Use these variables to override the choices made by `configure' or to
help
1582 it to
find libraries and programs with nonstandard names
/locations.
1584 Report bugs to the package provider.
1589 if test "$ac_init_help" = "recursive"; then
1590 # If there are subdirs, report their specific --help.
1591 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1592 test -d "$ac_dir" ||
1593 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1598 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1600 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601 # A ".." for each directory in $ac_dir_suffix.
1602 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1605 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1608 ac_abs_top_builddir
=$ac_pwd
1609 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir
=$ac_top_build_prefix
1614 .
) # We are building in place.
1616 ac_top_srcdir
=$ac_top_builddir_sub
1617 ac_abs_top_srcdir
=$ac_pwd ;;
1618 [\\/]* | ?
:[\\/]* ) # Absolute name.
1619 ac_srcdir
=$srcdir$ac_dir_suffix;
1620 ac_top_srcdir
=$srcdir
1621 ac_abs_top_srcdir
=$srcdir ;;
1623 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1627 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1629 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1636 $SHELL "$ac_srcdir/configure" --help=recursive
1638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1640 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1648 generated by GNU Autoconf
2.64
1650 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1651 This configure
script is free software
; the Free Software Foundation
1652 gives unlimited permission to copy
, distribute and modify it.
1657 ## ------------------------ ##
1658 ## Autoconf initialization. ##
1659 ## ------------------------ ##
1661 # ac_fn_c_try_compile LINENO
1662 # --------------------------
1663 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_compile
()
1666 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1667 rm -f conftest.
$ac_objext
1668 if { { ac_try
="$ac_compile"
1670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697 } # ac_fn_c_try_compile
1699 # ac_fn_c_try_cpp LINENO
1700 # ----------------------
1701 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_cpp conftest.$ac_ext"
1707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1708 *) ac_try_echo
=$ac_try;;
1710 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1714 if test -s conftest.err
; then
1715 grep -v '^ *+' conftest.err
>conftest.er1
1716 cat conftest.er1
>&5
1717 mv -f conftest.er1 conftest.err
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } >/dev
/null
&& {
1721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.
$ac_ext >&5
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1736 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1739 # the include files in INCLUDES and setting the cache variable VAR
1741 ac_fn_c_check_header_mongrel
()
1743 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1744 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1748 $as_echo_n "(cached) " >&6
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1754 # Is the header compilable?
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1756 $as_echo_n "checking $2 usability... " >&6; }
1757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1762 if ac_fn_c_try_compile
"$LINENO"; then :
1763 ac_header_compiler
=yes
1765 ac_header_compiler
=no
1767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1769 $as_echo "$ac_header_compiler" >&6; }
1771 # Is the header present?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1773 $as_echo_n "checking $2 presence... " >&6; }
1774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1778 if ac_fn_c_try_cpp
"$LINENO"; then :
1779 ac_header_preproc
=yes
1781 ac_header_preproc
=no
1783 rm -f conftest.err conftest.
$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1785 $as_echo "$ac_header_preproc" >&6; }
1787 # So? What about this header?
1788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1791 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1797 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1799 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1801 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1803 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1805 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811 $as_echo_n "(cached) " >&6
1813 eval "$3=\$ac_header_compiler"
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1821 } # ac_fn_c_check_header_mongrel
1823 # ac_fn_c_try_run LINENO
1824 # ----------------------
1825 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1826 # that executables *can* be run.
1829 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1830 if { { ac_try
="$ac_link"
1832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_link") 2>&5
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1841 { { case "(($ac_try" in
1842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1843 *) ac_try_echo
=$ac_try;;
1845 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_try") 2>&5
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; }; }; then :
1853 $as_echo "$as_me: program exited with status $ac_status" >&5
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.
$ac_ext >&5
1857 ac_retval
=$ac_status
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1865 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists and can be compiled using the include files in
1868 # INCLUDES, setting the cache variable VAR accordingly.
1869 ac_fn_c_check_header_compile
()
1871 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1882 if ac_fn_c_try_compile
"$LINENO"; then :
1887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1894 } # ac_fn_c_check_header_compile
1896 # ac_fn_c_try_link LINENO
1897 # -----------------------
1898 # Try to link conftest.$ac_ext, and return whether this succeeded.
1901 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1902 rm -f conftest.
$ac_objext conftest
$ac_exeext
1903 if { { ac_try
="$ac_link"
1905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_link") 2>conftest.err
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest$ac_exeext && {
1922 test "$cross_compiling" = yes ||
1923 $as_test_x conftest$ac_exeext
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1932 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1933 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1934 # interfere with the next link command; also delete a directory that is
1935 # left behind by Apple's compiler. We do this before executing the actions.
1936 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940 } # ac_fn_c_try_link
1942 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1943 # --------------------------------------------
1944 # Tries to find the compile-time value of EXPR in a program that includes
1945 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1947 ac_fn_c_compute_int ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if test "$cross_compiling" = yes; then
1951 # Depending upon the size, compute the lo and hi bounds.
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1958 static int test_array [1 - 2 * !(($2) >= 0)];
1965 if ac_fn_c_try_compile "$LINENO"; then :
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1974 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_hi=$ac_mid; break
1984 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1985 if test $ac_lo -le $ac_mid; then
1989 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
2000 static int test_array [1 - 2 * !(($2) < 0)];
2007 if ac_fn_c_try_compile "$LINENO"; then :
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2016 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_lo=$ac_mid; break
2026 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2027 if test $ac_mid -le $ac_hi; then
2031 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 # Binary search between lo and hi bounds.
2042 while test "x$ac_lo" != "x$ac_hi"; do
2043 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2050 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2057 if ac_fn_c_try_compile "$LINENO"; then :
2060 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2072 static long int longval () { return $2; }
2073 static unsigned long int ulongval () { return $2; }
2080 FILE *f = fopen ("conftest.val", "w");
2085 long int i = longval ();
2088 fprintf (f, "%ld", i);
2092 unsigned long int i = ulongval ();
2095 fprintf (f, "%lu", i);
2097 /* Do not output a trailing newline, as this causes \r\n confusion
2098 on some platforms. */
2099 return ferror (f) || fclose (f) != 0;
2105 if ac_fn_c_try_run "$LINENO"; then :
2106 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2111 conftest.$ac_objext conftest.beam conftest.$ac_ext
2115 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2118 } # ac_fn_c_compute_int
2120 # ac_fn_c_check_func LINENO FUNC VAR
2121 # ----------------------------------
2122 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2123 ac_fn_c_check_func ()
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127 $as_echo_n "checking for $2... " >&6; }
2128 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2129 $as_echo_n "(cached) " >&6
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2133 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2135 #define $2 innocuous_$2
2137 /* System header to define __stub macros and hopefully few prototypes,
2138 which can conflict with char $2 (); below.
2139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2140 <limits.h> exists even on freestanding compilers. */
2143 # include <limits.h>
2145 # include <assert.h>
2150 /* Override any GCC internal prototype to avoid an error.
2151 Use char because int might match the return type of a GCC
2152 builtin and then its argument prototype would still apply. */
2157 /* The GNU C library defines this for functions which it implements
2158 to always fail with ENOSYS. Some functions are actually named
2159 something starting with __ and the normal name is an alias. */
2160 #if defined __stub_$2 || defined __stub___$2
2172 if ac_fn_c_try_link "$LINENO"; then :
2177 rm -f core conftest.err conftest.$ac_objext \
2178 conftest$ac_exeext conftest.$ac_ext
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2183 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185 } # ac_fn_c_check_func
2187 # ac_fn_c_check_decl LINENO SYMBOL VAR
2188 # ------------------------------------
2189 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2190 ac_fn_c_check_decl ()
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2194 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2196 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2197 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2198 $as_echo_n "(cached) " >&6
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2206 #ifndef $as_decl_name
2208 (void) $as_decl_use;
2210 (void) $as_decl_name;
2218 if ac_fn_c_try_compile "$LINENO"; then :
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227 $as_echo "$ac_res" >&6; }
2228 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2230 } # ac_fn_c_check_decl
2232 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2233 # ----------------------------------------------------
2234 # Tries to find if the field MEMBER exists in type AGGR, after including
2235 # INCLUDES, setting cache variable VAR accordingly.
2236 ac_fn_c_check_member ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2240 $as_echo_n "checking for $2.$3... " >&6; }
2241 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2242 $as_echo_n "(cached) " >&6
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2257 if ac_fn_c_try_compile "$LINENO"; then :
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2267 if (sizeof ac_aggr.$3)
2273 if ac_fn_c_try_compile "$LINENO"; then :
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 $as_echo "$ac_res" >&6; }
2285 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2287 } # ac_fn_c_check_member
2289 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2290 # -------------------------------------------
2291 # Tests whether TYPE exists after having included INCLUDES, setting cache
2292 # variable VAR accordingly.
2293 ac_fn_c_check_type ()
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2297 $as_echo_n "checking for $2... " >&6; }
2298 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2299 $as_echo_n "(cached) " >&6
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2327 if ac_fn_c_try_compile "$LINENO"; then :
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 $as_echo "$ac_res" >&6; }
2339 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2341 } # ac_fn_c_check_type
2342 cat >config.log <<_ACEOF
2343 This file contains any messages produced by compilers while
2344 running configure, to aid debugging if configure makes a mistake.
2346 It was created by $as_me, which was
2347 generated by GNU Autoconf 2.64. Invocation command line was
2359 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2360 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2361 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2362 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2363 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2365 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2366 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2368 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2369 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2370 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2371 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2372 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2373 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2374 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 test -z "$as_dir" && as_dir=.
2383 $as_echo "PATH: $as_dir"
2399 # Keep a trace of the command line.
2400 # Strip out --no-create and --no-recursion so they do not pile up.
2401 # Strip out --silent because we don't want to record it for future runs.
2402 # Also quote any args containing shell meta-characters.
2403 # Make two passes to allow for proper duplicate-argument suppression.
2407 ac_must_keep_next=false
2413 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2414 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2415 | -silent | --silent | --silen | --sile | --sil)
2418 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2421 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2423 as_fn_append ac_configure_args1 " '$ac_arg'"
2424 if test $ac_must_keep_next = true; then
2425 ac_must_keep_next=false # Got value, back to normal.
2428 *=* | --config-cache | -C | -disable-* | --disable-* \
2429 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2430 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2431 | -with-* | --with-* | -without-* | --without-* | --x)
2432 case "$ac_configure_args0 " in
2433 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2436 -* ) ac_must_keep_next=true ;;
2439 as_fn_append ac_configure_args " '$ac_arg'"
2444 { ac_configure_args0=; unset ac_configure_args0;}
2445 { ac_configure_args1=; unset ac_configure_args1;}
2447 # When interrupted or exit'd, cleanup temporary files, and complete
2448 # config.log. We remove comments because anyway the quotes in there
2449 # would cause problems or look ugly.
2450 # WARNING: Use '\'' to represent an apostrophe within the trap.
2451 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2452 trap 'exit_status=$?
2453 # Save into config.log some information that might help in debugging.
2458 ## ---------------- ##
2459 ## Cache variables. ##
2460 ## ---------------- ##
2463 # The following way of writing the cache mishandles newlines in values,
2465 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2466 eval ac_val=\$$ac_var
2470 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2471 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2474 _ | IFS | as_nl) ;; #(
2475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2476 *) { eval $ac_var=; unset $ac_var;} ;;
2481 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2482 *${as_nl}ac_space=\ *)
2484 "s/'\''/'\''\\\\'\'''\''/g;
2485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2496 ## ----------------- ##
2497 ## Output variables. ##
2498 ## ----------------- ##
2501 for ac_var in $ac_subst_vars
2503 eval ac_val=\$$ac_var
2505 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507 $as_echo "$ac_var='\''$ac_val'\''"
2511 if test -n "$ac_subst_files"; then
2513 ## ------------------- ##
2514 ## File substitutions. ##
2515 ## ------------------- ##
2518 for ac_var in $ac_subst_files
2520 eval ac_val=\$$ac_var
2522 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2524 $as_echo "$ac_var='\''$ac_val'\''"
2529 if test -s confdefs.h; then
2539 test "$ac_signal" != 0 &&
2540 $as_echo "$as_me: caught signal $ac_signal"
2541 $as_echo "$as_me: exit $exit_status"
2543 rm -f core *.core core.conftest.* &&
2544 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2547 for ac_signal in 1 2 13 15; do
2548 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2552 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2553 rm -f -r conftest* confdefs.h
2555 $as_echo "/* confdefs.h */" > confdefs.h
2557 # Predefined preprocessor variables.
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_NAME "$PACKAGE_NAME"
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_STRING "$PACKAGE_STRING"
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_URL "$PACKAGE_URL"
2584 # Let the site file select an alternate cache file if it wants to.
2585 # Prefer an explicitly selected file to automatically selected ones.
2588 if test -n "$CONFIG_SITE"; then
2589 ac_site_file1=$CONFIG_SITE
2590 elif test "x$prefix" != xNONE; then
2591 ac_site_file1=$prefix/share/config.site
2592 ac_site_file2=$prefix/etc/config.site
2594 ac_site_file1=$ac_default_prefix/share/config.site
2595 ac_site_file2=$ac_default_prefix/etc/config.site
2597 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2599 test "x$ac_site_file" = xNONE && continue
2600 if test -r "$ac_site_file"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2602 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2603 sed 's/^/| /' "$ac_site_file" >&5
2608 if test -r "$cache_file"; then
2609 # Some versions of bash will fail to source /dev/null (special
2610 # files actually), so we avoid doing that.
2611 if test -f "$cache_file"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2613 $as_echo "$as_me: loading cache $cache_file" >&6;}
2615 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2616 *) . "./$cache_file";;
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2621 $as_echo "$as_me: creating cache $cache_file" >&6;}
2625 # Check that the precious variables saved in the cache have kept the same
2627 ac_cache_corrupted=false
2628 for ac_var in $ac_precious_vars; do
2629 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2630 eval ac_new_set=\$ac_env_${ac_var}_set
2631 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2632 eval ac_new_val=\$ac_env_${ac_var}_value
2633 case $ac_old_set,$ac_new_set in
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2636 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2637 ac_cache_corrupted=: ;;
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2640 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2641 ac_cache_corrupted=: ;;
2644 if test "x$ac_old_val" != "x$ac_new_val"; then
2645 # differences in whitespace do not lead to failure.
2646 ac_old_val_w=`echo x
$ac_old_val`
2647 ac_new_val_w=`echo x
$ac_new_val`
2648 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2650 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2651 ac_cache_corrupted=:
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2654 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2655 eval $ac_var=\$ac_old_val
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2658 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2660 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2663 # Pass precious variables to config.status.
2664 if test "$ac_new_set" = set; then
2666 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2667 *) ac_arg=$ac_var=$ac_new_val ;;
2669 case " $ac_configure_args " in
2670 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2671 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2675 if $ac_cache_corrupted; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2679 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2680 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2682 ## -------------------- ##
2683 ## Main body of script. ##
2684 ## -------------------- ##
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696 ac_config_headers="$ac_config_headers config.h:config.in"
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2700 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2701 # Check whether --enable-maintainer-mode was given.
2702 if test "${enable_maintainer_mode+set}" = set; then :
2703 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2705 USE_MAINTAINER_MODE=no
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2709 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2710 if test $USE_MAINTAINER_MODE = yes; then
2711 MAINTAINER_MODE_TRUE=
2712 MAINTAINER_MODE_FALSE='#'
2714 MAINTAINER_MODE_TRUE='#'
2715 MAINTAINER_MODE_FALSE=
2718 MAINT=$MAINTAINER_MODE_TRUE
2722 # Set the 'development' global.
2723 . $srcdir/../bfd/development.sh
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if test "${ac_cv_prog_CC+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2769 if test -z "$ac_cv_prog_CC"; then
2771 # Extract the first word of "gcc", so it can be a program name with args.
2772 set dummy gcc; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2778 if test -n "$ac_ct_CC"; then
2779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_ac_ct_CC="gcc"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2799 if test -n "$ac_ct_CC"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2801 $as_echo "$ac_ct_CC" >&6; }
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2807 if test "x$ac_ct_CC" = x; then
2810 case $cross_compiling:$ac_tool_warned in
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814 ac_tool_warned=yes ;;
2822 if test -z "$CC"; then
2823 if test -n "$ac_tool_prefix"; then
2824 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2825 set dummy ${ac_tool_prefix}cc; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if test "${ac_cv_prog_CC+set}" = set; then :
2829 $as_echo_n "(cached) " >&6
2831 if test -n "$CC"; then
2832 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_CC="${ac_tool_prefix}cc"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 if test -n "$CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854 $as_echo "$CC" >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2863 if test -z "$CC"; then
2864 # Extract the first word of "cc", so it can be a program name with args.
2865 set dummy cc; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_CC+set}" = set; then :
2869 $as_echo_n "(cached) " >&6
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC="$CC" # Let the user override the test.
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2883 ac_prog_rejected=yes
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 if test $ac_prog_rejected = yes; then
2895 # We found a bogon in the path, so make sure we never use it.
2896 set dummy $ac_cv_prog_CC
2898 if test $# != 0; then
2899 # We chose a different compiler from the bogus one.
2900 # However, it has the same basename, so the bogon will be chosen
2901 # first if we set CC to just the basename; use the full file name.
2903 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2919 if test -z "$CC"; then
2920 if test -n "$ac_tool_prefix"; then
2921 for ac_prog in cl.exe
2923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2924 set dummy $ac_tool_prefix$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_CC+set}" = set; then :
2928 $as_echo_n "(cached) " >&6
2930 if test -n "$CC"; then
2931 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$ac_prog"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 if test -n "$CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2960 test -n "$CC" && break
2963 if test -z "$CC"; then
2965 for ac_prog in cl.exe
2967 # Extract the first word of "$ac_prog", so it can be a program name with args.
2968 set dummy $ac_prog; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_ac_ct_CC="$ac_prog"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 $as_echo "$ac_ct_CC" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3004 test -n "$ac_ct_CC" && break
3007 if test "x$ac_ct_CC" = x; then
3010 case $cross_compiling:$ac_tool_warned in
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3023 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 as_fn_error "no acceptable C compiler found
in \
$PATH
3026 See \
`config.log' for more details." "$LINENO" 5; }
3028 # Provide some information about the compiler.
3029 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3032 for ac_option in --version -v -V -qversion; do
3033 { { ac_try="$ac_compiler $ac_option >&5"
3035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3036 *) ac_try_echo
=$ac_try;;
3038 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 $as_echo "$ac_try_echo"; } >&5
3040 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3042 if test -s conftest.err
; then
3044 ... rest of stderr output deleted ...
3045 10q' conftest.err
>conftest.er1
3046 cat conftest.er1
>&5
3047 rm -f conftest.er1 conftest.err
3049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050 test $ac_status = 0; }
3053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3054 /* end confdefs.h. */
3064 ac_clean_files_save
=$ac_clean_files
3065 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3070 $as_echo_n "checking for C compiler default output file name... " >&6; }
3071 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3073 # The possible output files:
3074 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3077 for ac_file
in $ac_files
3080 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3081 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3086 if { { ac_try
="$ac_link_default"
3088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092 $as_echo "$ac_try_echo"; } >&5
3093 (eval "$ac_link_default") 2>&5
3095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096 test $ac_status = 0; }; then :
3097 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3098 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3099 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3100 # so that the user can short-circuit this test for compilers unknown to
3102 for ac_file in $ac_files ''
3104 test -f "$ac_file" || continue
3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3109 # We found the default executable, but exeext='' is most
3113 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3115 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117 # We set ac_cv_exeext here because the later test for it is not
3118 # safe: cross compilers may not add the suffix if given an `-o'
3119 # argument, so we may need to know it at that point already.
3120 # Even if this section looks crufty: it has the advantage of
3127 test "$ac_cv_exeext" = no && ac_cv_exeext=
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3133 $as_echo "$ac_file" >&6; }
3134 if test -z "$ac_file"; then :
3135 $as_echo "$as_me: failed program was:" >&5
3136 sed 's
/^
/|
/' conftest.$ac_ext >&5
3138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3140 { as_fn_set_status 77
3141 as_fn_error "C compiler cannot create executables
3142 See \`config.log
' for more details." "$LINENO" 5; }; }
3144 ac_exeext=$ac_cv_exeext
3146 # Check that the compiler produces executables we can run. If not, either
3147 # the compiler is broken, or we cross compile.
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3149 $as_echo_n "checking whether the C compiler works... " >&6; }
3150 # If not cross compiling, check that we can run a simple program.
3151 if test "$cross_compiling" != yes; then
3152 if { ac_try='.
/$ac_file'
3153 { { case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 $as_echo "$ac_try_echo"; } >&5
3159 (eval "$ac_try") 2>&5
3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162 test $ac_status = 0; }; }; then
3165 if test "$cross_compiling" = maybe; then
3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3170 as_fn_error "cannot run C compiled programs.
3171 If you meant to cross compile, use \`--host'.
3172 See \`config.log' for more details.
" "$LINENO" 5; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3177 $as_echo "yes" >&6; }
3179 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3180 ac_clean_files=$ac_clean_files_save
3181 # Check that the compiler produces executables we can run. If not, either
3182 # the compiler is broken, or we cross compile.
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3184 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3186 $as_echo "$cross_compiling" >&6; }
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3189 $as_echo_n "checking
for suffix of executables...
" >&6; }
3190 if { { ac_try="$ac_link"
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197 (eval "$ac_link") 2>&5
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3200 test $ac_status = 0; }; then :
3201 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3202 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3203 # work properly (i.e., refer to `conftest.exe'), while it won't with
3205 for ac_file in conftest.exe conftest conftest.*; do
3206 test -f "$ac_file" || continue
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3209 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error "cannot compute suffix of executables: cannot compile and link
3218 See \`config.log' for more details.
" "$LINENO" 5; }
3220 rm -f conftest$ac_cv_exeext
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3222 $as_echo "$ac_cv_exeext" >&6; }
3224 rm -f conftest.$ac_ext
3225 EXEEXT=$ac_cv_exeext
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3228 $as_echo_n "checking
for suffix of object files...
" >&6; }
3229 if test "${ac_cv_objext+set}" = set; then :
3230 $as_echo_n "(cached
) " >&6
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3243 rm -f conftest.o conftest.obj
3244 if { { ac_try="$ac_compile"
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3249 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250 $as_echo "$ac_try_echo"; } >&5
3251 (eval "$ac_compile") 2>&5
3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3254 test $ac_status = 0; }; then :
3255 for ac_file in conftest.o conftest.obj conftest.*; do
3256 test -f "$ac_file" || continue;
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3259 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3264 $as_echo "$as_me: failed program was
:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269 as_fn_error "cannot compute suffix of object files: cannot compile
3270 See \`config.log' for more details.
" "$LINENO" 5; }
3272 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3275 $as_echo "$ac_cv_objext" >&6; }
3276 OBJEXT=$ac_cv_objext
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3279 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3280 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3281 $as_echo_n "(cached
) " >&6
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3297 if ac_fn_c_try_compile "$LINENO"; then :
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3307 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3308 if test $ac_compiler_gnu = yes; then
3313 ac_test_CFLAGS=${CFLAGS+set}
3314 ac_save_CFLAGS=$CFLAGS
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3316 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3317 if test "${ac_cv_prog_cc_g+set}" = set; then :
3318 $as_echo_n "(cached
) " >&6
3320 ac_save_c_werror_flag=$ac_c_werror_flag
3321 ac_c_werror_flag=yes
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3335 if ac_fn_c_try_compile "$LINENO"; then :
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3350 if ac_fn_c_try_compile "$LINENO"; then :
3353 ac_c_werror_flag=$ac_save_c_werror_flag
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3366 if ac_fn_c_try_compile "$LINENO"; then :
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 ac_c_werror_flag=$ac_save_c_werror_flag
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3377 $as_echo "$ac_cv_prog_cc_g" >&6; }
3378 if test "$ac_test_CFLAGS" = set; then
3379 CFLAGS=$ac_save_CFLAGS
3380 elif test $ac_cv_prog_cc_g = yes; then
3381 if test "$GCC" = yes; then
3387 if test "$GCC" = yes; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3394 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3395 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3396 $as_echo_n "(cached
) " >&6
3398 ac_cv_prog_cc_c89=no
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3404 #include <sys/types.h>
3405 #include <sys/stat.h>
3406 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3407 struct buf { int x; };
3408 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3409 static char *e (p, i)
3415 static char *f (char * (*g) (char **, int), char **p, ...)
3420 s = g (p, va_arg (v,int));
3425 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3426 function prototypes and stuff, but not '\xHH' hex character constants.
3427 These don't provoke an error unfortunately, instead are silently treated
3428 as 'x'. The following induces an error, until -std is added to get
3429 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3430 array size at least. It's necessary to write '\x00'==0 to get something
3431 that's true only with -std. */
3432 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3434 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3435 inside strings and character constants. */
3437 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3439 int test (int i, double x);
3440 struct s1 {int (*f) (int a);};
3441 struct s2 {int (*f) (double a);};
3442 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3448 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3453 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3454 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3456 CC="$ac_save_CC $ac_arg"
3457 if ac_fn_c_try_compile "$LINENO"; then :
3458 ac_cv_prog_cc_c89=$ac_arg
3460 rm -f core conftest.err conftest.$ac_objext
3461 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3463 rm -f conftest.$ac_ext
3468 case "x
$ac_cv_prog_cc_c89" in
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3471 $as_echo "none needed
" >&6; } ;;
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3474 $as_echo "unsupported
" >&6; } ;;
3476 CC="$CC $ac_cv_prog_cc_c89"
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3478 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3480 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3485 ac_cpp='$CPP $CPPFLAGS'
3486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3497 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3498 # On Suns, sometimes $CPP names a directory.
3499 if test -n "$CPP" && test -d "$CPP"; then
3502 if test -z "$CPP"; then
3503 if test "${ac_cv_prog_CPP+set}" = set; then :
3504 $as_echo_n "(cached
) " >&6
3506 # Double quotes because CPP needs to be expanded
3507 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3510 for ac_c_preproc_warn_flag in '' yes
3512 # Use a header file that comes with gcc, so configuring glibc
3513 # with a fresh cross-compiler works.
3514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3515 # <limits.h> exists even on freestanding compilers.
3516 # On the NeXT, cc -E runs the code through the compiler's parser,
3517 # not just through cpp. "Syntax error
" is here to catch this case.
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3521 # include <limits.h>
3523 # include <assert.h>
3527 if ac_fn_c_try_cpp "$LINENO"; then :
3530 # Broken: fails on valid input.
3533 rm -f conftest.err conftest.$ac_ext
3535 # OK, works on sane cases. Now check whether nonexistent headers
3536 # can be detected and how.
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3539 #include <ac_nonexistent.h>
3541 if ac_fn_c_try_cpp "$LINENO"; then :
3542 # Broken: success on invalid input.
3545 # Passes both tests.
3549 rm -f conftest.err conftest.$ac_ext
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then :
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3567 $as_echo "$CPP" >&6; }
3569 for ac_c_preproc_warn_flag in '' yes
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error
" is here to catch this case.
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3580 # include <limits.h>
3582 # include <assert.h>
3586 if ac_fn_c_try_cpp "$LINENO"; then :
3589 # Broken: fails on valid input.
3592 rm -f conftest.err conftest.$ac_ext
3594 # OK, works on sane cases. Now check whether nonexistent headers
3595 # can be detected and how.
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598 #include <ac_nonexistent.h>
3600 if ac_fn_c_try_cpp "$LINENO"; then :
3601 # Broken: success on invalid input.
3604 # Passes both tests.
3608 rm -f conftest.err conftest.$ac_ext
3611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3612 rm -f conftest.err conftest.$ac_ext
3613 if $ac_preproc_ok; then :
3616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3619 See \`config.log' for more details.
" "$LINENO" 5; }
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3630 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3631 if test "${ac_cv_path_GREP+set}" = set; then :
3632 $as_echo_n "(cached
) " >&6
3634 if test -z "$GREP"; then
3635 ac_path_GREP_found=false
3636 # Loop through the user's path and test for each of PROGNAME-LIST
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3641 test -z "$as_dir" && as_dir=.
3642 for ac_prog in grep ggrep; do
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3645 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3646 # Check for GNU ac_path_GREP and select it if it is found.
3647 # Check for GNU $ac_path_GREP
3648 case `"$ac_path_GREP" --version 2>&1` in
3650 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3653 $as_echo_n 0123456789 >"conftest.
in"
3656 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3657 mv "conftest.tmp
" "conftest.
in"
3658 cp "conftest.
in" "conftest.
nl"
3659 $as_echo 'GREP' >> "conftest.
nl"
3660 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3661 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3662 as_fn_arith $ac_count + 1 && ac_count=$as_val
3663 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3664 # Best one so far, save it but keep looking for a better one
3665 ac_cv_path_GREP="$ac_path_GREP"
3666 ac_path_GREP_max=$ac_count
3668 # 10*(2^10) chars as input seems more than enough
3669 test $ac_count -gt 10 && break
3671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3674 $ac_path_GREP_found && break 3
3679 if test -z "$ac_cv_path_GREP"; then
3680 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3683 ac_cv_path_GREP=$GREP
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3688 $as_echo "$ac_cv_path_GREP" >&6; }
3689 GREP="$ac_cv_path_GREP"
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3693 $as_echo_n "checking
for egrep...
" >&6; }
3694 if test "${ac_cv_path_EGREP+set}" = set; then :
3695 $as_echo_n "(cached
) " >&6
3697 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3698 then ac_cv_path_EGREP="$GREP -E"
3700 if test -z "$EGREP"; then
3701 ac_path_EGREP_found=false
3702 # Loop through the user's path and test for each of PROGNAME-LIST
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3707 test -z "$as_dir" && as_dir=.
3708 for ac_prog in egrep; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3712 # Check for GNU ac_path_EGREP and select it if it is found.
3713 # Check for GNU $ac_path_EGREP
3714 case `"$ac_path_EGREP" --version 2>&1` in
3716 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3719 $as_echo_n 0123456789 >"conftest.
in"
3722 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3723 mv "conftest.tmp
" "conftest.
in"
3724 cp "conftest.
in" "conftest.
nl"
3725 $as_echo 'EGREP' >> "conftest.
nl"
3726 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3727 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3728 as_fn_arith $ac_count + 1 && ac_count=$as_val
3729 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_EGREP="$ac_path_EGREP"
3732 ac_path_EGREP_max=$ac_count
3734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3740 $ac_path_EGREP_found && break 3
3745 if test -z "$ac_cv_path_EGREP"; then
3746 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3749 ac_cv_path_EGREP=$EGREP
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3755 $as_echo "$ac_cv_path_EGREP" >&6; }
3756 EGREP="$ac_cv_path_EGREP"
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3760 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3761 if test "${ac_cv_header_stdc+set}" = set; then :
3762 $as_echo_n "(cached
) " >&6
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3779 if ac_fn_c_try_compile "$LINENO"; then :
3780 ac_cv_header_stdc=yes
3782 ac_cv_header_stdc=no
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 if test $ac_cv_header_stdc = yes; then
3787 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3793 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3794 $EGREP "memchr
" >/dev/null 2>&1; then :
3797 ac_cv_header_stdc=no
3803 if test $ac_cv_header_stdc = yes; then
3804 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3810 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3811 $EGREP "free
" >/dev/null 2>&1; then :
3814 ac_cv_header_stdc=no
3820 if test $ac_cv_header_stdc = yes; then
3821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3822 if test "$cross_compiling" = yes; then :
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3829 #if ((' ' & 0x0FF) == 0x020)
3830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3833 # define ISLOWER(c) \
3834 (('a' <= (c) && (c) <= 'i') \
3835 || ('j' <= (c) && (c) <= 'r') \
3836 || ('s' <= (c) && (c) <= 'z'))
3837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3845 for (i = 0; i < 256; i++)
3846 if (XOR (islower (i), ISLOWER (i))
3847 || toupper (i) != TOUPPER (i))
3852 if ac_fn_c_try_run "$LINENO"; then :
3855 ac_cv_header_stdc=no
3857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3858 conftest.$ac_objext conftest.beam conftest.$ac_ext
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3864 $as_echo "$ac_cv_header_stdc" >&6; }
3865 if test $ac_cv_header_stdc = yes; then
3867 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3871 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3872 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3873 inttypes.h stdint.h unistd.h
3875 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3876 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3878 eval as_val
=\$
$as_ac_Header
3879 if test "x$as_val" = x
""yes; then :
3880 cat >>confdefs.h
<<_ACEOF
3881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3890 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3891 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3898 if test "$MINIX" = yes; then
3900 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3903 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3906 $as_echo "#define _MINIX 1" >>confdefs.h
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3912 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3913 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3919 # define __EXTENSIONS__ 1
3920 $ac_includes_default
3929 if ac_fn_c_try_compile
"$LINENO"; then :
3930 ac_cv_safe_to_define___extensions__
=yes
3932 ac_cv_safe_to_define___extensions__
=no
3934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3937 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3938 test $ac_cv_safe_to_define___extensions__ = yes &&
3939 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3941 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3943 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3945 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3947 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3951 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3952 for ac_t
in install-sh
install.sh shtool
; do
3953 if test -f "$ac_dir/$ac_t"; then
3955 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3960 if test -z "$ac_aux_dir"; then
3961 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3964 # These three variables are undocumented and unsupported,
3965 # and are intended to be withdrawn in a future Autoconf release.
3966 # They can cause serious problems if a builder's source tree is in a directory
3967 # whose full name contains unusual characters.
3968 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3969 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3970 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3973 # Make sure we can run config.sub.
3974 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3975 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3978 $as_echo_n "checking build system type... " >&6; }
3979 if test "${ac_cv_build+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3982 ac_build_alias
=$build_alias
3983 test "x$ac_build_alias" = x
&&
3984 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3985 test "x$ac_build_alias" = x
&&
3986 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3987 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3988 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3992 $as_echo "$ac_cv_build" >&6; }
3993 case $ac_cv_build in
3995 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3998 ac_save_IFS
=$IFS; IFS
='-'
4004 # Remember, the first character of IFS is used to create $*,
4005 # except with old shells:
4008 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4012 $as_echo_n "checking host system type... " >&6; }
4013 if test "${ac_cv_host+set}" = set; then :
4014 $as_echo_n "(cached) " >&6
4016 if test "x$host_alias" = x
; then
4017 ac_cv_host
=$ac_cv_build
4019 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4020 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4025 $as_echo "$ac_cv_host" >&6; }
4028 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4031 ac_save_IFS
=$IFS; IFS
='-'
4037 # Remember, the first character of IFS is used to create $*,
4038 # except with old shells:
4041 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4045 $as_echo_n "checking target system type... " >&6; }
4046 if test "${ac_cv_target+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4049 if test "x$target_alias" = x
; then
4050 ac_cv_target
=$ac_cv_host
4052 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4053 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4058 $as_echo "$ac_cv_target" >&6; }
4059 case $ac_cv_target in
4061 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4063 target
=$ac_cv_target
4064 ac_save_IFS
=$IFS; IFS
='-'
4070 # Remember, the first character of IFS is used to create $*,
4071 # except with old shells:
4074 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4077 # The aliases save the names the user supplied, while $host etc.
4078 # will get canonicalized.
4079 test -n "$target_alias" &&
4080 test "$program_prefix$program_suffix$program_transform_name" = \
4082 program_prefix
=${target_alias}-
4084 # The tests for host and target for $enable_largefile require
4089 # As the $enable_largefile decision depends on --enable-plugins we must set it
4090 # even in directories otherwise not depending on the $plugins option.
4094 for ac_header
in dlfcn.h
4096 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4098 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
4099 cat >>confdefs.h
<<_ACEOF
4100 #define HAVE_DLFCN_H 1
4107 for ac_header
in windows.h
4109 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4111 if test "x$ac_cv_header_windows_h" = x
""yes; then :
4112 cat >>confdefs.h
<<_ACEOF
4113 #define HAVE_WINDOWS_H 1
4121 # Check whether --enable-plugins was given.
4122 if test "${enable_plugins+set}" = set; then :
4123 enableval
=$enable_plugins; case "${enableval}" in
4126 if test "$maybe_plugins" != "yes" ; then
4127 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4131 plugins
=$maybe_plugins
4135 if test "$plugins" = "yes"; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4137 $as_echo_n "checking for library containing dlopen... " >&6; }
4138 if test "${ac_cv_search_dlopen+set}" = set; then :
4139 $as_echo_n "(cached) " >&6
4141 ac_func_search_save_LIBS
=$LIBS
4142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4145 /* Override any GCC internal prototype to avoid an error.
4146 Use char because int might match the return type of a GCC
4147 builtin and then its argument prototype would still apply. */
4160 for ac_lib
in '' dl
; do
4161 if test -z "$ac_lib"; then
4162 ac_res
="none required"
4165 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4167 if ac_fn_c_try_link
"$LINENO"; then :
4168 ac_cv_search_dlopen
=$ac_res
4170 rm -f core conftest.err conftest.
$ac_objext \
4172 if test "${ac_cv_search_dlopen+set}" = set; then :
4176 if test "${ac_cv_search_dlopen+set}" = set; then :
4179 ac_cv_search_dlopen
=no
4182 LIBS
=$ac_func_search_save_LIBS
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4185 $as_echo "$ac_cv_search_dlopen" >&6; }
4186 ac_res
=$ac_cv_search_dlopen
4187 if test "$ac_res" != no
; then :
4188 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4196 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4197 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4198 # are mutually exclusive; and without procfs support, the bfd/ elf module
4199 # cannot provide certain routines such as elfcore_write_prpsinfo
4200 # or elfcore_write_prstatus. So unless the user explicitly requested
4201 # large-file support through the --enable-largefile switch, disable
4202 # large-file support in favor of procfs support.
4203 test "${target}" = "${host}" -a "x$plugins" = xno \
4204 && : ${enable_largefile="no"}
4208 # Check whether --enable-largefile was given.
4209 if test "${enable_largefile+set}" = set; then :
4210 enableval
=$enable_largefile;
4213 if test "$enable_largefile" != no
; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4216 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4217 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4218 $as_echo_n "(cached) " >&6
4220 ac_cv_sys_largefile_CC
=no
4221 if test "$GCC" != yes; then
4224 # IRIX 6.2 and later do not support large files by default,
4225 # so use the C compiler's -n32 option if that helps.
4226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #include <sys/types.h>
4229 /* Check that off_t can represent 2**63 - 1 correctly.
4230 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4231 since some C++ compilers masquerading as C compilers
4232 incorrectly reject 9223372036854775807. */
4233 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4234 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4235 && LARGE_OFF_T % 2147483647 == 1)
4245 if ac_fn_c_try_compile
"$LINENO"; then :
4248 rm -f core conftest.err conftest.
$ac_objext
4250 if ac_fn_c_try_compile
"$LINENO"; then :
4251 ac_cv_sys_largefile_CC
=' -n32'; break
4253 rm -f core conftest.err conftest.
$ac_objext
4257 rm -f conftest.
$ac_ext
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4261 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4262 if test "$ac_cv_sys_largefile_CC" != no
; then
4263 CC
=$CC$ac_cv_sys_largefile_CC
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4267 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4268 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274 #include <sys/types.h>
4275 /* Check that off_t can represent 2**63 - 1 correctly.
4276 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4277 since some C++ compilers masquerading as C compilers
4278 incorrectly reject 9223372036854775807. */
4279 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4280 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4281 && LARGE_OFF_T % 2147483647 == 1)
4291 if ac_fn_c_try_compile
"$LINENO"; then :
4292 ac_cv_sys_file_offset_bits
=no
; break
4294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 #define _FILE_OFFSET_BITS 64
4298 #include <sys/types.h>
4299 /* Check that off_t can represent 2**63 - 1 correctly.
4300 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4301 since some C++ compilers masquerading as C compilers
4302 incorrectly reject 9223372036854775807. */
4303 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4304 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4305 && LARGE_OFF_T % 2147483647 == 1)
4315 if ac_fn_c_try_compile
"$LINENO"; then :
4316 ac_cv_sys_file_offset_bits
=64; break
4318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4319 ac_cv_sys_file_offset_bits
=unknown
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4324 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4325 case $ac_cv_sys_file_offset_bits in #(
4328 cat >>confdefs.h
<<_ACEOF
4329 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4334 if test $ac_cv_sys_file_offset_bits = unknown
; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4336 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4337 if test "${ac_cv_sys_large_files+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343 #include <sys/types.h>
4344 /* Check that off_t can represent 2**63 - 1 correctly.
4345 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4346 since some C++ compilers masquerading as C compilers
4347 incorrectly reject 9223372036854775807. */
4348 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4349 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4350 && LARGE_OFF_T % 2147483647 == 1)
4360 if ac_fn_c_try_compile
"$LINENO"; then :
4361 ac_cv_sys_large_files
=no
; break
4363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366 #define _LARGE_FILES 1
4367 #include <sys/types.h>
4368 /* Check that off_t can represent 2**63 - 1 correctly.
4369 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4370 since some C++ compilers masquerading as C compilers
4371 incorrectly reject 9223372036854775807. */
4372 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4373 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4374 && LARGE_OFF_T % 2147483647 == 1)
4384 if ac_fn_c_try_compile
"$LINENO"; then :
4385 ac_cv_sys_large_files
=1; break
4387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4388 ac_cv_sys_large_files
=unknown
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4393 $as_echo "$ac_cv_sys_large_files" >&6; }
4394 case $ac_cv_sys_large_files in #(
4397 cat >>confdefs.h
<<_ACEOF
4398 #define _LARGE_FILES $ac_cv_sys_large_files
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4411 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4412 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4415 am_cv_prog_cc_stdc
=no
4417 # Don't try gcc -ansi; that turns off useful extensions and
4418 # breaks some systems' header files.
4419 # AIX -qlanglvl=ansi
4420 # Ultrix and OSF/1 -std1
4421 # HP-UX 10.20 and later -Ae
4422 # HP-UX older versions -Aa -D_HPUX_SOURCE
4423 # SVR4 -Xc -D__EXTENSIONS__
4424 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4426 CC
="$ac_save_CC $ac_arg"
4427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4431 #include <sys/types.h>
4432 #include <sys/stat.h>
4433 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4434 struct buf { int x; };
4435 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4436 static char *e (p, i)
4442 static char *f (char * (*g) (char **, int), char **p, ...)
4447 s = g (p, va_arg (v,int));
4451 int test (int i, double x);
4452 struct s1 {int (*f) (int a);};
4453 struct s2 {int (*f) (double a);};
4454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4462 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4468 if ac_fn_c_try_compile
"$LINENO"; then :
4469 am_cv_prog_cc_stdc
="$ac_arg"; break
4471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4477 if test -z "$am_cv_prog_cc_stdc"; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4479 $as_echo "none needed" >&6; }
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4482 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4484 case "x$am_cv_prog_cc_stdc" in
4486 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4489 # expand $ac_aux_dir to an absolute path
4490 am_aux_dir
=`cd $ac_aux_dir && pwd`
4492 if test x
"${install_sh}" != xset
; then
4495 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4497 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4501 # Installed binaries are usually stripped using `strip' when the user
4502 # run `make install-strip'. However `strip' might not be the right
4503 # tool to use in cross-compilation environments, therefore Automake
4504 # will honor the `STRIP' environment variable to overrule this program.
4505 if test "$cross_compiling" != no
; then
4506 if test -n "$ac_tool_prefix"; then
4507 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4508 set dummy
${ac_tool_prefix}strip
; 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_STRIP+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4514 if test -n "$STRIP"; then
4515 ac_cv_prog_STRIP
="$STRIP" # 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_STRIP
="${ac_tool_prefix}strip"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 STRIP
=$ac_cv_prog_STRIP
4535 if test -n "$STRIP"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4537 $as_echo "$STRIP" >&6; }
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4545 if test -z "$ac_cv_prog_STRIP"; then
4547 # Extract the first word of "strip", so it can be a program name with args.
4548 set dummy strip
; ac_word
=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4554 if test -n "$ac_ct_STRIP"; then
4555 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir
=.
4562 for ac_exec_ext
in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 ac_cv_prog_ac_ct_STRIP
="strip"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4575 if test -n "$ac_ct_STRIP"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4577 $as_echo "$ac_ct_STRIP" >&6; }
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4583 if test "x$ac_ct_STRIP" = x
; then
4586 case $cross_compiling:$ac_tool_warned in
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4590 ac_tool_warned
=yes ;;
4595 STRIP
="$ac_cv_prog_STRIP"
4599 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4603 for ac_dir
in ..
"$srcdir"/..
; do
4604 for ac_t
in install-sh
install.sh shtool
; do
4605 if test -f "$ac_dir/$ac_t"; then
4607 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4612 if test -z "$ac_aux_dir"; then
4613 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4616 # These three variables are undocumented and unsupported,
4617 # and are intended to be withdrawn in a future Autoconf release.
4618 # They can cause serious problems if a builder's source tree is in a directory
4619 # whose full name contains unusual characters.
4620 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4621 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4622 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4626 test "$program_prefix" != NONE
&&
4627 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4628 # Use a double $ so make ignores it.
4629 test "$program_suffix" != NONE
&&
4630 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4631 # Double any \ or $.
4632 # By default was `s,x,x', remove it if useless.
4633 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4634 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4637 # Dependency checking.
4638 rm -rf .tst
2>/dev
/null
4639 mkdir .tst
2>/dev
/null
4640 if test -d .tst
; then
4645 rmdir .tst
2>/dev
/null
4647 DEPDIR
="${am__leading_dot}deps"
4649 ac_config_commands
="$ac_config_commands depdir"
4652 depcc
="$CC" am_compiler_list
=
4654 am_depcomp
=$ac_aux_dir/depcomp
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4656 $as_echo_n "checking dependency style of $depcc... " >&6; }
4657 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4660 if test -f "$am_depcomp"; then
4661 # We make a subdir and do the tests there. Otherwise we can end up
4662 # making bogus files that we don't know about and never remove. For
4663 # instance it was reported that on HP-UX the gcc test will end up
4664 # making a dummy file named `D' -- because `-MD' means `put the output
4667 # Copy depcomp to subdir because otherwise we won't find it if we're
4668 # using a relative directory.
4669 cp "$am_depcomp" conftest.dir
4671 # We will build objects and dependencies in a subdirectory because
4672 # it helps to detect inapplicable dependency modes. For instance
4673 # both Tru64's cc and ICC support -MD to output dependencies as a
4674 # side effect of compilation, but ICC will put the dependencies in
4675 # the current directory while Tru64 will put them in the object
4679 am_cv_CC_dependencies_compiler_type
=none
4680 if test "$am_compiler_list" = ""; then
4681 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4683 for depmode
in $am_compiler_list; do
4684 if test $depmode = none
; then break; fi
4686 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4687 # Setup a source with many dependencies, because some compilers
4688 # like to wrap large dependency lists on column 80 (with \), and
4689 # we should not choose a depcomp mode which is confused by this.
4691 # We need to recreate these files for each test, as the compiler may
4692 # overwrite some of them when testing with obscure command lines.
4693 # This happens at least with the AIX C compiler.
4695 for i
in 1 2 3 4 5 6; do
4696 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4697 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4698 # Solaris 8's {/usr,}/bin/sh.
4699 touch sub
/conftst
$i.h
4701 echo "include sub/conftest.Po" > confmf
4703 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4704 # mode. It turns out that the SunPro C++ compiler does not properly
4705 # handle `-M -o', and we need to detect this.
4706 depcmd
="depmode=$depmode \
4707 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4708 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4709 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4710 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4711 if env
$depcmd > conftest.err
2>&1 &&
4712 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4713 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4714 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4715 # icc doesn't choke on unknown options, it will just issue warnings
4716 # or remarks (even with -Werror). So we grep stderr for any message
4717 # that says an option was ignored or not supported.
4718 # When given -MP, icc 7.0 and 7.1 complain thusly:
4719 # icc: Command line warning: ignoring option '-M'; no argument required
4720 # The diagnosis changed in icc 8.0:
4721 # icc: Command line remark: option '-MP' not supported
4722 if (grep 'ignoring option' conftest.err ||
4723 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4724 am_cv_CC_dependencies_compiler_type
=$depmode
4725 $as_echo "$as_me:$LINENO: success" >&5
4729 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4730 sed -e 's/^/| /' < conftest.err
>&5
4736 am_cv_CC_dependencies_compiler_type
=none
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4741 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4742 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4743 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4744 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4749 # Check for the 'make' the user wants to use.
4752 # Extract the first word of "$ac_prog", so it can be a program name with args.
4753 set dummy
$ac_prog; ac_word
=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_MAKE+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4759 if test -n "$MAKE"; then
4760 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir
=.
4767 for ac_exec_ext
in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_prog_MAKE
="$ac_prog"
4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 MAKE
=$ac_cv_prog_MAKE
4780 if test -n "$MAKE"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4782 $as_echo "$MAKE" >&6; }
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4789 test -n "$MAKE" && break
4793 case "`$MAKE --version 2>&1 | sed 1q`" in
4798 if test "$MAKE_IS_GNU" = yes; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4807 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4809 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4810 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4811 $as_echo_n "(cached) " >&6
4813 cat >conftest.
make <<\_ACEOF
4816 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4818 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4819 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4821 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4823 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4827 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4829 $as_echo "yes" >&6; }
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4834 SET_MAKE
="MAKE=${MAKE-make}"
4838 # Configure gnulib. We need to build gnulib under some other
4839 # directory not "gnulib", to avoid the problem of both GDB and
4840 # GDBserver wanting to build it in the same directory, when building
4841 # in the source dir.
4844 in_build
="build-gnulib"
4846 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4847 # so they do not pile up.
4848 ac_sub_configure_args
=
4850 eval "set x $ac_configure_args"
4854 if test -n "$ac_prev"; then
4859 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
4860 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
4861 ac_prev
=cache_file
;;
4862 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
4863 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
4866 --config-cache |
-C)
4868 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
4870 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
4872 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
4874 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
4876 --disable-option-checking)
4880 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4882 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
4886 # Always prepend --prefix to ensure using the same prefix
4887 # in subdir configurations.
4888 ac_arg
="--prefix=$prefix"
4890 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4892 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
4895 if test "$silent" = yes; then
4896 ac_sub_configure_args
="--silent $ac_sub_configure_args"
4899 # Always prepend --disable-option-checking to silence warnings, since
4900 # different subdirs can have different --enable and --with options.
4901 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
4906 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4908 $as_echo "$ac_msg" >&6
4909 as_dir
="$ac_dir"; as_fn_mkdir_p
4913 ac_srcdir
=$srcdir/$in_src ;;
4915 ac_srcdir
=..
/$srcdir/$in_src ;;
4920 ac_sub_configure
=$ac_srcdir/configure
4922 # Make the cache file name correct relative to the subdirectory.
4924 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
4926 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
4929 { $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
4930 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4931 # The eval makes quoting arguments work.
4932 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4933 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4934 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4950 # If we haven't got the data from the intl directory,
4951 # assume NLS is disabled.
4960 if test -f ..
/intl
/config.intl
; then
4961 . ..
/intl
/config.intl
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4964 $as_echo_n "checking whether NLS is requested... " >&6; }
4965 if test x
"$USE_NLS" != xyes
; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4970 $as_echo "yes" >&6; }
4972 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4976 $as_echo_n "checking for catalogs to be installed... " >&6; }
4977 # Look for .po and .gmo files in the source directory.
4980 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4981 # If there aren't any .gmo files the shell will give us the
4982 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4984 case "$cat" in *\
**)
4987 # The quadruple backslash is collapsed to a double backslash
4988 # by the backticks, then collapsed again by the double quotes,
4989 # leaving us with one backslash in the sed expression (right
4990 # before the dot that mustn't act as a wildcard).
4991 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4992 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4993 # The user is allowed to set LINGUAS to a list of languages to
4994 # install catalogs for. If it's empty that means "all of them."
4995 if test "x$LINGUAS" = x
; then
4996 CATALOGS
="$CATALOGS $cat"
4997 XLINGUAS
="$XLINGUAS $lang"
4999 case "$LINGUAS" in *$lang*)
5000 CATALOGS
="$CATALOGS $cat"
5001 XLINGUAS
="$XLINGUAS $lang"
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5008 $as_echo "$LINGUAS" >&6; }
5021 localedir
='${datadir}/locale'
5024 if test x
"$USE_NLS" = xyes
; then
5025 CONFIG_ALL
="$CONFIG_ALL all-po"
5026 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
5027 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
5028 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
5031 GNULIB
=build-gnulib
/import
5033 # For Makefile dependencies.
5035 if test x
"$STDINT_H" != x
; then
5036 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
5042 cat >>confdefs.h
<<_ACEOF
5043 #define PACKAGE "$PACKAGE"
5048 # We never need to detect it in this sub-configure.
5049 # But preserve it for config.status --recheck.
5053 MAKEINFO_EXTRA_FLAGS
=""
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5055 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5056 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5059 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5060 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5061 gdb_cv_have_makeinfo_click
=yes
5063 gdb_cv_have_makeinfo_click
=no
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5067 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5068 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
5069 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5075 # Check whether --with-separate-debug-dir was given.
5076 if test "${with_separate_debug_dir+set}" = set; then :
5077 withval
=$with_separate_debug_dir;
5080 DEBUGDIR
=${libdir}/debug
5084 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5085 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5086 ac_define_dir
=`eval echo $DEBUGDIR`
5087 ac_define_dir
=`eval echo $ac_define_dir`
5089 cat >>confdefs.h
<<_ACEOF
5090 #define DEBUGDIR "$ac_define_dir"
5096 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5097 if test "x$prefix" = xNONE
; then
5098 test_prefix
=/usr
/local
5103 test_prefix
=$exec_prefix
5106 case ${ac_define_dir} in
5107 "${test_prefix}"|
"${test_prefix}/"*|\
5108 '${exec_prefix}'|
'${exec_prefix}/'*)
5113 cat >>confdefs.h
<<_ACEOF
5114 #define DEBUGDIR_RELOCATABLE $value
5120 # We can't pass paths as command line arguments.
5121 # Mingw32 tries to be clever and will convert the paths for us.
5122 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5123 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5124 # This breaks GDB's relocatable path conversions since paths passed in
5125 # config.h would not get so translated, the path prefixes no longer match.
5127 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5128 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5129 ac_define_dir
=`eval echo $bindir`
5130 ac_define_dir
=`eval echo $ac_define_dir`
5132 cat >>confdefs.h
<<_ACEOF
5133 #define BINDIR "$ac_define_dir"
5138 # GDB's datadir relocation
5142 # Check whether --with-gdb-datadir was given.
5143 if test "${with_gdb_datadir+set}" = set; then :
5144 withval
=$with_gdb_datadir;
5145 GDB_DATADIR
=$withval
5147 GDB_DATADIR
=${datadir}/gdb
5151 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5152 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5153 ac_define_dir
=`eval echo $GDB_DATADIR`
5154 ac_define_dir
=`eval echo $ac_define_dir`
5156 cat >>confdefs.h
<<_ACEOF
5157 #define GDB_DATADIR "$ac_define_dir"
5163 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5164 if test "x$prefix" = xNONE
; then
5165 test_prefix
=/usr
/local
5170 test_prefix
=$exec_prefix
5173 case ${ac_define_dir} in
5174 "${test_prefix}"|
"${test_prefix}/"*|\
5175 '${exec_prefix}'|
'${exec_prefix}/'*)
5180 cat >>confdefs.h
<<_ACEOF
5181 #define GDB_DATADIR_RELOCATABLE $value
5188 # Check whether --with-relocated-sources was given.
5189 if test "${with_relocated_sources+set}" = set; then :
5190 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
5192 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5193 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5194 ac_define_dir
=`eval echo $reloc_srcdir`
5195 ac_define_dir
=`eval echo $ac_define_dir`
5197 cat >>confdefs.h
<<_ACEOF
5198 #define RELOC_SRCDIR "$ac_define_dir"
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5207 $as_echo_n "checking for default auto-load directory... " >&6; }
5209 # Check whether --with-auto-load-dir was given.
5210 if test "${with_auto_load_dir+set}" = set; then :
5211 withval
=$with_auto_load_dir;
5213 with_auto_load_dir
='$debugdir:$datadir/auto-load'
5216 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5218 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5219 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5220 ac_define_dir
=`eval echo $escape_dir`
5221 ac_define_dir
=`eval echo $ac_define_dir`
5223 cat >>confdefs.h
<<_ACEOF
5224 #define AUTO_LOAD_DIR "$ac_define_dir"
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5229 $as_echo "$with_auto_load_dir" >&6; }
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5232 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5234 # Check whether --with-auto-load-safe-path was given.
5235 if test "${with_auto_load_safe_path+set}" = set; then :
5236 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5237 with_auto_load_safe_path
="/"
5240 with_auto_load_safe_path
="$with_auto_load_dir"
5243 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5245 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5246 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5247 ac_define_dir
=`eval echo $escape_dir`
5248 ac_define_dir
=`eval echo $ac_define_dir`
5250 cat >>confdefs.h
<<_ACEOF
5251 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5256 $as_echo "$with_auto_load_safe_path" >&6; }
5260 subdirs
="$subdirs testsuite"
5263 # Check whether to support alternative target configurations
5264 # Check whether --enable-targets was given.
5265 if test "${enable_targets+set}" = set; then :
5266 enableval
=$enable_targets; case "${enableval}" in
5267 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
5269 no
) enable_targets
= ;;
5270 *) enable_targets
=$enableval ;;
5275 # Check whether to enable 64-bit support on 32-bit hosts
5276 # Check whether --enable-64-bit-bfd was given.
5277 if test "${enable_64_bit_bfd+set}" = set; then :
5278 enableval
=$enable_64_bit_bfd; case "${enableval}" in
5281 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5287 # Provide defaults for some variables set by the per-host and per-target
5289 gdb_host_obs
=posix-hdep.o
5291 if test "${target}" = "${host}"; then
5297 .
$srcdir/configure.
host
5299 # Accumulate some settings from configure.tgt over all enabled targets
5303 HAVE_NATIVE_GCORE_TARGET
=
5305 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5307 if test "$targ_alias" = "all"; then
5310 # Canonicalize the secondary target names.
5311 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5312 if test -n "$result"; then
5318 .
${srcdir}/configure.tgt
5320 if test -z "${gdb_target_obs}"; then :
5321 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
5324 # Target-specific object files
5325 for i
in ${gdb_target_obs}; do
5326 case " $TARGET_OBS " in
5329 TARGET_OBS
="$TARGET_OBS ${i}"
5334 # Check whether this target needs 64-bit CORE_ADDR
5335 if test x
${want64} = xfalse
; then
5336 .
${srcdir}/..
/bfd
/config.bfd
5339 # Check whether this target is native and supports gcore.
5340 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5341 && $gdb_have_gcore; then
5342 HAVE_NATIVE_GCORE_TARGET
=1
5347 if test x
${all_targets} = xtrue
; then
5349 # We want all 64-bit targets if we either:
5350 # - run on a 64-bit host or
5351 # - already require 64-bit support for some other target or
5352 # - the --enable-64-bit-bfd option was supplied
5353 # Otherwise we only support all 32-bit targets.
5355 # NOTE: This test must be in sync with the corresponding
5358 if test x
${want64} = xfalse
; then
5359 # The cast to long int works around a bug in the HP C Compiler
5360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5362 # This bug is HP SR number 8606223364.
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5364 $as_echo_n "checking size of long... " >&6; }
5365 if test "${ac_cv_sizeof_long+set}" = set; then :
5366 $as_echo_n "(cached) " >&6
5368 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5371 if test "$ac_cv_type_long" = yes; then
5372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5374 { as_fn_set_status
77
5375 as_fn_error
"cannot compute sizeof (long)
5376 See \`config.log' for more details." "$LINENO" 5; }; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5384 $as_echo "$ac_cv_sizeof_long" >&6; }
5388 cat >>confdefs.h
<<_ACEOF
5389 #define SIZEOF_LONG $ac_cv_sizeof_long
5393 if test "x${ac_cv_sizeof_long}" = "x8"; then
5397 if test x
${want64} = xtrue
; then
5398 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5400 TARGET_OBS
='$(ALL_TARGET_OBS)'
5407 # For other settings, only the main target counts.
5411 targ
=$target; .
${srcdir}/configure.tgt
5413 # Fetch the default architecture and default target vector from BFD.
5414 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5416 # We only want the first architecture, so strip off the others if
5417 # there is more than one.
5418 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5420 if test "x$targ_archs" != x
; then
5422 cat >>confdefs.h
<<_ACEOF
5423 #define DEFAULT_BFD_ARCH $targ_archs
5427 if test "x$targ_defvec" != x
; then
5429 cat >>confdefs.h
<<_ACEOF
5430 #define DEFAULT_BFD_VEC $targ_defvec
5435 # The CLI cannot be disabled yet, but may be in the future.
5438 # Check whether --enable-gdbcli was given.
5439 if test "${enable_gdbcli+set}" = set; then :
5440 enableval
=$enable_gdbcli; case $enableval in
5444 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5446 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5452 if test x
"$enable_gdbcli" = xyes
; then
5453 if test -d $srcdir/cli
; then
5454 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5455 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5456 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5457 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5462 # Check whether --enable-gdbmi was given.
5463 if test "${enable_gdbmi+set}" = set; then :
5464 enableval
=$enable_gdbmi; case $enableval in
5468 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5474 if test x
"$enable_gdbmi" = xyes
; then
5475 if test -d $srcdir/mi
; then
5476 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5477 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5478 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5479 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5484 # Check whether --enable-tui was given.
5485 if test "${enable_tui+set}" = set; then :
5486 enableval
=$enable_tui; case $enableval in
5490 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5498 # Check whether --enable-gdbtk was given.
5499 if test "${enable_gdbtk+set}" = set; then :
5500 enableval
=$enable_gdbtk; case $enableval in
5504 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5507 if test -d $srcdir/gdbtk
; then
5514 # We unconditionally disable gdbtk tests on selected platforms.
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5518 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5522 # Libunwind support for ia64.
5525 # Check whether --with-libunwind-ia64 was given.
5526 if test "${with_libunwind_ia64+set}" = set; then :
5527 withval
=$with_libunwind_ia64;
5529 with_libunwind_ia64
=auto
5533 # Backward compatibility option.
5534 if test "${with_libunwind+set}" = set; then
5535 if test x
"$with_libunwind_ia64" != xauto
; then
5536 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5539 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5540 with_libunwind_ia64
="$with_libunwind"
5543 case "$with_libunwind_ia64" in
5547 for ac_header
in libunwind-ia64.h
5549 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5550 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5551 cat >>confdefs.h
<<_ACEOF
5552 #define HAVE_LIBUNWIND_IA64_H 1
5559 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
5562 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5566 if test x
"$with_libunwind_ia64" = xyes
; then
5567 for ac_header
in libunwind-ia64.h
5569 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5570 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5571 cat >>confdefs.h
<<_ACEOF
5572 #define HAVE_LIBUNWIND_IA64_H 1
5579 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
5580 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5582 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
5583 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
5584 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
5589 # Check whether --with-curses was given.
5590 if test "${with_curses+set}" = set; then :
5591 withval
=$with_curses; opt_curses
=$withval
5596 if test "$opt_curses" = "yes"; then
5600 # Profiling support.
5601 # Check whether --enable-profiling was given.
5602 if test "${enable_profiling+set}" = set; then :
5603 enableval
=$enable_profiling; case $enableval in
5607 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5614 for ac_func
in monstartup _mcleanup
5616 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5617 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5618 eval as_val
=\$
$as_ac_var
5619 if test "x$as_val" = x
""yes; then :
5620 cat >>confdefs.h
<<_ACEOF
5621 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5628 $as_echo_n "checking for _etext... " >&6; }
5629 if test "${ac_cv_var__etext+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5645 if ac_fn_c_try_link
"$LINENO"; then :
5646 ac_cv_var__etext
=yes
5650 rm -f core conftest.err conftest.
$ac_objext \
5651 conftest
$ac_exeext conftest.
$ac_ext
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5654 $as_echo "$ac_cv_var__etext" >&6; }
5655 if test $ac_cv_var__etext = yes; then
5657 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5661 $as_echo_n "checking for etext... " >&6; }
5662 if test "${ac_cv_var_etext+set}" = set; then :
5663 $as_echo_n "(cached) " >&6
5665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5678 if ac_fn_c_try_link
"$LINENO"; then :
5683 rm -f core conftest.err conftest.
$ac_objext \
5684 conftest
$ac_exeext conftest.
$ac_ext
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5687 $as_echo "$ac_cv_var_etext" >&6; }
5688 if test $ac_cv_var_etext = yes; then
5690 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5693 if test "$enable_profiling" = yes ; then
5694 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
5695 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5698 OLD_CFLAGS
="$CFLAGS"
5699 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5702 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5703 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5717 if ac_fn_c_try_compile
"$LINENO"; then :
5718 ac_cv_cc_supports_pg
=yes
5720 ac_cv_cc_supports_pg
=no
5722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5725 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5727 if test $ac_cv_cc_supports_pg = no
; then
5728 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5731 CFLAGS
="$OLD_CFLAGS"
5736 # Check whether --with-pkgversion was given.
5737 if test "${with_pkgversion+set}" = set; then :
5738 withval
=$with_pkgversion; case "$withval" in
5739 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
5741 *) PKGVERSION
="($withval) " ;;
5752 # Check whether --with-bugurl was given.
5753 if test "${with_bugurl+set}" = set; then :
5754 withval
=$with_bugurl; case "$withval" in
5755 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
5758 *) BUGURL
="$withval"
5762 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
5772 REPORT_BUGS_TO
="<$BUGURL>"
5773 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
5780 cat >>confdefs.h
<<_ACEOF
5781 #define PKGVERSION "$PKGVERSION"
5785 cat >>confdefs.h
<<_ACEOF
5786 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5790 # --------------------- #
5791 # Checks for programs. #
5792 # --------------------- #
5794 for ac_prog
in gawk mawk nawk
awk
5796 # Extract the first word of "$ac_prog", so it can be a program name with args.
5797 set dummy
$ac_prog; ac_word
=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if test "${ac_cv_prog_AWK+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5803 if test -n "$AWK"; then
5804 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir
=.
5811 for ac_exec_ext
in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_prog_AWK
="$ac_prog"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 if test -n "$AWK"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5826 $as_echo "$AWK" >&6; }
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5833 test -n "$AWK" && break
5836 # Find a good install program. We prefer a C program (faster),
5837 # so one script is as good as another. But avoid the broken or
5838 # incompatible versions:
5839 # SysV /etc/install, /usr/sbin/install
5840 # SunOS /usr/etc/install
5841 # IRIX /sbin/install
5843 # AmigaOS /C/install, which installs bootblocks on floppy discs
5844 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5845 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5846 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5847 # OS/2's system install, which has a completely different semantic
5848 # ./install, which can be erroneously created by make from ./install.sh.
5849 # Reject install programs that cannot install multiple files.
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5851 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5852 if test -z "$INSTALL"; then
5853 if test "${ac_cv_path_install+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5860 test -z "$as_dir" && as_dir
=.
5861 # Account for people who put trailing slashes in PATH elements.
5862 case $as_dir/ in #((
5863 .
/ | .
// |
/[cC
]/* | \
5864 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5865 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5868 # OSF1 and SCO ODT 3.0 have their own names for install.
5869 # Don't use installbsd from OSF since it installs stuff as root
5871 for ac_prog
in ginstall scoinst
install; do
5872 for ac_exec_ext
in '' $ac_executable_extensions; do
5873 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5874 if test $ac_prog = install &&
5875 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5876 # AIX install. It has an incompatible calling convention.
5878 elif test $ac_prog = install &&
5879 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5880 # program-specific install script used by HP pwplus--don't use.
5883 rm -rf conftest.one conftest.two conftest.dir
5884 echo one
> conftest.one
5885 echo two
> conftest.two
5887 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5888 test -s conftest.one
&& test -s conftest.two
&&
5889 test -s conftest.dir
/conftest.one
&&
5890 test -s conftest.dir
/conftest.two
5892 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5905 rm -rf conftest.one conftest.two conftest.dir
5908 if test "${ac_cv_path_install+set}" = set; then
5909 INSTALL
=$ac_cv_path_install
5911 # As a last resort, use the slow shell script. Don't cache a
5912 # value for INSTALL within a source directory, because that will
5913 # break other packages using the cache if that directory is
5914 # removed, or if the value is a relative name.
5915 INSTALL
=$ac_install_sh
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5919 $as_echo "$INSTALL" >&6; }
5921 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5922 # It thinks the first close brace ends the variable substitution.
5923 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5925 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5927 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5930 $as_echo_n "checking whether ln -s works... " >&6; }
5932 if test "$LN_S" = "ln -s"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5934 $as_echo "yes" >&6; }
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5937 $as_echo "no, using $LN_S" >&6; }
5940 if test -n "$ac_tool_prefix"; then
5941 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5942 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5948 if test -n "$RANLIB"; then
5949 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir
=.
5956 for ac_exec_ext
in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 RANLIB
=$ac_cv_prog_RANLIB
5969 if test -n "$RANLIB"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5971 $as_echo "$RANLIB" >&6; }
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5979 if test -z "$ac_cv_prog_RANLIB"; then
5980 ac_ct_RANLIB
=$RANLIB
5981 # Extract the first word of "ranlib", so it can be a program name with args.
5982 set dummy ranlib
; ac_word
=$2
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 $as_echo_n "checking for $ac_word... " >&6; }
5985 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5988 if test -n "$ac_ct_RANLIB"; then
5989 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5995 test -z "$as_dir" && as_dir
=.
5996 for ac_exec_ext
in '' $ac_executable_extensions; do
5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5998 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6009 if test -n "$ac_ct_RANLIB"; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6011 $as_echo "$ac_ct_RANLIB" >&6; }
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6017 if test "x$ac_ct_RANLIB" = x
; then
6020 case $cross_compiling:$ac_tool_warned in
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024 ac_tool_warned
=yes ;;
6026 RANLIB
=$ac_ct_RANLIB
6029 RANLIB
="$ac_cv_prog_RANLIB"
6032 for ac_prog
in 'bison -y' byacc
6034 # Extract the first word of "$ac_prog", so it can be a program name with args.
6035 set dummy
$ac_prog; ac_word
=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if test "${ac_cv_prog_YACC+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6041 if test -n "$YACC"; then
6042 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir
=.
6049 for ac_exec_ext
in '' $ac_executable_extensions; do
6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6051 ac_cv_prog_YACC
="$ac_prog"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 YACC
=$ac_cv_prog_YACC
6062 if test -n "$YACC"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6064 $as_echo "$YACC" >&6; }
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6071 test -n "$YACC" && break
6073 test -n "$YACC" || YACC
="yacc"
6076 if test -n "$ac_tool_prefix"; then
6077 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6078 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if test "${ac_cv_prog_AR+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6084 if test -n "$AR"; then
6085 ac_cv_prog_AR
="$AR" # Let the user override the test.
6087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir
=.
6092 for ac_exec_ext
in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 if test -n "$AR"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6107 $as_echo "$AR" >&6; }
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6115 if test -z "$ac_cv_prog_AR"; then
6117 # Extract the first word of "ar", so it can be a program name with args.
6118 set dummy
ar; ac_word
=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6124 if test -n "$ac_ct_AR"; then
6125 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6131 test -z "$as_dir" && as_dir
=.
6132 for ac_exec_ext
in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134 ac_cv_prog_ac_ct_AR
="ar"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6145 if test -n "$ac_ct_AR"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6147 $as_echo "$ac_ct_AR" >&6; }
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6153 if test "x$ac_ct_AR" = x
; then
6156 case $cross_compiling:$ac_tool_warned in
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160 ac_tool_warned
=yes ;;
6168 if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6170 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6174 $as_echo_n "(cached) " >&6
6176 if test -n "$DLLTOOL"; then
6177 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
6179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir
=.
6184 for ac_exec_ext
in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 DLLTOOL
=$ac_cv_prog_DLLTOOL
6197 if test -n "$DLLTOOL"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6199 $as_echo "$DLLTOOL" >&6; }
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6207 if test -z "$ac_cv_prog_DLLTOOL"; then
6208 ac_ct_DLLTOOL
=$DLLTOOL
6209 # Extract the first word of "dlltool", so it can be a program name with args.
6210 set dummy dlltool
; ac_word
=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6216 if test -n "$ac_ct_DLLTOOL"; then
6217 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
6219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6223 test -z "$as_dir" && as_dir
=.
6224 for ac_exec_ext
in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
6237 if test -n "$ac_ct_DLLTOOL"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6239 $as_echo "$ac_ct_DLLTOOL" >&6; }
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6245 if test "x$ac_ct_DLLTOOL" = x
; then
6248 case $cross_compiling:$ac_tool_warned in
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252 ac_tool_warned
=yes ;;
6254 DLLTOOL
=$ac_ct_DLLTOOL
6257 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6260 if test -n "$ac_tool_prefix"; then
6261 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6262 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6266 $as_echo_n "(cached) " >&6
6268 if test -n "$WINDRES"; then
6269 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
6271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6275 test -z "$as_dir" && as_dir
=.
6276 for ac_exec_ext
in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 WINDRES
=$ac_cv_prog_WINDRES
6289 if test -n "$WINDRES"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6291 $as_echo "$WINDRES" >&6; }
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6299 if test -z "$ac_cv_prog_WINDRES"; then
6300 ac_ct_WINDRES
=$WINDRES
6301 # Extract the first word of "windres", so it can be a program name with args.
6302 set dummy windres
; ac_word
=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
6308 if test -n "$ac_ct_WINDRES"; then
6309 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
6311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir
=.
6316 for ac_exec_ext
in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_prog_ac_ct_WINDRES
="windres"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
6329 if test -n "$ac_ct_WINDRES"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6331 $as_echo "$ac_ct_WINDRES" >&6; }
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6337 if test "x$ac_ct_WINDRES" = x
; then
6340 case $cross_compiling:$ac_tool_warned in
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6344 ac_tool_warned
=yes ;;
6346 WINDRES
=$ac_ct_WINDRES
6349 WINDRES
="$ac_cv_prog_WINDRES"
6355 # Needed for GNU Hurd hosts.
6356 if test -n "$ac_tool_prefix"; then
6357 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6358 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if test "${ac_cv_prog_MIG+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6364 if test -n "$MIG"; then
6365 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
6367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir
=.
6372 for ac_exec_ext
in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 if test -n "$MIG"; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6387 $as_echo "$MIG" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6395 if test -z "$ac_cv_prog_MIG"; then
6397 # Extract the first word of "mig", so it can be a program name with args.
6398 set dummy mig
; ac_word
=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6402 $as_echo_n "(cached) " >&6
6404 if test -n "$ac_ct_MIG"; then
6405 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
6407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir
=.
6412 for ac_exec_ext
in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_prog_ac_ct_MIG
="mig"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
6425 if test -n "$ac_ct_MIG"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6427 $as_echo "$ac_ct_MIG" >&6; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6433 if test "x$ac_ct_MIG" = x
; then
6436 case $cross_compiling:$ac_tool_warned in
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440 ac_tool_warned
=yes ;;
6445 MIG
="$ac_cv_prog_MIG"
6448 if test x
"$MIG" = x
; then
6449 as_fn_error
"MIG not found but required for $host hosts" "$LINENO" 5
6454 # ---------------------- #
6455 # Checks for libraries. #
6456 # ---------------------- #
6458 # We might need to link with -lm; most simulators need it.
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6460 $as_echo_n "checking for main in -lm... " >&6; }
6461 if test "${ac_cv_lib_m_main+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6464 ac_check_lib_save_LIBS
=$LIBS
6466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6478 if ac_fn_c_try_link
"$LINENO"; then :
6479 ac_cv_lib_m_main
=yes
6483 rm -f core conftest.err conftest.
$ac_objext \
6484 conftest
$ac_exeext conftest.
$ac_ext
6485 LIBS
=$ac_check_lib_save_LIBS
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6488 $as_echo "$ac_cv_lib_m_main" >&6; }
6489 if test "x$ac_cv_lib_m_main" = x
""yes; then :
6490 cat >>confdefs.h
<<_ACEOF
6499 # We need to link with -lw to get `wctype' on Solaris before Solaris
6500 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6501 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6502 # is known to have this problem). Therefore we avoid libw if we can.
6503 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6504 if test "x$ac_cv_func_wctype" = x
""yes; then :
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6508 $as_echo_n "checking for wctype in -lw... " >&6; }
6509 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
6512 ac_check_lib_save_LIBS
=$LIBS
6514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6517 /* Override any GCC internal prototype to avoid an error.
6518 Use char because int might match the return type of a GCC
6519 builtin and then its argument prototype would still apply. */
6532 if ac_fn_c_try_link
"$LINENO"; then :
6533 ac_cv_lib_w_wctype
=yes
6535 ac_cv_lib_w_wctype
=no
6537 rm -f core conftest.err conftest.
$ac_objext \
6538 conftest
$ac_exeext conftest.
$ac_ext
6539 LIBS
=$ac_check_lib_save_LIBS
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6542 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6543 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
6544 cat >>confdefs.h
<<_ACEOF
6555 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6557 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6558 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6559 $as_echo_n "(cached) " >&6
6561 ac_func_search_save_LIBS
=$LIBS
6562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6565 /* Override any GCC internal prototype to avoid an error.
6566 Use char because int might match the return type of a GCC
6567 builtin and then its argument prototype would still apply. */
6571 char gethostbyname ();
6575 return gethostbyname ();
6580 for ac_lib
in '' nsl
; do
6581 if test -z "$ac_lib"; then
6582 ac_res
="none required"
6585 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6587 if ac_fn_c_try_link
"$LINENO"; then :
6588 ac_cv_search_gethostbyname
=$ac_res
6590 rm -f core conftest.err conftest.
$ac_objext \
6592 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6596 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6599 ac_cv_search_gethostbyname
=no
6602 LIBS
=$ac_func_search_save_LIBS
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6605 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6606 ac_res
=$ac_cv_search_gethostbyname
6607 if test "$ac_res" != no
; then :
6608 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6613 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6615 $as_echo_n "checking for library containing socketpair... " >&6; }
6616 if test "${ac_cv_search_socketpair+set}" = set; then :
6617 $as_echo_n "(cached) " >&6
6619 ac_func_search_save_LIBS
=$LIBS
6620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6623 /* Override any GCC internal prototype to avoid an error.
6624 Use char because int might match the return type of a GCC
6625 builtin and then its argument prototype would still apply. */
6633 return socketpair ();
6638 for ac_lib
in '' socket
; do
6639 if test -z "$ac_lib"; then
6640 ac_res
="none required"
6643 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6645 if ac_fn_c_try_link
"$LINENO"; then :
6646 ac_cv_search_socketpair
=$ac_res
6648 rm -f core conftest.err conftest.
$ac_objext \
6650 if test "${ac_cv_search_socketpair+set}" = set; then :
6654 if test "${ac_cv_search_socketpair+set}" = set; then :
6657 ac_cv_search_socketpair
=no
6660 LIBS
=$ac_func_search_save_LIBS
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6663 $as_echo "$ac_cv_search_socketpair" >&6; }
6664 ac_res
=$ac_cv_search_socketpair
6665 if test "$ac_res" != no
; then :
6666 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6671 # Link in zlib if we can. This allows us to read compressed debug sections.
6673 # See if the user specified whether he wants zlib support or not.
6675 # Check whether --with-zlib was given.
6676 if test "${with_zlib+set}" = set; then :
6683 if test "$with_zlib" != "no"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6685 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6686 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6689 ac_func_search_save_LIBS
=$LIBS
6690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6693 /* Override any GCC internal prototype to avoid an error.
6694 Use char because int might match the return type of a GCC
6695 builtin and then its argument prototype would still apply. */
6699 char zlibVersion ();
6703 return zlibVersion ();
6708 for ac_lib
in '' z
; do
6709 if test -z "$ac_lib"; then
6710 ac_res
="none required"
6713 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6715 if ac_fn_c_try_link
"$LINENO"; then :
6716 ac_cv_search_zlibVersion
=$ac_res
6718 rm -f core conftest.err conftest.
$ac_objext \
6720 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6724 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6727 ac_cv_search_zlibVersion
=no
6730 LIBS
=$ac_func_search_save_LIBS
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6733 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6734 ac_res
=$ac_cv_search_zlibVersion
6735 if test "$ac_res" != no
; then :
6736 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6737 for ac_header
in zlib.h
6739 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6740 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
6741 cat >>confdefs.h
<<_ACEOF
6742 #define HAVE_ZLIB_H 1
6751 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6752 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6757 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6759 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6760 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6761 $as_echo_n "(cached) " >&6
6763 ac_func_search_save_LIBS
=$LIBS
6764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6767 /* Override any GCC internal prototype to avoid an error.
6768 Use char because int might match the return type of a GCC
6769 builtin and then its argument prototype would still apply. */
6773 char dlgetmodinfo ();
6777 return dlgetmodinfo ();
6782 for ac_lib
in '' dl xpdl
; do
6783 if test -z "$ac_lib"; then
6784 ac_res
="none required"
6787 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6789 if ac_fn_c_try_link
"$LINENO"; then :
6790 ac_cv_search_dlgetmodinfo
=$ac_res
6792 rm -f core conftest.err conftest.
$ac_objext \
6794 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6798 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6801 ac_cv_search_dlgetmodinfo
=no
6804 LIBS
=$ac_func_search_save_LIBS
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6807 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6808 ac_res
=$ac_cv_search_dlgetmodinfo
6809 if test "$ac_res" != no
; then :
6810 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6818 # Check whether --with-libiconv-prefix was given.
6819 if test "${with_libiconv_prefix+set}" = set; then :
6820 withval
=$with_libiconv_prefix;
6821 for dir
in `echo "$withval" | tr : ' '`; do
6822 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
6823 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
6829 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
6830 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6833 $as_echo_n "checking for iconv... " >&6; }
6834 if test "${am_cv_func_iconv+set}" = set; then :
6835 $as_echo_n "(cached) " >&6
6838 am_cv_func_iconv
="no, consider installing GNU libiconv"
6840 am_cv_use_build_libiconv
=no
6841 am_cv_build_libiconv_path
=
6843 # If libiconv is part of the build tree, then try using it over
6845 if test -d ..
/libiconv
; then
6846 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
6847 am_save_LIBS
="$LIBS"
6848 am_save_CPPFLAGS
="$CPPFLAGS"
6849 LIBS
="$LIBS $lib_dir/libiconv.a"
6850 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6858 iconv_t cd = iconv_open("","");
6859 iconv(cd,NULL,NULL,NULL,NULL);
6865 if ac_fn_c_try_link
"$LINENO"; then :
6866 am_cv_use_build_libiconv
=yes
6867 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
6869 am_cv_func_iconv
=yes
6871 rm -f core conftest.err conftest.
$ac_objext \
6872 conftest
$ac_exeext conftest.
$ac_ext
6873 LIBS
="$am_save_LIBS"
6874 CPPFLAGS
="$am_save_CPPFLAGS"
6875 if test "$am_cv_use_build_libiconv" = "yes"; then
6881 # Next, try to find iconv in libc.
6882 if test "$am_cv_func_iconv" != yes; then
6883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6890 iconv_t cd = iconv_open("","");
6891 iconv(cd,NULL,NULL,NULL,NULL);
6897 if ac_fn_c_try_link
"$LINENO"; then :
6898 am_cv_func_iconv
=yes
6900 rm -f core conftest.err conftest.
$ac_objext \
6901 conftest
$ac_exeext conftest.
$ac_ext
6904 # If iconv was not in libc, try -liconv. In this case, arrange to
6905 # look in the libiconv prefix, if it was specified by the user.
6906 if test "$am_cv_func_iconv" != yes; then
6907 am_save_CPPFLAGS
="$CPPFLAGS"
6908 am_save_LIBS
="$LIBS"
6909 if test -n "$LIBICONV_INCLUDE"; then
6910 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
6911 LIBS
="$LIBS $LIBICONV_LIBDIR"
6913 LIBS
="$LIBS -liconv"
6914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6921 iconv_t cd = iconv_open("","");
6922 iconv(cd,NULL,NULL,NULL,NULL);
6928 if ac_fn_c_try_link
"$LINENO"; then :
6930 am_cv_func_iconv
=yes
6932 rm -f core conftest.err conftest.
$ac_objext \
6933 conftest
$ac_exeext conftest.
$ac_ext
6934 LIBS
="$am_save_LIBS"
6935 CPPFLAGS
="$am_save_CPPFLAGS"
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6940 $as_echo "$am_cv_func_iconv" >&6; }
6942 # Set the various flags based on the cache variables. We can't rely
6943 # on the flags to remain set from the above code, due to caching.
6945 if test "$am_cv_lib_iconv" = yes; then
6951 if test "$am_cv_use_build_libiconv" = yes; then
6952 LIBICONV
="$am_cv_build_libiconv_path"
6954 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
6956 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
6957 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6959 if test "$am_cv_func_iconv" = yes; then
6961 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6964 $as_echo_n "checking for iconv declaration... " >&6; }
6965 if test "${am_cv_proto_iconv+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6978 #if defined(__STDC__) || defined(__cplusplus)
6979 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6992 if ac_fn_c_try_compile
"$LINENO"; then :
6993 am_cv_proto_iconv_arg1
=""
6995 am_cv_proto_iconv_arg1
="const"
6997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6998 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);"
7001 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7003 }$am_cv_proto_iconv" >&5
7005 }$am_cv_proto_iconv" >&6; }
7007 cat >>confdefs.h
<<_ACEOF
7008 #define ICONV_CONST $am_cv_proto_iconv_arg1
7014 # GDB may fork/exec the iconv program to get the list of supported character
7015 # sets. Allow the user to specify where to find it.
7016 # There are several factors affecting the choice of option name:
7017 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7018 # the build-time location of libiconv files.
7019 # - The program we need to find is iconv, which comes with glibc. The user
7020 # doesn't necessarily have libiconv installed. Therefore naming this
7021 # --with-libiconv-foo feels wrong.
7022 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7023 # defined to work on directories not files (though it really doesn't know
7025 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7026 # with --with-libiconv-prefix.
7027 # Putting these together is why the option name is --with-iconv-bin.
7030 # Check whether --with-iconv-bin was given.
7031 if test "${with_iconv_bin+set}" = set; then :
7032 withval
=$with_iconv_bin; iconv_bin
="${withval}"
7034 cat >>confdefs.h
<<_ACEOF
7035 #define ICONV_BIN "${iconv_bin}"
7039 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7040 if test "x$prefix" = xNONE
; then
7041 test_prefix
=/usr
/local
7046 test_prefix
=$exec_prefix
7049 case ${iconv_bin} in
7050 "${test_prefix}"|
"${test_prefix}/"*|\
7051 '${exec_prefix}'|
'${exec_prefix}/'*)
7056 cat >>confdefs.h
<<_ACEOF
7057 #define ICONV_BIN_RELOCATABLE $value
7065 # For the TUI, we need enhanced curses functionality.
7066 if test x
"$enable_tui" != xno
; then
7071 if test x
"$prefer_curses" = xyes
; then
7072 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7073 # curses library because the latter might not provide all the
7074 # functionality we need. However, this leads to problems on systems
7075 # where the linker searches /usr/local/lib, but the compiler doesn't
7076 # search /usr/local/include, if ncurses is installed in /usr/local. A
7077 # default installation of ncurses on alpha*-dec-osf* will lead to such
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7080 $as_echo_n "checking for library containing waddstr... " >&6; }
7081 if test "${ac_cv_search_waddstr+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
7084 ac_func_search_save_LIBS
=$LIBS
7085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7088 /* Override any GCC internal prototype to avoid an error.
7089 Use char because int might match the return type of a GCC
7090 builtin and then its argument prototype would still apply. */
7103 for ac_lib
in '' ncurses cursesX curses
; do
7104 if test -z "$ac_lib"; then
7105 ac_res
="none required"
7108 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7110 if ac_fn_c_try_link
"$LINENO"; then :
7111 ac_cv_search_waddstr
=$ac_res
7113 rm -f core conftest.err conftest.
$ac_objext \
7115 if test "${ac_cv_search_waddstr+set}" = set; then :
7119 if test "${ac_cv_search_waddstr+set}" = set; then :
7122 ac_cv_search_waddstr
=no
7125 LIBS
=$ac_func_search_save_LIBS
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7128 $as_echo "$ac_cv_search_waddstr" >&6; }
7129 ac_res
=$ac_cv_search_waddstr
7130 if test "$ac_res" != no
; then :
7131 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7136 if test "$ac_cv_search_waddstr" != no
; then
7141 # Check whether we should enable the TUI, but only do so if we really
7143 if test x
"$enable_tui" != xno
; then
7144 if test -d $srcdir/tui
; then
7145 if test "$curses_found" != no
; then
7146 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7147 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7148 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7149 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7151 if test x
"$enable_tui" = xyes
; then
7152 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7155 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7161 # Since GDB uses Readline, we need termcap functionality. In many
7162 # cases this will be provided by the curses library, but some systems
7163 # have a seperate termcap library, or no curses library at all.
7167 if test -d $srcdir/libtermcap
; then
7168 LIBS
="../libtermcap/libtermcap.a $LIBS"
7169 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
7172 ac_cv_search_tgetent
="none required"
7175 ac_cv_search_tgetent
="none required"
7176 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
7180 # These are the libraries checked by Readline.
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7182 $as_echo_n "checking for library containing tgetent... " >&6; }
7183 if test "${ac_cv_search_tgetent+set}" = set; then :
7184 $as_echo_n "(cached) " >&6
7186 ac_func_search_save_LIBS
=$LIBS
7187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7190 /* Override any GCC internal prototype to avoid an error.
7191 Use char because int might match the return type of a GCC
7192 builtin and then its argument prototype would still apply. */
7205 for ac_lib
in '' termcap tinfo curses ncurses
; do
7206 if test -z "$ac_lib"; then
7207 ac_res
="none required"
7210 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7212 if ac_fn_c_try_link
"$LINENO"; then :
7213 ac_cv_search_tgetent
=$ac_res
7215 rm -f core conftest.err conftest.
$ac_objext \
7217 if test "${ac_cv_search_tgetent+set}" = set; then :
7221 if test "${ac_cv_search_tgetent+set}" = set; then :
7224 ac_cv_search_tgetent
=no
7227 LIBS
=$ac_func_search_save_LIBS
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7230 $as_echo "$ac_cv_search_tgetent" >&6; }
7231 ac_res
=$ac_cv_search_tgetent
7232 if test "$ac_res" != no
; then :
7233 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7238 if test "$ac_cv_search_tgetent" = no
; then
7239 as_fn_error
"no termcap library found" "$LINENO" 5
7243 # Check whether --with-system-readline was given.
7244 if test "${with_system_readline+set}" = set; then :
7245 withval
=$with_system_readline;
7249 if test "$with_system_readline" = yes; then
7253 READLINE_TEXI_INCFLAG
=
7255 READLINE
='$(READLINE_DIR)/libreadline.a'
7256 READLINE_DEPS
='$(READLINE)'
7257 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
7258 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
7265 # Generate jit-reader.h
7267 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7270 # The cast to long int works around a bug in the HP C Compiler
7271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7273 # This bug is HP SR number 8606223364.
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7275 $as_echo_n "checking size of unsigned long long... " >&6; }
7276 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7279 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7282 if test "$ac_cv_type_unsigned_long_long" = yes; then
7283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7285 { as_fn_set_status
77
7286 as_fn_error
"cannot compute sizeof (unsigned long long)
7287 See \`config.log' for more details." "$LINENO" 5; }; }
7289 ac_cv_sizeof_unsigned_long_long
=0
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7295 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7299 cat >>confdefs.h
<<_ACEOF
7300 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7304 # The cast to long int works around a bug in the HP C Compiler
7305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7307 # This bug is HP SR number 8606223364.
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7309 $as_echo_n "checking size of unsigned long... " >&6; }
7310 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7311 $as_echo_n "(cached) " >&6
7313 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7316 if test "$ac_cv_type_unsigned_long" = yes; then
7317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7319 { as_fn_set_status
77
7320 as_fn_error
"cannot compute sizeof (unsigned long)
7321 See \`config.log' for more details." "$LINENO" 5; }; }
7323 ac_cv_sizeof_unsigned_long
=0
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7329 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7333 cat >>confdefs.h
<<_ACEOF
7334 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7338 # The cast to long int works around a bug in the HP C Compiler
7339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7341 # This bug is HP SR number 8606223364.
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7343 $as_echo_n "checking size of unsigned __int128... " >&6; }
7344 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
7347 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7350 if test "$ac_cv_type_unsigned___int128" = yes; then
7351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7353 { as_fn_set_status
77
7354 as_fn_error
"cannot compute sizeof (unsigned __int128)
7355 See \`config.log' for more details." "$LINENO" 5; }; }
7357 ac_cv_sizeof_unsigned___int128
=0
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7363 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7367 cat >>confdefs.h
<<_ACEOF
7368 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7373 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7374 TARGET_PTR
="unsigned long"
7375 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7376 TARGET_PTR
="unsigned long long"
7377 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7378 TARGET_PTR
="unsigned __int128"
7380 TARGET_PTR
="unsigned long"
7384 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7388 $as_echo_n "checking for library containing dlopen... " >&6; }
7389 if test "${ac_cv_search_dlopen+set}" = set; then :
7390 $as_echo_n "(cached) " >&6
7392 ac_func_search_save_LIBS
=$LIBS
7393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7396 /* Override any GCC internal prototype to avoid an error.
7397 Use char because int might match the return type of a GCC
7398 builtin and then its argument prototype would still apply. */
7411 for ac_lib
in '' dl
; do
7412 if test -z "$ac_lib"; then
7413 ac_res
="none required"
7416 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7418 if ac_fn_c_try_link
"$LINENO"; then :
7419 ac_cv_search_dlopen
=$ac_res
7421 rm -f core conftest.err conftest.
$ac_objext \
7423 if test "${ac_cv_search_dlopen+set}" = set; then :
7427 if test "${ac_cv_search_dlopen+set}" = set; then :
7430 ac_cv_search_dlopen
=no
7433 LIBS
=$ac_func_search_save_LIBS
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7436 $as_echo "$ac_cv_search_dlopen" >&6; }
7437 ac_res
=$ac_cv_search_dlopen
7438 if test "$ac_res" != no
; then :
7439 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7446 # Check whether --with-jit-reader-dir was given.
7447 if test "${with_jit_reader_dir+set}" = set; then :
7448 withval
=$with_jit_reader_dir;
7449 JIT_READER_DIR
=$withval
7451 JIT_READER_DIR
=${libdir}/gdb
7455 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7456 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7457 ac_define_dir
=`eval echo $JIT_READER_DIR`
7458 ac_define_dir
=`eval echo $ac_define_dir`
7460 cat >>confdefs.h
<<_ACEOF
7461 #define JIT_READER_DIR "$ac_define_dir"
7467 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7468 if test "x$prefix" = xNONE
; then
7469 test_prefix
=/usr
/local
7474 test_prefix
=$exec_prefix
7477 case ${ac_define_dir} in
7478 "${test_prefix}"|
"${test_prefix}/"*|\
7479 '${exec_prefix}'|
'${exec_prefix}/'*)
7484 cat >>confdefs.h
<<_ACEOF
7485 #define JIT_READER_DIR_RELOCATABLE $value
7492 # Check whether --with-expat was given.
7493 if test "${with_expat+set}" = set; then :
7494 withval
=$with_expat;
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7500 $as_echo_n "checking whether to use expat... " >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7502 $as_echo "$with_expat" >&6; }
7504 if test "${with_expat}" = no
; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7506 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7510 if test "X$prefix" = "XNONE"; then
7511 acl_final_prefix
="$ac_default_prefix"
7513 acl_final_prefix
="$prefix"
7515 if test "X$exec_prefix" = "XNONE"; then
7516 acl_final_exec_prefix
='${prefix}'
7518 acl_final_exec_prefix
="$exec_prefix"
7520 acl_save_prefix
="$prefix"
7521 prefix
="$acl_final_prefix"
7522 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7523 prefix
="$acl_save_prefix"
7526 # Check whether --with-gnu-ld was given.
7527 if test "${with_gnu_ld+set}" = set; then :
7528 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7533 # Prepare PATH_SEPARATOR.
7534 # The user is always right.
7535 if test "${PATH_SEPARATOR+set}" != set; then
7536 echo "#! /bin/sh" >conf$$.sh
7537 echo "exit 0" >>conf$$.sh
7539 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7547 if test "$GCC" = yes; then
7548 # Check if gcc -print-prog-name=ld gives a path.
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7550 $as_echo_n "checking for ld used by GCC... " >&6; }
7553 # gcc leaves a trailing carriage return which upsets mingw
7554 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7556 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7559 # Accept absolute paths.
7560 [\\/]* |
[A-Za-z
]:[\\/]*)
7561 re_direlt
='/[^/][^/]*/\.\./'
7562 # Canonicalize the path of ld
7563 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7564 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7565 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7567 test -z "$LD" && LD
="$ac_prog"
7570 # If it fails, then pretend we aren't using GCC.
7574 # If it is relative, then search for the first ld in PATH.
7578 elif test "$with_gnu_ld" = yes; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7580 $as_echo_n "checking for GNU ld... " >&6; }
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7583 $as_echo_n "checking for non-GNU ld... " >&6; }
7585 if test "${acl_cv_path_LD+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7588 if test -z "$LD"; then
7589 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7590 for ac_dir
in $PATH; do
7591 test -z "$ac_dir" && ac_dir
=.
7592 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7593 acl_cv_path_LD
="$ac_dir/$ac_prog"
7594 # Check to see if the program is GNU ld. I'd rather use --version,
7595 # but apparently some GNU ld's only accept -v.
7596 # Break only if it was the GNU/non-GNU ld that we prefer.
7597 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7598 test "$with_gnu_ld" != no
&& break
7600 test "$with_gnu_ld" != yes && break
7606 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7610 LD
="$acl_cv_path_LD"
7611 if test -n "$LD"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7613 $as_echo "$LD" >&6; }
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7618 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7620 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7621 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7624 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7625 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7626 acl_cv_prog_gnu_ld
=yes
7628 acl_cv_prog_gnu_ld
=no
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7632 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7633 with_gnu_ld
=$acl_cv_prog_gnu_ld
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7638 $as_echo_n "checking for shared library run path origin... " >&6; }
7639 if test "${acl_cv_rpath+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7643 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7644 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7651 $as_echo "$acl_cv_rpath" >&6; }
7653 libext
="$acl_cv_libext"
7654 shlibext
="$acl_cv_shlibext"
7655 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7656 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7657 hardcode_direct
="$acl_cv_hardcode_direct"
7658 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7659 # Check whether --enable-rpath was given.
7660 if test "${enable_rpath+set}" = set; then :
7661 enableval
=$enable_rpath; :
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 eval additional_includedir
=\"$includedir\"
7683 eval additional_libdir
=\"$libdir\"
7685 exec_prefix
="$acl_save_exec_prefix"
7686 prefix
="$acl_save_prefix"
7689 # Check whether --with-libexpat-prefix was given.
7690 if test "${with_libexpat_prefix+set}" = set; then :
7691 withval
=$with_libexpat_prefix;
7692 if test "X$withval" = "Xno"; then
7695 if test "X$withval" = "X"; then
7697 acl_save_prefix
="$prefix"
7698 prefix
="$acl_final_prefix"
7699 acl_save_exec_prefix
="$exec_prefix"
7700 exec_prefix
="$acl_final_exec_prefix"
7702 eval additional_includedir
=\"$includedir\"
7703 eval additional_libdir
=\"$libdir\"
7705 exec_prefix
="$acl_save_exec_prefix"
7706 prefix
="$acl_save_prefix"
7709 additional_includedir
="$withval/include"
7710 additional_libdir
="$withval/lib"
7721 names_already_handled
=
7722 names_next_round
='expat '
7723 while test -n "$names_next_round"; do
7724 names_this_round
="$names_next_round"
7726 for name
in $names_this_round; do
7728 for n
in $names_already_handled; do
7729 if test "$n" = "$name"; then
7734 if test -z "$already_handled"; then
7735 names_already_handled
="$names_already_handled $name"
7736 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7737 eval value
=\"\
$HAVE_LIB$uppername\"
7738 if test -n "$value"; then
7739 if test "$value" = yes; then
7740 eval value
=\"\
$LIB$uppername\"
7741 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
7742 eval value
=\"\
$LTLIB$uppername\"
7743 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7752 if test $use_additional = yes; then
7753 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7754 found_dir
="$additional_libdir"
7755 found_so
="$additional_libdir/lib$name.$shlibext"
7756 if test -f "$additional_libdir/lib$name.la"; then
7757 found_la
="$additional_libdir/lib$name.la"
7760 if test -f "$additional_libdir/lib$name.$libext"; then
7761 found_dir
="$additional_libdir"
7762 found_a
="$additional_libdir/lib$name.$libext"
7763 if test -f "$additional_libdir/lib$name.la"; then
7764 found_la
="$additional_libdir/lib$name.la"
7769 if test "X$found_dir" = "X"; then
7770 for x
in $LDFLAGS $LTLIBEXPAT; do
7772 acl_save_prefix
="$prefix"
7773 prefix
="$acl_final_prefix"
7774 acl_save_exec_prefix
="$exec_prefix"
7775 exec_prefix
="$acl_final_exec_prefix"
7777 exec_prefix
="$acl_save_exec_prefix"
7778 prefix
="$acl_save_prefix"
7782 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7783 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7785 found_so
="$dir/lib$name.$shlibext"
7786 if test -f "$dir/lib$name.la"; then
7787 found_la
="$dir/lib$name.la"
7790 if test -f "$dir/lib$name.$libext"; then
7792 found_a
="$dir/lib$name.$libext"
7793 if test -f "$dir/lib$name.la"; then
7794 found_la
="$dir/lib$name.la"
7800 if test "X$found_dir" != "X"; then
7805 if test "X$found_dir" != "X"; then
7806 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7807 if test "X$found_so" != "X"; then
7808 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7809 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7812 for x
in $ltrpathdirs; do
7813 if test "X$x" = "X$found_dir"; then
7818 if test -z "$haveit"; then
7819 ltrpathdirs
="$ltrpathdirs $found_dir"
7821 if test "$hardcode_direct" = yes; then
7822 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7824 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7825 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7827 for x
in $rpathdirs; do
7828 if test "X$x" = "X$found_dir"; then
7833 if test -z "$haveit"; then
7834 rpathdirs
="$rpathdirs $found_dir"
7838 for x
in $LDFLAGS $LIBEXPAT; do
7840 acl_save_prefix
="$prefix"
7841 prefix
="$acl_final_prefix"
7842 acl_save_exec_prefix
="$exec_prefix"
7843 exec_prefix
="$acl_final_exec_prefix"
7845 exec_prefix
="$acl_save_exec_prefix"
7846 prefix
="$acl_save_prefix"
7848 if test "X$x" = "X-L$found_dir"; then
7853 if test -z "$haveit"; then
7854 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7856 if test "$hardcode_minus_L" != no
; then
7857 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7859 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7865 if test "X$found_a" != "X"; then
7866 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7868 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7871 additional_includedir
=
7872 case "$found_dir" in
7874 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7875 additional_includedir
="$basedir/include"
7878 if test "X$additional_includedir" != "X"; then
7879 if test "X$additional_includedir" != "X/usr/include"; then
7881 if test "X$additional_includedir" = "X/usr/local/include"; then
7882 if test -n "$GCC"; then
7884 linux
*) haveit
=yes;;
7888 if test -z "$haveit"; then
7889 for x
in $CPPFLAGS $INCEXPAT; do
7891 acl_save_prefix
="$prefix"
7892 prefix
="$acl_final_prefix"
7893 acl_save_exec_prefix
="$exec_prefix"
7894 exec_prefix
="$acl_final_exec_prefix"
7896 exec_prefix
="$acl_save_exec_prefix"
7897 prefix
="$acl_save_prefix"
7899 if test "X$x" = "X-I$additional_includedir"; then
7904 if test -z "$haveit"; then
7905 if test -d "$additional_includedir"; then
7906 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7912 if test -n "$found_la"; then
7913 save_libdir
="$libdir"
7915 */* |
*\\*) .
"$found_la" ;;
7916 *) .
"./$found_la" ;;
7918 libdir
="$save_libdir"
7919 for dep
in $dependency_libs; do
7922 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7923 if test "X$additional_libdir" != "X/usr/lib"; then
7925 if test "X$additional_libdir" = "X/usr/local/lib"; then
7926 if test -n "$GCC"; then
7928 linux
*) haveit
=yes;;
7932 if test -z "$haveit"; then
7934 for x
in $LDFLAGS $LIBEXPAT; do
7936 acl_save_prefix
="$prefix"
7937 prefix
="$acl_final_prefix"
7938 acl_save_exec_prefix
="$exec_prefix"
7939 exec_prefix
="$acl_final_exec_prefix"
7941 exec_prefix
="$acl_save_exec_prefix"
7942 prefix
="$acl_save_prefix"
7944 if test "X$x" = "X-L$additional_libdir"; then
7949 if test -z "$haveit"; then
7950 if test -d "$additional_libdir"; then
7951 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7955 for x
in $LDFLAGS $LTLIBEXPAT; do
7957 acl_save_prefix
="$prefix"
7958 prefix
="$acl_final_prefix"
7959 acl_save_exec_prefix
="$exec_prefix"
7960 exec_prefix
="$acl_final_exec_prefix"
7962 exec_prefix
="$acl_save_exec_prefix"
7963 prefix
="$acl_save_prefix"
7965 if test "X$x" = "X-L$additional_libdir"; then
7970 if test -z "$haveit"; then
7971 if test -d "$additional_libdir"; then
7972 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7979 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7980 if test "$enable_rpath" != no
; then
7982 for x
in $rpathdirs; do
7983 if test "X$x" = "X$dir"; then
7988 if test -z "$haveit"; then
7989 rpathdirs
="$rpathdirs $dir"
7992 for x
in $ltrpathdirs; do
7993 if test "X$x" = "X$dir"; then
7998 if test -z "$haveit"; then
7999 ltrpathdirs
="$ltrpathdirs $dir"
8004 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8007 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8010 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8011 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8017 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8018 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8024 if test "X$rpathdirs" != "X"; then
8025 if test -n "$hardcode_libdir_separator"; then
8027 for found_dir
in $rpathdirs; do
8028 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8030 acl_save_libdir
="$libdir"
8032 eval flag
=\"$hardcode_libdir_flag_spec\"
8033 libdir
="$acl_save_libdir"
8034 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8036 for found_dir
in $rpathdirs; do
8037 acl_save_libdir
="$libdir"
8039 eval flag
=\"$hardcode_libdir_flag_spec\"
8040 libdir
="$acl_save_libdir"
8041 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8045 if test "X$ltrpathdirs" != "X"; then
8046 for found_dir
in $ltrpathdirs; do
8047 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8052 ac_save_CPPFLAGS
="$CPPFLAGS"
8054 for element
in $INCEXPAT; do
8056 for x
in $CPPFLAGS; do
8058 acl_save_prefix
="$prefix"
8059 prefix
="$acl_final_prefix"
8060 acl_save_exec_prefix
="$exec_prefix"
8061 exec_prefix
="$acl_final_exec_prefix"
8063 exec_prefix
="$acl_save_exec_prefix"
8064 prefix
="$acl_save_prefix"
8066 if test "X$x" = "X$element"; then
8071 if test -z "$haveit"; then
8072 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8078 $as_echo_n "checking for libexpat... " >&6; }
8079 if test "${ac_cv_libexpat+set}" = set; then :
8080 $as_echo_n "(cached) " >&6
8083 ac_save_LIBS
="$LIBS"
8084 LIBS
="$LIBS $LIBEXPAT"
8085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8091 XML_Parser p = XML_ParserCreate (0);
8096 if ac_fn_c_try_link
"$LINENO"; then :
8101 rm -f core conftest.err conftest.
$ac_objext \
8102 conftest
$ac_exeext conftest.
$ac_ext
8103 LIBS
="$ac_save_LIBS"
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8107 $as_echo "$ac_cv_libexpat" >&6; }
8108 if test "$ac_cv_libexpat" = yes; then
8111 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8114 $as_echo_n "checking how to link with libexpat... " >&6; }
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8116 $as_echo "$LIBEXPAT" >&6; }
8119 CPPFLAGS
="$ac_save_CPPFLAGS"
8129 if test "$HAVE_LIBEXPAT" != yes; then
8130 if test "$with_expat" = yes; then
8131 as_fn_error
"expat is missing or unusable" "$LINENO" 5
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8134 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8138 LIBS
="$LIBS $LIBEXPAT"
8139 for ac_func
in XML_StopParser
8141 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8142 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
8143 cat >>confdefs.h
<<_ACEOF
8144 #define HAVE_XML_STOPPARSER 1
8154 # --------------------- #
8155 # Check for libpython. #
8156 # --------------------- #
8163 # Check whether --with-python was given.
8164 if test "${with_python+set}" = set; then :
8165 withval
=$with_python;
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8171 $as_echo_n "checking whether to use python... " >&6; }
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8173 $as_echo "$with_python" >&6; }
8175 if test "${with_python}" = no
; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8177 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8180 case "${with_python}" in
8182 if test -d ${with_python}; then
8183 # Assume the python binary is ${with_python}/bin/python.
8184 python_prog
="${with_python}/bin/python"
8186 # If python does not exit ${with_python}/bin, then try in
8187 # ${with_python}. On Windows/MinGW, this is where the Python
8189 if test ! -x "${python_prog}"; then
8190 python_prog
="${with_python}/python"
8193 if test ! -x "${python_prog}"; then
8194 # Fall back to gdb 7.0/7.1 behaviour.
8196 python_prefix
=${with_python}
8198 elif test -x "${with_python}"; then
8199 # While we can't run python compiled for $host (unless host == build),
8200 # the user could write a script that provides the needed information,
8201 # so we support that.
8202 python_prog
=${with_python}
8205 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8209 # Disallow --with-python=foo/bar.
8210 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8213 # The user has either specified auto, yes, or the name of the python
8214 # program assumed to be in $PATH.
8216 case "${with_python}" in
8218 if test ${build} = ${host}; then
8219 # Extract the first word of "python", so it can be a program name with args.
8220 set dummy python
; ac_word
=$2
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 $as_echo_n "checking for $ac_word... " >&6; }
8223 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
8226 case $python_prog_path in
8228 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8235 test -z "$as_dir" && as_dir
=.
8236 for ac_exec_ext
in '' $ac_executable_extensions; do
8237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8238 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8250 python_prog_path
=$ac_cv_path_python_prog_path
8251 if test -n "$python_prog_path"; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8253 $as_echo "$python_prog_path" >&6; }
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8260 if test "${python_prog_path}" = missing
; then
8263 python_prog
=${python_prog_path}
8266 # Not much we can do except assume the cross-compiler will find the
8272 # While we can't run python compiled for $host (unless host == build),
8273 # the user could write a script that provides the needed information,
8274 # so we support that.
8275 python_prog
="${with_python}"
8276 # Extract the first word of "${python_prog}", so it can be a program name with args.
8277 set dummy
${python_prog}; ac_word
=$2
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 $as_echo_n "checking for $ac_word... " >&6; }
8280 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8283 case $python_prog_path in
8285 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8292 test -z "$as_dir" && as_dir
=.
8293 for ac_exec_ext
in '' $ac_executable_extensions; do
8294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8295 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8303 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8307 python_prog_path
=$ac_cv_path_python_prog_path
8308 if test -n "$python_prog_path"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8310 $as_echo "$python_prog_path" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8317 if test "${python_prog_path}" = missing
; then
8318 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
8324 if test "${python_prog}" != missing
; then
8325 # We have a python program to use, but it may be too old.
8326 # Don't flag an error for --with-python=auto (the default).
8327 have_python_config
=yes
8328 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
8329 if test $?
!= 0; then
8330 have_python_config
=failed
8331 if test "${with_python}" != auto
; then
8332 as_fn_error
"failure running python-config --includes" "$LINENO" 5
8335 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8336 if test $?
!= 0; then
8337 have_python_config
=failed
8338 if test "${with_python}" != auto
; then
8339 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
8342 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8343 if test $?
!= 0; then
8344 have_python_config
=failed
8345 if test "${with_python}" != auto
; then
8346 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
8350 # We do not have a python executable we can use to determine where
8351 # to find the Python headers and libs. We cannot guess the include
8352 # path from the python_prefix either, because that include path
8353 # depends on the Python version. So, there is nothing much we can
8354 # do except assume that the compiler will be able to find those files.
8357 have_python_config
=no
8360 # If we have python-config, only try the configuration it provides.
8361 # Otherwise fallback on the old way of trying different versions of
8365 if test "${have_python_config}" = yes; then
8366 # Determine the Python version by extracting "-lpython<version>"
8367 # part of the python_libs. <version> is usually X.Y with X and Y
8368 # being decimal numbers, but can also be XY (seen on Windows).
8370 # The extraction is performed using sed with a regular expression.
8371 # Initially, the regexp used was using the '?' quantifier to make
8372 # the dot in the version number optional. Unfortunately, this
8373 # does not work with non-GNU versions of sed because, because of
8374 # what looks like a limitation (the '?' quantifier does not work
8375 # with back-references). We work around this limitation by using
8376 # the '*' quantifier instead. It means that, in theory, we might
8377 # match unexpected version strings such as "-lpython2..7", but
8378 # this seems unlikely in practice. And even if that happens,
8379 # an error will be triggered later on, when checking that version
8381 python_version
=`echo " ${python_libs} " \
8382 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8383 case "${python_version}" in
8386 version
=${python_version}
8388 new_CPPFLAGS
=${python_includes}
8389 new_LIBS
=${python_libs}
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8391 $as_echo_n "checking for ${version}... " >&6; }
8392 save_CPPFLAGS
=$CPPFLAGS
8394 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8395 LIBS
="$LIBS $new_LIBS"
8396 found_usable_python
=no
8397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8408 if ac_fn_c_try_link
"$LINENO"; then :
8409 have_libpython
=${version}
8410 found_usable_python
=yes
8411 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8412 PYTHON_LIBS
=$new_LIBS
8414 rm -f core conftest.err conftest.
$ac_objext \
8415 conftest
$ac_exeext conftest.
$ac_ext
8416 CPPFLAGS
=$save_CPPFLAGS
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8419 $as_echo "${found_usable_python}" >&6; }
8423 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
8426 elif test "${have_python_config}" != failed
; then
8427 if test "${have_libpython}" = no
; then
8431 new_CPPFLAGS
=${python_includes}
8432 new_LIBS
="${python_libs} -lpython2.7"
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8434 $as_echo_n "checking for ${version}... " >&6; }
8435 save_CPPFLAGS
=$CPPFLAGS
8437 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8438 LIBS
="$LIBS $new_LIBS"
8439 found_usable_python
=no
8440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8451 if ac_fn_c_try_link
"$LINENO"; then :
8452 have_libpython
=${version}
8453 found_usable_python
=yes
8454 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8455 PYTHON_LIBS
=$new_LIBS
8457 rm -f core conftest.err conftest.
$ac_objext \
8458 conftest
$ac_exeext conftest.
$ac_ext
8459 CPPFLAGS
=$save_CPPFLAGS
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8462 $as_echo "${found_usable_python}" >&6; }
8465 if test "${have_libpython}" = no
; then
8469 new_CPPFLAGS
=${python_includes}
8470 new_LIBS
="${python_libs} -lpython2.6"
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8472 $as_echo_n "checking for ${version}... " >&6; }
8473 save_CPPFLAGS
=$CPPFLAGS
8475 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8476 LIBS
="$LIBS $new_LIBS"
8477 found_usable_python
=no
8478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8489 if ac_fn_c_try_link
"$LINENO"; then :
8490 have_libpython
=${version}
8491 found_usable_python
=yes
8492 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8493 PYTHON_LIBS
=$new_LIBS
8495 rm -f core conftest.err conftest.
$ac_objext \
8496 conftest
$ac_exeext conftest.
$ac_ext
8497 CPPFLAGS
=$save_CPPFLAGS
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8500 $as_echo "${found_usable_python}" >&6; }
8503 if test ${have_libpython} = no
; then
8507 new_CPPFLAGS
=${python_includes}
8508 new_LIBS
="${python_libs} -lpython2.5"
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8510 $as_echo_n "checking for ${version}... " >&6; }
8511 save_CPPFLAGS
=$CPPFLAGS
8513 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8514 LIBS
="$LIBS $new_LIBS"
8515 found_usable_python
=no
8516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8527 if ac_fn_c_try_link
"$LINENO"; then :
8528 have_libpython
=${version}
8529 found_usable_python
=yes
8530 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8531 PYTHON_LIBS
=$new_LIBS
8533 rm -f core conftest.err conftest.
$ac_objext \
8534 conftest
$ac_exeext conftest.
$ac_ext
8535 CPPFLAGS
=$save_CPPFLAGS
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8538 $as_echo "${found_usable_python}" >&6; }
8541 if test ${have_libpython} = no
; then
8545 new_CPPFLAGS
=${python_includes}
8546 new_LIBS
="${python_libs} -lpython2.4"
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8548 $as_echo_n "checking for ${version}... " >&6; }
8549 save_CPPFLAGS
=$CPPFLAGS
8551 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8552 LIBS
="$LIBS $new_LIBS"
8553 found_usable_python
=no
8554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h. */
8565 if ac_fn_c_try_link
"$LINENO"; then :
8566 have_libpython
=${version}
8567 found_usable_python
=yes
8568 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8569 PYTHON_LIBS
=$new_LIBS
8571 rm -f core conftest.err conftest.
$ac_objext \
8572 conftest
$ac_exeext conftest.
$ac_ext
8573 CPPFLAGS
=$save_CPPFLAGS
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8576 $as_echo "${found_usable_python}" >&6; }
8580 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
8582 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8584 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
8586 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8588 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
8590 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8592 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
8594 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8598 if test "${have_libpython}" = no
; then
8599 case "${with_python}" in
8601 as_fn_error
"python is missing or unusable" "$LINENO" 5
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8605 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8608 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
8612 if test -n "${python_prefix}"; then
8614 cat >>confdefs.h
<<_ACEOF
8615 #define WITH_PYTHON_PATH "${python_prefix}"
8619 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8620 if test "x$prefix" = xNONE
; then
8621 test_prefix
=/usr
/local
8626 test_prefix
=$exec_prefix
8629 case ${python_prefix} in
8630 "${test_prefix}"|
"${test_prefix}/"*|\
8631 '${exec_prefix}'|
'${exec_prefix}/'*)
8636 cat >>confdefs.h
<<_ACEOF
8637 #define PYTHON_PATH_RELOCATABLE $value
8645 if test "${have_libpython}" != no
; then
8647 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8649 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8650 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8651 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8652 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
8653 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8655 # Flags needed to compile Python code (taken from python-config --cflags).
8656 # We cannot call python-config directly because it will output whatever was
8657 # used when compiling the Python interpreter itself, including flags which
8658 # would make the python-related objects be compiled differently from the
8659 # rest of GDB (e.g., -O2 and -fPIC).
8660 if test "${GCC}" = yes; then
8661 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
8664 if test "x${tentative_python_cflags}" != x
; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8666 $as_echo_n "checking compiler flags for python code... " >&6; }
8667 for flag
in ${tentative_python_cflags}; do
8668 # Check that the compiler accepts it
8669 saved_CFLAGS
="$CFLAGS"
8670 CFLAGS
="$CFLAGS $flag"
8671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8682 if ac_fn_c_try_compile
"$LINENO"; then :
8683 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
8685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8686 CFLAGS
="$saved_CFLAGS"
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8689 $as_echo "${PYTHON_CFLAGS}" >&6; }
8692 # On x64 Windows, Python's include headers, and pyconfig.h in
8693 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8694 # version of Windows. Unfortunately, MS_WIN64 is only defined if
8695 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
8696 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8697 # The issue was reported to the Python community, but still isn't
8698 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8702 if test "${GCC}" = yes; then
8703 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
8708 # Note that "python -m threading" cannot be used to check for
8709 # threading support due to a bug in Python 2.7.3
8710 # (http://bugs.python.org/issue15567).
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
8712 $as_echo_n "checking whether python supports threads... " >&6; }
8713 saved_CPPFLAGS
="${CPPFLAGS}"
8714 CPPFLAGS
="${PYTHON_CPPFLAGS}"
8715 # Note that the test is reversed so that python_has_threads=yes on
8716 # unexpected failures.
8717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8726 if ac_fn_c_try_cpp
"$LINENO"; then :
8727 python_has_threads
=no
8729 python_has_threads
=yes
8731 rm -f conftest.err conftest.
$ac_ext
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
8733 $as_echo "${python_has_threads}" >&6; }
8734 CPPFLAGS
="${saved_CPPFLAGS}"
8736 # Even if Python support is not compiled in, we need to have this file
8737 # included so that the "python" command, et.al., still exists.
8738 CONFIG_OBS
="$CONFIG_OBS python.o"
8739 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
8744 if test "${have_libpython}" != no
; then
8746 HAVE_PYTHON_FALSE
='#'
8748 HAVE_PYTHON_TRUE
='#'
8753 # -------------------- #
8754 # Check for libguile. #
8755 # -------------------- #
8762 # Check whether --with-guile was given.
8763 if test "${with_guile+set}" = set; then :
8764 withval
=$with_guile;
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
8770 $as_echo_n "checking whether to use guile... " >&6; }
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
8772 $as_echo "$with_guile" >&6; }
8774 # Extract the first word of "pkg-config", so it can be a program name with args.
8775 set dummy pkg-config
; ac_word
=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
8779 $as_echo_n "(cached) " >&6
8781 case $pkg_config_prog_path in
8783 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
8786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8790 test -z "$as_dir" && as_dir
=.
8791 for ac_exec_ext
in '' $ac_executable_extensions; do
8792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8793 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
8805 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
8806 if test -n "$pkg_config_prog_path"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
8808 $as_echo "$pkg_config_prog_path" >&6; }
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8816 try_guile_versions
="guile-2.2 guile-2.0"
8818 case "${with_guile}" in
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
8821 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
8824 if test "${pkg_config_prog_path}" = "missing"; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
8826 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
8829 pkg_config
=${pkg_config_prog_path}
8830 guile_version_list
=${try_guile_versions}
8833 found_usable_guile
=checking
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8835 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8836 for guile_version
in ${guile_version_list}; do
8837 ${pkg_config} --exists ${guile_version} 2>/dev
/null
8838 if test $?
!= 0; then
8841 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
8842 if test $?
!= 0; then
8843 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8845 new_LIBS
=`${pkg_config} --libs ${guile_version}`
8846 if test $?
!= 0; then
8847 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8849 found_usable_guile
=${guile_version}
8852 if test "${found_usable_guile}" = "checking"; then
8853 if test "${flag_errors}" = "yes"; then
8854 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
8856 found_usable_guile
=no
8859 if test "${found_usable_guile}" != no
; then
8860 save_CPPFLAGS
=$CPPFLAGS
8862 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8863 LIBS
="$LIBS $new_LIBS"
8864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 #include "libguile.h"
8875 if ac_fn_c_try_link
"$LINENO"; then :
8877 GUILE_CPPFLAGS
=$new_CPPFLAGS
8878 GUILE_LIBS
=$new_LIBS
8880 found_usable_guile
=no
8882 rm -f core conftest.err conftest.
$ac_objext \
8883 conftest
$ac_exeext conftest.
$ac_ext
8884 CPPFLAGS
=$save_CPPFLAGS
8886 if test "${found_usable_guile}" = no
; then
8887 if test "${flag_errors}" = yes; then
8888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8890 as_fn_error
"linking guile version ${guile_version} test program failed
8891 See \`config.log' for more details." "$LINENO" 5; }
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
8896 $as_echo "${found_usable_guile}" >&6; }
8901 if test "${pkg_config_prog_path}" = "missing"; then
8902 as_fn_error
"pkg-config not found" "$LINENO" 5
8905 pkg_config
=${pkg_config_prog_path}
8906 guile_version_list
=${try_guile_versions}
8909 found_usable_guile
=checking
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8911 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8912 for guile_version
in ${guile_version_list}; do
8913 ${pkg_config} --exists ${guile_version} 2>/dev
/null
8914 if test $?
!= 0; then
8917 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
8918 if test $?
!= 0; then
8919 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8921 new_LIBS
=`${pkg_config} --libs ${guile_version}`
8922 if test $?
!= 0; then
8923 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8925 found_usable_guile
=${guile_version}
8928 if test "${found_usable_guile}" = "checking"; then
8929 if test "${flag_errors}" = "yes"; then
8930 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
8932 found_usable_guile
=no
8935 if test "${found_usable_guile}" != no
; then
8936 save_CPPFLAGS
=$CPPFLAGS
8938 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8939 LIBS
="$LIBS $new_LIBS"
8940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 #include "libguile.h"
8951 if ac_fn_c_try_link
"$LINENO"; then :
8953 GUILE_CPPFLAGS
=$new_CPPFLAGS
8954 GUILE_LIBS
=$new_LIBS
8956 found_usable_guile
=no
8958 rm -f core conftest.err conftest.
$ac_objext \
8959 conftest
$ac_exeext conftest.
$ac_ext
8960 CPPFLAGS
=$save_CPPFLAGS
8962 if test "${found_usable_guile}" = no
; then
8963 if test "${flag_errors}" = yes; then
8964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8966 as_fn_error
"linking guile version ${guile_version} test program failed
8967 See \`config.log' for more details." "$LINENO" 5; }
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
8972 $as_echo "${found_usable_guile}" >&6; }
8976 if test -x "${with_guile}"; then
8978 pkg_config
=${with_guile}
8979 guile_version_list
=${try_guile_versions}
8982 found_usable_guile
=checking
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8984 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8985 for guile_version
in ${guile_version_list}; do
8986 ${pkg_config} --exists ${guile_version} 2>/dev
/null
8987 if test $?
!= 0; then
8990 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
8991 if test $?
!= 0; then
8992 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8994 new_LIBS
=`${pkg_config} --libs ${guile_version}`
8995 if test $?
!= 0; then
8996 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8998 found_usable_guile
=${guile_version}
9001 if test "${found_usable_guile}" = "checking"; then
9002 if test "${flag_errors}" = "yes"; then
9003 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9005 found_usable_guile
=no
9008 if test "${found_usable_guile}" != no
; then
9009 save_CPPFLAGS
=$CPPFLAGS
9011 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9012 LIBS
="$LIBS $new_LIBS"
9013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9015 #include "libguile.h"
9024 if ac_fn_c_try_link
"$LINENO"; then :
9026 GUILE_CPPFLAGS
=$new_CPPFLAGS
9027 GUILE_LIBS
=$new_LIBS
9029 found_usable_guile
=no
9031 rm -f core conftest.err conftest.
$ac_objext \
9032 conftest
$ac_exeext conftest.
$ac_ext
9033 CPPFLAGS
=$save_CPPFLAGS
9035 if test "${found_usable_guile}" = no
; then
9036 if test "${flag_errors}" = yes; then
9037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9039 as_fn_error
"linking guile version ${guile_version} test program failed
9040 See \`config.log' for more details." "$LINENO" 5; }
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9045 $as_echo "${found_usable_guile}" >&6; }
9048 as_fn_error
"Guile config program not executable: ${with_guile}" "$LINENO" 5
9052 # Disallow --with=guile="" and --with-guile=foo/bar.
9053 as_fn_error
"invalid value for --with-guile" "$LINENO" 5
9056 # A space separate list of guile versions to try, in order.
9057 if test "${pkg_config_prog_path}" = "missing"; then
9058 as_fn_error
"pkg-config not found" "$LINENO" 5
9061 pkg_config
=${pkg_config_prog_path}
9062 guile_version_list
=${with_guile}
9065 found_usable_guile
=checking
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9067 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9068 for guile_version
in ${guile_version_list}; do
9069 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9070 if test $?
!= 0; then
9073 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9074 if test $?
!= 0; then
9075 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9077 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9078 if test $?
!= 0; then
9079 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9081 found_usable_guile
=${guile_version}
9084 if test "${found_usable_guile}" = "checking"; then
9085 if test "${flag_errors}" = "yes"; then
9086 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9088 found_usable_guile
=no
9091 if test "${found_usable_guile}" != no
; then
9092 save_CPPFLAGS
=$CPPFLAGS
9094 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9095 LIBS
="$LIBS $new_LIBS"
9096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 #include "libguile.h"
9107 if ac_fn_c_try_link
"$LINENO"; then :
9109 GUILE_CPPFLAGS
=$new_CPPFLAGS
9110 GUILE_LIBS
=$new_LIBS
9112 found_usable_guile
=no
9114 rm -f core conftest.err conftest.
$ac_objext \
9115 conftest
$ac_exeext conftest.
$ac_ext
9116 CPPFLAGS
=$save_CPPFLAGS
9118 if test "${found_usable_guile}" = no
; then
9119 if test "${flag_errors}" = yes; then
9120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9122 as_fn_error
"linking guile version ${guile_version} test program failed
9123 See \`config.log' for more details." "$LINENO" 5; }
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9128 $as_echo "${found_usable_guile}" >&6; }
9133 if test "${have_libguile}" != no
; then
9134 case "${with_guile}" in
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9138 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9139 if test "${ac_cv_guild_program_name+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9142 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
9144 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9145 # the 'guild' and 'bindir' variables. In that case, try to guess
9146 # what the program name is, at the risk of getting it wrong if
9147 # Guile was configured with '--program-suffix' or similar.
9148 if test "x$ac_cv_guild_program_name" = "x"; then
9149 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9150 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9155 $as_echo "$ac_cv_guild_program_name" >&6; }
9157 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9158 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9161 GUILD
="$ac_cv_guild_program_name"
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9168 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9169 if test "${ac_cv_guild_program_name+set}" = set; then :
9170 $as_echo_n "(cached) " >&6
9172 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9174 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9175 # the 'guild' and 'bindir' variables. In that case, try to guess
9176 # what the program name is, at the risk of getting it wrong if
9177 # Guile was configured with '--program-suffix' or similar.
9178 if test "x$ac_cv_guild_program_name" = "x"; then
9179 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9180 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9185 $as_echo "$ac_cv_guild_program_name" >&6; }
9187 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9188 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9191 GUILD
="$ac_cv_guild_program_name"
9198 if test "$cross_compiling" = no
; then
9201 GUILD_TARGET_FLAG
="--target=$host"
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9208 $as_echo_n "checking whether guild supports this host... " >&6; }
9209 if test "${ac_cv_guild_ok+set}" = set; then :
9210 $as_echo_n "(cached) " >&6
9212 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9213 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9220 $as_echo "$ac_cv_guild_ok" >&6; }
9222 if test "$ac_cv_guild_ok" = no
; then
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9225 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9229 if test "${have_libguile}" != no
; then
9231 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9233 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9234 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9235 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9236 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
9237 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9240 save_CPPFLAGS
="$CPPFLAGS"
9242 CPPFLAGS
="$GUILE_CPPFLAGS"
9243 for ac_func
in scm_new_smob
9245 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9246 if test "x$ac_cv_func_scm_new_smob" = x
""yes; then :
9247 cat >>confdefs.h
<<_ACEOF
9248 #define HAVE_SCM_NEW_SMOB 1
9255 CPPFLAGS
="$save_CPPFLAGS"
9257 # Even if Guile support is not compiled in, we need to have these files
9259 CONFIG_OBS
="$CONFIG_OBS guile.o"
9260 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
9264 if test "${have_libguile}" != no
; then
9266 HAVE_GUILE_FALSE
='#'
9273 # --------------------- #
9274 # Check for libmcheck. #
9275 # --------------------- #
9277 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9278 # but turn it off if Python is enabled with threads, since -lmcheck is
9279 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9281 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
9282 && $development; then
9283 libmcheck_default
=yes
9285 libmcheck_default
=no
9288 # Check whether --enable-libmcheck was given.
9289 if test "${enable_libmcheck+set}" = set; then :
9290 enableval
=$enable_libmcheck; case "${enableval}" in
9291 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
9292 no | n
) ENABLE_LIBMCHECK
="no" ;;
9293 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
9298 if test -z "${ENABLE_LIBMCHECK}"; then
9299 ENABLE_LIBMCHECK
=${libmcheck_default}
9302 if test "$ENABLE_LIBMCHECK" = "yes" ; then
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
9304 $as_echo_n "checking for main in -lmcheck... " >&6; }
9305 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9308 ac_check_lib_save_LIBS
=$LIBS
9309 LIBS
="-lmcheck $LIBS"
9310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h. */
9322 if ac_fn_c_try_link
"$LINENO"; then :
9323 ac_cv_lib_mcheck_main
=yes
9325 ac_cv_lib_mcheck_main
=no
9327 rm -f core conftest.err conftest.
$ac_objext \
9328 conftest
$ac_exeext conftest.
$ac_ext
9329 LIBS
=$ac_check_lib_save_LIBS
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
9332 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
9333 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
9334 cat >>confdefs.h
<<_ACEOF
9335 #define HAVE_LIBMCHECK 1
9338 LIBS
="-lmcheck $LIBS"
9345 if test "$ENABLE_LIBMCHECK" = "yes" \
9346 -a "${have_libpython}" != "no" \
9347 -a "${python_has_threads}" = "yes" ; then
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
9349 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
9352 # ------------------------- #
9353 # Checks for header files. #
9354 # ------------------------- #
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9357 $as_echo_n "checking for ANSI C header files... " >&6; }
9358 if test "${ac_cv_header_stdc+set}" = set; then :
9359 $as_echo_n "(cached) " >&6
9361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9376 if ac_fn_c_try_compile
"$LINENO"; then :
9377 ac_cv_header_stdc
=yes
9379 ac_cv_header_stdc
=no
9381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9383 if test $ac_cv_header_stdc = yes; then
9384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9391 $EGREP "memchr" >/dev
/null
2>&1; then :
9394 ac_cv_header_stdc
=no
9400 if test $ac_cv_header_stdc = yes; then
9401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9408 $EGREP "free" >/dev
/null
2>&1; then :
9411 ac_cv_header_stdc
=no
9417 if test $ac_cv_header_stdc = yes; then
9418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9419 if test "$cross_compiling" = yes; then :
9422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9426 #if ((' ' & 0x0FF) == 0x020)
9427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9430 # define ISLOWER(c) \
9431 (('a' <= (c) && (c) <= 'i') \
9432 || ('j' <= (c) && (c) <= 'r') \
9433 || ('s' <= (c) && (c) <= 'z'))
9434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9437 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9442 for (i = 0; i < 256; i++)
9443 if (XOR (islower (i), ISLOWER (i))
9444 || toupper (i) != TOUPPER (i))
9449 if ac_fn_c_try_run
"$LINENO"; then :
9452 ac_cv_header_stdc
=no
9454 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9455 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9461 $as_echo "$ac_cv_header_stdc" >&6; }
9462 if test $ac_cv_header_stdc = yes; then
9464 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9468 # elf_hp.h is for HP/UX 64-bit shared library support.
9469 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
9472 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
9473 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
9474 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
9475 termios.h termio.h \
9479 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9480 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9481 eval as_val
=\$
$as_ac_Header
9482 if test "x$as_val" = x
""yes; then :
9483 cat >>confdefs.h
<<_ACEOF
9484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9491 for ac_header
in sys
/proc.h
9493 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
9494 # include <sys/param.h>
9498 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
9499 cat >>confdefs.h
<<_ACEOF
9500 #define HAVE_SYS_PROC_H 1
9507 for ac_header
in sys
/user.h
9509 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
9510 # include <sys/param.h>
9514 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
9515 cat >>confdefs.h
<<_ACEOF
9516 #define HAVE_SYS_USER_H 1
9524 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
9525 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
9526 # think that we don't have <curses.h> if we're using GCC.
9529 if test "$GCC" = yes; then
9531 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
9535 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
9537 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9538 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9539 eval as_val
=\$
$as_ac_Header
9540 if test "x$as_val" = x
""yes; then :
9541 cat >>confdefs.h
<<_ACEOF
9542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9549 for ac_header
in term.h
9551 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9552 # include <curses.h>
9556 if test "x$ac_cv_header_term_h" = x
""yes; then :
9557 cat >>confdefs.h
<<_ACEOF
9558 #define HAVE_TERM_H 1
9566 # ------------------------- #
9567 # Checks for declarations. #
9568 # ------------------------- #
9570 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
9571 if test "x$ac_cv_have_decl_free" = x
""yes; then :
9577 cat >>confdefs.h
<<_ACEOF
9578 #define HAVE_DECL_FREE $ac_have_decl
9580 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
9581 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
9587 cat >>confdefs.h
<<_ACEOF
9588 #define HAVE_DECL_MALLOC $ac_have_decl
9590 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9591 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
9597 cat >>confdefs.h
<<_ACEOF
9598 #define HAVE_DECL_REALLOC $ac_have_decl
9600 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9601 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
9607 cat >>confdefs.h
<<_ACEOF
9608 #define HAVE_DECL_SNPRINTF $ac_have_decl
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9613 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9614 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9615 $as_echo_n "(cached) " >&6
9617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9628 if ac_fn_c_try_link
"$LINENO"; then :
9629 am_cv_val_LC_MESSAGES
=yes
9631 am_cv_val_LC_MESSAGES
=no
9633 rm -f core conftest.err conftest.
$ac_objext \
9634 conftest
$ac_exeext conftest.
$ac_ext
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9637 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9638 if test $am_cv_val_LC_MESSAGES = yes; then
9640 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9645 # ----------------------- #
9646 # Checks for structures. #
9647 # ----------------------- #
9649 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9650 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
9652 cat >>confdefs.h
<<_ACEOF
9653 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9658 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9659 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
9661 cat >>confdefs.h
<<_ACEOF
9662 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9669 # ------------------ #
9670 # Checks for types. #
9671 # ------------------ #
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9674 $as_echo_n "checking return type of signal handlers... " >&6; }
9675 if test "${ac_cv_type_signal+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680 #include <sys/types.h>
9686 return *(signal (0, 0)) (0) == 1;
9691 if ac_fn_c_try_compile
"$LINENO"; then :
9692 ac_cv_type_signal
=int
9694 ac_cv_type_signal
=void
9696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9699 $as_echo "$ac_cv_type_signal" >&6; }
9701 cat >>confdefs.h
<<_ACEOF
9702 #define RETSIGTYPE $ac_cv_type_signal
9706 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9707 #include <sys/socket.h>
9710 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
9712 cat >>confdefs.h
<<_ACEOF
9713 #define HAVE_SOCKLEN_T 1
9720 # ------------------------------------- #
9721 # Checks for compiler characteristics. #
9722 # ------------------------------------- #
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9725 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9726 if test "${ac_cv_c_const+set}" = set; then :
9727 $as_echo_n "(cached) " >&6
9729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9735 /* FIXME: Include the comments suggested by Paul. */
9737 /* Ultrix mips cc rejects this. */
9738 typedef int charset[2];
9740 /* SunOS 4.1.1 cc rejects this. */
9741 char const *const *pcpcc;
9743 /* NEC SVR4.0.2 mips cc rejects this. */
9744 struct point {int x, y;};
9745 static struct point const zero = {0,0};
9746 /* AIX XL C 1.02.0.0 rejects this.
9747 It does not let you subtract one const X* pointer from another in
9748 an arm of an if-expression whose if-part is not a constant
9750 const char *g = "string";
9751 pcpcc = &g + (g ? g-g : 0);
9752 /* HPUX 7.0 cc rejects these. */
9754 ppc = (char**) pcpcc;
9755 pcpcc = (char const *const *) ppc;
9756 { /* SCO 3.2v4 cc rejects this. */
9758 char const *s = 0 ? (char *) 0 : (char const *) 0;
9763 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9765 const int *foo = &x[0];
9768 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9769 typedef const int *iptr;
9773 { /* AIX XL C 1.02.0.0 rejects this saying
9774 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9775 struct s { int j; const int *ap[3]; };
9776 struct s *b; b->j = 5;
9778 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9782 return !cs[0] && !zero.x;
9789 if ac_fn_c_try_compile
"$LINENO"; then :
9794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9797 $as_echo "$ac_cv_c_const" >&6; }
9798 if test $ac_cv_c_const = no
; then
9800 $as_echo "#define const /**/" >>confdefs.h
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9805 $as_echo_n "checking for inline... " >&6; }
9806 if test "${ac_cv_c_inline+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
9810 for ac_kw
in inline __inline__ __inline
; do
9811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9815 static $ac_kw foo_t static_foo () {return 0; }
9816 $ac_kw foo_t foo () {return 0; }
9820 if ac_fn_c_try_compile
"$LINENO"; then :
9821 ac_cv_c_inline
=$ac_kw
9823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9824 test "$ac_cv_c_inline" != no
&& break
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9829 $as_echo "$ac_cv_c_inline" >&6; }
9831 case $ac_cv_c_inline in
9834 case $ac_cv_c_inline in
9836 *) ac_val
=$ac_cv_c_inline;;
9838 cat >>confdefs.h
<<_ACEOF
9840 #define inline $ac_val
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9847 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9848 if test "${ac_cv_c_bigendian+set}" = set; then :
9849 $as_echo_n "(cached) " >&6
9851 ac_cv_c_bigendian
=unknown
9852 # See if we're dealing with a universal compiler.
9853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9855 #ifndef __APPLE_CC__
9856 not a universal capable compiler
9861 if ac_fn_c_try_compile
"$LINENO"; then :
9863 # Check for potential -arch flags. It is not universal unless
9864 # there are at least two -arch flags with different values.
9867 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9868 if test -n "$ac_prev"; then
9870 i?
86 | x86_64 | ppc | ppc64
)
9871 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9874 ac_cv_c_bigendian
=universal
9880 elif test "x$ac_word" = "x-arch"; then
9885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9886 if test $ac_cv_c_bigendian = unknown
; then
9887 # See if sys/param.h defines the BYTE_ORDER macro.
9888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h. */
9890 #include <sys/types.h>
9891 #include <sys/param.h>
9896 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9897 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9906 if ac_fn_c_try_compile
"$LINENO"; then :
9907 # It does; now see whether it defined to BIG_ENDIAN or not.
9908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 #include <sys/types.h>
9911 #include <sys/param.h>
9916 #if BYTE_ORDER != BIG_ENDIAN
9924 if ac_fn_c_try_compile
"$LINENO"; then :
9925 ac_cv_c_bigendian
=yes
9927 ac_cv_c_bigendian
=no
9929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9933 if test $ac_cv_c_bigendian = unknown
; then
9934 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9942 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9950 if ac_fn_c_try_compile
"$LINENO"; then :
9951 # It does; now see whether it defined to _BIG_ENDIAN or not.
9952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9967 if ac_fn_c_try_compile
"$LINENO"; then :
9968 ac_cv_c_bigendian
=yes
9970 ac_cv_c_bigendian
=no
9972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9976 if test $ac_cv_c_bigendian = unknown
; then
9977 # Compile a test program.
9978 if test "$cross_compiling" = yes; then :
9979 # Try to guess by grepping values from an object file.
9980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9981 /* end confdefs.h. */
9982 short int ascii_mm[] =
9983 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9984 short int ascii_ii[] =
9985 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9986 int use_ascii (int i) {
9987 return ascii_mm[i] + ascii_ii[i];
9989 short int ebcdic_ii[] =
9990 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9991 short int ebcdic_mm[] =
9992 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9993 int use_ebcdic (int i) {
9994 return ebcdic_mm[i] + ebcdic_ii[i];
10001 return use_ascii (foo) == use_ebcdic (foo);
10006 if ac_fn_c_try_compile
"$LINENO"; then :
10007 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10008 ac_cv_c_bigendian
=yes
10010 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10011 if test "$ac_cv_c_bigendian" = unknown
; then
10012 ac_cv_c_bigendian
=no
10014 # finding both strings is unlikely to happen, but who knows?
10015 ac_cv_c_bigendian
=unknown
10019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h. */
10023 $ac_includes_default
10028 /* Are we little or big endian? From Harbison&Steele. */
10032 char c[sizeof (long int)];
10035 return u.c[sizeof (long int) - 1] == 1;
10041 if ac_fn_c_try_run
"$LINENO"; then :
10042 ac_cv_c_bigendian
=no
10044 ac_cv_c_bigendian
=yes
10046 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10047 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10053 $as_echo "$ac_cv_c_bigendian" >&6; }
10054 case $ac_cv_c_bigendian in #(
10056 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10062 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10066 as_fn_error
"unknown endianness
10067 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10071 # ------------------------------ #
10072 # Checks for library functions. #
10073 # ------------------------------ #
10075 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10076 # for constant arguments. Useless!
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10078 $as_echo_n "checking for working alloca.h... " >&6; }
10079 if test "${ac_cv_working_alloca_h+set}" = set; then :
10080 $as_echo_n "(cached) " >&6
10082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10084 #include <alloca.h>
10088 char *p = (char *) alloca (2 * sizeof (int));
10094 if ac_fn_c_try_link
"$LINENO"; then :
10095 ac_cv_working_alloca_h
=yes
10097 ac_cv_working_alloca_h
=no
10099 rm -f core conftest.err conftest.
$ac_objext \
10100 conftest
$ac_exeext conftest.
$ac_ext
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10103 $as_echo "$ac_cv_working_alloca_h" >&6; }
10104 if test $ac_cv_working_alloca_h = yes; then
10106 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10111 $as_echo_n "checking for alloca... " >&6; }
10112 if test "${ac_cv_func_alloca_works+set}" = set; then :
10113 $as_echo_n "(cached) " >&6
10115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h. */
10118 # define alloca __builtin_alloca
10121 # include <malloc.h>
10122 # define alloca _alloca
10124 # ifdef HAVE_ALLOCA_H
10125 # include <alloca.h>
10130 # ifndef alloca /* predefined by HP cc +Olibcalls */
10141 char *p = (char *) alloca (1);
10147 if ac_fn_c_try_link
"$LINENO"; then :
10148 ac_cv_func_alloca_works
=yes
10150 ac_cv_func_alloca_works
=no
10152 rm -f core conftest.err conftest.
$ac_objext \
10153 conftest
$ac_exeext conftest.
$ac_ext
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10156 $as_echo "$ac_cv_func_alloca_works" >&6; }
10158 if test $ac_cv_func_alloca_works = yes; then
10160 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10163 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10164 # that cause trouble. Some versions do not even contain alloca or
10165 # contain a buggy version. If you still want to use their alloca,
10166 # use ar to extract alloca.o from them instead of compiling alloca.c.
10168 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10170 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10174 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10175 if test "${ac_cv_os_cray+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
10178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180 #if defined CRAY && ! defined CRAY2
10187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10188 $EGREP "webecray" >/dev
/null
2>&1; then :
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10197 $as_echo "$ac_cv_os_cray" >&6; }
10198 if test $ac_cv_os_cray = yes; then
10199 for ac_func
in _getb67 GETB67 getb67
; do
10200 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10201 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10202 eval as_val
=\$
$as_ac_var
10203 if test "x$as_val" = x
""yes; then :
10205 cat >>confdefs.h
<<_ACEOF
10206 #define CRAY_STACKSEG_END $ac_func
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10216 $as_echo_n "checking stack direction for C alloca... " >&6; }
10217 if test "${ac_cv_c_stack_direction+set}" = set; then :
10218 $as_echo_n "(cached) " >&6
10220 if test "$cross_compiling" = yes; then :
10221 ac_cv_c_stack_direction
=0
10223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225 $ac_includes_default
10227 find_stack_direction ()
10229 static char *addr = 0;
10234 return find_stack_direction ();
10237 return (&dummy > addr) ? 1 : -1;
10243 return find_stack_direction () < 0;
10246 if ac_fn_c_try_run
"$LINENO"; then :
10247 ac_cv_c_stack_direction
=1
10249 ac_cv_c_stack_direction
=-1
10251 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10252 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10257 $as_echo "$ac_cv_c_stack_direction" >&6; }
10258 cat >>confdefs.h
<<_ACEOF
10259 #define STACK_DIRECTION $ac_cv_c_stack_direction
10265 for ac_header
in stdlib.h unistd.h
10267 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10268 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10269 eval as_val
=\$
$as_ac_Header
10270 if test "x$as_val" = x
""yes; then :
10271 cat >>confdefs.h
<<_ACEOF
10272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10279 for ac_func
in getpagesize
10281 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10282 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10283 cat >>confdefs.h
<<_ACEOF
10284 #define HAVE_GETPAGESIZE 1
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10291 $as_echo_n "checking for working mmap... " >&6; }
10292 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10293 $as_echo_n "(cached) " >&6
10295 if test "$cross_compiling" = yes; then :
10296 ac_cv_func_mmap_fixed_mapped
=no
10298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10299 /* end confdefs.h. */
10300 $ac_includes_default
10301 /* malloc might have been renamed as rpl_malloc. */
10304 /* Thanks to Mike Haertel and Jim Avera for this test.
10305 Here is a matrix of mmap possibilities:
10306 mmap private not fixed
10307 mmap private fixed at somewhere currently unmapped
10308 mmap private fixed at somewhere already mapped
10309 mmap shared not fixed
10310 mmap shared fixed at somewhere currently unmapped
10311 mmap shared fixed at somewhere already mapped
10312 For private mappings, we should verify that changes cannot be read()
10313 back from the file, nor mmap's back from the file at a different
10314 address. (There have been systems where private was not correctly
10315 implemented like the infamous i386 svr4.0, and systems where the
10316 VM page cache was not coherent with the file system buffer cache
10317 like early versions of FreeBSD and possibly contemporary NetBSD.)
10318 For shared mappings, we should conversely verify that changes get
10319 propagated back to all the places they're supposed to be.
10321 Grep wants private fixed already mapped.
10322 The main things grep needs to know about mmap are:
10323 * does it exist and is it safe to write into the mmap'd area
10324 * how to use it (BSD variants) */
10327 #include <sys/mman.h>
10329 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10333 /* This mess was copied from the GNU getpagesize.h. */
10334 #ifndef HAVE_GETPAGESIZE
10335 /* Assume that all systems that can run configure have sys/param.h. */
10336 # ifndef HAVE_SYS_PARAM_H
10337 # define HAVE_SYS_PARAM_H 1
10340 # ifdef _SC_PAGESIZE
10341 # define getpagesize() sysconf(_SC_PAGESIZE)
10342 # else /* no _SC_PAGESIZE */
10343 # ifdef HAVE_SYS_PARAM_H
10344 # include <sys/param.h>
10345 # ifdef EXEC_PAGESIZE
10346 # define getpagesize() EXEC_PAGESIZE
10347 # else /* no EXEC_PAGESIZE */
10349 # define getpagesize() NBPG * CLSIZE
10352 # endif /* no CLSIZE */
10353 # else /* no NBPG */
10355 # define getpagesize() NBPC
10356 # else /* no NBPC */
10358 # define getpagesize() PAGESIZE
10359 # endif /* PAGESIZE */
10360 # endif /* no NBPC */
10361 # endif /* no NBPG */
10362 # endif /* no EXEC_PAGESIZE */
10363 # else /* no HAVE_SYS_PARAM_H */
10364 # define getpagesize() 8192 /* punt totally */
10365 # endif /* no HAVE_SYS_PARAM_H */
10366 # endif /* no _SC_PAGESIZE */
10368 #endif /* no HAVE_GETPAGESIZE */
10373 char *data, *data2, *data3;
10377 pagesize = getpagesize ();
10379 /* First, make a file with some known garbage in it. */
10380 data = (char *) malloc (pagesize);
10383 for (i = 0; i < pagesize; ++i)
10384 *(data + i) = rand ();
10386 fd = creat ("conftest.mmap", 0600);
10389 if (write (fd, data, pagesize) != pagesize)
10393 /* Next, try to mmap the file at a fixed address which already has
10394 something else allocated at it. If we can, also make sure that
10395 we see the same garbage. */
10396 fd = open ("conftest.mmap", O_RDWR);
10399 data2 = (char *) malloc (2 * pagesize);
10402 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10403 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10404 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10406 for (i = 0; i < pagesize; ++i)
10407 if (*(data + i) != *(data2 + i))
10410 /* Finally, make sure that changes to the mapped area do not
10411 percolate back to the file as seen by read(). (This is a bug on
10412 some variants of i386 svr4.0.) */
10413 for (i = 0; i < pagesize; ++i)
10414 *(data2 + i) = *(data2 + i) + 1;
10415 data3 = (char *) malloc (pagesize);
10418 if (read (fd, data3, pagesize) != pagesize)
10420 for (i = 0; i < pagesize; ++i)
10421 if (*(data + i) != *(data3 + i))
10427 if ac_fn_c_try_run
"$LINENO"; then :
10428 ac_cv_func_mmap_fixed_mapped
=yes
10430 ac_cv_func_mmap_fixed_mapped
=no
10432 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10433 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10438 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10439 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10441 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10444 rm -f conftest.mmap
10446 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10447 if test "x$ac_cv_type_pid_t" = x
""yes; then :
10451 cat >>confdefs.h
<<_ACEOF
10457 for ac_header
in vfork.h
10459 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10460 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
10461 cat >>confdefs.h
<<_ACEOF
10462 #define HAVE_VFORK_H 1
10469 for ac_func
in fork vfork
10471 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10472 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10473 eval as_val
=\$
$as_ac_var
10474 if test "x$as_val" = x
""yes; then :
10475 cat >>confdefs.h
<<_ACEOF
10476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10482 if test "x$ac_cv_func_fork" = xyes
; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10484 $as_echo_n "checking for working fork... " >&6; }
10485 if test "${ac_cv_func_fork_works+set}" = set; then :
10486 $as_echo_n "(cached) " >&6
10488 if test "$cross_compiling" = yes; then :
10489 ac_cv_func_fork_works
=cross
10491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10493 $ac_includes_default
10498 /* By Ruediger Kuhlmann. */
10499 return fork () < 0;
10505 if ac_fn_c_try_run
"$LINENO"; then :
10506 ac_cv_func_fork_works
=yes
10508 ac_cv_func_fork_works
=no
10510 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10511 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10516 $as_echo "$ac_cv_func_fork_works" >&6; }
10519 ac_cv_func_fork_works
=$ac_cv_func_fork
10521 if test "x$ac_cv_func_fork_works" = xcross
; then
10523 *-*-amigaos* |
*-*-msdosdjgpp*)
10524 # Override, as these systems have only a dummy fork() stub
10525 ac_cv_func_fork_works
=no
10528 ac_cv_func_fork_works
=yes
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10532 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10534 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10535 if test "x$ac_cv_func_vfork" = xyes
; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10537 $as_echo_n "checking for working vfork... " >&6; }
10538 if test "${ac_cv_func_vfork_works+set}" = set; then :
10539 $as_echo_n "(cached) " >&6
10541 if test "$cross_compiling" = yes; then :
10542 ac_cv_func_vfork_works
=cross
10544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 /* Thanks to Paul Eggert for this test. */
10547 $ac_includes_default
10548 #include <sys/wait.h>
10549 #ifdef HAVE_VFORK_H
10550 # include <vfork.h>
10552 /* On some sparc systems, changes by the child to local and incoming
10553 argument registers are propagated back to the parent. The compiler
10554 is told about this with #include <vfork.h>, but some compilers
10555 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10556 static variable whose address is put into a register that is
10557 clobbered by the vfork. */
10560 sparc_address_test (int arg)
10562 sparc_address_test (arg) int arg;
10565 static pid_t child;
10583 pid_t parent = getpid ();
10586 sparc_address_test (0);
10591 /* Here is another test for sparc vfork register problems. This
10592 test uses lots of local variables, at least as many local
10593 variables as main has allocated so far including compiler
10594 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10595 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10596 reuse the register of parent for one of the local variables,
10597 since it will think that parent can't possibly be used any more
10598 in this routine. Assigning to the local variable will thus
10599 munge parent in the parent process. */
10601 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10602 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10603 /* Convince the compiler that p..p7 are live; otherwise, it might
10604 use the same hardware register for all 8 local variables. */
10605 if (p != p1 || p != p2 || p != p3 || p != p4
10606 || p != p5 || p != p6 || p != p7)
10609 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10610 from child file descriptors. If the child closes a descriptor
10611 before it execs or exits, this munges the parent's descriptor
10612 as well. Test for this by closing stdout in the child. */
10613 _exit(close(fileno(stdout)) != 0);
10618 while (wait(&status) != child)
10621 /* Was there some problem with vforking? */
10624 /* Did the child fail? (This shouldn't happen.) */
10627 /* Did the vfork/compiler bug occur? */
10628 || parent != getpid()
10630 /* Did the file descriptor bug occur? */
10631 || fstat(fileno(stdout), &st) != 0
10636 if ac_fn_c_try_run
"$LINENO"; then :
10637 ac_cv_func_vfork_works
=yes
10639 ac_cv_func_vfork_works
=no
10641 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10642 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10647 $as_echo "$ac_cv_func_vfork_works" >&6; }
10650 if test "x$ac_cv_func_fork_works" = xcross
; then
10651 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10653 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10656 if test "x$ac_cv_func_vfork_works" = xyes
; then
10658 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10662 $as_echo "#define vfork fork" >>confdefs.h
10665 if test "x$ac_cv_func_fork_works" = xyes
; then
10667 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10671 for ac_func
in canonicalize_file_name realpath getrusage getuid getgid \
10672 pipe poll pread pread64 pwrite readlink resize_term \
10673 sbrk setpgid setpgrp setsid \
10674 sigaction sigprocmask sigsetmask socketpair \
10675 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10676 setrlimit getrlimit posix_madvise waitpid lstat \
10677 ptrace64 sigaltstack
10679 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10680 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10681 eval as_val
=\$
$as_ac_var
10682 if test "x$as_val" = x
""yes; then :
10683 cat >>confdefs.h
<<_ACEOF
10684 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10692 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10693 if test "${am_cv_langinfo_codeset+set}" = set; then :
10694 $as_echo_n "(cached) " >&6
10696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10698 #include <langinfo.h>
10702 char* cs = nl_langinfo(CODESET);
10707 if ac_fn_c_try_link
"$LINENO"; then :
10708 am_cv_langinfo_codeset
=yes
10710 am_cv_langinfo_codeset
=no
10712 rm -f core conftest.err conftest.
$ac_objext \
10713 conftest
$ac_exeext conftest.
$ac_ext
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10717 $as_echo "$am_cv_langinfo_codeset" >&6; }
10718 if test $am_cv_langinfo_codeset = yes; then
10720 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10726 $as_echo_n "checking for ANSI C header files... " >&6; }
10727 if test "${ac_cv_header_stdc+set}" = set; then :
10728 $as_echo_n "(cached) " >&6
10730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732 #include <stdlib.h>
10733 #include <stdarg.h>
10734 #include <string.h>
10745 if ac_fn_c_try_compile
"$LINENO"; then :
10746 ac_cv_header_stdc
=yes
10748 ac_cv_header_stdc
=no
10750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10752 if test $ac_cv_header_stdc = yes; then
10753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10756 #include <string.h>
10759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10760 $EGREP "memchr" >/dev
/null
2>&1; then :
10763 ac_cv_header_stdc
=no
10769 if test $ac_cv_header_stdc = yes; then
10770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10773 #include <stdlib.h>
10776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10777 $EGREP "free" >/dev
/null
2>&1; then :
10780 ac_cv_header_stdc
=no
10786 if test $ac_cv_header_stdc = yes; then
10787 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10788 if test "$cross_compiling" = yes; then :
10791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10794 #include <stdlib.h>
10795 #if ((' ' & 0x0FF) == 0x020)
10796 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10797 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10799 # define ISLOWER(c) \
10800 (('a' <= (c) && (c) <= 'i') \
10801 || ('j' <= (c) && (c) <= 'r') \
10802 || ('s' <= (c) && (c) <= 'z'))
10803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10811 for (i = 0; i < 256; i++)
10812 if (XOR (islower (i), ISLOWER (i))
10813 || toupper (i) != TOUPPER (i))
10818 if ac_fn_c_try_run
"$LINENO"; then :
10821 ac_cv_header_stdc
=no
10823 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10824 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10830 $as_echo "$ac_cv_header_stdc" >&6; }
10831 if test $ac_cv_header_stdc = yes; then
10833 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10837 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10838 # for constant arguments. Useless!
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10840 $as_echo_n "checking for working alloca.h... " >&6; }
10841 if test "${ac_cv_working_alloca_h+set}" = set; then :
10842 $as_echo_n "(cached) " >&6
10844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10846 #include <alloca.h>
10850 char *p = (char *) alloca (2 * sizeof (int));
10856 if ac_fn_c_try_link
"$LINENO"; then :
10857 ac_cv_working_alloca_h
=yes
10859 ac_cv_working_alloca_h
=no
10861 rm -f core conftest.err conftest.
$ac_objext \
10862 conftest
$ac_exeext conftest.
$ac_ext
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10865 $as_echo "$ac_cv_working_alloca_h" >&6; }
10866 if test $ac_cv_working_alloca_h = yes; then
10868 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10873 $as_echo_n "checking for alloca... " >&6; }
10874 if test "${ac_cv_func_alloca_works+set}" = set; then :
10875 $as_echo_n "(cached) " >&6
10877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h. */
10880 # define alloca __builtin_alloca
10883 # include <malloc.h>
10884 # define alloca _alloca
10886 # ifdef HAVE_ALLOCA_H
10887 # include <alloca.h>
10892 # ifndef alloca /* predefined by HP cc +Olibcalls */
10903 char *p = (char *) alloca (1);
10909 if ac_fn_c_try_link
"$LINENO"; then :
10910 ac_cv_func_alloca_works
=yes
10912 ac_cv_func_alloca_works
=no
10914 rm -f core conftest.err conftest.
$ac_objext \
10915 conftest
$ac_exeext conftest.
$ac_ext
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10918 $as_echo "$ac_cv_func_alloca_works" >&6; }
10920 if test $ac_cv_func_alloca_works = yes; then
10922 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10925 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10926 # that cause trouble. Some versions do not even contain alloca or
10927 # contain a buggy version. If you still want to use their alloca,
10928 # use ar to extract alloca.o from them instead of compiling alloca.c.
10930 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10932 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10936 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10937 if test "${ac_cv_os_cray+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10942 #if defined CRAY && ! defined CRAY2
10949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10950 $EGREP "webecray" >/dev
/null
2>&1; then :
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10959 $as_echo "$ac_cv_os_cray" >&6; }
10960 if test $ac_cv_os_cray = yes; then
10961 for ac_func
in _getb67 GETB67 getb67
; do
10962 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10963 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10964 eval as_val
=\$
$as_ac_var
10965 if test "x$as_val" = x
""yes; then :
10967 cat >>confdefs.h
<<_ACEOF
10968 #define CRAY_STACKSEG_END $ac_func
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10978 $as_echo_n "checking stack direction for C alloca... " >&6; }
10979 if test "${ac_cv_c_stack_direction+set}" = set; then :
10980 $as_echo_n "(cached) " >&6
10982 if test "$cross_compiling" = yes; then :
10983 ac_cv_c_stack_direction
=0
10985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10987 $ac_includes_default
10989 find_stack_direction ()
10991 static char *addr = 0;
10996 return find_stack_direction ();
10999 return (&dummy > addr) ? 1 : -1;
11005 return find_stack_direction () < 0;
11008 if ac_fn_c_try_run
"$LINENO"; then :
11009 ac_cv_c_stack_direction
=1
11011 ac_cv_c_stack_direction
=-1
11013 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11014 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11019 $as_echo "$ac_cv_c_stack_direction" >&6; }
11020 cat >>confdefs.h
<<_ACEOF
11021 #define STACK_DIRECTION $ac_cv_c_stack_direction
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11030 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11031 if test "${am_cv_langinfo_codeset+set}" = set; then :
11032 $as_echo_n "(cached) " >&6
11034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11036 #include <langinfo.h>
11040 char* cs = nl_langinfo(CODESET);
11045 if ac_fn_c_try_link
"$LINENO"; then :
11046 am_cv_langinfo_codeset
=yes
11048 am_cv_langinfo_codeset
=no
11050 rm -f core conftest.err conftest.
$ac_objext \
11051 conftest
$ac_exeext conftest.
$ac_ext
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11055 $as_echo "$am_cv_langinfo_codeset" >&6; }
11056 if test $am_cv_langinfo_codeset = yes; then
11058 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11063 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/syscall.h sys
/un.h sys
/wait.h thread_db.h
wait.h
11065 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11066 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11067 eval as_val
=\$
$as_ac_Header
11068 if test "x$as_val" = x
""yes; then :
11069 cat >>confdefs.h
<<_ACEOF
11070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11078 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
11080 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11081 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11082 eval as_val
=\$
$as_ac_var
11083 if test "x$as_val" = x
""yes; then :
11084 cat >>confdefs.h
<<_ACEOF
11085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11092 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11093 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
11099 cat >>confdefs.h
<<_ACEOF
11100 #define HAVE_DECL_STRERROR $ac_have_decl
11102 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11103 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
11109 cat >>confdefs.h
<<_ACEOF
11110 #define HAVE_DECL_STRSTR $ac_have_decl
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11115 $as_echo_n "checking for sigsetjmp... " >&6; }
11116 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11122 #include <setjmp.h>
11127 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11132 if ac_fn_c_try_compile
"$LINENO"; then :
11133 gdb_cv_func_sigsetjmp
=yes
11135 gdb_cv_func_sigsetjmp
=no
11137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11140 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11141 if test $gdb_cv_func_sigsetjmp = yes; then
11143 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11148 # Check the return and argument types of ptrace. No canned test for
11149 # this, so roll our own.
11150 gdb_ptrace_headers
='
11151 #include <sys/types.h>
11152 #if HAVE_SYS_PTRACE_H
11153 # include <sys/ptrace.h>
11156 # include <unistd.h>
11159 # There is no point in checking if we don't have a prototype.
11160 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
11162 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
11168 cat >>confdefs.h
<<_ACEOF
11169 #define HAVE_DECL_PTRACE $ac_have_decl
11171 if test $ac_have_decl = 1; then :
11175 : ${gdb_cv_func_ptrace_ret='int'}
11176 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11180 # Check return type. Varargs (used on GNU/Linux) conflict with the
11181 # empty argument list, so check for that explicitly.
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11183 $as_echo_n "checking return type of ptrace... " >&6; }
11184 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
11187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11189 $gdb_ptrace_headers
11193 extern long ptrace (enum __ptrace_request, ...);
11198 if ac_fn_c_try_compile
"$LINENO"; then :
11199 gdb_cv_func_ptrace_ret
='long'
11201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11203 $gdb_ptrace_headers
11207 extern int ptrace ();
11212 if ac_fn_c_try_compile
"$LINENO"; then :
11213 gdb_cv_func_ptrace_ret
='int'
11215 gdb_cv_func_ptrace_ret
='long'
11217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11222 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11224 cat >>confdefs.h
<<_ACEOF
11225 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11228 # Check argument types.
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11230 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11231 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11232 $as_echo_n "(cached) " >&6
11235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237 $gdb_ptrace_headers
11241 extern long ptrace (enum __ptrace_request, ...);
11246 if ac_fn_c_try_compile
"$LINENO"; then :
11247 gdb_cv_func_ptrace_args
='int,int,long,long'
11250 for gdb_arg1
in 'int' 'long'; do
11251 for gdb_arg2
in 'pid_t' 'int' 'long'; do
11252 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11253 for gdb_arg4
in 'int' 'long' 'void *'; do
11254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11256 $gdb_ptrace_headers
11261 extern $gdb_cv_func_ptrace_ret
11262 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11268 if ac_fn_c_try_compile
"$LINENO"; then :
11269 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11273 for gdb_arg5
in 'int *' 'int' 'long'; do
11274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11276 $gdb_ptrace_headers
11281 extern $gdb_cv_func_ptrace_ret
11282 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11288 if ac_fn_c_try_compile
"$LINENO"; then :
11290 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11299 # Provide a safe default value.
11300 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11306 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11307 ac_save_IFS
=$IFS; IFS
=','
11308 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11312 cat >>confdefs.h
<<_ACEOF
11313 #define PTRACE_TYPE_ARG3 $3
11317 cat >>confdefs.h
<<_ACEOF
11318 #define PTRACE_TYPE_ARG4 $4
11321 if test -n "$5"; then
11323 cat >>confdefs.h
<<_ACEOF
11324 #define PTRACE_TYPE_ARG5 $5
11329 if test "$cross_compiling" = no
; then
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11331 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11332 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11333 $as_echo_n "(cached) " >&6
11335 if test "$cross_compiling" = yes; then :
11336 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
11338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11340 $ac_includes_default
11344 /* If this system has a BSD-style setpgrp which takes arguments,
11345 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11346 exit successfully. */
11347 return setpgrp (1,1) != -1;
11352 if ac_fn_c_try_run
"$LINENO"; then :
11353 ac_cv_func_setpgrp_void
=no
11355 ac_cv_func_setpgrp_void
=yes
11357 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11358 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11363 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11364 if test $ac_cv_func_setpgrp_void = yes; then
11366 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11372 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11373 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11374 $as_echo_n "(cached) " >&6
11376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11379 #include <unistd.h>
11385 if (setpgrp(1,1) == -1)
11394 if ac_fn_c_try_compile
"$LINENO"; then :
11395 ac_cv_func_setpgrp_void
=no
11397 ac_cv_func_setpgrp_void
=yes
11399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11402 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11403 if test $ac_cv_func_setpgrp_void = yes; then
11404 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11409 # Assume we'll default to using the included libiberty regex.
11410 gdb_use_included_regex
=yes
11412 # However, if the system regex is GNU regex, then default to *not*
11413 # using the included regex.
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11415 $as_echo_n "checking for GNU regex... " >&6; }
11416 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11417 $as_echo_n "(cached) " >&6
11419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11421 #include <gnu-versions.h>
11425 #define REGEX_INTERFACE_VERSION 1
11426 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11427 # error "Version mismatch"
11433 if ac_fn_c_try_compile
"$LINENO"; then :
11434 gdb_cv_have_gnu_regex
=yes
11436 gdb_cv_have_gnu_regex
=no
11438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11441 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11442 if test $gdb_cv_have_gnu_regex = yes; then
11443 gdb_use_included_regex
=no
11447 # Check whether --with-included-regex was given.
11448 if test "${with_included_regex+set}" = set; then :
11449 withval
=$with_included_regex; gdb_with_regex
=$withval
11451 gdb_with_regex
=$gdb_use_included_regex
11454 if test "$gdb_with_regex" = yes; then
11456 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11460 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11461 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11462 #include <sys/proc.h>
11465 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
11467 cat >>confdefs.h
<<_ACEOF
11468 #define HAVE_STRUCT_THREAD_TD_PCB 1
11475 # See if <sys/lwp.h> defines `struct lwp`.
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11477 $as_echo_n "checking for struct lwp... " >&6; }
11478 if test "${gdb_cv_struct_lwp+set}" = set; then :
11479 $as_echo_n "(cached) " >&6
11481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11483 #include <sys/param.h>
11484 #include <sys/lwp.h>
11493 if ac_fn_c_try_compile
"$LINENO"; then :
11494 gdb_cv_struct_lwp
=yes
11496 gdb_cv_struct_lwp
=no
11498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11501 $as_echo "$gdb_cv_struct_lwp" >&6; }
11502 if test $gdb_cv_struct_lwp = yes; then
11504 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11508 # See if <machine/reg.h> degines `struct reg'.
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11510 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11511 if test "${gdb_cv_struct_reg+set}" = set; then :
11512 $as_echo_n "(cached) " >&6
11514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11516 #include <sys/types.h>
11517 #include <machine/reg.h>
11526 if ac_fn_c_try_compile
"$LINENO"; then :
11527 gdb_cv_struct_reg
=yes
11529 gdb_cv_struct_reg
=no
11531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11534 $as_echo "$gdb_cv_struct_reg" >&6; }
11535 if test $gdb_cv_struct_reg = yes; then
11537 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11541 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11542 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11543 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11545 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
11547 cat >>confdefs.h
<<_ACEOF
11548 #define HAVE_STRUCT_REG_R_FS 1
11553 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11555 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
11557 cat >>confdefs.h
<<_ACEOF
11558 #define HAVE_STRUCT_REG_R_GS 1
11565 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
11566 # Older amd64 Linux's don't have the fs_base and gs_base members of
11567 # `struct user_regs_struct'.
11568 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/user.h>
11570 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
11572 cat >>confdefs.h
<<_ACEOF
11573 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
11578 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/user.h>
11580 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
11582 cat >>confdefs.h
<<_ACEOF
11583 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
11590 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11592 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11593 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11594 $as_echo_n "(cached) " >&6
11596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11598 #include <sys/ptrace.h>
11607 if ac_fn_c_try_compile
"$LINENO"; then :
11608 gdb_cv_have_ptrace_getregs
=yes
11610 gdb_cv_have_ptrace_getregs
=no
11612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11616 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11617 if test $gdb_cv_have_ptrace_getregs = yes; then
11619 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11623 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11625 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11626 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11631 #include <sys/ptrace.h>
11640 if ac_fn_c_try_compile
"$LINENO"; then :
11641 gdb_cv_have_ptrace_getfpxregs
=yes
11643 gdb_cv_have_ptrace_getfpxregs
=no
11645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11649 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11650 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11652 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11656 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11658 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11659 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11660 $as_echo_n "(cached) " >&6
11662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11664 #include <sys/types.h>
11665 #include <sys/ptrace.h>
11674 if ac_fn_c_try_compile
"$LINENO"; then :
11675 gdb_cv_have_pt_getdbregs
=yes
11677 gdb_cv_have_pt_getdbregs
=no
11679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11683 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11684 if test $gdb_cv_have_pt_getdbregs = yes; then
11686 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11690 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11692 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11693 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11694 $as_echo_n "(cached) " >&6
11696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h. */
11698 #include <sys/types.h>
11699 #include <sys/ptrace.h>
11708 if ac_fn_c_try_compile
"$LINENO"; then :
11709 gdb_cv_have_pt_getxmmregs
=yes
11711 gdb_cv_have_pt_getxmmregs
=no
11713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11717 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11718 if test $gdb_cv_have_pt_getxmmregs = yes; then
11720 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11724 # Detect which type of /proc is in use, such as for Solaris.
11726 if test "${target}" = "${host}"; then
11728 *-*-sysv4.2
* |
*-*-sysv5* )
11730 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11733 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
11735 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11739 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
11741 $as_echo "#define _KMEMUSER 1" >>confdefs.h
11747 if test "$ac_cv_header_sys_procfs_h" = yes; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11749 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11750 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11751 $as_echo_n "(cached) " >&6
11753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11757 /* Needed for new procfs interface on sparc-solaris. */
11758 #define _STRUCTURED_PROC 1
11759 #include <sys/procfs.h>
11768 if ac_fn_c_try_compile
"$LINENO"; then :
11769 bfd_cv_have_sys_procfs_type_gregset_t
=yes
11771 bfd_cv_have_sys_procfs_type_gregset_t
=no
11774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11777 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
11779 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
11783 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
11786 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
11787 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
11788 $as_echo_n "(cached) " >&6
11790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11791 /* end confdefs.h. */
11794 /* Needed for new procfs interface on sparc-solaris. */
11795 #define _STRUCTURED_PROC 1
11796 #include <sys/procfs.h>
11805 if ac_fn_c_try_compile
"$LINENO"; then :
11806 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
11808 bfd_cv_have_sys_procfs_type_fpregset_t
=no
11811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11814 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
11816 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11820 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11823 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11824 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11825 $as_echo_n "(cached) " >&6
11827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h. */
11831 /* Needed for new procfs interface on sparc-solaris. */
11832 #define _STRUCTURED_PROC 1
11833 #include <sys/procfs.h>
11842 if ac_fn_c_try_compile
"$LINENO"; then :
11843 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
11845 bfd_cv_have_sys_procfs_type_prgregset_t
=no
11848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11851 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11853 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11857 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11860 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11861 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11868 /* Needed for new procfs interface on sparc-solaris. */
11869 #define _STRUCTURED_PROC 1
11870 #include <sys/procfs.h>
11879 if ac_fn_c_try_compile
"$LINENO"; then :
11880 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
11882 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
11885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11888 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11890 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11894 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11897 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11898 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11899 $as_echo_n "(cached) " >&6
11901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11905 /* Needed for new procfs interface on sparc-solaris. */
11906 #define _STRUCTURED_PROC 1
11907 #include <sys/procfs.h>
11916 if ac_fn_c_try_compile
"$LINENO"; then :
11917 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
11919 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
11922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11925 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11927 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11931 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11934 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11935 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11936 $as_echo_n "(cached) " >&6
11938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11942 /* Needed for new procfs interface on sparc-solaris. */
11943 #define _STRUCTURED_PROC 1
11944 #include <sys/procfs.h>
11953 if ac_fn_c_try_compile
"$LINENO"; then :
11954 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
11956 bfd_cv_have_sys_procfs_type_lwpid_t
=no
11959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11962 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11964 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11968 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11971 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11972 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11973 $as_echo_n "(cached) " >&6
11975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11976 /* end confdefs.h. */
11979 /* Needed for new procfs interface on sparc-solaris. */
11980 #define _STRUCTURED_PROC 1
11981 #include <sys/procfs.h>
11990 if ac_fn_c_try_compile
"$LINENO"; then :
11991 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
11993 bfd_cv_have_sys_procfs_type_psaddr_t
=no
11996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11999 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
12001 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
12005 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
12008 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
12009 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
12012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12016 /* Needed for new procfs interface on sparc-solaris. */
12017 #define _STRUCTURED_PROC 1
12018 #include <sys/procfs.h>
12027 if ac_fn_c_try_compile
"$LINENO"; then :
12028 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
12030 bfd_cv_have_sys_procfs_type_prsysent_t
=no
12033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12036 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
12038 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
12042 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
12045 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
12046 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
12049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12053 /* Needed for new procfs interface on sparc-solaris. */
12054 #define _STRUCTURED_PROC 1
12055 #include <sys/procfs.h>
12064 if ac_fn_c_try_compile
"$LINENO"; then :
12065 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
12067 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
12070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12073 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
12075 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
12079 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
12082 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
12083 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12084 $as_echo_n "(cached) " >&6
12086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12090 /* Needed for new procfs interface on sparc-solaris. */
12091 #define _STRUCTURED_PROC 1
12092 #include <sys/procfs.h>
12096 pr_sigaction64_t avar
12101 if ac_fn_c_try_compile
"$LINENO"; then :
12102 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
12104 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
12107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12110 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12112 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12116 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12119 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12120 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12127 /* Needed for new procfs interface on sparc-solaris. */
12128 #define _STRUCTURED_PROC 1
12129 #include <sys/procfs.h>
12133 pr_siginfo64_t avar
12138 if ac_fn_c_try_compile
"$LINENO"; then :
12139 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
12141 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
12144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12147 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12149 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12153 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12159 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12161 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12162 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
12165 if test "$cross_compiling" = yes; then :
12166 gdb_cv_prfpregset_t_broken
=yes
12168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12170 #include <sys/procfs.h>
12173 if (sizeof (prfpregset_t) == sizeof (void *))
12178 if ac_fn_c_try_run
"$LINENO"; then :
12179 gdb_cv_prfpregset_t_broken
=no
12181 gdb_cv_prfpregset_t_broken
=yes
12183 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12184 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12190 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12191 if test $gdb_cv_prfpregset_t_broken = yes; then
12193 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12199 # Check if the compiler supports the `long long' type.
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12202 $as_echo_n "checking for long long support in compiler... " >&6; }
12203 if test "${gdb_cv_c_long_long+set}" = set; then :
12204 $as_echo_n "(cached) " >&6
12206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12208 extern long long foo;
12212 switch (foo & 2) { case 0: return 1; }
12217 if ac_fn_c_try_compile
"$LINENO"; then :
12218 gdb_cv_c_long_long
=yes
12220 gdb_cv_c_long_long
=no
12222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12225 $as_echo "$gdb_cv_c_long_long" >&6; }
12226 if test $gdb_cv_c_long_long != yes; then
12227 # libdecnumber requires long long.
12228 as_fn_error
"Compiler must support long long for GDB." "$LINENO" 5
12231 # Check if the compiler and runtime support printing long longs.
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12234 $as_echo_n "checking for long long support in printf... " >&6; }
12235 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12238 if test "$cross_compiling" = yes; then :
12239 gdb_cv_printf_has_long_long
=no
12241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12243 $ac_includes_default
12249 l = (l << 16) + 0x0123;
12250 l = (l << 16) + 0x4567;
12251 l = (l << 16) + 0x89ab;
12252 l = (l << 16) + 0xcdef;
12253 sprintf (buf, "0x%016llx", l);
12254 return (strcmp ("0x0123456789abcdef", buf));
12259 if ac_fn_c_try_run
"$LINENO"; then :
12260 gdb_cv_printf_has_long_long
=yes
12262 gdb_cv_printf_has_long_long
=no
12264 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12265 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12270 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12271 if test $gdb_cv_printf_has_long_long = yes; then
12273 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12277 # Check if the compiler and runtime support printing decfloats.
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12280 $as_echo_n "checking for decfloat support in printf... " >&6; }
12281 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
12284 if test "$cross_compiling" = yes; then :
12285 gdb_cv_printf_has_decfloat
=no
12287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12289 $ac_includes_default
12294 _Decimal32 d32 = 1.2345df;
12295 _Decimal64 d64 = 1.2345dd;
12296 _Decimal128 d128 = 1.2345dl;
12297 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12298 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12303 if ac_fn_c_try_run
"$LINENO"; then :
12304 gdb_cv_printf_has_decfloat
=yes
12306 gdb_cv_printf_has_decfloat
=no
12308 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12309 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12314 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12315 if test $gdb_cv_printf_has_decfloat = yes; then
12317 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12321 # Check if the compiler supports the `long double' type. We can't use
12322 # AC_C_LONG_DOUBLE because that one does additional checks on the
12323 # constants defined in <float.h> that fail on some systems,
12324 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12327 $as_echo_n "checking for long double support in compiler... " >&6; }
12328 if test "${gdb_cv_c_long_double+set}" = set; then :
12329 $as_echo_n "(cached) " >&6
12331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12335 if ac_fn_c_try_compile
"$LINENO"; then :
12336 gdb_cv_c_long_double
=yes
12338 gdb_cv_c_long_double
=no
12340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12343 $as_echo "$gdb_cv_c_long_double" >&6; }
12344 if test $gdb_cv_c_long_double = yes; then
12346 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12350 # Check if the compiler and runtime support printing long doubles.
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12353 $as_echo_n "checking for long double support in printf... " >&6; }
12354 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12357 if test "$cross_compiling" = yes; then :
12358 gdb_cv_printf_has_long_double
=no
12360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12361 /* end confdefs.h. */
12362 $ac_includes_default
12367 long double f = 3.141592653;
12368 sprintf (buf, "%Lg", f);
12369 return (strncmp ("3.14159", buf, 7));
12374 if ac_fn_c_try_run
"$LINENO"; then :
12375 gdb_cv_printf_has_long_double
=yes
12377 gdb_cv_printf_has_long_double
=no
12379 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12380 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12385 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12386 if test $gdb_cv_printf_has_long_double = yes; then
12388 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12392 # Check if the compiler and runtime support scanning long doubles.
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12395 $as_echo_n "checking for long double support in scanf... " >&6; }
12396 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12397 $as_echo_n "(cached) " >&6
12399 if test "$cross_compiling" = yes; then :
12400 gdb_cv_scanf_has_long_double
=no
12402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12408 char *buf = "3.141592653";
12410 sscanf (buf, "%Lg", &f);
12411 return !(f > 3.14159 && f < 3.14160);
12416 if ac_fn_c_try_run
"$LINENO"; then :
12417 gdb_cv_scanf_has_long_double
=yes
12419 gdb_cv_scanf_has_long_double
=no
12421 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12422 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12427 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12428 if test $gdb_cv_scanf_has_long_double = yes; then
12430 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12437 $as_echo_n "checking for -bbigtoc option... " >&6; }
12438 if test "${gdb_cv_bigtoc+set}" = set; then :
12439 $as_echo_n "(cached) " >&6
12442 SAVE_LDFLAGS
=$LDFLAGS
12445 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
12446 *) gdb_cv_bigtoc
=-bbigtoc ;;
12449 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
12450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12461 if ac_fn_c_try_link
"$LINENO"; then :
12466 rm -f core conftest.err conftest.
$ac_objext \
12467 conftest
$ac_exeext conftest.
$ac_ext
12468 LDFLAGS
="${SAVE_LDFLAGS}"
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12472 $as_echo "$gdb_cv_bigtoc" >&6; }
12473 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
12478 $as_echo_n "checking for the dynamic export flag... " >&6; }
12480 if test "${gdb_native}" = yes; then
12481 # The dynamically loaded libthread_db needs access to symbols in the gdb
12482 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
12483 # may not be supported there.
12484 old_LDFLAGS
="$LDFLAGS"
12485 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
12486 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
12487 LDFLAGS
="$LDFLAGS $RDYNAMIC"
12488 if test "${have_libpython}" = no
; then
12489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h. */
12500 if ac_fn_c_try_link
"$LINENO"; then :
12503 rm -f core conftest.err conftest.
$ac_objext \
12504 conftest
$ac_exeext conftest.
$ac_ext
12506 # Workaround http://bugs.python.org/issue4434 where static
12507 # libpythonX.Y.a would get its symbols required for
12508 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
12509 # Problem does not happen for the recommended libpythonX.Y.so linkage.
12510 old_CFLAGS
="$CFLAGS"
12511 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
12513 LIBS
="$LIBS $PYTHON_LIBS"
12514 if test "$cross_compiling" = yes; then :
12517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12519 #include "${have_libpython}/Python.h"
12525 err = PyRun_SimpleString ("import itertools\n");
12527 return err == 0 ? 0 : 1;
12532 if ac_fn_c_try_run
"$LINENO"; then :
12535 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12536 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12540 CFLAGS
="$old_CFLAGS"
12542 LDFLAGS
="$old_LDFLAGS"
12544 if $dynamic_list; then
12545 found
="-Wl,--dynamic-list"
12546 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
12549 RDYNAMIC
="-rdynamic"
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12553 $as_echo "$found" >&6; }
12556 if test ${build} = ${host} -a ${host} = ${target} ; then
12559 # See if thread_db library is around for Solaris thread debugging.
12560 # Note that we must explicitly test for version 1 of the library
12561 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12564 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12565 if test -f /usr
/lib
/libthread_db.so
.1 ; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12567 $as_echo "yes" >&6; }
12569 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12571 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
12572 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12574 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12575 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12576 $as_echo_n "(cached) " >&6
12578 ac_check_lib_save_LIBS
=$LIBS
12580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12583 /* Override any GCC internal prototype to avoid an error.
12584 Use char because int might match the return type of a GCC
12585 builtin and then its argument prototype would still apply. */
12598 if ac_fn_c_try_link
"$LINENO"; then :
12599 ac_cv_lib_dl_dlopen
=yes
12601 ac_cv_lib_dl_dlopen
=no
12603 rm -f core conftest.err conftest.
$ac_objext \
12604 conftest
$ac_exeext conftest.
$ac_ext
12605 LIBS
=$ac_check_lib_save_LIBS
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12608 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12609 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
12610 cat >>confdefs.h
<<_ACEOF
12611 #define HAVE_LIBDL 1
12618 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
12619 # Sun randomly tweaked the prototypes in <proc_service.h>
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12622 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12623 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12624 $as_echo_n "(cached) " >&6
12627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h. */
12630 #include <proc_service.h>
12631 ps_err_e ps_pdwrite
12632 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12642 if ac_fn_c_try_compile
"$LINENO"; then :
12643 gdb_cv_proc_service_is_old
=no
12645 gdb_cv_proc_service_is_old
=yes
12647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12652 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12653 if test $gdb_cv_proc_service_is_old = yes; then
12655 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660 $as_echo "no" >&6; }
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12665 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12666 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12667 $as_echo_n "(cached) " >&6
12669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12670 /* end confdefs.h. */
12671 #include <sys/pthdebug.h>
12675 #ifndef PTHDB_VERSION_3
12682 if ac_fn_c_try_compile
"$LINENO"; then :
12683 gdb_cv_have_aix_thread_debug
=yes
12685 gdb_cv_have_aix_thread_debug
=no
12687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12691 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12692 if test $gdb_cv_have_aix_thread_debug = yes; then
12693 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
12694 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
12695 LIBS
="$LIBS -lpthdebug"
12697 # Older versions of AIX do not provide the declaration for
12698 # the getthrds function (it appears that it was introduced
12700 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12702 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
12708 cat >>confdefs.h
<<_ACEOF
12709 #define HAVE_DECL_GETTHRDS $ac_have_decl
12718 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12720 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12721 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12722 $as_echo_n "(cached) " >&6
12724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12726 #include <thread_db.h>
12730 int i = TD_NOTALLOC;
12735 if ac_fn_c_try_compile
"$LINENO"; then :
12736 gdb_cv_thread_db_h_has_td_notalloc
=yes
12738 gdb_cv_thread_db_h_has_td_notalloc
=no
12741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12745 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12747 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12748 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12753 #include <thread_db.h>
12757 int i = TD_VERSION;
12762 if ac_fn_c_try_compile
"$LINENO"; then :
12763 gdb_cv_thread_db_h_has_td_version
=yes
12765 gdb_cv_thread_db_h_has_td_version
=no
12768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12772 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12774 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12775 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12776 $as_echo_n "(cached) " >&6
12778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12780 #include <thread_db.h>
12789 if ac_fn_c_try_compile
"$LINENO"; then :
12790 gdb_cv_thread_db_h_has_td_notls
=yes
12792 gdb_cv_thread_db_h_has_td_notls
=no
12795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12799 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12801 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12803 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12806 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12808 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12811 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12813 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12817 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12819 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12820 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12821 $as_echo_n "(cached) " >&6
12823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12825 #include <sys/syscall.h>
12829 int i = __NR_tkill;
12834 if ac_fn_c_try_compile
"$LINENO"; then :
12835 gdb_cv_sys_syscall_h_has_tkill
=yes
12837 gdb_cv_sys_syscall_h_has_tkill
=no
12840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12844 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12846 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
12847 ac_fn_c_check_func
"$LINENO" "syscall" "ac_cv_func_syscall"
12848 if test "x$ac_cv_func_syscall" = x
""yes; then :
12850 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12857 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12859 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
12865 cat >>confdefs.h
<<_ACEOF
12866 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12870 if test "$cross_compiling" = yes; then :
12871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12873 #include <sys/personality.h>
12878 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12879 # define ADDR_NO_RANDOMIZE 0x0040000
12881 /* Test the flag could be set and stays set. */
12882 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12883 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12889 if ac_fn_c_try_link
"$LINENO"; then :
12890 have_personality
=true
12892 have_personality
=false
12894 rm -f core conftest.err conftest.
$ac_objext \
12895 conftest
$ac_exeext conftest.
$ac_ext
12897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12899 #include <sys/personality.h>
12904 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12905 # define ADDR_NO_RANDOMIZE 0x0040000
12907 /* Test the flag could be set and stays set. */
12908 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12909 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12915 if ac_fn_c_try_run
"$LINENO"; then :
12916 have_personality
=true
12918 have_personality
=false
12920 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12921 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12924 if $have_personality
12927 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12940 cat >>confdefs.h
<<_ACEOF
12941 #define GDBINIT "$gdbinit"
12946 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12947 # except that the argument to --with-sysroot is optional.
12948 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12949 if test "x$with_sysroot" = xyes
; then
12950 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
12953 # Check whether --with-sysroot was given.
12954 if test "${with_sysroot+set}" = set; then :
12955 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
12957 TARGET_SYSTEM_ROOT
=
12961 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
12962 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12963 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
12964 ac_define_dir
=`eval echo $ac_define_dir`
12966 cat >>confdefs.h
<<_ACEOF
12967 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12973 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12974 if test "x$prefix" = xNONE
; then
12975 test_prefix
=/usr
/local
12977 test_prefix
=$prefix
12980 test_prefix
=$exec_prefix
12983 case ${ac_define_dir} in
12984 "${test_prefix}"|
"${test_prefix}/"*|\
12985 '${exec_prefix}'|
'${exec_prefix}/'*)
12990 cat >>confdefs.h
<<_ACEOF
12991 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12998 # Check whether --with-system-gdbinit was given.
12999 if test "${with_system_gdbinit+set}" = set; then :
13000 withval
=$with_system_gdbinit;
13001 SYSTEM_GDBINIT
=$withval
13007 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
13008 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13009 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
13010 ac_define_dir
=`eval echo $ac_define_dir`
13012 cat >>confdefs.h
<<_ACEOF
13013 #define SYSTEM_GDBINIT "$ac_define_dir"
13019 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13020 if test "x$prefix" = xNONE
; then
13021 test_prefix
=/usr
/local
13023 test_prefix
=$prefix
13026 test_prefix
=$exec_prefix
13029 case ${ac_define_dir} in
13030 "${test_prefix}"|
"${test_prefix}/"*|\
13031 '${exec_prefix}'|
'${exec_prefix}/'*)
13036 cat >>confdefs.h
<<_ACEOF
13037 #define SYSTEM_GDBINIT_RELOCATABLE $value
13043 # Check whether --enable-werror was given.
13044 if test "${enable_werror+set}" = set; then :
13045 enableval
=$enable_werror; case "${enableval}" in
13046 yes | y
) ERROR_ON_WARNING
="yes" ;;
13047 no | n
) ERROR_ON_WARNING
="no" ;;
13048 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13053 # Enable -Werror by default when using gcc. Turn it off for releases.
13054 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
13055 ERROR_ON_WARNING
=yes
13059 if test "${ERROR_ON_WARNING}" = yes ; then
13060 WERROR_CFLAGS
="-Werror"
13063 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13065 -Wno-unused -Wunused-value -Wunused-function \
13066 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
13067 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
13068 -Wold-style-declaration -Wold-style-definition"
13070 # Enable -Wno-format by default when using gcc on mingw since many
13071 # GCC versions complain about %I64.
13073 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
13074 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
13077 # Check whether --enable-build-warnings was given.
13078 if test "${enable_build_warnings+set}" = set; then :
13079 enableval
=$enable_build_warnings; case "${enableval}" in
13081 no
) build_warnings
="-w";;
13082 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13083 build_warnings
="${build_warnings} ${t}";;
13084 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13085 build_warnings
="${t} ${build_warnings}";;
13086 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13088 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13089 echo "Setting compiler warning flags = $build_warnings" 6>&1
13092 # Check whether --enable-gdb-build-warnings was given.
13093 if test "${enable_gdb_build_warnings+set}" = set; then :
13094 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
13096 no
) build_warnings
="-w";;
13097 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13098 build_warnings
="${build_warnings} ${t}";;
13099 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13100 build_warnings
="${t} ${build_warnings}";;
13101 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13103 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13104 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13108 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13111 $as_echo_n "checking compiler warning flags... " >&6; }
13112 # Separate out the -Werror flag as some files just cannot be
13113 # compiled with it enabled.
13114 for w
in ${build_warnings}; do
13116 -Werr*) WERROR_CFLAGS
=-Werror ;;
13117 *) # Check that GCC accepts it
13118 saved_CFLAGS
="$CFLAGS"
13119 CFLAGS
="$CFLAGS $w"
13120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13131 if ac_fn_c_try_compile
"$LINENO"; then :
13132 WARN_CFLAGS
="${WARN_CFLAGS} $w"
13134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13135 CFLAGS
="$saved_CFLAGS"
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13139 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13144 # In the Cygwin environment, we need some additional flags.
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
13146 $as_echo_n "checking
for cygwin...
" >&6; }
13147 if test "${gdb_cv_os_cygwin+set}" = set; then :
13148 $as_echo_n "(cached
) " >&6
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13153 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13157 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13158 $EGREP "^lose$
" >/dev/null 2>&1; then :
13159 gdb_cv_os_cygwin=yes
13161 gdb_cv_os_cygwin=no
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
13167 $as_echo "$gdb_cv_os_cygwin" >&6; }
13170 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
13172 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13173 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13174 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
13178 # libreadline needs libuser32.a in a cygwin environment
13180 if test x$gdb_cv_os_cygwin = xyes; then
13181 WIN32LIBS="-luser32"
13182 case "${target}" in
13183 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13188 # The ser-tcp.c module requires sockets.
13192 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13194 WIN32LIBS
="$WIN32LIBS -lws2_32"
13199 # Add ELF support to GDB, but only if BFD includes ELF support.
13202 OLD_LDFLAGS
=$LDFLAGS
13204 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13205 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13206 # always want our bfd.
13207 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13208 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
13209 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13210 LIBS
="-lbfd -liberty $intl $LIBS"
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13212 $as_echo_n "checking for ELF support in BFD... " >&6; }
13213 if test "${gdb_cv_var_elf+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
13216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218 #include <stdlib.h>
13220 #include "elf-bfd.h"
13225 return bfd_get_elf_phdr_upper_bound (NULL);
13230 if ac_fn_c_try_link
"$LINENO"; then :
13235 rm -f core conftest.err conftest.
$ac_objext \
13236 conftest
$ac_exeext conftest.
$ac_ext
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13239 $as_echo "$gdb_cv_var_elf" >&6; }
13241 LDFLAGS
=$OLD_LDFLAGS
13243 if test $gdb_cv_var_elf = yes; then
13244 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o"
13246 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13248 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13249 if test "$plugins" = "yes"; then
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13251 $as_echo_n "checking for library containing dlopen... " >&6; }
13252 if test "${ac_cv_search_dlopen+set}" = set; then :
13253 $as_echo_n "(cached) " >&6
13255 ac_func_search_save_LIBS
=$LIBS
13256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13259 /* Override any GCC internal prototype to avoid an error.
13260 Use char because int might match the return type of a GCC
13261 builtin and then its argument prototype would still apply. */
13274 for ac_lib
in '' dl
; do
13275 if test -z "$ac_lib"; then
13276 ac_res
="none required"
13279 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13281 if ac_fn_c_try_link
"$LINENO"; then :
13282 ac_cv_search_dlopen
=$ac_res
13284 rm -f core conftest.err conftest.
$ac_objext \
13286 if test "${ac_cv_search_dlopen+set}" = set; then :
13290 if test "${ac_cv_search_dlopen+set}" = set; then :
13293 ac_cv_search_dlopen
=no
13295 rm conftest.
$ac_ext
13296 LIBS
=$ac_func_search_save_LIBS
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13299 $as_echo "$ac_cv_search_dlopen" >&6; }
13300 ac_res
=$ac_cv_search_dlopen
13301 if test "$ac_res" != no
; then :
13302 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13309 # Add macho support to GDB, but only if BFD includes it.
13312 OLD_LDFLAGS
=$LDFLAGS
13314 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13315 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13316 # always want our bfd.
13317 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13318 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
13319 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13320 LIBS
="-lbfd -liberty $intl $LIBS"
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
13322 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
13323 if test "${gdb_cv_var_macho+set}" = set; then :
13324 $as_echo_n "(cached) " >&6
13326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13328 #include <stdlib.h>
13330 #include "mach-o.h"
13335 return bfd_mach_o_lookup_command (NULL, 0, NULL);
13340 if ac_fn_c_try_link
"$LINENO"; then :
13341 gdb_cv_var_macho
=yes
13343 gdb_cv_var_macho
=no
13345 rm -f core conftest.err conftest.
$ac_objext \
13346 conftest
$ac_exeext conftest.
$ac_ext
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
13349 $as_echo "$gdb_cv_var_macho" >&6; }
13351 LDFLAGS
=$OLD_LDFLAGS
13353 if test $gdb_cv_var_macho = yes; then
13354 CONFIG_OBS
="$CONFIG_OBS machoread.o"
13357 # Add SOM support to GDB, but only if BFD includes it.
13360 OLD_LDFLAGS
=$LDFLAGS
13362 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13363 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13364 # always want our bfd.
13365 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13366 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
13367 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13368 LIBS
="-lbfd -liberty $intl $LIBS"
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOM support in BFD" >&5
13370 $as_echo_n "checking for SOM support in BFD... " >&6; }
13371 if test "${gdb_cv_var_som+set}" = set; then :
13372 $as_echo_n "(cached) " >&6
13374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h. */
13376 #include <stdlib.h>
13383 return bfd_som_attach_aux_hdr (NULL, 0, NULL);
13388 if ac_fn_c_try_link
"$LINENO"; then :
13393 rm -f core conftest.err conftest.
$ac_objext \
13394 conftest
$ac_exeext conftest.
$ac_ext
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_som" >&5
13397 $as_echo "$gdb_cv_var_som" >&6; }
13399 LDFLAGS
=$OLD_LDFLAGS
13401 if test $gdb_cv_var_som = yes; then
13402 CONFIG_OBS
="$CONFIG_OBS somread.o"
13405 # Add any host-specific objects to GDB.
13406 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
13408 # If building on ELF, look for lzma support for embedded compressed debug info.
13409 if test $gdb_cv_var_elf = yes; then
13411 # Check whether --with-lzma was given.
13412 if test "${with_lzma+set}" = set; then :
13413 withval
=$with_lzma;
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
13419 $as_echo_n "checking whether to use lzma... " >&6; }
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
13421 $as_echo "$with_lzma" >&6; }
13423 if test "${with_lzma}" != no
; then
13434 acl_save_prefix
="$prefix"
13435 prefix
="$acl_final_prefix"
13436 acl_save_exec_prefix
="$exec_prefix"
13437 exec_prefix
="$acl_final_exec_prefix"
13439 eval additional_includedir
=\"$includedir\"
13440 eval additional_libdir
=\"$libdir\"
13442 exec_prefix
="$acl_save_exec_prefix"
13443 prefix
="$acl_save_prefix"
13446 # Check whether --with-liblzma-prefix was given.
13447 if test "${with_liblzma_prefix+set}" = set; then :
13448 withval
=$with_liblzma_prefix;
13449 if test "X$withval" = "Xno"; then
13452 if test "X$withval" = "X"; then
13454 acl_save_prefix
="$prefix"
13455 prefix
="$acl_final_prefix"
13456 acl_save_exec_prefix
="$exec_prefix"
13457 exec_prefix
="$acl_final_exec_prefix"
13459 eval additional_includedir
=\"$includedir\"
13460 eval additional_libdir
=\"$libdir\"
13462 exec_prefix
="$acl_save_exec_prefix"
13463 prefix
="$acl_save_prefix"
13466 additional_includedir
="$withval/include"
13467 additional_libdir
="$withval/lib"
13478 names_already_handled
=
13479 names_next_round
='lzma '
13480 while test -n "$names_next_round"; do
13481 names_this_round
="$names_next_round"
13483 for name
in $names_this_round; do
13485 for n
in $names_already_handled; do
13486 if test "$n" = "$name"; then
13487 already_handled
=yes
13491 if test -z "$already_handled"; then
13492 names_already_handled
="$names_already_handled $name"
13493 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13494 eval value
=\"\
$HAVE_LIB$uppername\"
13495 if test -n "$value"; then
13496 if test "$value" = yes; then
13497 eval value
=\"\
$LIB$uppername\"
13498 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
13499 eval value
=\"\
$LTLIB$uppername\"
13500 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
13509 if test $use_additional = yes; then
13510 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13511 found_dir
="$additional_libdir"
13512 found_so
="$additional_libdir/lib$name.$shlibext"
13513 if test -f "$additional_libdir/lib$name.la"; then
13514 found_la
="$additional_libdir/lib$name.la"
13517 if test -f "$additional_libdir/lib$name.$libext"; then
13518 found_dir
="$additional_libdir"
13519 found_a
="$additional_libdir/lib$name.$libext"
13520 if test -f "$additional_libdir/lib$name.la"; then
13521 found_la
="$additional_libdir/lib$name.la"
13526 if test "X$found_dir" = "X"; then
13527 for x
in $LDFLAGS $LTLIBLZMA; do
13529 acl_save_prefix
="$prefix"
13530 prefix
="$acl_final_prefix"
13531 acl_save_exec_prefix
="$exec_prefix"
13532 exec_prefix
="$acl_final_exec_prefix"
13534 exec_prefix
="$acl_save_exec_prefix"
13535 prefix
="$acl_save_prefix"
13539 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13540 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13542 found_so
="$dir/lib$name.$shlibext"
13543 if test -f "$dir/lib$name.la"; then
13544 found_la
="$dir/lib$name.la"
13547 if test -f "$dir/lib$name.$libext"; then
13549 found_a
="$dir/lib$name.$libext"
13550 if test -f "$dir/lib$name.la"; then
13551 found_la
="$dir/lib$name.la"
13557 if test "X$found_dir" != "X"; then
13562 if test "X$found_dir" != "X"; then
13563 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
13564 if test "X$found_so" != "X"; then
13565 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
13566 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13569 for x
in $ltrpathdirs; do
13570 if test "X$x" = "X$found_dir"; then
13575 if test -z "$haveit"; then
13576 ltrpathdirs
="$ltrpathdirs $found_dir"
13578 if test "$hardcode_direct" = yes; then
13579 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13581 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
13582 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13584 for x
in $rpathdirs; do
13585 if test "X$x" = "X$found_dir"; then
13590 if test -z "$haveit"; then
13591 rpathdirs
="$rpathdirs $found_dir"
13595 for x
in $LDFLAGS $LIBLZMA; do
13597 acl_save_prefix
="$prefix"
13598 prefix
="$acl_final_prefix"
13599 acl_save_exec_prefix
="$exec_prefix"
13600 exec_prefix
="$acl_final_exec_prefix"
13602 exec_prefix
="$acl_save_exec_prefix"
13603 prefix
="$acl_save_prefix"
13605 if test "X$x" = "X-L$found_dir"; then
13610 if test -z "$haveit"; then
13611 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
13613 if test "$hardcode_minus_L" != no
; then
13614 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13616 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
13622 if test "X$found_a" != "X"; then
13623 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
13625 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
13628 additional_includedir
=
13629 case "$found_dir" in
13631 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13632 additional_includedir
="$basedir/include"
13635 if test "X$additional_includedir" != "X"; then
13636 if test "X$additional_includedir" != "X/usr/include"; then
13638 if test "X$additional_includedir" = "X/usr/local/include"; then
13639 if test -n "$GCC"; then
13641 linux
*) haveit
=yes;;
13645 if test -z "$haveit"; then
13646 for x
in $CPPFLAGS $INCLZMA; do
13648 acl_save_prefix
="$prefix"
13649 prefix
="$acl_final_prefix"
13650 acl_save_exec_prefix
="$exec_prefix"
13651 exec_prefix
="$acl_final_exec_prefix"
13653 exec_prefix
="$acl_save_exec_prefix"
13654 prefix
="$acl_save_prefix"
13656 if test "X$x" = "X-I$additional_includedir"; then
13661 if test -z "$haveit"; then
13662 if test -d "$additional_includedir"; then
13663 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
13669 if test -n "$found_la"; then
13670 save_libdir
="$libdir"
13671 case "$found_la" in
13672 */* |
*\\*) .
"$found_la" ;;
13673 *) .
"./$found_la" ;;
13675 libdir
="$save_libdir"
13676 for dep
in $dependency_libs; do
13679 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13680 if test "X$additional_libdir" != "X/usr/lib"; then
13682 if test "X$additional_libdir" = "X/usr/local/lib"; then
13683 if test -n "$GCC"; then
13685 linux
*) haveit
=yes;;
13689 if test -z "$haveit"; then
13691 for x
in $LDFLAGS $LIBLZMA; do
13693 acl_save_prefix
="$prefix"
13694 prefix
="$acl_final_prefix"
13695 acl_save_exec_prefix
="$exec_prefix"
13696 exec_prefix
="$acl_final_exec_prefix"
13698 exec_prefix
="$acl_save_exec_prefix"
13699 prefix
="$acl_save_prefix"
13701 if test "X$x" = "X-L$additional_libdir"; then
13706 if test -z "$haveit"; then
13707 if test -d "$additional_libdir"; then
13708 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
13712 for x
in $LDFLAGS $LTLIBLZMA; do
13714 acl_save_prefix
="$prefix"
13715 prefix
="$acl_final_prefix"
13716 acl_save_exec_prefix
="$exec_prefix"
13717 exec_prefix
="$acl_final_exec_prefix"
13719 exec_prefix
="$acl_save_exec_prefix"
13720 prefix
="$acl_save_prefix"
13722 if test "X$x" = "X-L$additional_libdir"; then
13727 if test -z "$haveit"; then
13728 if test -d "$additional_libdir"; then
13729 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
13736 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
13737 if test "$enable_rpath" != no
; then
13739 for x
in $rpathdirs; do
13740 if test "X$x" = "X$dir"; then
13745 if test -z "$haveit"; then
13746 rpathdirs
="$rpathdirs $dir"
13749 for x
in $ltrpathdirs; do
13750 if test "X$x" = "X$dir"; then
13755 if test -z "$haveit"; then
13756 ltrpathdirs
="$ltrpathdirs $dir"
13761 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13764 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13767 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
13768 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
13774 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
13775 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
13781 if test "X$rpathdirs" != "X"; then
13782 if test -n "$hardcode_libdir_separator"; then
13784 for found_dir
in $rpathdirs; do
13785 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13787 acl_save_libdir
="$libdir"
13789 eval flag
=\"$hardcode_libdir_flag_spec\"
13790 libdir
="$acl_save_libdir"
13791 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
13793 for found_dir
in $rpathdirs; do
13794 acl_save_libdir
="$libdir"
13795 libdir
="$found_dir"
13796 eval flag
=\"$hardcode_libdir_flag_spec\"
13797 libdir
="$acl_save_libdir"
13798 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
13802 if test "X$ltrpathdirs" != "X"; then
13803 for found_dir
in $ltrpathdirs; do
13804 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
13809 ac_save_CPPFLAGS
="$CPPFLAGS"
13811 for element
in $INCLZMA; do
13813 for x
in $CPPFLAGS; do
13815 acl_save_prefix
="$prefix"
13816 prefix
="$acl_final_prefix"
13817 acl_save_exec_prefix
="$exec_prefix"
13818 exec_prefix
="$acl_final_exec_prefix"
13820 exec_prefix
="$acl_save_exec_prefix"
13821 prefix
="$acl_save_prefix"
13823 if test "X$x" = "X$element"; then
13828 if test -z "$haveit"; then
13829 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
13835 $as_echo_n "checking for liblzma... " >&6; }
13836 if test "${ac_cv_liblzma+set}" = set; then :
13837 $as_echo_n "(cached) " >&6
13840 ac_save_LIBS
="$LIBS"
13841 LIBS
="$LIBS $LIBLZMA"
13842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13848 lzma_index_iter iter;
13849 lzma_index_iter_init (&iter, 0);
13850 lzma_mf_is_supported (LZMA_MF_HC3);
13855 if ac_fn_c_try_link
"$LINENO"; then :
13860 rm -f core conftest.err conftest.
$ac_objext \
13861 conftest
$ac_exeext conftest.
$ac_ext
13862 LIBS
="$ac_save_LIBS"
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
13866 $as_echo "$ac_cv_liblzma" >&6; }
13867 if test "$ac_cv_liblzma" = yes; then
13870 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
13873 $as_echo_n "checking how to link with liblzma... " >&6; }
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
13875 $as_echo "$LIBLZMA" >&6; }
13878 CPPFLAGS
="$ac_save_CPPFLAGS"
13888 if test "$HAVE_LIBLZMA" != yes; then
13889 if test "$with_lzma" = yes; then
13890 as_fn_error
"missing liblzma for --with-lzma" "$LINENO" 5
13896 LIBGUI
="../libgui/src/libgui.a"
13897 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
13906 *-*-cygwin* |
*-*-mingw* )
13915 if test "${enable_gdbtk}" = "yes"; then
13917 # Gdbtk must have an absolute path to srcdir in order to run
13918 # properly when not installed.
13921 GDBTK_SRC_DIR
=`pwd`
13926 # Ok, lets find the tcl configuration
13927 # First, look for one uninstalled.
13928 # the alternative search directory is invoked by --with-tcl
13931 if test x
"${no_tcl}" = x
; then
13932 # we reset no_tcl in case something fails here
13935 # Check whether --with-tcl was given.
13936 if test "${with_tcl+set}" = set; then :
13937 withval
=$with_tcl; with_tclconfig
=${withval}
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13941 $as_echo_n "checking for Tcl configuration... " >&6; }
13942 if test "${ac_cv_c_tclconfig+set}" = set; then :
13943 $as_echo_n "(cached) " >&6
13947 # First check to see if --with-tcl was specified.
13949 *-*-cygwin*) platDir
="win" ;;
13950 *) platDir
="unix" ;;
13952 if test x
"${with_tclconfig}" != x
; then
13953 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13954 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
13956 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13960 # then check for a private Tcl installation
13961 if test x
"${ac_cv_c_tclconfig}" = x
; then
13964 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13965 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13966 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13968 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13969 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13970 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13972 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13973 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13974 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
13975 if test -f "$i/$platDir/tclConfig.sh" ; then
13976 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
13982 # on Darwin, check in Framework installation locations
13983 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
13984 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
13985 `ls -d /Library/Frameworks 2>/dev/null` \
13986 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13987 `ls -d /System/Library/Frameworks 2>/dev/null` \
13989 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13990 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
13996 # check in a few common install locations
13997 if test x
"${ac_cv_c_tclconfig}" = x
; then
13998 for i
in `ls -d ${libdir} 2>/dev/null` \
13999 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14000 `ls -d ${prefix}/lib 2>/dev/null` \
14001 `ls -d /usr/local/lib 2>/dev/null` \
14002 `ls -d /usr/contrib/lib 2>/dev/null` \
14003 `ls -d /usr/lib 2>/dev/null` \
14005 if test -f "$i/tclConfig.sh" ; then
14006 ac_cv_c_tclconfig
=`(cd $i; pwd)`
14012 # check in a few other private locations
14013 if test x
"${ac_cv_c_tclconfig}" = x
; then
14016 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14017 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14018 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14019 if test -f "$i/$platDir/tclConfig.sh" ; then
14020 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14029 if test x
"${ac_cv_c_tclconfig}" = x
; then
14030 TCL_BIN_DIR
="# no Tcl configs found"
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14032 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14035 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14037 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14042 # If $no_tk is nonempty, then we can't do Tk, and there is no
14043 # point to doing Tcl.
14046 # Ok, lets find the tk configuration
14047 # First, look for one uninstalled.
14048 # the alternative search directory is invoked by --with-tk
14051 if test x
"${no_tk}" = x
; then
14052 # we reset no_tk in case something fails here
14055 # Check whether --with-tk was given.
14056 if test "${with_tk+set}" = set; then :
14057 withval
=$with_tk; with_tkconfig
=${withval}
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14061 $as_echo_n "checking for Tk configuration... " >&6; }
14062 if test "${ac_cv_c_tkconfig+set}" = set; then :
14063 $as_echo_n "(cached) " >&6
14067 # First check to see if --with-tkconfig was specified.
14068 if test x
"${with_tkconfig}" != x
; then
14069 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14070 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
14072 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14076 # then check for a private Tk library
14078 *-*-cygwin*) platDir
="win" ;;
14079 *) platDir
="unix" ;;
14081 if test x
"${ac_cv_c_tkconfig}" = x
; then
14084 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14085 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14086 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14088 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14089 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14090 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14092 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14093 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14094 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14095 if test -f "$i/$platDir/tkConfig.sh" ; then
14096 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
14102 # on Darwin, check in Framework installation locations
14103 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
14104 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14105 `ls -d /Library/Frameworks 2>/dev/null` \
14106 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14107 `ls -d /System/Library/Frameworks 2>/dev/null` \
14109 if test -f "$i/Tk.framework/tkConfig.sh" ; then
14110 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
14116 # check in a few common install locations
14117 if test x
"${ac_cv_c_tkconfig}" = x
; then
14118 for i
in `ls -d ${libdir} 2>/dev/null` \
14119 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14120 `ls -d ${prefix}/lib 2>/dev/null` \
14121 `ls -d /usr/local/lib 2>/dev/null` \
14122 `ls -d /usr/contrib/lib 2>/dev/null` \
14123 `ls -d /usr/lib 2>/dev/null` \
14125 if test -f "$i/tkConfig.sh" ; then
14126 ac_cv_c_tkconfig
=`(cd $i; pwd)`
14131 # check in a few other private locations
14132 if test x
"${ac_cv_c_tkconfig}" = x
; then
14135 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14136 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14137 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14138 if test -f "$i/$platDir/tkConfig.sh" ; then
14139 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
14148 if test x
"${ac_cv_c_tkconfig}" = x
; then
14149 TK_BIN_DIR
="# no Tk configs found"
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
14151 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
14154 TK_BIN_DIR
=${ac_cv_c_tkconfig}
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
14156 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14161 if test -z "${no_tcl}" -a -z "${no_tk}"; then
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
14164 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
14166 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14168 $as_echo "loading" >&6; }
14169 .
${TCL_BIN_DIR}/tclConfig.sh
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
14172 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14175 # eval is required to do the TCL_DBGX substitution
14176 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
14177 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
14179 # If the TCL_BIN_DIR is the build directory (not the install directory),
14180 # then set the common variable name to the value of the build variables.
14181 # For example, the variable TCL_LIB_SPEC will be set to the value
14182 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
14183 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
14184 # installed and uninstalled version of Tcl.
14185 if test -f "${TCL_BIN_DIR}/Makefile" ; then
14186 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
14187 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
14188 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
14189 elif test "`uname -s`" = "Darwin"; then
14190 # If Tcl was built as a framework, attempt to use the libraries
14191 # from the framework at the given location so that linking works
14192 # against Tcl.framework installed in an arbitrary location.
14193 case ${TCL_DEFS} in
14195 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
14196 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
14197 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
14198 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
14199 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
14204 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
14205 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
14206 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
14212 # eval is required to do the TCL_DBGX substitution
14213 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
14214 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
14215 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
14216 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
14232 # Check for in-tree tcl
14239 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
14243 # Find Tcl private headers
14244 if test x
"${intree}" = xno
; then
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
14247 $as_echo_n "checking for Tcl private headers... " >&6; }
14249 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
14250 if test -f ${dir}/tclInt.h
; then
14254 if test x
"${private_dir}" = x
; then
14255 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
14257 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14259 $as_echo "${private_dir}" >&6; }
14262 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
14263 TCL_LIBRARY
="${TCL_LIB_SPEC}"
14266 # If building tcl in the same src tree, private headers
14267 # are not needed, but we need to be sure to use the right
14269 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
14270 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
14271 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
14279 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
14281 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14283 $as_echo "loading" >&6; }
14284 .
${TK_BIN_DIR}/tkConfig.sh
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
14287 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14290 # eval is required to do the TK_DBGX substitution
14291 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
14292 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
14294 # If the TK_BIN_DIR is the build directory (not the install directory),
14295 # then set the common variable name to the value of the build variables.
14296 # For example, the variable TK_LIB_SPEC will be set to the value
14297 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
14298 # instead of TK_BUILD_LIB_SPEC since it will work with both an
14299 # installed and uninstalled version of Tcl.
14300 if test -f "${TK_BIN_DIR}/Makefile" ; then
14301 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
14302 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
14303 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
14304 elif test "`uname -s`" = "Darwin"; then
14305 # If Tk was built as a framework, attempt to use the libraries
14306 # from the framework at the given location so that linking works
14307 # against Tk.framework installed in an arbitrary location.
14310 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
14311 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
14312 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
14313 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
14314 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
14319 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
14320 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
14321 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
14327 # eval is required to do the TK_DBGX substitution
14328 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
14329 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
14330 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
14331 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
14346 # Check for in-tree Tk
14348 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
14352 # Find Tk private headers
14353 if test x
"${intree}" = xno
; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
14356 $as_echo_n "checking for Tk private headers... " >&6; }
14358 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
14359 if test -f ${dir}/tkInt.h
; then
14363 if test x
"${private_dir}" = x
; then
14364 as_fn_error
"could not find Tk private headers" "$LINENO" 5
14366 TK_PRIVATE_INCLUDE
="-I${private_dir}"
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14368 $as_echo "${private_dir}" >&6; }
14371 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14372 TK_LIBRARY
=${TK_LIB_SPEC}
14375 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
14376 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
14377 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
14384 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14386 # Include some libraries that Tcl and Tk want.
14387 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14388 # Yes, the ordering seems wrong here. But it isn't.
14389 # TK_LIBS is the list of libraries that need to be linked
14390 # after Tcl/Tk. Note that this isn't put into LIBS. If it
14391 # were in LIBS then any link tests after this point would
14392 # try to include things like `$(LIBGUI)', which wouldn't work.
14393 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
14395 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14396 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14397 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14398 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
14399 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
14400 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
14401 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
14403 if test x
$gdb_cv_os_cygwin = xyes
; then
14404 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14405 WIN32LDAPP
="-Wl,--subsystem,console"
14406 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
14409 subdirs
="$subdirs gdbtk"
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14422 $as_echo_n "checking for X... " >&6; }
14425 # Check whether --with-x was given.
14426 if test "${with_x+set}" = set; then :
14430 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14431 if test "x$with_x" = xno
; then
14432 # The user explicitly disabled X.
14435 case $x_includes,$x_libraries in #(
14436 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
14437 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
14438 $as_echo_n "(cached) " >&6
14440 # One or both of the vars are not set, and there is no cached value.
14441 ac_x_includes
=no ac_x_libraries
=no
14442 rm -f -r conftest.dir
14443 if mkdir conftest.dir
; then
14445 cat >Imakefile
<<'_ACEOF'
14447 @echo incroot='${INCROOT}'
14449 @echo usrlibdir='${USRLIBDIR}'
14451 @echo libdir='${LIBDIR}'
14453 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14454 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14455 for ac_var
in incroot usrlibdir libdir
; do
14456 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14458 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14459 for ac_extension
in a so sl dylib la dll
; do
14460 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14461 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14462 ac_im_usrlibdir
=$ac_im_libdir; break
14465 # Screen out bogus values from the imake configuration. They are
14466 # bogus both because they are the default anyway, and because
14467 # using them would break gcc on systems where it needs fixed includes.
14468 case $ac_im_incroot in
14469 /usr
/include
) ac_x_includes
= ;;
14470 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14472 case $ac_im_usrlibdir in
14473 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14474 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14478 rm -f -r conftest.dir
14481 # Standard set of common directories for X headers.
14482 # Check X11 before X11Rn because it is often a symlink to the current release.
14496 /usr/local/X11/include
14497 /usr/local/X11R7/include
14498 /usr/local/X11R6/include
14499 /usr/local/X11R5/include
14500 /usr/local/X11R4/include
14502 /usr/local/include/X11
14503 /usr/local/include/X11R7
14504 /usr/local/include/X11R6
14505 /usr/local/include/X11R5
14506 /usr/local/include/X11R4
14510 /usr/XFree86/include/X11
14514 /usr/unsupported/include
14515 /usr/athena/include
14516 /usr/local/x11r5/include
14517 /usr/lpp/Xamples/include
14519 /usr/openwin/include
14520 /usr/openwin/share/include'
14522 if test "$ac_x_includes" = no
; then
14523 # Guess where to find include files, by looking for Xlib.h.
14524 # First, try using that file with no special directory specified.
14525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14527 #include <X11/Xlib.h>
14529 if ac_fn_c_try_cpp
"$LINENO"; then :
14530 # We can compile using X headers with no special include directory.
14533 for ac_dir
in $ac_x_header_dirs; do
14534 if test -r "$ac_dir/X11/Xlib.h"; then
14535 ac_x_includes
=$ac_dir
14540 rm -f conftest.err conftest.
$ac_ext
14541 fi # $ac_x_includes = no
14543 if test "$ac_x_libraries" = no
; then
14544 # Check for the libraries.
14545 # See if we find them without any special options.
14546 # Don't add to $LIBS permanently.
14549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14551 #include <X11/Xlib.h>
14560 if ac_fn_c_try_link
"$LINENO"; then :
14562 # We can link X programs with no special library path.
14566 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14568 # Don't even attempt the hair of trying to link an X program!
14569 for ac_extension
in a so sl dylib la dll
; do
14570 if test -r "$ac_dir/libX11.$ac_extension"; then
14571 ac_x_libraries
=$ac_dir
14577 rm -f core conftest.err conftest.
$ac_objext \
14578 conftest
$ac_exeext conftest.
$ac_ext
14579 fi # $ac_x_libraries = no
14581 case $ac_x_includes,$ac_x_libraries in #(
14582 no
,* |
*,no |
*\'*)
14583 # Didn't find X, or a directory has "'" in its name.
14584 ac_cv_have_x
="have_x=no";; #(
14586 # Record where we found X for the cache.
14587 ac_cv_have_x
="have_x=yes\
14588 ac_x_includes='$ac_x_includes'\
14589 ac_x_libraries='$ac_x_libraries'"
14595 eval "$ac_cv_have_x"
14598 if test "$have_x" != yes; then
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14600 $as_echo "$have_x" >&6; }
14603 # If each of the values was on the command line, it overrides each guess.
14604 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14605 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14606 # Update the cache value to reflect the command line values.
14607 ac_cv_have_x
="have_x=yes\
14608 ac_x_includes='$x_includes'\
14609 ac_x_libraries='$x_libraries'"
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14611 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14615 # Unlike the sim directory, whether a simulator is linked is controlled by
14616 # presence of a gdb_sim definition in the target configure.tgt entry.
14617 # This code just checks for a few cases where we'd like to ignore those
14618 # definitions, even when they're present in the '.mt' file. These cases
14619 # are when --disable-sim is specified, or if the simulator directory is
14620 # not part of the source tree.
14622 # Check whether --enable-sim was given.
14623 if test "${enable_sim+set}" = set; then :
14624 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
14625 echo "enableval = ${enableval}";
14626 case "${enableval}" in
14627 yes) ignore_sim
=false
;;
14628 no
) ignore_sim
=true
;;
14629 *) ignore_sim
=false
;;
14636 if test ! -d "${srcdir}/../sim"; then
14642 if test "${ignore_sim}" = "false"; then
14643 if test x
"${gdb_sim}" != x
; then
14645 SIM_OBS
="remote-sim.o"
14647 $as_echo "#define WITH_SIM 1" >>confdefs.h
14665 # List of host floatformats.
14667 cat >>confdefs.h
<<_ACEOF
14668 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14672 cat >>confdefs.h
<<_ACEOF
14673 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14677 cat >>confdefs.h
<<_ACEOF
14678 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14682 # target_subdir is used by the testsuite to find the target libraries.
14684 if test "${host}" != "${target}"; then
14685 target_subdir
="${target_alias}/"
14690 if test "${gdb_native}" = "yes"; then
14691 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14692 if test ! -f ${host_makefile_frag}; then
14693 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14695 frags
="$frags $host_makefile_frag"
14697 host_makefile_frag
=/dev
/null
14703 if test "${gdb_native}" = "yes"; then
14704 # We pick this up from the host configuration file (.mh) because we
14705 # do not have a native configuration Makefile fragment.
14706 nativefile
=`sed -n '
14707 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
14708 ' ${host_makefile_frag}`
14712 if test x
"${gdb_osabi}" != x
; then
14714 cat >>confdefs.h
<<_ACEOF
14715 #define GDB_OSABI_DEFAULT $gdb_osabi
14720 # Enable multi-ice-gdb-server.
14721 # Check whether --enable-multi-ice was given.
14722 if test "${enable_multi_ice+set}" = set; then :
14723 enableval
=$enable_multi_ice; case $enableval in
14726 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14730 if test "x$enable_multi_ice" = xyes
; then
14731 subdirs
="$subdirs multi-ice"
14735 # Check whether --enable-gdbserver was given.
14736 if test "${enable_gdbserver+set}" = set; then :
14737 enableval
=$enable_gdbserver; case "${enableval}" in
14739 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
14742 enable_gdbserver
=auto
14746 # We only build gdbserver automatically in a native configuration, and
14747 # only if the user did not explicitly disable its build.
14748 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14750 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14751 if test "x$build_gdbserver" = xyes
; then
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14753 $as_echo "yes" >&6; }
14754 subdirs
="$subdirs gdbserver"
14756 gdbserver_build_enabled
=yes
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14759 $as_echo "no" >&6; }
14763 # If the user explicitly request the gdbserver to be built, verify that
14764 # we were in fact able to enable it.
14765 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
14766 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
14769 # Check for babeltrace and babeltrace-ctf
14771 # Check whether --with-babeltrace was given.
14772 if test "${with_babeltrace+set}" = set; then :
14773 withval
=$with_babeltrace;
14775 with_babeltrace
=auto
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
14779 $as_echo_n "checking whether to use babeltrace... " >&6; }
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
14781 $as_echo "$with_babeltrace" >&6; }
14783 if test "x$with_babeltrace" = "xno"; then
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
14785 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
14787 # Append -Werror to CFLAGS so that configure can catch the warning
14788 # "assignment from incompatible pointer type", which is related to
14789 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
14790 # in GDB, while babeltrace 1.0.3 is broken.
14791 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
14792 # safe to save and restore CFLAGS here.
14793 saved_CFLAGS
=$CFLAGS
14794 CFLAGS
="$CFLAGS -Werror"
14805 acl_save_prefix
="$prefix"
14806 prefix
="$acl_final_prefix"
14807 acl_save_exec_prefix
="$exec_prefix"
14808 exec_prefix
="$acl_final_exec_prefix"
14810 eval additional_includedir
=\"$includedir\"
14811 eval additional_libdir
=\"$libdir\"
14813 exec_prefix
="$acl_save_exec_prefix"
14814 prefix
="$acl_save_prefix"
14817 # Check whether --with-libbabeltrace-prefix was given.
14818 if test "${with_libbabeltrace_prefix+set}" = set; then :
14819 withval
=$with_libbabeltrace_prefix;
14820 if test "X$withval" = "Xno"; then
14823 if test "X$withval" = "X"; then
14825 acl_save_prefix
="$prefix"
14826 prefix
="$acl_final_prefix"
14827 acl_save_exec_prefix
="$exec_prefix"
14828 exec_prefix
="$acl_final_exec_prefix"
14830 eval additional_includedir
=\"$includedir\"
14831 eval additional_libdir
=\"$libdir\"
14833 exec_prefix
="$acl_save_exec_prefix"
14834 prefix
="$acl_save_prefix"
14837 additional_includedir
="$withval/include"
14838 additional_libdir
="$withval/lib"
14849 names_already_handled
=
14850 names_next_round
='babeltrace babeltrace-ctf'
14851 while test -n "$names_next_round"; do
14852 names_this_round
="$names_next_round"
14854 for name
in $names_this_round; do
14856 for n
in $names_already_handled; do
14857 if test "$n" = "$name"; then
14858 already_handled
=yes
14862 if test -z "$already_handled"; then
14863 names_already_handled
="$names_already_handled $name"
14864 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14865 eval value
=\"\
$HAVE_LIB$uppername\"
14866 if test -n "$value"; then
14867 if test "$value" = yes; then
14868 eval value
=\"\
$LIB$uppername\"
14869 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
14870 eval value
=\"\
$LTLIB$uppername\"
14871 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
14880 if test $use_additional = yes; then
14881 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14882 found_dir
="$additional_libdir"
14883 found_so
="$additional_libdir/lib$name.$shlibext"
14884 if test -f "$additional_libdir/lib$name.la"; then
14885 found_la
="$additional_libdir/lib$name.la"
14888 if test -f "$additional_libdir/lib$name.$libext"; then
14889 found_dir
="$additional_libdir"
14890 found_a
="$additional_libdir/lib$name.$libext"
14891 if test -f "$additional_libdir/lib$name.la"; then
14892 found_la
="$additional_libdir/lib$name.la"
14897 if test "X$found_dir" = "X"; then
14898 for x
in $LDFLAGS $LTLIBBABELTRACE; do
14900 acl_save_prefix
="$prefix"
14901 prefix
="$acl_final_prefix"
14902 acl_save_exec_prefix
="$exec_prefix"
14903 exec_prefix
="$acl_final_exec_prefix"
14905 exec_prefix
="$acl_save_exec_prefix"
14906 prefix
="$acl_save_prefix"
14910 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14911 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14913 found_so
="$dir/lib$name.$shlibext"
14914 if test -f "$dir/lib$name.la"; then
14915 found_la
="$dir/lib$name.la"
14918 if test -f "$dir/lib$name.$libext"; then
14920 found_a
="$dir/lib$name.$libext"
14921 if test -f "$dir/lib$name.la"; then
14922 found_la
="$dir/lib$name.la"
14928 if test "X$found_dir" != "X"; then
14933 if test "X$found_dir" != "X"; then
14934 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
14935 if test "X$found_so" != "X"; then
14936 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14937 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14940 for x
in $ltrpathdirs; do
14941 if test "X$x" = "X$found_dir"; then
14946 if test -z "$haveit"; then
14947 ltrpathdirs
="$ltrpathdirs $found_dir"
14949 if test "$hardcode_direct" = yes; then
14950 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14952 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14953 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14955 for x
in $rpathdirs; do
14956 if test "X$x" = "X$found_dir"; then
14961 if test -z "$haveit"; then
14962 rpathdirs
="$rpathdirs $found_dir"
14966 for x
in $LDFLAGS $LIBBABELTRACE; do
14968 acl_save_prefix
="$prefix"
14969 prefix
="$acl_final_prefix"
14970 acl_save_exec_prefix
="$exec_prefix"
14971 exec_prefix
="$acl_final_exec_prefix"
14973 exec_prefix
="$acl_save_exec_prefix"
14974 prefix
="$acl_save_prefix"
14976 if test "X$x" = "X-L$found_dir"; then
14981 if test -z "$haveit"; then
14982 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
14984 if test "$hardcode_minus_L" != no
; then
14985 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14987 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
14993 if test "X$found_a" != "X"; then
14994 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
14996 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
14999 additional_includedir
=
15000 case "$found_dir" in
15002 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15003 additional_includedir
="$basedir/include"
15006 if test "X$additional_includedir" != "X"; then
15007 if test "X$additional_includedir" != "X/usr/include"; then
15009 if test "X$additional_includedir" = "X/usr/local/include"; then
15010 if test -n "$GCC"; then
15012 linux
*) haveit
=yes;;
15016 if test -z "$haveit"; then
15017 for x
in $CPPFLAGS $INCBABELTRACE; do
15019 acl_save_prefix
="$prefix"
15020 prefix
="$acl_final_prefix"
15021 acl_save_exec_prefix
="$exec_prefix"
15022 exec_prefix
="$acl_final_exec_prefix"
15024 exec_prefix
="$acl_save_exec_prefix"
15025 prefix
="$acl_save_prefix"
15027 if test "X$x" = "X-I$additional_includedir"; then
15032 if test -z "$haveit"; then
15033 if test -d "$additional_includedir"; then
15034 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
15040 if test -n "$found_la"; then
15041 save_libdir
="$libdir"
15042 case "$found_la" in
15043 */* |
*\\*) .
"$found_la" ;;
15044 *) .
"./$found_la" ;;
15046 libdir
="$save_libdir"
15047 for dep
in $dependency_libs; do
15050 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15051 if test "X$additional_libdir" != "X/usr/lib"; then
15053 if test "X$additional_libdir" = "X/usr/local/lib"; then
15054 if test -n "$GCC"; then
15056 linux
*) haveit
=yes;;
15060 if test -z "$haveit"; then
15062 for x
in $LDFLAGS $LIBBABELTRACE; do
15064 acl_save_prefix
="$prefix"
15065 prefix
="$acl_final_prefix"
15066 acl_save_exec_prefix
="$exec_prefix"
15067 exec_prefix
="$acl_final_exec_prefix"
15069 exec_prefix
="$acl_save_exec_prefix"
15070 prefix
="$acl_save_prefix"
15072 if test "X$x" = "X-L$additional_libdir"; then
15077 if test -z "$haveit"; then
15078 if test -d "$additional_libdir"; then
15079 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
15083 for x
in $LDFLAGS $LTLIBBABELTRACE; do
15085 acl_save_prefix
="$prefix"
15086 prefix
="$acl_final_prefix"
15087 acl_save_exec_prefix
="$exec_prefix"
15088 exec_prefix
="$acl_final_exec_prefix"
15090 exec_prefix
="$acl_save_exec_prefix"
15091 prefix
="$acl_save_prefix"
15093 if test "X$x" = "X-L$additional_libdir"; then
15098 if test -z "$haveit"; then
15099 if test -d "$additional_libdir"; then
15100 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
15107 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15108 if test "$enable_rpath" != no
; then
15110 for x
in $rpathdirs; do
15111 if test "X$x" = "X$dir"; then
15116 if test -z "$haveit"; then
15117 rpathdirs
="$rpathdirs $dir"
15120 for x
in $ltrpathdirs; do
15121 if test "X$x" = "X$dir"; then
15126 if test -z "$haveit"; then
15127 ltrpathdirs
="$ltrpathdirs $dir"
15132 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15135 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15138 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
15139 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
15145 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15146 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
15152 if test "X$rpathdirs" != "X"; then
15153 if test -n "$hardcode_libdir_separator"; then
15155 for found_dir
in $rpathdirs; do
15156 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15158 acl_save_libdir
="$libdir"
15160 eval flag
=\"$hardcode_libdir_flag_spec\"
15161 libdir
="$acl_save_libdir"
15162 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15164 for found_dir
in $rpathdirs; do
15165 acl_save_libdir
="$libdir"
15166 libdir
="$found_dir"
15167 eval flag
=\"$hardcode_libdir_flag_spec\"
15168 libdir
="$acl_save_libdir"
15169 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15173 if test "X$ltrpathdirs" != "X"; then
15174 for found_dir
in $ltrpathdirs; do
15175 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
15180 ac_save_CPPFLAGS
="$CPPFLAGS"
15182 for element
in $INCBABELTRACE; do
15184 for x
in $CPPFLAGS; do
15186 acl_save_prefix
="$prefix"
15187 prefix
="$acl_final_prefix"
15188 acl_save_exec_prefix
="$exec_prefix"
15189 exec_prefix
="$acl_final_exec_prefix"
15191 exec_prefix
="$acl_save_exec_prefix"
15192 prefix
="$acl_save_prefix"
15194 if test "X$x" = "X$element"; then
15199 if test -z "$haveit"; then
15200 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
15206 $as_echo_n "checking for libbabeltrace... " >&6; }
15207 if test "${ac_cv_libbabeltrace+set}" = set; then :
15208 $as_echo_n "(cached) " >&6
15211 ac_save_LIBS
="$LIBS"
15212 LIBS
="$LIBS $LIBBABELTRACE"
15213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15215 #include <babeltrace/babeltrace.h>
15216 #include <babeltrace/ctf/events.h>
15217 #include <babeltrace/ctf/iterator.h>
15221 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
15222 struct bt_ctf_event *event = NULL;
15223 const struct bt_definition *scope;
15225 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
15226 scope = bt_ctf_get_top_level_scope (event,
15227 BT_STREAM_EVENT_HEADER);
15228 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
15234 if ac_fn_c_try_link
"$LINENO"; then :
15235 ac_cv_libbabeltrace
=yes
15237 ac_cv_libbabeltrace
=no
15239 rm -f core conftest.err conftest.
$ac_objext \
15240 conftest
$ac_exeext conftest.
$ac_ext
15241 LIBS
="$ac_save_LIBS"
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
15245 $as_echo "$ac_cv_libbabeltrace" >&6; }
15246 if test "$ac_cv_libbabeltrace" = yes; then
15247 HAVE_LIBBABELTRACE
=yes
15249 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
15252 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
15254 $as_echo "$LIBBABELTRACE" >&6; }
15256 HAVE_LIBBABELTRACE
=no
15257 CPPFLAGS
="$ac_save_CPPFLAGS"
15267 CFLAGS
=$saved_CFLAGS
15269 if test "$HAVE_LIBBABELTRACE" != yes; then
15270 if test "$with_babeltrace" = yes; then
15271 as_fn_error
"babeltrace is missing or unusable" "$LINENO" 5
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
15274 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
15279 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15280 # to an empty version.
15286 if test "${nativefile}" != ""; then
15287 case "${nativefile}" in
15288 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
15289 * ) GDB_NM_FILE
="${nativefile}"
15291 files
="${files} ${GDB_NM_FILE}"
15292 links
="${links} nm.h"
15294 cat >>confdefs.h
<<_ACEOF
15295 #define GDB_NM_FILE "${GDB_NM_FILE}"
15301 ac_sources
="$files"
15303 while test -n "$ac_sources"; do
15304 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
15305 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
15306 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
15308 ac_config_links
="$ac_config_links $ac_config_links_1"
15314 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15317 # Undo the $ec_script escaping suitable for Makefile.
15318 transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
15319 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$transform"`
15320 if test "x$GDB_TRANSFORM_NAME" = x
; then
15321 GDB_TRANSFORM_NAME
=gdb
15324 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$transform"`
15325 if test "x$GCORE_TRANSFORM_NAME" = x
; then
15326 GCORE_TRANSFORM_NAME
=gcore
15329 ac_config_files
="$ac_config_files gcore"
15332 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
15334 ac_config_commands
="$ac_config_commands default"
15336 cat >confcache
<<\_ACEOF
15337 # This file is a shell script that caches the results of configure
15338 # tests run on this system so they can be shared between configure
15339 # scripts and configure runs, see configure's option --config-cache.
15340 # It is not useful on other systems. If it contains results you don't
15341 # want to keep, you may remove or edit it.
15343 # config.status only pays attention to the cache file if you give it
15344 # the --recheck option to rerun configure.
15346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15348 # following values.
15352 # The following way of writing the cache mishandles newlines in values,
15353 # but we know of no workaround that is simple, portable, and efficient.
15354 # So, we kill variables containing newlines.
15355 # Ultrix sh set writes to stderr and can't be redirected directly,
15356 # and sets the high bit in the cache file unless we assign to the vars.
15358 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15359 eval ac_val
=\$
$ac_var
15363 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15367 _ | IFS | as_nl
) ;; #(
15368 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15369 *) { eval $ac_var=; unset $ac_var;} ;;
15375 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15376 *${as_nl}ac_space
=\
*)
15377 # `set' does not quote correctly, so add quotes: double-quote
15378 # substitution turns \\\\ into \\, and sed turns \\ into \.
15381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15384 # `set' quotes correctly as required by POSIX, so do not add quotes.
15385 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15394 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15396 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15398 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15399 if test -w "$cache_file"; then
15400 test "x$cache_file" != "x/dev/null" &&
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15402 $as_echo "$as_me: updating cache $cache_file" >&6;}
15403 cat confcache
>$cache_file
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15406 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15411 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15412 # Let make expand exec_prefix.
15413 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15415 DEFS
=-DHAVE_CONFIG_H
15419 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15420 # 1. Remove the extension, and $U if already installed.
15421 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15422 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15423 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15424 # will be set to the directory where LIBOBJS objects are built.
15425 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15426 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15428 LIBOBJS
=$ac_libobjs
15430 LTLIBOBJS
=$ac_ltlibobjs
15433 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15434 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
15435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15437 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15438 as_fn_error
"conditional \"GMAKE\" was never defined.
15439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15441 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15442 as_fn_error
"conditional \"HAVE_PYTHON\" was never defined.
15443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15445 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
15446 as_fn_error
"conditional \"HAVE_GUILE\" was never defined.
15447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15451 : ${CONFIG_STATUS=./config.status}
15453 ac_clean_files_save
=$ac_clean_files
15454 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15456 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15458 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15460 # Generated by $as_me.
15461 # Run this file to recreate the current configuration.
15462 # Compiler output produced by configure, useful for debugging
15463 # configure, is in config.log if it exists.
15466 ac_cs_recheck=false
15469 SHELL=\${CONFIG_SHELL-$SHELL}
15472 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15473 ## -------------------- ##
15474 ## M4sh Initialization. ##
15475 ## -------------------- ##
15477 # Be more Bourne compatible
15478 DUALCASE
=1; export DUALCASE
# for MKS sh
15479 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15482 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15483 # is contrary to our usage. Disable this feature.
15484 alias -g '${1+"$@"}'='"$@"'
15485 setopt NO_GLOB_SUBST
15487 case `(set -o) 2>/dev/null` in #(
15499 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15500 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15501 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15502 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15503 # Prefer a ksh shell builtin over an external printf program on Solaris,
15504 # but without wasting forks for bash or zsh.
15505 if test -z "$BASH_VERSION$ZSH_VERSION" \
15506 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15507 as_echo='print
-r --'
15508 as_echo_n='print
-rn --'
15509 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15510 as_echo='printf %s
\n'
15511 as_echo_n='printf %s
'
15513 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15514 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15515 as_echo_n='/usr
/ucb
/echo -n'
15517 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15518 as_echo_n_body='eval
15522 expr "X$arg" : "X\\(.*\\)$as_nl";
15523 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15525 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15527 export as_echo_n_body
15528 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15530 export as_echo_body
15531 as_echo='sh
-c $as_echo_body as_echo
'
15534 # The user is always right.
15535 if test "${PATH_SEPARATOR+set}" != set; then
15537 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15538 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15545 # We need space, tab and new line, in precisely that order. Quoting is
15546 # there to prevent editors from complaining about space-tab.
15547 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15548 # splitting by setting IFS to empty value.)
15551 # Find who we are. Look in the path if we contain no directory separator.
15553 *[\\/]* ) as_myself=$0 ;;
15554 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15555 for as_dir in $PATH
15558 test -z "$as_dir" && as_dir=.
15559 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15565 # We did not find ourselves, most probably we were run as `sh COMMAND'
15566 # in which case we are not to be found in the path.
15567 if test "x$as_myself" = x
; then
15570 if test ! -f "$as_myself"; then
15571 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15575 # Unset variables that we do not need and which cause bugs (e.g. in
15576 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15577 # suppresses any "Segmentation fault" message there. '((' could
15578 # trigger a bug in pdksh 5.2.14.
15579 for as_var
in BASH_ENV ENV MAIL MAILPATH
15580 do eval test x\
${$as_var+set} = xset \
15581 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15594 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15597 # as_fn_error ERROR [LINENO LOG_FD]
15598 # ---------------------------------
15599 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15600 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15601 # script with status $?, using 1 if that was 0.
15604 as_status
=$?
; test $as_status -eq 0 && as_status
=1
15606 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15607 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15609 $as_echo "$as_me: error: $1" >&2
15610 as_fn_exit
$as_status
15614 # as_fn_set_status STATUS
15615 # -----------------------
15616 # Set $? to STATUS, without forking.
15617 as_fn_set_status
()
15620 } # as_fn_set_status
15622 # as_fn_exit STATUS
15623 # -----------------
15624 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15628 as_fn_set_status
$1
15634 # Portably unset VAR.
15637 { eval $1=; unset $1;}
15639 as_unset
=as_fn_unset
15640 # as_fn_append VAR VALUE
15641 # ----------------------
15642 # Append the text in VALUE to the end of the definition contained in VAR. Take
15643 # advantage of any shell optimizations that allow amortized linear growth over
15644 # repeated appends, instead of the typical quadratic growth present in naive
15646 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15647 eval 'as_fn_append ()
15658 # as_fn_arith ARG...
15659 # ------------------
15660 # Perform arithmetic evaluation on the ARGs, and store the result in the
15661 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15662 # must be portable across $(()) and expr.
15663 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15664 eval 'as_fn_arith ()
15671 as_val
=`expr "$@" || test $? -eq 1`
15676 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15677 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15683 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15684 as_basename
=basename
15689 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15695 as_me
=`$as_basename -- "$0" ||
15696 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15697 X"$0" : 'X\(//\)$' \| \
15698 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15700 sed '/^.*\/\([^/][^/]*\)\/*$/{
15714 # Avoid depending upon Character Ranges.
15715 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15716 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15717 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15718 as_cr_digits
='0123456789'
15719 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15721 ECHO_C
= ECHO_N
= ECHO_T
=
15722 case `echo -n x` in #(((((
15724 case `echo 'xy\c'` in
15725 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15727 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15734 rm -f conf$$ conf$$.exe conf$$.
file
15735 if test -d conf$$.dir
; then
15736 rm -f conf$$.dir
/conf$$.
file
15739 mkdir conf$$.dir
2>/dev
/null
15741 if (echo >conf$$.
file) 2>/dev
/null
; then
15742 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15744 # ... but there are two gotchas:
15745 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15746 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15747 # In both cases, we have to default to `cp -p'.
15748 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15750 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15758 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15759 rmdir conf$$.dir
2>/dev
/null
15764 # Create "$as_dir" as a directory, including parents if necessary.
15769 -*) as_dir
=.
/$as_dir;;
15771 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15775 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15776 *) as_qdir
=$as_dir;;
15778 as_dirs
="'$as_qdir' $as_dirs"
15779 as_dir
=`$as_dirname -- "$as_dir" ||
15780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15781 X"$as_dir" : 'X\(//\)[^/]' \| \
15782 X"$as_dir" : 'X\(//\)$' \| \
15783 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15784 $as_echo X"$as_dir" |
15785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15789 /^X\(\/\/\)[^/].*/{
15802 test -d "$as_dir" && break
15804 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15805 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
15809 if mkdir
-p .
2>/dev
/null
; then
15810 as_mkdir_p
='mkdir -p "$as_dir"'
15812 test -d .
/-p && rmdir .
/-p
15816 if test -x / >/dev
/null
2>&1; then
15817 as_test_x
='test -x'
15819 if ls -dL / >/dev
/null
2>&1; then
15826 if test -d "$1"; then
15832 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15833 ???[sx]*):;;*)false;;esac;fi
15837 as_executable_p
=$as_test_x
15839 # Sed expression to map a string onto a valid CPP name.
15840 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15842 # Sed expression to map a string onto a valid variable name.
15843 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15847 ## ----------------------------------- ##
15848 ## Main body of $CONFIG_STATUS script. ##
15849 ## ----------------------------------- ##
15851 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15854 # Save the log message, to keep $0 and so on meaningful, and to
15855 # report actual input values of CONFIG_FILES etc. instead of their
15856 # values after options handling.
15858 This file was extended by $as_me, which was
15859 generated by GNU Autoconf 2.64. Invocation command line was
15861 CONFIG_FILES = $CONFIG_FILES
15862 CONFIG_HEADERS = $CONFIG_HEADERS
15863 CONFIG_LINKS = $CONFIG_LINKS
15864 CONFIG_COMMANDS = $CONFIG_COMMANDS
15867 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15872 case $ac_config_files in *"
15873 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15876 case $ac_config_headers in *"
15877 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15882 # Files that config.status was made for.
15883 config_files="$ac_config_files"
15884 config_headers="$ac_config_headers"
15885 config_links="$ac_config_links"
15886 config_commands="$ac_config_commands"
15890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15892 \`$as_me' instantiates files and other configuration actions
15893 from templates according to the current configuration. Unless the files
15894 and actions are specified as TAGs, all are instantiated by default.
15896 Usage: $0 [OPTION]... [TAG]...
15898 -h, --help print this help, then exit
15899 -V, --version print version number and configuration settings, then exit
15900 -q, --quiet, --silent
15901 do not print progress messages
15902 -d, --debug don't remove temporary files
15903 --recheck update $as_me by reconfiguring in the same conditions
15904 --file=FILE[:TEMPLATE]
15905 instantiate the configuration file FILE
15906 --header=FILE[:TEMPLATE]
15907 instantiate the configuration header FILE
15909 Configuration files:
15912 Configuration headers:
15915 Configuration links:
15918 Configuration commands:
15921 Report bugs to the package provider."
15924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15927 configured by $0, generated by GNU Autoconf 2.64,
15928 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15930 Copyright (C) 2009 Free Software Foundation, Inc.
15931 This config.status script is free software; the Free Software Foundation
15932 gives unlimited permission to copy, distribute and modify it."
15938 test -n "\$AWK" || AWK=awk
15941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15942 # The default lists apply if the user does not specify any file.
15948 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15949 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15960 # Handling of the options.
15961 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15963 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15964 $as_echo "$ac_cs_version"; exit ;;
15965 --debug |
--debu |
--deb |
--de |
--d |
-d )
15967 --file |
--fil |
--fi |
--f )
15970 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15972 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15973 ac_need_defaults
=false
;;
15974 --header |
--heade |
--head |
--hea )
15977 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15979 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15980 ac_need_defaults
=false
;;
15982 # Conflict between --help and --header
15983 as_fn_error
"ambiguous option: \`$1'
15984 Try \`$0 --help' for more information.";;
15985 --help |
--hel |
-h )
15986 $as_echo "$ac_cs_usage"; exit ;;
15987 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15988 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15991 # This is an error.
15992 -*) as_fn_error
"unrecognized option: \`$1'
15993 Try \`$0 --help' for more information." ;;
15995 *) as_fn_append ac_config_targets
" $1"
15996 ac_need_defaults
=false
;;
16002 ac_configure_extra_args
=
16004 if $ac_cs_silent; then
16006 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16011 if \$ac_cs_recheck; then
16012 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16014 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16015 CONFIG_SHELL='$SHELL'
16016 export CONFIG_SHELL
16021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16025 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16026 ## Running $as_me. ##
16032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16036 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16042 # Handling of arguments.
16043 for ac_config_target
in $ac_config_targets
16045 case $ac_config_target in
16046 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16047 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
16048 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16049 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
16050 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
16051 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16052 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
16053 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16054 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
16055 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16057 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16062 # If the user did not use the arguments to specify the items to instantiate,
16063 # then the envvar interface is used. Set only those that are not.
16064 # We use the long form for the default assignment because of an extremely
16065 # bizarre bug on SunOS 4.1.3.
16066 if $ac_need_defaults; then
16067 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16068 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16069 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16070 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16073 # Have a temporary directory for convenience. Make it in the build tree
16074 # simply because there is no reason against having it here, and in addition,
16075 # creating and moving files from /tmp can sometimes cause problems.
16076 # Hook for its removal unless debugging.
16077 # Note that there is a small window in which the directory will not be cleaned:
16078 # after its creation but before its name has been assigned to `$tmp'.
16082 trap 'exit_status=$?
16083 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16085 trap 'as_fn_exit 1' 1 2 13 15
16087 # Create a (secure) tmp directory for tmp files.
16090 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16091 test -n "$tmp" && test -d "$tmp"
16094 tmp
=.
/conf$$
-$RANDOM
16095 (umask 077 && mkdir
"$tmp")
16096 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16098 # Set up the scripts for CONFIG_FILES section.
16099 # No need to generate them if there are no CONFIG_FILES.
16100 # This happens for instance with `./config.status config.h'.
16101 if test -n "$CONFIG_FILES"; then
16103 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16104 ac_cs_awk_getline
=:
16105 ac_cs_awk_pipe_init
=
16106 ac_cs_awk_read_file
='
16107 while ((getline aline < (F[key])) > 0)
16110 ac_cs_awk_pipe_fini
=
16112 ac_cs_awk_getline
=false
16113 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16114 ac_cs_awk_read_file
='
16116 print "cat " F[key] " &&"
16117 '$ac_cs_awk_pipe_init
16118 # The final `:' finishes the AND list.
16119 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16121 ac_cr
=`echo X | tr X '\015'`
16122 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16123 # But we know of no other shell where ac_cr would be empty at this
16124 # point, so we can use a bashism as a fallback.
16125 if test "x$ac_cr" = x
; then
16126 eval ac_cr
=\$
\'\\r
\'
16128 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16129 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16132 ac_cs_awk_cr
=$ac_cr
16135 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16138 # Create commands to substitute file output variables.
16140 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16141 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16142 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16145 } >conf$
$files.sh
&&
16146 . .
/conf$
$files.sh ||
16147 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
16148 rm -f conf$
$files.sh
16151 echo "cat >conf$$subs.awk <<_ACEOF" &&
16152 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16154 } >conf$$subs.sh ||
16155 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16156 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16158 for ac_last_try in false false false false false :; do
16159 . ./conf$$subs.sh ||
16160 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16162 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16163 if test $ac_delim_n = $ac_delim_num; then
16165 elif $ac_last_try; then
16166 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16168 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16171 rm -f conf$$subs.sh
16173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16174 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16178 s/^/S["/; s
/!.
*/"]=/
16188 s/\(.\{148\}\).*/\1/
16190 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16195 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16202 s/\(.\{148\}\).*/\1/
16204 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16208 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16213 ' <conf$$subs.awk | sed '
16218 ' >>$CONFIG_STATUS || ac_write_fail=1
16219 rm -f conf$$subs.awk
16220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16222 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16223 for (key in S) S_is_set[key] = 1
16225 \$ac_cs_awk_pipe_init
16229 nfields = split(line, field, "@
")
16231 len = length(field[1])
16232 for (i = 2; i < nfields; i++) {
16234 keylen = length(key)
16235 if (S_is_set[key]) {
16237 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16238 len += length(value) + length(field[++i])
16243 if (nfields == 3 && !substed) {
16245 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16246 \$ac_cs_awk_read_file
16252 \$ac_cs_awk_pipe_fini
16255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16256 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16257 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16260 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16261 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16264 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16265 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16266 # trailing colons and then remove the whole line if VPATH becomes empty
16267 # (actually we leave an empty line to preserve line numbers).
16268 if test "x
$srcdir" = x.; then
16269 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16270 s/:*\$(srcdir):*/:/
16271 s/:*\${srcdir}:*/:/
16273 s/^\([^=]*=[ ]*\):*/\1/
16279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16280 fi # test -n "$CONFIG_FILES"
16282 # Set up the scripts for CONFIG_HEADERS section.
16283 # No need to generate them if there are no CONFIG_HEADERS.
16284 # This happens for instance with `./config.status Makefile'.
16285 if test -n "$CONFIG_HEADERS"; then
16286 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16290 # Transform confdefs.h into an awk script `defines.awk', embedded as
16291 # here-document in config.status, that substitutes the proper values into
16292 # config.h.in to produce config.h.
16294 # Create a delimiter string that does not exist in confdefs.h, to ease
16295 # handling of long lines.
16297 for ac_last_try in false false :; do
16298 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16299 if test -z "$ac_t"; then
16301 elif $ac_last_try; then
16302 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16304 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16308 # For the awk script, D is an array of macro values keyed by name,
16309 # likewise P contains macro parameters if any. Preserve backslash
16310 # newline sequences.
16312 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16314 s/.\{148\}/&'"$ac_delim"'/g
16317 s/^[ ]*#[ ]*define[ ][ ]*/ /
16324 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16326 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16330 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16331 D["\
1"]=" \
3\\\\\\n
"\\/p
16333 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16338 s/.\{148\}/&'"$ac_delim"'/g
16343 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16346 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16348 ' <confdefs.h | sed '
16349 s/'"$ac_delim"'/"\\\
16350 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16353 for (key in D) D_is_set[key] = 1
16356 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16358 split(line, arg, " ")
16359 if (arg[1] == "#") {
16363 defundef
= substr
(arg
[1], 2)
16366 split(mac1
, mac2
, "(") #)
16368 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16369 if (D_is_set
[macro
]) {
16370 # Preserve the white space surrounding the "#".
16371 print prefix
"define", macro P
[macro
] D
[macro
]
16374 # Replace #undef with comments. This is necessary, for example,
16375 # in the case of _POSIX_SOURCE, which is predefined and required
16376 # on some systems where configure will not decide to define it.
16377 if (defundef
== "undef") {
16378 print
"/*", prefix defundef
, macro
, "*/"
16386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16387 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16388 fi # test -n "$CONFIG_HEADERS"
16391 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16396 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16398 case $ac_mode$ac_tag in
16400 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16401 :[FH
]-) ac_tag
=-:-;;
16402 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16419 -) ac_f
="$tmp/stdin";;
16420 *) # Look for the file first in the build tree, then in the source tree
16421 # (if the path is not absolute). The absolute path cannot be DOS-style,
16422 # because $ac_f cannot contain `:'.
16426 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16428 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16430 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16431 as_fn_append ac_file_inputs
" '$ac_f'"
16434 # Let's still pretend it is `configure' which instantiates (i.e., don't
16435 # use $as_me), people would be surprised to read:
16436 # /* config.h. Generated by config.status. */
16437 configure_input
='Generated from '`
16438 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16440 if test x
"$ac_file" != x-
; then
16441 configure_input
="$ac_file. $configure_input"
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16443 $as_echo "$as_me: creating $ac_file" >&6;}
16445 # Neutralize special characters interpreted by sed in replacement strings.
16446 case $configure_input in #(
16447 *\
&* |
*\|
* |
*\\* )
16448 ac_sed_conf_input
=`$as_echo "$configure_input" |
16449 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16450 *) ac_sed_conf_input
=$configure_input;;
16454 *:-:* |
*:-) cat >"$tmp/stdin" \
16455 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16460 ac_dir
=`$as_dirname -- "$ac_file" ||
16461 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16462 X"$ac_file" : 'X\(//\)[^/]' \| \
16463 X"$ac_file" : 'X\(//\)$' \| \
16464 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16465 $as_echo X"$ac_file" |
16466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16470 /^X\(\/\/\)[^/].*/{
16483 as_dir
="$ac_dir"; as_fn_mkdir_p
16487 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16489 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16490 # A ".." for each directory in $ac_dir_suffix.
16491 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16492 case $ac_top_builddir_sub in
16493 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16494 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16497 ac_abs_top_builddir
=$ac_pwd
16498 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16499 # for backward compatibility:
16500 ac_top_builddir
=$ac_top_build_prefix
16503 .
) # We are building in place.
16505 ac_top_srcdir
=$ac_top_builddir_sub
16506 ac_abs_top_srcdir
=$ac_pwd ;;
16507 [\\/]* | ?
:[\\/]* ) # Absolute name.
16508 ac_srcdir
=$srcdir$ac_dir_suffix;
16509 ac_top_srcdir
=$srcdir
16510 ac_abs_top_srcdir
=$srcdir ;;
16511 *) # Relative name.
16512 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16513 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16514 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16516 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16526 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16527 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16532 # If the template does not know about datarootdir, expand it.
16533 # FIXME: This hack should be removed a few years after 2.60.
16534 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16545 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16546 *datarootdir
*) ac_datarootdir_seen
=yes;;
16547 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16549 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16552 ac_datarootdir_hack='
16553 s&@datadir@&$datadir&g
16554 s&@docdir@&$docdir&g
16555 s&@infodir@&$infodir&g
16556 s&@localedir@&$localedir&g
16557 s&@mandir@&$mandir&g
16558 s&\\\${datarootdir}&$datarootdir&g' ;;
16562 # Neutralize VPATH when `$srcdir' = `.'.
16563 # Shell code in configure.ac might set extrasub.
16564 # FIXME: do we really want to maintain this feature?
16565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16566 ac_sed_extra="$ac_vpsub
16569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16571 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16572 s|@configure_input@|
$ac_sed_conf_input|
;t t
16573 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16574 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16575 s
&@srcdir@
&$ac_srcdir&;t t
16576 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16577 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16578 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16579 s
&@builddir@
&$ac_builddir&;t t
16580 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16581 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16582 s
&@INSTALL@
&$ac_INSTALL&;t t
16583 $ac_datarootdir_hack
16585 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16586 if $ac_cs_awk_getline; then
16587 $AWK -f "$tmp/subs.
awk"
16589 $AWK -f "$tmp/subs.
awk" | $SHELL
16591 || as_fn_error "could not create
$ac_file" "$LINENO" 5
16593 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16594 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16595 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16597 which seems to be undefined. Please make sure it is defined." >&5
16598 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16599 which seems to be undefined. Please make sure it is defined." >&2;}
16603 -) cat "$tmp/out" && rm -f "$tmp/out";;
16604 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16606 || as_fn_error "could not create $ac_file" "$LINENO" 5
16612 if test x"$ac_file" != x-; then
16614 $as_echo "/* $configure_input */" \
16615 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16616 } >"$tmp/config.h" \
16617 || as_fn_error "could not create $ac_file" "$LINENO" 5
16618 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16620 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16623 mv "$tmp/config.h" "$ac_file" \
16624 || as_fn_error "could not create $ac_file" "$LINENO" 5
16627 $as_echo "/* $configure_input */" \
16628 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16629 || as_fn_error "could not create -" "$LINENO" 5
16637 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
16640 # Prefer the file from the source tree if names are identical.
16641 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16642 ac_source=$srcdir/$ac_source
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16646 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16648 if test ! -r "$ac_source"; then
16649 as_fn_error "$ac_source: file not found" "$LINENO" 5
16653 # Try a relative symlink, then a hard link, then a copy.
16655 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16656 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16658 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16659 ln "$ac_source" "$ac_file" 2>/dev/null ||
16660 cp -p "$ac_source" "$ac_file" ||
16661 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16664 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16665 $as_echo "$as_me: executing $ac_file commands" >&6;}
16670 case $ac_file$ac_mode in
16671 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16672 "gcore":F) chmod +x gcore ;;
16674 case x$CONFIG_HEADERS in
16675 xconfig.h:config.in)
16686 ac_clean_files=$ac_clean_files_save
16688 test $ac_write_fail = 0 ||
16689 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16692 # configure is writing to config.log, and then calls config.status.
16693 # config.status does its own redirection, appending to config.log.
16694 # Unfortunately, on DOS this fails, as config.log is still kept open
16695 # by configure, so config.status won't be able to
write to it
; its
16696 # output is simply discarded. So we exec the FD to /dev/null,
16697 # effectively closing config.log, so it can be properly (re)opened and
16698 # appended to by config.status. When coming back to configure, we
16699 # need to make the FD available again.
16700 if test "$no_create" != yes; then
16702 ac_config_status_args
=
16703 test "$silent" = yes &&
16704 ac_config_status_args
="$ac_config_status_args --quiet"
16706 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16708 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16709 # would make configure fail if this is the last instruction.
16710 $ac_cs_success || as_fn_exit $?
16714 # CONFIG_SUBDIRS section.
16716 if test "$no_recursion" != yes; then
16718 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16719 # so they do not pile up.
16720 ac_sub_configure_args
=
16722 eval "set x $ac_configure_args"
16726 if test -n "$ac_prev"; then
16731 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
16732 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
16733 ac_prev
=cache_file
;;
16734 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
16735 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
16738 --config-cache |
-C)
16740 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
16742 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
16744 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
16746 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
16748 --disable-option-checking)
16752 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16754 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
16758 # Always prepend --prefix to ensure using the same prefix
16759 # in subdir configurations.
16760 ac_arg
="--prefix=$prefix"
16762 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16764 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
16767 if test "$silent" = yes; then
16768 ac_sub_configure_args
="--silent $ac_sub_configure_args"
16771 # Always prepend --disable-option-checking to silence warnings, since
16772 # different subdirs can have different --enable and --with options.
16773 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
16776 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
16778 # Do not complain, so a configure script can configure whichever
16779 # parts of a large source tree are present.
16780 test -d "$srcdir/$ac_dir" ||
continue
16782 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16783 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16784 $as_echo "$ac_msg" >&6
16785 as_dir
="$ac_dir"; as_fn_mkdir_p
16789 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16791 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16792 # A ".." for each directory in $ac_dir_suffix.
16793 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16794 case $ac_top_builddir_sub in
16795 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16796 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16799 ac_abs_top_builddir
=$ac_pwd
16800 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16801 # for backward compatibility:
16802 ac_top_builddir
=$ac_top_build_prefix
16805 .
) # We are building in place.
16807 ac_top_srcdir
=$ac_top_builddir_sub
16808 ac_abs_top_srcdir
=$ac_pwd ;;
16809 [\\/]* | ?
:[\\/]* ) # Absolute name.
16810 ac_srcdir
=$srcdir$ac_dir_suffix;
16811 ac_top_srcdir
=$srcdir
16812 ac_abs_top_srcdir
=$srcdir ;;
16813 *) # Relative name.
16814 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16815 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16816 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16818 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16823 # Check for guested configure; otherwise get Cygnus style configure.
16824 if test -f "$ac_srcdir/configure.gnu"; then
16825 ac_sub_configure
=$ac_srcdir/configure.gnu
16826 elif test -f "$ac_srcdir/configure"; then
16827 ac_sub_configure
=$ac_srcdir/configure
16828 elif test -f "$ac_srcdir/configure.in"; then
16829 # This should be Cygnus configure.
16830 ac_sub_configure
=$ac_aux_dir/configure
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16833 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16837 # The recursion is here.
16838 if test -n "$ac_sub_configure"; then
16839 # Make the cache file name correct relative to the subdirectory.
16840 case $cache_file in
16841 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
16842 *) # Relative name.
16843 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
16846 { $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
16847 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16848 # The eval makes quoting arguments work.
16849 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16850 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16851 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16857 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16859 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}