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
670 READLINE_TEXI_INCFLAG
689 HAVE_NATIVE_GCORE_TARGET
741 MAINTAINER_MODE_FALSE
770 program_transform_name
781 ac_subst_files='host_makefile_frag'
783 enable_option_checking
784 enable_maintainer_mode
787 with_separate_debug_dir
789 with_relocated_sources
791 with_auto_load_safe_path
818 enable_build_warnings
819 enable_gdb_build_warnings
829 with_libbabeltrace_prefix
831 ac_precious_vars='build_alias
845 ac_subdirs_all='testsuite
850 # Initialize some variables set by options.
852 ac_init_version=false
853 ac_unrecognized_opts=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
864 program_transform_name=s,x,x,
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE}'
889 infodir='${datarootdir}/info'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\$ac_option
910 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 # Accept the important Cygnus configure options, so we can diagnose typos.
916 case $ac_dashdash$ac_option in
920 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 -build | --build | --buil | --bui | --bu)
926 ac_prev=build_alias ;;
927 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928 build_alias=$ac_optarg ;;
930 -cache-file | --cache-file | --cache-fil | --cache-fi \
931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932 ac_prev=cache_file ;;
933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935 cache_file=$ac_optarg ;;
938 cache_file=config.cache ;;
940 -datadir | --datadir | --datadi | --datad)
942 -datadir=* | --datadir=* | --datadi=* | --datad=*)
943 datadir=$ac_optarg ;;
945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946 | --dataroo | --dataro | --datar)
947 ac_prev=datarootdir ;;
948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950 datarootdir=$ac_optarg ;;
952 -disable-* | --disable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
966 eval enable_$ac_useropt=no ;;
968 -docdir | --docdir | --docdi | --doc | --do)
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 -enable-* | --enable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error "invalid feature name: $ac_useropt"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
992 eval enable_$ac_useropt=\$ac_optarg ;;
994 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996 | --exec | --exe | --ex)
997 ac_prev=exec_prefix ;;
998 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000 | --exec=* | --exe=* | --ex=*)
1001 exec_prefix=$ac_optarg ;;
1003 -gas | --gas | --ga | --g)
1004 # Obsolete; use --with-gas.
1007 -help | --help | --hel | --he | -h)
1008 ac_init_help=long ;;
1009 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010 ac_init_help=recursive ;;
1011 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012 ac_init_help=short ;;
1014 -host | --host | --hos | --ho)
1015 ac_prev=host_alias ;;
1016 -host=* | --host=* | --hos=* | --ho=*)
1017 host_alias=$ac_optarg ;;
1019 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 htmldir=$ac_optarg ;;
1025 -includedir | --includedir | --includedi | --included | --include \
1026 | --includ | --inclu | --incl | --inc)
1027 ac_prev=includedir ;;
1028 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029 | --includ=* | --inclu=* | --incl=* | --inc=*)
1030 includedir=$ac_optarg ;;
1032 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035 infodir=$ac_optarg ;;
1037 -libdir | --libdir | --libdi | --libd)
1039 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040 libdir=$ac_optarg ;;
1042 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043 | --libexe | --libex | --libe)
1044 ac_prev=libexecdir ;;
1045 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046 | --libexe=* | --libex=* | --libe=*)
1047 libexecdir=$ac_optarg ;;
1049 -localedir | --localedir | --localedi | --localed | --locale)
1050 ac_prev=localedir ;;
1051 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052 localedir=$ac_optarg ;;
1054 -localstatedir | --localstatedir | --localstatedi | --localstated \
1055 | --localstate | --localstat | --localsta | --localst | --locals)
1056 ac_prev=localstatedir ;;
1057 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059 localstatedir=$ac_optarg ;;
1061 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064 mandir=$ac_optarg ;;
1066 -nfp | --nfp | --nf)
1067 # Obsolete; use --without-fp.
1070 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071 | --no-cr | --no-c | -n)
1074 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080 | --oldin | --oldi | --old | --ol | --o)
1081 ac_prev=oldincludedir ;;
1082 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085 oldincludedir=$ac_optarg ;;
1087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090 prefix=$ac_optarg ;;
1092 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093 | --program-pre | --program-pr | --program-p)
1094 ac_prev=program_prefix ;;
1095 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097 program_prefix=$ac_optarg ;;
1099 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100 | --program-suf | --program-su | --program-s)
1101 ac_prev=program_suffix ;;
1102 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104 program_suffix=$ac_optarg ;;
1106 -program-transform-name | --program-transform-name \
1107 | --program-transform-nam | --program-transform-na \
1108 | --program-transform-n | --program-transform- \
1109 | --program-transform | --program-transfor \
1110 | --program-transfo | --program-transf \
1111 | --program-trans | --program-tran \
1112 | --progr-tra | --program-tr | --program-t)
1113 ac_prev=program_transform_name ;;
1114 -program-transform-name=* | --program-transform-name=* \
1115 | --program-transform-nam=* | --program-transform-na=* \
1116 | --program-transform-n=* | --program-transform-=* \
1117 | --program-transform=* | --program-transfor=* \
1118 | --program-transfo=* | --program-transf=* \
1119 | --program-trans=* | --program-tran=* \
1120 | --progr-tra=* | --program-tr=* | --program-t=*)
1121 program_transform_name=$ac_optarg ;;
1123 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126 pdfdir=$ac_optarg ;;
1128 -psdir | --psdir | --psdi | --psd | --ps)
1130 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 sbindir=$ac_optarg ;;
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 sharedstatedir=$ac_optarg ;;
1154 -site | --site | --sit)
1156 -site=* | --site=* | --sit=*)
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1196 eval with_$ac_useropt=\$ac_optarg ;;
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1212 eval with_$ac_useropt=no ;;
1215 # Obsolete; use --with-x.
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1232 -*) as_fn_error "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information."
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1247 # FIXME: should be removed in autoconf 3.0.
1248 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error "missing argument to $ac_option"
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1265 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1283 # Be sure to have absolute directory names.
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1296 target=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312 test "$silent" = yes && exec 6>/dev/null
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 as_fn_error "working directory cannot be determined"
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 as_fn_error "pwd does not report name of working directory"
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1355 ac_srcdir_defaulted=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1389 \`configure' configures this package to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452 --x-includes=DIR X include files are in DIR
1453 --x-libraries=DIR X library files are in DIR
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1462 if test -n "$ac_init_help"; then
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-maintainer-mode enable make rules and dependencies not useful
1471 (and sometimes confusing) to the casual installer
1472 --enable-plugins Enable support for plugins (defaults no)
1473 --disable-largefile omit support for large files
1474 --enable-targets=TARGETS
1475 alternative target configurations
1476 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1477 --disable-gdbcli disable command-line interface (CLI)
1478 --disable-gdbmi disable machine-interface (MI)
1479 --enable-tui enable full-screen terminal user interface (TUI)
1480 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1481 --enable-profiling enable profiling of GDB
1482 --disable-rpath do not hardcode runtime library paths
1483 --enable-libmcheck Try linking with -lmcheck if available
1484 --enable-werror treat compile warnings as errors
1485 --enable-build-warnings enable build-time compiler warnings if gcc is used
1486 --enable-gdb-build-warnings
1487 enable GDB specific build-time compiler warnings if
1489 --enable-sim link gdb with simulator
1490 --enable-multi-ice build the multi-ice-gdb-server
1491 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-separate-debug-dir=PATH
1498 look for global separate debug info in this path
1500 --with-gdb-datadir=PATH look for global separate data files in this path
1502 --with-relocated-sources=PATH
1503 automatically relocate this path for source files
1504 --with-auto-load-dir=PATH
1505 directories from which to load auto-loaded scripts
1506 [$debugdir:$datadir/auto-load]
1507 --with-auto-load-safe-path=PATH
1508 directories safe to hold auto-loaded files
1509 [--with-auto-load-dir]
1510 --without-auto-load-safe-path
1511 do not restrict auto-loaded files locations
1512 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1513 --with-curses use the curses library instead of the termcap
1515 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1516 --with-bugurl=URL Direct users to URL to report a bug
1517 --with-zlib include zlib support (auto/yes/no) default=auto
1518 --with-libiconv-prefix=DIR
1519 search for libiconv in DIR/include and DIR/lib
1520 --with-iconv-bin=PATH specify where to find the iconv program
1521 --with-system-readline use installed readline library
1522 --with-jit-reader-dir=PATH
1523 directory to load the JIT readers from
1524 --with-expat include expat support (auto/yes/no)
1525 --with-gnu-ld assume the C compiler uses GNU ld default=no
1526 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1527 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1528 --with-python[=PYTHON] include python support
1529 (auto/yes/no/<python-program>)
1530 --without-included-regex
1531 don't use included regex; this is the default on
1532 systems with version 2 of the GNU C library (use
1533 with caution on other system)
1534 --with-sysroot[=DIR] search for usr/lib et al within DIR
1535 --with-system-gdbinit=PATH
1536 automatically load a system-wide gdbinit file
1537 --with-lzma support lzma compression (auto/yes/no)
1538 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1539 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1540 --with-tcl directory containing tcl configuration (tclConfig.sh)
1541 --with-tk directory containing tk configuration (tkConfig.sh)
1542 --with-x use the X Window System
1543 --with-babeltrace include babeltrace support (auto/yes/no)
1544 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1545 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1556 MAKEINFO Parent configure detects if it is of sufficient version.
1558 Parameters for MAKEINFO.
1559 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1560 the first program found out of: `bison -y', `byacc', `yacc'.
1561 YFLAGS The list of arguments that will be passed by default to $YACC.
1562 This script will default YFLAGS to the empty string to avoid a
1563 default value of `-d' given by some make applications.
1564 XMKMF Path to xmkmf, Makefile generator for X Window System
1566 Use these variables to override the choices made by `configure' or to help
1567 it to find libraries and programs with nonstandard names/locations.
1569 Report bugs to the package provider.
1574 if test "$ac_init_help" = "recursive"; then
1575 # If there are subdirs, report their specific --help.
1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577 test -d "$ac_dir" ||
1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1599 .) # We are building in place.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1623 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1633 generated by GNU Autoconf 2.64
1635 Copyright (C) 2009 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1642 ## ------------------------ ##
1643 ## Autoconf initialization. ##
1644 ## ------------------------ ##
1646 # ac_fn_c_try_compile LINENO
1647 # --------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_compile ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext
1653 if { { ac_try="$ac_compile"
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_compile") 2>conftest.err
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest.$ac_objext; then :
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682 } # ac_fn_c_try_compile
1684 # ac_fn_c_try_cpp LINENO
1685 # ----------------------
1686 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } >/dev/null && {
1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1722 # -------------------------------------------------------
1723 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1724 # the include files in INCLUDES and setting the cache variable VAR
1726 ac_fn_c_check_header_mongrel ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733 $as_echo_n "(cached) " >&6
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1739 # Is the header compilable?
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1741 $as_echo_n "checking $2 usability... " >&6; }
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748 ac_header_compiler=yes
1750 ac_header_compiler=no
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1754 $as_echo "$ac_header_compiler" >&6; }
1756 # Is the header present?
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1758 $as_echo_n "checking $2 presence... " >&6; }
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1763 if ac_fn_c_try_cpp "$LINENO"; then :
1764 ac_header_preproc=yes
1766 ac_header_preproc=no
1768 rm -f conftest.err conftest.$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1770 $as_echo "$ac_header_preproc" >&6; }
1772 # So? What about this header?
1773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1776 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1778 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1782 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1784 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1786 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1788 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1790 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1796 $as_echo_n "(cached) " >&6
1798 eval "$3=\$ac_header_compiler"
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 } # ac_fn_c_check_header_mongrel
1808 # ac_fn_c_try_run LINENO
1809 # ----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1811 # that executables *can* be run.
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_link"
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>&5
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1826 { { case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_try") 2>&5
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; }; }; then :
1838 $as_echo "$as_me: program exited with status $ac_status" >&5
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1842 ac_retval=$ac_status
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists and can be compiled using the include files in
1853 # INCLUDES, setting the cache variable VAR accordingly.
1854 ac_fn_c_check_header_compile ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860 $as_echo_n "(cached) " >&6
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1867 if ac_fn_c_try_compile "$LINENO"; then :
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 } # ac_fn_c_check_header_compile
1881 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1882 # --------------------------------------------
1883 # Tries to find the compile-time value of EXPR in a program that includes
1884 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1886 ac_fn_c_compute_int ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if test "$cross_compiling" = yes; then
1890 # Depending upon the size, compute the lo and hi bounds.
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1897 static int test_array [1 - 2 * !(($2) >= 0)];
1904 if ac_fn_c_try_compile "$LINENO"; then :
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1913 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 ac_hi=$ac_mid; break
1923 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1924 if test $ac_lo -le $ac_mid; then
1928 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1939 static int test_array [1 - 2 * !(($2) < 0)];
1946 if ac_fn_c_try_compile "$LINENO"; then :
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1955 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_lo=$ac_mid; break
1965 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1966 if test $ac_mid -le $ac_hi; then
1970 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 # Binary search between lo and hi bounds.
1981 while test "x$ac_lo" != "x$ac_hi"; do
1982 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1989 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1996 if ac_fn_c_try_compile "$LINENO"; then :
1999 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2011 static long int longval () { return $2; }
2012 static unsigned long int ulongval () { return $2; }
2019 FILE *f = fopen ("conftest.val", "w");
2024 long int i = longval ();
2027 fprintf (f, "%ld", i);
2031 unsigned long int i = ulongval ();
2034 fprintf (f, "%lu", i);
2036 /* Do not output a trailing newline, as this causes \r\n confusion
2037 on some platforms. */
2038 return ferror (f) || fclose (f) != 0;
2044 if ac_fn_c_try_run "$LINENO"; then :
2045 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2050 conftest.$ac_objext conftest.beam conftest.$ac_ext
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 } # ac_fn_c_compute_int
2059 # ac_fn_c_try_link LINENO
2060 # -----------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded.
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 rm -f conftest.$ac_objext conftest$ac_exeext
2066 if { { ac_try="$ac_link"
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_link") 2>conftest.err
2075 if test -s conftest.err; then
2076 grep -v '^ *+' conftest.err >conftest.er1
2077 cat conftest.er1 >&5
2078 mv -f conftest.er1 conftest.err
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; } && {
2082 test -z "$ac_c_werror_flag" ||
2083 test ! -s conftest.err
2084 } && test -s conftest$ac_exeext && {
2085 test "$cross_compiling" = yes ||
2086 $as_test_x conftest$ac_exeext
2090 $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2095 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2096 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2097 # interfere with the next link command; also delete a directory that is
2098 # left behind by Apple's compiler. We do this before executing the actions.
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103 } # ac_fn_c_try_link
2105 # ac_fn_c_check_func LINENO FUNC VAR
2106 # ----------------------------------
2107 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2108 ac_fn_c_check_func ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2114 $as_echo_n "(cached) " >&6
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2118 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2120 #define $2 innocuous_$2
2122 /* System header to define __stub macros and hopefully few prototypes,
2123 which can conflict with char $2 (); below.
2124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2125 <limits.h> exists even on freestanding compilers. */
2128 # include <limits.h>
2130 # include <assert.h>
2135 /* Override any GCC internal prototype to avoid an error.
2136 Use char because int might match the return type of a GCC
2137 builtin and then its argument prototype would still apply. */
2142 /* The GNU C library defines this for functions which it implements
2143 to always fail with ENOSYS. Some functions are actually named
2144 something starting with __ and the normal name is an alias. */
2145 #if defined __stub_$2 || defined __stub___$2
2157 if ac_fn_c_try_link "$LINENO"; then :
2162 rm -f core conftest.err conftest.$ac_objext \
2163 conftest$ac_exeext conftest.$ac_ext
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2170 } # ac_fn_c_check_func
2172 # ac_fn_c_check_decl LINENO SYMBOL VAR
2173 # ------------------------------------
2174 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2175 ac_fn_c_check_decl ()
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 as_decl_name=`echo $2|sed 's/ *(.*//'`
2179 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2181 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2182 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2183 $as_echo_n "(cached) " >&6
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2191 #ifndef $as_decl_name
2193 (void) $as_decl_use;
2195 (void) $as_decl_name;
2203 if ac_fn_c_try_compile "$LINENO"; then :
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2215 } # ac_fn_c_check_decl
2217 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2218 # ----------------------------------------------------
2219 # Tries to find if the field MEMBER exists in type AGGR, after including
2220 # INCLUDES, setting cache variable VAR accordingly.
2221 ac_fn_c_check_member ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2225 $as_echo_n "checking for $2.$3... " >&6; }
2226 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2227 $as_echo_n "(cached) " >&6
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2242 if ac_fn_c_try_compile "$LINENO"; then :
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2252 if (sizeof ac_aggr.$3)
2258 if ac_fn_c_try_compile "$LINENO"; then :
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2272 } # ac_fn_c_check_member
2274 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2275 # -------------------------------------------
2276 # Tests whether TYPE exists after having included INCLUDES, setting cache
2277 # variable VAR accordingly.
2278 ac_fn_c_check_type ()
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282 $as_echo_n "checking for $2... " >&6; }
2283 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2284 $as_echo_n "(cached) " >&6
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2312 if ac_fn_c_try_compile "$LINENO"; then :
2317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2323 $as_echo "$ac_res" >&6; }
2324 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2326 } # ac_fn_c_check_type
2327 cat >config.log <<_ACEOF
2328 This file contains any messages produced by compilers while
2329 running configure, to aid debugging if configure makes a mistake.
2331 It was created by $as_me, which was
2332 generated by GNU Autoconf 2.64. Invocation command line was
2344 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2345 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2346 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2347 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2348 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2350 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2351 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2353 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2354 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2355 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2356 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2357 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2358 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2359 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 $as_echo "PATH: $as_dir"
2384 # Keep a trace of the command line.
2385 # Strip out --no-create and --no-recursion so they do not pile up.
2386 # Strip out --silent because we don't want to record it for future runs.
2387 # Also quote any args containing shell meta-characters.
2388 # Make two passes to allow for proper duplicate-argument suppression.
2392 ac_must_keep_next=false
2398 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2400 | -silent | --silent | --silen | --sile | --sil)
2403 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2406 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2408 as_fn_append ac_configure_args1 " '$ac_arg'"
2409 if test $ac_must_keep_next = true; then
2410 ac_must_keep_next=false # Got value, back to normal.
2413 *=* | --config-cache | -C | -disable-* | --disable-* \
2414 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2415 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2416 | -with-* | --with-* | -without-* | --without-* | --x)
2417 case "$ac_configure_args0 " in
2418 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2421 -* ) ac_must_keep_next=true ;;
2424 as_fn_append ac_configure_args " '$ac_arg'"
2429 { ac_configure_args0=; unset ac_configure_args0;}
2430 { ac_configure_args1=; unset ac_configure_args1;}
2432 # When interrupted or exit'd, cleanup temporary files, and complete
2433 # config.log. We remove comments because anyway the quotes in there
2434 # would cause problems or look ugly.
2435 # WARNING: Use '\'' to represent an apostrophe within the trap.
2436 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2437 trap 'exit_status=$?
2438 # Save into config.log some information that might help in debugging.
2443 ## ---------------- ##
2444 ## Cache variables. ##
2445 ## ---------------- ##
2448 # The following way of writing the cache mishandles newlines in values,
2450 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2451 eval ac_val=\$$ac_var
2455 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2456 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2459 _ | IFS | as_nl) ;; #(
2460 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2461 *) { eval $ac_var=; unset $ac_var;} ;;
2466 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2467 *${as_nl}ac_space=\ *)
2469 "s/'\''/'\''\\\\'\'''\''/g;
2470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2481 ## ----------------- ##
2482 ## Output variables. ##
2483 ## ----------------- ##
2486 for ac_var in $ac_subst_vars
2488 eval ac_val=\$$ac_var
2490 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2492 $as_echo "$ac_var='\''$ac_val'\''"
2496 if test -n "$ac_subst_files"; then
2498 ## ------------------- ##
2499 ## File substitutions. ##
2500 ## ------------------- ##
2503 for ac_var in $ac_subst_files
2505 eval ac_val=\$$ac_var
2507 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2509 $as_echo "$ac_var='\''$ac_val'\''"
2514 if test -s confdefs.h; then
2524 test "$ac_signal" != 0 &&
2525 $as_echo "$as_me: caught signal $ac_signal"
2526 $as_echo "$as_me: exit $exit_status"
2528 rm -f core *.core core.conftest.* &&
2529 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2532 for ac_signal in 1 2 13 15; do
2533 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2537 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2538 rm -f -r conftest* confdefs.h
2540 $as_echo "/* confdefs.h */" > confdefs.h
2542 # Predefined preprocessor variables.
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_NAME "$PACKAGE_NAME"
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_STRING "$PACKAGE_STRING"
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_URL "$PACKAGE_URL"
2569 # Let the site file select an alternate cache file if it wants to.
2570 # Prefer an explicitly selected file to automatically selected ones.
2573 if test -n "$CONFIG_SITE"; then
2574 ac_site_file1=$CONFIG_SITE
2575 elif test "x$prefix" != xNONE; then
2576 ac_site_file1=$prefix/share/config.site
2577 ac_site_file2=$prefix/etc/config.site
2579 ac_site_file1=$ac_default_prefix/share/config.site
2580 ac_site_file2=$ac_default_prefix/etc/config.site
2582 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2584 test "x$ac_site_file" = xNONE && continue
2585 if test -r "$ac_site_file"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2587 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2588 sed 's/^/| /' "$ac_site_file" >&5
2593 if test -r "$cache_file"; then
2594 # Some versions of bash will fail to source /dev/null (special
2595 # files actually), so we avoid doing that.
2596 if test -f "$cache_file"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2598 $as_echo "$as_me: loading cache $cache_file" >&6;}
2600 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2601 *) . "./$cache_file";;
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2606 $as_echo "$as_me: creating cache $cache_file" >&6;}
2610 # Check that the precious variables saved in the cache have kept the same
2612 ac_cache_corrupted=false
2613 for ac_var in $ac_precious_vars; do
2614 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2615 eval ac_new_set=\$ac_env_${ac_var}_set
2616 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2617 eval ac_new_val=\$ac_env_${ac_var}_value
2618 case $ac_old_set,$ac_new_set in
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2621 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2622 ac_cache_corrupted=: ;;
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2625 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2626 ac_cache_corrupted=: ;;
2629 if test "x$ac_old_val" != "x$ac_new_val"; then
2630 # differences in whitespace do not lead to failure.
2631 ac_old_val_w=`echo x $ac_old_val`
2632 ac_new_val_w=`echo x $ac_new_val`
2633 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2635 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2636 ac_cache_corrupted=:
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2639 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2640 eval $ac_var=\$ac_old_val
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2643 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2645 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2648 # Pass precious variables to config.status.
2649 if test "$ac_new_set" = set; then
2651 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2652 *) ac_arg=$ac_var=$ac_new_val ;;
2654 case " $ac_configure_args " in
2655 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2656 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2660 if $ac_cache_corrupted; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2664 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2665 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2667 ## -------------------- ##
2668 ## Main body of script. ##
2669 ## -------------------- ##
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681 ac_config_headers="$ac_config_headers config.h:config.in"
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2685 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2686 # Check whether --enable-maintainer-mode was given.
2687 if test "${enable_maintainer_mode+set}" = set; then :
2688 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2690 USE_MAINTAINER_MODE=no
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2694 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2695 if test $USE_MAINTAINER_MODE = yes; then
2696 MAINTAINER_MODE_TRUE=
2697 MAINTAINER_MODE_FALSE='#'
2699 MAINTAINER_MODE_TRUE='#'
2700 MAINTAINER_MODE_FALSE=
2703 MAINT=$MAINTAINER_MODE_TRUE
2707 # Set the 'development' global.
2708 . $srcdir/development.sh
2711 ac_cpp='$CPP $CPPFLAGS'
2712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if test "${ac_cv_prog_CC+set}" = set; then :
2721 $as_echo_n "(cached) " >&6
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 if test -n "$CC"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2746 $as_echo "$CC" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2754 if test -z "$ac_cv_prog_CC"; then
2756 # Extract the first word of "gcc", so it can be a program name with args.
2757 set dummy gcc; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2761 $as_echo_n "(cached) " >&6
2763 if test -n "$ac_ct_CC"; then
2764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_ac_ct_CC="gcc"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784 if test -n "$ac_ct_CC"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2786 $as_echo "$ac_ct_CC" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2792 if test "x$ac_ct_CC" = x; then
2795 case $cross_compiling:$ac_tool_warned in
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799 ac_tool_warned=yes ;;
2807 if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}cc; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if test "${ac_cv_prog_CC+set}" = set; then :
2814 $as_echo_n "(cached) " >&6
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CC="${ac_tool_prefix}cc"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CC"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2839 $as_echo "$CC" >&6; }
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2848 if test -z "$CC"; then
2849 # Extract the first word of "cc", so it can be a program name with args.
2850 set dummy cc; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if test "${ac_cv_prog_CC+set}" = set; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2868 ac_prog_rejected=yes
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 if test $ac_prog_rejected = yes; then
2880 # We found a bogon in the path, so make sure we never use it.
2881 set dummy $ac_cv_prog_CC
2883 if test $# != 0; then
2884 # We chose a different compiler from the bogus one.
2885 # However, it has the same basename, so the bogon will be chosen
2886 # first if we set CC to just the basename; use the full file name.
2888 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2894 if test -n "$CC"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2896 $as_echo "$CC" >&6; }
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899 $as_echo "no" >&6; }
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 for ac_prog in cl.exe
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_CC+set}" = set; then :
2913 $as_echo_n "(cached) " >&6
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 if test -n "$CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938 $as_echo "$CC" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2945 test -n "$CC" && break
2948 if test -z "$CC"; then
2950 for ac_prog in cl.exe
2952 # Extract the first word of "$ac_prog", so it can be a program name with args.
2953 set dummy $ac_prog; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2957 $as_echo_n "(cached) " >&6
2959 if test -n "$ac_ct_CC"; then
2960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_ac_ct_CC="$ac_prog"
2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2982 $as_echo "$ac_ct_CC" >&6; }
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2989 test -n "$ac_ct_CC" && break
2992 if test "x$ac_ct_CC" = x; then
2995 case $cross_compiling:$ac_tool_warned in
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999 ac_tool_warned=yes ;;
3008 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010 as_fn_error "no acceptable C compiler found in \$PATH
3011 See \`config.log' for more details." "$LINENO" 5; }
3013 # Provide some information about the compiler.
3014 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3017 for ac_option in --version -v -V -qversion; do
3018 { { ac_try="$ac_compiler $ac_option >&5"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3027 if test -s conftest.err; then
3029 ... rest of stderr output deleted ...
3030 10q' conftest.err >conftest.er1
3031 cat conftest.er1 >&5
3032 rm -f conftest.er1 conftest.err
3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035 test $ac_status = 0; }
3038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039 /* end confdefs.h. */
3049 ac_clean_files_save=$ac_clean_files
3050 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3051 # Try to create an executable without -o first, disregard a.out.
3052 # It will help us diagnose broken compilers, and finding out an intuition
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3055 $as_echo_n "checking for C compiler default output file name... " >&6; }
3056 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3058 # The possible output files:
3059 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3062 for ac_file in $ac_files
3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3066 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3071 if { { ac_try="$ac_link_default"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_link_default") 2>&5
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }; then :
3082 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3083 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3084 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3085 # so that the user can short-circuit this test for compilers unknown to
3087 for ac_file in $ac_files ''
3089 test -f "$ac_file" || continue
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3094 # We found the default executable, but exeext='' is most
3098 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3100 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3102 # We set ac_cv_exeext here because the later test for it is not
3103 # safe: cross compilers may not add the suffix if given an `-o'
3104 # argument, so we may need to know it at that point already.
3105 # Even if this section looks crufty: it has the advantage of
3112 test "$ac_cv_exeext" = no && ac_cv_exeext=
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3118 $as_echo "$ac_file" >&6; }
3119 if test -z "$ac_file"; then :
3120 $as_echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 { as_fn_set_status 77
3126 as_fn_error "C compiler cannot create executables
3127 See \`config.log' for more details." "$LINENO" 5; }; }
3129 ac_exeext=$ac_cv_exeext
3131 # Check that the compiler produces executables we can run. If not, either
3132 # the compiler is broken, or we cross compile.
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3134 $as_echo_n "checking whether the C compiler works... " >&6; }
3135 # If not cross compiling, check that we can run a simple program.
3136 if test "$cross_compiling" != yes; then
3137 if { ac_try='./$ac_file'
3138 { { case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_try") 2>&5
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; }; then
3150 if test "$cross_compiling" = maybe; then
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error "cannot run C compiled programs.
3156 If you meant to cross compile, use \`--host'.
3157 See \`config.log' for more details." "$LINENO" 5; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3162 $as_echo "yes" >&6; }
3164 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3165 ac_clean_files=$ac_clean_files_save
3166 # Check that the compiler produces executables we can run. If not, either
3167 # the compiler is broken, or we cross compile.
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3169 $as_echo_n "checking whether we are cross compiling... " >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3171 $as_echo "$cross_compiling" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3174 $as_echo_n "checking for suffix of executables... " >&6; }
3175 if { { ac_try="$ac_link"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_link") 2>&5
3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }; then :
3186 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3187 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3188 # work properly (i.e., refer to `conftest.exe'), while it won't with
3190 for ac_file in conftest.exe conftest conftest.*; do
3191 test -f "$ac_file" || continue
3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3194 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error "cannot compute suffix of executables: cannot compile and link
3203 See \`config.log' for more details." "$LINENO" 5; }
3205 rm -f conftest$ac_cv_exeext
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3207 $as_echo "$ac_cv_exeext" >&6; }
3209 rm -f conftest.$ac_ext
3210 EXEEXT=$ac_cv_exeext
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3213 $as_echo_n "checking for suffix of object files... " >&6; }
3214 if test "${ac_cv_objext+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3228 rm -f conftest.o conftest.obj
3229 if { { ac_try="$ac_compile"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_compile") 2>&5
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }; then :
3240 for ac_file in conftest.o conftest.obj conftest.*; do
3241 test -f "$ac_file" || continue;
3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3244 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3249 $as_echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error "cannot compute suffix of object files: cannot compile
3255 See \`config.log' for more details." "$LINENO" 5; }
3257 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3260 $as_echo "$ac_cv_objext" >&6; }
3261 OBJEXT=$ac_cv_objext
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3264 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3265 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3282 if ac_fn_c_try_compile "$LINENO"; then :
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3292 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3293 if test $ac_compiler_gnu = yes; then
3298 ac_test_CFLAGS=${CFLAGS+set}
3299 ac_save_CFLAGS=$CFLAGS
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3301 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3302 if test "${ac_cv_prog_cc_g+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3305 ac_save_c_werror_flag=$ac_c_werror_flag
3306 ac_c_werror_flag=yes
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3320 if ac_fn_c_try_compile "$LINENO"; then :
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3335 if ac_fn_c_try_compile "$LINENO"; then :
3338 ac_c_werror_flag=$ac_save_c_werror_flag
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3351 if ac_fn_c_try_compile "$LINENO"; then :
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 ac_c_werror_flag=$ac_save_c_werror_flag
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3362 $as_echo "$ac_cv_prog_cc_g" >&6; }
3363 if test "$ac_test_CFLAGS" = set; then
3364 CFLAGS=$ac_save_CFLAGS
3365 elif test $ac_cv_prog_cc_g = yes; then
3366 if test "$GCC" = yes; then
3372 if test "$GCC" = yes; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3379 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3380 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3381 $as_echo_n "(cached) " >&6
3383 ac_cv_prog_cc_c89=no
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3389 #include <sys/types.h>
3390 #include <sys/stat.h>
3391 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3392 struct buf { int x; };
3393 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3394 static char *e (p, i)
3400 static char *f (char * (*g) (char **, int), char **p, ...)
3405 s = g (p, va_arg (v,int));
3410 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3411 function prototypes and stuff, but not '\xHH' hex character constants.
3412 These don't provoke an error unfortunately, instead are silently treated
3413 as 'x'. The following induces an error, until -std is added to get
3414 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3415 array size at least. It's necessary to write '\x00'==0 to get something
3416 that's true only with -std. */
3417 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3419 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3420 inside strings and character constants. */
3422 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3424 int test (int i, double x);
3425 struct s1 {int (*f) (int a);};
3426 struct s2 {int (*f) (double a);};
3427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3438 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3439 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441 CC="$ac_save_CC $ac_arg"
3442 if ac_fn_c_try_compile "$LINENO"; then :
3443 ac_cv_prog_cc_c89=$ac_arg
3445 rm -f core conftest.err conftest.$ac_objext
3446 test "x$ac_cv_prog_cc_c89" != "xno" && break
3448 rm -f conftest.$ac_ext
3453 case "x$ac_cv_prog_cc_c89" in
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3456 $as_echo "none needed" >&6; } ;;
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3459 $as_echo "unsupported" >&6; } ;;
3461 CC="$CC $ac_cv_prog_cc_c89"
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3463 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3465 if test "x$ac_cv_prog_cc_c89" != xno; then :
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477 ac_cpp='$CPP $CPPFLAGS'
3478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3482 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3483 # On Suns, sometimes $CPP names a directory.
3484 if test -n "$CPP" && test -d "$CPP"; then
3487 if test -z "$CPP"; then
3488 if test "${ac_cv_prog_CPP+set}" = set; then :
3489 $as_echo_n "(cached) " >&6
3491 # Double quotes because CPP needs to be expanded
3492 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3495 for ac_c_preproc_warn_flag in '' yes
3497 # Use a header file that comes with gcc, so configuring glibc
3498 # with a fresh cross-compiler works.
3499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3500 # <limits.h> exists even on freestanding compilers.
3501 # On the NeXT, cc -E runs the code through the compiler's parser,
3502 # not just through cpp. "Syntax error" is here to catch this case.
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3506 # include <limits.h>
3508 # include <assert.h>
3512 if ac_fn_c_try_cpp "$LINENO"; then :
3515 # Broken: fails on valid input.
3518 rm -f conftest.err conftest.$ac_ext
3520 # OK, works on sane cases. Now check whether nonexistent headers
3521 # can be detected and how.
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3524 #include <ac_nonexistent.h>
3526 if ac_fn_c_try_cpp "$LINENO"; then :
3527 # Broken: success on invalid input.
3530 # Passes both tests.
3534 rm -f conftest.err conftest.$ac_ext
3537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3538 rm -f conftest.err conftest.$ac_ext
3539 if $ac_preproc_ok; then :
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3552 $as_echo "$CPP" >&6; }
3554 for ac_c_preproc_warn_flag in '' yes
3556 # Use a header file that comes with gcc, so configuring glibc
3557 # with a fresh cross-compiler works.
3558 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3559 # <limits.h> exists even on freestanding compilers.
3560 # On the NeXT, cc -E runs the code through the compiler's parser,
3561 # not just through cpp. "Syntax error" is here to catch this case.
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3565 # include <limits.h>
3567 # include <assert.h>
3571 if ac_fn_c_try_cpp "$LINENO"; then :
3574 # Broken: fails on valid input.
3577 rm -f conftest.err conftest.$ac_ext
3579 # OK, works on sane cases. Now check whether nonexistent headers
3580 # can be detected and how.
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3583 #include <ac_nonexistent.h>
3585 if ac_fn_c_try_cpp "$LINENO"; then :
3586 # Broken: success on invalid input.
3589 # Passes both tests.
3593 rm -f conftest.err conftest.$ac_ext
3596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3597 rm -f conftest.err conftest.$ac_ext
3598 if $ac_preproc_ok; then :
3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3604 See \`config.log' for more details." "$LINENO" 5; }
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3615 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3616 if test "${ac_cv_path_GREP+set}" = set; then :
3617 $as_echo_n "(cached) " >&6
3619 if test -z "$GREP"; then
3620 ac_path_GREP_found=false
3621 # Loop through the user's path and test for each of PROGNAME-LIST
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3626 test -z "$as_dir" && as_dir=.
3627 for ac_prog in grep ggrep; do
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3630 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3631 # Check for GNU ac_path_GREP and select it if it is found.
3632 # Check for GNU $ac_path_GREP
3633 case `"$ac_path_GREP" --version 2>&1` in
3635 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3638 $as_echo_n 0123456789 >"conftest.in"
3641 cat "conftest.in" "conftest.in" >"conftest.tmp"
3642 mv "conftest.tmp" "conftest.in"
3643 cp "conftest.in" "conftest.nl"
3644 $as_echo 'GREP' >> "conftest.nl"
3645 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3646 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3647 as_fn_arith $ac_count + 1 && ac_count=$as_val
3648 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3649 # Best one so far, save it but keep looking for a better one
3650 ac_cv_path_GREP="$ac_path_GREP"
3651 ac_path_GREP_max=$ac_count
3653 # 10*(2^10) chars as input seems more than enough
3654 test $ac_count -gt 10 && break
3656 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3659 $ac_path_GREP_found && break 3
3664 if test -z "$ac_cv_path_GREP"; then
3665 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3668 ac_cv_path_GREP=$GREP
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3673 $as_echo "$ac_cv_path_GREP" >&6; }
3674 GREP="$ac_cv_path_GREP"
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3678 $as_echo_n "checking for egrep... " >&6; }
3679 if test "${ac_cv_path_EGREP+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3682 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3683 then ac_cv_path_EGREP="$GREP -E"
3685 if test -z "$EGREP"; then
3686 ac_path_EGREP_found=false
3687 # Loop through the user's path and test for each of PROGNAME-LIST
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3692 test -z "$as_dir" && as_dir=.
3693 for ac_prog in egrep; do
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3696 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3697 # Check for GNU ac_path_EGREP and select it if it is found.
3698 # Check for GNU $ac_path_EGREP
3699 case `"$ac_path_EGREP" --version 2>&1` in
3701 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3704 $as_echo_n 0123456789 >"conftest.in"
3707 cat "conftest.in" "conftest.in" >"conftest.tmp"
3708 mv "conftest.tmp" "conftest.in"
3709 cp "conftest.in" "conftest.nl"
3710 $as_echo 'EGREP' >> "conftest.nl"
3711 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3712 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3713 as_fn_arith $ac_count + 1 && ac_count=$as_val
3714 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3715 # Best one so far, save it but keep looking for a better one
3716 ac_cv_path_EGREP="$ac_path_EGREP"
3717 ac_path_EGREP_max=$ac_count
3719 # 10*(2^10) chars as input seems more than enough
3720 test $ac_count -gt 10 && break
3722 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3725 $ac_path_EGREP_found && break 3
3730 if test -z "$ac_cv_path_EGREP"; then
3731 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3734 ac_cv_path_EGREP=$EGREP
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3740 $as_echo "$ac_cv_path_EGREP" >&6; }
3741 EGREP="$ac_cv_path_EGREP"
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3745 $as_echo_n "checking for ANSI C header files... " >&6; }
3746 if test "${ac_cv_header_stdc+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3764 if ac_fn_c_try_compile "$LINENO"; then :
3765 ac_cv_header_stdc=yes
3767 ac_cv_header_stdc=no
3769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 if test $ac_cv_header_stdc = yes; then
3772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3779 $EGREP "memchr" >/dev/null 2>&1; then :
3782 ac_cv_header_stdc=no
3788 if test $ac_cv_header_stdc = yes; then
3789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3796 $EGREP "free" >/dev/null 2>&1; then :
3799 ac_cv_header_stdc=no
3805 if test $ac_cv_header_stdc = yes; then
3806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3807 if test "$cross_compiling" = yes; then :
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3814 #if ((' ' & 0x0FF) == 0x020)
3815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3818 # define ISLOWER(c) \
3819 (('a' <= (c) && (c) <= 'i') \
3820 || ('j' <= (c) && (c) <= 'r') \
3821 || ('s' <= (c) && (c) <= 'z'))
3822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3830 for (i = 0; i < 256; i++)
3831 if (XOR (islower (i), ISLOWER (i))
3832 || toupper (i) != TOUPPER (i))
3837 if ac_fn_c_try_run "$LINENO"; then :
3840 ac_cv_header_stdc=no
3842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3843 conftest.$ac_objext conftest.beam conftest.$ac_ext
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3849 $as_echo "$ac_cv_header_stdc" >&6; }
3850 if test $ac_cv_header_stdc = yes; then
3852 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3856 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3857 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3858 inttypes.h stdint.h unistd.h
3860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3861 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3863 eval as_val=\$$as_ac_Header
3864 if test "x$as_val" = x""yes; then :
3865 cat >>confdefs.h <<_ACEOF
3866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3875 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3876 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3883 if test "$MINIX" = yes; then
3885 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3888 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3891 $as_echo "#define _MINIX 1" >>confdefs.h
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3897 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3898 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3899 $as_echo_n "(cached) " >&6
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3904 # define __EXTENSIONS__ 1
3905 $ac_includes_default
3914 if ac_fn_c_try_compile "$LINENO"; then :
3915 ac_cv_safe_to_define___extensions__=yes
3917 ac_cv_safe_to_define___extensions__=no
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3922 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3923 test $ac_cv_safe_to_define___extensions__ = yes &&
3924 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3926 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3928 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3930 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3932 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3936 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3937 for ac_t in install-sh install.sh shtool; do
3938 if test -f "$ac_dir/$ac_t"; then
3940 ac_install_sh="$ac_aux_dir/$ac_t -c"
3945 if test -z "$ac_aux_dir"; then
3946 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3949 # These three variables are undocumented and unsupported,
3950 # and are intended to be withdrawn in a future Autoconf release.
3951 # They can cause serious problems if a builder's source tree is in a directory
3952 # whose full name contains unusual characters.
3953 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3954 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3955 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3958 # Make sure we can run config.sub.
3959 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3960 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3963 $as_echo_n "checking build system type... " >&6; }
3964 if test "${ac_cv_build+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
3967 ac_build_alias=$build_alias
3968 test "x$ac_build_alias" = x &&
3969 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3970 test "x$ac_build_alias" = x &&
3971 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3972 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3973 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3977 $as_echo "$ac_cv_build" >&6; }
3978 case $ac_cv_build in
3980 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3983 ac_save_IFS=$IFS; IFS='-'
3989 # Remember, the first character of IFS is used to create $*,
3990 # except with old shells:
3993 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3997 $as_echo_n "checking host system type... " >&6; }
3998 if test "${ac_cv_host+set}" = set; then :
3999 $as_echo_n "(cached) " >&6
4001 if test "x$host_alias" = x; then
4002 ac_cv_host=$ac_cv_build
4004 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4005 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4010 $as_echo "$ac_cv_host" >&6; }
4013 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4016 ac_save_IFS=$IFS; IFS='-'
4022 # Remember, the first character of IFS is used to create $*,
4023 # except with old shells:
4026 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4030 $as_echo_n "checking target system type... " >&6; }
4031 if test "${ac_cv_target+set}" = set; then :
4032 $as_echo_n "(cached) " >&6
4034 if test "x$target_alias" = x; then
4035 ac_cv_target=$ac_cv_host
4037 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4038 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4043 $as_echo "$ac_cv_target" >&6; }
4044 case $ac_cv_target in
4046 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4048 target=$ac_cv_target
4049 ac_save_IFS=$IFS; IFS='-'
4055 # Remember, the first character of IFS is used to create $*,
4056 # except with old shells:
4059 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4062 # The aliases save the names the user supplied, while $host etc.
4063 # will get canonicalized.
4064 test -n "$target_alias" &&
4065 test "$program_prefix$program_suffix$program_transform_name" = \
4067 program_prefix=${target_alias}-
4069 # The tests for host and target for $enable_largefile require
4074 # As the $enable_largefile decision depends on --enable-plugins we must set it
4075 # even in directories otherwise not depending on the $plugins option.
4078 # Check whether --enable-plugins was given.
4079 if test "${enable_plugins+set}" = set; then :
4080 enableval=$enable_plugins; case "${enableval}" in
4081 yes | "") plugins=yes ;;
4092 sparc-*-solaris*|i[3-7]86-*-solaris*)
4093 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4094 # are mutually exclusive; and without procfs support, the bfd/ elf module
4095 # cannot provide certain routines such as elfcore_write_prpsinfo
4096 # or elfcore_write_prstatus. So unless the user explicitly requested
4097 # large-file support through the --enable-largefile switch, disable
4098 # large-file support in favor of procfs support.
4099 test "${target}" = "${host}" -a "x$plugins" = xno \
4100 && : ${enable_largefile="no"}
4104 # Check whether --enable-largefile was given.
4105 if test "${enable_largefile+set}" = set; then :
4106 enableval=$enable_largefile;
4109 if test "$enable_largefile" != no; then
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4112 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4113 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4116 ac_cv_sys_largefile_CC=no
4117 if test "$GCC" != yes; then
4120 # IRIX 6.2 and later do not support large files by default,
4121 # so use the C compiler's -n32 option if that helps.
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #include <sys/types.h>
4125 /* Check that off_t can represent 2**63 - 1 correctly.
4126 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4127 since some C++ compilers masquerading as C compilers
4128 incorrectly reject 9223372036854775807. */
4129 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4131 && LARGE_OFF_T % 2147483647 == 1)
4141 if ac_fn_c_try_compile "$LINENO"; then :
4144 rm -f core conftest.err conftest.$ac_objext
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_cv_sys_largefile_CC=' -n32'; break
4149 rm -f core conftest.err conftest.$ac_objext
4153 rm -f conftest.$ac_ext
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4157 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4158 if test "$ac_cv_sys_largefile_CC" != no; then
4159 CC=$CC$ac_cv_sys_largefile_CC
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4163 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4164 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170 #include <sys/types.h>
4171 /* Check that off_t can represent 2**63 - 1 correctly.
4172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4173 since some C++ compilers masquerading as C compilers
4174 incorrectly reject 9223372036854775807. */
4175 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4177 && LARGE_OFF_T % 2147483647 == 1)
4187 if ac_fn_c_try_compile "$LINENO"; then :
4188 ac_cv_sys_file_offset_bits=no; break
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4193 #define _FILE_OFFSET_BITS 64
4194 #include <sys/types.h>
4195 /* Check that off_t can represent 2**63 - 1 correctly.
4196 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4197 since some C++ compilers masquerading as C compilers
4198 incorrectly reject 9223372036854775807. */
4199 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4201 && LARGE_OFF_T % 2147483647 == 1)
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212 ac_cv_sys_file_offset_bits=64; break
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 ac_cv_sys_file_offset_bits=unknown
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4220 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4221 case $ac_cv_sys_file_offset_bits in #(
4224 cat >>confdefs.h <<_ACEOF
4225 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4230 if test $ac_cv_sys_file_offset_bits = unknown; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4232 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4233 if test "${ac_cv_sys_large_files+set}" = set; then :
4234 $as_echo_n "(cached) " >&6
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239 #include <sys/types.h>
4240 /* Check that off_t can represent 2**63 - 1 correctly.
4241 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4242 since some C++ compilers masquerading as C compilers
4243 incorrectly reject 9223372036854775807. */
4244 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4246 && LARGE_OFF_T % 2147483647 == 1)
4256 if ac_fn_c_try_compile "$LINENO"; then :
4257 ac_cv_sys_large_files=no; break
4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262 #define _LARGE_FILES 1
4263 #include <sys/types.h>
4264 /* Check that off_t can represent 2**63 - 1 correctly.
4265 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4266 since some C++ compilers masquerading as C compilers
4267 incorrectly reject 9223372036854775807. */
4268 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4269 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4270 && LARGE_OFF_T % 2147483647 == 1)
4280 if ac_fn_c_try_compile "$LINENO"; then :
4281 ac_cv_sys_large_files=1; break
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 ac_cv_sys_large_files=unknown
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4289 $as_echo "$ac_cv_sys_large_files" >&6; }
4290 case $ac_cv_sys_large_files in #(
4293 cat >>confdefs.h <<_ACEOF
4294 #define _LARGE_FILES $ac_cv_sys_large_files
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4307 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4308 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4311 am_cv_prog_cc_stdc=no
4313 # Don't try gcc -ansi; that turns off useful extensions and
4314 # breaks some systems' header files.
4315 # AIX -qlanglvl=ansi
4316 # Ultrix and OSF/1 -std1
4317 # HP-UX 10.20 and later -Ae
4318 # HP-UX older versions -Aa -D_HPUX_SOURCE
4319 # SVR4 -Xc -D__EXTENSIONS__
4320 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4322 CC="$ac_save_CC $ac_arg"
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4327 #include <sys/types.h>
4328 #include <sys/stat.h>
4329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4330 struct buf { int x; };
4331 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4332 static char *e (p, i)
4338 static char *f (char * (*g) (char **, int), char **p, ...)
4343 s = g (p, va_arg (v,int));
4347 int test (int i, double x);
4348 struct s1 {int (*f) (int a);};
4349 struct s2 {int (*f) (double a);};
4350 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4358 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4364 if ac_fn_c_try_compile "$LINENO"; then :
4365 am_cv_prog_cc_stdc="$ac_arg"; break
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 if test -z "$am_cv_prog_cc_stdc"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4375 $as_echo "none needed" >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4378 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4380 case "x$am_cv_prog_cc_stdc" in
4382 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4387 for ac_dir in .. "$srcdir"/..; do
4388 for ac_t in install-sh install.sh shtool; do
4389 if test -f "$ac_dir/$ac_t"; then
4391 ac_install_sh="$ac_aux_dir/$ac_t -c"
4396 if test -z "$ac_aux_dir"; then
4397 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4400 # These three variables are undocumented and unsupported,
4401 # and are intended to be withdrawn in a future Autoconf release.
4402 # They can cause serious problems if a builder's source tree is in a directory
4403 # whose full name contains unusual characters.
4404 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4405 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4406 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4410 test "$program_prefix" != NONE &&
4411 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4412 # Use a double $ so make ignores it.
4413 test "$program_suffix" != NONE &&
4414 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4415 # Double any \ or $.
4416 # By default was `s,x,x', remove it if useless.
4417 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4418 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4421 # Dependency checking.
4422 rm -rf .tst 2>/dev/null
4423 mkdir .tst 2>/dev/null
4424 if test -d .tst; then
4429 rmdir .tst 2>/dev/null
4431 DEPDIR="${am__leading_dot}deps"
4433 ac_config_commands="$ac_config_commands depdir"
4436 depcc="$CC" am_compiler_list=
4438 am_depcomp=$ac_aux_dir/depcomp
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4440 $as_echo_n "checking dependency style of $depcc... " >&6; }
4441 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4444 if test -f "$am_depcomp"; then
4445 # We make a subdir and do the tests there. Otherwise we can end up
4446 # making bogus files that we don't know about and never remove. For
4447 # instance it was reported that on HP-UX the gcc test will end up
4448 # making a dummy file named `D' -- because `-MD' means `put the output
4451 # Copy depcomp to subdir because otherwise we won't find it if we're
4452 # using a relative directory.
4453 cp "$am_depcomp" conftest.dir
4455 # We will build objects and dependencies in a subdirectory because
4456 # it helps to detect inapplicable dependency modes. For instance
4457 # both Tru64's cc and ICC support -MD to output dependencies as a
4458 # side effect of compilation, but ICC will put the dependencies in
4459 # the current directory while Tru64 will put them in the object
4463 am_cv_CC_dependencies_compiler_type=none
4464 if test "$am_compiler_list" = ""; then
4465 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4467 for depmode in $am_compiler_list; do
4468 if test $depmode = none; then break; fi
4470 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4471 # Setup a source with many dependencies, because some compilers
4472 # like to wrap large dependency lists on column 80 (with \), and
4473 # we should not choose a depcomp mode which is confused by this.
4475 # We need to recreate these files for each test, as the compiler may
4476 # overwrite some of them when testing with obscure command lines.
4477 # This happens at least with the AIX C compiler.
4479 for i in 1 2 3 4 5 6; do
4480 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4481 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4482 # Solaris 8's {/usr,}/bin/sh.
4483 touch sub/conftst$i.h
4485 echo "include sub/conftest.Po" > confmf
4487 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4488 # mode. It turns out that the SunPro C++ compiler does not properly
4489 # handle `-M -o', and we need to detect this.
4490 depcmd="depmode=$depmode \
4491 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4492 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4493 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4494 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4495 if env $depcmd > conftest.err 2>&1 &&
4496 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4497 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4498 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4499 # icc doesn't choke on unknown options, it will just issue warnings
4500 # or remarks (even with -Werror). So we grep stderr for any message
4501 # that says an option was ignored or not supported.
4502 # When given -MP, icc 7.0 and 7.1 complain thusly:
4503 # icc: Command line warning: ignoring option '-M'; no argument required
4504 # The diagnosis changed in icc 8.0:
4505 # icc: Command line remark: option '-MP' not supported
4506 if (grep 'ignoring option' conftest.err ||
4507 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4508 am_cv_CC_dependencies_compiler_type=$depmode
4509 $as_echo "$as_me:$LINENO: success" >&5
4513 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4514 sed -e 's/^/| /' < conftest.err >&5
4520 am_cv_CC_dependencies_compiler_type=none
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4525 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4526 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4527 then as_fn_error "no usable dependency style found" "$LINENO" 5
4528 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4533 # Check for the 'make' the user wants to use.
4536 # Extract the first word of "$ac_prog", so it can be a program name with args.
4537 set dummy $ac_prog; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if test "${ac_cv_prog_MAKE+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4543 if test -n "$MAKE"; then
4544 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553 ac_cv_prog_MAKE="$ac_prog"
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 MAKE=$ac_cv_prog_MAKE
4564 if test -n "$MAKE"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4566 $as_echo "$MAKE" >&6; }
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4573 test -n "$MAKE" && break
4577 case "`$MAKE --version 2>&1 | sed 1q`" in
4582 if test "$MAKE_IS_GNU" = yes; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4591 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4593 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4594 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4595 $as_echo_n "(cached) " >&6
4597 cat >conftest.make <<\_ACEOF
4600 @echo '@@@%%%=$(MAKE)=@@@%%%'
4602 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4603 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4605 eval ac_cv_prog_make_${ac_make}_set=yes;;
4607 eval ac_cv_prog_make_${ac_make}_set=no;;
4611 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4613 $as_echo "yes" >&6; }
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4618 SET_MAKE="MAKE=${MAKE-make}"
4622 # Configure gnulib. We need to build gnulib under some other
4623 # directory not "gnulib", to avoid the problem of both GDB and
4624 # GDBserver wanting to build it in the same directory, when building
4625 # in the source dir.
4628 in_build="build-gnulib"
4630 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4631 # so they do not pile up.
4632 ac_sub_configure_args=
4634 eval "set x $ac_configure_args"
4638 if test -n "$ac_prev"; then
4643 -cache-file | --cache-file | --cache-fil | --cache-fi \
4644 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4645 ac_prev=cache_file ;;
4646 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4647 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4650 --config-cache | -C)
4652 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4654 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4660 --disable-option-checking)
4664 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4666 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4670 # Always prepend --prefix to ensure using the same prefix
4671 # in subdir configurations.
4672 ac_arg="--prefix=$prefix"
4674 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4676 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4679 if test "$silent" = yes; then
4680 ac_sub_configure_args="--silent $ac_sub_configure_args"
4683 # Always prepend --disable-option-checking to silence warnings, since
4684 # different subdirs can have different --enable and --with options.
4685 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4690 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4691 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4692 $as_echo "$ac_msg" >&6
4693 as_dir="$ac_dir"; as_fn_mkdir_p
4697 ac_srcdir=$srcdir/$in_src ;;
4699 ac_srcdir=../$srcdir/$in_src ;;
4704 ac_sub_configure=$ac_srcdir/configure
4706 # Make the cache file name correct relative to the subdirectory.
4708 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4710 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4713 { $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
4714 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4715 # The eval makes quoting arguments work.
4716 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4717 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4718 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4734 # If we haven't got the data from the intl directory,
4735 # assume NLS is disabled.
4744 if test -f ../intl/config.intl; then
4745 . ../intl/config.intl
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4748 $as_echo_n "checking whether NLS is requested... " >&6; }
4749 if test x"$USE_NLS" != xyes; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4754 $as_echo "yes" >&6; }
4756 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4760 $as_echo_n "checking for catalogs to be installed... " >&6; }
4761 # Look for .po and .gmo files in the source directory.
4764 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4765 # If there aren't any .gmo files the shell will give us the
4766 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4768 case "$cat" in *\**)
4771 # The quadruple backslash is collapsed to a double backslash
4772 # by the backticks, then collapsed again by the double quotes,
4773 # leaving us with one backslash in the sed expression (right
4774 # before the dot that mustn't act as a wildcard).
4775 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4776 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4777 # The user is allowed to set LINGUAS to a list of languages to
4778 # install catalogs for. If it's empty that means "all of them."
4779 if test "x$LINGUAS" = x; then
4780 CATALOGS="$CATALOGS $cat"
4781 XLINGUAS="$XLINGUAS $lang"
4783 case "$LINGUAS" in *$lang*)
4784 CATALOGS="$CATALOGS $cat"
4785 XLINGUAS="$XLINGUAS $lang"
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4792 $as_echo "$LINGUAS" >&6; }
4805 localedir='${datadir}/locale'
4808 if test x"$USE_NLS" = xyes; then
4809 CONFIG_ALL="$CONFIG_ALL all-po"
4810 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4811 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4812 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4815 GNULIB=build-gnulib/import
4817 # For Makefile dependencies.
4819 if test x"$STDINT_H" != x; then
4820 GNULIB_STDINT_H=$GNULIB/$STDINT_H
4826 cat >>confdefs.h <<_ACEOF
4827 #define PACKAGE "$PACKAGE"
4832 # We never need to detect it in this sub-configure.
4833 # But preserve it for config.status --recheck.
4837 MAKEINFO_EXTRA_FLAGS=""
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4839 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4840 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4843 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4844 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4845 gdb_cv_have_makeinfo_click=yes
4847 gdb_cv_have_makeinfo_click=no
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4851 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4852 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
4853 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4859 # Check whether --with-separate-debug-dir was given.
4860 if test "${with_separate_debug_dir+set}" = set; then :
4861 withval=$with_separate_debug_dir;
4864 DEBUGDIR=${libdir}/debug
4868 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4869 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4870 ac_define_dir=`eval echo $DEBUGDIR`
4871 ac_define_dir=`eval echo $ac_define_dir`
4873 cat >>confdefs.h <<_ACEOF
4874 #define DEBUGDIR "$ac_define_dir"
4880 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4881 if test "x$prefix" = xNONE; then
4882 test_prefix=/usr/local
4887 test_prefix=$exec_prefix
4890 case ${ac_define_dir} in
4891 "${test_prefix}"|"${test_prefix}/"*|\
4892 '${exec_prefix}'|'${exec_prefix}/'*)
4897 cat >>confdefs.h <<_ACEOF
4898 #define DEBUGDIR_RELOCATABLE $value
4904 # We can't pass paths as command line arguments.
4905 # Mingw32 tries to be clever and will convert the paths for us.
4906 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
4907 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
4908 # This breaks GDB's relocatable path conversions since paths passed in
4909 # config.h would not get so translated, the path prefixes no longer match.
4911 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4913 ac_define_dir=`eval echo $bindir`
4914 ac_define_dir=`eval echo $ac_define_dir`
4916 cat >>confdefs.h <<_ACEOF
4917 #define BINDIR "$ac_define_dir"
4922 # GDB's datadir relocation
4926 # Check whether --with-gdb-datadir was given.
4927 if test "${with_gdb_datadir+set}" = set; then :
4928 withval=$with_gdb_datadir;
4929 GDB_DATADIR=$withval
4931 GDB_DATADIR=${datadir}/gdb
4935 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4937 ac_define_dir=`eval echo $GDB_DATADIR`
4938 ac_define_dir=`eval echo $ac_define_dir`
4940 cat >>confdefs.h <<_ACEOF
4941 #define GDB_DATADIR "$ac_define_dir"
4947 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4948 if test "x$prefix" = xNONE; then
4949 test_prefix=/usr/local
4954 test_prefix=$exec_prefix
4957 case ${ac_define_dir} in
4958 "${test_prefix}"|"${test_prefix}/"*|\
4959 '${exec_prefix}'|'${exec_prefix}/'*)
4964 cat >>confdefs.h <<_ACEOF
4965 #define GDB_DATADIR_RELOCATABLE $value
4972 # Check whether --with-relocated-sources was given.
4973 if test "${with_relocated_sources+set}" = set; then :
4974 withval=$with_relocated_sources; reloc_srcdir="${withval}"
4976 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4977 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4978 ac_define_dir=`eval echo $reloc_srcdir`
4979 ac_define_dir=`eval echo $ac_define_dir`
4981 cat >>confdefs.h <<_ACEOF
4982 #define RELOC_SRCDIR "$ac_define_dir"
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
4991 $as_echo_n "checking for default auto-load directory... " >&6; }
4993 # Check whether --with-auto-load-dir was given.
4994 if test "${with_auto_load_dir+set}" = set; then :
4995 withval=$with_auto_load_dir;
4997 with_auto_load_dir='$debugdir:$datadir/auto-load'
5000 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5002 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5003 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5004 ac_define_dir=`eval echo $escape_dir`
5005 ac_define_dir=`eval echo $ac_define_dir`
5007 cat >>confdefs.h <<_ACEOF
5008 #define AUTO_LOAD_DIR "$ac_define_dir"
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5013 $as_echo "$with_auto_load_dir" >&6; }
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5016 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5018 # Check whether --with-auto-load-safe-path was given.
5019 if test "${with_auto_load_safe_path+set}" = set; then :
5020 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5021 with_auto_load_safe_path="/"
5024 with_auto_load_safe_path="$with_auto_load_dir"
5027 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5029 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5030 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5031 ac_define_dir=`eval echo $escape_dir`
5032 ac_define_dir=`eval echo $ac_define_dir`
5034 cat >>confdefs.h <<_ACEOF
5035 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5040 $as_echo "$with_auto_load_safe_path" >&6; }
5044 subdirs="$subdirs testsuite"
5047 # Check whether to support alternative target configurations
5048 # Check whether --enable-targets was given.
5049 if test "${enable_targets+set}" = set; then :
5050 enableval=$enable_targets; case "${enableval}" in
5051 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5053 no) enable_targets= ;;
5054 *) enable_targets=$enableval ;;
5059 # Check whether to enable 64-bit support on 32-bit hosts
5060 # Check whether --enable-64-bit-bfd was given.
5061 if test "${enable_64_bit_bfd+set}" = set; then :
5062 enableval=$enable_64_bit_bfd; case "${enableval}" in
5065 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5071 # Provide defaults for some variables set by the per-host and per-target
5073 gdb_host_obs=posix-hdep.o
5075 if test "${target}" = "${host}"; then
5081 . $srcdir/configure.host
5083 # Accumulate some settings from configure.tgt over all enabled targets
5087 HAVE_NATIVE_GCORE_TARGET=
5089 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5091 if test "$targ_alias" = "all"; then
5094 # Canonicalize the secondary target names.
5095 result=`$ac_config_sub $targ_alias 2>/dev/null`
5096 if test -n "$result"; then
5102 . ${srcdir}/configure.tgt
5104 if test -z "${gdb_target_obs}"; then :
5105 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5108 # Target-specific object files
5109 for i in ${gdb_target_obs}; do
5110 case " $TARGET_OBS " in
5113 TARGET_OBS="$TARGET_OBS ${i}"
5118 # Check whether this target needs 64-bit CORE_ADDR
5119 if test x${want64} = xfalse; then
5120 . ${srcdir}/../bfd/config.bfd
5123 # Check whether this target is native and supports gcore.
5124 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5125 && $gdb_have_gcore; then
5126 HAVE_NATIVE_GCORE_TARGET=1
5131 if test x${all_targets} = xtrue; then
5133 # We want all 64-bit targets if we either:
5134 # - run on a 64-bit host or
5135 # - already require 64-bit support for some other target or
5136 # - the --enable-64-bit-bfd option was supplied
5137 # Otherwise we only support all 32-bit targets.
5139 # NOTE: This test must be in sync with the corresponding
5142 if test x${want64} = xfalse; then
5143 # The cast to long int works around a bug in the HP C Compiler
5144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5146 # This bug is HP SR number 8606223364.
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5148 $as_echo_n "checking size of long... " >&6; }
5149 if test "${ac_cv_sizeof_long+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5152 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5155 if test "$ac_cv_type_long" = yes; then
5156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5158 { as_fn_set_status 77
5159 as_fn_error "cannot compute sizeof (long)
5160 See \`config.log' for more details." "$LINENO" 5; }; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5168 $as_echo "$ac_cv_sizeof_long" >&6; }
5172 cat >>confdefs.h <<_ACEOF
5173 #define SIZEOF_LONG $ac_cv_sizeof_long
5177 if test "x${ac_cv_sizeof_long}" = "x8"; then
5181 if test x${want64} = xtrue; then
5182 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5184 TARGET_OBS='$(ALL_TARGET_OBS)'
5191 # For other settings, only the main target counts.
5195 targ=$target; . ${srcdir}/configure.tgt
5197 # Fetch the default architecture and default target vector from BFD.
5198 targ=$target; . $srcdir/../bfd/config.bfd
5200 # We only want the first architecture, so strip off the others if
5201 # there is more than one.
5202 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5204 if test "x$targ_archs" != x; then
5206 cat >>confdefs.h <<_ACEOF
5207 #define DEFAULT_BFD_ARCH $targ_archs
5211 if test "x$targ_defvec" != x; then
5213 cat >>confdefs.h <<_ACEOF
5214 #define DEFAULT_BFD_VEC $targ_defvec
5219 # The CLI cannot be disabled yet, but may be in the future.
5222 # Check whether --enable-gdbcli was given.
5223 if test "${enable_gdbcli+set}" = set; then :
5224 enableval=$enable_gdbcli; case $enableval in
5228 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5230 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5236 if test x"$enable_gdbcli" = xyes; then
5237 if test -d $srcdir/cli; then
5238 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5239 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5240 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5241 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5246 # Check whether --enable-gdbmi was given.
5247 if test "${enable_gdbmi+set}" = set; then :
5248 enableval=$enable_gdbmi; case $enableval in
5252 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5258 if test x"$enable_gdbmi" = xyes; then
5259 if test -d $srcdir/mi; then
5260 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5261 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5262 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5263 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5268 # Check whether --enable-tui was given.
5269 if test "${enable_tui+set}" = set; then :
5270 enableval=$enable_tui; case $enableval in
5274 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5282 # Check whether --enable-gdbtk was given.
5283 if test "${enable_gdbtk+set}" = set; then :
5284 enableval=$enable_gdbtk; case $enableval in
5288 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5291 if test -d $srcdir/gdbtk; then
5298 # We unconditionally disable gdbtk tests on selected platforms.
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5302 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5306 # Libunwind support for ia64.
5309 # Check whether --with-libunwind-ia64 was given.
5310 if test "${with_libunwind_ia64+set}" = set; then :
5311 withval=$with_libunwind_ia64;
5313 with_libunwind_ia64=auto
5317 # Backward compatibility option.
5318 if test "${with_libunwind+set}" = set; then
5319 if test x"$with_libunwind_ia64" != xauto; then
5320 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5323 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5324 with_libunwind_ia64="$with_libunwind"
5327 case "$with_libunwind_ia64" in
5331 for ac_header in libunwind-ia64.h
5333 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5334 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5335 cat >>confdefs.h <<_ACEOF
5336 #define HAVE_LIBUNWIND_IA64_H 1
5343 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5346 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5350 if test x"$with_libunwind_ia64" = xyes; then
5351 for ac_header in libunwind-ia64.h
5353 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5354 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5355 cat >>confdefs.h <<_ACEOF
5356 #define HAVE_LIBUNWIND_IA64_H 1
5363 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5364 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5366 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5367 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5368 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5373 # Check whether --with-curses was given.
5374 if test "${with_curses+set}" = set; then :
5375 withval=$with_curses; opt_curses=$withval
5380 if test "$opt_curses" = "yes"; then
5384 # Profiling support.
5385 # Check whether --enable-profiling was given.
5386 if test "${enable_profiling+set}" = set; then :
5387 enableval=$enable_profiling; case $enableval in
5391 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5398 for ac_func in monstartup _mcleanup
5400 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5401 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5402 eval as_val=\$$as_ac_var
5403 if test "x$as_val" = x""yes; then :
5404 cat >>confdefs.h <<_ACEOF
5405 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5412 $as_echo_n "checking for _etext... " >&6; }
5413 if test "${ac_cv_var__etext+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5429 if ac_fn_c_try_link "$LINENO"; then :
5430 ac_cv_var__etext=yes
5434 rm -f core conftest.err conftest.$ac_objext \
5435 conftest$ac_exeext conftest.$ac_ext
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5438 $as_echo "$ac_cv_var__etext" >&6; }
5439 if test $ac_cv_var__etext = yes; then
5441 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5445 $as_echo_n "checking for etext... " >&6; }
5446 if test "${ac_cv_var_etext+set}" = set; then :
5447 $as_echo_n "(cached) " >&6
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5462 if ac_fn_c_try_link "$LINENO"; then :
5467 rm -f core conftest.err conftest.$ac_objext \
5468 conftest$ac_exeext conftest.$ac_ext
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5471 $as_echo "$ac_cv_var_etext" >&6; }
5472 if test $ac_cv_var_etext = yes; then
5474 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5477 if test "$enable_profiling" = yes ; then
5478 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5479 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5482 OLD_CFLAGS="$CFLAGS"
5483 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5486 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5487 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5501 if ac_fn_c_try_compile "$LINENO"; then :
5502 ac_cv_cc_supports_pg=yes
5504 ac_cv_cc_supports_pg=no
5506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5509 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5511 if test $ac_cv_cc_supports_pg = no; then
5512 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5515 CFLAGS="$OLD_CFLAGS"
5520 # Check whether --with-pkgversion was given.
5521 if test "${with_pkgversion+set}" = set; then :
5522 withval=$with_pkgversion; case "$withval" in
5523 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5525 *) PKGVERSION="($withval) " ;;
5536 # Check whether --with-bugurl was given.
5537 if test "${with_bugurl+set}" = set; then :
5538 withval=$with_bugurl; case "$withval" in
5539 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5542 *) BUGURL="$withval"
5546 BUGURL="http://www.gnu.org/software/gdb/bugs/"
5556 REPORT_BUGS_TO="<$BUGURL>"
5557 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5564 cat >>confdefs.h <<_ACEOF
5565 #define PKGVERSION "$PKGVERSION"
5569 cat >>confdefs.h <<_ACEOF
5570 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5574 # --------------------- #
5575 # Checks for programs. #
5576 # --------------------- #
5578 for ac_prog in gawk mawk nawk awk
5580 # Extract the first word of "$ac_prog", so it can be a program name with args.
5581 set dummy $ac_prog; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if test "${ac_cv_prog_AWK+set}" = set; then :
5585 $as_echo_n "(cached) " >&6
5587 if test -n "$AWK"; then
5588 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_prog_AWK="$ac_prog"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 if test -n "$AWK"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5610 $as_echo "$AWK" >&6; }
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5617 test -n "$AWK" && break
5620 # Find a good install program. We prefer a C program (faster),
5621 # so one script is as good as another. But avoid the broken or
5622 # incompatible versions:
5623 # SysV /etc/install, /usr/sbin/install
5624 # SunOS /usr/etc/install
5625 # IRIX /sbin/install
5627 # AmigaOS /C/install, which installs bootblocks on floppy discs
5628 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5629 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5630 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5631 # OS/2's system install, which has a completely different semantic
5632 # ./install, which can be erroneously created by make from ./install.sh.
5633 # Reject install programs that cannot install multiple files.
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5635 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5636 if test -z "$INSTALL"; then
5637 if test "${ac_cv_path_install+set}" = set; then :
5638 $as_echo_n "(cached) " >&6
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 test -z "$as_dir" && as_dir=.
5645 # Account for people who put trailing slashes in PATH elements.
5646 case $as_dir/ in #((
5647 ./ | .// | /[cC]/* | \
5648 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5649 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5652 # OSF1 and SCO ODT 3.0 have their own names for install.
5653 # Don't use installbsd from OSF since it installs stuff as root
5655 for ac_prog in ginstall scoinst install; do
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5658 if test $ac_prog = install &&
5659 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5660 # AIX install. It has an incompatible calling convention.
5662 elif test $ac_prog = install &&
5663 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5664 # program-specific install script used by HP pwplus--don't use.
5667 rm -rf conftest.one conftest.two conftest.dir
5668 echo one > conftest.one
5669 echo two > conftest.two
5671 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5672 test -s conftest.one && test -s conftest.two &&
5673 test -s conftest.dir/conftest.one &&
5674 test -s conftest.dir/conftest.two
5676 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5689 rm -rf conftest.one conftest.two conftest.dir
5692 if test "${ac_cv_path_install+set}" = set; then
5693 INSTALL=$ac_cv_path_install
5695 # As a last resort, use the slow shell script. Don't cache a
5696 # value for INSTALL within a source directory, because that will
5697 # break other packages using the cache if that directory is
5698 # removed, or if the value is a relative name.
5699 INSTALL=$ac_install_sh
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5703 $as_echo "$INSTALL" >&6; }
5705 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5706 # It thinks the first close brace ends the variable substitution.
5707 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5709 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5711 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5714 $as_echo_n "checking whether ln -s works... " >&6; }
5716 if test "$LN_S" = "ln -s"; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5718 $as_echo "yes" >&6; }
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5721 $as_echo "no, using $LN_S" >&6; }
5724 if test -n "$ac_tool_prefix"; then
5725 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5726 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728 $as_echo_n "checking for $ac_word... " >&6; }
5729 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5732 if test -n "$RANLIB"; then
5733 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5742 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 RANLIB=$ac_cv_prog_RANLIB
5753 if test -n "$RANLIB"; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5755 $as_echo "$RANLIB" >&6; }
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5763 if test -z "$ac_cv_prog_RANLIB"; then
5764 ac_ct_RANLIB=$RANLIB
5765 # Extract the first word of "ranlib", so it can be a program name with args.
5766 set dummy ranlib; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5772 if test -n "$ac_ct_RANLIB"; then
5773 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782 ac_cv_prog_ac_ct_RANLIB="ranlib"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5793 if test -n "$ac_ct_RANLIB"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5795 $as_echo "$ac_ct_RANLIB" >&6; }
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5801 if test "x$ac_ct_RANLIB" = x; then
5804 case $cross_compiling:$ac_tool_warned in
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5808 ac_tool_warned=yes ;;
5810 RANLIB=$ac_ct_RANLIB
5813 RANLIB="$ac_cv_prog_RANLIB"
5816 for ac_prog in 'bison -y' byacc
5818 # Extract the first word of "$ac_prog", so it can be a program name with args.
5819 set dummy $ac_prog; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if test "${ac_cv_prog_YACC+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
5825 if test -n "$YACC"; then
5826 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835 ac_cv_prog_YACC="$ac_prog"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 YACC=$ac_cv_prog_YACC
5846 if test -n "$YACC"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5848 $as_echo "$YACC" >&6; }
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5855 test -n "$YACC" && break
5857 test -n "$YACC" || YACC="yacc"
5860 if test -n "$ac_tool_prefix"; then
5861 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5862 set dummy ${ac_tool_prefix}ar; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if test "${ac_cv_prog_AR+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5868 if test -n "$AR"; then
5869 ac_cv_prog_AR="$AR" # Let the user override the test.
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_prog_AR="${ac_tool_prefix}ar"
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 if test -n "$AR"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5891 $as_echo "$AR" >&6; }
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5899 if test -z "$ac_cv_prog_AR"; then
5901 # Extract the first word of "ar", so it can be a program name with args.
5902 set dummy ar; ac_word=$2
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5906 $as_echo_n "(cached) " >&6
5908 if test -n "$ac_ct_AR"; then
5909 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_ac_ct_AR="ar"
5919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5929 if test -n "$ac_ct_AR"; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5931 $as_echo "$ac_ct_AR" >&6; }
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5937 if test "x$ac_ct_AR" = x; then
5940 case $cross_compiling:$ac_tool_warned in
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5944 ac_tool_warned=yes ;;
5952 if test -n "$ac_tool_prefix"; then
5953 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5954 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5960 if test -n "$DLLTOOL"; then
5961 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 DLLTOOL=$ac_cv_prog_DLLTOOL
5981 if test -n "$DLLTOOL"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5983 $as_echo "$DLLTOOL" >&6; }
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5991 if test -z "$ac_cv_prog_DLLTOOL"; then
5992 ac_ct_DLLTOOL=$DLLTOOL
5993 # Extract the first word of "dlltool", so it can be a program name with args.
5994 set dummy dlltool; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
6000 if test -n "$ac_ct_DLLTOOL"; then
6001 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6010 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6021 if test -n "$ac_ct_DLLTOOL"; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6023 $as_echo "$ac_ct_DLLTOOL" >&6; }
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026 $as_echo "no" >&6; }
6029 if test "x$ac_ct_DLLTOOL" = x; then
6032 case $cross_compiling:$ac_tool_warned in
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6036 ac_tool_warned=yes ;;
6038 DLLTOOL=$ac_ct_DLLTOOL
6041 DLLTOOL="$ac_cv_prog_DLLTOOL"
6044 if test -n "$ac_tool_prefix"; then
6045 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}windres; ac_word=$2
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6050 $as_echo_n "(cached) " >&6
6052 if test -n "$WINDRES"; then
6053 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6062 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 WINDRES=$ac_cv_prog_WINDRES
6073 if test -n "$WINDRES"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6075 $as_echo "$WINDRES" >&6; }
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6083 if test -z "$ac_cv_prog_WINDRES"; then
6084 ac_ct_WINDRES=$WINDRES
6085 # Extract the first word of "windres", so it can be a program name with args.
6086 set dummy windres; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6090 $as_echo_n "(cached) " >&6
6092 if test -n "$ac_ct_WINDRES"; then
6093 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6102 ac_cv_prog_ac_ct_WINDRES="windres"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6113 if test -n "$ac_ct_WINDRES"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6115 $as_echo "$ac_ct_WINDRES" >&6; }
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6121 if test "x$ac_ct_WINDRES" = x; then
6124 case $cross_compiling:$ac_tool_warned in
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6128 ac_tool_warned=yes ;;
6130 WINDRES=$ac_ct_WINDRES
6133 WINDRES="$ac_cv_prog_WINDRES"
6139 # Needed for GNU Hurd hosts.
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}mig; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_MIG+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6148 if test -n "$MIG"; then
6149 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 if test -n "$MIG"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6171 $as_echo "$MIG" >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6179 if test -z "$ac_cv_prog_MIG"; then
6181 # Extract the first word of "mig", so it can be a program name with args.
6182 set dummy mig; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6188 if test -n "$ac_ct_MIG"; then
6189 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_MIG="mig"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6209 if test -n "$ac_ct_MIG"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6211 $as_echo "$ac_ct_MIG" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6217 if test "x$ac_ct_MIG" = x; then
6220 case $cross_compiling:$ac_tool_warned in
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned=yes ;;
6229 MIG="$ac_cv_prog_MIG"
6232 if test x"$MIG" = x; then
6233 as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
6238 # ---------------------- #
6239 # Checks for libraries. #
6240 # ---------------------- #
6242 # We might need to link with -lm; most simulators need it.
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6244 $as_echo_n "checking for main in -lm... " >&6; }
6245 if test "${ac_cv_lib_m_main+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
6248 ac_check_lib_save_LIBS=$LIBS
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6262 if ac_fn_c_try_link "$LINENO"; then :
6263 ac_cv_lib_m_main=yes
6267 rm -f core conftest.err conftest.$ac_objext \
6268 conftest$ac_exeext conftest.$ac_ext
6269 LIBS=$ac_check_lib_save_LIBS
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6272 $as_echo "$ac_cv_lib_m_main" >&6; }
6273 if test "x$ac_cv_lib_m_main" = x""yes; then :
6274 cat >>confdefs.h <<_ACEOF
6283 # We need to link with -lw to get `wctype' on Solaris before Solaris
6284 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6285 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6286 # is known to have this problem). Therefore we avoid libw if we can.
6287 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6288 if test "x$ac_cv_func_wctype" = x""yes; then :
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6292 $as_echo_n "checking for wctype in -lw... " >&6; }
6293 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6294 $as_echo_n "(cached) " >&6
6296 ac_check_lib_save_LIBS=$LIBS
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6301 /* Override any GCC internal prototype to avoid an error.
6302 Use char because int might match the return type of a GCC
6303 builtin and then its argument prototype would still apply. */
6316 if ac_fn_c_try_link "$LINENO"; then :
6317 ac_cv_lib_w_wctype=yes
6319 ac_cv_lib_w_wctype=no
6321 rm -f core conftest.err conftest.$ac_objext \
6322 conftest$ac_exeext conftest.$ac_ext
6323 LIBS=$ac_check_lib_save_LIBS
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6326 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6327 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6328 cat >>confdefs.h <<_ACEOF
6339 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6341 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6342 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6345 ac_func_search_save_LIBS=$LIBS
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6349 /* Override any GCC internal prototype to avoid an error.
6350 Use char because int might match the return type of a GCC
6351 builtin and then its argument prototype would still apply. */
6355 char gethostbyname ();
6359 return gethostbyname ();
6364 for ac_lib in '' nsl; do
6365 if test -z "$ac_lib"; then
6366 ac_res="none required"
6369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6371 if ac_fn_c_try_link "$LINENO"; then :
6372 ac_cv_search_gethostbyname=$ac_res
6374 rm -f core conftest.err conftest.$ac_objext \
6376 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6380 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6383 ac_cv_search_gethostbyname=no
6386 LIBS=$ac_func_search_save_LIBS
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6389 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6390 ac_res=$ac_cv_search_gethostbyname
6391 if test "$ac_res" != no; then :
6392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6397 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6399 $as_echo_n "checking for library containing socketpair... " >&6; }
6400 if test "${ac_cv_search_socketpair+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6403 ac_func_search_save_LIBS=$LIBS
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6407 /* Override any GCC internal prototype to avoid an error.
6408 Use char because int might match the return type of a GCC
6409 builtin and then its argument prototype would still apply. */
6417 return socketpair ();
6422 for ac_lib in '' socket; do
6423 if test -z "$ac_lib"; then
6424 ac_res="none required"
6427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6429 if ac_fn_c_try_link "$LINENO"; then :
6430 ac_cv_search_socketpair=$ac_res
6432 rm -f core conftest.err conftest.$ac_objext \
6434 if test "${ac_cv_search_socketpair+set}" = set; then :
6438 if test "${ac_cv_search_socketpair+set}" = set; then :
6441 ac_cv_search_socketpair=no
6444 LIBS=$ac_func_search_save_LIBS
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6447 $as_echo "$ac_cv_search_socketpair" >&6; }
6448 ac_res=$ac_cv_search_socketpair
6449 if test "$ac_res" != no; then :
6450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6455 # Link in zlib if we can. This allows us to read compressed debug sections.
6457 # See if the user specified whether he wants zlib support or not.
6459 # Check whether --with-zlib was given.
6460 if test "${with_zlib+set}" = set; then :
6467 if test "$with_zlib" != "no"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6469 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6470 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6471 $as_echo_n "(cached) " >&6
6473 ac_func_search_save_LIBS=$LIBS
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6477 /* Override any GCC internal prototype to avoid an error.
6478 Use char because int might match the return type of a GCC
6479 builtin and then its argument prototype would still apply. */
6483 char zlibVersion ();
6487 return zlibVersion ();
6492 for ac_lib in '' z; do
6493 if test -z "$ac_lib"; then
6494 ac_res="none required"
6497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6499 if ac_fn_c_try_link "$LINENO"; then :
6500 ac_cv_search_zlibVersion=$ac_res
6502 rm -f core conftest.err conftest.$ac_objext \
6504 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6508 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6511 ac_cv_search_zlibVersion=no
6514 LIBS=$ac_func_search_save_LIBS
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6517 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6518 ac_res=$ac_cv_search_zlibVersion
6519 if test "$ac_res" != no; then :
6520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6521 for ac_header in zlib.h
6523 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6524 if test "x$ac_cv_header_zlib_h" = x""yes; then :
6525 cat >>confdefs.h <<_ACEOF
6526 #define HAVE_ZLIB_H 1
6535 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6536 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6541 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6543 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6544 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6545 $as_echo_n "(cached) " >&6
6547 ac_func_search_save_LIBS=$LIBS
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6551 /* Override any GCC internal prototype to avoid an error.
6552 Use char because int might match the return type of a GCC
6553 builtin and then its argument prototype would still apply. */
6557 char dlgetmodinfo ();
6561 return dlgetmodinfo ();
6566 for ac_lib in '' dl xpdl; do
6567 if test -z "$ac_lib"; then
6568 ac_res="none required"
6571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6573 if ac_fn_c_try_link "$LINENO"; then :
6574 ac_cv_search_dlgetmodinfo=$ac_res
6576 rm -f core conftest.err conftest.$ac_objext \
6578 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6582 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6585 ac_cv_search_dlgetmodinfo=no
6588 LIBS=$ac_func_search_save_LIBS
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6591 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6592 ac_res=$ac_cv_search_dlgetmodinfo
6593 if test "$ac_res" != no; then :
6594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6602 # Check whether --with-libiconv-prefix was given.
6603 if test "${with_libiconv_prefix+set}" = set; then :
6604 withval=$with_libiconv_prefix;
6605 for dir in `echo "$withval" | tr : ' '`; do
6606 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
6607 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
6613 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
6614 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6617 $as_echo_n "checking for iconv... " >&6; }
6618 if test "${am_cv_func_iconv+set}" = set; then :
6619 $as_echo_n "(cached) " >&6
6622 am_cv_func_iconv="no, consider installing GNU libiconv"
6624 am_cv_use_build_libiconv=no
6625 am_cv_build_libiconv_path=
6627 # If libiconv is part of the build tree, then try using it over
6629 if test -d ../libiconv; then
6630 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
6631 am_save_LIBS="$LIBS"
6632 am_save_CPPFLAGS="$CPPFLAGS"
6633 LIBS="$LIBS $lib_dir/libiconv.a"
6634 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6642 iconv_t cd = iconv_open("","");
6643 iconv(cd,NULL,NULL,NULL,NULL);
6649 if ac_fn_c_try_link "$LINENO"; then :
6650 am_cv_use_build_libiconv=yes
6651 am_cv_build_libiconv_path=$lib_dir/libiconv.a
6653 am_cv_func_iconv=yes
6655 rm -f core conftest.err conftest.$ac_objext \
6656 conftest$ac_exeext conftest.$ac_ext
6657 LIBS="$am_save_LIBS"
6658 CPPFLAGS="$am_save_CPPFLAGS"
6659 if test "$am_cv_use_build_libiconv" = "yes"; then
6665 # Next, try to find iconv in libc.
6666 if test "$am_cv_func_iconv" != yes; then
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6674 iconv_t cd = iconv_open("","");
6675 iconv(cd,NULL,NULL,NULL,NULL);
6681 if ac_fn_c_try_link "$LINENO"; then :
6682 am_cv_func_iconv=yes
6684 rm -f core conftest.err conftest.$ac_objext \
6685 conftest$ac_exeext conftest.$ac_ext
6688 # If iconv was not in libc, try -liconv. In this case, arrange to
6689 # look in the libiconv prefix, if it was specified by the user.
6690 if test "$am_cv_func_iconv" != yes; then
6691 am_save_CPPFLAGS="$CPPFLAGS"
6692 am_save_LIBS="$LIBS"
6693 if test -n "$LIBICONV_INCLUDE"; then
6694 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6695 LIBS="$LIBS $LIBICONV_LIBDIR"
6697 LIBS="$LIBS -liconv"
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6705 iconv_t cd = iconv_open("","");
6706 iconv(cd,NULL,NULL,NULL,NULL);
6712 if ac_fn_c_try_link "$LINENO"; then :
6714 am_cv_func_iconv=yes
6716 rm -f core conftest.err conftest.$ac_objext \
6717 conftest$ac_exeext conftest.$ac_ext
6718 LIBS="$am_save_LIBS"
6719 CPPFLAGS="$am_save_CPPFLAGS"
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6724 $as_echo "$am_cv_func_iconv" >&6; }
6726 # Set the various flags based on the cache variables. We can't rely
6727 # on the flags to remain set from the above code, due to caching.
6729 if test "$am_cv_lib_iconv" = yes; then
6735 if test "$am_cv_use_build_libiconv" = yes; then
6736 LIBICONV="$am_cv_build_libiconv_path"
6738 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
6740 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6741 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6743 if test "$am_cv_func_iconv" = yes; then
6745 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6748 $as_echo_n "checking for iconv declaration... " >&6; }
6749 if test "${am_cv_proto_iconv+set}" = set; then :
6750 $as_echo_n "(cached) " >&6
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6762 #if defined(__STDC__) || defined(__cplusplus)
6763 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777 am_cv_proto_iconv_arg1=""
6779 am_cv_proto_iconv_arg1="const"
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 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);"
6785 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6787 }$am_cv_proto_iconv" >&5
6789 }$am_cv_proto_iconv" >&6; }
6791 cat >>confdefs.h <<_ACEOF
6792 #define ICONV_CONST $am_cv_proto_iconv_arg1
6798 # GDB may fork/exec the iconv program to get the list of supported character
6799 # sets. Allow the user to specify where to find it.
6800 # There are several factors affecting the choice of option name:
6801 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6802 # the build-time location of libiconv files.
6803 # - The program we need to find is iconv, which comes with glibc. The user
6804 # doesn't necessarily have libiconv installed. Therefore naming this
6805 # --with-libiconv-foo feels wrong.
6806 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6807 # defined to work on directories not files (though it really doesn't know
6809 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6810 # with --with-libiconv-prefix.
6811 # Putting these together is why the option name is --with-iconv-bin.
6814 # Check whether --with-iconv-bin was given.
6815 if test "${with_iconv_bin+set}" = set; then :
6816 withval=$with_iconv_bin; iconv_bin="${withval}"
6818 cat >>confdefs.h <<_ACEOF
6819 #define ICONV_BIN "${iconv_bin}"
6823 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6824 if test "x$prefix" = xNONE; then
6825 test_prefix=/usr/local
6830 test_prefix=$exec_prefix
6833 case ${iconv_bin} in
6834 "${test_prefix}"|"${test_prefix}/"*|\
6835 '${exec_prefix}'|'${exec_prefix}/'*)
6840 cat >>confdefs.h <<_ACEOF
6841 #define ICONV_BIN_RELOCATABLE $value
6849 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6850 # There is a very specific comment in /usr/include/curses.h explaining that
6851 # termcap routines built into libcurses must not be used.
6853 # The symptoms we observed so far is GDB unexpectedly changing
6854 # the terminal settings when tgetent is called - this is particularly
6855 # visible as the output is missing carriage returns, and so rapidly
6856 # becomes very hard to read.
6858 # The readline configure script has already decided that libtermcap
6859 # was enough for its purposes, and so decided to build readline using
6860 # libtermcap. Since the TUI mode requires curses, building GDB with
6861 # TUI enabled results in both libraries to be used at the same time,
6862 # which is not allowed. This basically means that GDB with TUI is
6863 # broken on alpha-osf.
6867 if test x"$enable_tui" = xyes; then
6868 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6870 if test x"$enable_tui" = xauto; then
6876 # For the TUI, we need enhanced curses functionality.
6877 if test x"$enable_tui" != xno; then
6882 if test x"$prefer_curses" = xyes; then
6883 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6884 # curses library because the latter might not provide all the
6885 # functionality we need. However, this leads to problems on systems
6886 # where the linker searches /usr/local/lib, but the compiler doesn't
6887 # search /usr/local/include, if ncurses is installed in /usr/local. A
6888 # default installation of ncurses on alpha*-dec-osf* will lead to such
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
6891 $as_echo_n "checking for library containing waddstr... " >&6; }
6892 if test "${ac_cv_search_waddstr+set}" = set; then :
6893 $as_echo_n "(cached) " >&6
6895 ac_func_search_save_LIBS=$LIBS
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6899 /* Override any GCC internal prototype to avoid an error.
6900 Use char because int might match the return type of a GCC
6901 builtin and then its argument prototype would still apply. */
6914 for ac_lib in '' ncurses cursesX curses; do
6915 if test -z "$ac_lib"; then
6916 ac_res="none required"
6919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6921 if ac_fn_c_try_link "$LINENO"; then :
6922 ac_cv_search_waddstr=$ac_res
6924 rm -f core conftest.err conftest.$ac_objext \
6926 if test "${ac_cv_search_waddstr+set}" = set; then :
6930 if test "${ac_cv_search_waddstr+set}" = set; then :
6933 ac_cv_search_waddstr=no
6936 LIBS=$ac_func_search_save_LIBS
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
6939 $as_echo "$ac_cv_search_waddstr" >&6; }
6940 ac_res=$ac_cv_search_waddstr
6941 if test "$ac_res" != no; then :
6942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6947 if test "$ac_cv_search_waddstr" != no; then
6952 # Check whether we should enable the TUI, but only do so if we really
6954 if test x"$enable_tui" != xno; then
6955 if test -d $srcdir/tui; then
6956 if test "$curses_found" != no; then
6957 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
6958 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
6959 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
6960 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
6962 if test x"$enable_tui" = xyes; then
6963 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
6966 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
6972 # Since GDB uses Readline, we need termcap functionality. In many
6973 # cases this will be provided by the curses library, but some systems
6974 # have a seperate termcap library, or no curses library at all.
6978 if test -d $srcdir/libtermcap; then
6979 LIBS="../libtermcap/libtermcap.a $LIBS"
6980 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
6983 ac_cv_search_tgetent="none required"
6986 ac_cv_search_tgetent="none required"
6987 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
6991 # These are the libraries checked by Readline.
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
6993 $as_echo_n "checking for library containing tgetent... " >&6; }
6994 if test "${ac_cv_search_tgetent+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6997 ac_func_search_save_LIBS=$LIBS
6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h. */
7001 /* Override any GCC internal prototype to avoid an error.
7002 Use char because int might match the return type of a GCC
7003 builtin and then its argument prototype would still apply. */
7016 for ac_lib in '' termcap tinfo curses ncurses; do
7017 if test -z "$ac_lib"; then
7018 ac_res="none required"
7021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7023 if ac_fn_c_try_link "$LINENO"; then :
7024 ac_cv_search_tgetent=$ac_res
7026 rm -f core conftest.err conftest.$ac_objext \
7028 if test "${ac_cv_search_tgetent+set}" = set; then :
7032 if test "${ac_cv_search_tgetent+set}" = set; then :
7035 ac_cv_search_tgetent=no
7038 LIBS=$ac_func_search_save_LIBS
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7041 $as_echo "$ac_cv_search_tgetent" >&6; }
7042 ac_res=$ac_cv_search_tgetent
7043 if test "$ac_res" != no; then :
7044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7049 if test "$ac_cv_search_tgetent" = no; then
7050 as_fn_error "no termcap library found" "$LINENO" 5
7054 # Check whether --with-system-readline was given.
7055 if test "${with_system_readline+set}" = set; then :
7056 withval=$with_system_readline;
7060 if test "$with_system_readline" = yes; then
7064 READLINE_TEXI_INCFLAG=
7066 READLINE='$(READLINE_DIR)/libreadline.a'
7067 READLINE_DEPS='$(READLINE)'
7068 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7069 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
7076 # Generate jit-reader.h
7078 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7081 # The cast to long int works around a bug in the HP C Compiler
7082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7084 # This bug is HP SR number 8606223364.
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7086 $as_echo_n "checking size of unsigned long long... " >&6; }
7087 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7088 $as_echo_n "(cached) " >&6
7090 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7093 if test "$ac_cv_type_unsigned_long_long" = yes; then
7094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7096 { as_fn_set_status 77
7097 as_fn_error "cannot compute sizeof (unsigned long long)
7098 See \`config.log' for more details." "$LINENO" 5; }; }
7100 ac_cv_sizeof_unsigned_long_long=0
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7106 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7110 cat >>confdefs.h <<_ACEOF
7111 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7115 # The cast to long int works around a bug in the HP C Compiler
7116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7118 # This bug is HP SR number 8606223364.
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7120 $as_echo_n "checking size of unsigned long... " >&6; }
7121 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7122 $as_echo_n "(cached) " >&6
7124 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7127 if test "$ac_cv_type_unsigned_long" = yes; then
7128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7130 { as_fn_set_status 77
7131 as_fn_error "cannot compute sizeof (unsigned long)
7132 See \`config.log' for more details." "$LINENO" 5; }; }
7134 ac_cv_sizeof_unsigned_long=0
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7140 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7144 cat >>confdefs.h <<_ACEOF
7145 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7149 # The cast to long int works around a bug in the HP C Compiler
7150 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7151 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7152 # This bug is HP SR number 8606223364.
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7154 $as_echo_n "checking size of unsigned __int128... " >&6; }
7155 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
7158 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7161 if test "$ac_cv_type_unsigned___int128" = yes; then
7162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7164 { as_fn_set_status 77
7165 as_fn_error "cannot compute sizeof (unsigned __int128)
7166 See \`config.log' for more details." "$LINENO" 5; }; }
7168 ac_cv_sizeof_unsigned___int128=0
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7174 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7178 cat >>confdefs.h <<_ACEOF
7179 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7184 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7185 TARGET_PTR="unsigned long"
7186 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7187 TARGET_PTR="unsigned long long"
7188 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7189 TARGET_PTR="unsigned __int128"
7191 TARGET_PTR="unsigned long"
7195 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7199 $as_echo_n "checking for library containing dlopen... " >&6; }
7200 if test "${ac_cv_search_dlopen+set}" = set; then :
7201 $as_echo_n "(cached) " >&6
7203 ac_func_search_save_LIBS=$LIBS
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7207 /* Override any GCC internal prototype to avoid an error.
7208 Use char because int might match the return type of a GCC
7209 builtin and then its argument prototype would still apply. */
7222 for ac_lib in '' dl; do
7223 if test -z "$ac_lib"; then
7224 ac_res="none required"
7227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7229 if ac_fn_c_try_link "$LINENO"; then :
7230 ac_cv_search_dlopen=$ac_res
7232 rm -f core conftest.err conftest.$ac_objext \
7234 if test "${ac_cv_search_dlopen+set}" = set; then :
7238 if test "${ac_cv_search_dlopen+set}" = set; then :
7241 ac_cv_search_dlopen=no
7244 LIBS=$ac_func_search_save_LIBS
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7247 $as_echo "$ac_cv_search_dlopen" >&6; }
7248 ac_res=$ac_cv_search_dlopen
7249 if test "$ac_res" != no; then :
7250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7257 # Check whether --with-jit-reader-dir was given.
7258 if test "${with_jit_reader_dir+set}" = set; then :
7259 withval=$with_jit_reader_dir;
7260 JIT_READER_DIR=$withval
7262 JIT_READER_DIR=${libdir}/gdb
7266 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7267 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7268 ac_define_dir=`eval echo $JIT_READER_DIR`
7269 ac_define_dir=`eval echo $ac_define_dir`
7271 cat >>confdefs.h <<_ACEOF
7272 #define JIT_READER_DIR "$ac_define_dir"
7278 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7279 if test "x$prefix" = xNONE; then
7280 test_prefix=/usr/local
7285 test_prefix=$exec_prefix
7288 case ${ac_define_dir} in
7289 "${test_prefix}"|"${test_prefix}/"*|\
7290 '${exec_prefix}'|'${exec_prefix}/'*)
7295 cat >>confdefs.h <<_ACEOF
7296 #define JIT_READER_DIR_RELOCATABLE $value
7303 # Check whether --with-expat was given.
7304 if test "${with_expat+set}" = set; then :
7305 withval=$with_expat;
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7311 $as_echo_n "checking whether to use expat... " >&6; }
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7313 $as_echo "$with_expat" >&6; }
7315 if test "${with_expat}" = no; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7317 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7321 if test "X$prefix" = "XNONE"; then
7322 acl_final_prefix="$ac_default_prefix"
7324 acl_final_prefix="$prefix"
7326 if test "X$exec_prefix" = "XNONE"; then
7327 acl_final_exec_prefix='${prefix}'
7329 acl_final_exec_prefix="$exec_prefix"
7331 acl_save_prefix="$prefix"
7332 prefix="$acl_final_prefix"
7333 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7334 prefix="$acl_save_prefix"
7337 # Check whether --with-gnu-ld was given.
7338 if test "${with_gnu_ld+set}" = set; then :
7339 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7344 # Prepare PATH_SEPARATOR.
7345 # The user is always right.
7346 if test "${PATH_SEPARATOR+set}" != set; then
7347 echo "#! /bin/sh" >conf$$.sh
7348 echo "exit 0" >>conf$$.sh
7350 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7358 if test "$GCC" = yes; then
7359 # Check if gcc -print-prog-name=ld gives a path.
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7361 $as_echo_n "checking for ld used by GCC... " >&6; }
7364 # gcc leaves a trailing carriage return which upsets mingw
7365 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7367 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7370 # Accept absolute paths.
7371 [\\/]* | [A-Za-z]:[\\/]*)
7372 re_direlt='/[^/][^/]*/\.\./'
7373 # Canonicalize the path of ld
7374 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7375 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7376 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7378 test -z "$LD" && LD="$ac_prog"
7381 # If it fails, then pretend we aren't using GCC.
7385 # If it is relative, then search for the first ld in PATH.
7389 elif test "$with_gnu_ld" = yes; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7391 $as_echo_n "checking for GNU ld... " >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7394 $as_echo_n "checking for non-GNU ld... " >&6; }
7396 if test "${acl_cv_path_LD+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7399 if test -z "$LD"; then
7400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7401 for ac_dir in $PATH; do
7402 test -z "$ac_dir" && ac_dir=.
7403 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7404 acl_cv_path_LD="$ac_dir/$ac_prog"
7405 # Check to see if the program is GNU ld. I'd rather use --version,
7406 # but apparently some GNU ld's only accept -v.
7407 # Break only if it was the GNU/non-GNU ld that we prefer.
7408 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7409 test "$with_gnu_ld" != no && break
7411 test "$with_gnu_ld" != yes && break
7417 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7421 LD="$acl_cv_path_LD"
7422 if test -n "$LD"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7424 $as_echo "$LD" >&6; }
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7429 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7431 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7432 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7433 $as_echo_n "(cached) " >&6
7435 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7436 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7437 acl_cv_prog_gnu_ld=yes
7439 acl_cv_prog_gnu_ld=no
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7443 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7444 with_gnu_ld=$acl_cv_prog_gnu_ld
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7449 $as_echo_n "checking for shared library run path origin... " >&6; }
7450 if test "${acl_cv_rpath+set}" = set; then :
7451 $as_echo_n "(cached) " >&6
7454 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7455 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7462 $as_echo "$acl_cv_rpath" >&6; }
7464 libext="$acl_cv_libext"
7465 shlibext="$acl_cv_shlibext"
7466 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7467 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7468 hardcode_direct="$acl_cv_hardcode_direct"
7469 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7470 # Check whether --enable-rpath was given.
7471 if test "${enable_rpath+set}" = set; then :
7472 enableval=$enable_rpath; :
7488 acl_save_prefix="$prefix"
7489 prefix="$acl_final_prefix"
7490 acl_save_exec_prefix="$exec_prefix"
7491 exec_prefix="$acl_final_exec_prefix"
7493 eval additional_includedir=\"$includedir\"
7494 eval additional_libdir=\"$libdir\"
7496 exec_prefix="$acl_save_exec_prefix"
7497 prefix="$acl_save_prefix"
7500 # Check whether --with-libexpat-prefix was given.
7501 if test "${with_libexpat_prefix+set}" = set; then :
7502 withval=$with_libexpat_prefix;
7503 if test "X$withval" = "Xno"; then
7506 if test "X$withval" = "X"; then
7508 acl_save_prefix="$prefix"
7509 prefix="$acl_final_prefix"
7510 acl_save_exec_prefix="$exec_prefix"
7511 exec_prefix="$acl_final_exec_prefix"
7513 eval additional_includedir=\"$includedir\"
7514 eval additional_libdir=\"$libdir\"
7516 exec_prefix="$acl_save_exec_prefix"
7517 prefix="$acl_save_prefix"
7520 additional_includedir="$withval/include"
7521 additional_libdir="$withval/lib"
7532 names_already_handled=
7533 names_next_round='expat '
7534 while test -n "$names_next_round"; do
7535 names_this_round="$names_next_round"
7537 for name in $names_this_round; do
7539 for n in $names_already_handled; do
7540 if test "$n" = "$name"; then
7545 if test -z "$already_handled"; then
7546 names_already_handled="$names_already_handled $name"
7547 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7548 eval value=\"\$HAVE_LIB$uppername\"
7549 if test -n "$value"; then
7550 if test "$value" = yes; then
7551 eval value=\"\$LIB$uppername\"
7552 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
7553 eval value=\"\$LTLIB$uppername\"
7554 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7563 if test $use_additional = yes; then
7564 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7565 found_dir="$additional_libdir"
7566 found_so="$additional_libdir/lib$name.$shlibext"
7567 if test -f "$additional_libdir/lib$name.la"; then
7568 found_la="$additional_libdir/lib$name.la"
7571 if test -f "$additional_libdir/lib$name.$libext"; then
7572 found_dir="$additional_libdir"
7573 found_a="$additional_libdir/lib$name.$libext"
7574 if test -f "$additional_libdir/lib$name.la"; then
7575 found_la="$additional_libdir/lib$name.la"
7580 if test "X$found_dir" = "X"; then
7581 for x in $LDFLAGS $LTLIBEXPAT; do
7583 acl_save_prefix="$prefix"
7584 prefix="$acl_final_prefix"
7585 acl_save_exec_prefix="$exec_prefix"
7586 exec_prefix="$acl_final_exec_prefix"
7588 exec_prefix="$acl_save_exec_prefix"
7589 prefix="$acl_save_prefix"
7593 dir=`echo "X$x" | sed -e 's/^X-L//'`
7594 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7596 found_so="$dir/lib$name.$shlibext"
7597 if test -f "$dir/lib$name.la"; then
7598 found_la="$dir/lib$name.la"
7601 if test -f "$dir/lib$name.$libext"; then
7603 found_a="$dir/lib$name.$libext"
7604 if test -f "$dir/lib$name.la"; then
7605 found_la="$dir/lib$name.la"
7611 if test "X$found_dir" != "X"; then
7616 if test "X$found_dir" != "X"; then
7617 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7618 if test "X$found_so" != "X"; then
7619 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7620 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7623 for x in $ltrpathdirs; do
7624 if test "X$x" = "X$found_dir"; then
7629 if test -z "$haveit"; then
7630 ltrpathdirs="$ltrpathdirs $found_dir"
7632 if test "$hardcode_direct" = yes; then
7633 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7635 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7636 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7638 for x in $rpathdirs; do
7639 if test "X$x" = "X$found_dir"; then
7644 if test -z "$haveit"; then
7645 rpathdirs="$rpathdirs $found_dir"
7649 for x in $LDFLAGS $LIBEXPAT; do
7651 acl_save_prefix="$prefix"
7652 prefix="$acl_final_prefix"
7653 acl_save_exec_prefix="$exec_prefix"
7654 exec_prefix="$acl_final_exec_prefix"
7656 exec_prefix="$acl_save_exec_prefix"
7657 prefix="$acl_save_prefix"
7659 if test "X$x" = "X-L$found_dir"; then
7664 if test -z "$haveit"; then
7665 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7667 if test "$hardcode_minus_L" != no; then
7668 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7670 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7676 if test "X$found_a" != "X"; then
7677 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7679 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7682 additional_includedir=
7683 case "$found_dir" in
7685 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7686 additional_includedir="$basedir/include"
7689 if test "X$additional_includedir" != "X"; then
7690 if test "X$additional_includedir" != "X/usr/include"; then
7692 if test "X$additional_includedir" = "X/usr/local/include"; then
7693 if test -n "$GCC"; then
7695 linux*) haveit=yes;;
7699 if test -z "$haveit"; then
7700 for x in $CPPFLAGS $INCEXPAT; do
7702 acl_save_prefix="$prefix"
7703 prefix="$acl_final_prefix"
7704 acl_save_exec_prefix="$exec_prefix"
7705 exec_prefix="$acl_final_exec_prefix"
7707 exec_prefix="$acl_save_exec_prefix"
7708 prefix="$acl_save_prefix"
7710 if test "X$x" = "X-I$additional_includedir"; then
7715 if test -z "$haveit"; then
7716 if test -d "$additional_includedir"; then
7717 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7723 if test -n "$found_la"; then
7724 save_libdir="$libdir"
7726 */* | *\\*) . "$found_la" ;;
7727 *) . "./$found_la" ;;
7729 libdir="$save_libdir"
7730 for dep in $dependency_libs; do
7733 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7734 if test "X$additional_libdir" != "X/usr/lib"; then
7736 if test "X$additional_libdir" = "X/usr/local/lib"; then
7737 if test -n "$GCC"; then
7739 linux*) haveit=yes;;
7743 if test -z "$haveit"; then
7745 for x in $LDFLAGS $LIBEXPAT; do
7747 acl_save_prefix="$prefix"
7748 prefix="$acl_final_prefix"
7749 acl_save_exec_prefix="$exec_prefix"
7750 exec_prefix="$acl_final_exec_prefix"
7752 exec_prefix="$acl_save_exec_prefix"
7753 prefix="$acl_save_prefix"
7755 if test "X$x" = "X-L$additional_libdir"; then
7760 if test -z "$haveit"; then
7761 if test -d "$additional_libdir"; then
7762 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7766 for x in $LDFLAGS $LTLIBEXPAT; do
7768 acl_save_prefix="$prefix"
7769 prefix="$acl_final_prefix"
7770 acl_save_exec_prefix="$exec_prefix"
7771 exec_prefix="$acl_final_exec_prefix"
7773 exec_prefix="$acl_save_exec_prefix"
7774 prefix="$acl_save_prefix"
7776 if test "X$x" = "X-L$additional_libdir"; then
7781 if test -z "$haveit"; then
7782 if test -d "$additional_libdir"; then
7783 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7790 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7791 if test "$enable_rpath" != no; then
7793 for x in $rpathdirs; do
7794 if test "X$x" = "X$dir"; then
7799 if test -z "$haveit"; then
7800 rpathdirs="$rpathdirs $dir"
7803 for x in $ltrpathdirs; do
7804 if test "X$x" = "X$dir"; then
7809 if test -z "$haveit"; then
7810 ltrpathdirs="$ltrpathdirs $dir"
7815 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7818 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7821 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7822 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7828 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7829 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7835 if test "X$rpathdirs" != "X"; then
7836 if test -n "$hardcode_libdir_separator"; then
7838 for found_dir in $rpathdirs; do
7839 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7841 acl_save_libdir="$libdir"
7843 eval flag=\"$hardcode_libdir_flag_spec\"
7844 libdir="$acl_save_libdir"
7845 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7847 for found_dir in $rpathdirs; do
7848 acl_save_libdir="$libdir"
7850 eval flag=\"$hardcode_libdir_flag_spec\"
7851 libdir="$acl_save_libdir"
7852 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7856 if test "X$ltrpathdirs" != "X"; then
7857 for found_dir in $ltrpathdirs; do
7858 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7863 ac_save_CPPFLAGS="$CPPFLAGS"
7865 for element in $INCEXPAT; do
7867 for x in $CPPFLAGS; do
7869 acl_save_prefix="$prefix"
7870 prefix="$acl_final_prefix"
7871 acl_save_exec_prefix="$exec_prefix"
7872 exec_prefix="$acl_final_exec_prefix"
7874 exec_prefix="$acl_save_exec_prefix"
7875 prefix="$acl_save_prefix"
7877 if test "X$x" = "X$element"; then
7882 if test -z "$haveit"; then
7883 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
7889 $as_echo_n "checking for libexpat... " >&6; }
7890 if test "${ac_cv_libexpat+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7894 ac_save_LIBS="$LIBS"
7895 LIBS="$LIBS $LIBEXPAT"
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7902 XML_Parser p = XML_ParserCreate (0);
7907 if ac_fn_c_try_link "$LINENO"; then :
7912 rm -f core conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914 LIBS="$ac_save_LIBS"
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
7918 $as_echo "$ac_cv_libexpat" >&6; }
7919 if test "$ac_cv_libexpat" = yes; then
7922 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
7925 $as_echo_n "checking how to link with libexpat... " >&6; }
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
7927 $as_echo "$LIBEXPAT" >&6; }
7930 CPPFLAGS="$ac_save_CPPFLAGS"
7940 if test "$HAVE_LIBEXPAT" != yes; then
7941 if test "$with_expat" = yes; then
7942 as_fn_error "expat is missing or unusable" "$LINENO" 5
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7945 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7949 LIBS="$LIBS $LIBEXPAT"
7950 for ac_func in XML_StopParser
7952 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
7953 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
7954 cat >>confdefs.h <<_ACEOF
7955 #define HAVE_XML_STOPPARSER 1
7970 # Check whether --with-python was given.
7971 if test "${with_python+set}" = set; then :
7972 withval=$with_python;
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
7978 $as_echo_n "checking whether to use python... " >&6; }
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7980 $as_echo "$with_python" >&6; }
7982 if test "${with_python}" = no; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
7984 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
7987 case "${with_python}" in
7989 if test -d ${with_python}; then
7990 # Assume the python binary is ${with_python}/bin/python.
7991 python_prog="${with_python}/bin/python"
7993 # If python does not exit ${with_python}/bin, then try in
7994 # ${with_python}. On Windows/MinGW, this is where the Python
7996 if test ! -x "${python_prog}"; then
7997 python_prog="${with_python}/python"
8000 if test ! -x "${python_prog}"; then
8001 # Fall back to gdb 7.0/7.1 behaviour.
8003 python_prefix=${with_python}
8005 elif test -x "${with_python}"; then
8006 # While we can't run python compiled for $host (unless host == build),
8007 # the user could write a script that provides the needed information,
8008 # so we support that.
8009 python_prog=${with_python}
8012 as_fn_error "invalid value for --with-python" "$LINENO" 5
8016 # Disallow --with-python=foo/bar.
8017 as_fn_error "invalid value for --with-python" "$LINENO" 5
8020 # The user has either specified auto, yes, or the name of the python
8021 # program assumed to be in $PATH.
8023 case "${with_python}" in
8025 if test ${build} = ${host}; then
8026 # Extract the first word of "python", so it can be a program name with args.
8027 set dummy python; ac_word=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8033 case $python_prog_path in
8035 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8057 python_prog_path=$ac_cv_path_python_prog_path
8058 if test -n "$python_prog_path"; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8060 $as_echo "$python_prog_path" >&6; }
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8067 if test "${python_prog_path}" = missing; then
8070 python_prog=${python_prog_path}
8073 # Not much we can do except assume the cross-compiler will find the
8079 # While we can't run python compiled for $host (unless host == build),
8080 # the user could write a script that provides the needed information,
8081 # so we support that.
8082 python_prog="${with_python}"
8083 # Extract the first word of "${python_prog}", so it can be a program name with args.
8084 set dummy ${python_prog}; ac_word=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8088 $as_echo_n "(cached) " >&6
8090 case $python_prog_path in
8092 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8114 python_prog_path=$ac_cv_path_python_prog_path
8115 if test -n "$python_prog_path"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8117 $as_echo "$python_prog_path" >&6; }
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8124 if test "${python_prog_path}" = missing; then
8125 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8131 if test "${python_prog}" != missing; then
8132 # We have a python program to use, but it may be too old.
8133 # Don't flag an error for --with-python=auto (the default).
8134 have_python_config=yes
8135 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8136 if test $? != 0; then
8137 have_python_config=failed
8138 if test "${with_python}" != auto; then
8139 as_fn_error "failure running python-config --includes" "$LINENO" 5
8142 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8143 if test $? != 0; then
8144 have_python_config=failed
8145 if test "${with_python}" != auto; then
8146 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8149 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8150 if test $? != 0; then
8151 have_python_config=failed
8152 if test "${with_python}" != auto; then
8153 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8157 # We do not have a python executable we can use to determine where
8158 # to find the Python headers and libs. We cannot guess the include
8159 # path from the python_prefix either, because that include path
8160 # depends on the Python version. So, there is nothing much we can
8161 # do except assume that the compiler will be able to find those files.
8164 have_python_config=no
8167 # If we have python-config, only try the configuration it provides.
8168 # Otherwise fallback on the old way of trying different versions of
8172 if test "${have_python_config}" = yes; then
8173 # Determine the Python version by extracting "-lpython<version>"
8174 # part of the python_libs. <version> is usually X.Y with X and Y
8175 # being decimal numbers, but can also be XY (seen on Windows).
8177 # The extraction is performed using sed with a regular expression.
8178 # Initially, the regexp used was using the '?' quantifier to make
8179 # the dot in the version number optional. Unfortunately, this
8180 # does not work with non-GNU versions of sed because, because of
8181 # what looks like a limitation (the '?' quantifier does not work
8182 # with back-references). We work around this limitation by using
8183 # the '*' quantifier instead. It means that, in theory, we might
8184 # match unexpected version strings such as "-lpython2..7", but
8185 # this seems unlikely in practice. And even if that happens,
8186 # an error will be triggered later on, when checking that version
8188 python_version=`echo " ${python_libs} " \
8189 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8190 case "${python_version}" in
8193 version=${python_version}
8195 new_CPPFLAGS=${python_includes}
8196 new_LIBS=${python_libs}
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8198 $as_echo_n "checking for ${version}... " >&6; }
8199 save_CPPFLAGS=$CPPFLAGS
8201 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8202 LIBS="$LIBS $new_LIBS"
8203 found_usable_python=no
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8215 if ac_fn_c_try_link "$LINENO"; then :
8216 have_libpython=${version}
8217 found_usable_python=yes
8218 PYTHON_CPPFLAGS=$new_CPPFLAGS
8219 PYTHON_LIBS=$new_LIBS
8221 rm -f core conftest.err conftest.$ac_objext \
8222 conftest$ac_exeext conftest.$ac_ext
8223 CPPFLAGS=$save_CPPFLAGS
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8226 $as_echo "${found_usable_python}" >&6; }
8230 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
8233 elif test "${have_python_config}" != failed; then
8234 if test "${have_libpython}" = no; then
8238 new_CPPFLAGS=${python_includes}
8239 new_LIBS="${python_libs} -lpython2.7"
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8241 $as_echo_n "checking for ${version}... " >&6; }
8242 save_CPPFLAGS=$CPPFLAGS
8244 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8245 LIBS="$LIBS $new_LIBS"
8246 found_usable_python=no
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8258 if ac_fn_c_try_link "$LINENO"; then :
8259 have_libpython=${version}
8260 found_usable_python=yes
8261 PYTHON_CPPFLAGS=$new_CPPFLAGS
8262 PYTHON_LIBS=$new_LIBS
8264 rm -f core conftest.err conftest.$ac_objext \
8265 conftest$ac_exeext conftest.$ac_ext
8266 CPPFLAGS=$save_CPPFLAGS
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8269 $as_echo "${found_usable_python}" >&6; }
8272 if test "${have_libpython}" = no; then
8276 new_CPPFLAGS=${python_includes}
8277 new_LIBS="${python_libs} -lpython2.6"
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8279 $as_echo_n "checking for ${version}... " >&6; }
8280 save_CPPFLAGS=$CPPFLAGS
8282 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8283 LIBS="$LIBS $new_LIBS"
8284 found_usable_python=no
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8296 if ac_fn_c_try_link "$LINENO"; then :
8297 have_libpython=${version}
8298 found_usable_python=yes
8299 PYTHON_CPPFLAGS=$new_CPPFLAGS
8300 PYTHON_LIBS=$new_LIBS
8302 rm -f core conftest.err conftest.$ac_objext \
8303 conftest$ac_exeext conftest.$ac_ext
8304 CPPFLAGS=$save_CPPFLAGS
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8307 $as_echo "${found_usable_python}" >&6; }
8310 if test ${have_libpython} = no; then
8314 new_CPPFLAGS=${python_includes}
8315 new_LIBS="${python_libs} -lpython2.5"
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8317 $as_echo_n "checking for ${version}... " >&6; }
8318 save_CPPFLAGS=$CPPFLAGS
8320 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8321 LIBS="$LIBS $new_LIBS"
8322 found_usable_python=no
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8334 if ac_fn_c_try_link "$LINENO"; then :
8335 have_libpython=${version}
8336 found_usable_python=yes
8337 PYTHON_CPPFLAGS=$new_CPPFLAGS
8338 PYTHON_LIBS=$new_LIBS
8340 rm -f core conftest.err conftest.$ac_objext \
8341 conftest$ac_exeext conftest.$ac_ext
8342 CPPFLAGS=$save_CPPFLAGS
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8345 $as_echo "${found_usable_python}" >&6; }
8348 if test ${have_libpython} = no; then
8352 new_CPPFLAGS=${python_includes}
8353 new_LIBS="${python_libs} -lpython2.4"
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8355 $as_echo_n "checking for ${version}... " >&6; }
8356 save_CPPFLAGS=$CPPFLAGS
8358 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8359 LIBS="$LIBS $new_LIBS"
8360 found_usable_python=no
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8372 if ac_fn_c_try_link "$LINENO"; then :
8373 have_libpython=${version}
8374 found_usable_python=yes
8375 PYTHON_CPPFLAGS=$new_CPPFLAGS
8376 PYTHON_LIBS=$new_LIBS
8378 rm -f core conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8380 CPPFLAGS=$save_CPPFLAGS
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8383 $as_echo "${found_usable_python}" >&6; }
8387 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
8389 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8391 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
8393 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8395 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
8397 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8399 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
8401 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8405 if test "${have_libpython}" = no; then
8406 case "${with_python}" in
8408 as_fn_error "python is missing or unusable" "$LINENO" 5
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8412 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8415 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
8419 if test -n "${python_prefix}"; then
8421 cat >>confdefs.h <<_ACEOF
8422 #define WITH_PYTHON_PATH "${python_prefix}"
8426 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8427 if test "x$prefix" = xNONE; then
8428 test_prefix=/usr/local
8433 test_prefix=$exec_prefix
8436 case ${python_prefix} in
8437 "${test_prefix}"|"${test_prefix}/"*|\
8438 '${exec_prefix}'|'${exec_prefix}/'*)
8443 cat >>confdefs.h <<_ACEOF
8444 #define PYTHON_PATH_RELOCATABLE $value
8452 if test "${have_libpython}" != no; then
8454 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8456 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8457 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8458 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8459 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
8460 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8462 # Flags needed to compile Python code (taken from python-config --cflags).
8463 # We cannot call python-config directly because it will output whatever was
8464 # used when compiling the Python interpreter itself, including flags which
8465 # would make the python-related objects be compiled differently from the
8466 # rest of GDB (e.g., -O2 and -fPIC).
8467 if test "${GCC}" = yes; then
8468 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
8471 if test "x${tentative_python_cflags}" != x; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8473 $as_echo_n "checking compiler flags for python code... " >&6; }
8474 for flag in ${tentative_python_cflags}; do
8475 # Check that the compiler accepts it
8476 saved_CFLAGS="$CFLAGS"
8477 CFLAGS="$CFLAGS $flag"
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8489 if ac_fn_c_try_compile "$LINENO"; then :
8490 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
8492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493 CFLAGS="$saved_CFLAGS"
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8496 $as_echo "${PYTHON_CFLAGS}" >&6; }
8499 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8501 # #define siginfo __siginfo
8503 # The problem is that including Python causes some XOPEN macros to be
8504 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8505 # to false. So, we work around this issue by defining siginfo ourself
8506 # though the command-line.
8508 # On x64 Windows, Python's include headers, and pyconfig.h in
8509 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8510 # version of Windows. Unfortunately, MS_WIN64 is only defined if
8511 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
8512 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8513 # The issue was reported to the Python community, but still isn't
8514 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8517 irix*) if test "${GCC}" = yes; then
8518 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
8522 if test "${GCC}" = yes; then
8523 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
8528 # Note that "python -m threading" cannot be used to check for
8529 # threading support due to a bug in Python 2.7.3
8530 # (http://bugs.python.org/issue15567).
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
8532 $as_echo_n "checking whether python supports threads... " >&6; }
8533 saved_CPPFLAGS="${CPPFLAGS}"
8534 CPPFLAGS="${PYTHON_CPPFLAGS}"
8535 # Note that the test is reversed so that python_has_threads=yes on
8536 # unexpected failures.
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8546 if ac_fn_c_try_cpp "$LINENO"; then :
8547 python_has_threads=no
8549 python_has_threads=yes
8551 rm -f conftest.err conftest.$ac_ext
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
8553 $as_echo "${python_has_threads}" >&6; }
8554 CPPFLAGS="${saved_CPPFLAGS}"
8556 # Even if Python support is not compiled in, we need to have these files
8558 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
8559 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
8560 python/py-prettyprint.c python/py-auto-load.c"
8566 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
8567 # but turn it off if Python is enabled with threads, since -lmcheck is
8568 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
8570 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
8571 && $development; then
8572 libmcheck_default=yes
8574 libmcheck_default=no
8577 # Check whether --enable-libmcheck was given.
8578 if test "${enable_libmcheck+set}" = set; then :
8579 enableval=$enable_libmcheck; case "${enableval}" in
8580 yes | y) ENABLE_LIBMCHECK="yes" ;;
8581 no | n) ENABLE_LIBMCHECK="no" ;;
8582 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
8587 if test -z "${ENABLE_LIBMCHECK}"; then
8588 ENABLE_LIBMCHECK=${libmcheck_default}
8591 if test "$ENABLE_LIBMCHECK" = "yes" ; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
8593 $as_echo_n "checking for main in -lmcheck... " >&6; }
8594 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
8595 $as_echo_n "(cached) " >&6
8597 ac_check_lib_save_LIBS=$LIBS
8598 LIBS="-lmcheck $LIBS"
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8611 if ac_fn_c_try_link "$LINENO"; then :
8612 ac_cv_lib_mcheck_main=yes
8614 ac_cv_lib_mcheck_main=no
8616 rm -f core conftest.err conftest.$ac_objext \
8617 conftest$ac_exeext conftest.$ac_ext
8618 LIBS=$ac_check_lib_save_LIBS
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
8621 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
8622 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
8623 cat >>confdefs.h <<_ACEOF
8624 #define HAVE_LIBMCHECK 1
8627 LIBS="-lmcheck $LIBS"
8634 if test "$ENABLE_LIBMCHECK" = "yes" \
8635 -a "${have_libpython}" != "no" \
8636 -a "${python_has_threads}" = "yes" ; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
8638 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
8641 # ------------------------- #
8642 # Checks for header files. #
8643 # ------------------------- #
8646 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8647 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8649 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8651 $as_echo_n "(cached) " >&6
8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8655 #include <sys/types.h>
8667 if ac_fn_c_try_compile "$LINENO"; then :
8668 eval "$as_ac_Header=yes"
8670 eval "$as_ac_Header=no"
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 eval ac_res=\$$as_ac_Header
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8676 $as_echo "$ac_res" >&6; }
8677 eval as_val=\$$as_ac_Header
8678 if test "x$as_val" = x""yes; then :
8679 cat >>confdefs.h <<_ACEOF
8680 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8683 ac_header_dirent=$ac_hdr; break
8687 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8688 if test $ac_header_dirent = dirent.h; then
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8690 $as_echo_n "checking for library containing opendir... " >&6; }
8691 if test "${ac_cv_search_opendir+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
8694 ac_func_search_save_LIBS=$LIBS
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8698 /* Override any GCC internal prototype to avoid an error.
8699 Use char because int might match the return type of a GCC
8700 builtin and then its argument prototype would still apply. */
8713 for ac_lib in '' dir; do
8714 if test -z "$ac_lib"; then
8715 ac_res="none required"
8718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8720 if ac_fn_c_try_link "$LINENO"; then :
8721 ac_cv_search_opendir=$ac_res
8723 rm -f core conftest.err conftest.$ac_objext \
8725 if test "${ac_cv_search_opendir+set}" = set; then :
8729 if test "${ac_cv_search_opendir+set}" = set; then :
8732 ac_cv_search_opendir=no
8735 LIBS=$ac_func_search_save_LIBS
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8738 $as_echo "$ac_cv_search_opendir" >&6; }
8739 ac_res=$ac_cv_search_opendir
8740 if test "$ac_res" != no; then :
8741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8747 $as_echo_n "checking for library containing opendir... " >&6; }
8748 if test "${ac_cv_search_opendir+set}" = set; then :
8749 $as_echo_n "(cached) " >&6
8751 ac_func_search_save_LIBS=$LIBS
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8755 /* Override any GCC internal prototype to avoid an error.
8756 Use char because int might match the return type of a GCC
8757 builtin and then its argument prototype would still apply. */
8770 for ac_lib in '' x; do
8771 if test -z "$ac_lib"; then
8772 ac_res="none required"
8775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8777 if ac_fn_c_try_link "$LINENO"; then :
8778 ac_cv_search_opendir=$ac_res
8780 rm -f core conftest.err conftest.$ac_objext \
8782 if test "${ac_cv_search_opendir+set}" = set; then :
8786 if test "${ac_cv_search_opendir+set}" = set; then :
8789 ac_cv_search_opendir=no
8792 LIBS=$ac_func_search_save_LIBS
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8795 $as_echo "$ac_cv_search_opendir" >&6; }
8796 ac_res=$ac_cv_search_opendir
8797 if test "$ac_res" != no; then :
8798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8805 $as_echo_n "checking for ANSI C header files... " >&6; }
8806 if test "${ac_cv_header_stdc+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8824 if ac_fn_c_try_compile "$LINENO"; then :
8825 ac_cv_header_stdc=yes
8827 ac_cv_header_stdc=no
8829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 if test $ac_cv_header_stdc = yes; then
8832 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8839 $EGREP "memchr" >/dev/null 2>&1; then :
8842 ac_cv_header_stdc=no
8848 if test $ac_cv_header_stdc = yes; then
8849 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8856 $EGREP "free" >/dev/null 2>&1; then :
8859 ac_cv_header_stdc=no
8865 if test $ac_cv_header_stdc = yes; then
8866 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8867 if test "$cross_compiling" = yes; then :
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8874 #if ((' ' & 0x0FF) == 0x020)
8875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8878 # define ISLOWER(c) \
8879 (('a' <= (c) && (c) <= 'i') \
8880 || ('j' <= (c) && (c) <= 'r') \
8881 || ('s' <= (c) && (c) <= 'z'))
8882 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8890 for (i = 0; i < 256; i++)
8891 if (XOR (islower (i), ISLOWER (i))
8892 || toupper (i) != TOUPPER (i))
8897 if ac_fn_c_try_run "$LINENO"; then :
8900 ac_cv_header_stdc=no
8902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8903 conftest.$ac_objext conftest.beam conftest.$ac_ext
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8909 $as_echo "$ac_cv_header_stdc" >&6; }
8910 if test $ac_cv_header_stdc = yes; then
8912 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8916 # elf_hp.h is for HP/UX 64-bit shared library support.
8917 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h sys/socket.h proc_service.h \
8918 thread_db.h signal.h stddef.h \
8919 stdlib.h string.h memory.h strings.h sys/fault.h \
8920 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
8921 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
8922 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
8923 sys/types.h sys/wait.h wait.h termios.h termio.h \
8924 sgtty.h unistd.h elf_hp.h locale.h \
8925 dlfcn.h sys/un.h linux/perf_event.h
8927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8928 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8929 eval as_val=\$$as_ac_Header
8930 if test "x$as_val" = x""yes; then :
8931 cat >>confdefs.h <<_ACEOF
8932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8939 for ac_header in sys/proc.h
8941 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
8942 # include <sys/param.h>
8946 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
8947 cat >>confdefs.h <<_ACEOF
8948 #define HAVE_SYS_PROC_H 1
8955 for ac_header in sys/user.h
8957 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
8958 # include <sys/param.h>
8962 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
8963 cat >>confdefs.h <<_ACEOF
8964 #define HAVE_SYS_USER_H 1
8972 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
8973 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
8974 # think that we don't have <curses.h> if we're using GCC.
8977 if test "$GCC" = yes; then
8979 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
8983 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
8985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8986 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8987 eval as_val=\$$as_ac_Header
8988 if test "x$as_val" = x""yes; then :
8989 cat >>confdefs.h <<_ACEOF
8990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8997 for ac_header in term.h
8999 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9000 # include <curses.h>
9004 if test "x$ac_cv_header_term_h" = x""yes; then :
9005 cat >>confdefs.h <<_ACEOF
9006 #define HAVE_TERM_H 1
9014 # ------------------------- #
9015 # Checks for declarations. #
9016 # ------------------------- #
9018 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
9019 if test "x$ac_cv_have_decl_free" = x""yes; then :
9025 cat >>confdefs.h <<_ACEOF
9026 #define HAVE_DECL_FREE $ac_have_decl
9028 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
9029 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
9035 cat >>confdefs.h <<_ACEOF
9036 #define HAVE_DECL_MALLOC $ac_have_decl
9038 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9039 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
9045 cat >>confdefs.h <<_ACEOF
9046 #define HAVE_DECL_REALLOC $ac_have_decl
9048 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
9049 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
9055 cat >>confdefs.h <<_ACEOF
9056 #define HAVE_DECL_STRERROR $ac_have_decl
9058 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
9059 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
9065 cat >>confdefs.h <<_ACEOF
9066 #define HAVE_DECL_STRSTR $ac_have_decl
9068 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
9069 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
9075 cat >>confdefs.h <<_ACEOF
9076 #define HAVE_DECL_GETOPT $ac_have_decl
9078 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9079 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
9085 cat >>confdefs.h <<_ACEOF
9086 #define HAVE_DECL_SNPRINTF $ac_have_decl
9088 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9089 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
9095 cat >>confdefs.h <<_ACEOF
9096 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9101 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9102 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9103 $as_echo_n "(cached) " >&6
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9116 if ac_fn_c_try_link "$LINENO"; then :
9117 am_cv_val_LC_MESSAGES=yes
9119 am_cv_val_LC_MESSAGES=no
9121 rm -f core conftest.err conftest.$ac_objext \
9122 conftest$ac_exeext conftest.$ac_ext
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9125 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9126 if test $am_cv_val_LC_MESSAGES = yes; then
9128 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9133 # ----------------------- #
9134 # Checks for structures. #
9135 # ----------------------- #
9137 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9138 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
9140 cat >>confdefs.h <<_ACEOF
9141 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9146 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9147 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
9149 cat >>confdefs.h <<_ACEOF
9150 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9157 # ------------------ #
9158 # Checks for types. #
9159 # ------------------ #
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9162 $as_echo_n "checking return type of signal handlers... " >&6; }
9163 if test "${ac_cv_type_signal+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168 #include <sys/types.h>
9174 return *(signal (0, 0)) (0) == 1;
9179 if ac_fn_c_try_compile "$LINENO"; then :
9180 ac_cv_type_signal=int
9182 ac_cv_type_signal=void
9184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9187 $as_echo "$ac_cv_type_signal" >&6; }
9189 cat >>confdefs.h <<_ACEOF
9190 #define RETSIGTYPE $ac_cv_type_signal
9194 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9195 #include <sys/socket.h>
9198 if test "x$ac_cv_type_socklen_t" = x""yes; then :
9200 cat >>confdefs.h <<_ACEOF
9201 #define HAVE_SOCKLEN_T 1
9208 # ------------------------------------- #
9209 # Checks for compiler characteristics. #
9210 # ------------------------------------- #
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9213 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9214 if test "${ac_cv_c_const+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9223 /* FIXME: Include the comments suggested by Paul. */
9225 /* Ultrix mips cc rejects this. */
9226 typedef int charset[2];
9228 /* SunOS 4.1.1 cc rejects this. */
9229 char const *const *pcpcc;
9231 /* NEC SVR4.0.2 mips cc rejects this. */
9232 struct point {int x, y;};
9233 static struct point const zero = {0,0};
9234 /* AIX XL C 1.02.0.0 rejects this.
9235 It does not let you subtract one const X* pointer from another in
9236 an arm of an if-expression whose if-part is not a constant
9238 const char *g = "string";
9239 pcpcc = &g + (g ? g-g : 0);
9240 /* HPUX 7.0 cc rejects these. */
9242 ppc = (char**) pcpcc;
9243 pcpcc = (char const *const *) ppc;
9244 { /* SCO 3.2v4 cc rejects this. */
9246 char const *s = 0 ? (char *) 0 : (char const *) 0;
9251 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9253 const int *foo = &x[0];
9256 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9257 typedef const int *iptr;
9261 { /* AIX XL C 1.02.0.0 rejects this saying
9262 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9263 struct s { int j; const int *ap[3]; };
9264 struct s *b; b->j = 5;
9266 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9270 return !cs[0] && !zero.x;
9277 if ac_fn_c_try_compile "$LINENO"; then :
9282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9285 $as_echo "$ac_cv_c_const" >&6; }
9286 if test $ac_cv_c_const = no; then
9288 $as_echo "#define const /**/" >>confdefs.h
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9293 $as_echo_n "checking for inline... " >&6; }
9294 if test "${ac_cv_c_inline+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9298 for ac_kw in inline __inline__ __inline; do
9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9303 static $ac_kw foo_t static_foo () {return 0; }
9304 $ac_kw foo_t foo () {return 0; }
9308 if ac_fn_c_try_compile "$LINENO"; then :
9309 ac_cv_c_inline=$ac_kw
9311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9312 test "$ac_cv_c_inline" != no && break
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9317 $as_echo "$ac_cv_c_inline" >&6; }
9319 case $ac_cv_c_inline in
9322 case $ac_cv_c_inline in
9324 *) ac_val=$ac_cv_c_inline;;
9326 cat >>confdefs.h <<_ACEOF
9328 #define inline $ac_val
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9335 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9336 if test "${ac_cv_c_bigendian+set}" = set; then :
9337 $as_echo_n "(cached) " >&6
9339 ac_cv_c_bigendian=unknown
9340 # See if we're dealing with a universal compiler.
9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9343 #ifndef __APPLE_CC__
9344 not a universal capable compiler
9349 if ac_fn_c_try_compile "$LINENO"; then :
9351 # Check for potential -arch flags. It is not universal unless
9352 # there are at least two -arch flags with different values.
9355 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9356 if test -n "$ac_prev"; then
9358 i?86 | x86_64 | ppc | ppc64)
9359 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9362 ac_cv_c_bigendian=universal
9368 elif test "x$ac_word" = "x-arch"; then
9373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374 if test $ac_cv_c_bigendian = unknown; then
9375 # See if sys/param.h defines the BYTE_ORDER macro.
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378 #include <sys/types.h>
9379 #include <sys/param.h>
9384 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9385 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9394 if ac_fn_c_try_compile "$LINENO"; then :
9395 # It does; now see whether it defined to BIG_ENDIAN or not.
9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397 /* end confdefs.h. */
9398 #include <sys/types.h>
9399 #include <sys/param.h>
9404 #if BYTE_ORDER != BIG_ENDIAN
9412 if ac_fn_c_try_compile "$LINENO"; then :
9413 ac_cv_c_bigendian=yes
9415 ac_cv_c_bigendian=no
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9421 if test $ac_cv_c_bigendian = unknown; then
9422 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9430 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9438 if ac_fn_c_try_compile "$LINENO"; then :
9439 # It does; now see whether it defined to _BIG_ENDIAN or not.
9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441 /* end confdefs.h. */
9455 if ac_fn_c_try_compile "$LINENO"; then :
9456 ac_cv_c_bigendian=yes
9458 ac_cv_c_bigendian=no
9460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464 if test $ac_cv_c_bigendian = unknown; then
9465 # Compile a test program.
9466 if test "$cross_compiling" = yes; then :
9467 # Try to guess by grepping values from an object file.
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470 short int ascii_mm[] =
9471 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9472 short int ascii_ii[] =
9473 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9474 int use_ascii (int i) {
9475 return ascii_mm[i] + ascii_ii[i];
9477 short int ebcdic_ii[] =
9478 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9479 short int ebcdic_mm[] =
9480 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9481 int use_ebcdic (int i) {
9482 return ebcdic_mm[i] + ebcdic_ii[i];
9489 return use_ascii (foo) == use_ebcdic (foo);
9494 if ac_fn_c_try_compile "$LINENO"; then :
9495 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9496 ac_cv_c_bigendian=yes
9498 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9499 if test "$ac_cv_c_bigendian" = unknown; then
9500 ac_cv_c_bigendian=no
9502 # finding both strings is unlikely to happen, but who knows?
9503 ac_cv_c_bigendian=unknown
9507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511 $ac_includes_default
9516 /* Are we little or big endian? From Harbison&Steele. */
9520 char c[sizeof (long int)];
9523 return u.c[sizeof (long int) - 1] == 1;
9529 if ac_fn_c_try_run "$LINENO"; then :
9530 ac_cv_c_bigendian=no
9532 ac_cv_c_bigendian=yes
9534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9535 conftest.$ac_objext conftest.beam conftest.$ac_ext
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9541 $as_echo "$ac_cv_c_bigendian" >&6; }
9542 case $ac_cv_c_bigendian in #(
9544 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9550 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9554 as_fn_error "unknown endianness
9555 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9559 # ------------------------------ #
9560 # Checks for library functions. #
9561 # ------------------------------ #
9563 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9564 # for constant arguments. Useless!
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9566 $as_echo_n "checking for working alloca.h... " >&6; }
9567 if test "${ac_cv_working_alloca_h+set}" = set; then :
9568 $as_echo_n "(cached) " >&6
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9576 char *p = (char *) alloca (2 * sizeof (int));
9582 if ac_fn_c_try_link "$LINENO"; then :
9583 ac_cv_working_alloca_h=yes
9585 ac_cv_working_alloca_h=no
9587 rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9591 $as_echo "$ac_cv_working_alloca_h" >&6; }
9592 if test $ac_cv_working_alloca_h = yes; then
9594 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9599 $as_echo_n "checking for alloca... " >&6; }
9600 if test "${ac_cv_func_alloca_works+set}" = set; then :
9601 $as_echo_n "(cached) " >&6
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9606 # define alloca __builtin_alloca
9609 # include <malloc.h>
9610 # define alloca _alloca
9612 # ifdef HAVE_ALLOCA_H
9613 # include <alloca.h>
9618 # ifndef alloca /* predefined by HP cc +Olibcalls */
9629 char *p = (char *) alloca (1);
9635 if ac_fn_c_try_link "$LINENO"; then :
9636 ac_cv_func_alloca_works=yes
9638 ac_cv_func_alloca_works=no
9640 rm -f core conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9644 $as_echo "$ac_cv_func_alloca_works" >&6; }
9646 if test $ac_cv_func_alloca_works = yes; then
9648 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9651 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9652 # that cause trouble. Some versions do not even contain alloca or
9653 # contain a buggy version. If you still want to use their alloca,
9654 # use ar to extract alloca.o from them instead of compiling alloca.c.
9656 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9658 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9662 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9663 if test "${ac_cv_os_cray+set}" = set; then :
9664 $as_echo_n "(cached) " >&6
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9668 #if defined CRAY && ! defined CRAY2
9675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9676 $EGREP "webecray" >/dev/null 2>&1; then :
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9685 $as_echo "$ac_cv_os_cray" >&6; }
9686 if test $ac_cv_os_cray = yes; then
9687 for ac_func in _getb67 GETB67 getb67; do
9688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9689 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9690 eval as_val=\$$as_ac_var
9691 if test "x$as_val" = x""yes; then :
9693 cat >>confdefs.h <<_ACEOF
9694 #define CRAY_STACKSEG_END $ac_func
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9704 $as_echo_n "checking stack direction for C alloca... " >&6; }
9705 if test "${ac_cv_c_stack_direction+set}" = set; then :
9706 $as_echo_n "(cached) " >&6
9708 if test "$cross_compiling" = yes; then :
9709 ac_cv_c_stack_direction=0
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 $ac_includes_default
9715 find_stack_direction ()
9717 static char *addr = 0;
9722 return find_stack_direction ();
9725 return (&dummy > addr) ? 1 : -1;
9731 return find_stack_direction () < 0;
9734 if ac_fn_c_try_run "$LINENO"; then :
9735 ac_cv_c_stack_direction=1
9737 ac_cv_c_stack_direction=-1
9739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9740 conftest.$ac_objext conftest.beam conftest.$ac_ext
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9745 $as_echo "$ac_cv_c_stack_direction" >&6; }
9746 cat >>confdefs.h <<_ACEOF
9747 #define STACK_DIRECTION $ac_cv_c_stack_direction
9753 for ac_header in stdlib.h unistd.h
9755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9756 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9757 eval as_val=\$$as_ac_Header
9758 if test "x$as_val" = x""yes; then :
9759 cat >>confdefs.h <<_ACEOF
9760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9767 for ac_func in getpagesize
9769 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9770 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9771 cat >>confdefs.h <<_ACEOF
9772 #define HAVE_GETPAGESIZE 1
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9779 $as_echo_n "checking for working mmap... " >&6; }
9780 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9781 $as_echo_n "(cached) " >&6
9783 if test "$cross_compiling" = yes; then :
9784 ac_cv_func_mmap_fixed_mapped=no
9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h. */
9788 $ac_includes_default
9789 /* malloc might have been renamed as rpl_malloc. */
9792 /* Thanks to Mike Haertel and Jim Avera for this test.
9793 Here is a matrix of mmap possibilities:
9794 mmap private not fixed
9795 mmap private fixed at somewhere currently unmapped
9796 mmap private fixed at somewhere already mapped
9797 mmap shared not fixed
9798 mmap shared fixed at somewhere currently unmapped
9799 mmap shared fixed at somewhere already mapped
9800 For private mappings, we should verify that changes cannot be read()
9801 back from the file, nor mmap's back from the file at a different
9802 address. (There have been systems where private was not correctly
9803 implemented like the infamous i386 svr4.0, and systems where the
9804 VM page cache was not coherent with the file system buffer cache
9805 like early versions of FreeBSD and possibly contemporary NetBSD.)
9806 For shared mappings, we should conversely verify that changes get
9807 propagated back to all the places they're supposed to be.
9809 Grep wants private fixed already mapped.
9810 The main things grep needs to know about mmap are:
9811 * does it exist and is it safe to write into the mmap'd area
9812 * how to use it (BSD variants) */
9815 #include <sys/mman.h>
9817 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9821 /* This mess was copied from the GNU getpagesize.h. */
9822 #ifndef HAVE_GETPAGESIZE
9823 /* Assume that all systems that can run configure have sys/param.h. */
9824 # ifndef HAVE_SYS_PARAM_H
9825 # define HAVE_SYS_PARAM_H 1
9828 # ifdef _SC_PAGESIZE
9829 # define getpagesize() sysconf(_SC_PAGESIZE)
9830 # else /* no _SC_PAGESIZE */
9831 # ifdef HAVE_SYS_PARAM_H
9832 # include <sys/param.h>
9833 # ifdef EXEC_PAGESIZE
9834 # define getpagesize() EXEC_PAGESIZE
9835 # else /* no EXEC_PAGESIZE */
9837 # define getpagesize() NBPG * CLSIZE
9840 # endif /* no CLSIZE */
9841 # else /* no NBPG */
9843 # define getpagesize() NBPC
9844 # else /* no NBPC */
9846 # define getpagesize() PAGESIZE
9847 # endif /* PAGESIZE */
9848 # endif /* no NBPC */
9849 # endif /* no NBPG */
9850 # endif /* no EXEC_PAGESIZE */
9851 # else /* no HAVE_SYS_PARAM_H */
9852 # define getpagesize() 8192 /* punt totally */
9853 # endif /* no HAVE_SYS_PARAM_H */
9854 # endif /* no _SC_PAGESIZE */
9856 #endif /* no HAVE_GETPAGESIZE */
9861 char *data, *data2, *data3;
9865 pagesize = getpagesize ();
9867 /* First, make a file with some known garbage in it. */
9868 data = (char *) malloc (pagesize);
9871 for (i = 0; i < pagesize; ++i)
9872 *(data + i) = rand ();
9874 fd = creat ("conftest.mmap", 0600);
9877 if (write (fd, data, pagesize) != pagesize)
9881 /* Next, try to mmap the file at a fixed address which already has
9882 something else allocated at it. If we can, also make sure that
9883 we see the same garbage. */
9884 fd = open ("conftest.mmap", O_RDWR);
9887 data2 = (char *) malloc (2 * pagesize);
9890 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9891 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9892 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9894 for (i = 0; i < pagesize; ++i)
9895 if (*(data + i) != *(data2 + i))
9898 /* Finally, make sure that changes to the mapped area do not
9899 percolate back to the file as seen by read(). (This is a bug on
9900 some variants of i386 svr4.0.) */
9901 for (i = 0; i < pagesize; ++i)
9902 *(data2 + i) = *(data2 + i) + 1;
9903 data3 = (char *) malloc (pagesize);
9906 if (read (fd, data3, pagesize) != pagesize)
9908 for (i = 0; i < pagesize; ++i)
9909 if (*(data + i) != *(data3 + i))
9915 if ac_fn_c_try_run "$LINENO"; then :
9916 ac_cv_func_mmap_fixed_mapped=yes
9918 ac_cv_func_mmap_fixed_mapped=no
9920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9921 conftest.$ac_objext conftest.beam conftest.$ac_ext
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9926 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9927 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9929 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9934 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9935 if test "x$ac_cv_type_pid_t" = x""yes; then :
9939 cat >>confdefs.h <<_ACEOF
9945 for ac_header in vfork.h
9947 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9948 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9949 cat >>confdefs.h <<_ACEOF
9950 #define HAVE_VFORK_H 1
9957 for ac_func in fork vfork
9959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9960 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9961 eval as_val=\$$as_ac_var
9962 if test "x$as_val" = x""yes; then :
9963 cat >>confdefs.h <<_ACEOF
9964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9970 if test "x$ac_cv_func_fork" = xyes; then
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9972 $as_echo_n "checking for working fork... " >&6; }
9973 if test "${ac_cv_func_fork_works+set}" = set; then :
9974 $as_echo_n "(cached) " >&6
9976 if test "$cross_compiling" = yes; then :
9977 ac_cv_func_fork_works=cross
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9981 $ac_includes_default
9986 /* By Ruediger Kuhlmann. */
9993 if ac_fn_c_try_run "$LINENO"; then :
9994 ac_cv_func_fork_works=yes
9996 ac_cv_func_fork_works=no
9998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9999 conftest.$ac_objext conftest.beam conftest.$ac_ext
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10004 $as_echo "$ac_cv_func_fork_works" >&6; }
10007 ac_cv_func_fork_works=$ac_cv_func_fork
10009 if test "x$ac_cv_func_fork_works" = xcross; then
10011 *-*-amigaos* | *-*-msdosdjgpp*)
10012 # Override, as these systems have only a dummy fork() stub
10013 ac_cv_func_fork_works=no
10016 ac_cv_func_fork_works=yes
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10020 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10022 ac_cv_func_vfork_works=$ac_cv_func_vfork
10023 if test "x$ac_cv_func_vfork" = xyes; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10025 $as_echo_n "checking for working vfork... " >&6; }
10026 if test "${ac_cv_func_vfork_works+set}" = set; then :
10027 $as_echo_n "(cached) " >&6
10029 if test "$cross_compiling" = yes; then :
10030 ac_cv_func_vfork_works=cross
10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h. */
10034 /* Thanks to Paul Eggert for this test. */
10035 $ac_includes_default
10036 #include <sys/wait.h>
10037 #ifdef HAVE_VFORK_H
10038 # include <vfork.h>
10040 /* On some sparc systems, changes by the child to local and incoming
10041 argument registers are propagated back to the parent. The compiler
10042 is told about this with #include <vfork.h>, but some compilers
10043 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10044 static variable whose address is put into a register that is
10045 clobbered by the vfork. */
10048 sparc_address_test (int arg)
10050 sparc_address_test (arg) int arg;
10053 static pid_t child;
10071 pid_t parent = getpid ();
10074 sparc_address_test (0);
10079 /* Here is another test for sparc vfork register problems. This
10080 test uses lots of local variables, at least as many local
10081 variables as main has allocated so far including compiler
10082 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10083 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10084 reuse the register of parent for one of the local variables,
10085 since it will think that parent can't possibly be used any more
10086 in this routine. Assigning to the local variable will thus
10087 munge parent in the parent process. */
10089 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10090 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10091 /* Convince the compiler that p..p7 are live; otherwise, it might
10092 use the same hardware register for all 8 local variables. */
10093 if (p != p1 || p != p2 || p != p3 || p != p4
10094 || p != p5 || p != p6 || p != p7)
10097 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10098 from child file descriptors. If the child closes a descriptor
10099 before it execs or exits, this munges the parent's descriptor
10100 as well. Test for this by closing stdout in the child. */
10101 _exit(close(fileno(stdout)) != 0);
10106 while (wait(&status) != child)
10109 /* Was there some problem with vforking? */
10112 /* Did the child fail? (This shouldn't happen.) */
10115 /* Did the vfork/compiler bug occur? */
10116 || parent != getpid()
10118 /* Did the file descriptor bug occur? */
10119 || fstat(fileno(stdout), &st) != 0
10124 if ac_fn_c_try_run "$LINENO"; then :
10125 ac_cv_func_vfork_works=yes
10127 ac_cv_func_vfork_works=no
10129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10130 conftest.$ac_objext conftest.beam conftest.$ac_ext
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10135 $as_echo "$ac_cv_func_vfork_works" >&6; }
10138 if test "x$ac_cv_func_fork_works" = xcross; then
10139 ac_cv_func_vfork_works=$ac_cv_func_vfork
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10141 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10144 if test "x$ac_cv_func_vfork_works" = xyes; then
10146 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10150 $as_echo "#define vfork fork" >>confdefs.h
10153 if test "x$ac_cv_func_fork_works" = xyes; then
10155 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10159 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
10160 pipe poll pread pread64 pwrite readlink resize_term \
10161 sbrk setpgid setpgrp setsid \
10162 sigaction sigprocmask sigsetmask socketpair syscall \
10163 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10164 setrlimit getrlimit posix_madvise waitpid lstat \
10165 fdwalk pipe2 ptrace64
10167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10168 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10169 eval as_val=\$$as_ac_var
10170 if test "x$as_val" = x""yes; then :
10171 cat >>confdefs.h <<_ACEOF
10172 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10180 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10181 if test "${am_cv_langinfo_codeset+set}" = set; then :
10182 $as_echo_n "(cached) " >&6
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10186 #include <langinfo.h>
10190 char* cs = nl_langinfo(CODESET);
10195 if ac_fn_c_try_link "$LINENO"; then :
10196 am_cv_langinfo_codeset=yes
10198 am_cv_langinfo_codeset=no
10200 rm -f core conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10205 $as_echo "$am_cv_langinfo_codeset" >&6; }
10206 if test $am_cv_langinfo_codeset = yes; then
10208 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10214 $as_echo_n "checking for ANSI C header files... " >&6; }
10215 if test "${ac_cv_header_stdc+set}" = set; then :
10216 $as_echo_n "(cached) " >&6
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220 #include <stdlib.h>
10221 #include <stdarg.h>
10222 #include <string.h>
10233 if ac_fn_c_try_compile "$LINENO"; then :
10234 ac_cv_header_stdc=yes
10236 ac_cv_header_stdc=no
10238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10240 if test $ac_cv_header_stdc = yes; then
10241 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10244 #include <string.h>
10247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10248 $EGREP "memchr" >/dev/null 2>&1; then :
10251 ac_cv_header_stdc=no
10257 if test $ac_cv_header_stdc = yes; then
10258 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10261 #include <stdlib.h>
10264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10265 $EGREP "free" >/dev/null 2>&1; then :
10268 ac_cv_header_stdc=no
10274 if test $ac_cv_header_stdc = yes; then
10275 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10276 if test "$cross_compiling" = yes; then :
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10282 #include <stdlib.h>
10283 #if ((' ' & 0x0FF) == 0x020)
10284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10287 # define ISLOWER(c) \
10288 (('a' <= (c) && (c) <= 'i') \
10289 || ('j' <= (c) && (c) <= 'r') \
10290 || ('s' <= (c) && (c) <= 'z'))
10291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10299 for (i = 0; i < 256; i++)
10300 if (XOR (islower (i), ISLOWER (i))
10301 || toupper (i) != TOUPPER (i))
10306 if ac_fn_c_try_run "$LINENO"; then :
10309 ac_cv_header_stdc=no
10311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10312 conftest.$ac_objext conftest.beam conftest.$ac_ext
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10318 $as_echo "$ac_cv_header_stdc" >&6; }
10319 if test $ac_cv_header_stdc = yes; then
10321 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10325 ac_header_dirent=no
10326 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10327 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10329 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10331 $as_echo_n "(cached) " >&6
10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334 /* end confdefs.h. */
10335 #include <sys/types.h>
10347 if ac_fn_c_try_compile "$LINENO"; then :
10348 eval "$as_ac_Header=yes"
10350 eval "$as_ac_Header=no"
10352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10354 eval ac_res=\$$as_ac_Header
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10356 $as_echo "$ac_res" >&6; }
10357 eval as_val=\$$as_ac_Header
10358 if test "x$as_val" = x""yes; then :
10359 cat >>confdefs.h <<_ACEOF
10360 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10363 ac_header_dirent=$ac_hdr; break
10367 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10368 if test $ac_header_dirent = dirent.h; then
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10370 $as_echo_n "checking for library containing opendir... " >&6; }
10371 if test "${ac_cv_search_opendir+set}" = set; then :
10372 $as_echo_n "(cached) " >&6
10374 ac_func_search_save_LIBS=$LIBS
10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h. */
10378 /* Override any GCC internal prototype to avoid an error.
10379 Use char because int might match the return type of a GCC
10380 builtin and then its argument prototype would still apply. */
10393 for ac_lib in '' dir; do
10394 if test -z "$ac_lib"; then
10395 ac_res="none required"
10398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10400 if ac_fn_c_try_link "$LINENO"; then :
10401 ac_cv_search_opendir=$ac_res
10403 rm -f core conftest.err conftest.$ac_objext \
10405 if test "${ac_cv_search_opendir+set}" = set; then :
10409 if test "${ac_cv_search_opendir+set}" = set; then :
10412 ac_cv_search_opendir=no
10414 rm conftest.$ac_ext
10415 LIBS=$ac_func_search_save_LIBS
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10418 $as_echo "$ac_cv_search_opendir" >&6; }
10419 ac_res=$ac_cv_search_opendir
10420 if test "$ac_res" != no; then :
10421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10427 $as_echo_n "checking for library containing opendir... " >&6; }
10428 if test "${ac_cv_search_opendir+set}" = set; then :
10429 $as_echo_n "(cached) " >&6
10431 ac_func_search_save_LIBS=$LIBS
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10435 /* Override any GCC internal prototype to avoid an error.
10436 Use char because int might match the return type of a GCC
10437 builtin and then its argument prototype would still apply. */
10450 for ac_lib in '' x; do
10451 if test -z "$ac_lib"; then
10452 ac_res="none required"
10455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10457 if ac_fn_c_try_link "$LINENO"; then :
10458 ac_cv_search_opendir=$ac_res
10460 rm -f core conftest.err conftest.$ac_objext \
10462 if test "${ac_cv_search_opendir+set}" = set; then :
10466 if test "${ac_cv_search_opendir+set}" = set; then :
10469 ac_cv_search_opendir=no
10471 rm conftest.$ac_ext
10472 LIBS=$ac_func_search_save_LIBS
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10475 $as_echo "$ac_cv_search_opendir" >&6; }
10476 ac_res=$ac_cv_search_opendir
10477 if test "$ac_res" != no; then :
10478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10484 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10485 # for constant arguments. Useless!
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10487 $as_echo_n "checking for working alloca.h... " >&6; }
10488 if test "${ac_cv_working_alloca_h+set}" = set; then :
10489 $as_echo_n "(cached) " >&6
10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10493 #include <alloca.h>
10497 char *p = (char *) alloca (2 * sizeof (int));
10503 if ac_fn_c_try_link "$LINENO"; then :
10504 ac_cv_working_alloca_h=yes
10506 ac_cv_working_alloca_h=no
10508 rm -f core conftest.err conftest.$ac_objext \
10509 conftest$ac_exeext conftest.$ac_ext
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10512 $as_echo "$ac_cv_working_alloca_h" >&6; }
10513 if test $ac_cv_working_alloca_h = yes; then
10515 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10520 $as_echo_n "checking for alloca... " >&6; }
10521 if test "${ac_cv_func_alloca_works+set}" = set; then :
10522 $as_echo_n "(cached) " >&6
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10527 # define alloca __builtin_alloca
10530 # include <malloc.h>
10531 # define alloca _alloca
10533 # ifdef HAVE_ALLOCA_H
10534 # include <alloca.h>
10539 # ifndef alloca /* predefined by HP cc +Olibcalls */
10550 char *p = (char *) alloca (1);
10556 if ac_fn_c_try_link "$LINENO"; then :
10557 ac_cv_func_alloca_works=yes
10559 ac_cv_func_alloca_works=no
10561 rm -f core conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10565 $as_echo "$ac_cv_func_alloca_works" >&6; }
10567 if test $ac_cv_func_alloca_works = yes; then
10569 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10572 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10573 # that cause trouble. Some versions do not even contain alloca or
10574 # contain a buggy version. If you still want to use their alloca,
10575 # use ar to extract alloca.o from them instead of compiling alloca.c.
10577 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10579 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10583 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10584 if test "${ac_cv_os_cray+set}" = set; then :
10585 $as_echo_n "(cached) " >&6
10587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588 /* end confdefs.h. */
10589 #if defined CRAY && ! defined CRAY2
10596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10597 $EGREP "webecray" >/dev/null 2>&1; then :
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10606 $as_echo "$ac_cv_os_cray" >&6; }
10607 if test $ac_cv_os_cray = yes; then
10608 for ac_func in _getb67 GETB67 getb67; do
10609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10611 eval as_val=\$$as_ac_var
10612 if test "x$as_val" = x""yes; then :
10614 cat >>confdefs.h <<_ACEOF
10615 #define CRAY_STACKSEG_END $ac_func
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10625 $as_echo_n "checking stack direction for C alloca... " >&6; }
10626 if test "${ac_cv_c_stack_direction+set}" = set; then :
10627 $as_echo_n "(cached) " >&6
10629 if test "$cross_compiling" = yes; then :
10630 ac_cv_c_stack_direction=0
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634 $ac_includes_default
10636 find_stack_direction ()
10638 static char *addr = 0;
10643 return find_stack_direction ();
10646 return (&dummy > addr) ? 1 : -1;
10652 return find_stack_direction () < 0;
10655 if ac_fn_c_try_run "$LINENO"; then :
10656 ac_cv_c_stack_direction=1
10658 ac_cv_c_stack_direction=-1
10660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10661 conftest.$ac_objext conftest.beam conftest.$ac_ext
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10666 $as_echo "$ac_cv_c_stack_direction" >&6; }
10667 cat >>confdefs.h <<_ACEOF
10668 #define STACK_DIRECTION $ac_cv_c_stack_direction
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10677 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10678 if test "${am_cv_langinfo_codeset+set}" = set; then :
10679 $as_echo_n "(cached) " >&6
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10683 #include <langinfo.h>
10687 char* cs = nl_langinfo(CODESET);
10692 if ac_fn_c_try_link "$LINENO"; then :
10693 am_cv_langinfo_codeset=yes
10695 am_cv_langinfo_codeset=no
10697 rm -f core conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10702 $as_echo "$am_cv_langinfo_codeset" >&6; }
10703 if test $am_cv_langinfo_codeset = yes; then
10705 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10710 for ac_header in linux/perf_event.h locale.h memory.h signal.h string.h strings.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h
10712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10713 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10714 eval as_val=\$$as_ac_Header
10715 if test "x$as_val" = x""yes; then :
10716 cat >>confdefs.h <<_ACEOF
10717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10725 for ac_func in fdwalk getrlimit pipe pipe2 socketpair
10727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10728 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10729 eval as_val=\$$as_ac_var
10730 if test "x$as_val" = x""yes; then :
10731 cat >>confdefs.h <<_ACEOF
10732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10739 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
10740 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
10746 cat >>confdefs.h <<_ACEOF
10747 #define HAVE_DECL_STRERROR $ac_have_decl
10749 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
10750 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
10756 cat >>confdefs.h <<_ACEOF
10757 #define HAVE_DECL_STRSTR $ac_have_decl
10762 # Check the return and argument types of ptrace. No canned test for
10763 # this, so roll our own.
10764 gdb_ptrace_headers='
10765 #if HAVE_SYS_TYPES_H
10766 # include <sys/types.h>
10768 #if HAVE_SYS_PTRACE_H
10769 # include <sys/ptrace.h>
10772 # include <unistd.h>
10775 # There is no point in checking if we don't have a prototype.
10776 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10778 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
10784 cat >>confdefs.h <<_ACEOF
10785 #define HAVE_DECL_PTRACE $ac_have_decl
10787 if test $ac_have_decl = 1; then :
10791 : ${gdb_cv_func_ptrace_ret='int'}
10792 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10796 # Check return type. Varargs (used on GNU/Linux) conflict with the
10797 # empty argument list, so check for that explicitly.
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10799 $as_echo_n "checking return type of ptrace... " >&6; }
10800 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
10801 $as_echo_n "(cached) " >&6
10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h. */
10805 $gdb_ptrace_headers
10809 extern long ptrace (enum __ptrace_request, ...);
10814 if ac_fn_c_try_compile "$LINENO"; then :
10815 gdb_cv_func_ptrace_ret='long'
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10819 $gdb_ptrace_headers
10823 extern int ptrace ();
10828 if ac_fn_c_try_compile "$LINENO"; then :
10829 gdb_cv_func_ptrace_ret='int'
10831 gdb_cv_func_ptrace_ret='long'
10833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10838 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10840 cat >>confdefs.h <<_ACEOF
10841 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10844 # Check argument types.
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10846 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10847 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
10848 $as_echo_n "(cached) " >&6
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10853 $gdb_ptrace_headers
10857 extern long ptrace (enum __ptrace_request, ...);
10862 if ac_fn_c_try_compile "$LINENO"; then :
10863 gdb_cv_func_ptrace_args='int,int,long,long'
10866 for gdb_arg1 in 'int' 'long'; do
10867 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10868 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10869 for gdb_arg4 in 'int' 'long' 'void *'; do
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10872 $gdb_ptrace_headers
10877 extern $gdb_cv_func_ptrace_ret
10878 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10884 if ac_fn_c_try_compile "$LINENO"; then :
10885 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889 for gdb_arg5 in 'int *' 'int' 'long'; do
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892 $gdb_ptrace_headers
10897 extern $gdb_cv_func_ptrace_ret
10898 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10904 if ac_fn_c_try_compile "$LINENO"; then :
10906 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915 # Provide a safe default value.
10916 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10922 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10923 ac_save_IFS=$IFS; IFS=','
10924 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10928 cat >>confdefs.h <<_ACEOF
10929 #define PTRACE_TYPE_ARG3 $3
10933 cat >>confdefs.h <<_ACEOF
10934 #define PTRACE_TYPE_ARG4 $4
10937 if test -n "$5"; then
10939 cat >>confdefs.h <<_ACEOF
10940 #define PTRACE_TYPE_ARG5 $5
10945 if test "$cross_compiling" = no; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10947 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10948 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10949 $as_echo_n "(cached) " >&6
10951 if test "$cross_compiling" = yes; then :
10952 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10956 $ac_includes_default
10960 /* If this system has a BSD-style setpgrp which takes arguments,
10961 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10962 exit successfully. */
10963 return setpgrp (1,1) != -1;
10968 if ac_fn_c_try_run "$LINENO"; then :
10969 ac_cv_func_setpgrp_void=no
10971 ac_cv_func_setpgrp_void=yes
10973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10974 conftest.$ac_objext conftest.beam conftest.$ac_ext
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10979 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10980 if test $ac_cv_func_setpgrp_void = yes; then
10982 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10988 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10989 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10990 $as_echo_n "(cached) " >&6
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10995 #include <unistd.h>
11001 if (setpgrp(1,1) == -1)
11010 if ac_fn_c_try_compile "$LINENO"; then :
11011 ac_cv_func_setpgrp_void=no
11013 ac_cv_func_setpgrp_void=yes
11015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11018 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11019 if test $ac_cv_func_setpgrp_void = yes; then
11020 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11025 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
11026 # since sigsetjmp might only be defined as a macro.
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11028 $as_echo_n "checking for sigsetjmp... " >&6; }
11029 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11030 $as_echo_n "(cached) " >&6
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11035 #include <setjmp.h>
11040 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11045 if ac_fn_c_try_compile "$LINENO"; then :
11046 gdb_cv_func_sigsetjmp=yes
11048 gdb_cv_func_sigsetjmp=no
11050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11053 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11054 if test $gdb_cv_func_sigsetjmp = yes; then
11056 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11060 # Assume we'll default to using the included libiberty regex.
11061 gdb_use_included_regex=yes
11063 # However, if the system regex is GNU regex, then default to *not*
11064 # using the included regex.
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11066 $as_echo_n "checking for GNU regex... " >&6; }
11067 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11072 #include <gnu-versions.h>
11076 #define REGEX_INTERFACE_VERSION 1
11077 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11078 # error "Version mismatch"
11084 if ac_fn_c_try_compile "$LINENO"; then :
11085 gdb_cv_have_gnu_regex=yes
11087 gdb_cv_have_gnu_regex=no
11089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11092 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11093 if test $gdb_cv_have_gnu_regex = yes; then
11094 gdb_use_included_regex=no
11098 # Check whether --with-included-regex was given.
11099 if test "${with_included_regex+set}" = set; then :
11100 withval=$with_included_regex; gdb_with_regex=$withval
11102 gdb_with_regex=$gdb_use_included_regex
11105 if test "$gdb_with_regex" = yes; then
11107 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11111 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11112 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11113 #include <sys/proc.h>
11116 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
11118 cat >>confdefs.h <<_ACEOF
11119 #define HAVE_STRUCT_THREAD_TD_PCB 1
11126 # See if <sys/lwp.h> defines `struct lwp`.
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11128 $as_echo_n "checking for struct lwp... " >&6; }
11129 if test "${gdb_cv_struct_lwp+set}" = set; then :
11130 $as_echo_n "(cached) " >&6
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h. */
11134 #include <sys/param.h>
11135 #include <sys/lwp.h>
11144 if ac_fn_c_try_compile "$LINENO"; then :
11145 gdb_cv_struct_lwp=yes
11147 gdb_cv_struct_lwp=no
11149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11152 $as_echo "$gdb_cv_struct_lwp" >&6; }
11153 if test $gdb_cv_struct_lwp = yes; then
11155 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11159 # See if <machine/reg.h> degines `struct reg'.
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11161 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11162 if test "${gdb_cv_struct_reg+set}" = set; then :
11163 $as_echo_n "(cached) " >&6
11165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h. */
11167 #include <sys/types.h>
11168 #include <machine/reg.h>
11177 if ac_fn_c_try_compile "$LINENO"; then :
11178 gdb_cv_struct_reg=yes
11180 gdb_cv_struct_reg=no
11182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11185 $as_echo "$gdb_cv_struct_reg" >&6; }
11186 if test $gdb_cv_struct_reg = yes; then
11188 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11192 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11193 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11194 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11196 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
11198 cat >>confdefs.h <<_ACEOF
11199 #define HAVE_STRUCT_REG_R_FS 1
11204 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11206 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
11208 cat >>confdefs.h <<_ACEOF
11209 #define HAVE_STRUCT_REG_R_GS 1
11216 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
11217 # Older amd64 Linux's don't have the fs_base and gs_base members of
11218 # `struct user_regs_struct'.
11219 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>
11221 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
11223 cat >>confdefs.h <<_ACEOF
11224 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
11229 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>
11231 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
11233 cat >>confdefs.h <<_ACEOF
11234 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
11241 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11243 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11244 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11245 $as_echo_n "(cached) " >&6
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #include <sys/ptrace.h>
11258 if ac_fn_c_try_compile "$LINENO"; then :
11259 gdb_cv_have_ptrace_getregs=yes
11261 gdb_cv_have_ptrace_getregs=no
11263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11267 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11268 if test $gdb_cv_have_ptrace_getregs = yes; then
11270 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11274 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11276 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11277 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11278 $as_echo_n "(cached) " >&6
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11282 #include <sys/ptrace.h>
11291 if ac_fn_c_try_compile "$LINENO"; then :
11292 gdb_cv_have_ptrace_getfpxregs=yes
11294 gdb_cv_have_ptrace_getfpxregs=no
11296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11300 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11301 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11303 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11307 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11309 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11310 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315 #include <sys/types.h>
11316 #include <sys/ptrace.h>
11325 if ac_fn_c_try_compile "$LINENO"; then :
11326 gdb_cv_have_pt_getdbregs=yes
11328 gdb_cv_have_pt_getdbregs=no
11330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11334 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11335 if test $gdb_cv_have_pt_getdbregs = yes; then
11337 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11341 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11343 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11344 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11349 #include <sys/types.h>
11350 #include <sys/ptrace.h>
11359 if ac_fn_c_try_compile "$LINENO"; then :
11360 gdb_cv_have_pt_getxmmregs=yes
11362 gdb_cv_have_pt_getxmmregs=no
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11368 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11369 if test $gdb_cv_have_pt_getxmmregs = yes; then
11371 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11375 # Detect which type of /proc is in use, such as for Solaris.
11377 if test "${target}" = "${host}"; then
11379 *-*-sysv4.2* | *-*-sysv5* )
11381 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11384 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
11386 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11390 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
11392 $as_echo "#define _KMEMUSER 1" >>confdefs.h
11398 if test "$ac_cv_header_sys_procfs_h" = yes; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
11400 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
11401 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
11402 $as_echo_n "(cached) " >&6
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11408 /* Needed for new procfs interface on sparc-solaris. */
11409 #define _STRUCTURED_PROC 1
11410 #include <sys/procfs.h>
11419 if ac_fn_c_try_compile "$LINENO"; then :
11420 bfd_cv_have_sys_procfs_type_pstatus_t=yes
11422 bfd_cv_have_sys_procfs_type_pstatus_t=no
11425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
11430 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
11434 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
11437 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
11438 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
11439 $as_echo_n "(cached) " >&6
11441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442 /* end confdefs.h. */
11445 /* Needed for new procfs interface on sparc-solaris. */
11446 #define _STRUCTURED_PROC 1
11447 #include <sys/procfs.h>
11456 if ac_fn_c_try_compile "$LINENO"; then :
11457 bfd_cv_have_sys_procfs_type_prrun_t=yes
11459 bfd_cv_have_sys_procfs_type_prrun_t=no
11462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
11467 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
11471 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11474 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11475 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11476 $as_echo_n "(cached) " >&6
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11482 /* Needed for new procfs interface on sparc-solaris. */
11483 #define _STRUCTURED_PROC 1
11484 #include <sys/procfs.h>
11493 if ac_fn_c_try_compile "$LINENO"; then :
11494 bfd_cv_have_sys_procfs_type_gregset_t=yes
11496 bfd_cv_have_sys_procfs_type_gregset_t=no
11499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
11504 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
11508 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
11511 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
11512 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11519 /* Needed for new procfs interface on sparc-solaris. */
11520 #define _STRUCTURED_PROC 1
11521 #include <sys/procfs.h>
11530 if ac_fn_c_try_compile "$LINENO"; then :
11531 bfd_cv_have_sys_procfs_type_fpregset_t=yes
11533 bfd_cv_have_sys_procfs_type_fpregset_t=no
11536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11539 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
11541 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11545 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11548 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11549 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553 /* end confdefs.h. */
11556 /* Needed for new procfs interface on sparc-solaris. */
11557 #define _STRUCTURED_PROC 1
11558 #include <sys/procfs.h>
11567 if ac_fn_c_try_compile "$LINENO"; then :
11568 bfd_cv_have_sys_procfs_type_prgregset_t=yes
11570 bfd_cv_have_sys_procfs_type_prgregset_t=no
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11576 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11578 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11582 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11585 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11586 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11587 $as_echo_n "(cached) " >&6
11589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590 /* end confdefs.h. */
11593 /* Needed for new procfs interface on sparc-solaris. */
11594 #define _STRUCTURED_PROC 1
11595 #include <sys/procfs.h>
11604 if ac_fn_c_try_compile "$LINENO"; then :
11605 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
11607 bfd_cv_have_sys_procfs_type_prfpregset_t=no
11610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11613 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11615 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11619 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11622 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11623 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11624 $as_echo_n "(cached) " >&6
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11630 /* Needed for new procfs interface on sparc-solaris. */
11631 #define _STRUCTURED_PROC 1
11632 #include <sys/procfs.h>
11641 if ac_fn_c_try_compile "$LINENO"; then :
11642 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
11644 bfd_cv_have_sys_procfs_type_prgregset32_t=no
11647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11652 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11656 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
11659 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
11660 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
11661 $as_echo_n "(cached) " >&6
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11667 /* Needed for new procfs interface on sparc-solaris. */
11668 #define _STRUCTURED_PROC 1
11669 #include <sys/procfs.h>
11673 prfpregset32_t avar
11678 if ac_fn_c_try_compile "$LINENO"; then :
11679 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
11681 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
11684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11687 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
11689 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
11693 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11696 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11697 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11698 $as_echo_n "(cached) " >&6
11700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701 /* end confdefs.h. */
11704 /* Needed for new procfs interface on sparc-solaris. */
11705 #define _STRUCTURED_PROC 1
11706 #include <sys/procfs.h>
11715 if ac_fn_c_try_compile "$LINENO"; then :
11716 bfd_cv_have_sys_procfs_type_lwpid_t=yes
11718 bfd_cv_have_sys_procfs_type_lwpid_t=no
11721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11724 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11726 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11730 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11733 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11734 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11735 $as_echo_n "(cached) " >&6
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h. */
11741 /* Needed for new procfs interface on sparc-solaris. */
11742 #define _STRUCTURED_PROC 1
11743 #include <sys/procfs.h>
11752 if ac_fn_c_try_compile "$LINENO"; then :
11753 bfd_cv_have_sys_procfs_type_psaddr_t=yes
11755 bfd_cv_have_sys_procfs_type_psaddr_t=no
11758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11761 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11763 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11767 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11770 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11771 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11772 $as_echo_n "(cached) " >&6
11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h. */
11778 /* Needed for new procfs interface on sparc-solaris. */
11779 #define _STRUCTURED_PROC 1
11780 #include <sys/procfs.h>
11789 if ac_fn_c_try_compile "$LINENO"; then :
11790 bfd_cv_have_sys_procfs_type_prsysent_t=yes
11792 bfd_cv_have_sys_procfs_type_prsysent_t=no
11795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11798 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11800 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11804 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11807 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11808 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h. */
11815 /* Needed for new procfs interface on sparc-solaris. */
11816 #define _STRUCTURED_PROC 1
11817 #include <sys/procfs.h>
11826 if ac_fn_c_try_compile "$LINENO"; then :
11827 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
11829 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
11832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11837 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11841 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11844 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11845 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11846 $as_echo_n "(cached) " >&6
11848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11852 /* Needed for new procfs interface on sparc-solaris. */
11853 #define _STRUCTURED_PROC 1
11854 #include <sys/procfs.h>
11858 pr_sigaction64_t avar
11863 if ac_fn_c_try_compile "$LINENO"; then :
11864 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
11866 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11874 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11878 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11881 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11882 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11883 $as_echo_n "(cached) " >&6
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11889 /* Needed for new procfs interface on sparc-solaris. */
11890 #define _STRUCTURED_PROC 1
11891 #include <sys/procfs.h>
11895 pr_siginfo64_t avar
11900 if ac_fn_c_try_compile "$LINENO"; then :
11901 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
11903 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
11906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11909 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
11911 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
11915 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
11921 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
11923 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
11924 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11927 if test "$cross_compiling" = yes; then :
11928 gdb_cv_prfpregset_t_broken=yes
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 #include <sys/procfs.h>
11935 if (sizeof (prfpregset_t) == sizeof (void *))
11940 if ac_fn_c_try_run "$LINENO"; then :
11941 gdb_cv_prfpregset_t_broken=no
11943 gdb_cv_prfpregset_t_broken=yes
11945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11946 conftest.$ac_objext conftest.beam conftest.$ac_ext
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
11952 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
11953 if test $gdb_cv_prfpregset_t_broken = yes; then
11955 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
11962 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
11963 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
11964 $as_echo_n "(cached) " >&6
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 #include <unistd.h>
11969 #include <sys/types.h>
11970 #include <sys/procfs.h>
11977 dummy = ioctl(0, PIOCSET, &dummy);
11983 if ac_fn_c_try_compile "$LINENO"; then :
11984 gdb_cv_have_procfs_piocset=yes
11986 gdb_cv_have_procfs_piocset=no
11988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
11992 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
11993 if test $gdb_cv_have_procfs_piocset = yes; then
11995 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
12000 # Check if the compiler supports the `long long' type.
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12003 $as_echo_n "checking for long long support in compiler... " >&6; }
12004 if test "${gdb_cv_c_long_long+set}" = set; then :
12005 $as_echo_n "(cached) " >&6
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12009 extern long long foo;
12013 switch (foo & 2) { case 0: return 1; }
12018 if ac_fn_c_try_compile "$LINENO"; then :
12019 gdb_cv_c_long_long=yes
12021 gdb_cv_c_long_long=no
12023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12026 $as_echo "$gdb_cv_c_long_long" >&6; }
12027 if test $gdb_cv_c_long_long != yes; then
12028 # libdecnumber requires long long.
12029 as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
12032 # Check if the compiler and runtime support printing long longs.
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12035 $as_echo_n "checking for long long support in printf... " >&6; }
12036 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12039 if test "$cross_compiling" = yes; then :
12040 gdb_cv_printf_has_long_long=no
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12044 $ac_includes_default
12050 l = (l << 16) + 0x0123;
12051 l = (l << 16) + 0x4567;
12052 l = (l << 16) + 0x89ab;
12053 l = (l << 16) + 0xcdef;
12054 sprintf (buf, "0x%016llx", l);
12055 return (strcmp ("0x0123456789abcdef", buf));
12060 if ac_fn_c_try_run "$LINENO"; then :
12061 gdb_cv_printf_has_long_long=yes
12063 gdb_cv_printf_has_long_long=no
12065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12066 conftest.$ac_objext conftest.beam conftest.$ac_ext
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12071 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12072 if test $gdb_cv_printf_has_long_long = yes; then
12074 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12078 # Check if the compiler and runtime support printing decfloats.
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12081 $as_echo_n "checking for decfloat support in printf... " >&6; }
12082 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
12085 if test "$cross_compiling" = yes; then :
12086 gdb_cv_printf_has_decfloat=no
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12090 $ac_includes_default
12095 _Decimal32 d32 = 1.2345df;
12096 _Decimal64 d64 = 1.2345dd;
12097 _Decimal128 d128 = 1.2345dl;
12098 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12099 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12104 if ac_fn_c_try_run "$LINENO"; then :
12105 gdb_cv_printf_has_decfloat=yes
12107 gdb_cv_printf_has_decfloat=no
12109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12110 conftest.$ac_objext conftest.beam conftest.$ac_ext
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12115 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12116 if test $gdb_cv_printf_has_decfloat = yes; then
12118 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12122 # Check if the compiler supports the `long double' type. We can't use
12123 # AC_C_LONG_DOUBLE because that one does additional checks on the
12124 # constants defined in <float.h> that fail on some systems,
12125 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12128 $as_echo_n "checking for long double support in compiler... " >&6; }
12129 if test "${gdb_cv_c_long_double+set}" = set; then :
12130 $as_echo_n "(cached) " >&6
12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h. */
12136 if ac_fn_c_try_compile "$LINENO"; then :
12137 gdb_cv_c_long_double=yes
12139 gdb_cv_c_long_double=no
12141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12144 $as_echo "$gdb_cv_c_long_double" >&6; }
12145 if test $gdb_cv_c_long_double = yes; then
12147 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12151 # Check if the compiler and runtime support printing long doubles.
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12154 $as_echo_n "checking for long double support in printf... " >&6; }
12155 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12156 $as_echo_n "(cached) " >&6
12158 if test "$cross_compiling" = yes; then :
12159 gdb_cv_printf_has_long_double=no
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12163 $ac_includes_default
12168 long double f = 3.141592653;
12169 sprintf (buf, "%Lg", f);
12170 return (strncmp ("3.14159", buf, 7));
12175 if ac_fn_c_try_run "$LINENO"; then :
12176 gdb_cv_printf_has_long_double=yes
12178 gdb_cv_printf_has_long_double=no
12180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12181 conftest.$ac_objext conftest.beam conftest.$ac_ext
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12186 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12187 if test $gdb_cv_printf_has_long_double = yes; then
12189 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12193 # Check if the compiler and runtime support scanning long doubles.
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12196 $as_echo_n "checking for long double support in scanf... " >&6; }
12197 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12198 $as_echo_n "(cached) " >&6
12200 if test "$cross_compiling" = yes; then :
12201 gdb_cv_scanf_has_long_double=no
12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12209 char *buf = "3.141592653";
12211 sscanf (buf, "%Lg", &f);
12212 return !(f > 3.14159 && f < 3.14160);
12217 if ac_fn_c_try_run "$LINENO"; then :
12218 gdb_cv_scanf_has_long_double=yes
12220 gdb_cv_scanf_has_long_double=no
12222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12223 conftest.$ac_objext conftest.beam conftest.$ac_ext
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12228 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12229 if test $gdb_cv_scanf_has_long_double = yes; then
12231 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12238 $as_echo_n "checking for -bbigtoc option... " >&6; }
12239 if test "${gdb_cv_bigtoc+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12243 SAVE_LDFLAGS=$LDFLAGS
12246 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
12247 *) gdb_cv_bigtoc=-bbigtoc ;;
12250 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12262 if ac_fn_c_try_link "$LINENO"; then :
12267 rm -f core conftest.err conftest.$ac_objext \
12268 conftest$ac_exeext conftest.$ac_ext
12269 LDFLAGS="${SAVE_LDFLAGS}"
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12273 $as_echo "$gdb_cv_bigtoc" >&6; }
12274 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
12279 $as_echo_n "checking for the dynamic export flag... " >&6; }
12281 if test "${gdb_native}" = yes; then
12282 # The dynamically loaded libthread_db needs access to symbols in the gdb
12283 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
12284 # may not be supported there.
12285 old_LDFLAGS="$LDFLAGS"
12286 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
12287 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
12288 LDFLAGS="$LDFLAGS $RDYNAMIC"
12289 if test "${have_libpython}" = no; then
12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h. */
12301 if ac_fn_c_try_link "$LINENO"; then :
12304 rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12307 # Workaround http://bugs.python.org/issue4434 where static
12308 # libpythonX.Y.a would get its symbols required for
12309 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
12310 # Problem does not happen for the recommended libpythonX.Y.so linkage.
12311 old_CFLAGS="$CFLAGS"
12312 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
12314 LIBS="$LIBS $PYTHON_LIBS"
12315 if test "$cross_compiling" = yes; then :
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12320 #include "${have_libpython}/Python.h"
12326 err = PyRun_SimpleString ("import itertools\n");
12328 return err == 0 ? 0 : 1;
12333 if ac_fn_c_try_run "$LINENO"; then :
12336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12337 conftest.$ac_objext conftest.beam conftest.$ac_ext
12341 CFLAGS="$old_CFLAGS"
12343 LDFLAGS="$old_LDFLAGS"
12345 if $dynamic_list; then
12346 found="-Wl,--dynamic-list"
12347 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
12350 RDYNAMIC="-rdynamic"
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12354 $as_echo "$found" >&6; }
12357 if test ${build} = ${host} -a ${host} = ${target} ; then
12360 # See if thread_db library is around for Solaris thread debugging.
12361 # Note that we must explicitly test for version 1 of the library
12362 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12365 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12366 if test -f /usr/lib/libthread_db.so.1 ; then
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12368 $as_echo "yes" >&6; }
12370 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12372 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
12373 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12375 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12376 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12379 ac_check_lib_save_LIBS=$LIBS
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12399 if ac_fn_c_try_link "$LINENO"; then :
12400 ac_cv_lib_dl_dlopen=yes
12402 ac_cv_lib_dl_dlopen=no
12404 rm -f core conftest.err conftest.$ac_objext \
12405 conftest$ac_exeext conftest.$ac_ext
12406 LIBS=$ac_check_lib_save_LIBS
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12409 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12410 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12411 cat >>confdefs.h <<_ACEOF
12412 #define HAVE_LIBDL 1
12419 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
12420 # Sun randomly tweaked the prototypes in <proc_service.h>
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12423 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12424 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12425 $as_echo_n "(cached) " >&6
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12431 #include <proc_service.h>
12432 ps_err_e ps_pdwrite
12433 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12443 if ac_fn_c_try_compile "$LINENO"; then :
12444 gdb_cv_proc_service_is_old=no
12446 gdb_cv_proc_service_is_old=yes
12448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12453 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12454 if test $gdb_cv_proc_service_is_old = yes; then
12456 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461 $as_echo "no" >&6; }
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12466 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12467 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12468 $as_echo_n "(cached) " >&6
12470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h. */
12472 #include <sys/pthdebug.h>
12476 #ifndef PTHDB_VERSION_3
12483 if ac_fn_c_try_compile "$LINENO"; then :
12484 gdb_cv_have_aix_thread_debug=yes
12486 gdb_cv_have_aix_thread_debug=no
12488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12492 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12493 if test $gdb_cv_have_aix_thread_debug = yes; then
12494 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
12495 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
12496 LIBS="$LIBS -lpthdebug"
12498 # Older versions of AIX do not provide the declaration for
12499 # the getthrds function (it appears that it was introduced
12501 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12503 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
12509 cat >>confdefs.h <<_ACEOF
12510 #define HAVE_DECL_GETTHRDS $ac_have_decl
12519 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12521 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12522 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12523 $as_echo_n "(cached) " >&6
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12527 #include <thread_db.h>
12531 int i = TD_NOTALLOC;
12536 if ac_fn_c_try_compile "$LINENO"; then :
12537 gdb_cv_thread_db_h_has_td_notalloc=yes
12539 gdb_cv_thread_db_h_has_td_notalloc=no
12542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12546 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12548 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12549 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12550 $as_echo_n "(cached) " >&6
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12554 #include <thread_db.h>
12558 int i = TD_VERSION;
12563 if ac_fn_c_try_compile "$LINENO"; then :
12564 gdb_cv_thread_db_h_has_td_version=yes
12566 gdb_cv_thread_db_h_has_td_version=no
12569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12573 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12575 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12576 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12581 #include <thread_db.h>
12590 if ac_fn_c_try_compile "$LINENO"; then :
12591 gdb_cv_thread_db_h_has_td_notls=yes
12593 gdb_cv_thread_db_h_has_td_notls=no
12596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12600 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12602 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12604 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12607 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12609 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12612 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12614 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12618 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12620 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12621 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12622 $as_echo_n "(cached) " >&6
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12626 #include <sys/syscall.h>
12630 int i = __NR_tkill;
12635 if ac_fn_c_try_compile "$LINENO"; then :
12636 gdb_cv_sys_syscall_h_has_tkill=yes
12638 gdb_cv_sys_syscall_h_has_tkill=no
12641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12645 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12647 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12649 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12653 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12655 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
12661 cat >>confdefs.h <<_ACEOF
12662 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12666 if test "$cross_compiling" = yes; then :
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12669 #include <sys/personality.h>
12674 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12675 # define ADDR_NO_RANDOMIZE 0x0040000
12677 /* Test the flag could be set and stays set. */
12678 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12679 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12685 if ac_fn_c_try_link "$LINENO"; then :
12686 have_personality=true
12688 have_personality=false
12690 rm -f core conftest.err conftest.$ac_objext \
12691 conftest$ac_exeext conftest.$ac_ext
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695 #include <sys/personality.h>
12700 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12701 # define ADDR_NO_RANDOMIZE 0x0040000
12703 /* Test the flag could be set and stays set. */
12704 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12705 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12711 if ac_fn_c_try_run "$LINENO"; then :
12712 have_personality=true
12714 have_personality=false
12716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12717 conftest.$ac_objext conftest.beam conftest.$ac_ext
12720 if $have_personality
12723 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12736 cat >>confdefs.h <<_ACEOF
12737 #define GDBINIT "$gdbinit"
12742 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12743 # except that the argument to --with-sysroot is optional.
12744 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12745 if test "x$with_sysroot" = xyes; then
12746 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
12749 # Check whether --with-sysroot was given.
12750 if test "${with_sysroot+set}" = set; then :
12751 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
12753 TARGET_SYSTEM_ROOT=
12757 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12758 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12759 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
12760 ac_define_dir=`eval echo $ac_define_dir`
12762 cat >>confdefs.h <<_ACEOF
12763 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12769 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12770 if test "x$prefix" = xNONE; then
12771 test_prefix=/usr/local
12773 test_prefix=$prefix
12776 test_prefix=$exec_prefix
12779 case ${ac_define_dir} in
12780 "${test_prefix}"|"${test_prefix}/"*|\
12781 '${exec_prefix}'|'${exec_prefix}/'*)
12786 cat >>confdefs.h <<_ACEOF
12787 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12794 # Check whether --with-system-gdbinit was given.
12795 if test "${with_system_gdbinit+set}" = set; then :
12796 withval=$with_system_gdbinit;
12797 SYSTEM_GDBINIT=$withval
12803 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12805 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
12806 ac_define_dir=`eval echo $ac_define_dir`
12808 cat >>confdefs.h <<_ACEOF
12809 #define SYSTEM_GDBINIT "$ac_define_dir"
12815 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12816 if test "x$prefix" = xNONE; then
12817 test_prefix=/usr/local
12819 test_prefix=$prefix
12822 test_prefix=$exec_prefix
12825 case ${ac_define_dir} in
12826 "${test_prefix}"|"${test_prefix}/"*|\
12827 '${exec_prefix}'|'${exec_prefix}/'*)
12832 cat >>confdefs.h <<_ACEOF
12833 #define SYSTEM_GDBINIT_RELOCATABLE $value
12839 # Check whether --enable-werror was given.
12840 if test "${enable_werror+set}" = set; then :
12841 enableval=$enable_werror; case "${enableval}" in
12842 yes | y) ERROR_ON_WARNING="yes" ;;
12843 no | n) ERROR_ON_WARNING="no" ;;
12844 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12849 # Enable -Werror by default when using gcc. Turn it off for releases.
12850 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
12851 ERROR_ON_WARNING=yes
12855 if test "${ERROR_ON_WARNING}" = yes ; then
12856 WERROR_CFLAGS="-Werror"
12859 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12861 -Wno-unused -Wunused-value -Wunused-function \
12862 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
12863 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
12864 -Wold-style-declaration -Wold-style-definition"
12866 # Enable -Wno-format by default when using gcc on mingw since many
12867 # GCC versions complain about %I64.
12869 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
12870 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
12873 # Check whether --enable-build-warnings was given.
12874 if test "${enable_build_warnings+set}" = set; then :
12875 enableval=$enable_build_warnings; case "${enableval}" in
12877 no) build_warnings="-w";;
12878 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12879 build_warnings="${build_warnings} ${t}";;
12880 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12881 build_warnings="${t} ${build_warnings}";;
12882 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12884 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12885 echo "Setting compiler warning flags = $build_warnings" 6>&1
12888 # Check whether --enable-gdb-build-warnings was given.
12889 if test "${enable_gdb_build_warnings+set}" = set; then :
12890 enableval=$enable_gdb_build_warnings; case "${enableval}" in
12892 no) build_warnings="-w";;
12893 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12894 build_warnings="${build_warnings} ${t}";;
12895 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12896 build_warnings="${t} ${build_warnings}";;
12897 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12899 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12900 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12904 if test "x${build_warnings}" != x -a "x$GCC" = xyes
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12907 $as_echo_n "checking compiler warning flags... " >&6; }
12908 # Separate out the -Werror flag as some files just cannot be
12909 # compiled with it enabled.
12910 for w in ${build_warnings}; do
12912 -Werr*) WERROR_CFLAGS=-Werror ;;
12913 *) # Check that GCC accepts it
12914 saved_CFLAGS="$CFLAGS"
12915 CFLAGS="$CFLAGS $w"
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12927 if ac_fn_c_try_compile "$LINENO"; then :
12928 WARN_CFLAGS="${WARN_CFLAGS} $w"
12930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12931 CFLAGS="$saved_CFLAGS"
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12935 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12940 # In the Cygwin environment, we need some additional flags.
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
12942 $as_echo_n "checking for cygwin... " >&6; }
12943 if test "${gdb_cv_os_cygwin+set}" = set; then :
12944 $as_echo_n "(cached) " >&6
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12949 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
12953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12954 $EGREP "lose" >/dev/null 2>&1; then :
12955 gdb_cv_os_cygwin=yes
12957 gdb_cv_os_cygwin=no
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
12963 $as_echo "$gdb_cv_os_cygwin" >&6; }
12966 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
12968 *go32* ) SER_HARDWIRE=ser-go32.o ;;
12969 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
12970 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
12974 # libreadline needs libuser32.a in a cygwin environment
12976 if test x$gdb_cv_os_cygwin = xyes; then
12977 WIN32LIBS="-luser32"
12978 case "${target}" in
12979 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
12984 # The ser-tcp.c module requires sockets.
12988 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12990 WIN32LIBS="$WIN32LIBS -lws2_32"
12995 # Add ELF support to GDB, but only if BFD includes ELF support.
12998 OLD_LDFLAGS=$LDFLAGS
13000 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13001 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13002 # always want our bfd.
13003 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13004 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
13005 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13006 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13007 if test "$plugins" = "yes"; then
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13009 $as_echo_n "checking for library containing dlopen... " >&6; }
13010 if test "${ac_cv_search_dlopen+set}" = set; then :
13011 $as_echo_n "(cached) " >&6
13013 ac_func_search_save_LIBS=$LIBS
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13017 /* Override any GCC internal prototype to avoid an error.
13018 Use char because int might match the return type of a GCC
13019 builtin and then its argument prototype would still apply. */
13032 for ac_lib in '' dl; do
13033 if test -z "$ac_lib"; then
13034 ac_res="none required"
13037 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13039 if ac_fn_c_try_link "$LINENO"; then :
13040 ac_cv_search_dlopen=$ac_res
13042 rm -f core conftest.err conftest.$ac_objext \
13044 if test "${ac_cv_search_dlopen+set}" = set; then :
13048 if test "${ac_cv_search_dlopen+set}" = set; then :
13051 ac_cv_search_dlopen=no
13053 rm conftest.$ac_ext
13054 LIBS=$ac_func_search_save_LIBS
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13057 $as_echo "$ac_cv_search_dlopen" >&6; }
13058 ac_res=$ac_cv_search_dlopen
13059 if test "$ac_res" != no; then :
13060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13065 LIBS="-lbfd -liberty $intl $LIBS"
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13067 $as_echo_n "checking for ELF support in BFD... " >&6; }
13068 if test "${gdb_cv_var_elf+set}" = set; then :
13069 $as_echo_n "(cached) " >&6
13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13073 #include <stdlib.h>
13075 #include "elf-bfd.h"
13080 return bfd_get_elf_phdr_upper_bound (NULL);
13085 if ac_fn_c_try_link "$LINENO"; then :
13090 rm -f core conftest.err conftest.$ac_objext \
13091 conftest$ac_exeext conftest.$ac_ext
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13094 $as_echo "$gdb_cv_var_elf" >&6; }
13096 LDFLAGS=$OLD_LDFLAGS
13098 if test $gdb_cv_var_elf = yes; then
13099 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o"
13101 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13103 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13104 if test "$plugins" = "yes"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13106 $as_echo_n "checking for library containing dlopen... " >&6; }
13107 if test "${ac_cv_search_dlopen+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13110 ac_func_search_save_LIBS=$LIBS
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13114 /* Override any GCC internal prototype to avoid an error.
13115 Use char because int might match the return type of a GCC
13116 builtin and then its argument prototype would still apply. */
13129 for ac_lib in '' dl; do
13130 if test -z "$ac_lib"; then
13131 ac_res="none required"
13134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13136 if ac_fn_c_try_link "$LINENO"; then :
13137 ac_cv_search_dlopen=$ac_res
13139 rm -f core conftest.err conftest.$ac_objext \
13141 if test "${ac_cv_search_dlopen+set}" = set; then :
13145 if test "${ac_cv_search_dlopen+set}" = set; then :
13148 ac_cv_search_dlopen=no
13150 rm conftest.$ac_ext
13151 LIBS=$ac_func_search_save_LIBS
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13154 $as_echo "$ac_cv_search_dlopen" >&6; }
13155 ac_res=$ac_cv_search_dlopen
13156 if test "$ac_res" != no; then :
13157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13164 # Add macho support to GDB, but only if BFD includes it.
13167 OLD_LDFLAGS=$LDFLAGS
13169 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13170 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13171 # always want our bfd.
13172 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13173 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
13174 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13175 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13176 if test "$plugins" = "yes"; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13178 $as_echo_n "checking for library containing dlopen... " >&6; }
13179 if test "${ac_cv_search_dlopen+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
13182 ac_func_search_save_LIBS=$LIBS
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13186 /* Override any GCC internal prototype to avoid an error.
13187 Use char because int might match the return type of a GCC
13188 builtin and then its argument prototype would still apply. */
13201 for ac_lib in '' dl; do
13202 if test -z "$ac_lib"; then
13203 ac_res="none required"
13206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13208 if ac_fn_c_try_link "$LINENO"; then :
13209 ac_cv_search_dlopen=$ac_res
13211 rm -f core conftest.err conftest.$ac_objext \
13213 if test "${ac_cv_search_dlopen+set}" = set; then :
13217 if test "${ac_cv_search_dlopen+set}" = set; then :
13220 ac_cv_search_dlopen=no
13222 rm conftest.$ac_ext
13223 LIBS=$ac_func_search_save_LIBS
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13226 $as_echo "$ac_cv_search_dlopen" >&6; }
13227 ac_res=$ac_cv_search_dlopen
13228 if test "$ac_res" != no; then :
13229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13234 LIBS="-lbfd -liberty $intl $LIBS"
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
13236 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
13237 if test "${gdb_cv_var_macho+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242 #include <stdlib.h>
13244 #include "mach-o.h"
13249 return bfd_mach_o_lookup_command (NULL, 0, NULL);
13254 if ac_fn_c_try_link "$LINENO"; then :
13255 gdb_cv_var_macho=yes
13257 gdb_cv_var_macho=no
13259 rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
13263 $as_echo "$gdb_cv_var_macho" >&6; }
13265 LDFLAGS=$OLD_LDFLAGS
13267 if test $gdb_cv_var_macho = yes; then
13268 CONFIG_OBS="$CONFIG_OBS machoread.o"
13271 # Add SOM support to GDB, but only if BFD includes it.
13274 OLD_LDFLAGS=$LDFLAGS
13276 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13277 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13278 # always want our bfd.
13279 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13280 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
13281 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13282 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13283 if test "$plugins" = "yes"; then
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13285 $as_echo_n "checking for library containing dlopen... " >&6; }
13286 if test "${ac_cv_search_dlopen+set}" = set; then :
13287 $as_echo_n "(cached) " >&6
13289 ac_func_search_save_LIBS=$LIBS
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13293 /* Override any GCC internal prototype to avoid an error.
13294 Use char because int might match the return type of a GCC
13295 builtin and then its argument prototype would still apply. */
13308 for ac_lib in '' dl; do
13309 if test -z "$ac_lib"; then
13310 ac_res="none required"
13313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13315 if ac_fn_c_try_link "$LINENO"; then :
13316 ac_cv_search_dlopen=$ac_res
13318 rm -f core conftest.err conftest.$ac_objext \
13320 if test "${ac_cv_search_dlopen+set}" = set; then :
13324 if test "${ac_cv_search_dlopen+set}" = set; then :
13327 ac_cv_search_dlopen=no
13329 rm conftest.$ac_ext
13330 LIBS=$ac_func_search_save_LIBS
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13333 $as_echo "$ac_cv_search_dlopen" >&6; }
13334 ac_res=$ac_cv_search_dlopen
13335 if test "$ac_res" != no; then :
13336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13341 LIBS="-lbfd -liberty $intl $LIBS"
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOM support in BFD" >&5
13343 $as_echo_n "checking for SOM support in BFD... " >&6; }
13344 if test "${gdb_cv_var_som+set}" = set; then :
13345 $as_echo_n "(cached) " >&6
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13349 #include <stdlib.h>
13356 return bfd_som_attach_aux_hdr (NULL, 0, NULL);
13361 if ac_fn_c_try_link "$LINENO"; then :
13366 rm -f core conftest.err conftest.$ac_objext \
13367 conftest$ac_exeext conftest.$ac_ext
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_som" >&5
13370 $as_echo "$gdb_cv_var_som" >&6; }
13372 LDFLAGS=$OLD_LDFLAGS
13374 if test $gdb_cv_var_som = yes; then
13375 CONFIG_OBS="$CONFIG_OBS somread.o"
13378 # Add any host-specific objects to GDB.
13379 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
13381 # If building on ELF, look for lzma support for embedded compressed debug info.
13382 if test $gdb_cv_var_elf = yes; then
13384 # Check whether --with-lzma was given.
13385 if test "${with_lzma+set}" = set; then :
13386 withval=$with_lzma;
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
13392 $as_echo_n "checking whether to use lzma... " >&6; }
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
13394 $as_echo "$with_lzma" >&6; }
13396 if test "${with_lzma}" != no; then
13407 acl_save_prefix="$prefix"
13408 prefix="$acl_final_prefix"
13409 acl_save_exec_prefix="$exec_prefix"
13410 exec_prefix="$acl_final_exec_prefix"
13412 eval additional_includedir=\"$includedir\"
13413 eval additional_libdir=\"$libdir\"
13415 exec_prefix="$acl_save_exec_prefix"
13416 prefix="$acl_save_prefix"
13419 # Check whether --with-liblzma-prefix was given.
13420 if test "${with_liblzma_prefix+set}" = set; then :
13421 withval=$with_liblzma_prefix;
13422 if test "X$withval" = "Xno"; then
13425 if test "X$withval" = "X"; then
13427 acl_save_prefix="$prefix"
13428 prefix="$acl_final_prefix"
13429 acl_save_exec_prefix="$exec_prefix"
13430 exec_prefix="$acl_final_exec_prefix"
13432 eval additional_includedir=\"$includedir\"
13433 eval additional_libdir=\"$libdir\"
13435 exec_prefix="$acl_save_exec_prefix"
13436 prefix="$acl_save_prefix"
13439 additional_includedir="$withval/include"
13440 additional_libdir="$withval/lib"
13451 names_already_handled=
13452 names_next_round='lzma '
13453 while test -n "$names_next_round"; do
13454 names_this_round="$names_next_round"
13456 for name in $names_this_round; do
13458 for n in $names_already_handled; do
13459 if test "$n" = "$name"; then
13460 already_handled=yes
13464 if test -z "$already_handled"; then
13465 names_already_handled="$names_already_handled $name"
13466 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13467 eval value=\"\$HAVE_LIB$uppername\"
13468 if test -n "$value"; then
13469 if test "$value" = yes; then
13470 eval value=\"\$LIB$uppername\"
13471 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
13472 eval value=\"\$LTLIB$uppername\"
13473 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
13482 if test $use_additional = yes; then
13483 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13484 found_dir="$additional_libdir"
13485 found_so="$additional_libdir/lib$name.$shlibext"
13486 if test -f "$additional_libdir/lib$name.la"; then
13487 found_la="$additional_libdir/lib$name.la"
13490 if test -f "$additional_libdir/lib$name.$libext"; then
13491 found_dir="$additional_libdir"
13492 found_a="$additional_libdir/lib$name.$libext"
13493 if test -f "$additional_libdir/lib$name.la"; then
13494 found_la="$additional_libdir/lib$name.la"
13499 if test "X$found_dir" = "X"; then
13500 for x in $LDFLAGS $LTLIBLZMA; do
13502 acl_save_prefix="$prefix"
13503 prefix="$acl_final_prefix"
13504 acl_save_exec_prefix="$exec_prefix"
13505 exec_prefix="$acl_final_exec_prefix"
13507 exec_prefix="$acl_save_exec_prefix"
13508 prefix="$acl_save_prefix"
13512 dir=`echo "X$x" | sed -e 's/^X-L//'`
13513 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13515 found_so="$dir/lib$name.$shlibext"
13516 if test -f "$dir/lib$name.la"; then
13517 found_la="$dir/lib$name.la"
13520 if test -f "$dir/lib$name.$libext"; then
13522 found_a="$dir/lib$name.$libext"
13523 if test -f "$dir/lib$name.la"; then
13524 found_la="$dir/lib$name.la"
13530 if test "X$found_dir" != "X"; then
13535 if test "X$found_dir" != "X"; then
13536 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
13537 if test "X$found_so" != "X"; then
13538 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13539 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13542 for x in $ltrpathdirs; do
13543 if test "X$x" = "X$found_dir"; then
13548 if test -z "$haveit"; then
13549 ltrpathdirs="$ltrpathdirs $found_dir"
13551 if test "$hardcode_direct" = yes; then
13552 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13554 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13555 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13557 for x in $rpathdirs; do
13558 if test "X$x" = "X$found_dir"; then
13563 if test -z "$haveit"; then
13564 rpathdirs="$rpathdirs $found_dir"
13568 for x in $LDFLAGS $LIBLZMA; do
13570 acl_save_prefix="$prefix"
13571 prefix="$acl_final_prefix"
13572 acl_save_exec_prefix="$exec_prefix"
13573 exec_prefix="$acl_final_exec_prefix"
13575 exec_prefix="$acl_save_exec_prefix"
13576 prefix="$acl_save_prefix"
13578 if test "X$x" = "X-L$found_dir"; then
13583 if test -z "$haveit"; then
13584 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
13586 if test "$hardcode_minus_L" != no; then
13587 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13589 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
13595 if test "X$found_a" != "X"; then
13596 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
13598 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
13601 additional_includedir=
13602 case "$found_dir" in
13604 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13605 additional_includedir="$basedir/include"
13608 if test "X$additional_includedir" != "X"; then
13609 if test "X$additional_includedir" != "X/usr/include"; then
13611 if test "X$additional_includedir" = "X/usr/local/include"; then
13612 if test -n "$GCC"; then
13614 linux*) haveit=yes;;
13618 if test -z "$haveit"; then
13619 for x in $CPPFLAGS $INCLZMA; do
13621 acl_save_prefix="$prefix"
13622 prefix="$acl_final_prefix"
13623 acl_save_exec_prefix="$exec_prefix"
13624 exec_prefix="$acl_final_exec_prefix"
13626 exec_prefix="$acl_save_exec_prefix"
13627 prefix="$acl_save_prefix"
13629 if test "X$x" = "X-I$additional_includedir"; then
13634 if test -z "$haveit"; then
13635 if test -d "$additional_includedir"; then
13636 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
13642 if test -n "$found_la"; then
13643 save_libdir="$libdir"
13644 case "$found_la" in
13645 */* | *\\*) . "$found_la" ;;
13646 *) . "./$found_la" ;;
13648 libdir="$save_libdir"
13649 for dep in $dependency_libs; do
13652 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13653 if test "X$additional_libdir" != "X/usr/lib"; then
13655 if test "X$additional_libdir" = "X/usr/local/lib"; then
13656 if test -n "$GCC"; then
13658 linux*) haveit=yes;;
13662 if test -z "$haveit"; then
13664 for x in $LDFLAGS $LIBLZMA; do
13666 acl_save_prefix="$prefix"
13667 prefix="$acl_final_prefix"
13668 acl_save_exec_prefix="$exec_prefix"
13669 exec_prefix="$acl_final_exec_prefix"
13671 exec_prefix="$acl_save_exec_prefix"
13672 prefix="$acl_save_prefix"
13674 if test "X$x" = "X-L$additional_libdir"; then
13679 if test -z "$haveit"; then
13680 if test -d "$additional_libdir"; then
13681 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
13685 for x in $LDFLAGS $LTLIBLZMA; do
13687 acl_save_prefix="$prefix"
13688 prefix="$acl_final_prefix"
13689 acl_save_exec_prefix="$exec_prefix"
13690 exec_prefix="$acl_final_exec_prefix"
13692 exec_prefix="$acl_save_exec_prefix"
13693 prefix="$acl_save_prefix"
13695 if test "X$x" = "X-L$additional_libdir"; then
13700 if test -z "$haveit"; then
13701 if test -d "$additional_libdir"; then
13702 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
13709 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13710 if test "$enable_rpath" != no; then
13712 for x in $rpathdirs; do
13713 if test "X$x" = "X$dir"; then
13718 if test -z "$haveit"; then
13719 rpathdirs="$rpathdirs $dir"
13722 for x in $ltrpathdirs; do
13723 if test "X$x" = "X$dir"; then
13728 if test -z "$haveit"; then
13729 ltrpathdirs="$ltrpathdirs $dir"
13734 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13737 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13740 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
13741 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
13747 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
13748 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
13754 if test "X$rpathdirs" != "X"; then
13755 if test -n "$hardcode_libdir_separator"; then
13757 for found_dir in $rpathdirs; do
13758 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13760 acl_save_libdir="$libdir"
13762 eval flag=\"$hardcode_libdir_flag_spec\"
13763 libdir="$acl_save_libdir"
13764 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
13766 for found_dir in $rpathdirs; do
13767 acl_save_libdir="$libdir"
13768 libdir="$found_dir"
13769 eval flag=\"$hardcode_libdir_flag_spec\"
13770 libdir="$acl_save_libdir"
13771 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
13775 if test "X$ltrpathdirs" != "X"; then
13776 for found_dir in $ltrpathdirs; do
13777 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
13782 ac_save_CPPFLAGS="$CPPFLAGS"
13784 for element in $INCLZMA; do
13786 for x in $CPPFLAGS; do
13788 acl_save_prefix="$prefix"
13789 prefix="$acl_final_prefix"
13790 acl_save_exec_prefix="$exec_prefix"
13791 exec_prefix="$acl_final_exec_prefix"
13793 exec_prefix="$acl_save_exec_prefix"
13794 prefix="$acl_save_prefix"
13796 if test "X$x" = "X$element"; then
13801 if test -z "$haveit"; then
13802 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
13808 $as_echo_n "checking for liblzma... " >&6; }
13809 if test "${ac_cv_liblzma+set}" = set; then :
13810 $as_echo_n "(cached) " >&6
13813 ac_save_LIBS="$LIBS"
13814 LIBS="$LIBS $LIBLZMA"
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13821 lzma_index_iter iter;
13822 lzma_index_iter_init (&iter, 0);
13823 lzma_mf_is_supported (LZMA_MF_HC3);
13828 if ac_fn_c_try_link "$LINENO"; then :
13833 rm -f core conftest.err conftest.$ac_objext \
13834 conftest$ac_exeext conftest.$ac_ext
13835 LIBS="$ac_save_LIBS"
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
13839 $as_echo "$ac_cv_liblzma" >&6; }
13840 if test "$ac_cv_liblzma" = yes; then
13843 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
13846 $as_echo_n "checking how to link with liblzma... " >&6; }
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
13848 $as_echo "$LIBLZMA" >&6; }
13851 CPPFLAGS="$ac_save_CPPFLAGS"
13861 if test "$HAVE_LIBLZMA" != yes; then
13862 if test "$with_lzma" = yes; then
13863 as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
13869 LIBGUI="../libgui/src/libgui.a"
13870 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
13879 *-*-cygwin* | *-*-mingw* )
13888 if test "${enable_gdbtk}" = "yes"; then
13890 # Gdbtk must have an absolute path to srcdir in order to run
13891 # properly when not installed.
13894 GDBTK_SRC_DIR=`pwd`
13899 # Ok, lets find the tcl configuration
13900 # First, look for one uninstalled.
13901 # the alternative search directory is invoked by --with-tcl
13904 if test x"${no_tcl}" = x ; then
13905 # we reset no_tcl in case something fails here
13908 # Check whether --with-tcl was given.
13909 if test "${with_tcl+set}" = set; then :
13910 withval=$with_tcl; with_tclconfig=${withval}
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13914 $as_echo_n "checking for Tcl configuration... " >&6; }
13915 if test "${ac_cv_c_tclconfig+set}" = set; then :
13916 $as_echo_n "(cached) " >&6
13920 # First check to see if --with-tcl was specified.
13922 *-*-cygwin*) platDir="win" ;;
13923 *) platDir="unix" ;;
13925 if test x"${with_tclconfig}" != x ; then
13926 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13927 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
13929 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13933 # then check for a private Tcl installation
13934 if test x"${ac_cv_c_tclconfig}" = x ; then
13937 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13938 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13939 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13941 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13942 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13943 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13945 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13946 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13947 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
13948 if test -f "$i/$platDir/tclConfig.sh" ; then
13949 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13955 # on Darwin, check in Framework installation locations
13956 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
13957 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13958 `ls -d /Library/Frameworks 2>/dev/null` \
13959 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13960 `ls -d /System/Library/Frameworks 2>/dev/null` \
13962 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13963 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
13969 # check in a few common install locations
13970 if test x"${ac_cv_c_tclconfig}" = x ; then
13971 for i in `ls -d ${libdir} 2>/dev/null` \
13972 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13973 `ls -d ${prefix}/lib 2>/dev/null` \
13974 `ls -d /usr/local/lib 2>/dev/null` \
13975 `ls -d /usr/contrib/lib 2>/dev/null` \
13976 `ls -d /usr/lib 2>/dev/null` \
13978 if test -f "$i/tclConfig.sh" ; then
13979 ac_cv_c_tclconfig=`(cd $i; pwd)`
13985 # check in a few other private locations
13986 if test x"${ac_cv_c_tclconfig}" = x ; then
13989 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13990 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13991 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
13992 if test -f "$i/$platDir/tclConfig.sh" ; then
13993 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14002 if test x"${ac_cv_c_tclconfig}" = x ; then
14003 TCL_BIN_DIR="# no Tcl configs found"
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14005 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14008 TCL_BIN_DIR=${ac_cv_c_tclconfig}
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14010 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14015 # If $no_tk is nonempty, then we can't do Tk, and there is no
14016 # point to doing Tcl.
14019 # Ok, lets find the tk configuration
14020 # First, look for one uninstalled.
14021 # the alternative search directory is invoked by --with-tk
14024 if test x"${no_tk}" = x ; then
14025 # we reset no_tk in case something fails here
14028 # Check whether --with-tk was given.
14029 if test "${with_tk+set}" = set; then :
14030 withval=$with_tk; with_tkconfig=${withval}
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14034 $as_echo_n "checking for Tk configuration... " >&6; }
14035 if test "${ac_cv_c_tkconfig+set}" = set; then :
14036 $as_echo_n "(cached) " >&6
14040 # First check to see if --with-tkconfig was specified.
14041 if test x"${with_tkconfig}" != x ; then
14042 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14043 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
14045 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14049 # then check for a private Tk library
14051 *-*-cygwin*) platDir="win" ;;
14052 *) platDir="unix" ;;
14054 if test x"${ac_cv_c_tkconfig}" = x ; then
14057 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14058 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14059 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14061 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14062 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14063 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14065 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14066 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14067 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14068 if test -f "$i/$platDir/tkConfig.sh" ; then
14069 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14075 # on Darwin, check in Framework installation locations
14076 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
14077 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14078 `ls -d /Library/Frameworks 2>/dev/null` \
14079 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14080 `ls -d /System/Library/Frameworks 2>/dev/null` \
14082 if test -f "$i/Tk.framework/tkConfig.sh" ; then
14083 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
14089 # check in a few common install locations
14090 if test x"${ac_cv_c_tkconfig}" = x ; then
14091 for i in `ls -d ${libdir} 2>/dev/null` \
14092 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14093 `ls -d ${prefix}/lib 2>/dev/null` \
14094 `ls -d /usr/local/lib 2>/dev/null` \
14095 `ls -d /usr/contrib/lib 2>/dev/null` \
14096 `ls -d /usr/lib 2>/dev/null` \
14098 if test -f "$i/tkConfig.sh" ; then
14099 ac_cv_c_tkconfig=`(cd $i; pwd)`
14104 # check in a few other private locations
14105 if test x"${ac_cv_c_tkconfig}" = x ; then
14108 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14109 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14110 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14111 if test -f "$i/$platDir/tkConfig.sh" ; then
14112 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14121 if test x"${ac_cv_c_tkconfig}" = x ; then
14122 TK_BIN_DIR="# no Tk configs found"
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
14124 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
14127 TK_BIN_DIR=${ac_cv_c_tkconfig}
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
14129 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14134 if test -z "${no_tcl}" -a -z "${no_tk}"; then
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
14137 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
14139 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14141 $as_echo "loading" >&6; }
14142 . ${TCL_BIN_DIR}/tclConfig.sh
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
14145 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14148 # eval is required to do the TCL_DBGX substitution
14149 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
14150 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
14152 # If the TCL_BIN_DIR is the build directory (not the install directory),
14153 # then set the common variable name to the value of the build variables.
14154 # For example, the variable TCL_LIB_SPEC will be set to the value
14155 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
14156 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
14157 # installed and uninstalled version of Tcl.
14158 if test -f "${TCL_BIN_DIR}/Makefile" ; then
14159 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
14160 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
14161 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
14162 elif test "`uname -s`" = "Darwin"; then
14163 # If Tcl was built as a framework, attempt to use the libraries
14164 # from the framework at the given location so that linking works
14165 # against Tcl.framework installed in an arbitrary location.
14166 case ${TCL_DEFS} in
14168 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
14169 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
14170 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
14171 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
14172 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
14177 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
14178 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
14179 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
14185 # eval is required to do the TCL_DBGX substitution
14186 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
14187 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
14188 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
14189 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
14205 # Check for in-tree tcl
14212 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
14216 # Find Tcl private headers
14217 if test x"${intree}" = xno; then
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
14220 $as_echo_n "checking for Tcl private headers... " >&6; }
14222 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
14223 if test -f ${dir}/tclInt.h ; then
14227 if test x"${private_dir}" = x; then
14228 as_fn_error "could not find private Tcl headers" "$LINENO" 5
14230 TCL_PRIVATE_INCLUDE="-I${private_dir}"
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14232 $as_echo "${private_dir}" >&6; }
14235 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
14236 TCL_LIBRARY="${TCL_LIB_SPEC}"
14239 # If building tcl in the same src tree, private headers
14240 # are not needed, but we need to be sure to use the right
14242 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
14243 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
14244 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
14252 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
14254 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14256 $as_echo "loading" >&6; }
14257 . ${TK_BIN_DIR}/tkConfig.sh
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
14260 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14263 # eval is required to do the TK_DBGX substitution
14264 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
14265 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
14267 # If the TK_BIN_DIR is the build directory (not the install directory),
14268 # then set the common variable name to the value of the build variables.
14269 # For example, the variable TK_LIB_SPEC will be set to the value
14270 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
14271 # instead of TK_BUILD_LIB_SPEC since it will work with both an
14272 # installed and uninstalled version of Tcl.
14273 if test -f "${TK_BIN_DIR}/Makefile" ; then
14274 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
14275 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
14276 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
14277 elif test "`uname -s`" = "Darwin"; then
14278 # If Tk was built as a framework, attempt to use the libraries
14279 # from the framework at the given location so that linking works
14280 # against Tk.framework installed in an arbitrary location.
14283 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
14284 for i in "`cd ${TK_BIN_DIR}; pwd`" \
14285 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
14286 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
14287 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
14292 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
14293 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
14294 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
14300 # eval is required to do the TK_DBGX substitution
14301 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
14302 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
14303 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
14304 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
14319 # Check for in-tree Tk
14321 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
14325 # Find Tk private headers
14326 if test x"${intree}" = xno; then
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
14329 $as_echo_n "checking for Tk private headers... " >&6; }
14331 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
14332 if test -f ${dir}/tkInt.h; then
14336 if test x"${private_dir}" = x; then
14337 as_fn_error "could not find Tk private headers" "$LINENO" 5
14339 TK_PRIVATE_INCLUDE="-I${private_dir}"
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14341 $as_echo "${private_dir}" >&6; }
14344 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14345 TK_LIBRARY=${TK_LIB_SPEC}
14348 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
14349 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
14350 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
14357 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14359 # Include some libraries that Tcl and Tk want.
14360 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14361 # Yes, the ordering seems wrong here. But it isn't.
14362 # TK_LIBS is the list of libraries that need to be linked
14363 # after Tcl/Tk. Note that this isn't put into LIBS. If it
14364 # were in LIBS then any link tests after this point would
14365 # try to include things like `$(LIBGUI)', which wouldn't work.
14366 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
14368 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14369 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14370 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14371 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
14372 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
14373 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
14374 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
14376 if test x$gdb_cv_os_cygwin = xyes; then
14377 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14378 WIN32LDAPP="-Wl,--subsystem,console"
14379 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
14382 subdirs="$subdirs gdbtk"
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14395 $as_echo_n "checking for X... " >&6; }
14398 # Check whether --with-x was given.
14399 if test "${with_x+set}" = set; then :
14403 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14404 if test "x$with_x" = xno; then
14405 # The user explicitly disabled X.
14408 case $x_includes,$x_libraries in #(
14409 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
14410 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
14411 $as_echo_n "(cached) " >&6
14413 # One or both of the vars are not set, and there is no cached value.
14414 ac_x_includes=no ac_x_libraries=no
14415 rm -f -r conftest.dir
14416 if mkdir conftest.dir; then
14418 cat >Imakefile <<'_ACEOF'
14420 @echo incroot='${INCROOT}'
14422 @echo usrlibdir='${USRLIBDIR}'
14424 @echo libdir='${LIBDIR}'
14426 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14427 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14428 for ac_var in incroot usrlibdir libdir; do
14429 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14431 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14432 for ac_extension in a so sl dylib la dll; do
14433 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14434 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14435 ac_im_usrlibdir=$ac_im_libdir; break
14438 # Screen out bogus values from the imake configuration. They are
14439 # bogus both because they are the default anyway, and because
14440 # using them would break gcc on systems where it needs fixed includes.
14441 case $ac_im_incroot in
14442 /usr/include) ac_x_includes= ;;
14443 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14445 case $ac_im_usrlibdir in
14446 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14447 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14451 rm -f -r conftest.dir
14454 # Standard set of common directories for X headers.
14455 # Check X11 before X11Rn because it is often a symlink to the current release.
14469 /usr/local/X11/include
14470 /usr/local/X11R7/include
14471 /usr/local/X11R6/include
14472 /usr/local/X11R5/include
14473 /usr/local/X11R4/include
14475 /usr/local/include/X11
14476 /usr/local/include/X11R7
14477 /usr/local/include/X11R6
14478 /usr/local/include/X11R5
14479 /usr/local/include/X11R4
14483 /usr/XFree86/include/X11
14487 /usr/unsupported/include
14488 /usr/athena/include
14489 /usr/local/x11r5/include
14490 /usr/lpp/Xamples/include
14492 /usr/openwin/include
14493 /usr/openwin/share/include'
14495 if test "$ac_x_includes" = no; then
14496 # Guess where to find include files, by looking for Xlib.h.
14497 # First, try using that file with no special directory specified.
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14500 #include <X11/Xlib.h>
14502 if ac_fn_c_try_cpp "$LINENO"; then :
14503 # We can compile using X headers with no special include directory.
14506 for ac_dir in $ac_x_header_dirs; do
14507 if test -r "$ac_dir/X11/Xlib.h"; then
14508 ac_x_includes=$ac_dir
14513 rm -f conftest.err conftest.$ac_ext
14514 fi # $ac_x_includes = no
14516 if test "$ac_x_libraries" = no; then
14517 # Check for the libraries.
14518 # See if we find them without any special options.
14519 # Don't add to $LIBS permanently.
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14524 #include <X11/Xlib.h>
14533 if ac_fn_c_try_link "$LINENO"; then :
14535 # We can link X programs with no special library path.
14539 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14541 # Don't even attempt the hair of trying to link an X program!
14542 for ac_extension in a so sl dylib la dll; do
14543 if test -r "$ac_dir/libX11.$ac_extension"; then
14544 ac_x_libraries=$ac_dir
14550 rm -f core conftest.err conftest.$ac_objext \
14551 conftest$ac_exeext conftest.$ac_ext
14552 fi # $ac_x_libraries = no
14554 case $ac_x_includes,$ac_x_libraries in #(
14555 no,* | *,no | *\'*)
14556 # Didn't find X, or a directory has "'" in its name.
14557 ac_cv_have_x="have_x=no";; #(
14559 # Record where we found X for the cache.
14560 ac_cv_have_x="have_x=yes\
14561 ac_x_includes='$ac_x_includes'\
14562 ac_x_libraries='$ac_x_libraries'"
14568 eval "$ac_cv_have_x"
14571 if test "$have_x" != yes; then
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14573 $as_echo "$have_x" >&6; }
14576 # If each of the values was on the command line, it overrides each guess.
14577 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14578 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14579 # Update the cache value to reflect the command line values.
14580 ac_cv_have_x="have_x=yes\
14581 ac_x_includes='$x_includes'\
14582 ac_x_libraries='$x_libraries'"
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14584 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14588 # Unlike the sim directory, whether a simulator is linked is controlled by
14589 # presence of a gdb_sim definition in the target configure.tgt entry.
14590 # This code just checks for a few cases where we'd like to ignore those
14591 # definitions, even when they're present in the '.mt' file. These cases
14592 # are when --disable-sim is specified, or if the simulator directory is
14593 # not part of the source tree.
14595 # Check whether --enable-sim was given.
14596 if test "${enable_sim+set}" = set; then :
14597 enableval=$enable_sim; echo "enable_sim = $enable_sim";
14598 echo "enableval = ${enableval}";
14599 case "${enableval}" in
14600 yes) ignore_sim=false ;;
14601 no) ignore_sim=true ;;
14602 *) ignore_sim=false ;;
14609 if test ! -d "${srcdir}/../sim"; then
14615 if test "${ignore_sim}" = "false"; then
14616 if test x"${gdb_sim}" != x ; then
14618 SIM_OBS="remote-sim.o"
14620 $as_echo "#define WITH_SIM 1" >>confdefs.h
14638 # List of host floatformats.
14640 cat >>confdefs.h <<_ACEOF
14641 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14645 cat >>confdefs.h <<_ACEOF
14646 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14650 cat >>confdefs.h <<_ACEOF
14651 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14655 # target_subdir is used by the testsuite to find the target libraries.
14657 if test "${host}" != "${target}"; then
14658 target_subdir="${target_alias}/"
14663 if test "${gdb_native}" = "yes"; then
14664 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14665 if test ! -f ${host_makefile_frag}; then
14666 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14668 frags="$frags $host_makefile_frag"
14670 host_makefile_frag=/dev/null
14676 if test "${gdb_native}" = "yes"; then
14677 # We pick this up from the host configuration file (.mh) because we
14678 # do not have a native configuration Makefile fragment.
14679 nativefile=`sed -n '
14680 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
14681 ' ${host_makefile_frag}`
14685 if test x"${gdb_osabi}" != x ; then
14687 cat >>confdefs.h <<_ACEOF
14688 #define GDB_OSABI_DEFAULT $gdb_osabi
14693 # Enable multi-ice-gdb-server.
14694 # Check whether --enable-multi-ice was given.
14695 if test "${enable_multi_ice+set}" = set; then :
14696 enableval=$enable_multi_ice; case $enableval in
14699 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14703 if test "x$enable_multi_ice" = xyes; then
14704 subdirs="$subdirs multi-ice"
14708 # Check whether --enable-gdbserver was given.
14709 if test "${enable_gdbserver+set}" = set; then :
14710 enableval=$enable_gdbserver; case "${enableval}" in
14712 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
14715 enable_gdbserver=auto
14719 # We only build gdbserver automatically in a native configuration, and
14720 # only if the user did not explicitly disable its build.
14721 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14723 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14724 if test "x$build_gdbserver" = xyes; then
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14726 $as_echo "yes" >&6; }
14727 subdirs="$subdirs gdbserver"
14729 gdbserver_build_enabled=yes
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14732 $as_echo "no" >&6; }
14736 # If the user explicitly request the gdbserver to be built, verify that
14737 # we were in fact able to enable it.
14738 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
14739 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
14742 # Check for babeltrace and babeltrace-ctf
14744 # Check whether --with-babeltrace was given.
14745 if test "${with_babeltrace+set}" = set; then :
14746 withval=$with_babeltrace;
14748 with_babeltrace=auto
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
14752 $as_echo_n "checking whether to use babeltrace... " >&6; }
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
14754 $as_echo "$with_babeltrace" >&6; }
14756 if test "x$with_babeltrace" = "xno"; then
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
14758 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
14760 # Append -Werror to CFLAGS so that configure can catch the warning
14761 # "assignment from incompatible pointer type", which is related to
14762 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
14763 # in GDB, while babeltrace 1.0.3 is broken.
14764 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
14765 # safe to save and restore CFLAGS here.
14766 saved_CFLAGS=$CFLAGS
14767 CFLAGS="$CFLAGS -Werror"
14778 acl_save_prefix="$prefix"
14779 prefix="$acl_final_prefix"
14780 acl_save_exec_prefix="$exec_prefix"
14781 exec_prefix="$acl_final_exec_prefix"
14783 eval additional_includedir=\"$includedir\"
14784 eval additional_libdir=\"$libdir\"
14786 exec_prefix="$acl_save_exec_prefix"
14787 prefix="$acl_save_prefix"
14790 # Check whether --with-libbabeltrace-prefix was given.
14791 if test "${with_libbabeltrace_prefix+set}" = set; then :
14792 withval=$with_libbabeltrace_prefix;
14793 if test "X$withval" = "Xno"; then
14796 if test "X$withval" = "X"; then
14798 acl_save_prefix="$prefix"
14799 prefix="$acl_final_prefix"
14800 acl_save_exec_prefix="$exec_prefix"
14801 exec_prefix="$acl_final_exec_prefix"
14803 eval additional_includedir=\"$includedir\"
14804 eval additional_libdir=\"$libdir\"
14806 exec_prefix="$acl_save_exec_prefix"
14807 prefix="$acl_save_prefix"
14810 additional_includedir="$withval/include"
14811 additional_libdir="$withval/lib"
14822 names_already_handled=
14823 names_next_round='babeltrace babeltrace-ctf'
14824 while test -n "$names_next_round"; do
14825 names_this_round="$names_next_round"
14827 for name in $names_this_round; do
14829 for n in $names_already_handled; do
14830 if test "$n" = "$name"; then
14831 already_handled=yes
14835 if test -z "$already_handled"; then
14836 names_already_handled="$names_already_handled $name"
14837 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14838 eval value=\"\$HAVE_LIB$uppername\"
14839 if test -n "$value"; then
14840 if test "$value" = yes; then
14841 eval value=\"\$LIB$uppername\"
14842 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
14843 eval value=\"\$LTLIB$uppername\"
14844 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
14853 if test $use_additional = yes; then
14854 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14855 found_dir="$additional_libdir"
14856 found_so="$additional_libdir/lib$name.$shlibext"
14857 if test -f "$additional_libdir/lib$name.la"; then
14858 found_la="$additional_libdir/lib$name.la"
14861 if test -f "$additional_libdir/lib$name.$libext"; then
14862 found_dir="$additional_libdir"
14863 found_a="$additional_libdir/lib$name.$libext"
14864 if test -f "$additional_libdir/lib$name.la"; then
14865 found_la="$additional_libdir/lib$name.la"
14870 if test "X$found_dir" = "X"; then
14871 for x in $LDFLAGS $LTLIBBABELTRACE; do
14873 acl_save_prefix="$prefix"
14874 prefix="$acl_final_prefix"
14875 acl_save_exec_prefix="$exec_prefix"
14876 exec_prefix="$acl_final_exec_prefix"
14878 exec_prefix="$acl_save_exec_prefix"
14879 prefix="$acl_save_prefix"
14883 dir=`echo "X$x" | sed -e 's/^X-L//'`
14884 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14886 found_so="$dir/lib$name.$shlibext"
14887 if test -f "$dir/lib$name.la"; then
14888 found_la="$dir/lib$name.la"
14891 if test -f "$dir/lib$name.$libext"; then
14893 found_a="$dir/lib$name.$libext"
14894 if test -f "$dir/lib$name.la"; then
14895 found_la="$dir/lib$name.la"
14901 if test "X$found_dir" != "X"; then
14906 if test "X$found_dir" != "X"; then
14907 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
14908 if test "X$found_so" != "X"; then
14909 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14910 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14913 for x in $ltrpathdirs; do
14914 if test "X$x" = "X$found_dir"; then
14919 if test -z "$haveit"; then
14920 ltrpathdirs="$ltrpathdirs $found_dir"
14922 if test "$hardcode_direct" = yes; then
14923 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14925 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14926 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14928 for x in $rpathdirs; do
14929 if test "X$x" = "X$found_dir"; then
14934 if test -z "$haveit"; then
14935 rpathdirs="$rpathdirs $found_dir"
14939 for x in $LDFLAGS $LIBBABELTRACE; do
14941 acl_save_prefix="$prefix"
14942 prefix="$acl_final_prefix"
14943 acl_save_exec_prefix="$exec_prefix"
14944 exec_prefix="$acl_final_exec_prefix"
14946 exec_prefix="$acl_save_exec_prefix"
14947 prefix="$acl_save_prefix"
14949 if test "X$x" = "X-L$found_dir"; then
14954 if test -z "$haveit"; then
14955 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
14957 if test "$hardcode_minus_L" != no; then
14958 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14960 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
14966 if test "X$found_a" != "X"; then
14967 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
14969 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
14972 additional_includedir=
14973 case "$found_dir" in
14975 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14976 additional_includedir="$basedir/include"
14979 if test "X$additional_includedir" != "X"; then
14980 if test "X$additional_includedir" != "X/usr/include"; then
14982 if test "X$additional_includedir" = "X/usr/local/include"; then
14983 if test -n "$GCC"; then
14985 linux*) haveit=yes;;
14989 if test -z "$haveit"; then
14990 for x in $CPPFLAGS $INCBABELTRACE; do
14992 acl_save_prefix="$prefix"
14993 prefix="$acl_final_prefix"
14994 acl_save_exec_prefix="$exec_prefix"
14995 exec_prefix="$acl_final_exec_prefix"
14997 exec_prefix="$acl_save_exec_prefix"
14998 prefix="$acl_save_prefix"
15000 if test "X$x" = "X-I$additional_includedir"; then
15005 if test -z "$haveit"; then
15006 if test -d "$additional_includedir"; then
15007 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
15013 if test -n "$found_la"; then
15014 save_libdir="$libdir"
15015 case "$found_la" in
15016 */* | *\\*) . "$found_la" ;;
15017 *) . "./$found_la" ;;
15019 libdir="$save_libdir"
15020 for dep in $dependency_libs; do
15023 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15024 if test "X$additional_libdir" != "X/usr/lib"; then
15026 if test "X$additional_libdir" = "X/usr/local/lib"; then
15027 if test -n "$GCC"; then
15029 linux*) haveit=yes;;
15033 if test -z "$haveit"; then
15035 for x in $LDFLAGS $LIBBABELTRACE; do
15037 acl_save_prefix="$prefix"
15038 prefix="$acl_final_prefix"
15039 acl_save_exec_prefix="$exec_prefix"
15040 exec_prefix="$acl_final_exec_prefix"
15042 exec_prefix="$acl_save_exec_prefix"
15043 prefix="$acl_save_prefix"
15045 if test "X$x" = "X-L$additional_libdir"; then
15050 if test -z "$haveit"; then
15051 if test -d "$additional_libdir"; then
15052 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
15056 for x in $LDFLAGS $LTLIBBABELTRACE; do
15058 acl_save_prefix="$prefix"
15059 prefix="$acl_final_prefix"
15060 acl_save_exec_prefix="$exec_prefix"
15061 exec_prefix="$acl_final_exec_prefix"
15063 exec_prefix="$acl_save_exec_prefix"
15064 prefix="$acl_save_prefix"
15066 if test "X$x" = "X-L$additional_libdir"; then
15071 if test -z "$haveit"; then
15072 if test -d "$additional_libdir"; then
15073 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
15080 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15081 if test "$enable_rpath" != no; then
15083 for x in $rpathdirs; do
15084 if test "X$x" = "X$dir"; then
15089 if test -z "$haveit"; then
15090 rpathdirs="$rpathdirs $dir"
15093 for x in $ltrpathdirs; do
15094 if test "X$x" = "X$dir"; then
15099 if test -z "$haveit"; then
15100 ltrpathdirs="$ltrpathdirs $dir"
15105 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15108 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15111 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
15112 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
15118 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15119 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
15125 if test "X$rpathdirs" != "X"; then
15126 if test -n "$hardcode_libdir_separator"; then
15128 for found_dir in $rpathdirs; do
15129 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15131 acl_save_libdir="$libdir"
15133 eval flag=\"$hardcode_libdir_flag_spec\"
15134 libdir="$acl_save_libdir"
15135 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15137 for found_dir in $rpathdirs; do
15138 acl_save_libdir="$libdir"
15139 libdir="$found_dir"
15140 eval flag=\"$hardcode_libdir_flag_spec\"
15141 libdir="$acl_save_libdir"
15142 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15146 if test "X$ltrpathdirs" != "X"; then
15147 for found_dir in $ltrpathdirs; do
15148 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
15153 ac_save_CPPFLAGS="$CPPFLAGS"
15155 for element in $INCBABELTRACE; do
15157 for x in $CPPFLAGS; do
15159 acl_save_prefix="$prefix"
15160 prefix="$acl_final_prefix"
15161 acl_save_exec_prefix="$exec_prefix"
15162 exec_prefix="$acl_final_exec_prefix"
15164 exec_prefix="$acl_save_exec_prefix"
15165 prefix="$acl_save_prefix"
15167 if test "X$x" = "X$element"; then
15172 if test -z "$haveit"; then
15173 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
15179 $as_echo_n "checking for libbabeltrace... " >&6; }
15180 if test "${ac_cv_libbabeltrace+set}" = set; then :
15181 $as_echo_n "(cached) " >&6
15184 ac_save_LIBS="$LIBS"
15185 LIBS="$LIBS $LIBBABELTRACE"
15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15188 #include <babeltrace/babeltrace.h>
15189 #include <babeltrace/ctf/events.h>
15190 #include <babeltrace/ctf/iterator.h>
15194 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
15195 struct bt_ctf_event *event = NULL;
15196 const struct bt_definition *scope;
15198 scope = bt_ctf_get_top_level_scope (event,
15199 BT_STREAM_EVENT_HEADER);
15200 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
15206 if ac_fn_c_try_link "$LINENO"; then :
15207 ac_cv_libbabeltrace=yes
15209 ac_cv_libbabeltrace=no
15211 rm -f core conftest.err conftest.$ac_objext \
15212 conftest$ac_exeext conftest.$ac_ext
15213 LIBS="$ac_save_LIBS"
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
15217 $as_echo "$ac_cv_libbabeltrace" >&6; }
15218 if test "$ac_cv_libbabeltrace" = yes; then
15219 HAVE_LIBBABELTRACE=yes
15221 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
15224 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
15226 $as_echo "$LIBBABELTRACE" >&6; }
15228 HAVE_LIBBABELTRACE=no
15229 CPPFLAGS="$ac_save_CPPFLAGS"
15239 CFLAGS=$saved_CFLAGS
15241 if test "$HAVE_LIBBABELTRACE" != yes; then
15242 if test "$with_babeltrace" = yes; then
15243 as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
15246 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
15251 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15252 # to an empty version.
15258 if test "${nativefile}" != ""; then
15259 case "${nativefile}" in
15260 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15261 * ) GDB_NM_FILE="${nativefile}"
15263 files="${files} ${GDB_NM_FILE}"
15264 links="${links} nm.h"
15266 cat >>confdefs.h <<_ACEOF
15267 #define GDB_NM_FILE "${GDB_NM_FILE}"
15273 ac_sources="$files"
15275 while test -n "$ac_sources"; do
15276 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15277 set $ac_sources; ac_source=$1; shift; ac_sources=$*
15278 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15280 ac_config_links="$ac_config_links $ac_config_links_1"
15286 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15289 # Undo the $ec_script escaping suitable for Makefile.
15290 transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
15291 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$transform"`
15292 if test "x$GDB_TRANSFORM_NAME" = x; then
15293 GDB_TRANSFORM_NAME=gdb
15296 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$transform"`
15297 if test "x$GCORE_TRANSFORM_NAME" = x; then
15298 GCORE_TRANSFORM_NAME=gcore
15301 ac_config_files="$ac_config_files gcore"
15304 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
15306 ac_config_commands="$ac_config_commands default"
15308 cat >confcache <<\_ACEOF
15309 # This file is a shell script that caches the results of configure
15310 # tests run on this system so they can be shared between configure
15311 # scripts and configure runs, see configure's option --config-cache.
15312 # It is not useful on other systems. If it contains results you don't
15313 # want to keep, you may remove or edit it.
15315 # config.status only pays attention to the cache file if you give it
15316 # the --recheck option to rerun configure.
15318 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15319 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15320 # following values.
15324 # The following way of writing the cache mishandles newlines in values,
15325 # but we know of no workaround that is simple, portable, and efficient.
15326 # So, we kill variables containing newlines.
15327 # Ultrix sh set writes to stderr and can't be redirected directly,
15328 # and sets the high bit in the cache file unless we assign to the vars.
15330 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15331 eval ac_val=\$$ac_var
15335 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15336 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15339 _ | IFS | as_nl) ;; #(
15340 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15341 *) { eval $ac_var=; unset $ac_var;} ;;
15347 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15348 *${as_nl}ac_space=\ *)
15349 # `set' does not quote correctly, so add quotes: double-quote
15350 # substitution turns \\\\ into \\, and sed turns \\ into \.
15353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15356 # `set' quotes correctly as required by POSIX, so do not add quotes.
15357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15366 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15368 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15370 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15371 if test -w "$cache_file"; then
15372 test "x$cache_file" != "x/dev/null" &&
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15374 $as_echo "$as_me: updating cache $cache_file" >&6;}
15375 cat confcache >$cache_file
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15378 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15383 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15384 # Let make expand exec_prefix.
15385 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15387 DEFS=-DHAVE_CONFIG_H
15391 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15392 # 1. Remove the extension, and $U if already installed.
15393 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15394 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15395 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15396 # will be set to the directory where LIBOBJS objects are built.
15397 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15398 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15400 LIBOBJS=$ac_libobjs
15402 LTLIBOBJS=$ac_ltlibobjs
15405 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15406 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15409 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15410 as_fn_error "conditional \"GMAKE\" was never defined.
15411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15415 : ${CONFIG_STATUS=./config.status}
15417 ac_clean_files_save=$ac_clean_files
15418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15420 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15422 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15424 # Generated by $as_me.
15425 # Run this file to recreate the current configuration.
15426 # Compiler output produced by configure, useful for debugging
15427 # configure, is in config.log if it exists.
15430 ac_cs_recheck=false
15433 SHELL=\${CONFIG_SHELL-$SHELL}
15436 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15437 ## -------------------- ##
15438 ## M4sh Initialization. ##
15439 ## -------------------- ##
15441 # Be more Bourne compatible
15442 DUALCASE=1; export DUALCASE # for MKS sh
15443 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15446 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15447 # is contrary to our usage. Disable this feature.
15448 alias -g '${1+"$@"}'='"$@"'
15449 setopt NO_GLOB_SUBST
15451 case `(set -o) 2>/dev/null` in #(
15463 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15464 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15465 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15466 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15467 # Prefer a ksh shell builtin over an external printf program on Solaris,
15468 # but without wasting forks for bash or zsh.
15469 if test -z "$BASH_VERSION$ZSH_VERSION" \
15470 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15471 as_echo='print -r --'
15472 as_echo_n='print -rn --'
15473 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15474 as_echo='printf %s\n'
15475 as_echo_n='printf %s'
15477 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15479 as_echo_n='/usr/ucb/echo -n'
15481 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15482 as_echo_n_body='eval
15486 expr "X$arg" : "X\\(.*\\)$as_nl";
15487 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15489 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15491 export as_echo_n_body
15492 as_echo_n='sh -c $as_echo_n_body as_echo'
15494 export as_echo_body
15495 as_echo='sh -c $as_echo_body as_echo'
15498 # The user is always right.
15499 if test "${PATH_SEPARATOR+set}" != set; then
15501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15509 # We need space, tab and new line, in precisely that order. Quoting is
15510 # there to prevent editors from complaining about space-tab.
15511 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15512 # splitting by setting IFS to empty value.)
15515 # Find who we are. Look in the path if we contain no directory separator.
15517 *[\\/]* ) as_myself=$0 ;;
15518 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15519 for as_dir in $PATH
15522 test -z "$as_dir" && as_dir=.
15523 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15529 # We did not find ourselves, most probably we were run as `sh COMMAND'
15530 # in which case we are not to be found in the path.
15531 if test "x$as_myself" = x; then
15534 if test ! -f "$as_myself"; then
15535 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15539 # Unset variables that we do not need and which cause bugs (e.g. in
15540 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15541 # suppresses any "Segmentation fault" message there. '((' could
15542 # trigger a bug in pdksh 5.2.14.
15543 for as_var in BASH_ENV ENV MAIL MAILPATH
15544 do eval test x\${$as_var+set} = xset \
15545 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15558 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15561 # as_fn_error ERROR [LINENO LOG_FD]
15562 # ---------------------------------
15563 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15564 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15565 # script with status $?, using 1 if that was 0.
15568 as_status=$?; test $as_status -eq 0 && as_status=1
15570 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15571 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15573 $as_echo "$as_me: error: $1" >&2
15574 as_fn_exit $as_status
15578 # as_fn_set_status STATUS
15579 # -----------------------
15580 # Set $? to STATUS, without forking.
15581 as_fn_set_status ()
15584 } # as_fn_set_status
15586 # as_fn_exit STATUS
15587 # -----------------
15588 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15592 as_fn_set_status $1
15598 # Portably unset VAR.
15601 { eval $1=; unset $1;}
15603 as_unset=as_fn_unset
15604 # as_fn_append VAR VALUE
15605 # ----------------------
15606 # Append the text in VALUE to the end of the definition contained in VAR. Take
15607 # advantage of any shell optimizations that allow amortized linear growth over
15608 # repeated appends, instead of the typical quadratic growth present in naive
15610 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15611 eval 'as_fn_append ()
15622 # as_fn_arith ARG...
15623 # ------------------
15624 # Perform arithmetic evaluation on the ARGs, and store the result in the
15625 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15626 # must be portable across $(()) and expr.
15627 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15628 eval 'as_fn_arith ()
15635 as_val=`expr "$@" || test $? -eq 1`
15640 if expr a : '\(a\)' >/dev/null 2>&1 &&
15641 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15647 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15648 as_basename=basename
15653 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15659 as_me=`$as_basename -- "$0" ||
15660 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15661 X"$0" : 'X\(//\)$' \| \
15662 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15664 sed '/^.*\/\([^/][^/]*\)\/*$/{
15678 # Avoid depending upon Character Ranges.
15679 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15680 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15681 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15682 as_cr_digits='0123456789'
15683 as_cr_alnum=$as_cr_Letters$as_cr_digits
15685 ECHO_C= ECHO_N= ECHO_T=
15686 case `echo -n x` in #(((((
15688 case `echo 'xy\c'` in
15689 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15691 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15698 rm -f conf$$ conf$$.exe conf$$.file
15699 if test -d conf$$.dir; then
15700 rm -f conf$$.dir/conf$$.file
15703 mkdir conf$$.dir 2>/dev/null
15705 if (echo >conf$$.file) 2>/dev/null; then
15706 if ln -s conf$$.file conf$$ 2>/dev/null; then
15708 # ... but there are two gotchas:
15709 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15710 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15711 # In both cases, we have to default to `cp -p'.
15712 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15714 elif ln conf$$.file conf$$ 2>/dev/null; then
15722 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15723 rmdir conf$$.dir 2>/dev/null
15728 # Create "$as_dir" as a directory, including parents if necessary.
15733 -*) as_dir=./$as_dir;;
15735 test -d "$as_dir" || eval $as_mkdir_p || {
15739 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15740 *) as_qdir=$as_dir;;
15742 as_dirs="'$as_qdir' $as_dirs"
15743 as_dir=`$as_dirname -- "$as_dir" ||
15744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15745 X"$as_dir" : 'X\(//\)[^/]' \| \
15746 X"$as_dir" : 'X\(//\)$' \| \
15747 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15748 $as_echo X"$as_dir" |
15749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15753 /^X\(\/\/\)[^/].*/{
15766 test -d "$as_dir" && break
15768 test -z "$as_dirs" || eval "mkdir $as_dirs"
15769 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15773 if mkdir -p . 2>/dev/null; then
15774 as_mkdir_p='mkdir -p "$as_dir"'
15776 test -d ./-p && rmdir ./-p
15780 if test -x / >/dev/null 2>&1; then
15781 as_test_x='test -x'
15783 if ls -dL / >/dev/null 2>&1; then
15790 if test -d "$1"; then
15796 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15797 ???[sx]*):;;*)false;;esac;fi
15801 as_executable_p=$as_test_x
15803 # Sed expression to map a string onto a valid CPP name.
15804 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15806 # Sed expression to map a string onto a valid variable name.
15807 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15811 ## ----------------------------------- ##
15812 ## Main body of $CONFIG_STATUS script. ##
15813 ## ----------------------------------- ##
15815 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15818 # Save the log message, to keep $0 and so on meaningful, and to
15819 # report actual input values of CONFIG_FILES etc. instead of their
15820 # values after options handling.
15822 This file was extended by $as_me, which was
15823 generated by GNU Autoconf 2.64. Invocation command line was
15825 CONFIG_FILES = $CONFIG_FILES
15826 CONFIG_HEADERS = $CONFIG_HEADERS
15827 CONFIG_LINKS = $CONFIG_LINKS
15828 CONFIG_COMMANDS = $CONFIG_COMMANDS
15831 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15836 case $ac_config_files in *"
15837 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15840 case $ac_config_headers in *"
15841 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15846 # Files that config.status was made for.
15847 config_files="$ac_config_files"
15848 config_headers="$ac_config_headers"
15849 config_links="$ac_config_links"
15850 config_commands="$ac_config_commands"
15854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15856 \`$as_me' instantiates files and other configuration actions
15857 from templates according to the current configuration. Unless the files
15858 and actions are specified as TAGs, all are instantiated by default.
15860 Usage: $0 [OPTION]... [TAG]...
15862 -h, --help print this help, then exit
15863 -V, --version print version number and configuration settings, then exit
15864 -q, --quiet, --silent
15865 do not print progress messages
15866 -d, --debug don't remove temporary files
15867 --recheck update $as_me by reconfiguring in the same conditions
15868 --file=FILE[:TEMPLATE]
15869 instantiate the configuration file FILE
15870 --header=FILE[:TEMPLATE]
15871 instantiate the configuration header FILE
15873 Configuration files:
15876 Configuration headers:
15879 Configuration links:
15882 Configuration commands:
15885 Report bugs to the package provider."
15888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15891 configured by $0, generated by GNU Autoconf 2.64,
15892 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15894 Copyright (C) 2009 Free Software Foundation, Inc.
15895 This config.status script is free software; the Free Software Foundation
15896 gives unlimited permission to copy, distribute and modify it."
15902 test -n "\$AWK" || AWK=awk
15905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15906 # The default lists apply if the user does not specify any file.
15912 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15913 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15924 # Handling of the options.
15925 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15927 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15928 $as_echo "$ac_cs_version"; exit ;;
15929 --debug | --debu | --deb | --de | --d | -d )
15931 --file | --fil | --fi | --f )
15934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15936 as_fn_append CONFIG_FILES " '$ac_optarg'"
15937 ac_need_defaults=false;;
15938 --header | --heade | --head | --hea )
15941 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15943 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15944 ac_need_defaults=false;;
15946 # Conflict between --help and --header
15947 as_fn_error "ambiguous option: \`$1'
15948 Try \`$0 --help' for more information.";;
15949 --help | --hel | -h )
15950 $as_echo "$ac_cs_usage"; exit ;;
15951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15952 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15955 # This is an error.
15956 -*) as_fn_error "unrecognized option: \`$1'
15957 Try \`$0 --help' for more information." ;;
15959 *) as_fn_append ac_config_targets " $1"
15960 ac_need_defaults=false ;;
15966 ac_configure_extra_args=
15968 if $ac_cs_silent; then
15970 ac_configure_extra_args="$ac_configure_extra_args --silent"
15974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15975 if \$ac_cs_recheck; then
15976 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15978 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15979 CONFIG_SHELL='$SHELL'
15980 export CONFIG_SHELL
15985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15989 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15990 ## Running $as_me. ##
15996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16000 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16006 # Handling of arguments.
16007 for ac_config_target in $ac_config_targets
16009 case $ac_config_target in
16010 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16011 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16012 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16013 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16014 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
16015 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16016 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
16017 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16018 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
16019 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16021 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16026 # If the user did not use the arguments to specify the items to instantiate,
16027 # then the envvar interface is used. Set only those that are not.
16028 # We use the long form for the default assignment because of an extremely
16029 # bizarre bug on SunOS 4.1.3.
16030 if $ac_need_defaults; then
16031 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16032 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16033 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16034 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16037 # Have a temporary directory for convenience. Make it in the build tree
16038 # simply because there is no reason against having it here, and in addition,
16039 # creating and moving files from /tmp can sometimes cause problems.
16040 # Hook for its removal unless debugging.
16041 # Note that there is a small window in which the directory will not be cleaned:
16042 # after its creation but before its name has been assigned to `$tmp'.
16046 trap 'exit_status=$?
16047 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16049 trap 'as_fn_exit 1' 1 2 13 15
16051 # Create a (secure) tmp directory for tmp files.
16054 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16055 test -n "$tmp" && test -d "$tmp"
16058 tmp=./conf$$-$RANDOM
16059 (umask 077 && mkdir "$tmp")
16060 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16062 # Set up the scripts for CONFIG_FILES section.
16063 # No need to generate them if there are no CONFIG_FILES.
16064 # This happens for instance with `./config.status config.h'.
16065 if test -n "$CONFIG_FILES"; then
16067 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16068 ac_cs_awk_getline=:
16069 ac_cs_awk_pipe_init=
16070 ac_cs_awk_read_file='
16071 while ((getline aline < (F[key])) > 0)
16074 ac_cs_awk_pipe_fini=
16076 ac_cs_awk_getline=false
16077 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16078 ac_cs_awk_read_file='
16080 print "cat " F[key] " &&"
16081 '$ac_cs_awk_pipe_init
16082 # The final `:' finishes the AND list.
16083 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16085 ac_cr=`echo X | tr X '\015'`
16086 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16087 # But we know of no other shell where ac_cr would be empty at this
16088 # point, so we can use a bashism as a fallback.
16089 if test "x$ac_cr" = x; then
16090 eval ac_cr=\$\'\\r\'
16092 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16093 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16096 ac_cs_awk_cr=$ac_cr
16099 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16102 # Create commands to substitute file output variables.
16104 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16105 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16106 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16109 } >conf$$files.sh &&
16110 . ./conf$$files.sh ||
16111 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16112 rm -f conf$$files.sh
16115 echo "cat >conf$$subs.awk <<_ACEOF" &&
16116 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16118 } >conf$$subs.sh ||
16119 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16120 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16122 for ac_last_try in false false false false false :; do
16123 . ./conf$$subs.sh ||
16124 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16126 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16127 if test $ac_delim_n = $ac_delim_num; then
16129 elif $ac_last_try; then
16130 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16132 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16135 rm -f conf$$subs.sh
16137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16138 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16142 s/^/S["/; s/!.*/"]=/
16152 s/\(.\{148\}\).*/\1/
16154 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16166 s/\(.\{148\}\).*/\1/
16168 s/["\\]/\\&/g; s/^/"/; s/$/"/
16172 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16177 ' <conf$$subs.awk | sed '
16182 ' >>$CONFIG_STATUS || ac_write_fail=1
16183 rm -f conf$$subs.awk
16184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16186 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16187 for (key in S) S_is_set[key] = 1
16189 \$ac_cs_awk_pipe_init
16193 nfields = split(line, field, "@")
16195 len = length(field[1])
16196 for (i = 2; i < nfields; i++) {
16198 keylen = length(key)
16199 if (S_is_set[key]) {
16201 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16202 len += length(value) + length(field[++i])
16207 if (nfields == 3 && !substed) {
16209 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16210 \$ac_cs_awk_read_file
16216 \$ac_cs_awk_pipe_fini
16219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16220 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16221 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16224 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16225 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16228 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16229 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16230 # trailing colons and then remove the whole line if VPATH becomes empty
16231 # (actually we leave an empty line to preserve line numbers).
16232 if test "x$srcdir" = x.; then
16233 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16234 s/:*\$(srcdir):*/:/
16235 s/:*\${srcdir}:*/:/
16237 s/^\([^=]*=[ ]*\):*/\1/
16243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16244 fi # test -n "$CONFIG_FILES"
16246 # Set up the scripts for CONFIG_HEADERS section.
16247 # No need to generate them if there are no CONFIG_HEADERS.
16248 # This happens for instance with `./config.status Makefile'.
16249 if test -n "$CONFIG_HEADERS"; then
16250 cat >"$tmp/defines.awk" <<\_ACAWK ||
16254 # Transform confdefs.h into an awk script `defines.awk', embedded as
16255 # here-document in config.status, that substitutes the proper values into
16256 # config.h.in to produce config.h.
16258 # Create a delimiter string that does not exist in confdefs.h, to ease
16259 # handling of long lines.
16261 for ac_last_try in false false :; do
16262 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16263 if test -z "$ac_t"; then
16265 elif $ac_last_try; then
16266 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16272 # For the awk script, D is an array of macro values keyed by name,
16273 # likewise P contains macro parameters if any. Preserve backslash
16274 # newline sequences.
16276 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16278 s/.\{148\}/&'"$ac_delim"'/g
16281 s/^[ ]*#[ ]*define[ ][ ]*/ /
16288 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16290 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16294 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16295 D["\1"]=" \3\\\\\\n"\\/p
16297 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16302 s/.\{148\}/&'"$ac_delim"'/g
16307 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16310 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16312 ' <confdefs.h | sed '
16313 s/'"$ac_delim"'/"\\\
16314 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16317 for (key in D) D_is_set[key] = 1
16320 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16322 split(line, arg, " ")
16323 if (arg[1] == "#") {
16327 defundef = substr(arg[1], 2)
16330 split(mac1, mac2, "(") #)
16332 prefix = substr(line, 1, index(line, defundef) - 1)
16333 if (D_is_set[macro]) {
16334 # Preserve the white space surrounding the "#".
16335 print prefix "define", macro P[macro] D[macro]
16338 # Replace #undef with comments. This is necessary, for example,
16339 # in the case of _POSIX_SOURCE, which is predefined and required
16340 # on some systems where configure will not decide to define it.
16341 if (defundef == "undef") {
16342 print "/*", prefix defundef, macro, "*/"
16350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16351 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16352 fi # test -n "$CONFIG_HEADERS"
16355 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16360 :[FHLC]) ac_mode=$ac_tag; continue;;
16362 case $ac_mode$ac_tag in
16364 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16365 :[FH]-) ac_tag=-:-;;
16366 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16383 -) ac_f="$tmp/stdin";;
16384 *) # Look for the file first in the build tree, then in the source tree
16385 # (if the path is not absolute). The absolute path cannot be DOS-style,
16386 # because $ac_f cannot contain `:'.
16390 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16392 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16394 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16395 as_fn_append ac_file_inputs " '$ac_f'"
16398 # Let's still pretend it is `configure' which instantiates (i.e., don't
16399 # use $as_me), people would be surprised to read:
16400 # /* config.h. Generated by config.status. */
16401 configure_input='Generated from '`
16402 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16404 if test x"$ac_file" != x-; then
16405 configure_input="$ac_file. $configure_input"
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16407 $as_echo "$as_me: creating $ac_file" >&6;}
16409 # Neutralize special characters interpreted by sed in replacement strings.
16410 case $configure_input in #(
16411 *\&* | *\|* | *\\* )
16412 ac_sed_conf_input=`$as_echo "$configure_input" |
16413 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16414 *) ac_sed_conf_input=$configure_input;;
16418 *:-:* | *:-) cat >"$tmp/stdin" \
16419 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16424 ac_dir=`$as_dirname -- "$ac_file" ||
16425 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16426 X"$ac_file" : 'X\(//\)[^/]' \| \
16427 X"$ac_file" : 'X\(//\)$' \| \
16428 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16429 $as_echo X"$ac_file" |
16430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16434 /^X\(\/\/\)[^/].*/{
16447 as_dir="$ac_dir"; as_fn_mkdir_p
16451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16454 # A ".." for each directory in $ac_dir_suffix.
16455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16456 case $ac_top_builddir_sub in
16457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16461 ac_abs_top_builddir=$ac_pwd
16462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16463 # for backward compatibility:
16464 ac_top_builddir=$ac_top_build_prefix
16467 .) # We are building in place.
16469 ac_top_srcdir=$ac_top_builddir_sub
16470 ac_abs_top_srcdir=$ac_pwd ;;
16471 [\\/]* | ?:[\\/]* ) # Absolute name.
16472 ac_srcdir=$srcdir$ac_dir_suffix;
16473 ac_top_srcdir=$srcdir
16474 ac_abs_top_srcdir=$srcdir ;;
16475 *) # Relative name.
16476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16477 ac_top_srcdir=$ac_top_build_prefix$srcdir
16478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16490 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16491 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16496 # If the template does not know about datarootdir, expand it.
16497 # FIXME: This hack should be removed a few years after 2.60.
16498 ac_datarootdir_hack=; ac_datarootdir_seen=
16509 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16510 *datarootdir*) ac_datarootdir_seen=yes;;
16511 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16513 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16516 ac_datarootdir_hack='
16517 s&@datadir@&$datadir&g
16518 s&@docdir@&$docdir&g
16519 s&@infodir@&$infodir&g
16520 s&@localedir@&$localedir&g
16521 s&@mandir@&$mandir&g
16522 s&\\\${datarootdir}&$datarootdir&g' ;;
16526 # Neutralize VPATH when `$srcdir' = `.'.
16527 # Shell code in configure.ac might set extrasub.
16528 # FIXME: do we really want to maintain this feature?
16529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16530 ac_sed_extra="$ac_vpsub
16533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16536 s|@configure_input@|$ac_sed_conf_input|;t t
16537 s&@top_builddir@&$ac_top_builddir_sub&;t t
16538 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16539 s&@srcdir@&$ac_srcdir&;t t
16540 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16541 s&@top_srcdir@&$ac_top_srcdir&;t t
16542 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16543 s&@builddir@&$ac_builddir&;t t
16544 s&@abs_builddir@&$ac_abs_builddir&;t t
16545 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16546 s&@INSTALL@&$ac_INSTALL&;t t
16547 $ac_datarootdir_hack
16549 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16550 if $ac_cs_awk_getline; then
16551 $AWK -f "$tmp/subs.awk"
16553 $AWK -f "$tmp/subs.awk" | $SHELL
16555 || as_fn_error "could not create $ac_file" "$LINENO" 5
16557 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16558 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16561 which seems to be undefined. Please make sure it is defined." >&5
16562 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16563 which seems to be undefined. Please make sure it is defined." >&2;}
16567 -) cat "$tmp/out" && rm -f "$tmp/out";;
16568 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16570 || as_fn_error "could not create $ac_file" "$LINENO" 5
16576 if test x"$ac_file" != x-; then
16578 $as_echo "/* $configure_input */" \
16579 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16580 } >"$tmp/config.h" \
16581 || as_fn_error "could not create $ac_file" "$LINENO" 5
16582 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16584 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16587 mv "$tmp/config.h" "$ac_file" \
16588 || as_fn_error "could not create $ac_file" "$LINENO" 5
16591 $as_echo "/* $configure_input */" \
16592 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16593 || as_fn_error "could not create -" "$LINENO" 5
16601 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16604 # Prefer the file from the source tree if names are identical.
16605 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16606 ac_source=$srcdir/$ac_source
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16610 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16612 if test ! -r "$ac_source"; then
16613 as_fn_error "$ac_source: file not found" "$LINENO" 5
16617 # Try a relative symlink, then a hard link, then a copy.
16619 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16620 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16622 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16623 ln "$ac_source" "$ac_file" 2>/dev/null ||
16624 cp -p "$ac_source" "$ac_file" ||
16625 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16628 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16629 $as_echo "$as_me: executing $ac_file commands" >&6;}
16634 case $ac_file$ac_mode in
16635 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16636 "gcore":F) chmod +x gcore ;;
16638 case x$CONFIG_HEADERS in
16639 xconfig.h:config.in)
16650 ac_clean_files=$ac_clean_files_save
16652 test $ac_write_fail = 0 ||
16653 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16656 # configure is writing to config.log, and then calls config.status.
16657 # config.status does its own redirection, appending to config.log.
16658 # Unfortunately, on DOS this fails, as config.log is still kept open
16659 # by configure, so config.status won't be able to write to it; its
16660 # output is simply discarded. So we exec the FD to /dev/null,
16661 # effectively closing config.log, so it can be properly (re)opened and
16662 # appended to by config.status. When coming back to configure, we
16663 # need to make the FD available again.
16664 if test "$no_create" != yes; then
16666 ac_config_status_args=
16667 test "$silent" = yes &&
16668 ac_config_status_args="$ac_config_status_args --quiet"
16670 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16672 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16673 # would make configure fail if this is the last instruction.
16674 $ac_cs_success || as_fn_exit $?
16678 # CONFIG_SUBDIRS section.
16680 if test "$no_recursion" != yes; then
16682 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16683 # so they do not pile up.
16684 ac_sub_configure_args=
16686 eval "set x $ac_configure_args"
16690 if test -n "$ac_prev"; then
16695 -cache-file | --cache-file | --cache-fil | --cache-fi \
16696 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16697 ac_prev=cache_file ;;
16698 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16699 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16702 --config-cache | -C)
16704 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16706 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16708 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16710 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16712 --disable-option-checking)
16716 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16718 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16722 # Always prepend --prefix to ensure using the same prefix
16723 # in subdir configurations.
16724 ac_arg="--prefix=$prefix"
16726 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16728 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16731 if test "$silent" = yes; then
16732 ac_sub_configure_args="--silent $ac_sub_configure_args"
16735 # Always prepend --disable-option-checking to silence warnings, since
16736 # different subdirs can have different --enable and --with options.
16737 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16740 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16742 # Do not complain, so a configure script can configure whichever
16743 # parts of a large source tree are present.
16744 test -d "$srcdir/$ac_dir" || continue
16746 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16747 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16748 $as_echo "$ac_msg" >&6
16749 as_dir="$ac_dir"; as_fn_mkdir_p
16753 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16755 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16756 # A ".." for each directory in $ac_dir_suffix.
16757 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16758 case $ac_top_builddir_sub in
16759 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16760 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16763 ac_abs_top_builddir=$ac_pwd
16764 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16765 # for backward compatibility:
16766 ac_top_builddir=$ac_top_build_prefix
16769 .) # We are building in place.
16771 ac_top_srcdir=$ac_top_builddir_sub
16772 ac_abs_top_srcdir=$ac_pwd ;;
16773 [\\/]* | ?:[\\/]* ) # Absolute name.
16774 ac_srcdir=$srcdir$ac_dir_suffix;
16775 ac_top_srcdir=$srcdir
16776 ac_abs_top_srcdir=$srcdir ;;
16777 *) # Relative name.
16778 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16779 ac_top_srcdir=$ac_top_build_prefix$srcdir
16780 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16782 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16787 # Check for guested configure; otherwise get Cygnus style configure.
16788 if test -f "$ac_srcdir/configure.gnu"; then
16789 ac_sub_configure=$ac_srcdir/configure.gnu
16790 elif test -f "$ac_srcdir/configure"; then
16791 ac_sub_configure=$ac_srcdir/configure
16792 elif test -f "$ac_srcdir/configure.in"; then
16793 # This should be Cygnus configure.
16794 ac_sub_configure=$ac_aux_dir/configure
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16797 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16801 # The recursion is here.
16802 if test -n "$ac_sub_configure"; then
16803 # Make the cache file name correct relative to the subdirectory.
16804 case $cache_file in
16805 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16806 *) # Relative name.
16807 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16810 { $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
16811 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16812 # The eval makes quoting arguments work.
16813 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16814 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16815 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16821 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16823 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}