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
682 READLINE_TEXI_INCFLAG
705 HAVE_NATIVE_GCORE_TARGET
736 INSTALL_STRIP_PROGRAM
765 MAINTAINER_MODE_FALSE
794 program_transform_name
805 ac_subst_files='host_makefile_frag'
807 enable_option_checking
808 enable_maintainer_mode
811 enable_build_with_cxx
812 with_separate_debug_dir
814 with_relocated_sources
816 with_auto_load_safe_path
846 enable_build_warnings
847 enable_gdb_build_warnings
857 with_libbabeltrace_prefix
859 ac_precious_vars='build_alias
876 ac_subdirs_all='testsuite
881 # Initialize some variables set by options.
883 ac_init_version=false
884 ac_unrecognized_opts=
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
895 program_transform_name=s,x,x,
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE}'
920 infodir='${datarootdir}/info'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
941 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 # Accept the important Cygnus configure options, so we can diagnose typos.
947 case $ac_dashdash$ac_option in
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
969 cache_file=config.cache ;;
971 -datadir | --datadir | --datadi | --datad)
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
983 -disable-* | --disable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
997 eval enable_$ac_useropt=no ;;
999 -docdir | --docdir | --docdi | --doc | --do)
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1009 -enable-* | --enable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error "invalid feature name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_$ac_useropt"
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1023 eval enable_$ac_useropt=\$ac_optarg ;;
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 htmldir=$ac_optarg ;;
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1068 -libdir | --libdir | --libdi | --libd)
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1159 -psdir | --psdir | --psdi | --psd | --ps)
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 sbindir=$ac_optarg ;;
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 sharedstatedir=$ac_optarg ;;
1185 -site | --site | --sit)
1187 -site=* | --site=* | --sit=*)
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1227 eval with_$ac_useropt=\$ac_optarg ;;
1229 -without-* | --without-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error "invalid package name: $ac_useropt"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1243 eval with_$ac_useropt=no ;;
1246 # Obsolete; use --with-x.
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1263 -*) as_fn_error "unrecognized option: \`$ac_option'
1264 Try \`$0 --help' for more information."
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
1272 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 as_fn_error "missing argument to $ac_option"
1293 if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1296 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 # Check all directory arguments for consistency.
1302 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1307 eval ac_val=\$$ac_var
1308 # Remove trailing slashes.
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1314 # Be sure to have absolute directory names.
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1327 target=$target_alias
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used." >&2
1335 elif test "x$build_alias" != "x$host_alias"; then
1341 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1343 test "$silent" = yes && exec 6>/dev/null
1346 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di=`ls -di .` &&
1348 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 as_fn_error "working directory cannot be determined"
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351 as_fn_error "pwd does not report name of working directory"
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir=`$as_dirname -- "$as_myself" ||
1359 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363 $as_echo X"$as_myself" |
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1386 ac_srcdir_defaulted=no
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1392 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1396 # When building in place, set srcdir=.
1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 # Remove unnecessary trailing slashes from srcdir.
1401 # Double slashes in file names in object file debugging info
1402 # mess up M-x gdb in Emacs.
1404 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 for ac_var in $ac_precious_vars; do
1407 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_env_${ac_var}_value=\$${ac_var}
1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 # Report the --help message.
1416 if test "$ac_init_help" = "long"; then
1417 # Omit some internal or obsolete options to make the list less imposing.
1418 # This message is too long to be a string in the A/UX 3.1 sh.
1420 \`configure' configures this package to adapt to many kinds of systems.
1422 Usage: $0 [OPTION]... [VAR=VALUE]...
1424 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425 VAR=VALUE. See below for descriptions of some of the useful variables.
1427 Defaults for the options are specified in brackets.
1430 -h, --help display this help and exit
1431 --help=short display options specific to this package
1432 --help=recursive display the short help of all the included packages
1433 -V, --version display version information and exit
1434 -q, --quiet, --silent do not print \`checking...' messages
1435 --cache-file=FILE cache test results in FILE [disabled]
1436 -C, --config-cache alias for \`--cache-file=config.cache'
1437 -n, --no-create do not create output files
1438 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1440 Installation directories:
1441 --prefix=PREFIX install architecture-independent files in PREFIX
1442 [$ac_default_prefix]
1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1446 By default, \`make install' will install all the files in
1447 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1448 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1449 for instance \`--prefix=\$HOME'.
1451 For better control, use the options below.
1453 Fine tuning of the installation directories:
1454 --bindir=DIR user executables [EPREFIX/bin]
1455 --sbindir=DIR system admin executables [EPREFIX/sbin]
1456 --libexecdir=DIR program executables [EPREFIX/libexec]
1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1460 --libdir=DIR object code libraries [EPREFIX/lib]
1461 --includedir=DIR C header files [PREFIX/include]
1462 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1465 --infodir=DIR info documentation [DATAROOTDIR/info]
1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1467 --mandir=DIR man documentation [DATAROOTDIR/man]
1468 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1469 --htmldir=DIR html documentation [DOCDIR]
1470 --dvidir=DIR dvi documentation [DOCDIR]
1471 --pdfdir=DIR pdf documentation [DOCDIR]
1472 --psdir=DIR ps documentation [DOCDIR]
1478 --program-prefix=PREFIX prepend PREFIX to installed program names
1479 --program-suffix=SUFFIX append SUFFIX to installed program names
1480 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1483 --x-includes=DIR X include files are in DIR
1484 --x-libraries=DIR X library files are in DIR
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 --target=TARGET configure for building compilers for TARGET [HOST]
1493 if test -n "$ac_init_help"; then
1498 --disable-option-checking ignore unrecognized --enable/--with options
1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1501 --enable-maintainer-mode enable make rules and dependencies not useful
1502 (and sometimes confusing) to the casual installer
1503 --enable-plugins Enable support for plugins
1504 --disable-largefile omit support for large files
1505 --enable-build-with-cxx build with C++ compiler instead of C compiler
1506 --enable-targets=TARGETS
1507 alternative target configurations
1508 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1509 --disable-gdbcli disable command-line interface (CLI)
1510 --disable-gdbmi disable machine-interface (MI)
1511 --enable-tui enable full-screen terminal user interface (TUI)
1512 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1513 --enable-profiling enable profiling of GDB
1514 --disable-rpath do not hardcode runtime library paths
1515 --enable-libmcheck Try linking with -lmcheck if available
1516 --enable-werror treat compile warnings as errors
1517 --enable-build-warnings enable build-time compiler warnings if gcc is used
1518 --enable-gdb-build-warnings
1519 enable GDB specific build-time compiler warnings if
1521 --enable-sim link gdb with simulator
1522 --enable-multi-ice build the multi-ice-gdb-server
1523 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1529 --with-separate-debug-dir=PATH
1530 look for global separate debug info in this path
1532 --with-gdb-datadir=PATH look for global separate data files in this path
1534 --with-relocated-sources=PATH
1535 automatically relocate this path for source files
1536 --with-auto-load-dir=PATH
1537 directories from which to load auto-loaded scripts
1538 [$debugdir:$datadir/auto-load]
1539 --with-auto-load-safe-path=PATH
1540 directories safe to hold auto-loaded files
1541 [--with-auto-load-dir]
1542 --without-auto-load-safe-path
1543 do not restrict auto-loaded files locations
1544 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1545 --with-curses use the curses library instead of the termcap
1547 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1548 --with-bugurl=URL Direct users to URL to report a bug
1549 --with-system-zlib use installed libz
1550 --with-gnu-ld assume the C compiler uses GNU ld default=no
1551 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1552 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1553 --with-iconv-bin=PATH specify where to find the iconv program
1554 --with-system-readline use installed readline library
1555 --with-jit-reader-dir=PATH
1556 directory to load the JIT readers from
1557 --with-expat include expat support (auto/yes/no)
1558 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1559 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1560 --with-python[=PYTHON] include python support
1561 (auto/yes/no/<python-program>)
1562 --with-guile[=GUILE] include guile support
1563 (auto/yes/no/<guile-version>/<pkg-config-program>)
1564 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1565 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1566 --without-libipt-prefix don't search for libipt in includedir and libdir
1567 --without-included-regex
1568 don't use included regex; this is the default on
1569 systems with version 2 of the GNU C library (use
1570 with caution on other system)
1571 --with-sysroot[=DIR] search for usr/lib et al within DIR
1572 --with-system-gdbinit=PATH
1573 automatically load a system-wide gdbinit file
1574 --with-lzma support lzma compression (auto/yes/no)
1575 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1576 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1577 --with-tcl directory containing tcl configuration (tclConfig.sh)
1578 --with-tk directory containing tk configuration (tkConfig.sh)
1579 --with-x use the X Window System
1580 --with-babeltrace include babeltrace support (auto/yes/no)
1581 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1582 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1584 Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 LIBS libraries to pass to the linker, e.g. -l<library>
1590 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1591 you have headers in a nonstandard directory <include dir>
1592 CXX C++ compiler command
1593 CXXFLAGS C++ compiler flags
1595 MAKEINFO Parent configure detects if it is of sufficient version.
1597 Parameters for MAKEINFO.
1598 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1599 the first program found out of: `bison -y', `byacc', `yacc'.
1600 YFLAGS The list of arguments that will be passed by default to $YACC.
1601 This script will default YFLAGS to the empty string to avoid a
1602 default value of `-d' given by some make applications.
1603 XMKMF Path to xmkmf, Makefile generator for X Window System
1605 Use these variables to override the choices made by `configure' or to help
1606 it to find libraries and programs with nonstandard names/locations.
1608 Report bugs to the package provider.
1613 if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
1615 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1638 .) # We are building in place.
1640 ac_top_srcdir=$ac_top_builddir_sub
1641 ac_abs_top_srcdir=$ac_pwd ;;
1642 [\\/]* | ?:[\\/]* ) # Absolute name.
1643 ac_srcdir=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir=$srcdir
1645 ac_abs_top_srcdir=$srcdir ;;
1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653 cd "$ac_dir" || { ac_status=$?; continue; }
1654 # Check for guested configure.
1655 if test -f "$ac_srcdir/configure.gnu"; then
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1660 $SHELL "$ac_srcdir/configure" --help=recursive
1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 cd "$ac_pwd" || { ac_status=$?; break; }
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1672 generated by GNU Autoconf 2.64
1674 Copyright (C) 2009 Free Software Foundation, Inc.
1675 This configure script is free software; the Free Software Foundation
1676 gives unlimited permission to copy, distribute and modify it.
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext
1692 if { { ac_try="$ac_compile"
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_compile") 2>conftest.err
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest.$ac_objext; then :
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 } # ac_fn_c_try_compile
1723 # ac_fn_cxx_try_compile LINENO
1724 # ----------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_cxx_try_compile ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext
1730 if { { ac_try="$ac_compile"
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_compile") 2>conftest.err
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_cxx_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest.$ac_objext; then :
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 } # ac_fn_cxx_try_compile
1761 # ac_fn_c_try_cpp LINENO
1762 # ----------------------
1763 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 if { { ac_try="$ac_cpp conftest.$ac_ext"
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } >/dev/null && {
1783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1801 # the include files in INCLUDES and setting the cache variable VAR
1803 ac_fn_c_check_header_mongrel ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1810 $as_echo_n "(cached) " >&6
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1816 # Is the header compilable?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1818 $as_echo_n "checking $2 usability... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825 ac_header_compiler=yes
1827 ac_header_compiler=no
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1831 $as_echo "$ac_header_compiler" >&6; }
1833 # Is the header present?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1835 $as_echo_n "checking $2 presence... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1840 if ac_fn_c_try_cpp "$LINENO"; then :
1841 ac_header_preproc=yes
1843 ac_header_preproc=no
1845 rm -f conftest.err conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1847 $as_echo "$ac_header_preproc" >&6; }
1849 # So? What about this header?
1850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1853 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1859 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1861 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1863 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1865 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1875 eval "$3=\$ac_header_compiler"
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 } # ac_fn_c_check_header_mongrel
1885 # ac_fn_c_try_run LINENO
1886 # ----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1888 # that executables *can* be run.
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if { { ac_try="$ac_link"
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>&5
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1903 { { case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_try") 2>&5
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; }; }; then :
1915 $as_echo "$as_me: program exited with status $ac_status" >&5
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1919 ac_retval=$ac_status
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1928 # -------------------------------------------------------
1929 # Tests whether HEADER exists and can be compiled using the include files in
1930 # INCLUDES, setting the cache variable VAR accordingly.
1931 ac_fn_c_check_header_compile ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 $as_echo_n "(cached) " >&6
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1944 if ac_fn_c_try_compile "$LINENO"; then :
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 } # ac_fn_c_check_header_compile
1958 # ac_fn_c_try_link LINENO
1959 # -----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext conftest$ac_exeext
1965 if { { ac_try="$ac_link"
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>conftest.err
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest$ac_exeext && {
1984 test "$cross_compiling" = yes ||
1985 $as_test_x conftest$ac_exeext
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996 # interfere with the next link command; also delete a directory that is
1997 # left behind by Apple's compiler. We do this before executing the actions.
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002 } # ac_fn_c_try_link
2004 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2005 # --------------------------------------------
2006 # Tries to find the compile-time value of EXPR in a program that includes
2007 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2009 ac_fn_c_compute_int ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 if test "$cross_compiling" = yes; then
2013 # Depending upon the size, compute the lo and hi bounds.
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2020 static int test_array [1 - 2 * !(($2) >= 0)];
2027 if ac_fn_c_try_compile "$LINENO"; then :
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2036 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_hi=$ac_mid; break
2046 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2047 if test $ac_lo -le $ac_mid; then
2051 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 static int test_array [1 - 2 * !(($2) < 0)];
2069 if ac_fn_c_try_compile "$LINENO"; then :
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2078 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 ac_lo=$ac_mid; break
2088 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2089 if test $ac_mid -le $ac_hi; then
2093 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 # Binary search between lo and hi bounds.
2104 while test "x$ac_lo" != "x$ac_hi"; do
2105 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2119 if ac_fn_c_try_compile "$LINENO"; then :
2122 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2134 static long int longval () { return $2; }
2135 static unsigned long int ulongval () { return $2; }
2142 FILE *f = fopen ("conftest.val", "w");
2147 long int i = longval ();
2150 fprintf (f, "%ld", i);
2154 unsigned long int i = ulongval ();
2157 fprintf (f, "%lu", i);
2159 /* Do not output a trailing newline, as this causes \r\n confusion
2160 on some platforms. */
2161 return ferror (f) || fclose (f) != 0;
2167 if ac_fn_c_try_run "$LINENO"; then :
2168 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2173 conftest.$ac_objext conftest.beam conftest.$ac_ext
2177 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180 } # ac_fn_c_compute_int
2182 # ac_fn_c_check_func LINENO FUNC VAR
2183 # ----------------------------------
2184 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2185 ac_fn_c_check_func ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2191 $as_echo_n "(cached) " >&6
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2195 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2197 #define $2 innocuous_$2
2199 /* System header to define __stub macros and hopefully few prototypes,
2200 which can conflict with char $2 (); below.
2201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2202 <limits.h> exists even on freestanding compilers. */
2205 # include <limits.h>
2207 # include <assert.h>
2212 /* Override any GCC internal prototype to avoid an error.
2213 Use char because int might match the return type of a GCC
2214 builtin and then its argument prototype would still apply. */
2219 /* The GNU C library defines this for functions which it implements
2220 to always fail with ENOSYS. Some functions are actually named
2221 something starting with __ and the normal name is an alias. */
2222 #if defined __stub_$2 || defined __stub___$2
2234 if ac_fn_c_try_link "$LINENO"; then :
2239 rm -f core conftest.err conftest.$ac_objext \
2240 conftest$ac_exeext conftest.$ac_ext
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2247 } # ac_fn_c_check_func
2249 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2250 # -------------------------------------------
2251 # Tests whether TYPE exists after having included INCLUDES, setting cache
2252 # variable VAR accordingly.
2253 ac_fn_c_check_type ()
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257 $as_echo_n "checking for $2... " >&6; }
2258 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259 $as_echo_n "(cached) " >&6
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2287 if ac_fn_c_try_compile "$LINENO"; then :
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298 $as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2301 } # ac_fn_c_check_type
2303 # ac_fn_c_check_decl LINENO SYMBOL VAR
2304 # ------------------------------------
2305 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2306 ac_fn_c_check_decl ()
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 as_decl_name=`echo $2|sed 's/ *(.*//'`
2310 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2312 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2313 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2314 $as_echo_n "(cached) " >&6
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2322 #ifndef $as_decl_name
2324 (void) $as_decl_use;
2326 (void) $as_decl_name;
2334 if ac_fn_c_try_compile "$LINENO"; then :
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346 } # ac_fn_c_check_decl
2348 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2349 # ----------------------------------------------------
2350 # Tries to find if the field MEMBER exists in type AGGR, after including
2351 # INCLUDES, setting cache variable VAR accordingly.
2352 ac_fn_c_check_member ()
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2356 $as_echo_n "checking for $2.$3... " >&6; }
2357 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2358 $as_echo_n "(cached) " >&6
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2373 if ac_fn_c_try_compile "$LINENO"; then :
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2383 if (sizeof ac_aggr.$3)
2389 if ac_fn_c_try_compile "$LINENO"; then :
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2403 } # ac_fn_c_check_member
2404 cat >config.log <<_ACEOF
2405 This file contains any messages produced by compilers while
2406 running configure, to aid debugging if configure makes a mistake.
2408 It was created by $as_me, which was
2409 generated by GNU Autoconf 2.64. Invocation command line was
2421 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2422 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2423 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2424 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2425 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2427 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2428 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2430 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2431 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2432 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2433 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2434 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2435 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2436 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 $as_echo "PATH: $as_dir"
2461 # Keep a trace of the command line.
2462 # Strip out --no-create and --no-recursion so they do not pile up.
2463 # Strip out --silent because we don't want to record it for future runs.
2464 # Also quote any args containing shell meta-characters.
2465 # Make two passes to allow for proper duplicate-argument suppression.
2469 ac_must_keep_next=false
2475 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2477 | -silent | --silent | --silen | --sile | --sil)
2480 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2483 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2485 as_fn_append ac_configure_args1 " '$ac_arg'"
2486 if test $ac_must_keep_next = true; then
2487 ac_must_keep_next=false # Got value, back to normal.
2490 *=* | --config-cache | -C | -disable-* | --disable-* \
2491 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2492 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2493 | -with-* | --with-* | -without-* | --without-* | --x)
2494 case "$ac_configure_args0 " in
2495 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2498 -* ) ac_must_keep_next=true ;;
2501 as_fn_append ac_configure_args " '$ac_arg'"
2506 { ac_configure_args0=; unset ac_configure_args0;}
2507 { ac_configure_args1=; unset ac_configure_args1;}
2509 # When interrupted or exit'd, cleanup temporary files, and complete
2510 # config.log. We remove comments because anyway the quotes in there
2511 # would cause problems or look ugly.
2512 # WARNING: Use '\'' to represent an apostrophe within the trap.
2513 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2514 trap 'exit_status=$?
2515 # Save into config.log some information that might help in debugging.
2520 ## ---------------- ##
2521 ## Cache variables. ##
2522 ## ---------------- ##
2525 # The following way of writing the cache mishandles newlines in values,
2527 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2528 eval ac_val=\$$ac_var
2532 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2533 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2536 _ | IFS | as_nl) ;; #(
2537 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2538 *) { eval $ac_var=; unset $ac_var;} ;;
2543 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2544 *${as_nl}ac_space=\ *)
2546 "s/'\''/'\''\\\\'\'''\''/g;
2547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2558 ## ----------------- ##
2559 ## Output variables. ##
2560 ## ----------------- ##
2563 for ac_var in $ac_subst_vars
2565 eval ac_val=\$$ac_var
2567 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2569 $as_echo "$ac_var='\''$ac_val'\''"
2573 if test -n "$ac_subst_files"; then
2575 ## ------------------- ##
2576 ## File substitutions. ##
2577 ## ------------------- ##
2580 for ac_var in $ac_subst_files
2582 eval ac_val=\$$ac_var
2584 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2586 $as_echo "$ac_var='\''$ac_val'\''"
2591 if test -s confdefs.h; then
2601 test "$ac_signal" != 0 &&
2602 $as_echo "$as_me: caught signal $ac_signal"
2603 $as_echo "$as_me: exit $exit_status"
2605 rm -f core *.core core.conftest.* &&
2606 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2609 for ac_signal in 1 2 13 15; do
2610 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2614 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2615 rm -f -r conftest* confdefs.h
2617 $as_echo "/* confdefs.h */" > confdefs.h
2619 # Predefined preprocessor variables.
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_NAME "$PACKAGE_NAME"
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_STRING "$PACKAGE_STRING"
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_URL "$PACKAGE_URL"
2646 # Let the site file select an alternate cache file if it wants to.
2647 # Prefer an explicitly selected file to automatically selected ones.
2650 if test -n "$CONFIG_SITE"; then
2651 ac_site_file1=$CONFIG_SITE
2652 elif test "x$prefix" != xNONE; then
2653 ac_site_file1=$prefix/share/config.site
2654 ac_site_file2=$prefix/etc/config.site
2656 ac_site_file1=$ac_default_prefix/share/config.site
2657 ac_site_file2=$ac_default_prefix/etc/config.site
2659 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2661 test "x$ac_site_file" = xNONE && continue
2662 if test -r "$ac_site_file"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2664 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2665 sed 's/^/| /' "$ac_site_file" >&5
2670 if test -r "$cache_file"; then
2671 # Some versions of bash will fail to source /dev/null (special
2672 # files actually), so we avoid doing that.
2673 if test -f "$cache_file"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2675 $as_echo "$as_me: loading cache $cache_file" >&6;}
2677 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2678 *) . "./$cache_file";;
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2683 $as_echo "$as_me: creating cache $cache_file" >&6;}
2687 # Check that the precious variables saved in the cache have kept the same
2689 ac_cache_corrupted=false
2690 for ac_var in $ac_precious_vars; do
2691 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2692 eval ac_new_set=\$ac_env_${ac_var}_set
2693 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2694 eval ac_new_val=\$ac_env_${ac_var}_value
2695 case $ac_old_set,$ac_new_set in
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2698 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2699 ac_cache_corrupted=: ;;
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2702 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2703 ac_cache_corrupted=: ;;
2706 if test "x$ac_old_val" != "x$ac_new_val"; then
2707 # differences in whitespace do not lead to failure.
2708 ac_old_val_w=`echo x $ac_old_val`
2709 ac_new_val_w=`echo x $ac_new_val`
2710 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2712 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2713 ac_cache_corrupted=:
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2716 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2717 eval $ac_var=\$ac_old_val
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2720 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2722 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2725 # Pass precious variables to config.status.
2726 if test "$ac_new_set" = set; then
2728 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2729 *) ac_arg=$ac_var=$ac_new_val ;;
2731 case " $ac_configure_args " in
2732 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2733 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2737 if $ac_cache_corrupted; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2741 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2742 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2744 ## -------------------- ##
2745 ## Main body of script. ##
2746 ## -------------------- ##
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758 ac_config_headers="$ac_config_headers config.h:config.in"
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2762 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2763 # Check whether --enable-maintainer-mode was given.
2764 if test "${enable_maintainer_mode+set}" = set; then :
2765 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2767 USE_MAINTAINER_MODE=no
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2771 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2772 if test $USE_MAINTAINER_MODE = yes; then
2773 MAINTAINER_MODE_TRUE=
2774 MAINTAINER_MODE_FALSE='#'
2776 MAINTAINER_MODE_TRUE='#'
2777 MAINTAINER_MODE_FALSE=
2780 MAINT=$MAINTAINER_MODE_TRUE
2784 # Set the 'development' global.
2785 . $srcdir/../bfd/development.sh
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792 if test -n "$ac_tool_prefix"; then
2793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2794 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if test "${ac_cv_prog_CC+set}" = set; then :
2798 $as_echo_n "(cached) " >&6
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 if test -n "$CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823 $as_echo "$CC" >&6; }
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2831 if test -z "$ac_cv_prog_CC"; then
2833 # Extract the first word of "gcc", so it can be a program name with args.
2834 set dummy gcc; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2838 $as_echo_n "(cached) " >&6
2840 if test -n "$ac_ct_CC"; then
2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_ac_ct_CC="gcc"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861 if test -n "$ac_ct_CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2863 $as_echo "$ac_ct_CC" >&6; }
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2869 if test "x$ac_ct_CC" = x; then
2872 case $cross_compiling:$ac_tool_warned in
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876 ac_tool_warned=yes ;;
2884 if test -z "$CC"; then
2885 if test -n "$ac_tool_prefix"; then
2886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2887 set dummy ${ac_tool_prefix}cc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_CC+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903 ac_cv_prog_CC="${ac_tool_prefix}cc"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 if test -n "$CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2916 $as_echo "$CC" >&6; }
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2925 if test -z "$CC"; then
2926 # Extract the first word of "cc", so it can be a program name with args.
2927 set dummy cc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if test "${ac_cv_prog_CC+set}" = set; then :
2931 $as_echo_n "(cached) " >&6
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2945 ac_prog_rejected=yes
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 if test $ac_prog_rejected = yes; then
2957 # We found a bogon in the path, so make sure we never use it.
2958 set dummy $ac_cv_prog_CC
2960 if test $# != 0; then
2961 # We chose a different compiler from the bogus one.
2962 # However, it has the same basename, so the bogon will be chosen
2963 # first if we set CC to just the basename; use the full file name.
2965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2971 if test -n "$CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973 $as_echo "$CC" >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2981 if test -z "$CC"; then
2982 if test -n "$ac_tool_prefix"; then
2983 for ac_prog in cl.exe
2985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_CC+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3022 test -n "$CC" && break
3025 if test -z "$CC"; then
3027 for ac_prog in cl.exe
3029 # Extract the first word of "$ac_prog", so it can be a program name with args.
3030 set dummy $ac_prog; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3034 $as_echo_n "(cached) " >&6
3036 if test -n "$ac_ct_CC"; then
3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046 ac_cv_prog_ac_ct_CC="$ac_prog"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3057 if test -n "$ac_ct_CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3059 $as_echo "$ac_ct_CC" >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3066 test -n "$ac_ct_CC" && break
3069 if test "x$ac_ct_CC" = x; then
3072 case $cross_compiling:$ac_tool_warned in
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076 ac_tool_warned=yes ;;
3085 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error "no acceptable C compiler found in \$PATH
3088 See \`config.log' for more details." "$LINENO" 5; }
3090 # Provide some information about the compiler.
3091 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3094 for ac_option in --version -v -V -qversion; do
3095 { { ac_try="$ac_compiler $ac_option >&5"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3104 if test -s conftest.err; then
3106 ... rest of stderr output deleted ...
3107 10q' conftest.err >conftest.er1
3108 cat conftest.er1 >&5
3109 rm -f conftest.er1 conftest.err
3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112 test $ac_status = 0; }
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3126 ac_clean_files_save=$ac_clean_files
3127 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3128 # Try to create an executable without -o first, disregard a.out.
3129 # It will help us diagnose broken compilers, and finding out an intuition
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3132 $as_echo_n "checking for C compiler default output file name... " >&6; }
3133 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3135 # The possible output files:
3136 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3139 for ac_file in $ac_files
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3148 if { { ac_try="$ac_link_default"
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155 (eval "$ac_link_default") 2>&5
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }; then :
3159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3160 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3161 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3162 # so that the user can short-circuit this test for compilers unknown to
3164 for ac_file in $ac_files ''
3166 test -f "$ac_file" || continue
3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3171 # We found the default executable, but exeext='' is most
3175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 # We set ac_cv_exeext here because the later test for it is not
3180 # safe: cross compilers may not add the suffix if given an `-o'
3181 # argument, so we may need to know it at that point already.
3182 # Even if this section looks crufty: it has the advantage of
3189 test "$ac_cv_exeext" = no && ac_cv_exeext=
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3195 $as_echo "$ac_file" >&6; }
3196 if test -z "$ac_file"; then :
3197 $as_echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
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_set_status 77
3203 as_fn_error "C compiler cannot create executables
3204 See \`config.log' for more details." "$LINENO" 5; }; }
3206 ac_exeext=$ac_cv_exeext
3208 # Check that the compiler produces executables we can run. If not, either
3209 # the compiler is broken, or we cross compile.
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3211 $as_echo_n "checking whether the C compiler works... " >&6; }
3212 # If not cross compiling, check that we can run a simple program.
3213 if test "$cross_compiling" != yes; then
3214 if { ac_try='./$ac_file'
3215 { { case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 $as_echo "$ac_try_echo"; } >&5
3221 (eval "$ac_try") 2>&5
3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }; }; then
3227 if test "$cross_compiling" = maybe; then
3230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232 as_fn_error "cannot run C compiled programs.
3233 If you meant to cross compile, use \`--host'.
3234 See \`config.log' for more details." "$LINENO" 5; }
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 $as_echo "yes" >&6; }
3241 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3242 ac_clean_files=$ac_clean_files_save
3243 # Check that the compiler produces executables we can run. If not, either
3244 # the compiler is broken, or we cross compile.
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3246 $as_echo_n "checking whether we are cross compiling... " >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3248 $as_echo "$cross_compiling" >&6; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3251 $as_echo_n "checking for suffix of executables... " >&6; }
3252 if { { ac_try="$ac_link"
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_link") 2>&5
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
3263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3264 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3265 # work properly (i.e., refer to `conftest.exe'), while it won't with
3267 for ac_file in conftest.exe conftest conftest.*; do
3268 test -f "$ac_file" || continue
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error "cannot compute suffix of executables: cannot compile and link
3280 See \`config.log' for more details." "$LINENO" 5; }
3282 rm -f conftest$ac_cv_exeext
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3284 $as_echo "$ac_cv_exeext" >&6; }
3286 rm -f conftest.$ac_ext
3287 EXEEXT=$ac_cv_exeext
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3290 $as_echo_n "checking for suffix of object files... " >&6; }
3291 if test "${ac_cv_objext+set}" = set; then :
3292 $as_echo_n "(cached) " >&6
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3305 rm -f conftest.o conftest.obj
3306 if { { ac_try="$ac_compile"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_compile") 2>&5
3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }; then :
3317 for ac_file in conftest.o conftest.obj conftest.*; do
3318 test -f "$ac_file" || continue;
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3321 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3326 $as_echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error "cannot compute suffix of object files: cannot compile
3332 See \`config.log' for more details." "$LINENO" 5; }
3334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3337 $as_echo "$ac_cv_objext" >&6; }
3338 OBJEXT=$ac_cv_objext
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3341 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3342 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3343 $as_echo_n "(cached) " >&6
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3359 if ac_fn_c_try_compile "$LINENO"; then :
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3369 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3370 if test $ac_compiler_gnu = yes; then
3375 ac_test_CFLAGS=${CFLAGS+set}
3376 ac_save_CFLAGS=$CFLAGS
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3378 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3379 if test "${ac_cv_prog_cc_g+set}" = set; then :
3380 $as_echo_n "(cached) " >&6
3382 ac_save_c_werror_flag=$ac_c_werror_flag
3383 ac_c_werror_flag=yes
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3397 if ac_fn_c_try_compile "$LINENO"; then :
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3412 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_c_werror_flag=$ac_save_c_werror_flag
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3428 if ac_fn_c_try_compile "$LINENO"; then :
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 ac_c_werror_flag=$ac_save_c_werror_flag
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3439 $as_echo "$ac_cv_prog_cc_g" >&6; }
3440 if test "$ac_test_CFLAGS" = set; then
3441 CFLAGS=$ac_save_CFLAGS
3442 elif test $ac_cv_prog_cc_g = yes; then
3443 if test "$GCC" = yes; then
3449 if test "$GCC" = yes; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3456 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3457 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3460 ac_cv_prog_cc_c89=no
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3466 #include <sys/types.h>
3467 #include <sys/stat.h>
3468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3469 struct buf { int x; };
3470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3471 static char *e (p, i)
3477 static char *f (char * (*g) (char **, int), char **p, ...)
3482 s = g (p, va_arg (v,int));
3487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3488 function prototypes and stuff, but not '\xHH' hex character constants.
3489 These don't provoke an error unfortunately, instead are silently treated
3490 as 'x'. The following induces an error, until -std is added to get
3491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3492 array size at least. It's necessary to write '\x00'==0 to get something
3493 that's true only with -std. */
3494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3496 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3497 inside strings and character constants. */
3499 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3501 int test (int i, double x);
3502 struct s1 {int (*f) (int a);};
3503 struct s2 {int (*f) (double a);};
3504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3510 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3515 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3516 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3518 CC="$ac_save_CC $ac_arg"
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520 ac_cv_prog_cc_c89=$ac_arg
3522 rm -f core conftest.err conftest.$ac_objext
3523 test "x$ac_cv_prog_cc_c89" != "xno" && break
3525 rm -f conftest.$ac_ext
3530 case "x$ac_cv_prog_cc_c89" in
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3533 $as_echo "none needed" >&6; } ;;
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3536 $as_echo "unsupported" >&6; } ;;
3538 CC="$CC $ac_cv_prog_cc_c89"
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3540 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3542 if test "x$ac_cv_prog_cc_c89" != xno; then :
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553 ac_cpp='$CXXCPP $CPPFLAGS'
3554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3557 if test -z "$CXX"; then
3558 if test -n "$CCC"; then
3561 if test -n "$ac_tool_prefix"; then
3562 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if test "${ac_cv_prog_CXX+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3571 if test -n "$CXX"; then
3572 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 test -z "$as_dir" && as_dir=.
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3581 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 if test -n "$CXX"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3594 $as_echo "$CXX" >&6; }
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3601 test -n "$CXX" && break
3604 if test -z "$CXX"; then
3606 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3608 # Extract the first word of "$ac_prog", so it can be a program name with args.
3609 set dummy $ac_prog; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3615 if test -n "$ac_ct_CXX"; then
3616 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3625 ac_cv_prog_ac_ct_CXX="$ac_prog"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3636 if test -n "$ac_ct_CXX"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3638 $as_echo "$ac_ct_CXX" >&6; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3645 test -n "$ac_ct_CXX" && break
3648 if test "x$ac_ct_CXX" = x; then
3651 case $cross_compiling:$ac_tool_warned in
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3655 ac_tool_warned=yes ;;
3663 # Provide some information about the compiler.
3664 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3667 for ac_option in --version -v -V -qversion; do
3668 { { ac_try="$ac_compiler $ac_option >&5"
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3677 if test -s conftest.err; then
3679 ... rest of stderr output deleted ...
3680 10q' conftest.err >conftest.er1
3681 cat conftest.er1 >&5
3682 rm -f conftest.er1 conftest.err
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3689 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3690 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3707 if ac_fn_cxx_try_compile "$LINENO"; then :
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3717 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3718 if test $ac_compiler_gnu = yes; then
3723 ac_test_CXXFLAGS=${CXXFLAGS+set}
3724 ac_save_CXXFLAGS=$CXXFLAGS
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3726 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3727 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3728 $as_echo_n "(cached) " >&6
3730 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3731 ac_cxx_werror_flag=yes
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3745 if ac_fn_cxx_try_compile "$LINENO"; then :
3746 ac_cv_prog_cxx_g=yes
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3760 if ac_fn_cxx_try_compile "$LINENO"; then :
3763 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3776 if ac_fn_cxx_try_compile "$LINENO"; then :
3777 ac_cv_prog_cxx_g=yes
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3787 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3788 if test "$ac_test_CXXFLAGS" = set; then
3789 CXXFLAGS=$ac_save_CXXFLAGS
3790 elif test $ac_cv_prog_cxx_g = yes; then
3791 if test "$GXX" = yes; then
3797 if test "$GXX" = yes; then
3804 ac_cpp='$CPP $CPPFLAGS'
3805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3817 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3818 # On Suns, sometimes $CPP names a directory.
3819 if test -n "$CPP" && test -d "$CPP"; then
3822 if test -z "$CPP"; then
3823 if test "${ac_cv_prog_CPP+set}" = set; then :
3824 $as_echo_n "(cached) " >&6
3826 # Double quotes because CPP needs to be expanded
3827 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3830 for ac_c_preproc_warn_flag in '' yes
3832 # Use a header file that comes with gcc, so configuring glibc
3833 # with a fresh cross-compiler works.
3834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3835 # <limits.h> exists even on freestanding compilers.
3836 # On the NeXT, cc -E runs the code through the compiler's parser,
3837 # not just through cpp. "Syntax error" is here to catch this case.
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3841 # include <limits.h>
3843 # include <assert.h>
3847 if ac_fn_c_try_cpp "$LINENO"; then :
3850 # Broken: fails on valid input.
3853 rm -f conftest.err conftest.$ac_ext
3855 # OK, works on sane cases. Now check whether nonexistent headers
3856 # can be detected and how.
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859 #include <ac_nonexistent.h>
3861 if ac_fn_c_try_cpp "$LINENO"; then :
3862 # Broken: success on invalid input.
3865 # Passes both tests.
3869 rm -f conftest.err conftest.$ac_ext
3872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3873 rm -f conftest.err conftest.$ac_ext
3874 if $ac_preproc_ok; then :
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3887 $as_echo "$CPP" >&6; }
3889 for ac_c_preproc_warn_flag in '' yes
3891 # Use a header file that comes with gcc, so configuring glibc
3892 # with a fresh cross-compiler works.
3893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 # <limits.h> exists even on freestanding compilers.
3895 # On the NeXT, cc -E runs the code through the compiler's parser,
3896 # not just through cpp. "Syntax error" is here to catch this case.
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3900 # include <limits.h>
3902 # include <assert.h>
3906 if ac_fn_c_try_cpp "$LINENO"; then :
3909 # Broken: fails on valid input.
3912 rm -f conftest.err conftest.$ac_ext
3914 # OK, works on sane cases. Now check whether nonexistent headers
3915 # can be detected and how.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918 #include <ac_nonexistent.h>
3920 if ac_fn_c_try_cpp "$LINENO"; then :
3921 # Broken: success on invalid input.
3924 # Passes both tests.
3928 rm -f conftest.err conftest.$ac_ext
3931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3932 rm -f conftest.err conftest.$ac_ext
3933 if $ac_preproc_ok; then :
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3939 See \`config.log' for more details." "$LINENO" 5; }
3943 ac_cpp='$CPP $CPPFLAGS'
3944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3950 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3951 if test "${ac_cv_path_GREP+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3954 if test -z "$GREP"; then
3955 ac_path_GREP_found=false
3956 # Loop through the user's path and test for each of PROGNAME-LIST
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961 test -z "$as_dir" && as_dir=.
3962 for ac_prog in grep ggrep; do
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3965 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3966 # Check for GNU ac_path_GREP and select it if it is found.
3967 # Check for GNU $ac_path_GREP
3968 case `"$ac_path_GREP" --version 2>&1` in
3970 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3973 $as_echo_n 0123456789 >"conftest.in"
3976 cat "conftest.in" "conftest.in" >"conftest.tmp"
3977 mv "conftest.tmp" "conftest.in"
3978 cp "conftest.in" "conftest.nl"
3979 $as_echo 'GREP' >> "conftest.nl"
3980 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3982 as_fn_arith $ac_count + 1 && ac_count=$as_val
3983 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3984 # Best one so far, save it but keep looking for a better one
3985 ac_cv_path_GREP="$ac_path_GREP"
3986 ac_path_GREP_max=$ac_count
3988 # 10*(2^10) chars as input seems more than enough
3989 test $ac_count -gt 10 && break
3991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994 $ac_path_GREP_found && break 3
3999 if test -z "$ac_cv_path_GREP"; then
4000 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4003 ac_cv_path_GREP=$GREP
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4008 $as_echo "$ac_cv_path_GREP" >&6; }
4009 GREP="$ac_cv_path_GREP"
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4013 $as_echo_n "checking for egrep... " >&6; }
4014 if test "${ac_cv_path_EGREP+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
4017 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4018 then ac_cv_path_EGREP="$GREP -E"
4020 if test -z "$EGREP"; then
4021 ac_path_EGREP_found=false
4022 # Loop through the user's path and test for each of PROGNAME-LIST
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027 test -z "$as_dir" && as_dir=.
4028 for ac_prog in egrep; do
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4031 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4032 # Check for GNU ac_path_EGREP and select it if it is found.
4033 # Check for GNU $ac_path_EGREP
4034 case `"$ac_path_EGREP" --version 2>&1` in
4036 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4039 $as_echo_n 0123456789 >"conftest.in"
4042 cat "conftest.in" "conftest.in" >"conftest.tmp"
4043 mv "conftest.tmp" "conftest.in"
4044 cp "conftest.in" "conftest.nl"
4045 $as_echo 'EGREP' >> "conftest.nl"
4046 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4048 as_fn_arith $ac_count + 1 && ac_count=$as_val
4049 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4050 # Best one so far, save it but keep looking for a better one
4051 ac_cv_path_EGREP="$ac_path_EGREP"
4052 ac_path_EGREP_max=$ac_count
4054 # 10*(2^10) chars as input seems more than enough
4055 test $ac_count -gt 10 && break
4057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060 $ac_path_EGREP_found && break 3
4065 if test -z "$ac_cv_path_EGREP"; then
4066 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4069 ac_cv_path_EGREP=$EGREP
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4075 $as_echo "$ac_cv_path_EGREP" >&6; }
4076 EGREP="$ac_cv_path_EGREP"
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4080 $as_echo_n "checking for ANSI C header files... " >&6; }
4081 if test "${ac_cv_header_stdc+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_cv_header_stdc=yes
4102 ac_cv_header_stdc=no
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 if test $ac_cv_header_stdc = yes; then
4107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 $EGREP "memchr" >/dev/null 2>&1; then :
4117 ac_cv_header_stdc=no
4123 if test $ac_cv_header_stdc = yes; then
4124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4131 $EGREP "free" >/dev/null 2>&1; then :
4134 ac_cv_header_stdc=no
4140 if test $ac_cv_header_stdc = yes; then
4141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4142 if test "$cross_compiling" = yes; then :
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4149 #if ((' ' & 0x0FF) == 0x020)
4150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4153 # define ISLOWER(c) \
4154 (('a' <= (c) && (c) <= 'i') \
4155 || ('j' <= (c) && (c) <= 'r') \
4156 || ('s' <= (c) && (c) <= 'z'))
4157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4165 for (i = 0; i < 256; i++)
4166 if (XOR (islower (i), ISLOWER (i))
4167 || toupper (i) != TOUPPER (i))
4172 if ac_fn_c_try_run "$LINENO"; then :
4175 ac_cv_header_stdc=no
4177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4178 conftest.$ac_objext conftest.beam conftest.$ac_ext
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4184 $as_echo "$ac_cv_header_stdc" >&6; }
4185 if test $ac_cv_header_stdc = yes; then
4187 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4191 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4192 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4193 inttypes.h stdint.h unistd.h
4195 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4196 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4198 eval as_val=\$$as_ac_Header
4199 if test "x$as_val" = x""yes; then :
4200 cat >>confdefs.h <<_ACEOF
4201 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4210 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4211 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4218 if test "$MINIX" = yes; then
4220 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4223 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4226 $as_echo "#define _MINIX 1" >>confdefs.h
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4232 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4233 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4234 $as_echo_n "(cached) " >&6
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4239 # define __EXTENSIONS__ 1
4240 $ac_includes_default
4249 if ac_fn_c_try_compile "$LINENO"; then :
4250 ac_cv_safe_to_define___extensions__=yes
4252 ac_cv_safe_to_define___extensions__=no
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4257 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4258 test $ac_cv_safe_to_define___extensions__ = yes &&
4259 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4261 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4263 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4265 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4267 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4271 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4272 for ac_t in install-sh install.sh shtool; do
4273 if test -f "$ac_dir/$ac_t"; then
4275 ac_install_sh="$ac_aux_dir/$ac_t -c"
4280 if test -z "$ac_aux_dir"; then
4281 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4284 # These three variables are undocumented and unsupported,
4285 # and are intended to be withdrawn in a future Autoconf release.
4286 # They can cause serious problems if a builder's source tree is in a directory
4287 # whose full name contains unusual characters.
4288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4293 # Make sure we can run config.sub.
4294 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4295 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4298 $as_echo_n "checking build system type... " >&6; }
4299 if test "${ac_cv_build+set}" = set; then :
4300 $as_echo_n "(cached) " >&6
4302 ac_build_alias=$build_alias
4303 test "x$ac_build_alias" = x &&
4304 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4305 test "x$ac_build_alias" = x &&
4306 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4307 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4308 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4312 $as_echo "$ac_cv_build" >&6; }
4313 case $ac_cv_build in
4315 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4318 ac_save_IFS=$IFS; IFS='-'
4324 # Remember, the first character of IFS is used to create $*,
4325 # except with old shells:
4328 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4332 $as_echo_n "checking host system type... " >&6; }
4333 if test "${ac_cv_host+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4336 if test "x$host_alias" = x; then
4337 ac_cv_host=$ac_cv_build
4339 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4340 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4345 $as_echo "$ac_cv_host" >&6; }
4348 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4351 ac_save_IFS=$IFS; IFS='-'
4357 # Remember, the first character of IFS is used to create $*,
4358 # except with old shells:
4361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4365 $as_echo_n "checking target system type... " >&6; }
4366 if test "${ac_cv_target+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4369 if test "x$target_alias" = x; then
4370 ac_cv_target=$ac_cv_host
4372 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4373 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4378 $as_echo "$ac_cv_target" >&6; }
4379 case $ac_cv_target in
4381 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4383 target=$ac_cv_target
4384 ac_save_IFS=$IFS; IFS='-'
4390 # Remember, the first character of IFS is used to create $*,
4391 # except with old shells:
4394 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4397 # The aliases save the names the user supplied, while $host etc.
4398 # will get canonicalized.
4399 test -n "$target_alias" &&
4400 test "$program_prefix$program_suffix$program_transform_name" = \
4402 program_prefix=${target_alias}-
4404 # The tests for host and target for $enable_largefile require
4409 # As the $enable_largefile decision depends on --enable-plugins we must set it
4410 # even in directories otherwise not depending on the $plugins option.
4414 for ac_header in dlfcn.h
4416 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4418 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
4419 cat >>confdefs.h <<_ACEOF
4420 #define HAVE_DLFCN_H 1
4427 for ac_header in windows.h
4429 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4431 if test "x$ac_cv_header_windows_h" = x""yes; then :
4432 cat >>confdefs.h <<_ACEOF
4433 #define HAVE_WINDOWS_H 1
4441 # Check whether --enable-plugins was given.
4442 if test "${enable_plugins+set}" = set; then :
4443 enableval=$enable_plugins; case "${enableval}" in
4446 if test "$maybe_plugins" != "yes" ; then
4447 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4451 plugins=$maybe_plugins
4455 if test "$plugins" = "yes"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4457 $as_echo_n "checking for library containing dlopen... " >&6; }
4458 if test "${ac_cv_search_dlopen+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4461 ac_func_search_save_LIBS=$LIBS
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4465 /* Override any GCC internal prototype to avoid an error.
4466 Use char because int might match the return type of a GCC
4467 builtin and then its argument prototype would still apply. */
4480 for ac_lib in '' dl; do
4481 if test -z "$ac_lib"; then
4482 ac_res="none required"
4485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4487 if ac_fn_c_try_link "$LINENO"; then :
4488 ac_cv_search_dlopen=$ac_res
4490 rm -f core conftest.err conftest.$ac_objext \
4492 if test "${ac_cv_search_dlopen+set}" = set; then :
4496 if test "${ac_cv_search_dlopen+set}" = set; then :
4499 ac_cv_search_dlopen=no
4502 LIBS=$ac_func_search_save_LIBS
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4505 $as_echo "$ac_cv_search_dlopen" >&6; }
4506 ac_res=$ac_cv_search_dlopen
4507 if test "$ac_res" != no; then :
4508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4516 sparc-*-solaris*|i[3-7]86-*-solaris*)
4517 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4518 # are mutually exclusive; and without procfs support, the bfd/ elf module
4519 # cannot provide certain routines such as elfcore_write_prpsinfo
4520 # or elfcore_write_prstatus. So unless the user explicitly requested
4521 # large-file support through the --enable-largefile switch, disable
4522 # large-file support in favor of procfs support.
4523 test "${target}" = "${host}" -a "x$plugins" = xno \
4524 && : ${enable_largefile="no"}
4528 # Check whether --enable-largefile was given.
4529 if test "${enable_largefile+set}" = set; then :
4530 enableval=$enable_largefile;
4533 if test "$enable_largefile" != no; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4536 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4537 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
4540 ac_cv_sys_largefile_CC=no
4541 if test "$GCC" != yes; then
4544 # IRIX 6.2 and later do not support large files by default,
4545 # so use the C compiler's -n32 option if that helps.
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 #include <sys/types.h>
4549 /* Check that off_t can represent 2**63 - 1 correctly.
4550 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4551 since some C++ compilers masquerading as C compilers
4552 incorrectly reject 9223372036854775807. */
4553 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4554 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4555 && LARGE_OFF_T % 2147483647 == 1)
4565 if ac_fn_c_try_compile "$LINENO"; then :
4568 rm -f core conftest.err conftest.$ac_objext
4570 if ac_fn_c_try_compile "$LINENO"; then :
4571 ac_cv_sys_largefile_CC=' -n32'; break
4573 rm -f core conftest.err conftest.$ac_objext
4577 rm -f conftest.$ac_ext
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4581 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4582 if test "$ac_cv_sys_largefile_CC" != no; then
4583 CC=$CC$ac_cv_sys_largefile_CC
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4587 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4588 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4589 $as_echo_n "(cached) " >&6
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594 #include <sys/types.h>
4595 /* Check that off_t can represent 2**63 - 1 correctly.
4596 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4597 since some C++ compilers masquerading as C compilers
4598 incorrectly reject 9223372036854775807. */
4599 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4601 && LARGE_OFF_T % 2147483647 == 1)
4611 if ac_fn_c_try_compile "$LINENO"; then :
4612 ac_cv_sys_file_offset_bits=no; break
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617 #define _FILE_OFFSET_BITS 64
4618 #include <sys/types.h>
4619 /* Check that off_t can represent 2**63 - 1 correctly.
4620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4621 since some C++ compilers masquerading as C compilers
4622 incorrectly reject 9223372036854775807. */
4623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4625 && LARGE_OFF_T % 2147483647 == 1)
4635 if ac_fn_c_try_compile "$LINENO"; then :
4636 ac_cv_sys_file_offset_bits=64; break
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 ac_cv_sys_file_offset_bits=unknown
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4644 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4645 case $ac_cv_sys_file_offset_bits in #(
4648 cat >>confdefs.h <<_ACEOF
4649 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4654 if test $ac_cv_sys_file_offset_bits = unknown; then
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4656 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4657 if test "${ac_cv_sys_large_files+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4663 #include <sys/types.h>
4664 /* Check that off_t can represent 2**63 - 1 correctly.
4665 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4666 since some C++ compilers masquerading as C compilers
4667 incorrectly reject 9223372036854775807. */
4668 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4669 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4670 && LARGE_OFF_T % 2147483647 == 1)
4680 if ac_fn_c_try_compile "$LINENO"; then :
4681 ac_cv_sys_large_files=no; break
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686 #define _LARGE_FILES 1
4687 #include <sys/types.h>
4688 /* Check that off_t can represent 2**63 - 1 correctly.
4689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4690 since some C++ compilers masquerading as C compilers
4691 incorrectly reject 9223372036854775807. */
4692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4694 && LARGE_OFF_T % 2147483647 == 1)
4704 if ac_fn_c_try_compile "$LINENO"; then :
4705 ac_cv_sys_large_files=1; break
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 ac_cv_sys_large_files=unknown
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4713 $as_echo "$ac_cv_sys_large_files" >&6; }
4714 case $ac_cv_sys_large_files in #(
4717 cat >>confdefs.h <<_ACEOF
4718 #define _LARGE_FILES $ac_cv_sys_large_files
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4731 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4732 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4735 am_cv_prog_cc_stdc=no
4737 # Don't try gcc -ansi; that turns off useful extensions and
4738 # breaks some systems' header files.
4739 # AIX -qlanglvl=ansi
4740 # Ultrix and OSF/1 -std1
4741 # HP-UX 10.20 and later -Ae
4742 # HP-UX older versions -Aa -D_HPUX_SOURCE
4743 # SVR4 -Xc -D__EXTENSIONS__
4744 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4746 CC="$ac_save_CC $ac_arg"
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4751 #include <sys/types.h>
4752 #include <sys/stat.h>
4753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4754 struct buf { int x; };
4755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4756 static char *e (p, i)
4762 static char *f (char * (*g) (char **, int), char **p, ...)
4767 s = g (p, va_arg (v,int));
4771 int test (int i, double x);
4772 struct s1 {int (*f) (int a);};
4773 struct s2 {int (*f) (double a);};
4774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4782 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 am_cv_prog_cc_stdc="$ac_arg"; break
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 if test -z "$am_cv_prog_cc_stdc"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4799 $as_echo "none needed" >&6; }
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4802 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4804 case "x$am_cv_prog_cc_stdc" in
4806 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4809 # expand $ac_aux_dir to an absolute path
4810 am_aux_dir=`cd $ac_aux_dir && pwd`
4812 if test x"${install_sh}" != xset; then
4815 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4817 install_sh="\${SHELL} $am_aux_dir/install-sh"
4821 # Installed binaries are usually stripped using `strip' when the user
4822 # run `make install-strip'. However `strip' might not be the right
4823 # tool to use in cross-compilation environments, therefore Automake
4824 # will honor the `STRIP' environment variable to overrule this program.
4825 if test "$cross_compiling" != no; then
4826 if test -n "$ac_tool_prefix"; then
4827 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4828 set dummy ${ac_tool_prefix}strip; ac_word=$2
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 $as_echo_n "checking for $ac_word... " >&6; }
4831 if test "${ac_cv_prog_STRIP+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4834 if test -n "$STRIP"; then
4835 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 STRIP=$ac_cv_prog_STRIP
4855 if test -n "$STRIP"; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4857 $as_echo "$STRIP" >&6; }
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4865 if test -z "$ac_cv_prog_STRIP"; then
4867 # Extract the first word of "strip", so it can be a program name with args.
4868 set dummy strip; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4874 if test -n "$ac_ct_STRIP"; then
4875 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_ac_ct_STRIP="strip"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4895 if test -n "$ac_ct_STRIP"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4897 $as_echo "$ac_ct_STRIP" >&6; }
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4903 if test "x$ac_ct_STRIP" = x; then
4906 case $cross_compiling:$ac_tool_warned in
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4910 ac_tool_warned=yes ;;
4915 STRIP="$ac_cv_prog_STRIP"
4919 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4923 for ac_dir in .. "$srcdir"/..; do
4924 for ac_t in install-sh install.sh shtool; do
4925 if test -f "$ac_dir/$ac_t"; then
4927 ac_install_sh="$ac_aux_dir/$ac_t -c"
4932 if test -z "$ac_aux_dir"; then
4933 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4936 # These three variables are undocumented and unsupported,
4937 # and are intended to be withdrawn in a future Autoconf release.
4938 # They can cause serious problems if a builder's source tree is in a directory
4939 # whose full name contains unusual characters.
4940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4946 test "$program_prefix" != NONE &&
4947 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4948 # Use a double $ so make ignores it.
4949 test "$program_suffix" != NONE &&
4950 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4951 # Double any \ or $.
4952 # By default was `s,x,x', remove it if useless.
4953 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4954 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4957 # See if we are building with C++, and substitute COMPILER.
4959 # Check whether --enable-build-with-cxx was given.
4960 if test "${enable_build_with_cxx+set}" = set; then :
4961 enableval=$enable_build_with_cxx; case $enableval in
4965 as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4968 enable_build_with_cxx=yes
4972 if test "$enable_build_with_cxx" = "yes"; then
4974 COMPILER_CFLAGS='$(CXXFLAGS)'
4977 COMPILER_CFLAGS='$(CFLAGS)'
4983 # Dependency checking.
4984 rm -rf .tst 2>/dev/null
4985 mkdir .tst 2>/dev/null
4986 if test -d .tst; then
4991 rmdir .tst 2>/dev/null
4993 DEPDIR="${am__leading_dot}deps"
4995 ac_config_commands="$ac_config_commands depdir"
4998 depcc="$CC" am_compiler_list=
5000 am_depcomp=$ac_aux_dir/depcomp
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5002 $as_echo_n "checking dependency style of $depcc... " >&6; }
5003 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5006 if test -f "$am_depcomp"; then
5007 # We make a subdir and do the tests there. Otherwise we can end up
5008 # making bogus files that we don't know about and never remove. For
5009 # instance it was reported that on HP-UX the gcc test will end up
5010 # making a dummy file named `D' -- because `-MD' means `put the output
5013 # Copy depcomp to subdir because otherwise we won't find it if we're
5014 # using a relative directory.
5015 cp "$am_depcomp" conftest.dir
5017 # We will build objects and dependencies in a subdirectory because
5018 # it helps to detect inapplicable dependency modes. For instance
5019 # both Tru64's cc and ICC support -MD to output dependencies as a
5020 # side effect of compilation, but ICC will put the dependencies in
5021 # the current directory while Tru64 will put them in the object
5025 am_cv_CC_dependencies_compiler_type=none
5026 if test "$am_compiler_list" = ""; then
5027 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5029 for depmode in $am_compiler_list; do
5030 if test $depmode = none; then break; fi
5032 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5033 # Setup a source with many dependencies, because some compilers
5034 # like to wrap large dependency lists on column 80 (with \), and
5035 # we should not choose a depcomp mode which is confused by this.
5037 # We need to recreate these files for each test, as the compiler may
5038 # overwrite some of them when testing with obscure command lines.
5039 # This happens at least with the AIX C compiler.
5041 for i in 1 2 3 4 5 6; do
5042 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5043 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5044 # Solaris 8's {/usr,}/bin/sh.
5045 touch sub/conftst$i.h
5047 echo "include sub/conftest.Po" > confmf
5049 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5050 # mode. It turns out that the SunPro C++ compiler does not properly
5051 # handle `-M -o', and we need to detect this.
5052 depcmd="depmode=$depmode \
5053 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5054 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5055 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5056 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5057 if env $depcmd > conftest.err 2>&1 &&
5058 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5059 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5060 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5061 # icc doesn't choke on unknown options, it will just issue warnings
5062 # or remarks (even with -Werror). So we grep stderr for any message
5063 # that says an option was ignored or not supported.
5064 # When given -MP, icc 7.0 and 7.1 complain thusly:
5065 # icc: Command line warning: ignoring option '-M'; no argument required
5066 # The diagnosis changed in icc 8.0:
5067 # icc: Command line remark: option '-MP' not supported
5068 if (grep 'ignoring option' conftest.err ||
5069 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5070 am_cv_CC_dependencies_compiler_type=$depmode
5071 $as_echo "$as_me:$LINENO: success" >&5
5075 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5076 sed -e 's/^/| /' < conftest.err >&5
5082 am_cv_CC_dependencies_compiler_type=none
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5087 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5088 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
5089 then as_fn_error "no usable dependency style found" "$LINENO" 5
5090 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5095 # Check for the 'make' the user wants to use.
5098 # Extract the first word of "$ac_prog", so it can be a program name with args.
5099 set dummy $ac_prog; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if test "${ac_cv_prog_MAKE+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5105 if test -n "$MAKE"; then
5106 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_prog_MAKE="$ac_prog"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 MAKE=$ac_cv_prog_MAKE
5126 if test -n "$MAKE"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5128 $as_echo "$MAKE" >&6; }
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5135 test -n "$MAKE" && break
5139 case "`$MAKE --version 2>&1 | sed 1q`" in
5144 if test "$MAKE_IS_GNU" = yes; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5153 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5155 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5156 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5157 $as_echo_n "(cached) " >&6
5159 cat >conftest.make <<\_ACEOF
5162 @echo '@@@%%%=$(MAKE)=@@@%%%'
5164 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5165 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5167 eval ac_cv_prog_make_${ac_make}_set=yes;;
5169 eval ac_cv_prog_make_${ac_make}_set=no;;
5173 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5175 $as_echo "yes" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 SET_MAKE="MAKE=${MAKE-make}"
5184 gnulib_extra_configure_args=
5185 # If large-file support is disabled, make sure gnulib does the same.
5186 if test "$enable_largefile" = no; then
5187 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
5190 # Configure gnulib. We need to build gnulib under some other
5191 # directory not "gnulib", to avoid the problem of both GDB and
5192 # GDBserver wanting to build it in the same directory, when building
5193 # in the source dir.
5196 in_build="build-gnulib"
5197 in_extra_args="$gnulib_extra_configure_args"
5199 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5200 # so they do not pile up.
5201 ac_sub_configure_args=
5203 eval "set x $ac_configure_args"
5207 if test -n "$ac_prev"; then
5212 -cache-file | --cache-file | --cache-fil | --cache-fi \
5213 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5214 ac_prev=cache_file ;;
5215 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5216 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5219 --config-cache | -C)
5221 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5223 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5225 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5227 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5229 --disable-option-checking)
5233 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5235 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
5239 # Always prepend --prefix to ensure using the same prefix
5240 # in subdir configurations.
5241 ac_arg="--prefix=$prefix"
5243 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5245 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
5248 if test "$silent" = yes; then
5249 ac_sub_configure_args="--silent $ac_sub_configure_args"
5252 # Always prepend --disable-option-checking to silence warnings, since
5253 # different subdirs can have different --enable and --with options.
5254 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
5259 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5260 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5261 $as_echo "$ac_msg" >&6
5262 as_dir="$ac_dir"; as_fn_mkdir_p
5266 ac_srcdir=$srcdir/$in_src ;;
5268 ac_srcdir=../$srcdir/$in_src ;;
5273 ac_sub_configure=$ac_srcdir/configure
5275 # Make the cache file name correct relative to the subdirectory.
5277 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5279 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5282 if test -n "$in_extra_args"; then
5283 # Add the extra args at the end.
5284 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
5287 { $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
5288 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5289 # The eval makes quoting arguments work.
5290 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5291 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5292 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5308 # If we haven't got the data from the intl directory,
5309 # assume NLS is disabled.
5318 if test -f ../intl/config.intl; then
5319 . ../intl/config.intl
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5322 $as_echo_n "checking whether NLS is requested... " >&6; }
5323 if test x"$USE_NLS" != xyes; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5328 $as_echo "yes" >&6; }
5330 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5334 $as_echo_n "checking for catalogs to be installed... " >&6; }
5335 # Look for .po and .gmo files in the source directory.
5338 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5339 # If there aren't any .gmo files the shell will give us the
5340 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5342 case "$cat" in *\**)
5345 # The quadruple backslash is collapsed to a double backslash
5346 # by the backticks, then collapsed again by the double quotes,
5347 # leaving us with one backslash in the sed expression (right
5348 # before the dot that mustn't act as a wildcard).
5349 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5350 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5351 # The user is allowed to set LINGUAS to a list of languages to
5352 # install catalogs for. If it's empty that means "all of them."
5353 if test "x$LINGUAS" = x; then
5354 CATALOGS="$CATALOGS $cat"
5355 XLINGUAS="$XLINGUAS $lang"
5357 case "$LINGUAS" in *$lang*)
5358 CATALOGS="$CATALOGS $cat"
5359 XLINGUAS="$XLINGUAS $lang"
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5366 $as_echo "$LINGUAS" >&6; }
5379 localedir='${datadir}/locale'
5382 if test x"$USE_NLS" = xyes; then
5383 CONFIG_ALL="$CONFIG_ALL all-po"
5384 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5385 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5386 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5389 GNULIB=build-gnulib/import
5391 # For Makefile dependencies.
5393 if test x"$STDINT_H" != x; then
5394 GNULIB_STDINT_H=$GNULIB/$STDINT_H
5400 cat >>confdefs.h <<_ACEOF
5401 #define PACKAGE "$PACKAGE"
5406 # We never need to detect it in this sub-configure.
5407 # But preserve it for config.status --recheck.
5411 MAKEINFO_EXTRA_FLAGS=""
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5413 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5414 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5417 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5418 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5419 gdb_cv_have_makeinfo_click=yes
5421 gdb_cv_have_makeinfo_click=no
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5425 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5426 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
5427 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5433 # Check whether --with-separate-debug-dir was given.
5434 if test "${with_separate_debug_dir+set}" = set; then :
5435 withval=$with_separate_debug_dir;
5438 DEBUGDIR=${libdir}/debug
5442 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5443 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5444 ac_define_dir=`eval echo $DEBUGDIR`
5445 ac_define_dir=`eval echo $ac_define_dir`
5447 cat >>confdefs.h <<_ACEOF
5448 #define DEBUGDIR "$ac_define_dir"
5454 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5455 if test "x$prefix" = xNONE; then
5456 test_prefix=/usr/local
5461 test_prefix=$exec_prefix
5464 case ${ac_define_dir} in
5465 "${test_prefix}"|"${test_prefix}/"*|\
5466 '${exec_prefix}'|'${exec_prefix}/'*)
5471 cat >>confdefs.h <<_ACEOF
5472 #define DEBUGDIR_RELOCATABLE $value
5478 # We can't pass paths as command line arguments.
5479 # Mingw32 tries to be clever and will convert the paths for us.
5480 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5481 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5482 # This breaks GDB's relocatable path conversions since paths passed in
5483 # config.h would not get so translated, the path prefixes no longer match.
5485 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5487 ac_define_dir=`eval echo $bindir`
5488 ac_define_dir=`eval echo $ac_define_dir`
5490 cat >>confdefs.h <<_ACEOF
5491 #define BINDIR "$ac_define_dir"
5496 # GDB's datadir relocation
5500 # Check whether --with-gdb-datadir was given.
5501 if test "${with_gdb_datadir+set}" = set; then :
5502 withval=$with_gdb_datadir;
5503 GDB_DATADIR=$withval
5505 GDB_DATADIR=${datadir}/gdb
5509 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5510 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5511 ac_define_dir=`eval echo $GDB_DATADIR`
5512 ac_define_dir=`eval echo $ac_define_dir`
5514 cat >>confdefs.h <<_ACEOF
5515 #define GDB_DATADIR "$ac_define_dir"
5521 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5522 if test "x$prefix" = xNONE; then
5523 test_prefix=/usr/local
5528 test_prefix=$exec_prefix
5531 case ${ac_define_dir} in
5532 "${test_prefix}"|"${test_prefix}/"*|\
5533 '${exec_prefix}'|'${exec_prefix}/'*)
5538 cat >>confdefs.h <<_ACEOF
5539 #define GDB_DATADIR_RELOCATABLE $value
5546 # Check whether --with-relocated-sources was given.
5547 if test "${with_relocated_sources+set}" = set; then :
5548 withval=$with_relocated_sources; reloc_srcdir="${withval}"
5550 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5551 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5552 ac_define_dir=`eval echo $reloc_srcdir`
5553 ac_define_dir=`eval echo $ac_define_dir`
5555 cat >>confdefs.h <<_ACEOF
5556 #define RELOC_SRCDIR "$ac_define_dir"
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5565 $as_echo_n "checking for default auto-load directory... " >&6; }
5567 # Check whether --with-auto-load-dir was given.
5568 if test "${with_auto_load_dir+set}" = set; then :
5569 withval=$with_auto_load_dir;
5571 with_auto_load_dir='$debugdir:$datadir/auto-load'
5574 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5576 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5577 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5578 ac_define_dir=`eval echo $escape_dir`
5579 ac_define_dir=`eval echo $ac_define_dir`
5581 cat >>confdefs.h <<_ACEOF
5582 #define AUTO_LOAD_DIR "$ac_define_dir"
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5587 $as_echo "$with_auto_load_dir" >&6; }
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5590 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5592 # Check whether --with-auto-load-safe-path was given.
5593 if test "${with_auto_load_safe_path+set}" = set; then :
5594 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5595 with_auto_load_safe_path="/"
5598 with_auto_load_safe_path="$with_auto_load_dir"
5601 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5603 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5605 ac_define_dir=`eval echo $escape_dir`
5606 ac_define_dir=`eval echo $ac_define_dir`
5608 cat >>confdefs.h <<_ACEOF
5609 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5614 $as_echo "$with_auto_load_safe_path" >&6; }
5618 subdirs="$subdirs testsuite"
5621 # Check whether to support alternative target configurations
5622 # Check whether --enable-targets was given.
5623 if test "${enable_targets+set}" = set; then :
5624 enableval=$enable_targets; case "${enableval}" in
5625 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5627 no) enable_targets= ;;
5628 *) enable_targets=$enableval ;;
5633 # Check whether to enable 64-bit support on 32-bit hosts
5634 # Check whether --enable-64-bit-bfd was given.
5635 if test "${enable_64_bit_bfd+set}" = set; then :
5636 enableval=$enable_64_bit_bfd; case "${enableval}" in
5639 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5645 # Provide defaults for some variables set by the per-host and per-target
5647 gdb_host_obs=posix-hdep.o
5649 if test "${target}" = "${host}"; then
5655 . $srcdir/configure.host
5657 # Add in the common host objects.
5658 . $srcdir/common/common.host
5659 gdb_host_obs="$gdb_host_obs $common_host_obs"
5661 # Accumulate some settings from configure.tgt over all enabled targets
5665 HAVE_NATIVE_GCORE_TARGET=
5667 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5669 if test "$targ_alias" = "all"; then
5672 # Canonicalize the secondary target names.
5673 result=`$ac_config_sub $targ_alias 2>/dev/null`
5674 if test -n "$result"; then
5680 . ${srcdir}/configure.tgt
5682 if test -z "${gdb_target_obs}"; then :
5683 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5686 # Target-specific object files
5687 for i in ${gdb_target_obs}; do
5688 case " $TARGET_OBS " in
5691 TARGET_OBS="$TARGET_OBS ${i}"
5696 # Check whether this target needs 64-bit CORE_ADDR
5697 if test x${want64} = xfalse; then
5698 . ${srcdir}/../bfd/config.bfd
5701 # Check whether this target is native and supports gcore.
5702 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5703 && $gdb_have_gcore; then
5704 HAVE_NATIVE_GCORE_TARGET=1
5709 if test x${all_targets} = xtrue; then
5711 # We want all 64-bit targets if we either:
5712 # - run on a 64-bit host or
5713 # - already require 64-bit support for some other target or
5714 # - the --enable-64-bit-bfd option was supplied
5715 # Otherwise we only support all 32-bit targets.
5717 # NOTE: This test must be in sync with the corresponding
5720 if test x${want64} = xfalse; then
5721 # The cast to long int works around a bug in the HP C Compiler
5722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5724 # This bug is HP SR number 8606223364.
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5726 $as_echo_n "checking size of long... " >&6; }
5727 if test "${ac_cv_sizeof_long+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5730 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5733 if test "$ac_cv_type_long" = yes; then
5734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5736 { as_fn_set_status 77
5737 as_fn_error "cannot compute sizeof (long)
5738 See \`config.log' for more details." "$LINENO" 5; }; }
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5746 $as_echo "$ac_cv_sizeof_long" >&6; }
5750 cat >>confdefs.h <<_ACEOF
5751 #define SIZEOF_LONG $ac_cv_sizeof_long
5755 if test "x${ac_cv_sizeof_long}" = "x8"; then
5759 if test x${want64} = xtrue; then
5760 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5762 TARGET_OBS='$(ALL_TARGET_OBS)'
5769 # For other settings, only the main target counts.
5773 targ=$target; . ${srcdir}/configure.tgt
5775 # Fetch the default architecture and default target vector from BFD.
5776 targ=$target; . $srcdir/../bfd/config.bfd
5778 # We only want the first architecture, so strip off the others if
5779 # there is more than one.
5780 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5782 if test "x$targ_archs" != x; then
5784 cat >>confdefs.h <<_ACEOF
5785 #define DEFAULT_BFD_ARCH $targ_archs
5789 if test "x$targ_defvec" != x; then
5791 cat >>confdefs.h <<_ACEOF
5792 #define DEFAULT_BFD_VEC $targ_defvec
5797 # The CLI cannot be disabled yet, but may be in the future.
5800 # Check whether --enable-gdbcli was given.
5801 if test "${enable_gdbcli+set}" = set; then :
5802 enableval=$enable_gdbcli; case $enableval in
5806 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5808 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5814 if test x"$enable_gdbcli" = xyes; then
5815 if test -d $srcdir/cli; then
5816 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5817 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5818 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5819 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5824 # Check whether --enable-gdbmi was given.
5825 if test "${enable_gdbmi+set}" = set; then :
5826 enableval=$enable_gdbmi; case $enableval in
5830 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5836 if test x"$enable_gdbmi" = xyes; then
5837 if test -d $srcdir/mi; then
5838 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5839 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5840 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5841 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5846 # Check whether --enable-tui was given.
5847 if test "${enable_tui+set}" = set; then :
5848 enableval=$enable_tui; case $enableval in
5852 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5860 # Check whether --enable-gdbtk was given.
5861 if test "${enable_gdbtk+set}" = set; then :
5862 enableval=$enable_gdbtk; case $enableval in
5866 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5869 if test -d $srcdir/gdbtk; then
5876 # We unconditionally disable gdbtk tests on selected platforms.
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5880 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5884 # Libunwind support for ia64.
5887 # Check whether --with-libunwind-ia64 was given.
5888 if test "${with_libunwind_ia64+set}" = set; then :
5889 withval=$with_libunwind_ia64;
5891 with_libunwind_ia64=auto
5895 # Backward compatibility option.
5896 if test "${with_libunwind+set}" = set; then
5897 if test x"$with_libunwind_ia64" != xauto; then
5898 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5901 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5902 with_libunwind_ia64="$with_libunwind"
5905 case "$with_libunwind_ia64" in
5909 for ac_header in libunwind-ia64.h
5911 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5912 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5913 cat >>confdefs.h <<_ACEOF
5914 #define HAVE_LIBUNWIND_IA64_H 1
5921 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5924 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5928 if test x"$with_libunwind_ia64" = xyes; then
5929 for ac_header in libunwind-ia64.h
5931 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5932 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5933 cat >>confdefs.h <<_ACEOF
5934 #define HAVE_LIBUNWIND_IA64_H 1
5941 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5942 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5944 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5945 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5946 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5951 # Check whether --with-curses was given.
5952 if test "${with_curses+set}" = set; then :
5953 withval=$with_curses; opt_curses=$withval
5958 if test "$opt_curses" = "yes"; then
5962 # Profiling support.
5963 # Check whether --enable-profiling was given.
5964 if test "${enable_profiling+set}" = set; then :
5965 enableval=$enable_profiling; case $enableval in
5969 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5976 for ac_func in monstartup _mcleanup
5978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5980 eval as_val=\$$as_ac_var
5981 if test "x$as_val" = x""yes; then :
5982 cat >>confdefs.h <<_ACEOF
5983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5990 $as_echo_n "checking for _etext... " >&6; }
5991 if test "${ac_cv_var__etext+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
6007 if ac_fn_c_try_link "$LINENO"; then :
6008 ac_cv_var__etext=yes
6012 rm -f core conftest.err conftest.$ac_objext \
6013 conftest$ac_exeext conftest.$ac_ext
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6016 $as_echo "$ac_cv_var__etext" >&6; }
6017 if test $ac_cv_var__etext = yes; then
6019 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6023 $as_echo_n "checking for etext... " >&6; }
6024 if test "${ac_cv_var_etext+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6040 if ac_fn_c_try_link "$LINENO"; then :
6045 rm -f core conftest.err conftest.$ac_objext \
6046 conftest$ac_exeext conftest.$ac_ext
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6049 $as_echo "$ac_cv_var_etext" >&6; }
6050 if test $ac_cv_var_etext = yes; then
6052 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6055 if test "$enable_profiling" = yes ; then
6056 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6057 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6060 OLD_CFLAGS="$CFLAGS"
6061 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6064 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6065 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6079 if ac_fn_c_try_compile "$LINENO"; then :
6080 ac_cv_cc_supports_pg=yes
6082 ac_cv_cc_supports_pg=no
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6087 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6089 if test $ac_cv_cc_supports_pg = no; then
6090 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6093 CFLAGS="$OLD_CFLAGS"
6098 # Check whether --with-pkgversion was given.
6099 if test "${with_pkgversion+set}" = set; then :
6100 withval=$with_pkgversion; case "$withval" in
6101 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6103 *) PKGVERSION="($withval) " ;;
6114 # Check whether --with-bugurl was given.
6115 if test "${with_bugurl+set}" = set; then :
6116 withval=$with_bugurl; case "$withval" in
6117 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6120 *) BUGURL="$withval"
6124 BUGURL="http://www.gnu.org/software/gdb/bugs/"
6134 REPORT_BUGS_TO="<$BUGURL>"
6135 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6142 cat >>confdefs.h <<_ACEOF
6143 #define PKGVERSION "$PKGVERSION"
6147 cat >>confdefs.h <<_ACEOF
6148 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6152 # --------------------- #
6153 # Checks for programs. #
6154 # --------------------- #
6156 for ac_prog in gawk mawk nawk awk
6158 # Extract the first word of "$ac_prog", so it can be a program name with args.
6159 set dummy $ac_prog; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if test "${ac_cv_prog_AWK+set}" = set; then :
6163 $as_echo_n "(cached) " >&6
6165 if test -n "$AWK"; then
6166 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175 ac_cv_prog_AWK="$ac_prog"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 if test -n "$AWK"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6188 $as_echo "$AWK" >&6; }
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6195 test -n "$AWK" && break
6198 # Find a good install program. We prefer a C program (faster),
6199 # so one script is as good as another. But avoid the broken or
6200 # incompatible versions:
6201 # SysV /etc/install, /usr/sbin/install
6202 # SunOS /usr/etc/install
6203 # IRIX /sbin/install
6205 # AmigaOS /C/install, which installs bootblocks on floppy discs
6206 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6207 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6208 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6209 # OS/2's system install, which has a completely different semantic
6210 # ./install, which can be erroneously created by make from ./install.sh.
6211 # Reject install programs that cannot install multiple files.
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6213 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6214 if test -z "$INSTALL"; then
6215 if test "${ac_cv_path_install+set}" = set; then :
6216 $as_echo_n "(cached) " >&6
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 test -z "$as_dir" && as_dir=.
6223 # Account for people who put trailing slashes in PATH elements.
6224 case $as_dir/ in #((
6225 ./ | .// | /[cC]/* | \
6226 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6227 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6230 # OSF1 and SCO ODT 3.0 have their own names for install.
6231 # Don't use installbsd from OSF since it installs stuff as root
6233 for ac_prog in ginstall scoinst install; do
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6236 if test $ac_prog = install &&
6237 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6238 # AIX install. It has an incompatible calling convention.
6240 elif test $ac_prog = install &&
6241 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6242 # program-specific install script used by HP pwplus--don't use.
6245 rm -rf conftest.one conftest.two conftest.dir
6246 echo one > conftest.one
6247 echo two > conftest.two
6249 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6250 test -s conftest.one && test -s conftest.two &&
6251 test -s conftest.dir/conftest.one &&
6252 test -s conftest.dir/conftest.two
6254 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6267 rm -rf conftest.one conftest.two conftest.dir
6270 if test "${ac_cv_path_install+set}" = set; then
6271 INSTALL=$ac_cv_path_install
6273 # As a last resort, use the slow shell script. Don't cache a
6274 # value for INSTALL within a source directory, because that will
6275 # break other packages using the cache if that directory is
6276 # removed, or if the value is a relative name.
6277 INSTALL=$ac_install_sh
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6281 $as_echo "$INSTALL" >&6; }
6283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6284 # It thinks the first close brace ends the variable substitution.
6285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6287 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6289 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6292 $as_echo_n "checking whether ln -s works... " >&6; }
6294 if test "$LN_S" = "ln -s"; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6296 $as_echo "yes" >&6; }
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6299 $as_echo "no, using $LN_S" >&6; }
6302 if test -n "$ac_tool_prefix"; then
6303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6304 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 $as_echo_n "checking for $ac_word... " >&6; }
6307 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6308 $as_echo_n "(cached) " >&6
6310 if test -n "$RANLIB"; then
6311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 RANLIB=$ac_cv_prog_RANLIB
6331 if test -n "$RANLIB"; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6333 $as_echo "$RANLIB" >&6; }
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6341 if test -z "$ac_cv_prog_RANLIB"; then
6342 ac_ct_RANLIB=$RANLIB
6343 # Extract the first word of "ranlib", so it can be a program name with args.
6344 set dummy ranlib; ac_word=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6348 $as_echo_n "(cached) " >&6
6350 if test -n "$ac_ct_RANLIB"; then
6351 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6360 ac_cv_prog_ac_ct_RANLIB="ranlib"
6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6371 if test -n "$ac_ct_RANLIB"; then
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6373 $as_echo "$ac_ct_RANLIB" >&6; }
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376 $as_echo "no" >&6; }
6379 if test "x$ac_ct_RANLIB" = x; then
6382 case $cross_compiling:$ac_tool_warned in
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6386 ac_tool_warned=yes ;;
6388 RANLIB=$ac_ct_RANLIB
6391 RANLIB="$ac_cv_prog_RANLIB"
6394 for ac_prog in 'bison -y' byacc
6396 # Extract the first word of "$ac_prog", so it can be a program name with args.
6397 set dummy $ac_prog; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if test "${ac_cv_prog_YACC+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6403 if test -n "$YACC"; then
6404 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_prog_YACC="$ac_prog"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 YACC=$ac_cv_prog_YACC
6424 if test -n "$YACC"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6426 $as_echo "$YACC" >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6433 test -n "$YACC" && break
6435 test -n "$YACC" || YACC="yacc"
6438 if test -n "$ac_tool_prefix"; then
6439 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6440 set dummy ${ac_tool_prefix}ar; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_AR+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6446 if test -n "$AR"; then
6447 ac_cv_prog_AR="$AR" # Let the user override the test.
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_AR="${ac_tool_prefix}ar"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 if test -n "$AR"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6469 $as_echo "$AR" >&6; }
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6477 if test -z "$ac_cv_prog_AR"; then
6479 # Extract the first word of "ar", so it can be a program name with args.
6480 set dummy ar; ac_word=$2
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6484 $as_echo_n "(cached) " >&6
6486 if test -n "$ac_ct_AR"; then
6487 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_prog_ac_ct_AR="ar"
6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6507 if test -n "$ac_ct_AR"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6509 $as_echo "$ac_ct_AR" >&6; }
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6515 if test "x$ac_ct_AR" = x; then
6518 case $cross_compiling:$ac_tool_warned in
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6536 $as_echo_n "(cached) " >&6
6538 if test -n "$DLLTOOL"; then
6539 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 DLLTOOL=$ac_cv_prog_DLLTOOL
6559 if test -n "$DLLTOOL"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6561 $as_echo "$DLLTOOL" >&6; }
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6569 if test -z "$ac_cv_prog_DLLTOOL"; then
6570 ac_ct_DLLTOOL=$DLLTOOL
6571 # Extract the first word of "dlltool", so it can be a program name with args.
6572 set dummy dlltool; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6576 $as_echo_n "(cached) " >&6
6578 if test -n "$ac_ct_DLLTOOL"; then
6579 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6599 if test -n "$ac_ct_DLLTOOL"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6601 $as_echo "$ac_ct_DLLTOOL" >&6; }
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6607 if test "x$ac_ct_DLLTOOL" = x; then
6610 case $cross_compiling:$ac_tool_warned in
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6616 DLLTOOL=$ac_ct_DLLTOOL
6619 DLLTOOL="$ac_cv_prog_DLLTOOL"
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}windres; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6628 $as_echo_n "(cached) " >&6
6630 if test -n "$WINDRES"; then
6631 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 WINDRES=$ac_cv_prog_WINDRES
6651 if test -n "$WINDRES"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6653 $as_echo "$WINDRES" >&6; }
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6661 if test -z "$ac_cv_prog_WINDRES"; then
6662 ac_ct_WINDRES=$WINDRES
6663 # Extract the first word of "windres", so it can be a program name with args.
6664 set dummy windres; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6668 $as_echo_n "(cached) " >&6
6670 if test -n "$ac_ct_WINDRES"; then
6671 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_prog_ac_ct_WINDRES="windres"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6691 if test -n "$ac_ct_WINDRES"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6693 $as_echo "$ac_ct_WINDRES" >&6; }
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6699 if test "x$ac_ct_WINDRES" = x; then
6702 case $cross_compiling:$ac_tool_warned in
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706 ac_tool_warned=yes ;;
6708 WINDRES=$ac_ct_WINDRES
6711 WINDRES="$ac_cv_prog_WINDRES"
6717 # Needed for GNU Hurd hosts.
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}mig; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if test "${ac_cv_prog_MIG+set}" = set; then :
6724 $as_echo_n "(cached) " >&6
6726 if test -n "$MIG"; then
6727 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 if test -n "$MIG"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6749 $as_echo "$MIG" >&6; }
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6757 if test -z "$ac_cv_prog_MIG"; then
6759 # Extract the first word of "mig", so it can be a program name with args.
6760 set dummy mig; ac_word=$2
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 $as_echo_n "checking for $ac_word... " >&6; }
6763 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6764 $as_echo_n "(cached) " >&6
6766 if test -n "$ac_ct_MIG"; then
6767 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_ac_ct_MIG="mig"
6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6787 if test -n "$ac_ct_MIG"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6789 $as_echo "$ac_ct_MIG" >&6; }
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6795 if test "x$ac_ct_MIG" = x; then
6798 case $cross_compiling:$ac_tool_warned in
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802 ac_tool_warned=yes ;;
6807 MIG="$ac_cv_prog_MIG"
6810 if test x"$MIG" = x; then
6811 as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
6816 # ---------------------- #
6817 # Checks for libraries. #
6818 # ---------------------- #
6820 # We might need to link with -lm; most simulators need it.
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6822 $as_echo_n "checking for main in -lm... " >&6; }
6823 if test "${ac_cv_lib_m_main+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
6826 ac_check_lib_save_LIBS=$LIBS
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6840 if ac_fn_c_try_link "$LINENO"; then :
6841 ac_cv_lib_m_main=yes
6845 rm -f core conftest.err conftest.$ac_objext \
6846 conftest$ac_exeext conftest.$ac_ext
6847 LIBS=$ac_check_lib_save_LIBS
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6850 $as_echo "$ac_cv_lib_m_main" >&6; }
6851 if test "x$ac_cv_lib_m_main" = x""yes; then :
6852 cat >>confdefs.h <<_ACEOF
6861 # We need to link with -lw to get `wctype' on Solaris before Solaris
6862 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6863 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6864 # is known to have this problem). Therefore we avoid libw if we can.
6865 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6866 if test "x$ac_cv_func_wctype" = x""yes; then :
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6870 $as_echo_n "checking for wctype in -lw... " >&6; }
6871 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6872 $as_echo_n "(cached) " >&6
6874 ac_check_lib_save_LIBS=$LIBS
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6879 /* Override any GCC internal prototype to avoid an error.
6880 Use char because int might match the return type of a GCC
6881 builtin and then its argument prototype would still apply. */
6894 if ac_fn_c_try_link "$LINENO"; then :
6895 ac_cv_lib_w_wctype=yes
6897 ac_cv_lib_w_wctype=no
6899 rm -f core conftest.err conftest.$ac_objext \
6900 conftest$ac_exeext conftest.$ac_ext
6901 LIBS=$ac_check_lib_save_LIBS
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6904 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6905 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6906 cat >>confdefs.h <<_ACEOF
6917 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6919 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6920 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6923 ac_func_search_save_LIBS=$LIBS
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6927 /* Override any GCC internal prototype to avoid an error.
6928 Use char because int might match the return type of a GCC
6929 builtin and then its argument prototype would still apply. */
6933 char gethostbyname ();
6937 return gethostbyname ();
6942 for ac_lib in '' nsl; do
6943 if test -z "$ac_lib"; then
6944 ac_res="none required"
6947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6949 if ac_fn_c_try_link "$LINENO"; then :
6950 ac_cv_search_gethostbyname=$ac_res
6952 rm -f core conftest.err conftest.$ac_objext \
6954 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6958 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6961 ac_cv_search_gethostbyname=no
6964 LIBS=$ac_func_search_save_LIBS
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6967 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6968 ac_res=$ac_cv_search_gethostbyname
6969 if test "$ac_res" != no; then :
6970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6975 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6977 $as_echo_n "checking for library containing socketpair... " >&6; }
6978 if test "${ac_cv_search_socketpair+set}" = set; then :
6979 $as_echo_n "(cached) " >&6
6981 ac_func_search_save_LIBS=$LIBS
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6985 /* Override any GCC internal prototype to avoid an error.
6986 Use char because int might match the return type of a GCC
6987 builtin and then its argument prototype would still apply. */
6995 return socketpair ();
7000 for ac_lib in '' socket; do
7001 if test -z "$ac_lib"; then
7002 ac_res="none required"
7005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7007 if ac_fn_c_try_link "$LINENO"; then :
7008 ac_cv_search_socketpair=$ac_res
7010 rm -f core conftest.err conftest.$ac_objext \
7012 if test "${ac_cv_search_socketpair+set}" = set; then :
7016 if test "${ac_cv_search_socketpair+set}" = set; then :
7019 ac_cv_search_socketpair=no
7022 LIBS=$ac_func_search_save_LIBS
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7025 $as_echo "$ac_cv_search_socketpair" >&6; }
7026 ac_res=$ac_cv_search_socketpair
7027 if test "$ac_res" != no; then :
7028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7033 # Link in zlib if we can. This allows us to read compressed debug sections.
7035 # Use the system's zlib library.
7036 zlibdir="-L\$(top_builddir)/../zlib"
7037 zlibinc="-I\$(top_srcdir)/../zlib"
7039 # Check whether --with-system-zlib was given.
7040 if test "${with_system_zlib+set}" = set; then :
7041 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7052 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7054 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7055 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7056 $as_echo_n "(cached) " >&6
7058 ac_func_search_save_LIBS=$LIBS
7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7062 /* Override any GCC internal prototype to avoid an error.
7063 Use char because int might match the return type of a GCC
7064 builtin and then its argument prototype would still apply. */
7068 char kinfo_getvmmap ();
7072 return kinfo_getvmmap ();
7077 for ac_lib in '' util; do
7078 if test -z "$ac_lib"; then
7079 ac_res="none required"
7082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7084 if ac_fn_c_try_link "$LINENO"; then :
7085 ac_cv_search_kinfo_getvmmap=$ac_res
7087 rm -f core conftest.err conftest.$ac_objext \
7089 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7093 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7096 ac_cv_search_kinfo_getvmmap=no
7099 LIBS=$ac_func_search_save_LIBS
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7102 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7103 ac_res=$ac_cv_search_kinfo_getvmmap
7104 if test "$ac_res" != no; then :
7105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7107 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7113 if test "X$prefix" = "XNONE"; then
7114 acl_final_prefix="$ac_default_prefix"
7116 acl_final_prefix="$prefix"
7118 if test "X$exec_prefix" = "XNONE"; then
7119 acl_final_exec_prefix='${prefix}'
7121 acl_final_exec_prefix="$exec_prefix"
7123 acl_save_prefix="$prefix"
7124 prefix="$acl_final_prefix"
7125 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7126 prefix="$acl_save_prefix"
7129 # Check whether --with-gnu-ld was given.
7130 if test "${with_gnu_ld+set}" = set; then :
7131 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7136 # Prepare PATH_SEPARATOR.
7137 # The user is always right.
7138 if test "${PATH_SEPARATOR+set}" != set; then
7139 echo "#! /bin/sh" >conf$$.sh
7140 echo "exit 0" >>conf$$.sh
7142 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7150 if test "$GCC" = yes; then
7151 # Check if gcc -print-prog-name=ld gives a path.
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7153 $as_echo_n "checking for ld used by GCC... " >&6; }
7156 # gcc leaves a trailing carriage return which upsets mingw
7157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7162 # Accept absolute paths.
7163 [\\/]* | [A-Za-z]:[\\/]*)
7164 re_direlt='/[^/][^/]*/\.\./'
7165 # Canonicalize the path of ld
7166 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7167 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7168 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7170 test -z "$LD" && LD="$ac_prog"
7173 # If it fails, then pretend we aren't using GCC.
7177 # If it is relative, then search for the first ld in PATH.
7181 elif test "$with_gnu_ld" = yes; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7183 $as_echo_n "checking for GNU ld... " >&6; }
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7186 $as_echo_n "checking for non-GNU ld... " >&6; }
7188 if test "${acl_cv_path_LD+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7191 if test -z "$LD"; then
7192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7193 for ac_dir in $PATH; do
7194 test -z "$ac_dir" && ac_dir=.
7195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7196 acl_cv_path_LD="$ac_dir/$ac_prog"
7197 # Check to see if the program is GNU ld. I'd rather use --version,
7198 # but apparently some GNU ld's only accept -v.
7199 # Break only if it was the GNU/non-GNU ld that we prefer.
7200 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7201 test "$with_gnu_ld" != no && break
7203 test "$with_gnu_ld" != yes && break
7209 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7213 LD="$acl_cv_path_LD"
7214 if test -n "$LD"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7216 $as_echo "$LD" >&6; }
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7221 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7223 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7224 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7225 $as_echo_n "(cached) " >&6
7227 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7228 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7229 acl_cv_prog_gnu_ld=yes
7231 acl_cv_prog_gnu_ld=no
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7235 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7236 with_gnu_ld=$acl_cv_prog_gnu_ld
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7241 $as_echo_n "checking for shared library run path origin... " >&6; }
7242 if test "${acl_cv_rpath+set}" = set; then :
7243 $as_echo_n "(cached) " >&6
7246 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7247 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7254 $as_echo "$acl_cv_rpath" >&6; }
7256 libext="$acl_cv_libext"
7257 shlibext="$acl_cv_shlibext"
7258 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7259 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7260 hardcode_direct="$acl_cv_hardcode_direct"
7261 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7262 # Check whether --enable-rpath was given.
7263 if test "${enable_rpath+set}" = set; then :
7264 enableval=$enable_rpath; :
7278 acl_save_prefix="$prefix"
7279 prefix="$acl_final_prefix"
7280 acl_save_exec_prefix="$exec_prefix"
7281 exec_prefix="$acl_final_exec_prefix"
7283 eval additional_includedir=\"$includedir\"
7284 eval additional_libdir=\"$libdir\"
7286 exec_prefix="$acl_save_exec_prefix"
7287 prefix="$acl_save_prefix"
7290 # Check whether --with-libiconv-prefix was given.
7291 if test "${with_libiconv_prefix+set}" = set; then :
7292 withval=$with_libiconv_prefix;
7293 if test "X$withval" = "Xno"; then
7296 if test "X$withval" = "X"; then
7298 acl_save_prefix="$prefix"
7299 prefix="$acl_final_prefix"
7300 acl_save_exec_prefix="$exec_prefix"
7301 exec_prefix="$acl_final_exec_prefix"
7303 eval additional_includedir=\"$includedir\"
7304 eval additional_libdir=\"$libdir\"
7306 exec_prefix="$acl_save_exec_prefix"
7307 prefix="$acl_save_prefix"
7310 additional_includedir="$withval/include"
7311 additional_libdir="$withval/lib"
7322 names_already_handled=
7323 names_next_round='iconv '
7324 while test -n "$names_next_round"; do
7325 names_this_round="$names_next_round"
7327 for name in $names_this_round; do
7329 for n in $names_already_handled; do
7330 if test "$n" = "$name"; then
7335 if test -z "$already_handled"; then
7336 names_already_handled="$names_already_handled $name"
7337 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7338 eval value=\"\$HAVE_LIB$uppername\"
7339 if test -n "$value"; then
7340 if test "$value" = yes; then
7341 eval value=\"\$LIB$uppername\"
7342 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7343 eval value=\"\$LTLIB$uppername\"
7344 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7353 if test $use_additional = yes; then
7354 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7355 found_dir="$additional_libdir"
7356 found_so="$additional_libdir/lib$name.$shlibext"
7357 if test -f "$additional_libdir/lib$name.la"; then
7358 found_la="$additional_libdir/lib$name.la"
7361 if test -f "$additional_libdir/lib$name.$libext"; then
7362 found_dir="$additional_libdir"
7363 found_a="$additional_libdir/lib$name.$libext"
7364 if test -f "$additional_libdir/lib$name.la"; then
7365 found_la="$additional_libdir/lib$name.la"
7370 if test "X$found_dir" = "X"; then
7371 for x in $LDFLAGS $LTLIBICONV; do
7373 acl_save_prefix="$prefix"
7374 prefix="$acl_final_prefix"
7375 acl_save_exec_prefix="$exec_prefix"
7376 exec_prefix="$acl_final_exec_prefix"
7378 exec_prefix="$acl_save_exec_prefix"
7379 prefix="$acl_save_prefix"
7383 dir=`echo "X$x" | sed -e 's/^X-L//'`
7384 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7386 found_so="$dir/lib$name.$shlibext"
7387 if test -f "$dir/lib$name.la"; then
7388 found_la="$dir/lib$name.la"
7391 if test -f "$dir/lib$name.$libext"; then
7393 found_a="$dir/lib$name.$libext"
7394 if test -f "$dir/lib$name.la"; then
7395 found_la="$dir/lib$name.la"
7401 if test "X$found_dir" != "X"; then
7406 if test "X$found_dir" != "X"; then
7407 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7408 if test "X$found_so" != "X"; then
7409 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7410 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7413 for x in $ltrpathdirs; do
7414 if test "X$x" = "X$found_dir"; then
7419 if test -z "$haveit"; then
7420 ltrpathdirs="$ltrpathdirs $found_dir"
7422 if test "$hardcode_direct" = yes; then
7423 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7425 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7426 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7428 for x in $rpathdirs; do
7429 if test "X$x" = "X$found_dir"; then
7434 if test -z "$haveit"; then
7435 rpathdirs="$rpathdirs $found_dir"
7439 for x in $LDFLAGS $LIBICONV; do
7441 acl_save_prefix="$prefix"
7442 prefix="$acl_final_prefix"
7443 acl_save_exec_prefix="$exec_prefix"
7444 exec_prefix="$acl_final_exec_prefix"
7446 exec_prefix="$acl_save_exec_prefix"
7447 prefix="$acl_save_prefix"
7449 if test "X$x" = "X-L$found_dir"; then
7454 if test -z "$haveit"; then
7455 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7457 if test "$hardcode_minus_L" != no; then
7458 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7460 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7466 if test "X$found_a" != "X"; then
7467 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7469 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7472 additional_includedir=
7473 case "$found_dir" in
7475 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7476 additional_includedir="$basedir/include"
7479 if test "X$additional_includedir" != "X"; then
7480 if test "X$additional_includedir" != "X/usr/include"; then
7482 if test "X$additional_includedir" = "X/usr/local/include"; then
7483 if test -n "$GCC"; then
7485 linux*) haveit=yes;;
7489 if test -z "$haveit"; then
7490 for x in $CPPFLAGS $INCICONV; do
7492 acl_save_prefix="$prefix"
7493 prefix="$acl_final_prefix"
7494 acl_save_exec_prefix="$exec_prefix"
7495 exec_prefix="$acl_final_exec_prefix"
7497 exec_prefix="$acl_save_exec_prefix"
7498 prefix="$acl_save_prefix"
7500 if test "X$x" = "X-I$additional_includedir"; then
7505 if test -z "$haveit"; then
7506 if test -d "$additional_includedir"; then
7507 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7513 if test -n "$found_la"; then
7514 save_libdir="$libdir"
7516 */* | *\\*) . "$found_la" ;;
7517 *) . "./$found_la" ;;
7519 libdir="$save_libdir"
7520 for dep in $dependency_libs; do
7523 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7524 if test "X$additional_libdir" != "X/usr/lib"; then
7526 if test "X$additional_libdir" = "X/usr/local/lib"; then
7527 if test -n "$GCC"; then
7529 linux*) haveit=yes;;
7533 if test -z "$haveit"; then
7535 for x in $LDFLAGS $LIBICONV; do
7537 acl_save_prefix="$prefix"
7538 prefix="$acl_final_prefix"
7539 acl_save_exec_prefix="$exec_prefix"
7540 exec_prefix="$acl_final_exec_prefix"
7542 exec_prefix="$acl_save_exec_prefix"
7543 prefix="$acl_save_prefix"
7545 if test "X$x" = "X-L$additional_libdir"; then
7550 if test -z "$haveit"; then
7551 if test -d "$additional_libdir"; then
7552 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7556 for x in $LDFLAGS $LTLIBICONV; do
7558 acl_save_prefix="$prefix"
7559 prefix="$acl_final_prefix"
7560 acl_save_exec_prefix="$exec_prefix"
7561 exec_prefix="$acl_final_exec_prefix"
7563 exec_prefix="$acl_save_exec_prefix"
7564 prefix="$acl_save_prefix"
7566 if test "X$x" = "X-L$additional_libdir"; then
7571 if test -z "$haveit"; then
7572 if test -d "$additional_libdir"; then
7573 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7580 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7581 if test "$enable_rpath" != no; then
7583 for x in $rpathdirs; do
7584 if test "X$x" = "X$dir"; then
7589 if test -z "$haveit"; then
7590 rpathdirs="$rpathdirs $dir"
7593 for x in $ltrpathdirs; do
7594 if test "X$x" = "X$dir"; then
7599 if test -z "$haveit"; then
7600 ltrpathdirs="$ltrpathdirs $dir"
7605 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7608 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7611 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7612 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7618 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7619 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7625 if test "X$rpathdirs" != "X"; then
7626 if test -n "$hardcode_libdir_separator"; then
7628 for found_dir in $rpathdirs; do
7629 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7631 acl_save_libdir="$libdir"
7633 eval flag=\"$hardcode_libdir_flag_spec\"
7634 libdir="$acl_save_libdir"
7635 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7637 for found_dir in $rpathdirs; do
7638 acl_save_libdir="$libdir"
7640 eval flag=\"$hardcode_libdir_flag_spec\"
7641 libdir="$acl_save_libdir"
7642 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7646 if test "X$ltrpathdirs" != "X"; then
7647 for found_dir in $ltrpathdirs; do
7648 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7659 $as_echo_n "checking for iconv... " >&6; }
7660 if test "${am_cv_func_iconv+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7664 am_cv_func_iconv="no, consider installing GNU libiconv"
7666 am_save_CPPFLAGS="$CPPFLAGS"
7667 CPPFLAGS="$CPPFLAGS $INCICONV"
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7675 iconv_t cd = iconv_open("","");
7676 iconv(cd,NULL,NULL,NULL,NULL);
7682 if ac_fn_c_try_link "$LINENO"; then :
7683 am_cv_func_iconv=yes
7685 rm -f core conftest.err conftest.$ac_objext \
7686 conftest$ac_exeext conftest.$ac_ext
7687 CPPFLAGS="$am_save_CPPFLAGS"
7689 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
7690 for _libs in .libs _libs; do
7691 am_save_CPPFLAGS="$CPPFLAGS"
7692 am_save_LIBS="$LIBS"
7693 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
7694 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7702 iconv_t cd = iconv_open("","");
7703 iconv(cd,NULL,NULL,NULL,NULL);
7709 if ac_fn_c_try_link "$LINENO"; then :
7710 INCICONV="-I../libiconv/include"
7711 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
7712 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
7714 am_cv_func_iconv=yes
7716 rm -f core conftest.err conftest.$ac_objext \
7717 conftest$ac_exeext conftest.$ac_ext
7718 CPPFLAGS="$am_save_CPPFLAGS"
7719 LIBS="$am_save_LIBS"
7720 if test "$am_cv_func_iconv" = "yes"; then
7726 if test "$am_cv_func_iconv" != yes; then
7727 am_save_CPPFLAGS="$CPPFLAGS"
7728 am_save_LIBS="$LIBS"
7729 CPPFLAGS="$LIBS $INCICONV"
7730 LIBS="$LIBS $LIBICONV"
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7738 iconv_t cd = iconv_open("","");
7739 iconv(cd,NULL,NULL,NULL,NULL);
7745 if ac_fn_c_try_link "$LINENO"; then :
7747 am_cv_func_iconv=yes
7749 rm -f core conftest.err conftest.$ac_objext \
7750 conftest$ac_exeext conftest.$ac_ext
7751 CPPFLAGS="$am_save_CPPFLAGS"
7752 LIBS="$am_save_LIBS"
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7757 $as_echo "$am_cv_func_iconv" >&6; }
7758 if test "$am_cv_func_iconv" = yes; then
7760 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7763 if test "$am_cv_lib_iconv" = yes; then
7765 for element in $INCICONV; do
7767 for x in $CPPFLAGS; do
7769 acl_save_prefix="$prefix"
7770 prefix="$acl_final_prefix"
7771 acl_save_exec_prefix="$exec_prefix"
7772 exec_prefix="$acl_final_exec_prefix"
7774 exec_prefix="$acl_save_exec_prefix"
7775 prefix="$acl_save_prefix"
7777 if test "X$x" = "X$element"; then
7782 if test -z "$haveit"; then
7783 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7788 $as_echo_n "checking how to link with libiconv... " >&6; }
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7790 $as_echo "$LIBICONV" >&6; }
7798 if test "$am_cv_func_iconv" = yes; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7800 $as_echo_n "checking for iconv declaration... " >&6; }
7801 if test "${am_cv_proto_iconv+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7814 #if defined(__STDC__) || defined(__cplusplus)
7815 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7828 if ac_fn_c_try_compile "$LINENO"; then :
7829 am_cv_proto_iconv_arg1=""
7831 am_cv_proto_iconv_arg1="const"
7833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834 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);"
7837 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7839 }$am_cv_proto_iconv" >&5
7841 }$am_cv_proto_iconv" >&6; }
7843 cat >>confdefs.h <<_ACEOF
7844 #define ICONV_CONST $am_cv_proto_iconv_arg1
7850 # GDB may fork/exec the iconv program to get the list of supported character
7851 # sets. Allow the user to specify where to find it.
7852 # There are several factors affecting the choice of option name:
7853 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7854 # the build-time location of libiconv files.
7855 # - The program we need to find is iconv, which comes with glibc. The user
7856 # doesn't necessarily have libiconv installed. Therefore naming this
7857 # --with-libiconv-foo feels wrong.
7858 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7859 # defined to work on directories not files (though it really doesn't know
7861 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7862 # with --with-libiconv-prefix.
7863 # Putting these together is why the option name is --with-iconv-bin.
7866 # Check whether --with-iconv-bin was given.
7867 if test "${with_iconv_bin+set}" = set; then :
7868 withval=$with_iconv_bin; iconv_bin="${withval}"
7870 cat >>confdefs.h <<_ACEOF
7871 #define ICONV_BIN "${iconv_bin}"
7875 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7876 if test "x$prefix" = xNONE; then
7877 test_prefix=/usr/local
7882 test_prefix=$exec_prefix
7885 case ${iconv_bin} in
7886 "${test_prefix}"|"${test_prefix}/"*|\
7887 '${exec_prefix}'|'${exec_prefix}/'*)
7892 cat >>confdefs.h <<_ACEOF
7893 #define ICONV_BIN_RELOCATABLE $value
7901 # For the TUI, we need enhanced curses functionality.
7902 if test x"$enable_tui" != xno; then
7907 if test x"$prefer_curses" = xyes; then
7908 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7909 # curses library because the latter might not provide all the
7910 # functionality we need. However, this leads to problems on systems
7911 # where the linker searches /usr/local/lib, but the compiler doesn't
7912 # search /usr/local/include, if ncurses is installed in /usr/local. A
7913 # default installation of ncurses on alpha*-dec-osf* will lead to such
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7916 $as_echo_n "checking for library containing waddstr... " >&6; }
7917 if test "${ac_cv_search_waddstr+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7920 ac_func_search_save_LIBS=$LIBS
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7924 /* Override any GCC internal prototype to avoid an error.
7925 Use char because int might match the return type of a GCC
7926 builtin and then its argument prototype would still apply. */
7939 for ac_lib in '' ncurses cursesX curses; do
7940 if test -z "$ac_lib"; then
7941 ac_res="none required"
7944 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7946 if ac_fn_c_try_link "$LINENO"; then :
7947 ac_cv_search_waddstr=$ac_res
7949 rm -f core conftest.err conftest.$ac_objext \
7951 if test "${ac_cv_search_waddstr+set}" = set; then :
7955 if test "${ac_cv_search_waddstr+set}" = set; then :
7958 ac_cv_search_waddstr=no
7961 LIBS=$ac_func_search_save_LIBS
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7964 $as_echo "$ac_cv_search_waddstr" >&6; }
7965 ac_res=$ac_cv_search_waddstr
7966 if test "$ac_res" != no; then :
7967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7972 if test "$ac_cv_search_waddstr" != no; then
7977 # Check whether we should enable the TUI, but only do so if we really
7979 if test x"$enable_tui" != xno; then
7980 if test -d $srcdir/tui; then
7981 if test "$curses_found" != no; then
7982 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7983 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7984 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7985 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7987 if test x"$enable_tui" = xyes; then
7988 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7991 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7997 # Since GDB uses Readline, we need termcap functionality. In many
7998 # cases this will be provided by the curses library, but some systems
7999 # have a seperate termcap library, or no curses library at all.
8003 if test -d $srcdir/libtermcap; then
8004 LIBS="../libtermcap/libtermcap.a $LIBS"
8005 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8008 ac_cv_search_tgetent="none required"
8012 # These are the libraries checked by Readline.
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8014 $as_echo_n "checking for library containing tgetent... " >&6; }
8015 if test "${ac_cv_search_tgetent+set}" = set; then :
8016 $as_echo_n "(cached) " >&6
8018 ac_func_search_save_LIBS=$LIBS
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8022 /* Override any GCC internal prototype to avoid an error.
8023 Use char because int might match the return type of a GCC
8024 builtin and then its argument prototype would still apply. */
8037 for ac_lib in '' termcap tinfo curses ncurses; do
8038 if test -z "$ac_lib"; then
8039 ac_res="none required"
8042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8044 if ac_fn_c_try_link "$LINENO"; then :
8045 ac_cv_search_tgetent=$ac_res
8047 rm -f core conftest.err conftest.$ac_objext \
8049 if test "${ac_cv_search_tgetent+set}" = set; then :
8053 if test "${ac_cv_search_tgetent+set}" = set; then :
8056 ac_cv_search_tgetent=no
8059 LIBS=$ac_func_search_save_LIBS
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8062 $as_echo "$ac_cv_search_tgetent" >&6; }
8063 ac_res=$ac_cv_search_tgetent
8064 if test "$ac_res" != no; then :
8065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8070 if test "$ac_cv_search_tgetent" = no; then
8071 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
8075 # Check whether --with-system-readline was given.
8076 if test "${with_system_readline+set}" = set; then :
8077 withval=$with_system_readline;
8081 if test "$with_system_readline" = yes; then
8085 READLINE_TEXI_INCFLAG=
8087 READLINE='$(READLINE_DIR)/libreadline.a'
8088 READLINE_DEPS='$(READLINE)'
8089 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
8090 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
8097 # Generate jit-reader.h
8099 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
8102 # The cast to long int works around a bug in the HP C Compiler
8103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8105 # This bug is HP SR number 8606223364.
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
8107 $as_echo_n "checking size of unsigned long long... " >&6; }
8108 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8111 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
8114 if test "$ac_cv_type_unsigned_long_long" = yes; then
8115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8117 { as_fn_set_status 77
8118 as_fn_error "cannot compute sizeof (unsigned long long)
8119 See \`config.log' for more details." "$LINENO" 5; }; }
8121 ac_cv_sizeof_unsigned_long_long=0
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
8127 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
8131 cat >>confdefs.h <<_ACEOF
8132 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8136 # The cast to long int works around a bug in the HP C Compiler
8137 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8138 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8139 # This bug is HP SR number 8606223364.
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8141 $as_echo_n "checking size of unsigned long... " >&6; }
8142 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
8143 $as_echo_n "(cached) " >&6
8145 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8148 if test "$ac_cv_type_unsigned_long" = yes; then
8149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8151 { as_fn_set_status 77
8152 as_fn_error "cannot compute sizeof (unsigned long)
8153 See \`config.log' for more details." "$LINENO" 5; }; }
8155 ac_cv_sizeof_unsigned_long=0
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
8161 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8165 cat >>confdefs.h <<_ACEOF
8166 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8170 # The cast to long int works around a bug in the HP C Compiler
8171 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8172 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8173 # This bug is HP SR number 8606223364.
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
8175 $as_echo_n "checking size of unsigned __int128... " >&6; }
8176 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8179 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
8182 if test "$ac_cv_type_unsigned___int128" = yes; then
8183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8185 { as_fn_set_status 77
8186 as_fn_error "cannot compute sizeof (unsigned __int128)
8187 See \`config.log' for more details." "$LINENO" 5; }; }
8189 ac_cv_sizeof_unsigned___int128=0
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
8195 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
8199 cat >>confdefs.h <<_ACEOF
8200 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
8205 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
8206 TARGET_PTR="unsigned long"
8207 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
8208 TARGET_PTR="unsigned long long"
8209 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
8210 TARGET_PTR="unsigned __int128"
8212 TARGET_PTR="unsigned long"
8216 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8220 $as_echo_n "checking for library containing dlopen... " >&6; }
8221 if test "${ac_cv_search_dlopen+set}" = set; then :
8222 $as_echo_n "(cached) " >&6
8224 ac_func_search_save_LIBS=$LIBS
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8228 /* Override any GCC internal prototype to avoid an error.
8229 Use char because int might match the return type of a GCC
8230 builtin and then its argument prototype would still apply. */
8243 for ac_lib in '' dl; do
8244 if test -z "$ac_lib"; then
8245 ac_res="none required"
8248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8250 if ac_fn_c_try_link "$LINENO"; then :
8251 ac_cv_search_dlopen=$ac_res
8253 rm -f core conftest.err conftest.$ac_objext \
8255 if test "${ac_cv_search_dlopen+set}" = set; then :
8259 if test "${ac_cv_search_dlopen+set}" = set; then :
8262 ac_cv_search_dlopen=no
8265 LIBS=$ac_func_search_save_LIBS
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8268 $as_echo "$ac_cv_search_dlopen" >&6; }
8269 ac_res=$ac_cv_search_dlopen
8270 if test "$ac_res" != no; then :
8271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8278 # Check whether --with-jit-reader-dir was given.
8279 if test "${with_jit_reader_dir+set}" = set; then :
8280 withval=$with_jit_reader_dir;
8281 JIT_READER_DIR=$withval
8283 JIT_READER_DIR=${libdir}/gdb
8287 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8289 ac_define_dir=`eval echo $JIT_READER_DIR`
8290 ac_define_dir=`eval echo $ac_define_dir`
8292 cat >>confdefs.h <<_ACEOF
8293 #define JIT_READER_DIR "$ac_define_dir"
8299 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8300 if test "x$prefix" = xNONE; then
8301 test_prefix=/usr/local
8306 test_prefix=$exec_prefix
8309 case ${ac_define_dir} in
8310 "${test_prefix}"|"${test_prefix}/"*|\
8311 '${exec_prefix}'|'${exec_prefix}/'*)
8316 cat >>confdefs.h <<_ACEOF
8317 #define JIT_READER_DIR_RELOCATABLE $value
8324 # Check whether --with-expat was given.
8325 if test "${with_expat+set}" = set; then :
8326 withval=$with_expat;
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8332 $as_echo_n "checking whether to use expat... " >&6; }
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8334 $as_echo "$with_expat" >&6; }
8336 if test "${with_expat}" = no; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8338 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8351 acl_save_prefix="$prefix"
8352 prefix="$acl_final_prefix"
8353 acl_save_exec_prefix="$exec_prefix"
8354 exec_prefix="$acl_final_exec_prefix"
8356 eval additional_includedir=\"$includedir\"
8357 eval additional_libdir=\"$libdir\"
8359 exec_prefix="$acl_save_exec_prefix"
8360 prefix="$acl_save_prefix"
8363 # Check whether --with-libexpat-prefix was given.
8364 if test "${with_libexpat_prefix+set}" = set; then :
8365 withval=$with_libexpat_prefix;
8366 if test "X$withval" = "Xno"; then
8369 if test "X$withval" = "X"; then
8371 acl_save_prefix="$prefix"
8372 prefix="$acl_final_prefix"
8373 acl_save_exec_prefix="$exec_prefix"
8374 exec_prefix="$acl_final_exec_prefix"
8376 eval additional_includedir=\"$includedir\"
8377 eval additional_libdir=\"$libdir\"
8379 exec_prefix="$acl_save_exec_prefix"
8380 prefix="$acl_save_prefix"
8383 additional_includedir="$withval/include"
8384 additional_libdir="$withval/lib"
8395 names_already_handled=
8396 names_next_round='expat '
8397 while test -n "$names_next_round"; do
8398 names_this_round="$names_next_round"
8400 for name in $names_this_round; do
8402 for n in $names_already_handled; do
8403 if test "$n" = "$name"; then
8408 if test -z "$already_handled"; then
8409 names_already_handled="$names_already_handled $name"
8410 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8411 eval value=\"\$HAVE_LIB$uppername\"
8412 if test -n "$value"; then
8413 if test "$value" = yes; then
8414 eval value=\"\$LIB$uppername\"
8415 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
8416 eval value=\"\$LTLIB$uppername\"
8417 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8426 if test $use_additional = yes; then
8427 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8428 found_dir="$additional_libdir"
8429 found_so="$additional_libdir/lib$name.$shlibext"
8430 if test -f "$additional_libdir/lib$name.la"; then
8431 found_la="$additional_libdir/lib$name.la"
8434 if test -f "$additional_libdir/lib$name.$libext"; then
8435 found_dir="$additional_libdir"
8436 found_a="$additional_libdir/lib$name.$libext"
8437 if test -f "$additional_libdir/lib$name.la"; then
8438 found_la="$additional_libdir/lib$name.la"
8443 if test "X$found_dir" = "X"; then
8444 for x in $LDFLAGS $LTLIBEXPAT; do
8446 acl_save_prefix="$prefix"
8447 prefix="$acl_final_prefix"
8448 acl_save_exec_prefix="$exec_prefix"
8449 exec_prefix="$acl_final_exec_prefix"
8451 exec_prefix="$acl_save_exec_prefix"
8452 prefix="$acl_save_prefix"
8456 dir=`echo "X$x" | sed -e 's/^X-L//'`
8457 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8459 found_so="$dir/lib$name.$shlibext"
8460 if test -f "$dir/lib$name.la"; then
8461 found_la="$dir/lib$name.la"
8464 if test -f "$dir/lib$name.$libext"; then
8466 found_a="$dir/lib$name.$libext"
8467 if test -f "$dir/lib$name.la"; then
8468 found_la="$dir/lib$name.la"
8474 if test "X$found_dir" != "X"; then
8479 if test "X$found_dir" != "X"; then
8480 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8481 if test "X$found_so" != "X"; then
8482 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8483 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8486 for x in $ltrpathdirs; do
8487 if test "X$x" = "X$found_dir"; then
8492 if test -z "$haveit"; then
8493 ltrpathdirs="$ltrpathdirs $found_dir"
8495 if test "$hardcode_direct" = yes; then
8496 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8498 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8499 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8501 for x in $rpathdirs; do
8502 if test "X$x" = "X$found_dir"; then
8507 if test -z "$haveit"; then
8508 rpathdirs="$rpathdirs $found_dir"
8512 for x in $LDFLAGS $LIBEXPAT; do
8514 acl_save_prefix="$prefix"
8515 prefix="$acl_final_prefix"
8516 acl_save_exec_prefix="$exec_prefix"
8517 exec_prefix="$acl_final_exec_prefix"
8519 exec_prefix="$acl_save_exec_prefix"
8520 prefix="$acl_save_prefix"
8522 if test "X$x" = "X-L$found_dir"; then
8527 if test -z "$haveit"; then
8528 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8530 if test "$hardcode_minus_L" != no; then
8531 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8533 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8539 if test "X$found_a" != "X"; then
8540 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8542 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8545 additional_includedir=
8546 case "$found_dir" in
8548 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8549 additional_includedir="$basedir/include"
8552 if test "X$additional_includedir" != "X"; then
8553 if test "X$additional_includedir" != "X/usr/include"; then
8555 if test "X$additional_includedir" = "X/usr/local/include"; then
8556 if test -n "$GCC"; then
8558 linux*) haveit=yes;;
8562 if test -z "$haveit"; then
8563 for x in $CPPFLAGS $INCEXPAT; do
8565 acl_save_prefix="$prefix"
8566 prefix="$acl_final_prefix"
8567 acl_save_exec_prefix="$exec_prefix"
8568 exec_prefix="$acl_final_exec_prefix"
8570 exec_prefix="$acl_save_exec_prefix"
8571 prefix="$acl_save_prefix"
8573 if test "X$x" = "X-I$additional_includedir"; then
8578 if test -z "$haveit"; then
8579 if test -d "$additional_includedir"; then
8580 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8586 if test -n "$found_la"; then
8587 save_libdir="$libdir"
8589 */* | *\\*) . "$found_la" ;;
8590 *) . "./$found_la" ;;
8592 libdir="$save_libdir"
8593 for dep in $dependency_libs; do
8596 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8597 if test "X$additional_libdir" != "X/usr/lib"; then
8599 if test "X$additional_libdir" = "X/usr/local/lib"; then
8600 if test -n "$GCC"; then
8602 linux*) haveit=yes;;
8606 if test -z "$haveit"; then
8608 for x in $LDFLAGS $LIBEXPAT; do
8610 acl_save_prefix="$prefix"
8611 prefix="$acl_final_prefix"
8612 acl_save_exec_prefix="$exec_prefix"
8613 exec_prefix="$acl_final_exec_prefix"
8615 exec_prefix="$acl_save_exec_prefix"
8616 prefix="$acl_save_prefix"
8618 if test "X$x" = "X-L$additional_libdir"; then
8623 if test -z "$haveit"; then
8624 if test -d "$additional_libdir"; then
8625 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8629 for x in $LDFLAGS $LTLIBEXPAT; do
8631 acl_save_prefix="$prefix"
8632 prefix="$acl_final_prefix"
8633 acl_save_exec_prefix="$exec_prefix"
8634 exec_prefix="$acl_final_exec_prefix"
8636 exec_prefix="$acl_save_exec_prefix"
8637 prefix="$acl_save_prefix"
8639 if test "X$x" = "X-L$additional_libdir"; then
8644 if test -z "$haveit"; then
8645 if test -d "$additional_libdir"; then
8646 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8653 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8654 if test "$enable_rpath" != no; then
8656 for x in $rpathdirs; do
8657 if test "X$x" = "X$dir"; then
8662 if test -z "$haveit"; then
8663 rpathdirs="$rpathdirs $dir"
8666 for x in $ltrpathdirs; do
8667 if test "X$x" = "X$dir"; then
8672 if test -z "$haveit"; then
8673 ltrpathdirs="$ltrpathdirs $dir"
8678 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8681 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8684 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8685 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8691 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8692 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8698 if test "X$rpathdirs" != "X"; then
8699 if test -n "$hardcode_libdir_separator"; then
8701 for found_dir in $rpathdirs; do
8702 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8704 acl_save_libdir="$libdir"
8706 eval flag=\"$hardcode_libdir_flag_spec\"
8707 libdir="$acl_save_libdir"
8708 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8710 for found_dir in $rpathdirs; do
8711 acl_save_libdir="$libdir"
8713 eval flag=\"$hardcode_libdir_flag_spec\"
8714 libdir="$acl_save_libdir"
8715 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8719 if test "X$ltrpathdirs" != "X"; then
8720 for found_dir in $ltrpathdirs; do
8721 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8726 ac_save_CPPFLAGS="$CPPFLAGS"
8728 for element in $INCEXPAT; do
8730 for x in $CPPFLAGS; do
8732 acl_save_prefix="$prefix"
8733 prefix="$acl_final_prefix"
8734 acl_save_exec_prefix="$exec_prefix"
8735 exec_prefix="$acl_final_exec_prefix"
8737 exec_prefix="$acl_save_exec_prefix"
8738 prefix="$acl_save_prefix"
8740 if test "X$x" = "X$element"; then
8745 if test -z "$haveit"; then
8746 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8752 $as_echo_n "checking for libexpat... " >&6; }
8753 if test "${ac_cv_libexpat+set}" = set; then :
8754 $as_echo_n "(cached) " >&6
8757 ac_save_LIBS="$LIBS"
8758 LIBS="$LIBS $LIBEXPAT"
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8765 XML_Parser p = XML_ParserCreate (0);
8770 if ac_fn_c_try_link "$LINENO"; then :
8775 rm -f core conftest.err conftest.$ac_objext \
8776 conftest$ac_exeext conftest.$ac_ext
8777 LIBS="$ac_save_LIBS"
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8781 $as_echo "$ac_cv_libexpat" >&6; }
8782 if test "$ac_cv_libexpat" = yes; then
8785 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8788 $as_echo_n "checking how to link with libexpat... " >&6; }
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8790 $as_echo "$LIBEXPAT" >&6; }
8793 CPPFLAGS="$ac_save_CPPFLAGS"
8803 if test "$HAVE_LIBEXPAT" != yes; then
8804 if test "$with_expat" = yes; then
8805 as_fn_error "expat is missing or unusable" "$LINENO" 5
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8808 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8812 LIBS="$LIBS $LIBEXPAT"
8813 for ac_func in XML_StopParser
8815 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8816 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
8817 cat >>confdefs.h <<_ACEOF
8818 #define HAVE_XML_STOPPARSER 1
8828 # --------------------- #
8829 # Check for libpython. #
8830 # --------------------- #
8837 # Check whether --with-python was given.
8838 if test "${with_python+set}" = set; then :
8839 withval=$with_python;
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8845 $as_echo_n "checking whether to use python... " >&6; }
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8847 $as_echo "$with_python" >&6; }
8849 if test "${with_python}" = no; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8851 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8854 case "${with_python}" in
8856 if test -d ${with_python}; then
8857 # Assume the python binary is ${with_python}/bin/python.
8858 python_prog="${with_python}/bin/python"
8860 # If python does not exit ${with_python}/bin, then try in
8861 # ${with_python}. On Windows/MinGW, this is where the Python
8863 if test ! -x "${python_prog}"; then
8864 python_prog="${with_python}/python"
8867 if test ! -x "${python_prog}"; then
8868 # Fall back to gdb 7.0/7.1 behaviour.
8870 python_prefix=${with_python}
8872 elif test -x "${with_python}"; then
8873 # While we can't run python compiled for $host (unless host == build),
8874 # the user could write a script that provides the needed information,
8875 # so we support that.
8876 python_prog=${with_python}
8879 as_fn_error "invalid value for --with-python" "$LINENO" 5
8883 # Disallow --with-python=foo/bar.
8884 as_fn_error "invalid value for --with-python" "$LINENO" 5
8887 # The user has either specified auto, yes, or the name of the python
8888 # program assumed to be in $PATH.
8890 case "${with_python}" in
8892 if test ${build} = ${host}; then
8893 # Extract the first word of "python", so it can be a program name with args.
8894 set dummy python; ac_word=$2
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 $as_echo_n "checking for $ac_word... " >&6; }
8897 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8900 case $python_prog_path in
8902 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 test -z "$as_dir" && as_dir=.
8910 for ac_exec_ext in '' $ac_executable_extensions; do
8911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8912 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8920 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8924 python_prog_path=$ac_cv_path_python_prog_path
8925 if test -n "$python_prog_path"; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8927 $as_echo "$python_prog_path" >&6; }
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8934 if test "${python_prog_path}" = missing; then
8937 python_prog=${python_prog_path}
8940 # Not much we can do except assume the cross-compiler will find the
8946 # While we can't run python compiled for $host (unless host == build),
8947 # the user could write a script that provides the needed information,
8948 # so we support that.
8949 python_prog="${with_python}"
8950 # Extract the first word of "${python_prog}", so it can be a program name with args.
8951 set dummy ${python_prog}; ac_word=$2
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8953 $as_echo_n "checking for $ac_word... " >&6; }
8954 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8955 $as_echo_n "(cached) " >&6
8957 case $python_prog_path in
8959 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966 test -z "$as_dir" && as_dir=.
8967 for ac_exec_ext in '' $ac_executable_extensions; do
8968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8969 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8981 python_prog_path=$ac_cv_path_python_prog_path
8982 if test -n "$python_prog_path"; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8984 $as_echo "$python_prog_path" >&6; }
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987 $as_echo "no" >&6; }
8991 if test "${python_prog_path}" = missing; then
8992 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8998 if test "${python_prog}" != missing; then
8999 # We have a python program to use, but it may be too old.
9000 # Don't flag an error for --with-python=auto (the default).
9001 have_python_config=yes
9002 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
9003 if test $? != 0; then
9004 have_python_config=failed
9005 if test "${with_python}" != auto; then
9006 as_fn_error "failure running python-config --includes" "$LINENO" 5
9009 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
9010 if test $? != 0; then
9011 have_python_config=failed
9012 if test "${with_python}" != auto; then
9013 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
9016 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
9017 if test $? != 0; then
9018 have_python_config=failed
9019 if test "${with_python}" != auto; then
9020 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
9024 # We do not have a python executable we can use to determine where
9025 # to find the Python headers and libs. We cannot guess the include
9026 # path from the python_prefix either, because that include path
9027 # depends on the Python version. So, there is nothing much we can
9028 # do except assume that the compiler will be able to find those files.
9031 have_python_config=no
9034 # If we have python-config, only try the configuration it provides.
9035 # Otherwise fallback on the old way of trying different versions of
9039 if test "${have_python_config}" = yes; then
9040 # Determine the Python version by extracting "-lpython<version>"
9041 # part of the python_libs. <version> is usually X.Y with X and Y
9042 # being decimal numbers, but can also be XY (seen on Windows).
9044 # The extraction is performed using sed with a regular expression.
9045 # Initially, the regexp used was using the '?' quantifier to make
9046 # the dot in the version number optional. Unfortunately, this
9047 # does not work with non-GNU versions of sed because, because of
9048 # what looks like a limitation (the '?' quantifier does not work
9049 # with back-references). We work around this limitation by using
9050 # the '*' quantifier instead. It means that, in theory, we might
9051 # match unexpected version strings such as "-lpython2..7", but
9052 # this seems unlikely in practice. And even if that happens,
9053 # an error will be triggered later on, when checking that version
9055 python_version=`echo " ${python_libs} " \
9056 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
9057 case "${python_version}" in
9060 version=${python_version}
9062 new_CPPFLAGS=${python_includes}
9063 new_LIBS=${python_libs}
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9065 $as_echo_n "checking for ${version}... " >&6; }
9066 save_CPPFLAGS=$CPPFLAGS
9068 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9069 LIBS="$LIBS $new_LIBS"
9070 found_usable_python=no
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9082 if ac_fn_c_try_link "$LINENO"; then :
9083 have_libpython=${version}
9084 found_usable_python=yes
9085 PYTHON_CPPFLAGS=$new_CPPFLAGS
9086 PYTHON_LIBS=$new_LIBS
9088 rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090 CPPFLAGS=$save_CPPFLAGS
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9093 $as_echo "${found_usable_python}" >&6; }
9097 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
9100 elif test "${have_python_config}" != failed; then
9101 if test "${have_libpython}" = no; then
9105 new_CPPFLAGS=${python_includes}
9106 new_LIBS="${python_libs} -lpython2.7"
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9108 $as_echo_n "checking for ${version}... " >&6; }
9109 save_CPPFLAGS=$CPPFLAGS
9111 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9112 LIBS="$LIBS $new_LIBS"
9113 found_usable_python=no
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9125 if ac_fn_c_try_link "$LINENO"; then :
9126 have_libpython=${version}
9127 found_usable_python=yes
9128 PYTHON_CPPFLAGS=$new_CPPFLAGS
9129 PYTHON_LIBS=$new_LIBS
9131 rm -f core conftest.err conftest.$ac_objext \
9132 conftest$ac_exeext conftest.$ac_ext
9133 CPPFLAGS=$save_CPPFLAGS
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9136 $as_echo "${found_usable_python}" >&6; }
9139 if test "${have_libpython}" = no; then
9143 new_CPPFLAGS=${python_includes}
9144 new_LIBS="${python_libs} -lpython2.6"
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9146 $as_echo_n "checking for ${version}... " >&6; }
9147 save_CPPFLAGS=$CPPFLAGS
9149 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9150 LIBS="$LIBS $new_LIBS"
9151 found_usable_python=no
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9163 if ac_fn_c_try_link "$LINENO"; then :
9164 have_libpython=${version}
9165 found_usable_python=yes
9166 PYTHON_CPPFLAGS=$new_CPPFLAGS
9167 PYTHON_LIBS=$new_LIBS
9169 rm -f core conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext conftest.$ac_ext
9171 CPPFLAGS=$save_CPPFLAGS
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9174 $as_echo "${found_usable_python}" >&6; }
9177 if test ${have_libpython} = no; then
9181 new_CPPFLAGS=${python_includes}
9182 new_LIBS="${python_libs} -lpython2.5"
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9184 $as_echo_n "checking for ${version}... " >&6; }
9185 save_CPPFLAGS=$CPPFLAGS
9187 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9188 LIBS="$LIBS $new_LIBS"
9189 found_usable_python=no
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9201 if ac_fn_c_try_link "$LINENO"; then :
9202 have_libpython=${version}
9203 found_usable_python=yes
9204 PYTHON_CPPFLAGS=$new_CPPFLAGS
9205 PYTHON_LIBS=$new_LIBS
9207 rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209 CPPFLAGS=$save_CPPFLAGS
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9212 $as_echo "${found_usable_python}" >&6; }
9215 if test ${have_libpython} = no; then
9219 new_CPPFLAGS=${python_includes}
9220 new_LIBS="${python_libs} -lpython2.4"
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9222 $as_echo_n "checking for ${version}... " >&6; }
9223 save_CPPFLAGS=$CPPFLAGS
9225 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9226 LIBS="$LIBS $new_LIBS"
9227 found_usable_python=no
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9239 if ac_fn_c_try_link "$LINENO"; then :
9240 have_libpython=${version}
9241 found_usable_python=yes
9242 PYTHON_CPPFLAGS=$new_CPPFLAGS
9243 PYTHON_LIBS=$new_LIBS
9245 rm -f core conftest.err conftest.$ac_objext \
9246 conftest$ac_exeext conftest.$ac_ext
9247 CPPFLAGS=$save_CPPFLAGS
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9250 $as_echo "${found_usable_python}" >&6; }
9254 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
9256 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
9258 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
9260 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9262 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
9264 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9266 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
9268 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9272 if test "${have_libpython}" = no; then
9273 case "${with_python}" in
9275 as_fn_error "python is missing or unusable" "$LINENO" 5
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9279 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9282 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
9286 if test -n "${python_prefix}"; then
9288 cat >>confdefs.h <<_ACEOF
9289 #define WITH_PYTHON_PATH "${python_prefix}"
9293 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9294 if test "x$prefix" = xNONE; then
9295 test_prefix=/usr/local
9300 test_prefix=$exec_prefix
9303 case ${python_prefix} in
9304 "${test_prefix}"|"${test_prefix}/"*|\
9305 '${exec_prefix}'|'${exec_prefix}/'*)
9310 cat >>confdefs.h <<_ACEOF
9311 #define PYTHON_PATH_RELOCATABLE $value
9319 if test "${have_libpython}" != no; then
9321 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9323 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9324 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9325 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9326 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
9327 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9329 # Flags needed to compile Python code (taken from python-config --cflags).
9330 # We cannot call python-config directly because it will output whatever was
9331 # used when compiling the Python interpreter itself, including flags which
9332 # would make the python-related objects be compiled differently from the
9333 # rest of GDB (e.g., -O2 and -fPIC).
9334 if test "${GCC}" = yes; then
9335 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
9338 if test "x${tentative_python_cflags}" != x; then
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9340 $as_echo_n "checking compiler flags for python code... " >&6; }
9341 for flag in ${tentative_python_cflags}; do
9342 # Check that the compiler accepts it
9343 saved_CFLAGS="$CFLAGS"
9344 CFLAGS="$CFLAGS $flag"
9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h. */
9356 if ac_fn_c_try_compile "$LINENO"; then :
9357 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 CFLAGS="$saved_CFLAGS"
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9363 $as_echo "${PYTHON_CFLAGS}" >&6; }
9366 # On x64 Windows, Python's include headers, and pyconfig.h in
9367 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
9368 # version of Windows. Unfortunately, MS_WIN64 is only defined if
9369 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
9370 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
9371 # The issue was reported to the Python community, but still isn't
9372 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
9376 if test "${GCC}" = yes; then
9377 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
9382 # Note that "python -m threading" cannot be used to check for
9383 # threading support due to a bug in Python 2.7.3
9384 # (http://bugs.python.org/issue15567).
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
9386 $as_echo_n "checking whether python supports threads... " >&6; }
9387 saved_CPPFLAGS="${CPPFLAGS}"
9388 CPPFLAGS="${PYTHON_CPPFLAGS}"
9389 # Note that the test is reversed so that python_has_threads=yes on
9390 # unexpected failures.
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9400 if ac_fn_c_try_cpp "$LINENO"; then :
9401 python_has_threads=no
9403 python_has_threads=yes
9405 rm -f conftest.err conftest.$ac_ext
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9407 $as_echo "${python_has_threads}" >&6; }
9408 CPPFLAGS="${saved_CPPFLAGS}"
9410 # Even if Python support is not compiled in, we need to have this file
9411 # included so that the "python" command, et.al., still exists.
9412 CONFIG_OBS="$CONFIG_OBS python.o"
9413 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
9416 # Work around Python http://bugs.python.org/issue10112. See also
9417 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
9418 # no effect. Note that the only test after this that uses Python is
9419 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
9420 # run without -export-dynamic too.
9421 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
9426 if test "${have_libpython}" != no; then
9428 HAVE_PYTHON_FALSE='#'
9430 HAVE_PYTHON_TRUE='#'
9435 # -------------------- #
9436 # Check for libguile. #
9437 # -------------------- #
9444 # Check whether --with-guile was given.
9445 if test "${with_guile+set}" = set; then :
9446 withval=$with_guile;
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9452 $as_echo_n "checking whether to use guile... " >&6; }
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9454 $as_echo "$with_guile" >&6; }
9456 # Extract the first word of "pkg-config", so it can be a program name with args.
9457 set dummy pkg-config; ac_word=$2
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9459 $as_echo_n "checking for $ac_word... " >&6; }
9460 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9461 $as_echo_n "(cached) " >&6
9463 case $pkg_config_prog_path in
9465 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
9468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 test -z "$as_dir" && as_dir=.
9473 for ac_exec_ext in '' $ac_executable_extensions; do
9474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9475 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
9476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9483 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
9487 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
9488 if test -n "$pkg_config_prog_path"; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9490 $as_echo "$pkg_config_prog_path" >&6; }
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493 $as_echo "no" >&6; }
9498 try_guile_versions="guile-2.2 guile-2.0"
9500 case "${with_guile}" in
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9503 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9506 if test "${pkg_config_prog_path}" = "missing"; then
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9508 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9511 pkg_config=${pkg_config_prog_path}
9512 guile_version_list=${try_guile_versions}
9515 found_usable_guile=checking
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9517 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9518 for guile_version in ${guile_version_list}; do
9519 ${pkg_config} --exists ${guile_version} 2>/dev/null
9520 if test $? != 0; then
9523 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9524 if test $? != 0; then
9525 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9527 new_LIBS=`${pkg_config} --libs ${guile_version}`
9528 if test $? != 0; then
9529 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9531 found_usable_guile=${guile_version}
9534 if test "${found_usable_guile}" = "checking"; then
9535 if test "${flag_errors}" = "yes"; then
9536 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9538 found_usable_guile=no
9541 if test "${found_usable_guile}" != no; then
9542 save_CPPFLAGS=$CPPFLAGS
9544 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9545 LIBS="$LIBS $new_LIBS"
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9548 #include "libguile.h"
9557 if ac_fn_c_try_link "$LINENO"; then :
9559 GUILE_CPPFLAGS=$new_CPPFLAGS
9560 GUILE_LIBS=$new_LIBS
9562 found_usable_guile=no
9564 rm -f core conftest.err conftest.$ac_objext \
9565 conftest$ac_exeext conftest.$ac_ext
9566 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9567 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9569 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9574 CPPFLAGS=$save_CPPFLAGS
9576 if test "${found_usable_guile}" = no; then
9577 if test "${flag_errors}" = yes; then
9578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9580 as_fn_error "linking guile version ${guile_version} test program failed
9581 See \`config.log' for more details." "$LINENO" 5; }
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9586 $as_echo "${found_usable_guile}" >&6; }
9591 if test "${pkg_config_prog_path}" = "missing"; then
9592 as_fn_error "pkg-config not found" "$LINENO" 5
9595 pkg_config=${pkg_config_prog_path}
9596 guile_version_list=${try_guile_versions}
9599 found_usable_guile=checking
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9601 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9602 for guile_version in ${guile_version_list}; do
9603 ${pkg_config} --exists ${guile_version} 2>/dev/null
9604 if test $? != 0; then
9607 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9608 if test $? != 0; then
9609 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9611 new_LIBS=`${pkg_config} --libs ${guile_version}`
9612 if test $? != 0; then
9613 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9615 found_usable_guile=${guile_version}
9618 if test "${found_usable_guile}" = "checking"; then
9619 if test "${flag_errors}" = "yes"; then
9620 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9622 found_usable_guile=no
9625 if test "${found_usable_guile}" != no; then
9626 save_CPPFLAGS=$CPPFLAGS
9628 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9629 LIBS="$LIBS $new_LIBS"
9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632 #include "libguile.h"
9641 if ac_fn_c_try_link "$LINENO"; then :
9643 GUILE_CPPFLAGS=$new_CPPFLAGS
9644 GUILE_LIBS=$new_LIBS
9646 found_usable_guile=no
9648 rm -f core conftest.err conftest.$ac_objext \
9649 conftest$ac_exeext conftest.$ac_ext
9650 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9651 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9653 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9658 CPPFLAGS=$save_CPPFLAGS
9660 if test "${found_usable_guile}" = no; then
9661 if test "${flag_errors}" = yes; then
9662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9664 as_fn_error "linking guile version ${guile_version} test program failed
9665 See \`config.log' for more details." "$LINENO" 5; }
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9670 $as_echo "${found_usable_guile}" >&6; }
9674 if test -x "${with_guile}"; then
9676 pkg_config=${with_guile}
9677 guile_version_list=${try_guile_versions}
9680 found_usable_guile=checking
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9682 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9683 for guile_version in ${guile_version_list}; do
9684 ${pkg_config} --exists ${guile_version} 2>/dev/null
9685 if test $? != 0; then
9688 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9689 if test $? != 0; then
9690 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9692 new_LIBS=`${pkg_config} --libs ${guile_version}`
9693 if test $? != 0; then
9694 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9696 found_usable_guile=${guile_version}
9699 if test "${found_usable_guile}" = "checking"; then
9700 if test "${flag_errors}" = "yes"; then
9701 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9703 found_usable_guile=no
9706 if test "${found_usable_guile}" != no; then
9707 save_CPPFLAGS=$CPPFLAGS
9709 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9710 LIBS="$LIBS $new_LIBS"
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 #include "libguile.h"
9722 if ac_fn_c_try_link "$LINENO"; then :
9724 GUILE_CPPFLAGS=$new_CPPFLAGS
9725 GUILE_LIBS=$new_LIBS
9727 found_usable_guile=no
9729 rm -f core conftest.err conftest.$ac_objext \
9730 conftest$ac_exeext conftest.$ac_ext
9731 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9732 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9734 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9739 CPPFLAGS=$save_CPPFLAGS
9741 if test "${found_usable_guile}" = no; then
9742 if test "${flag_errors}" = yes; then
9743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9745 as_fn_error "linking guile version ${guile_version} test program failed
9746 See \`config.log' for more details." "$LINENO" 5; }
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9751 $as_echo "${found_usable_guile}" >&6; }
9754 as_fn_error "Guile config program not executable: ${with_guile}" "$LINENO" 5
9758 # Disallow --with=guile="" and --with-guile=foo/bar.
9759 as_fn_error "invalid value for --with-guile" "$LINENO" 5
9762 # A space separate list of guile versions to try, in order.
9763 if test "${pkg_config_prog_path}" = "missing"; then
9764 as_fn_error "pkg-config not found" "$LINENO" 5
9767 pkg_config=${pkg_config_prog_path}
9768 guile_version_list=${with_guile}
9771 found_usable_guile=checking
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9773 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9774 for guile_version in ${guile_version_list}; do
9775 ${pkg_config} --exists ${guile_version} 2>/dev/null
9776 if test $? != 0; then
9779 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9780 if test $? != 0; then
9781 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9783 new_LIBS=`${pkg_config} --libs ${guile_version}`
9784 if test $? != 0; then
9785 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9787 found_usable_guile=${guile_version}
9790 if test "${found_usable_guile}" = "checking"; then
9791 if test "${flag_errors}" = "yes"; then
9792 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9794 found_usable_guile=no
9797 if test "${found_usable_guile}" != no; then
9798 save_CPPFLAGS=$CPPFLAGS
9800 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9801 LIBS="$LIBS $new_LIBS"
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804 #include "libguile.h"
9813 if ac_fn_c_try_link "$LINENO"; then :
9815 GUILE_CPPFLAGS=$new_CPPFLAGS
9816 GUILE_LIBS=$new_LIBS
9818 found_usable_guile=no
9820 rm -f core conftest.err conftest.$ac_objext \
9821 conftest$ac_exeext conftest.$ac_ext
9822 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9823 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9825 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9830 CPPFLAGS=$save_CPPFLAGS
9832 if test "${found_usable_guile}" = no; then
9833 if test "${flag_errors}" = yes; then
9834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9836 as_fn_error "linking guile version ${guile_version} test program failed
9837 See \`config.log' for more details." "$LINENO" 5; }
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9842 $as_echo "${found_usable_guile}" >&6; }
9847 if test "${have_libguile}" != no; then
9848 case "${with_guile}" in
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9852 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9853 if test "${ac_cv_guild_program_name+set}" = set; then :
9854 $as_echo_n "(cached) " >&6
9856 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
9858 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9859 # the 'guild' and 'bindir' variables. In that case, try to guess
9860 # what the program name is, at the risk of getting it wrong if
9861 # Guile was configured with '--program-suffix' or similar.
9862 if test "x$ac_cv_guild_program_name" = "x"; then
9863 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9864 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9869 $as_echo "$ac_cv_guild_program_name" >&6; }
9871 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9872 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9875 GUILD="$ac_cv_guild_program_name"
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9882 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9883 if test "${ac_cv_guild_program_name+set}" = set; then :
9884 $as_echo_n "(cached) " >&6
9886 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9888 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9889 # the 'guild' and 'bindir' variables. In that case, try to guess
9890 # what the program name is, at the risk of getting it wrong if
9891 # Guile was configured with '--program-suffix' or similar.
9892 if test "x$ac_cv_guild_program_name" = "x"; then
9893 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9894 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9899 $as_echo "$ac_cv_guild_program_name" >&6; }
9901 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9902 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9905 GUILD="$ac_cv_guild_program_name"
9912 if test "$cross_compiling" = no; then
9915 GUILD_TARGET_FLAG="--target=$host"
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9922 $as_echo_n "checking whether guild supports this host... " >&6; }
9923 if test "${ac_cv_guild_ok+set}" = set; then :
9924 $as_echo_n "(cached) " >&6
9926 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9927 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9934 $as_echo "$ac_cv_guild_ok" >&6; }
9936 if test "$ac_cv_guild_ok" = no; then
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9939 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9943 if test "${have_libguile}" != no; then
9945 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9947 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9948 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9949 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9950 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
9951 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9954 save_CPPFLAGS="$CPPFLAGS"
9956 CPPFLAGS="$GUILE_CPPFLAGS"
9957 for ac_func in scm_new_smob
9959 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9960 if test "x$ac_cv_func_scm_new_smob" = x""yes; then :
9961 cat >>confdefs.h <<_ACEOF
9962 #define HAVE_SCM_NEW_SMOB 1
9969 CPPFLAGS="$save_CPPFLAGS"
9971 # Even if Guile support is not compiled in, we need to have these files
9973 CONFIG_OBS="$CONFIG_OBS guile.o"
9974 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
9978 if test "${have_libguile}" != no; then
9980 HAVE_GUILE_FALSE='#'
9987 # --------------------- #
9988 # Check for libmcheck. #
9989 # --------------------- #
9991 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9992 # but turn it off if Python is enabled with threads, since -lmcheck is
9993 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9995 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
9996 && $development; then
9997 libmcheck_default=yes
9999 libmcheck_default=no
10002 # Check whether --enable-libmcheck was given.
10003 if test "${enable_libmcheck+set}" = set; then :
10004 enableval=$enable_libmcheck; case "${enableval}" in
10005 yes | y) ENABLE_LIBMCHECK="yes" ;;
10006 no | n) ENABLE_LIBMCHECK="no" ;;
10007 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
10012 if test -z "${ENABLE_LIBMCHECK}"; then
10013 ENABLE_LIBMCHECK=${libmcheck_default}
10016 if test "$ENABLE_LIBMCHECK" = "yes" ; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
10018 $as_echo_n "checking for main in -lmcheck... " >&6; }
10019 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
10022 ac_check_lib_save_LIBS=$LIBS
10023 LIBS="-lmcheck $LIBS"
10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h. */
10036 if ac_fn_c_try_link "$LINENO"; then :
10037 ac_cv_lib_mcheck_main=yes
10039 ac_cv_lib_mcheck_main=no
10041 rm -f core conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 LIBS=$ac_check_lib_save_LIBS
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
10046 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
10047 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
10048 cat >>confdefs.h <<_ACEOF
10049 #define HAVE_LIBMCHECK 1
10052 LIBS="-lmcheck $LIBS"
10059 if test "$ENABLE_LIBMCHECK" = "yes" \
10060 -a "${have_libpython}" != "no" \
10061 -a "${python_has_threads}" = "yes" ; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
10063 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
10067 # Check whether --with-intel_pt was given.
10068 if test "${with_intel_pt+set}" = set; then :
10069 withval=$with_intel_pt;
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
10075 $as_echo_n "checking whether to use intel pt... " >&6; }
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
10077 $as_echo "$with_intel_pt" >&6; }
10079 if test "${with_intel_pt}" = no; then
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
10081 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10087 #include <linux/perf_event.h>
10088 #ifndef PERF_ATTR_SIZE_VER5
10093 if ac_fn_c_try_cpp "$LINENO"; then :
10098 rm -f conftest.err conftest.$ac_ext
10099 if test "$perf_event" != yes; then
10100 if test "$with_intel_pt" = yes; then
10101 as_fn_error "linux/perf_event.h missing or too old" "$LINENO" 5
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
10104 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
10118 acl_save_prefix="$prefix"
10119 prefix="$acl_final_prefix"
10120 acl_save_exec_prefix="$exec_prefix"
10121 exec_prefix="$acl_final_exec_prefix"
10123 eval additional_includedir=\"$includedir\"
10124 eval additional_libdir=\"$libdir\"
10126 exec_prefix="$acl_save_exec_prefix"
10127 prefix="$acl_save_prefix"
10130 # Check whether --with-libipt-prefix was given.
10131 if test "${with_libipt_prefix+set}" = set; then :
10132 withval=$with_libipt_prefix;
10133 if test "X$withval" = "Xno"; then
10136 if test "X$withval" = "X"; then
10138 acl_save_prefix="$prefix"
10139 prefix="$acl_final_prefix"
10140 acl_save_exec_prefix="$exec_prefix"
10141 exec_prefix="$acl_final_exec_prefix"
10143 eval additional_includedir=\"$includedir\"
10144 eval additional_libdir=\"$libdir\"
10146 exec_prefix="$acl_save_exec_prefix"
10147 prefix="$acl_save_prefix"
10150 additional_includedir="$withval/include"
10151 additional_libdir="$withval/lib"
10162 names_already_handled=
10163 names_next_round='ipt '
10164 while test -n "$names_next_round"; do
10165 names_this_round="$names_next_round"
10167 for name in $names_this_round; do
10169 for n in $names_already_handled; do
10170 if test "$n" = "$name"; then
10171 already_handled=yes
10175 if test -z "$already_handled"; then
10176 names_already_handled="$names_already_handled $name"
10177 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10178 eval value=\"\$HAVE_LIB$uppername\"
10179 if test -n "$value"; then
10180 if test "$value" = yes; then
10181 eval value=\"\$LIB$uppername\"
10182 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
10183 eval value=\"\$LTLIB$uppername\"
10184 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
10193 if test $use_additional = yes; then
10194 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10195 found_dir="$additional_libdir"
10196 found_so="$additional_libdir/lib$name.$shlibext"
10197 if test -f "$additional_libdir/lib$name.la"; then
10198 found_la="$additional_libdir/lib$name.la"
10201 if test -f "$additional_libdir/lib$name.$libext"; then
10202 found_dir="$additional_libdir"
10203 found_a="$additional_libdir/lib$name.$libext"
10204 if test -f "$additional_libdir/lib$name.la"; then
10205 found_la="$additional_libdir/lib$name.la"
10210 if test "X$found_dir" = "X"; then
10211 for x in $LDFLAGS $LTLIBIPT; do
10213 acl_save_prefix="$prefix"
10214 prefix="$acl_final_prefix"
10215 acl_save_exec_prefix="$exec_prefix"
10216 exec_prefix="$acl_final_exec_prefix"
10218 exec_prefix="$acl_save_exec_prefix"
10219 prefix="$acl_save_prefix"
10223 dir=`echo "X$x" | sed -e 's/^X-L//'`
10224 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10226 found_so="$dir/lib$name.$shlibext"
10227 if test -f "$dir/lib$name.la"; then
10228 found_la="$dir/lib$name.la"
10231 if test -f "$dir/lib$name.$libext"; then
10233 found_a="$dir/lib$name.$libext"
10234 if test -f "$dir/lib$name.la"; then
10235 found_la="$dir/lib$name.la"
10241 if test "X$found_dir" != "X"; then
10246 if test "X$found_dir" != "X"; then
10247 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
10248 if test "X$found_so" != "X"; then
10249 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10250 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10253 for x in $ltrpathdirs; do
10254 if test "X$x" = "X$found_dir"; then
10259 if test -z "$haveit"; then
10260 ltrpathdirs="$ltrpathdirs $found_dir"
10262 if test "$hardcode_direct" = yes; then
10263 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10265 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10266 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10268 for x in $rpathdirs; do
10269 if test "X$x" = "X$found_dir"; then
10274 if test -z "$haveit"; then
10275 rpathdirs="$rpathdirs $found_dir"
10279 for x in $LDFLAGS $LIBIPT; do
10281 acl_save_prefix="$prefix"
10282 prefix="$acl_final_prefix"
10283 acl_save_exec_prefix="$exec_prefix"
10284 exec_prefix="$acl_final_exec_prefix"
10286 exec_prefix="$acl_save_exec_prefix"
10287 prefix="$acl_save_prefix"
10289 if test "X$x" = "X-L$found_dir"; then
10294 if test -z "$haveit"; then
10295 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
10297 if test "$hardcode_minus_L" != no; then
10298 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10300 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10306 if test "X$found_a" != "X"; then
10307 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
10309 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
10312 additional_includedir=
10313 case "$found_dir" in
10315 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10316 additional_includedir="$basedir/include"
10319 if test "X$additional_includedir" != "X"; then
10320 if test "X$additional_includedir" != "X/usr/include"; then
10322 if test "X$additional_includedir" = "X/usr/local/include"; then
10323 if test -n "$GCC"; then
10325 linux*) haveit=yes;;
10329 if test -z "$haveit"; then
10330 for x in $CPPFLAGS $INCIPT; do
10332 acl_save_prefix="$prefix"
10333 prefix="$acl_final_prefix"
10334 acl_save_exec_prefix="$exec_prefix"
10335 exec_prefix="$acl_final_exec_prefix"
10337 exec_prefix="$acl_save_exec_prefix"
10338 prefix="$acl_save_prefix"
10340 if test "X$x" = "X-I$additional_includedir"; then
10345 if test -z "$haveit"; then
10346 if test -d "$additional_includedir"; then
10347 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10353 if test -n "$found_la"; then
10354 save_libdir="$libdir"
10355 case "$found_la" in
10356 */* | *\\*) . "$found_la" ;;
10357 *) . "./$found_la" ;;
10359 libdir="$save_libdir"
10360 for dep in $dependency_libs; do
10363 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10364 if test "X$additional_libdir" != "X/usr/lib"; then
10366 if test "X$additional_libdir" = "X/usr/local/lib"; then
10367 if test -n "$GCC"; then
10369 linux*) haveit=yes;;
10373 if test -z "$haveit"; then
10375 for x in $LDFLAGS $LIBIPT; do
10377 acl_save_prefix="$prefix"
10378 prefix="$acl_final_prefix"
10379 acl_save_exec_prefix="$exec_prefix"
10380 exec_prefix="$acl_final_exec_prefix"
10382 exec_prefix="$acl_save_exec_prefix"
10383 prefix="$acl_save_prefix"
10385 if test "X$x" = "X-L$additional_libdir"; then
10390 if test -z "$haveit"; then
10391 if test -d "$additional_libdir"; then
10392 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10396 for x in $LDFLAGS $LTLIBIPT; do
10398 acl_save_prefix="$prefix"
10399 prefix="$acl_final_prefix"
10400 acl_save_exec_prefix="$exec_prefix"
10401 exec_prefix="$acl_final_exec_prefix"
10403 exec_prefix="$acl_save_exec_prefix"
10404 prefix="$acl_save_prefix"
10406 if test "X$x" = "X-L$additional_libdir"; then
10411 if test -z "$haveit"; then
10412 if test -d "$additional_libdir"; then
10413 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10420 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10421 if test "$enable_rpath" != no; then
10423 for x in $rpathdirs; do
10424 if test "X$x" = "X$dir"; then
10429 if test -z "$haveit"; then
10430 rpathdirs="$rpathdirs $dir"
10433 for x in $ltrpathdirs; do
10434 if test "X$x" = "X$dir"; then
10439 if test -z "$haveit"; then
10440 ltrpathdirs="$ltrpathdirs $dir"
10445 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10448 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10451 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10452 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10458 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10459 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10465 if test "X$rpathdirs" != "X"; then
10466 if test -n "$hardcode_libdir_separator"; then
10468 for found_dir in $rpathdirs; do
10469 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10471 acl_save_libdir="$libdir"
10473 eval flag=\"$hardcode_libdir_flag_spec\"
10474 libdir="$acl_save_libdir"
10475 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10477 for found_dir in $rpathdirs; do
10478 acl_save_libdir="$libdir"
10479 libdir="$found_dir"
10480 eval flag=\"$hardcode_libdir_flag_spec\"
10481 libdir="$acl_save_libdir"
10482 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10486 if test "X$ltrpathdirs" != "X"; then
10487 for found_dir in $ltrpathdirs; do
10488 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10493 ac_save_CPPFLAGS="$CPPFLAGS"
10495 for element in $INCIPT; do
10497 for x in $CPPFLAGS; do
10499 acl_save_prefix="$prefix"
10500 prefix="$acl_final_prefix"
10501 acl_save_exec_prefix="$exec_prefix"
10502 exec_prefix="$acl_final_exec_prefix"
10504 exec_prefix="$acl_save_exec_prefix"
10505 prefix="$acl_save_prefix"
10507 if test "X$x" = "X$element"; then
10512 if test -z "$haveit"; then
10513 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10519 $as_echo_n "checking for libipt... " >&6; }
10520 if test "${ac_cv_libipt+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10524 ac_save_LIBS="$LIBS"
10525 LIBS="$LIBS $LIBIPT"
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h. */
10528 #include "intel-pt.h"
10532 pt_insn_alloc_decoder (0);
10537 if ac_fn_c_try_link "$LINENO"; then :
10542 rm -f core conftest.err conftest.$ac_objext \
10543 conftest$ac_exeext conftest.$ac_ext
10544 LIBS="$ac_save_LIBS"
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10548 $as_echo "$ac_cv_libipt" >&6; }
10549 if test "$ac_cv_libipt" = yes; then
10552 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10555 $as_echo_n "checking how to link with libipt... " >&6; }
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10557 $as_echo "$LIBIPT" >&6; }
10560 CPPFLAGS="$ac_save_CPPFLAGS"
10570 if test "$HAVE_LIBIPT" != yes; then
10571 if test "$with_intel_pt" = yes; then
10572 as_fn_error "libipt is missing or unusable" "$LINENO" 5
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10575 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10580 # ------------------------- #
10581 # Checks for header files. #
10582 # ------------------------- #
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10585 $as_echo_n "checking for ANSI C header files... " >&6; }
10586 if test "${ac_cv_header_stdc+set}" = set; then :
10587 $as_echo_n "(cached) " >&6
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591 #include <stdlib.h>
10592 #include <stdarg.h>
10593 #include <string.h>
10604 if ac_fn_c_try_compile "$LINENO"; then :
10605 ac_cv_header_stdc=yes
10607 ac_cv_header_stdc=no
10609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10611 if test $ac_cv_header_stdc = yes; then
10612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 #include <string.h>
10618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10619 $EGREP "memchr" >/dev/null 2>&1; then :
10622 ac_cv_header_stdc=no
10628 if test $ac_cv_header_stdc = yes; then
10629 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10632 #include <stdlib.h>
10635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10636 $EGREP "free" >/dev/null 2>&1; then :
10639 ac_cv_header_stdc=no
10645 if test $ac_cv_header_stdc = yes; then
10646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10647 if test "$cross_compiling" = yes; then :
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10653 #include <stdlib.h>
10654 #if ((' ' & 0x0FF) == 0x020)
10655 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10656 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10658 # define ISLOWER(c) \
10659 (('a' <= (c) && (c) <= 'i') \
10660 || ('j' <= (c) && (c) <= 'r') \
10661 || ('s' <= (c) && (c) <= 'z'))
10662 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10670 for (i = 0; i < 256; i++)
10671 if (XOR (islower (i), ISLOWER (i))
10672 || toupper (i) != TOUPPER (i))
10677 if ac_fn_c_try_run "$LINENO"; then :
10680 ac_cv_header_stdc=no
10682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10683 conftest.$ac_objext conftest.beam conftest.$ac_ext
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10689 $as_echo "$ac_cv_header_stdc" >&6; }
10690 if test $ac_cv_header_stdc = yes; then
10692 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10696 # elf_hp.h is for HP/UX 64-bit shared library support.
10697 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
10700 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
10701 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
10702 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
10703 termios.h termio.h \
10707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10708 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10709 eval as_val=\$$as_ac_Header
10710 if test "x$as_val" = x""yes; then :
10711 cat >>confdefs.h <<_ACEOF
10712 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10719 for ac_header in sys/proc.h
10721 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10722 # include <sys/param.h>
10726 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
10727 cat >>confdefs.h <<_ACEOF
10728 #define HAVE_SYS_PROC_H 1
10735 for ac_header in sys/user.h
10737 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10738 # include <sys/param.h>
10742 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
10743 cat >>confdefs.h <<_ACEOF
10744 #define HAVE_SYS_USER_H 1
10752 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10753 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10754 # think that we don't have <curses.h> if we're using GCC.
10757 if test "$GCC" = yes; then
10759 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
10763 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
10765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10766 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10767 eval as_val=\$$as_ac_Header
10768 if test "x$as_val" = x""yes; then :
10769 cat >>confdefs.h <<_ACEOF
10770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10777 for ac_header in term.h
10779 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10780 # include <curses.h>
10784 if test "x$ac_cv_header_term_h" = x""yes; then :
10785 cat >>confdefs.h <<_ACEOF
10786 #define HAVE_TERM_H 1
10794 # ------------------------- #
10795 # Checks for declarations. #
10796 # ------------------------- #
10799 # Check for presence and size of long long.
10800 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10801 if test "x$ac_cv_type_long_long" = x""yes; then :
10803 cat >>confdefs.h <<_ACEOF
10804 #define HAVE_LONG_LONG 1
10807 # The cast to long int works around a bug in the HP C Compiler
10808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10810 # This bug is HP SR number 8606223364.
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10812 $as_echo_n "checking size of long long... " >&6; }
10813 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10814 $as_echo_n "(cached) " >&6
10816 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10819 if test "$ac_cv_type_long_long" = yes; then
10820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10822 { as_fn_set_status 77
10823 as_fn_error "cannot compute sizeof (long long)
10824 See \`config.log' for more details." "$LINENO" 5; }; }
10826 ac_cv_sizeof_long_long=0
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10832 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10836 cat >>confdefs.h <<_ACEOF
10837 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10844 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
10845 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
10851 cat >>confdefs.h <<_ACEOF
10852 #define HAVE_DECL_BASENAME $ac_have_decl
10854 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10855 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
10861 cat >>confdefs.h <<_ACEOF
10862 #define HAVE_DECL_FFS $ac_have_decl
10864 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10865 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
10871 cat >>confdefs.h <<_ACEOF
10872 #define HAVE_DECL_ASPRINTF $ac_have_decl
10874 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10875 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
10881 cat >>confdefs.h <<_ACEOF
10882 #define HAVE_DECL_VASPRINTF $ac_have_decl
10884 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10885 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10891 cat >>confdefs.h <<_ACEOF
10892 #define HAVE_DECL_SNPRINTF $ac_have_decl
10894 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10895 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
10901 cat >>confdefs.h <<_ACEOF
10902 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10905 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10906 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
10912 cat >>confdefs.h <<_ACEOF
10913 #define HAVE_DECL_STRTOL $ac_have_decl
10915 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10916 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
10922 cat >>confdefs.h <<_ACEOF
10923 #define HAVE_DECL_STRTOUL $ac_have_decl
10925 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10926 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
10932 cat >>confdefs.h <<_ACEOF
10933 #define HAVE_DECL_STRTOLL $ac_have_decl
10935 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10936 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
10942 cat >>confdefs.h <<_ACEOF
10943 #define HAVE_DECL_STRTOULL $ac_have_decl
10946 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10947 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
10953 cat >>confdefs.h <<_ACEOF
10954 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10959 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10960 if test "x$ac_cv_have_decl_free" = x""yes; then :
10966 cat >>confdefs.h <<_ACEOF
10967 #define HAVE_DECL_FREE $ac_have_decl
10969 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10970 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_DECL_MALLOC $ac_have_decl
10979 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10980 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
10986 cat >>confdefs.h <<_ACEOF
10987 #define HAVE_DECL_REALLOC $ac_have_decl
10989 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10990 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10996 cat >>confdefs.h <<_ACEOF
10997 #define HAVE_DECL_SNPRINTF $ac_have_decl
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11002 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11003 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11004 $as_echo_n "(cached) " >&6
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008 #include <locale.h>
11017 if ac_fn_c_try_link "$LINENO"; then :
11018 am_cv_val_LC_MESSAGES=yes
11020 am_cv_val_LC_MESSAGES=no
11022 rm -f core conftest.err conftest.$ac_objext \
11023 conftest$ac_exeext conftest.$ac_ext
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11026 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11027 if test $am_cv_val_LC_MESSAGES = yes; then
11029 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11034 # ----------------------- #
11035 # Checks for structures. #
11036 # ----------------------- #
11038 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11039 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11041 cat >>confdefs.h <<_ACEOF
11042 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11047 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11048 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11050 cat >>confdefs.h <<_ACEOF
11051 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11058 # ------------------ #
11059 # Checks for types. #
11060 # ------------------ #
11062 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11063 #include <sys/socket.h>
11066 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11068 cat >>confdefs.h <<_ACEOF
11069 #define HAVE_SOCKLEN_T 1
11076 # ------------------------------------- #
11077 # Checks for compiler characteristics. #
11078 # ------------------------------------- #
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11081 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11082 if test "${ac_cv_c_const+set}" = set; then :
11083 $as_echo_n "(cached) " >&6
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11091 /* FIXME: Include the comments suggested by Paul. */
11092 #ifndef __cplusplus
11093 /* Ultrix mips cc rejects this. */
11094 typedef int charset[2];
11096 /* SunOS 4.1.1 cc rejects this. */
11097 char const *const *pcpcc;
11099 /* NEC SVR4.0.2 mips cc rejects this. */
11100 struct point {int x, y;};
11101 static struct point const zero = {0,0};
11102 /* AIX XL C 1.02.0.0 rejects this.
11103 It does not let you subtract one const X* pointer from another in
11104 an arm of an if-expression whose if-part is not a constant
11106 const char *g = "string";
11107 pcpcc = &g + (g ? g-g : 0);
11108 /* HPUX 7.0 cc rejects these. */
11110 ppc = (char**) pcpcc;
11111 pcpcc = (char const *const *) ppc;
11112 { /* SCO 3.2v4 cc rejects this. */
11114 char const *s = 0 ? (char *) 0 : (char const *) 0;
11119 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11120 int x[] = {25, 17};
11121 const int *foo = &x[0];
11124 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11125 typedef const int *iptr;
11129 { /* AIX XL C 1.02.0.0 rejects this saying
11130 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11131 struct s { int j; const int *ap[3]; };
11132 struct s *b; b->j = 5;
11134 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11135 const int foo = 10;
11136 if (!foo) return 0;
11138 return !cs[0] && !zero.x;
11145 if ac_fn_c_try_compile "$LINENO"; then :
11150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11153 $as_echo "$ac_cv_c_const" >&6; }
11154 if test $ac_cv_c_const = no; then
11156 $as_echo "#define const /**/" >>confdefs.h
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11161 $as_echo_n "checking for inline... " >&6; }
11162 if test "${ac_cv_c_inline+set}" = set; then :
11163 $as_echo_n "(cached) " >&6
11166 for ac_kw in inline __inline__ __inline; do
11167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h. */
11169 #ifndef __cplusplus
11171 static $ac_kw foo_t static_foo () {return 0; }
11172 $ac_kw foo_t foo () {return 0; }
11176 if ac_fn_c_try_compile "$LINENO"; then :
11177 ac_cv_c_inline=$ac_kw
11179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11180 test "$ac_cv_c_inline" != no && break
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11185 $as_echo "$ac_cv_c_inline" >&6; }
11187 case $ac_cv_c_inline in
11190 case $ac_cv_c_inline in
11192 *) ac_val=$ac_cv_c_inline;;
11194 cat >>confdefs.h <<_ACEOF
11195 #ifndef __cplusplus
11196 #define inline $ac_val
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11203 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11204 if test "${ac_cv_c_bigendian+set}" = set; then :
11205 $as_echo_n "(cached) " >&6
11207 ac_cv_c_bigendian=unknown
11208 # See if we're dealing with a universal compiler.
11209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210 /* end confdefs.h. */
11211 #ifndef __APPLE_CC__
11212 not a universal capable compiler
11217 if ac_fn_c_try_compile "$LINENO"; then :
11219 # Check for potential -arch flags. It is not universal unless
11220 # there are at least two -arch flags with different values.
11223 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11224 if test -n "$ac_prev"; then
11226 i?86 | x86_64 | ppc | ppc64)
11227 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11230 ac_cv_c_bigendian=universal
11236 elif test "x$ac_word" = "x-arch"; then
11241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242 if test $ac_cv_c_bigendian = unknown; then
11243 # See if sys/param.h defines the BYTE_ORDER macro.
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11246 #include <sys/types.h>
11247 #include <sys/param.h>
11252 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11253 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11255 bogus endian macros
11262 if ac_fn_c_try_compile "$LINENO"; then :
11263 # It does; now see whether it defined to BIG_ENDIAN or not.
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11266 #include <sys/types.h>
11267 #include <sys/param.h>
11272 #if BYTE_ORDER != BIG_ENDIAN
11280 if ac_fn_c_try_compile "$LINENO"; then :
11281 ac_cv_c_bigendian=yes
11283 ac_cv_c_bigendian=no
11285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 if test $ac_cv_c_bigendian = unknown; then
11290 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11293 #include <limits.h>
11298 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11299 bogus endian macros
11306 if ac_fn_c_try_compile "$LINENO"; then :
11307 # It does; now see whether it defined to _BIG_ENDIAN or not.
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h. */
11310 #include <limits.h>
11315 #ifndef _BIG_ENDIAN
11323 if ac_fn_c_try_compile "$LINENO"; then :
11324 ac_cv_c_bigendian=yes
11326 ac_cv_c_bigendian=no
11328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11332 if test $ac_cv_c_bigendian = unknown; then
11333 # Compile a test program.
11334 if test "$cross_compiling" = yes; then :
11335 # Try to guess by grepping values from an object file.
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11338 short int ascii_mm[] =
11339 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11340 short int ascii_ii[] =
11341 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11342 int use_ascii (int i) {
11343 return ascii_mm[i] + ascii_ii[i];
11345 short int ebcdic_ii[] =
11346 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11347 short int ebcdic_mm[] =
11348 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11349 int use_ebcdic (int i) {
11350 return ebcdic_mm[i] + ebcdic_ii[i];
11357 return use_ascii (foo) == use_ebcdic (foo);
11362 if ac_fn_c_try_compile "$LINENO"; then :
11363 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11364 ac_cv_c_bigendian=yes
11366 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11367 if test "$ac_cv_c_bigendian" = unknown; then
11368 ac_cv_c_bigendian=no
11370 # finding both strings is unlikely to happen, but who knows?
11371 ac_cv_c_bigendian=unknown
11375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11379 $ac_includes_default
11384 /* Are we little or big endian? From Harbison&Steele. */
11388 char c[sizeof (long int)];
11391 return u.c[sizeof (long int) - 1] == 1;
11397 if ac_fn_c_try_run "$LINENO"; then :
11398 ac_cv_c_bigendian=no
11400 ac_cv_c_bigendian=yes
11402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11403 conftest.$ac_objext conftest.beam conftest.$ac_ext
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11409 $as_echo "$ac_cv_c_bigendian" >&6; }
11410 case $ac_cv_c_bigendian in #(
11412 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11418 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11422 as_fn_error "unknown endianness
11423 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11427 # ------------------------------ #
11428 # Checks for library functions. #
11429 # ------------------------------ #
11431 for ac_header in stdlib.h unistd.h
11433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11434 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11435 eval as_val=\$$as_ac_Header
11436 if test "x$as_val" = x""yes; then :
11437 cat >>confdefs.h <<_ACEOF
11438 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11445 for ac_func in getpagesize
11447 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11448 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11449 cat >>confdefs.h <<_ACEOF
11450 #define HAVE_GETPAGESIZE 1
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11457 $as_echo_n "checking for working mmap... " >&6; }
11458 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11461 if test "$cross_compiling" = yes; then :
11462 ac_cv_func_mmap_fixed_mapped=no
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11466 $ac_includes_default
11467 /* malloc might have been renamed as rpl_malloc. */
11470 /* Thanks to Mike Haertel and Jim Avera for this test.
11471 Here is a matrix of mmap possibilities:
11472 mmap private not fixed
11473 mmap private fixed at somewhere currently unmapped
11474 mmap private fixed at somewhere already mapped
11475 mmap shared not fixed
11476 mmap shared fixed at somewhere currently unmapped
11477 mmap shared fixed at somewhere already mapped
11478 For private mappings, we should verify that changes cannot be read()
11479 back from the file, nor mmap's back from the file at a different
11480 address. (There have been systems where private was not correctly
11481 implemented like the infamous i386 svr4.0, and systems where the
11482 VM page cache was not coherent with the file system buffer cache
11483 like early versions of FreeBSD and possibly contemporary NetBSD.)
11484 For shared mappings, we should conversely verify that changes get
11485 propagated back to all the places they're supposed to be.
11487 Grep wants private fixed already mapped.
11488 The main things grep needs to know about mmap are:
11489 * does it exist and is it safe to write into the mmap'd area
11490 * how to use it (BSD variants) */
11493 #include <sys/mman.h>
11495 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11499 /* This mess was copied from the GNU getpagesize.h. */
11500 #ifndef HAVE_GETPAGESIZE
11501 /* Assume that all systems that can run configure have sys/param.h. */
11502 # ifndef HAVE_SYS_PARAM_H
11503 # define HAVE_SYS_PARAM_H 1
11506 # ifdef _SC_PAGESIZE
11507 # define getpagesize() sysconf(_SC_PAGESIZE)
11508 # else /* no _SC_PAGESIZE */
11509 # ifdef HAVE_SYS_PARAM_H
11510 # include <sys/param.h>
11511 # ifdef EXEC_PAGESIZE
11512 # define getpagesize() EXEC_PAGESIZE
11513 # else /* no EXEC_PAGESIZE */
11515 # define getpagesize() NBPG * CLSIZE
11518 # endif /* no CLSIZE */
11519 # else /* no NBPG */
11521 # define getpagesize() NBPC
11522 # else /* no NBPC */
11524 # define getpagesize() PAGESIZE
11525 # endif /* PAGESIZE */
11526 # endif /* no NBPC */
11527 # endif /* no NBPG */
11528 # endif /* no EXEC_PAGESIZE */
11529 # else /* no HAVE_SYS_PARAM_H */
11530 # define getpagesize() 8192 /* punt totally */
11531 # endif /* no HAVE_SYS_PARAM_H */
11532 # endif /* no _SC_PAGESIZE */
11534 #endif /* no HAVE_GETPAGESIZE */
11539 char *data, *data2, *data3;
11543 pagesize = getpagesize ();
11545 /* First, make a file with some known garbage in it. */
11546 data = (char *) malloc (pagesize);
11549 for (i = 0; i < pagesize; ++i)
11550 *(data + i) = rand ();
11552 fd = creat ("conftest.mmap", 0600);
11555 if (write (fd, data, pagesize) != pagesize)
11559 /* Next, try to mmap the file at a fixed address which already has
11560 something else allocated at it. If we can, also make sure that
11561 we see the same garbage. */
11562 fd = open ("conftest.mmap", O_RDWR);
11565 data2 = (char *) malloc (2 * pagesize);
11568 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11569 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11570 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11572 for (i = 0; i < pagesize; ++i)
11573 if (*(data + i) != *(data2 + i))
11576 /* Finally, make sure that changes to the mapped area do not
11577 percolate back to the file as seen by read(). (This is a bug on
11578 some variants of i386 svr4.0.) */
11579 for (i = 0; i < pagesize; ++i)
11580 *(data2 + i) = *(data2 + i) + 1;
11581 data3 = (char *) malloc (pagesize);
11584 if (read (fd, data3, pagesize) != pagesize)
11586 for (i = 0; i < pagesize; ++i)
11587 if (*(data + i) != *(data3 + i))
11593 if ac_fn_c_try_run "$LINENO"; then :
11594 ac_cv_func_mmap_fixed_mapped=yes
11596 ac_cv_func_mmap_fixed_mapped=no
11598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11599 conftest.$ac_objext conftest.beam conftest.$ac_ext
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11604 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11605 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11607 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11610 rm -f conftest.mmap
11612 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11613 if test "x$ac_cv_type_pid_t" = x""yes; then :
11617 cat >>confdefs.h <<_ACEOF
11623 for ac_header in vfork.h
11625 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11626 if test "x$ac_cv_header_vfork_h" = x""yes; then :
11627 cat >>confdefs.h <<_ACEOF
11628 #define HAVE_VFORK_H 1
11635 for ac_func in fork vfork
11637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11638 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11639 eval as_val=\$$as_ac_var
11640 if test "x$as_val" = x""yes; then :
11641 cat >>confdefs.h <<_ACEOF
11642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11648 if test "x$ac_cv_func_fork" = xyes; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11650 $as_echo_n "checking for working fork... " >&6; }
11651 if test "${ac_cv_func_fork_works+set}" = set; then :
11652 $as_echo_n "(cached) " >&6
11654 if test "$cross_compiling" = yes; then :
11655 ac_cv_func_fork_works=cross
11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11659 $ac_includes_default
11664 /* By Ruediger Kuhlmann. */
11665 return fork () < 0;
11671 if ac_fn_c_try_run "$LINENO"; then :
11672 ac_cv_func_fork_works=yes
11674 ac_cv_func_fork_works=no
11676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11677 conftest.$ac_objext conftest.beam conftest.$ac_ext
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11682 $as_echo "$ac_cv_func_fork_works" >&6; }
11685 ac_cv_func_fork_works=$ac_cv_func_fork
11687 if test "x$ac_cv_func_fork_works" = xcross; then
11689 *-*-amigaos* | *-*-msdosdjgpp*)
11690 # Override, as these systems have only a dummy fork() stub
11691 ac_cv_func_fork_works=no
11694 ac_cv_func_fork_works=yes
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11698 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11700 ac_cv_func_vfork_works=$ac_cv_func_vfork
11701 if test "x$ac_cv_func_vfork" = xyes; then
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11703 $as_echo_n "checking for working vfork... " >&6; }
11704 if test "${ac_cv_func_vfork_works+set}" = set; then :
11705 $as_echo_n "(cached) " >&6
11707 if test "$cross_compiling" = yes; then :
11708 ac_cv_func_vfork_works=cross
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11712 /* Thanks to Paul Eggert for this test. */
11713 $ac_includes_default
11714 #include <sys/wait.h>
11715 #ifdef HAVE_VFORK_H
11716 # include <vfork.h>
11718 /* On some sparc systems, changes by the child to local and incoming
11719 argument registers are propagated back to the parent. The compiler
11720 is told about this with #include <vfork.h>, but some compilers
11721 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11722 static variable whose address is put into a register that is
11723 clobbered by the vfork. */
11726 sparc_address_test (int arg)
11728 sparc_address_test (arg) int arg;
11731 static pid_t child;
11749 pid_t parent = getpid ();
11752 sparc_address_test (0);
11757 /* Here is another test for sparc vfork register problems. This
11758 test uses lots of local variables, at least as many local
11759 variables as main has allocated so far including compiler
11760 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11761 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11762 reuse the register of parent for one of the local variables,
11763 since it will think that parent can't possibly be used any more
11764 in this routine. Assigning to the local variable will thus
11765 munge parent in the parent process. */
11767 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11768 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11769 /* Convince the compiler that p..p7 are live; otherwise, it might
11770 use the same hardware register for all 8 local variables. */
11771 if (p != p1 || p != p2 || p != p3 || p != p4
11772 || p != p5 || p != p6 || p != p7)
11775 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11776 from child file descriptors. If the child closes a descriptor
11777 before it execs or exits, this munges the parent's descriptor
11778 as well. Test for this by closing stdout in the child. */
11779 _exit(close(fileno(stdout)) != 0);
11784 while (wait(&status) != child)
11787 /* Was there some problem with vforking? */
11790 /* Did the child fail? (This shouldn't happen.) */
11793 /* Did the vfork/compiler bug occur? */
11794 || parent != getpid()
11796 /* Did the file descriptor bug occur? */
11797 || fstat(fileno(stdout), &st) != 0
11802 if ac_fn_c_try_run "$LINENO"; then :
11803 ac_cv_func_vfork_works=yes
11805 ac_cv_func_vfork_works=no
11807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11808 conftest.$ac_objext conftest.beam conftest.$ac_ext
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11813 $as_echo "$ac_cv_func_vfork_works" >&6; }
11816 if test "x$ac_cv_func_fork_works" = xcross; then
11817 ac_cv_func_vfork_works=$ac_cv_func_vfork
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11819 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11822 if test "x$ac_cv_func_vfork_works" = xyes; then
11824 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11828 $as_echo "#define vfork fork" >>confdefs.h
11831 if test "x$ac_cv_func_fork_works" = xyes; then
11833 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11837 for ac_func in getauxval getrusage getuid getgid \
11838 pipe poll pread pread64 pwrite resize_term \
11839 sbrk setpgid setpgrp setsid \
11840 sigaction sigprocmask sigsetmask socketpair \
11841 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
11842 setrlimit getrlimit posix_madvise waitpid \
11843 ptrace64 sigaltstack mkdtemp setns
11845 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11846 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11847 eval as_val=\$$as_ac_var
11848 if test "x$as_val" = x""yes; then :
11849 cat >>confdefs.h <<_ACEOF
11850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11858 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11859 if test "${am_cv_langinfo_codeset+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11864 #include <langinfo.h>
11868 char* cs = nl_langinfo(CODESET);
11873 if ac_fn_c_try_link "$LINENO"; then :
11874 am_cv_langinfo_codeset=yes
11876 am_cv_langinfo_codeset=no
11878 rm -f core conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11883 $as_echo "$am_cv_langinfo_codeset" >&6; }
11884 if test $am_cv_langinfo_codeset = yes; then
11886 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11892 $as_echo_n "checking for ANSI C header files... " >&6; }
11893 if test "${ac_cv_header_stdc+set}" = set; then :
11894 $as_echo_n "(cached) " >&6
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11898 #include <stdlib.h>
11899 #include <stdarg.h>
11900 #include <string.h>
11911 if ac_fn_c_try_compile "$LINENO"; then :
11912 ac_cv_header_stdc=yes
11914 ac_cv_header_stdc=no
11916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11918 if test $ac_cv_header_stdc = yes; then
11919 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922 #include <string.h>
11925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11926 $EGREP "memchr" >/dev/null 2>&1; then :
11929 ac_cv_header_stdc=no
11935 if test $ac_cv_header_stdc = yes; then
11936 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11939 #include <stdlib.h>
11942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11943 $EGREP "free" >/dev/null 2>&1; then :
11946 ac_cv_header_stdc=no
11952 if test $ac_cv_header_stdc = yes; then
11953 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11954 if test "$cross_compiling" = yes; then :
11957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958 /* end confdefs.h. */
11960 #include <stdlib.h>
11961 #if ((' ' & 0x0FF) == 0x020)
11962 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11963 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11965 # define ISLOWER(c) \
11966 (('a' <= (c) && (c) <= 'i') \
11967 || ('j' <= (c) && (c) <= 'r') \
11968 || ('s' <= (c) && (c) <= 'z'))
11969 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11972 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11977 for (i = 0; i < 256; i++)
11978 if (XOR (islower (i), ISLOWER (i))
11979 || toupper (i) != TOUPPER (i))
11984 if ac_fn_c_try_run "$LINENO"; then :
11987 ac_cv_header_stdc=no
11989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11990 conftest.$ac_objext conftest.beam conftest.$ac_ext
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11996 $as_echo "$ac_cv_header_stdc" >&6; }
11997 if test $ac_cv_header_stdc = yes; then
11999 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12003 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12004 # for constant arguments. Useless!
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12006 $as_echo_n "checking for working alloca.h... " >&6; }
12007 if test "${ac_cv_working_alloca_h+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12012 #include <alloca.h>
12016 char *p = (char *) alloca (2 * sizeof (int));
12022 if ac_fn_c_try_link "$LINENO"; then :
12023 ac_cv_working_alloca_h=yes
12025 ac_cv_working_alloca_h=no
12027 rm -f core conftest.err conftest.$ac_objext \
12028 conftest$ac_exeext conftest.$ac_ext
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12031 $as_echo "$ac_cv_working_alloca_h" >&6; }
12032 if test $ac_cv_working_alloca_h = yes; then
12034 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12039 $as_echo_n "checking for alloca... " >&6; }
12040 if test "${ac_cv_func_alloca_works+set}" = set; then :
12041 $as_echo_n "(cached) " >&6
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h. */
12046 # define alloca __builtin_alloca
12049 # include <malloc.h>
12050 # define alloca _alloca
12052 # ifdef HAVE_ALLOCA_H
12053 # include <alloca.h>
12058 # ifndef alloca /* predefined by HP cc +Olibcalls */
12069 char *p = (char *) alloca (1);
12075 if ac_fn_c_try_link "$LINENO"; then :
12076 ac_cv_func_alloca_works=yes
12078 ac_cv_func_alloca_works=no
12080 rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12084 $as_echo "$ac_cv_func_alloca_works" >&6; }
12086 if test $ac_cv_func_alloca_works = yes; then
12088 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12091 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12092 # that cause trouble. Some versions do not even contain alloca or
12093 # contain a buggy version. If you still want to use their alloca,
12094 # use ar to extract alloca.o from them instead of compiling alloca.c.
12096 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12098 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12102 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12103 if test "${ac_cv_os_cray+set}" = set; then :
12104 $as_echo_n "(cached) " >&6
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12108 #if defined CRAY && ! defined CRAY2
12115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12116 $EGREP "webecray" >/dev/null 2>&1; then :
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12125 $as_echo "$ac_cv_os_cray" >&6; }
12126 if test $ac_cv_os_cray = yes; then
12127 for ac_func in _getb67 GETB67 getb67; do
12128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12129 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12130 eval as_val=\$$as_ac_var
12131 if test "x$as_val" = x""yes; then :
12133 cat >>confdefs.h <<_ACEOF
12134 #define CRAY_STACKSEG_END $ac_func
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12144 $as_echo_n "checking stack direction for C alloca... " >&6; }
12145 if test "${ac_cv_c_stack_direction+set}" = set; then :
12146 $as_echo_n "(cached) " >&6
12148 if test "$cross_compiling" = yes; then :
12149 ac_cv_c_stack_direction=0
12151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152 /* end confdefs.h. */
12153 $ac_includes_default
12155 find_stack_direction ()
12157 static char *addr = 0;
12162 return find_stack_direction ();
12165 return (&dummy > addr) ? 1 : -1;
12171 return find_stack_direction () < 0;
12174 if ac_fn_c_try_run "$LINENO"; then :
12175 ac_cv_c_stack_direction=1
12177 ac_cv_c_stack_direction=-1
12179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12180 conftest.$ac_objext conftest.beam conftest.$ac_ext
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12185 $as_echo "$ac_cv_c_stack_direction" >&6; }
12186 cat >>confdefs.h <<_ACEOF
12187 #define STACK_DIRECTION $ac_cv_c_stack_direction
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12196 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12197 if test "${am_cv_langinfo_codeset+set}" = set; then :
12198 $as_echo_n "(cached) " >&6
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202 #include <langinfo.h>
12206 char* cs = nl_langinfo(CODESET);
12211 if ac_fn_c_try_link "$LINENO"; then :
12212 am_cv_langinfo_codeset=yes
12214 am_cv_langinfo_codeset=no
12216 rm -f core conftest.err conftest.$ac_objext \
12217 conftest$ac_exeext conftest.$ac_ext
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12221 $as_echo "$am_cv_langinfo_codeset" >&6; }
12222 if test $am_cv_langinfo_codeset = yes; then
12224 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12229 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h
12231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12232 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12233 eval as_val=\$$as_ac_Header
12234 if test "x$as_val" = x""yes; then :
12235 cat >>confdefs.h <<_ACEOF
12236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12244 for ac_func in fdwalk getrlimit pipe pipe2 socketpair
12246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12247 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12248 eval as_val=\$$as_ac_var
12249 if test "x$as_val" = x""yes; then :
12250 cat >>confdefs.h <<_ACEOF
12251 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12258 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
12259 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
12265 cat >>confdefs.h <<_ACEOF
12266 #define HAVE_DECL_STRERROR $ac_have_decl
12268 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12269 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12275 cat >>confdefs.h <<_ACEOF
12276 #define HAVE_DECL_STRSTR $ac_have_decl
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12281 $as_echo_n "checking for sigsetjmp... " >&6; }
12282 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h. */
12288 #include <setjmp.h>
12293 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12298 if ac_fn_c_try_compile "$LINENO"; then :
12299 gdb_cv_func_sigsetjmp=yes
12301 gdb_cv_func_sigsetjmp=no
12303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12306 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12307 if test $gdb_cv_func_sigsetjmp = yes; then
12309 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12314 # Check the return and argument types of ptrace.
12317 for ac_header in sys/ptrace.h ptrace.h
12319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12320 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12321 eval as_val=\$$as_ac_Header
12322 if test "x$as_val" = x""yes; then :
12323 cat >>confdefs.h <<_ACEOF
12324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12332 gdb_ptrace_headers='
12333 #include <sys/types.h>
12334 #if HAVE_SYS_PTRACE_H
12335 # include <sys/ptrace.h>
12338 # include <unistd.h>
12341 # There is no point in checking if we don't have a prototype.
12342 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12344 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12350 cat >>confdefs.h <<_ACEOF
12351 #define HAVE_DECL_PTRACE $ac_have_decl
12353 if test $ac_have_decl = 1; then :
12357 : ${gdb_cv_func_ptrace_ret='int'}
12358 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12362 # Check return type. Varargs (used on GNU/Linux) conflict with the
12363 # empty argument list, so check for that explicitly.
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12365 $as_echo_n "checking return type of ptrace... " >&6; }
12366 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12371 $gdb_ptrace_headers
12375 extern long ptrace (enum __ptrace_request, ...);
12380 if ac_fn_c_try_compile "$LINENO"; then :
12381 gdb_cv_func_ptrace_ret='long'
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12385 $gdb_ptrace_headers
12389 extern int ptrace ();
12394 if ac_fn_c_try_compile "$LINENO"; then :
12395 gdb_cv_func_ptrace_ret='int'
12397 gdb_cv_func_ptrace_ret='long'
12399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12404 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12406 cat >>confdefs.h <<_ACEOF
12407 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12410 # Check argument types.
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12412 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12413 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12414 $as_echo_n "(cached) " >&6
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12419 $gdb_ptrace_headers
12423 extern long ptrace (enum __ptrace_request, ...);
12428 if ac_fn_c_try_compile "$LINENO"; then :
12429 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
12432 for gdb_arg1 in 'int' 'long'; do
12433 for gdb_arg2 in 'pid_t' 'int' 'long'; do
12434 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12435 for gdb_arg4 in 'int' 'long' 'void *'; do
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12438 $gdb_ptrace_headers
12443 extern $gdb_cv_func_ptrace_ret
12444 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12450 if ac_fn_c_try_compile "$LINENO"; then :
12451 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455 for gdb_arg5 in 'int *' 'int' 'long'; do
12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h. */
12458 $gdb_ptrace_headers
12463 extern $gdb_cv_func_ptrace_ret
12464 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12470 if ac_fn_c_try_compile "$LINENO"; then :
12472 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12481 # Provide a safe default value.
12482 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12488 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12489 ac_save_IFS=$IFS; IFS=','
12490 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12494 cat >>confdefs.h <<_ACEOF
12495 #define PTRACE_TYPE_ARG1 $1
12499 cat >>confdefs.h <<_ACEOF
12500 #define PTRACE_TYPE_ARG3 $3
12504 cat >>confdefs.h <<_ACEOF
12505 #define PTRACE_TYPE_ARG4 $4
12508 if test -n "$5"; then
12510 cat >>confdefs.h <<_ACEOF
12511 #define PTRACE_TYPE_ARG5 $5
12517 if test "$cross_compiling" = no; then
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12519 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12520 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12521 $as_echo_n "(cached) " >&6
12523 if test "$cross_compiling" = yes; then :
12524 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528 $ac_includes_default
12532 /* If this system has a BSD-style setpgrp which takes arguments,
12533 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12534 exit successfully. */
12535 return setpgrp (1,1) != -1;
12540 if ac_fn_c_try_run "$LINENO"; then :
12541 ac_cv_func_setpgrp_void=no
12543 ac_cv_func_setpgrp_void=yes
12545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12546 conftest.$ac_objext conftest.beam conftest.$ac_ext
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12551 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12552 if test $ac_cv_func_setpgrp_void = yes; then
12554 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12560 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12561 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12562 $as_echo_n "(cached) " >&6
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12567 #include <unistd.h>
12573 if (setpgrp(1,1) == -1)
12582 if ac_fn_c_try_compile "$LINENO"; then :
12583 ac_cv_func_setpgrp_void=no
12585 ac_cv_func_setpgrp_void=yes
12587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12590 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12591 if test $ac_cv_func_setpgrp_void = yes; then
12592 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12597 # Assume we'll default to using the included libiberty regex.
12598 gdb_use_included_regex=yes
12600 # However, if the system regex is GNU regex, then default to *not*
12601 # using the included regex.
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12603 $as_echo_n "checking for GNU regex... " >&6; }
12604 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12605 $as_echo_n "(cached) " >&6
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12609 #include <gnu-versions.h>
12613 #define REGEX_INTERFACE_VERSION 1
12614 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12615 # error "Version mismatch"
12621 if ac_fn_c_try_compile "$LINENO"; then :
12622 gdb_cv_have_gnu_regex=yes
12624 gdb_cv_have_gnu_regex=no
12626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12629 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12630 if test $gdb_cv_have_gnu_regex = yes; then
12631 gdb_use_included_regex=no
12635 # Check whether --with-included-regex was given.
12636 if test "${with_included_regex+set}" = set; then :
12637 withval=$with_included_regex; gdb_with_regex=$withval
12639 gdb_with_regex=$gdb_use_included_regex
12642 if test "$gdb_with_regex" = yes; then
12644 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12648 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12649 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12650 #include <sys/proc.h>
12653 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12655 cat >>confdefs.h <<_ACEOF
12656 #define HAVE_STRUCT_THREAD_TD_PCB 1
12663 # See if <sys/lwp.h> defines `struct lwp`.
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12665 $as_echo_n "checking for struct lwp... " >&6; }
12666 if test "${gdb_cv_struct_lwp+set}" = set; then :
12667 $as_echo_n "(cached) " >&6
12669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12670 /* end confdefs.h. */
12671 #include <sys/param.h>
12672 #include <sys/lwp.h>
12681 if ac_fn_c_try_compile "$LINENO"; then :
12682 gdb_cv_struct_lwp=yes
12684 gdb_cv_struct_lwp=no
12686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12689 $as_echo "$gdb_cv_struct_lwp" >&6; }
12690 if test $gdb_cv_struct_lwp = yes; then
12692 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12696 # See if <machine/reg.h> degines `struct reg'.
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12698 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12699 if test "${gdb_cv_struct_reg+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704 #include <sys/types.h>
12705 #include <machine/reg.h>
12714 if ac_fn_c_try_compile "$LINENO"; then :
12715 gdb_cv_struct_reg=yes
12717 gdb_cv_struct_reg=no
12719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12722 $as_echo "$gdb_cv_struct_reg" >&6; }
12723 if test $gdb_cv_struct_reg = yes; then
12725 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12729 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12730 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12731 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
12732 #include <machine/reg.h>
12734 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
12736 cat >>confdefs.h <<_ACEOF
12737 #define HAVE_STRUCT_REG_R_FS 1
12742 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
12743 #include <machine/reg.h>
12745 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
12747 cat >>confdefs.h <<_ACEOF
12748 #define HAVE_STRUCT_REG_R_GS 1
12755 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
12756 # Older amd64 Linux's don't have the fs_base and gs_base members of
12757 # `struct user_regs_struct'.
12758 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>
12760 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
12762 cat >>confdefs.h <<_ACEOF
12763 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
12768 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>
12770 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
12772 cat >>confdefs.h <<_ACEOF
12773 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
12780 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12782 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12783 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12784 $as_echo_n "(cached) " >&6
12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12788 #include <sys/ptrace.h>
12797 if ac_fn_c_try_compile "$LINENO"; then :
12798 gdb_cv_have_ptrace_getregs=yes
12800 gdb_cv_have_ptrace_getregs=no
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
12806 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
12807 if test $gdb_cv_have_ptrace_getregs = yes; then
12809 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
12813 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
12815 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
12816 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
12817 $as_echo_n "(cached) " >&6
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821 #include <sys/ptrace.h>
12830 if ac_fn_c_try_compile "$LINENO"; then :
12831 gdb_cv_have_ptrace_getfpxregs=yes
12833 gdb_cv_have_ptrace_getfpxregs=no
12835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12839 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12840 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12842 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12846 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12848 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12849 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12850 $as_echo_n "(cached) " >&6
12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h. */
12854 #include <sys/types.h>
12855 #include <sys/ptrace.h>
12864 if ac_fn_c_try_compile "$LINENO"; then :
12865 gdb_cv_have_pt_getdbregs=yes
12867 gdb_cv_have_pt_getdbregs=no
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12873 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12874 if test $gdb_cv_have_pt_getdbregs = yes; then
12876 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12880 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12882 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12883 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12884 $as_echo_n "(cached) " >&6
12886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887 /* end confdefs.h. */
12888 #include <sys/types.h>
12889 #include <sys/ptrace.h>
12898 if ac_fn_c_try_compile "$LINENO"; then :
12899 gdb_cv_have_pt_getxmmregs=yes
12901 gdb_cv_have_pt_getxmmregs=no
12903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12907 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12908 if test $gdb_cv_have_pt_getxmmregs = yes; then
12910 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12914 # See if <sys/ptrace.h> supports LWP names on FreeBSD
12915 # Older FreeBSD versions don't have the pl_tdname member of
12916 # `struct ptrace_lwpinfo'.
12917 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
12919 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = x""yes; then :
12921 cat >>confdefs.h <<_ACEOF
12922 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
12930 # Detect which type of /proc is in use, such as for Solaris.
12932 if test "${target}" = "${host}"; then
12934 *-*-sysv4.2* | *-*-sysv5* )
12936 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12939 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
12941 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12945 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12947 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12953 if test "$ac_cv_header_sys_procfs_h" = yes; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12955 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12956 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
12959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12960 /* end confdefs.h. */
12963 /* Needed for new procfs interface on sparc-solaris. */
12964 #define _STRUCTURED_PROC 1
12965 #include <sys/procfs.h>
12974 if ac_fn_c_try_compile "$LINENO"; then :
12975 bfd_cv_have_sys_procfs_type_gregset_t=yes
12977 bfd_cv_have_sys_procfs_type_gregset_t=no
12980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
12985 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
12989 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
12992 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
12993 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
13000 /* Needed for new procfs interface on sparc-solaris. */
13001 #define _STRUCTURED_PROC 1
13002 #include <sys/procfs.h>
13011 if ac_fn_c_try_compile "$LINENO"; then :
13012 bfd_cv_have_sys_procfs_type_fpregset_t=yes
13014 bfd_cv_have_sys_procfs_type_fpregset_t=no
13017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13022 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13026 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13029 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13030 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13031 $as_echo_n "(cached) " >&6
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13037 /* Needed for new procfs interface on sparc-solaris. */
13038 #define _STRUCTURED_PROC 1
13039 #include <sys/procfs.h>
13048 if ac_fn_c_try_compile "$LINENO"; then :
13049 bfd_cv_have_sys_procfs_type_prgregset_t=yes
13051 bfd_cv_have_sys_procfs_type_prgregset_t=no
13054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13057 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13059 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13063 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13066 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13067 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13068 $as_echo_n "(cached) " >&6
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h. */
13074 /* Needed for new procfs interface on sparc-solaris. */
13075 #define _STRUCTURED_PROC 1
13076 #include <sys/procfs.h>
13085 if ac_fn_c_try_compile "$LINENO"; then :
13086 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13088 bfd_cv_have_sys_procfs_type_prfpregset_t=no
13091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13094 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13096 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13100 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13103 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13104 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13111 /* Needed for new procfs interface on sparc-solaris. */
13112 #define _STRUCTURED_PROC 1
13113 #include <sys/procfs.h>
13122 if ac_fn_c_try_compile "$LINENO"; then :
13123 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13125 bfd_cv_have_sys_procfs_type_prgregset32_t=no
13128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13133 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13137 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13140 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13141 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13142 $as_echo_n "(cached) " >&6
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13148 /* Needed for new procfs interface on sparc-solaris. */
13149 #define _STRUCTURED_PROC 1
13150 #include <sys/procfs.h>
13159 if ac_fn_c_try_compile "$LINENO"; then :
13160 bfd_cv_have_sys_procfs_type_lwpid_t=yes
13162 bfd_cv_have_sys_procfs_type_lwpid_t=no
13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13170 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13174 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13177 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13178 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13179 $as_echo_n "(cached) " >&6
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13185 /* Needed for new procfs interface on sparc-solaris. */
13186 #define _STRUCTURED_PROC 1
13187 #include <sys/procfs.h>
13196 if ac_fn_c_try_compile "$LINENO"; then :
13197 bfd_cv_have_sys_procfs_type_psaddr_t=yes
13199 bfd_cv_have_sys_procfs_type_psaddr_t=no
13202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13205 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13207 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13211 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13214 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13215 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13222 /* Needed for new procfs interface on sparc-solaris. */
13223 #define _STRUCTURED_PROC 1
13224 #include <sys/procfs.h>
13233 if ac_fn_c_try_compile "$LINENO"; then :
13234 bfd_cv_have_sys_procfs_type_prsysent_t=yes
13236 bfd_cv_have_sys_procfs_type_prsysent_t=no
13239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13242 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13244 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13248 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13251 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13252 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13253 $as_echo_n "(cached) " >&6
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13259 /* Needed for new procfs interface on sparc-solaris. */
13260 #define _STRUCTURED_PROC 1
13261 #include <sys/procfs.h>
13270 if ac_fn_c_try_compile "$LINENO"; then :
13271 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13273 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13279 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13281 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13285 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13288 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13289 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13290 $as_echo_n "(cached) " >&6
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13296 /* Needed for new procfs interface on sparc-solaris. */
13297 #define _STRUCTURED_PROC 1
13298 #include <sys/procfs.h>
13302 pr_sigaction64_t avar
13307 if ac_fn_c_try_compile "$LINENO"; then :
13308 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13310 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13316 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13318 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13322 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13325 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13326 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13327 $as_echo_n "(cached) " >&6
13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13333 /* Needed for new procfs interface on sparc-solaris. */
13334 #define _STRUCTURED_PROC 1
13335 #include <sys/procfs.h>
13339 pr_siginfo64_t avar
13344 if ac_fn_c_try_compile "$LINENO"; then :
13345 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13347 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13353 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13355 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13359 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13365 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13367 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13368 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13369 $as_echo_n "(cached) " >&6
13371 if test "$cross_compiling" = yes; then :
13372 gdb_cv_prfpregset_t_broken=yes
13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h. */
13376 #include <sys/procfs.h>
13379 if (sizeof (prfpregset_t) == sizeof (void *))
13384 if ac_fn_c_try_run "$LINENO"; then :
13385 gdb_cv_prfpregset_t_broken=no
13387 gdb_cv_prfpregset_t_broken=yes
13389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13390 conftest.$ac_objext conftest.beam conftest.$ac_ext
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13396 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13397 if test $gdb_cv_prfpregset_t_broken = yes; then
13399 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13405 # Check if the compiler supports the `long long' type.
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13408 $as_echo_n "checking for long long support in compiler... " >&6; }
13409 if test "${gdb_cv_c_long_long+set}" = set; then :
13410 $as_echo_n "(cached) " >&6
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 extern long long foo;
13418 switch (foo & 2) { case 0: return 1; }
13423 if ac_fn_c_try_compile "$LINENO"; then :
13424 gdb_cv_c_long_long=yes
13426 gdb_cv_c_long_long=no
13428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13431 $as_echo "$gdb_cv_c_long_long" >&6; }
13432 if test $gdb_cv_c_long_long != yes; then
13433 # libdecnumber requires long long.
13434 as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
13437 # Check if the compiler and runtime support printing long longs.
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13440 $as_echo_n "checking for long long support in printf... " >&6; }
13441 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13442 $as_echo_n "(cached) " >&6
13444 if test "$cross_compiling" = yes; then :
13445 gdb_cv_printf_has_long_long=no
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13449 $ac_includes_default
13455 l = (l << 16) + 0x0123;
13456 l = (l << 16) + 0x4567;
13457 l = (l << 16) + 0x89ab;
13458 l = (l << 16) + 0xcdef;
13459 sprintf (buf, "0x%016llx", l);
13460 return (strcmp ("0x0123456789abcdef", buf));
13465 if ac_fn_c_try_run "$LINENO"; then :
13466 gdb_cv_printf_has_long_long=yes
13468 gdb_cv_printf_has_long_long=no
13470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13471 conftest.$ac_objext conftest.beam conftest.$ac_ext
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13476 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13477 if test $gdb_cv_printf_has_long_long = yes; then
13479 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13483 # Check if the compiler and runtime support printing decfloats.
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13486 $as_echo_n "checking for decfloat support in printf... " >&6; }
13487 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13488 $as_echo_n "(cached) " >&6
13490 if test "$cross_compiling" = yes; then :
13491 gdb_cv_printf_has_decfloat=no
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13495 $ac_includes_default
13500 _Decimal32 d32 = 1.2345df;
13501 _Decimal64 d64 = 1.2345dd;
13502 _Decimal128 d128 = 1.2345dl;
13503 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13504 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13509 if ac_fn_c_try_run "$LINENO"; then :
13510 gdb_cv_printf_has_decfloat=yes
13512 gdb_cv_printf_has_decfloat=no
13514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13515 conftest.$ac_objext conftest.beam conftest.$ac_ext
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
13520 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
13521 if test $gdb_cv_printf_has_decfloat = yes; then
13523 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
13527 # Check if the compiler supports the `long double' type. We can't use
13528 # AC_C_LONG_DOUBLE because that one does additional checks on the
13529 # constants defined in <float.h> that fail on some systems,
13530 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
13533 $as_echo_n "checking for long double support in compiler... " >&6; }
13534 if test "${gdb_cv_c_long_double+set}" = set; then :
13535 $as_echo_n "(cached) " >&6
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13541 if ac_fn_c_try_compile "$LINENO"; then :
13542 gdb_cv_c_long_double=yes
13544 gdb_cv_c_long_double=no
13546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
13549 $as_echo "$gdb_cv_c_long_double" >&6; }
13550 if test $gdb_cv_c_long_double = yes; then
13552 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13556 # Check if the compiler and runtime support printing long doubles.
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
13559 $as_echo_n "checking for long double support in printf... " >&6; }
13560 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
13561 $as_echo_n "(cached) " >&6
13563 if test "$cross_compiling" = yes; then :
13564 gdb_cv_printf_has_long_double=no
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568 $ac_includes_default
13573 long double f = 3.141592653;
13574 sprintf (buf, "%Lg", f);
13575 return (strncmp ("3.14159", buf, 7));
13580 if ac_fn_c_try_run "$LINENO"; then :
13581 gdb_cv_printf_has_long_double=yes
13583 gdb_cv_printf_has_long_double=no
13585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13586 conftest.$ac_objext conftest.beam conftest.$ac_ext
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
13591 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
13592 if test $gdb_cv_printf_has_long_double = yes; then
13594 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
13598 # Check if the compiler and runtime support scanning long doubles.
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
13601 $as_echo_n "checking for long double support in scanf... " >&6; }
13602 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
13603 $as_echo_n "(cached) " >&6
13605 if test "$cross_compiling" = yes; then :
13606 gdb_cv_scanf_has_long_double=no
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13614 char *buf = "3.141592653";
13616 sscanf (buf, "%Lg", &f);
13617 return !(f > 3.14159 && f < 3.14160);
13622 if ac_fn_c_try_run "$LINENO"; then :
13623 gdb_cv_scanf_has_long_double=yes
13625 gdb_cv_scanf_has_long_double=no
13627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13628 conftest.$ac_objext conftest.beam conftest.$ac_ext
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
13633 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
13634 if test $gdb_cv_scanf_has_long_double = yes; then
13636 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
13643 $as_echo_n "checking for -bbigtoc option... " >&6; }
13644 if test "${gdb_cv_bigtoc+set}" = set; then :
13645 $as_echo_n "(cached) " >&6
13648 SAVE_LDFLAGS=$LDFLAGS
13651 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
13652 *) gdb_cv_bigtoc=-bbigtoc ;;
13655 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13667 if ac_fn_c_try_link "$LINENO"; then :
13672 rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext
13674 LDFLAGS="${SAVE_LDFLAGS}"
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
13678 $as_echo "$gdb_cv_bigtoc" >&6; }
13679 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
13684 $as_echo_n "checking for the dynamic export flag... " >&6; }
13686 if test "${gdb_native}" = yes; then
13687 # The dynamically loaded libthread_db needs access to symbols in the gdb
13688 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
13689 # may not be supported there.
13690 old_LDFLAGS="$LDFLAGS"
13691 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
13692 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
13693 LDFLAGS="$LDFLAGS $RDYNAMIC"
13694 if test "${have_libpython}" = no; then
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13706 if ac_fn_c_try_link "$LINENO"; then :
13709 rm -f core conftest.err conftest.$ac_objext \
13710 conftest$ac_exeext conftest.$ac_ext
13712 # Workaround http://bugs.python.org/issue4434 where static
13713 # libpythonX.Y.a would get its symbols required for
13714 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
13715 # Problem does not happen for the recommended libpythonX.Y.so linkage.
13717 # Note the workaround for Python
13718 # http://bugs.python.org/issue10112 earlier has removed
13719 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
13720 # here too, as otherwise it'd make this -Wl,--dynamic-list test
13722 old_CFLAGS="$CFLAGS"
13723 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
13725 LIBS="$LIBS $PYTHON_LIBS"
13726 old_CPPFLAGS="$CPPFLAGS"
13727 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
13728 if test "$cross_compiling" = yes; then :
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 #include "Python.h"
13739 err = PyRun_SimpleString ("import itertools\n");
13741 return err == 0 ? 0 : 1;
13746 if ac_fn_c_try_run "$LINENO"; then :
13749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13750 conftest.$ac_objext conftest.beam conftest.$ac_ext
13754 CFLAGS="$old_CFLAGS"
13755 CPPFLAGS="$old_CPPFLAGS"
13757 LDFLAGS="$old_LDFLAGS"
13759 if $dynamic_list; then
13760 found="-Wl,--dynamic-list"
13761 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
13764 RDYNAMIC="-rdynamic"
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13768 $as_echo "$found" >&6; }
13771 if test ${build} = ${host} -a ${host} = ${target} ; then
13774 # See if thread_db library is around for Solaris thread debugging.
13775 # Note that we must explicitly test for version 1 of the library
13776 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
13779 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
13780 if test -f /usr/lib/libthread_db.so.1 ; then
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13782 $as_echo "yes" >&6; }
13784 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
13786 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
13787 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13789 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13790 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13791 $as_echo_n "(cached) " >&6
13793 ac_check_lib_save_LIBS=$LIBS
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h. */
13798 /* Override any GCC internal prototype to avoid an error.
13799 Use char because int might match the return type of a GCC
13800 builtin and then its argument prototype would still apply. */
13813 if ac_fn_c_try_link "$LINENO"; then :
13814 ac_cv_lib_dl_dlopen=yes
13816 ac_cv_lib_dl_dlopen=no
13818 rm -f core conftest.err conftest.$ac_objext \
13819 conftest$ac_exeext conftest.$ac_ext
13820 LIBS=$ac_check_lib_save_LIBS
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13823 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13824 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13825 cat >>confdefs.h <<_ACEOF
13826 #define HAVE_LIBDL 1
13833 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
13834 # Sun randomly tweaked the prototypes in <proc_service.h>
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
13837 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
13838 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13839 $as_echo_n "(cached) " >&6
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13845 #include <proc_service.h>
13846 ps_err_e ps_pdwrite
13847 (struct ps_prochandle*, psaddr_t, const void*, size_t);
13857 if ac_fn_c_try_compile "$LINENO"; then :
13858 gdb_cv_proc_service_is_old=no
13860 gdb_cv_proc_service_is_old=yes
13862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13867 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13868 if test $gdb_cv_proc_service_is_old = yes; then
13870 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875 $as_echo "no" >&6; }
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13880 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13881 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13882 $as_echo_n "(cached) " >&6
13884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13885 /* end confdefs.h. */
13886 #include <sys/pthdebug.h>
13890 #ifndef PTHDB_VERSION_3
13897 if ac_fn_c_try_compile "$LINENO"; then :
13898 gdb_cv_have_aix_thread_debug=yes
13900 gdb_cv_have_aix_thread_debug=no
13902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13906 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13907 if test $gdb_cv_have_aix_thread_debug = yes; then
13908 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
13909 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
13910 LIBS="$LIBS -lpthdebug"
13912 # Older versions of AIX do not provide the declaration for
13913 # the getthrds function (it appears that it was introduced
13915 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
13917 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
13923 cat >>confdefs.h <<_ACEOF
13924 #define HAVE_DECL_GETTHRDS $ac_have_decl
13933 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13935 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13936 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13937 $as_echo_n "(cached) " >&6
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13941 #include <thread_db.h>
13945 int i = TD_NOTALLOC;
13950 if ac_fn_c_try_compile "$LINENO"; then :
13951 gdb_cv_thread_db_h_has_td_notalloc=yes
13953 gdb_cv_thread_db_h_has_td_notalloc=no
13956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13960 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13962 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13963 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13964 $as_echo_n "(cached) " >&6
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13968 #include <thread_db.h>
13972 int i = TD_VERSION;
13977 if ac_fn_c_try_compile "$LINENO"; then :
13978 gdb_cv_thread_db_h_has_td_version=yes
13980 gdb_cv_thread_db_h_has_td_version=no
13983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
13987 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
13989 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
13990 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
13991 $as_echo_n "(cached) " >&6
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13995 #include <thread_db.h>
14004 if ac_fn_c_try_compile "$LINENO"; then :
14005 gdb_cv_thread_db_h_has_td_notls=yes
14007 gdb_cv_thread_db_h_has_td_notls=no
14010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14014 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14016 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14018 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14021 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14023 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14026 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14028 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14032 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14034 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14040 cat >>confdefs.h <<_ACEOF
14041 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14045 if test "$cross_compiling" = yes; then :
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14048 #include <sys/personality.h>
14053 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14054 # define ADDR_NO_RANDOMIZE 0x0040000
14056 /* Test the flag could be set and stays set. */
14057 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14058 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14064 if ac_fn_c_try_link "$LINENO"; then :
14065 have_personality=true
14067 have_personality=false
14069 rm -f core conftest.err conftest.$ac_objext \
14070 conftest$ac_exeext conftest.$ac_ext
14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h. */
14074 #include <sys/personality.h>
14079 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14080 # define ADDR_NO_RANDOMIZE 0x0040000
14082 /* Test the flag could be set and stays set. */
14083 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14084 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14090 if ac_fn_c_try_run "$LINENO"; then :
14091 have_personality=true
14093 have_personality=false
14095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14096 conftest.$ac_objext conftest.beam conftest.$ac_ext
14099 if $have_personality
14102 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14115 cat >>confdefs.h <<_ACEOF
14116 #define GDBINIT "$gdbinit"
14121 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
14122 # except that the argument to --with-sysroot is optional.
14123 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
14124 if test "x$with_sysroot" = xyes; then
14125 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
14128 # Check whether --with-sysroot was given.
14129 if test "${with_sysroot+set}" = set; then :
14130 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
14132 TARGET_SYSTEM_ROOT=
14136 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14137 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14138 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
14139 ac_define_dir=`eval echo $ac_define_dir`
14141 cat >>confdefs.h <<_ACEOF
14142 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
14148 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14149 if test "x$prefix" = xNONE; then
14150 test_prefix=/usr/local
14152 test_prefix=$prefix
14155 test_prefix=$exec_prefix
14158 case ${ac_define_dir} in
14159 "${test_prefix}"|"${test_prefix}/"*|\
14160 '${exec_prefix}'|'${exec_prefix}/'*)
14165 cat >>confdefs.h <<_ACEOF
14166 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
14173 # Check whether --with-system-gdbinit was given.
14174 if test "${with_system_gdbinit+set}" = set; then :
14175 withval=$with_system_gdbinit;
14176 SYSTEM_GDBINIT=$withval
14182 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14183 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14184 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14185 ac_define_dir=`eval echo $ac_define_dir`
14187 cat >>confdefs.h <<_ACEOF
14188 #define SYSTEM_GDBINIT "$ac_define_dir"
14194 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14195 if test "x$prefix" = xNONE; then
14196 test_prefix=/usr/local
14198 test_prefix=$prefix
14201 test_prefix=$exec_prefix
14204 case ${ac_define_dir} in
14205 "${test_prefix}"|"${test_prefix}/"*|\
14206 '${exec_prefix}'|'${exec_prefix}/'*)
14211 cat >>confdefs.h <<_ACEOF
14212 #define SYSTEM_GDBINIT_RELOCATABLE $value
14220 # Check whether --enable-werror was given.
14221 if test "${enable_werror+set}" = set; then :
14222 enableval=$enable_werror; case "${enableval}" in
14223 yes | y) ERROR_ON_WARNING="yes" ;;
14224 no | n) ERROR_ON_WARNING="no" ;;
14225 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14230 # Enable -Werror by default when using gcc. Turn it off for releases.
14231 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
14232 ERROR_ON_WARNING=yes
14236 if test "${ERROR_ON_WARNING}" = yes ; then
14237 WERROR_CFLAGS="-Werror"
14240 # These options work in either C or C++ modes.
14241 build_warnings="-Wall -Wpointer-arith \
14242 -Wno-unused -Wunused-value -Wunused-function \
14243 -Wno-switch -Wno-char-subscripts \
14246 # Now add in C and C++ specific options, depending on mode.
14247 if test "$enable_build_with_cxx" = "yes"; then
14248 build_warnings="$build_warnings -Wno-sign-compare -Wno-write-strings \
14251 build_warnings="$build_warnings -Wpointer-sign -Wmissing-prototypes \
14252 -Wdeclaration-after-statement -Wmissing-parameter-type \
14253 -Wold-style-declaration -Wold-style-definition"
14256 # Enable -Wno-format by default when using gcc on mingw since many
14257 # GCC versions complain about %I64.
14259 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14260 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
14263 # Check whether --enable-build-warnings was given.
14264 if test "${enable_build_warnings+set}" = set; then :
14265 enableval=$enable_build_warnings; case "${enableval}" in
14267 no) build_warnings="-w";;
14268 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14269 build_warnings="${build_warnings} ${t}";;
14270 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14271 build_warnings="${t} ${build_warnings}";;
14272 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14274 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14275 echo "Setting compiler warning flags = $build_warnings" 6>&1
14278 # Check whether --enable-gdb-build-warnings was given.
14279 if test "${enable_gdb_build_warnings+set}" = set; then :
14280 enableval=$enable_gdb_build_warnings; case "${enableval}" in
14282 no) build_warnings="-w";;
14283 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14284 build_warnings="${build_warnings} ${t}";;
14285 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14286 build_warnings="${t} ${build_warnings}";;
14287 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14289 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14290 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14294 # The set of warnings supported by a C++ compiler is not the same as
14295 # of the C compiler.
14296 if test "$enable_build_with_cxx" = "yes"; then
14298 ac_cpp='$CXXCPP $CPPFLAGS'
14299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14306 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14309 $as_echo_n "checking compiler warning flags... " >&6; }
14310 # Separate out the -Werror flag as some files just cannot be
14311 # compiled with it enabled.
14312 for w in ${build_warnings}; do
14313 # GCC does not complain about -Wno-unknown-warning. Invert
14314 # and test -Wunknown-warning instead.
14317 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
14323 -Werr*) WERROR_CFLAGS=-Werror ;;
14325 # Check whether GCC accepts it.
14326 saved_CFLAGS="$CFLAGS"
14327 CFLAGS="$CFLAGS $wtest"
14328 saved_CXXFLAGS="$CXXFLAGS"
14329 CXXFLAGS="$CXXFLAGS $wtest"
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14341 if ac_fn_cxx_try_compile "$LINENO"; then :
14342 WARN_CFLAGS="${WARN_CFLAGS} $w"
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 CFLAGS="$saved_CFLAGS"
14346 CXXFLAGS="$saved_CXXFLAGS"
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14350 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14355 if test "$enable_build_with_cxx" = "yes"; then
14357 ac_cpp='$CPP $CPPFLAGS'
14358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14365 # In the Cygwin environment, we need some additional flags.
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14367 $as_echo_n "checking for cygwin... " >&6; }
14368 if test "${gdb_cv_os_cygwin+set}" = set; then :
14369 $as_echo_n "(cached) " >&6
14371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14374 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14379 $EGREP "^lose$" >/dev/null 2>&1; then :
14380 gdb_cv_os_cygwin=yes
14382 gdb_cv_os_cygwin=no
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14388 $as_echo "$gdb_cv_os_cygwin" >&6; }
14391 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14393 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14394 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14395 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14399 # libreadline needs libuser32.a in a cygwin environment
14401 if test x$gdb_cv_os_cygwin = xyes; then
14402 WIN32LIBS="-luser32"
14403 case "${target}" in
14404 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14409 # The ser-tcp.c module requires sockets.
14413 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14415 WIN32LIBS="$WIN32LIBS -lws2_32"
14420 # Add ELF support to GDB, but only if BFD includes ELF support.
14423 OLD_LDFLAGS=$LDFLAGS
14425 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14426 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14427 # always want our bfd.
14428 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14429 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14430 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14431 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14432 LIBS="-lbfd -liberty -lz $intl $LIBS"
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14434 $as_echo_n "checking for ELF support in BFD... " >&6; }
14435 if test "${gdb_cv_var_elf+set}" = set; then :
14436 $as_echo_n "(cached) " >&6
14438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h. */
14440 #include <stdlib.h>
14442 #include "elf-bfd.h"
14447 return bfd_get_elf_phdr_upper_bound (NULL);
14452 if ac_fn_c_try_link "$LINENO"; then :
14457 rm -f core conftest.err conftest.$ac_objext \
14458 conftest$ac_exeext conftest.$ac_ext
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14461 $as_echo "$gdb_cv_var_elf" >&6; }
14463 LDFLAGS=$OLD_LDFLAGS
14465 if test $gdb_cv_var_elf = yes; then
14466 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
14468 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14470 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14471 if test "$plugins" = "yes"; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14473 $as_echo_n "checking for library containing dlopen... " >&6; }
14474 if test "${ac_cv_search_dlopen+set}" = set; then :
14475 $as_echo_n "(cached) " >&6
14477 ac_func_search_save_LIBS=$LIBS
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14481 /* Override any GCC internal prototype to avoid an error.
14482 Use char because int might match the return type of a GCC
14483 builtin and then its argument prototype would still apply. */
14496 for ac_lib in '' dl; do
14497 if test -z "$ac_lib"; then
14498 ac_res="none required"
14501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14503 if ac_fn_c_try_link "$LINENO"; then :
14504 ac_cv_search_dlopen=$ac_res
14506 rm -f core conftest.err conftest.$ac_objext \
14508 if test "${ac_cv_search_dlopen+set}" = set; then :
14512 if test "${ac_cv_search_dlopen+set}" = set; then :
14515 ac_cv_search_dlopen=no
14517 rm conftest.$ac_ext
14518 LIBS=$ac_func_search_save_LIBS
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14521 $as_echo "$ac_cv_search_dlopen" >&6; }
14522 ac_res=$ac_cv_search_dlopen
14523 if test "$ac_res" != no; then :
14524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14531 # Add macho support to GDB, but only if BFD includes it.
14534 OLD_LDFLAGS=$LDFLAGS
14536 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14537 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14538 # always want our bfd.
14539 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14540 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14541 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14542 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14543 LIBS="-lbfd -liberty -lz $intl $LIBS"
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
14545 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
14546 if test "${gdb_cv_var_macho+set}" = set; then :
14547 $as_echo_n "(cached) " >&6
14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14551 #include <stdlib.h>
14553 #include "mach-o.h"
14558 return bfd_mach_o_lookup_command (NULL, 0, NULL);
14563 if ac_fn_c_try_link "$LINENO"; then :
14564 gdb_cv_var_macho=yes
14566 gdb_cv_var_macho=no
14568 rm -f core conftest.err conftest.$ac_objext \
14569 conftest$ac_exeext conftest.$ac_ext
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
14572 $as_echo "$gdb_cv_var_macho" >&6; }
14574 LDFLAGS=$OLD_LDFLAGS
14576 if test $gdb_cv_var_macho = yes; then
14577 CONFIG_OBS="$CONFIG_OBS machoread.o"
14580 # Add any host-specific objects to GDB.
14581 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14583 # If building on ELF, look for lzma support for embedded compressed debug info.
14584 if test $gdb_cv_var_elf = yes; then
14586 # Check whether --with-lzma was given.
14587 if test "${with_lzma+set}" = set; then :
14588 withval=$with_lzma;
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
14594 $as_echo_n "checking whether to use lzma... " >&6; }
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
14596 $as_echo "$with_lzma" >&6; }
14598 if test "${with_lzma}" != no; then
14609 acl_save_prefix="$prefix"
14610 prefix="$acl_final_prefix"
14611 acl_save_exec_prefix="$exec_prefix"
14612 exec_prefix="$acl_final_exec_prefix"
14614 eval additional_includedir=\"$includedir\"
14615 eval additional_libdir=\"$libdir\"
14617 exec_prefix="$acl_save_exec_prefix"
14618 prefix="$acl_save_prefix"
14621 # Check whether --with-liblzma-prefix was given.
14622 if test "${with_liblzma_prefix+set}" = set; then :
14623 withval=$with_liblzma_prefix;
14624 if test "X$withval" = "Xno"; then
14627 if test "X$withval" = "X"; then
14629 acl_save_prefix="$prefix"
14630 prefix="$acl_final_prefix"
14631 acl_save_exec_prefix="$exec_prefix"
14632 exec_prefix="$acl_final_exec_prefix"
14634 eval additional_includedir=\"$includedir\"
14635 eval additional_libdir=\"$libdir\"
14637 exec_prefix="$acl_save_exec_prefix"
14638 prefix="$acl_save_prefix"
14641 additional_includedir="$withval/include"
14642 additional_libdir="$withval/lib"
14653 names_already_handled=
14654 names_next_round='lzma '
14655 while test -n "$names_next_round"; do
14656 names_this_round="$names_next_round"
14658 for name in $names_this_round; do
14660 for n in $names_already_handled; do
14661 if test "$n" = "$name"; then
14662 already_handled=yes
14666 if test -z "$already_handled"; then
14667 names_already_handled="$names_already_handled $name"
14668 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14669 eval value=\"\$HAVE_LIB$uppername\"
14670 if test -n "$value"; then
14671 if test "$value" = yes; then
14672 eval value=\"\$LIB$uppername\"
14673 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
14674 eval value=\"\$LTLIB$uppername\"
14675 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
14684 if test $use_additional = yes; then
14685 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14686 found_dir="$additional_libdir"
14687 found_so="$additional_libdir/lib$name.$shlibext"
14688 if test -f "$additional_libdir/lib$name.la"; then
14689 found_la="$additional_libdir/lib$name.la"
14692 if test -f "$additional_libdir/lib$name.$libext"; then
14693 found_dir="$additional_libdir"
14694 found_a="$additional_libdir/lib$name.$libext"
14695 if test -f "$additional_libdir/lib$name.la"; then
14696 found_la="$additional_libdir/lib$name.la"
14701 if test "X$found_dir" = "X"; then
14702 for x in $LDFLAGS $LTLIBLZMA; do
14704 acl_save_prefix="$prefix"
14705 prefix="$acl_final_prefix"
14706 acl_save_exec_prefix="$exec_prefix"
14707 exec_prefix="$acl_final_exec_prefix"
14709 exec_prefix="$acl_save_exec_prefix"
14710 prefix="$acl_save_prefix"
14714 dir=`echo "X$x" | sed -e 's/^X-L//'`
14715 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14717 found_so="$dir/lib$name.$shlibext"
14718 if test -f "$dir/lib$name.la"; then
14719 found_la="$dir/lib$name.la"
14722 if test -f "$dir/lib$name.$libext"; then
14724 found_a="$dir/lib$name.$libext"
14725 if test -f "$dir/lib$name.la"; then
14726 found_la="$dir/lib$name.la"
14732 if test "X$found_dir" != "X"; then
14737 if test "X$found_dir" != "X"; then
14738 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
14739 if test "X$found_so" != "X"; then
14740 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14741 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14744 for x in $ltrpathdirs; do
14745 if test "X$x" = "X$found_dir"; then
14750 if test -z "$haveit"; then
14751 ltrpathdirs="$ltrpathdirs $found_dir"
14753 if test "$hardcode_direct" = yes; then
14754 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14756 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14757 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14759 for x in $rpathdirs; do
14760 if test "X$x" = "X$found_dir"; then
14765 if test -z "$haveit"; then
14766 rpathdirs="$rpathdirs $found_dir"
14770 for x in $LDFLAGS $LIBLZMA; do
14772 acl_save_prefix="$prefix"
14773 prefix="$acl_final_prefix"
14774 acl_save_exec_prefix="$exec_prefix"
14775 exec_prefix="$acl_final_exec_prefix"
14777 exec_prefix="$acl_save_exec_prefix"
14778 prefix="$acl_save_prefix"
14780 if test "X$x" = "X-L$found_dir"; then
14785 if test -z "$haveit"; then
14786 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
14788 if test "$hardcode_minus_L" != no; then
14789 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14791 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
14797 if test "X$found_a" != "X"; then
14798 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
14800 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
14803 additional_includedir=
14804 case "$found_dir" in
14806 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14807 additional_includedir="$basedir/include"
14810 if test "X$additional_includedir" != "X"; then
14811 if test "X$additional_includedir" != "X/usr/include"; then
14813 if test "X$additional_includedir" = "X/usr/local/include"; then
14814 if test -n "$GCC"; then
14816 linux*) haveit=yes;;
14820 if test -z "$haveit"; then
14821 for x in $CPPFLAGS $INCLZMA; do
14823 acl_save_prefix="$prefix"
14824 prefix="$acl_final_prefix"
14825 acl_save_exec_prefix="$exec_prefix"
14826 exec_prefix="$acl_final_exec_prefix"
14828 exec_prefix="$acl_save_exec_prefix"
14829 prefix="$acl_save_prefix"
14831 if test "X$x" = "X-I$additional_includedir"; then
14836 if test -z "$haveit"; then
14837 if test -d "$additional_includedir"; then
14838 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
14844 if test -n "$found_la"; then
14845 save_libdir="$libdir"
14846 case "$found_la" in
14847 */* | *\\*) . "$found_la" ;;
14848 *) . "./$found_la" ;;
14850 libdir="$save_libdir"
14851 for dep in $dependency_libs; do
14854 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14855 if test "X$additional_libdir" != "X/usr/lib"; then
14857 if test "X$additional_libdir" = "X/usr/local/lib"; then
14858 if test -n "$GCC"; then
14860 linux*) haveit=yes;;
14864 if test -z "$haveit"; then
14866 for x in $LDFLAGS $LIBLZMA; do
14868 acl_save_prefix="$prefix"
14869 prefix="$acl_final_prefix"
14870 acl_save_exec_prefix="$exec_prefix"
14871 exec_prefix="$acl_final_exec_prefix"
14873 exec_prefix="$acl_save_exec_prefix"
14874 prefix="$acl_save_prefix"
14876 if test "X$x" = "X-L$additional_libdir"; then
14881 if test -z "$haveit"; then
14882 if test -d "$additional_libdir"; then
14883 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
14887 for x in $LDFLAGS $LTLIBLZMA; do
14889 acl_save_prefix="$prefix"
14890 prefix="$acl_final_prefix"
14891 acl_save_exec_prefix="$exec_prefix"
14892 exec_prefix="$acl_final_exec_prefix"
14894 exec_prefix="$acl_save_exec_prefix"
14895 prefix="$acl_save_prefix"
14897 if test "X$x" = "X-L$additional_libdir"; then
14902 if test -z "$haveit"; then
14903 if test -d "$additional_libdir"; then
14904 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14911 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14912 if test "$enable_rpath" != no; then
14914 for x in $rpathdirs; do
14915 if test "X$x" = "X$dir"; then
14920 if test -z "$haveit"; then
14921 rpathdirs="$rpathdirs $dir"
14924 for x in $ltrpathdirs; do
14925 if test "X$x" = "X$dir"; then
14930 if test -z "$haveit"; then
14931 ltrpathdirs="$ltrpathdirs $dir"
14936 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14939 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14942 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
14943 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
14949 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
14950 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
14956 if test "X$rpathdirs" != "X"; then
14957 if test -n "$hardcode_libdir_separator"; then
14959 for found_dir in $rpathdirs; do
14960 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14962 acl_save_libdir="$libdir"
14964 eval flag=\"$hardcode_libdir_flag_spec\"
14965 libdir="$acl_save_libdir"
14966 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
14968 for found_dir in $rpathdirs; do
14969 acl_save_libdir="$libdir"
14970 libdir="$found_dir"
14971 eval flag=\"$hardcode_libdir_flag_spec\"
14972 libdir="$acl_save_libdir"
14973 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
14977 if test "X$ltrpathdirs" != "X"; then
14978 for found_dir in $ltrpathdirs; do
14979 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
14984 ac_save_CPPFLAGS="$CPPFLAGS"
14986 for element in $INCLZMA; do
14988 for x in $CPPFLAGS; do
14990 acl_save_prefix="$prefix"
14991 prefix="$acl_final_prefix"
14992 acl_save_exec_prefix="$exec_prefix"
14993 exec_prefix="$acl_final_exec_prefix"
14995 exec_prefix="$acl_save_exec_prefix"
14996 prefix="$acl_save_prefix"
14998 if test "X$x" = "X$element"; then
15003 if test -z "$haveit"; then
15004 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
15010 $as_echo_n "checking for liblzma... " >&6; }
15011 if test "${ac_cv_liblzma+set}" = set; then :
15012 $as_echo_n "(cached) " >&6
15015 ac_save_LIBS="$LIBS"
15016 LIBS="$LIBS $LIBLZMA"
15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15018 /* end confdefs.h. */
15023 lzma_index_iter iter;
15024 lzma_index_iter_init (&iter, 0);
15025 lzma_mf_is_supported (LZMA_MF_HC3);
15030 if ac_fn_c_try_link "$LINENO"; then :
15035 rm -f core conftest.err conftest.$ac_objext \
15036 conftest$ac_exeext conftest.$ac_ext
15037 LIBS="$ac_save_LIBS"
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
15041 $as_echo "$ac_cv_liblzma" >&6; }
15042 if test "$ac_cv_liblzma" = yes; then
15045 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
15048 $as_echo_n "checking how to link with liblzma... " >&6; }
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
15050 $as_echo "$LIBLZMA" >&6; }
15053 CPPFLAGS="$ac_save_CPPFLAGS"
15063 if test "$HAVE_LIBLZMA" != yes; then
15064 if test "$with_lzma" = yes; then
15065 as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
15071 LIBGUI="../libgui/src/libgui.a"
15072 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
15081 *-*-cygwin* | *-*-mingw* )
15090 if test "${enable_gdbtk}" = "yes"; then
15092 # Gdbtk must have an absolute path to srcdir in order to run
15093 # properly when not installed.
15096 GDBTK_SRC_DIR=`pwd`
15101 # Ok, lets find the tcl configuration
15102 # First, look for one uninstalled.
15103 # the alternative search directory is invoked by --with-tcl
15106 if test x"${no_tcl}" = x ; then
15107 # we reset no_tcl in case something fails here
15110 # Check whether --with-tcl was given.
15111 if test "${with_tcl+set}" = set; then :
15112 withval=$with_tcl; with_tclconfig=${withval}
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15116 $as_echo_n "checking for Tcl configuration... " >&6; }
15117 if test "${ac_cv_c_tclconfig+set}" = set; then :
15118 $as_echo_n "(cached) " >&6
15122 # First check to see if --with-tcl was specified.
15124 *-*-cygwin*) platDir="win" ;;
15125 *) platDir="unix" ;;
15127 if test x"${with_tclconfig}" != x ; then
15128 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15129 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15131 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15135 # then check for a private Tcl installation
15136 if test x"${ac_cv_c_tclconfig}" = x ; then
15139 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15140 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15141 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15143 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15144 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15145 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15147 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15148 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15149 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15150 if test -f "$i/$platDir/tclConfig.sh" ; then
15151 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15157 # on Darwin, check in Framework installation locations
15158 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15159 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15160 `ls -d /Library/Frameworks 2>/dev/null` \
15161 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15162 `ls -d /System/Library/Frameworks 2>/dev/null` \
15164 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15165 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15171 # check in a few common install locations
15172 if test x"${ac_cv_c_tclconfig}" = x ; then
15173 for i in `ls -d ${libdir} 2>/dev/null` \
15174 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15175 `ls -d ${prefix}/lib 2>/dev/null` \
15176 `ls -d /usr/local/lib 2>/dev/null` \
15177 `ls -d /usr/contrib/lib 2>/dev/null` \
15178 `ls -d /usr/lib 2>/dev/null` \
15180 if test -f "$i/tclConfig.sh" ; then
15181 ac_cv_c_tclconfig=`(cd $i; pwd)`
15187 # check in a few other private locations
15188 if test x"${ac_cv_c_tclconfig}" = x ; then
15191 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15192 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15193 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15194 if test -f "$i/$platDir/tclConfig.sh" ; then
15195 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15204 if test x"${ac_cv_c_tclconfig}" = x ; then
15205 TCL_BIN_DIR="# no Tcl configs found"
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15207 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15210 TCL_BIN_DIR=${ac_cv_c_tclconfig}
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15212 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15217 # If $no_tk is nonempty, then we can't do Tk, and there is no
15218 # point to doing Tcl.
15221 # Ok, lets find the tk configuration
15222 # First, look for one uninstalled.
15223 # the alternative search directory is invoked by --with-tk
15226 if test x"${no_tk}" = x ; then
15227 # we reset no_tk in case something fails here
15230 # Check whether --with-tk was given.
15231 if test "${with_tk+set}" = set; then :
15232 withval=$with_tk; with_tkconfig=${withval}
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15236 $as_echo_n "checking for Tk configuration... " >&6; }
15237 if test "${ac_cv_c_tkconfig+set}" = set; then :
15238 $as_echo_n "(cached) " >&6
15242 # First check to see if --with-tkconfig was specified.
15243 if test x"${with_tkconfig}" != x ; then
15244 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15245 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15247 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15251 # then check for a private Tk library
15253 *-*-cygwin*) platDir="win" ;;
15254 *) platDir="unix" ;;
15256 if test x"${ac_cv_c_tkconfig}" = x ; then
15259 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15260 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15261 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15263 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15264 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15265 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15267 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15268 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15269 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15270 if test -f "$i/$platDir/tkConfig.sh" ; then
15271 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15277 # on Darwin, check in Framework installation locations
15278 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15279 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15280 `ls -d /Library/Frameworks 2>/dev/null` \
15281 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15282 `ls -d /System/Library/Frameworks 2>/dev/null` \
15284 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15285 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15291 # check in a few common install locations
15292 if test x"${ac_cv_c_tkconfig}" = x ; then
15293 for i in `ls -d ${libdir} 2>/dev/null` \
15294 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15295 `ls -d ${prefix}/lib 2>/dev/null` \
15296 `ls -d /usr/local/lib 2>/dev/null` \
15297 `ls -d /usr/contrib/lib 2>/dev/null` \
15298 `ls -d /usr/lib 2>/dev/null` \
15300 if test -f "$i/tkConfig.sh" ; then
15301 ac_cv_c_tkconfig=`(cd $i; pwd)`
15306 # check in a few other private locations
15307 if test x"${ac_cv_c_tkconfig}" = x ; then
15310 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15311 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15312 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15313 if test -f "$i/$platDir/tkConfig.sh" ; then
15314 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15323 if test x"${ac_cv_c_tkconfig}" = x ; then
15324 TK_BIN_DIR="# no Tk configs found"
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15326 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15329 TK_BIN_DIR=${ac_cv_c_tkconfig}
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15331 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15336 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15339 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15341 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15343 $as_echo "loading" >&6; }
15344 . ${TCL_BIN_DIR}/tclConfig.sh
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15347 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15350 # eval is required to do the TCL_DBGX substitution
15351 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15352 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15354 # If the TCL_BIN_DIR is the build directory (not the install directory),
15355 # then set the common variable name to the value of the build variables.
15356 # For example, the variable TCL_LIB_SPEC will be set to the value
15357 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15358 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15359 # installed and uninstalled version of Tcl.
15360 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15361 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15362 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15363 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15364 elif test "`uname -s`" = "Darwin"; then
15365 # If Tcl was built as a framework, attempt to use the libraries
15366 # from the framework at the given location so that linking works
15367 # against Tcl.framework installed in an arbitrary location.
15368 case ${TCL_DEFS} in
15370 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15371 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15372 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15373 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15374 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15379 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15380 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15381 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15387 # eval is required to do the TCL_DBGX substitution
15388 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15389 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15390 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15391 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15407 # Check for in-tree tcl
15414 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15418 # Find Tcl private headers
15419 if test x"${intree}" = xno; then
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15422 $as_echo_n "checking for Tcl private headers... " >&6; }
15424 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15425 if test -f ${dir}/tclInt.h ; then
15429 if test x"${private_dir}" = x; then
15430 as_fn_error "could not find private Tcl headers" "$LINENO" 5
15432 TCL_PRIVATE_INCLUDE="-I${private_dir}"
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15434 $as_echo "${private_dir}" >&6; }
15437 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15438 TCL_LIBRARY="${TCL_LIB_SPEC}"
15441 # If building tcl in the same src tree, private headers
15442 # are not needed, but we need to be sure to use the right
15444 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15445 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15446 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15454 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15456 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15458 $as_echo "loading" >&6; }
15459 . ${TK_BIN_DIR}/tkConfig.sh
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15462 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15465 # eval is required to do the TK_DBGX substitution
15466 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15467 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15469 # If the TK_BIN_DIR is the build directory (not the install directory),
15470 # then set the common variable name to the value of the build variables.
15471 # For example, the variable TK_LIB_SPEC will be set to the value
15472 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15473 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15474 # installed and uninstalled version of Tcl.
15475 if test -f "${TK_BIN_DIR}/Makefile" ; then
15476 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15477 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15478 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15479 elif test "`uname -s`" = "Darwin"; then
15480 # If Tk was built as a framework, attempt to use the libraries
15481 # from the framework at the given location so that linking works
15482 # against Tk.framework installed in an arbitrary location.
15485 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15486 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15487 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15488 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15489 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15494 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15495 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15496 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15502 # eval is required to do the TK_DBGX substitution
15503 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15504 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15505 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15506 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15521 # Check for in-tree Tk
15523 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15527 # Find Tk private headers
15528 if test x"${intree}" = xno; then
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15531 $as_echo_n "checking for Tk private headers... " >&6; }
15533 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15534 if test -f ${dir}/tkInt.h; then
15538 if test x"${private_dir}" = x; then
15539 as_fn_error "could not find Tk private headers" "$LINENO" 5
15541 TK_PRIVATE_INCLUDE="-I${private_dir}"
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15543 $as_echo "${private_dir}" >&6; }
15546 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15547 TK_LIBRARY=${TK_LIB_SPEC}
15550 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15551 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15552 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15559 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15561 # Include some libraries that Tcl and Tk want.
15562 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15563 # Yes, the ordering seems wrong here. But it isn't.
15564 # TK_LIBS is the list of libraries that need to be linked
15565 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15566 # were in LIBS then any link tests after this point would
15567 # try to include things like `$(LIBGUI)', which wouldn't work.
15568 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15570 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15571 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15572 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15573 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15574 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15575 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15576 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15578 if test x$gdb_cv_os_cygwin = xyes; then
15579 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15580 WIN32LDAPP="-Wl,--subsystem,console"
15581 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15584 subdirs="$subdirs gdbtk"
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15597 $as_echo_n "checking for X... " >&6; }
15600 # Check whether --with-x was given.
15601 if test "${with_x+set}" = set; then :
15605 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15606 if test "x$with_x" = xno; then
15607 # The user explicitly disabled X.
15610 case $x_includes,$x_libraries in #(
15611 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15612 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15613 $as_echo_n "(cached) " >&6
15615 # One or both of the vars are not set, and there is no cached value.
15616 ac_x_includes=no ac_x_libraries=no
15617 rm -f -r conftest.dir
15618 if mkdir conftest.dir; then
15620 cat >Imakefile <<'_ACEOF'
15622 @echo incroot='${INCROOT}'
15624 @echo usrlibdir='${USRLIBDIR}'
15626 @echo libdir='${LIBDIR}'
15628 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15630 for ac_var in incroot usrlibdir libdir; do
15631 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15633 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15634 for ac_extension in a so sl dylib la dll; do
15635 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15636 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15637 ac_im_usrlibdir=$ac_im_libdir; break
15640 # Screen out bogus values from the imake configuration. They are
15641 # bogus both because they are the default anyway, and because
15642 # using them would break gcc on systems where it needs fixed includes.
15643 case $ac_im_incroot in
15644 /usr/include) ac_x_includes= ;;
15645 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15647 case $ac_im_usrlibdir in
15648 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15649 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15653 rm -f -r conftest.dir
15656 # Standard set of common directories for X headers.
15657 # Check X11 before X11Rn because it is often a symlink to the current release.
15671 /usr/local/X11/include
15672 /usr/local/X11R7/include
15673 /usr/local/X11R6/include
15674 /usr/local/X11R5/include
15675 /usr/local/X11R4/include
15677 /usr/local/include/X11
15678 /usr/local/include/X11R7
15679 /usr/local/include/X11R6
15680 /usr/local/include/X11R5
15681 /usr/local/include/X11R4
15685 /usr/XFree86/include/X11
15689 /usr/unsupported/include
15690 /usr/athena/include
15691 /usr/local/x11r5/include
15692 /usr/lpp/Xamples/include
15694 /usr/openwin/include
15695 /usr/openwin/share/include'
15697 if test "$ac_x_includes" = no; then
15698 # Guess where to find include files, by looking for Xlib.h.
15699 # First, try using that file with no special directory specified.
15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15701 /* end confdefs.h. */
15702 #include <X11/Xlib.h>
15704 if ac_fn_c_try_cpp "$LINENO"; then :
15705 # We can compile using X headers with no special include directory.
15708 for ac_dir in $ac_x_header_dirs; do
15709 if test -r "$ac_dir/X11/Xlib.h"; then
15710 ac_x_includes=$ac_dir
15715 rm -f conftest.err conftest.$ac_ext
15716 fi # $ac_x_includes = no
15718 if test "$ac_x_libraries" = no; then
15719 # Check for the libraries.
15720 # See if we find them without any special options.
15721 # Don't add to $LIBS permanently.
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15726 #include <X11/Xlib.h>
15735 if ac_fn_c_try_link "$LINENO"; then :
15737 # We can link X programs with no special library path.
15741 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15743 # Don't even attempt the hair of trying to link an X program!
15744 for ac_extension in a so sl dylib la dll; do
15745 if test -r "$ac_dir/libX11.$ac_extension"; then
15746 ac_x_libraries=$ac_dir
15752 rm -f core conftest.err conftest.$ac_objext \
15753 conftest$ac_exeext conftest.$ac_ext
15754 fi # $ac_x_libraries = no
15756 case $ac_x_includes,$ac_x_libraries in #(
15757 no,* | *,no | *\'*)
15758 # Didn't find X, or a directory has "'" in its name.
15759 ac_cv_have_x="have_x=no";; #(
15761 # Record where we found X for the cache.
15762 ac_cv_have_x="have_x=yes\
15763 ac_x_includes='$ac_x_includes'\
15764 ac_x_libraries='$ac_x_libraries'"
15770 eval "$ac_cv_have_x"
15773 if test "$have_x" != yes; then
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15775 $as_echo "$have_x" >&6; }
15778 # If each of the values was on the command line, it overrides each guess.
15779 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15780 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15781 # Update the cache value to reflect the command line values.
15782 ac_cv_have_x="have_x=yes\
15783 ac_x_includes='$x_includes'\
15784 ac_x_libraries='$x_libraries'"
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15786 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15790 # Unlike the sim directory, whether a simulator is linked is controlled by
15791 # presence of a gdb_sim definition in the target configure.tgt entry.
15792 # This code just checks for a few cases where we'd like to ignore those
15793 # definitions, even when they're present in the '.mt' file. These cases
15794 # are when --disable-sim is specified, or if the simulator directory is
15795 # not part of the source tree.
15797 # Check whether --enable-sim was given.
15798 if test "${enable_sim+set}" = set; then :
15799 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15800 echo "enableval = ${enableval}";
15801 case "${enableval}" in
15802 yes) ignore_sim=false ;;
15803 no) ignore_sim=true ;;
15804 *) ignore_sim=false ;;
15811 if test ! -d "${srcdir}/../sim"; then
15817 if test "${ignore_sim}" = "false"; then
15818 if test x"${gdb_sim}" != x ; then
15820 SIM_OBS="remote-sim.o"
15822 $as_echo "#define WITH_SIM 1" >>confdefs.h
15825 # Some tdep code should only be compiled in when the ppc sim is
15826 # built. PR sim/13418.
15830 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
15850 # List of host floatformats.
15852 cat >>confdefs.h <<_ACEOF
15853 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15857 cat >>confdefs.h <<_ACEOF
15858 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15862 cat >>confdefs.h <<_ACEOF
15863 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15867 # target_subdir is used by the testsuite to find the target libraries.
15869 if test "${host}" != "${target}"; then
15870 target_subdir="${target_alias}/"
15875 if test "${gdb_native}" = "yes"; then
15876 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15877 if test ! -f ${host_makefile_frag}; then
15878 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15880 frags="$frags $host_makefile_frag"
15882 host_makefile_frag=/dev/null
15888 if test "${gdb_native}" = "yes"; then
15889 # We pick this up from the host configuration file (.mh) because we
15890 # do not have a native configuration Makefile fragment.
15891 nativefile=`sed -n '
15892 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15893 ' ${host_makefile_frag}`
15897 if test x"${gdb_osabi}" != x ; then
15899 cat >>confdefs.h <<_ACEOF
15900 #define GDB_OSABI_DEFAULT $gdb_osabi
15905 # Enable multi-ice-gdb-server.
15906 # Check whether --enable-multi-ice was given.
15907 if test "${enable_multi_ice+set}" = set; then :
15908 enableval=$enable_multi_ice; case $enableval in
15911 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15915 if test "x$enable_multi_ice" = xyes; then
15916 subdirs="$subdirs multi-ice"
15920 # Check whether --enable-gdbserver was given.
15921 if test "${enable_gdbserver+set}" = set; then :
15922 enableval=$enable_gdbserver; case "${enableval}" in
15924 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15927 enable_gdbserver=auto
15931 # We only build gdbserver automatically in a native configuration, and
15932 # only if the user did not explicitly disable its build.
15933 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15935 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15936 if test "x$build_gdbserver" = xyes; then
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15938 $as_echo "yes" >&6; }
15939 subdirs="$subdirs gdbserver"
15941 gdbserver_build_enabled=yes
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15944 $as_echo "no" >&6; }
15948 # If the user explicitly request the gdbserver to be built, verify that
15949 # we were in fact able to enable it.
15950 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15951 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15954 # Check for babeltrace and babeltrace-ctf
15956 # Check whether --with-babeltrace was given.
15957 if test "${with_babeltrace+set}" = set; then :
15958 withval=$with_babeltrace;
15960 with_babeltrace=auto
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
15964 $as_echo_n "checking whether to use babeltrace... " >&6; }
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
15966 $as_echo "$with_babeltrace" >&6; }
15968 if test "x$with_babeltrace" = "xno"; then
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
15970 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
15972 # Append -Werror to CFLAGS so that configure can catch the warning
15973 # "assignment from incompatible pointer type", which is related to
15974 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
15975 # in GDB, while babeltrace 1.0.3 is broken.
15976 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
15977 # safe to save and restore CFLAGS here.
15978 saved_CFLAGS=$CFLAGS
15979 CFLAGS="$CFLAGS -Werror"
15990 acl_save_prefix="$prefix"
15991 prefix="$acl_final_prefix"
15992 acl_save_exec_prefix="$exec_prefix"
15993 exec_prefix="$acl_final_exec_prefix"
15995 eval additional_includedir=\"$includedir\"
15996 eval additional_libdir=\"$libdir\"
15998 exec_prefix="$acl_save_exec_prefix"
15999 prefix="$acl_save_prefix"
16002 # Check whether --with-libbabeltrace-prefix was given.
16003 if test "${with_libbabeltrace_prefix+set}" = set; then :
16004 withval=$with_libbabeltrace_prefix;
16005 if test "X$withval" = "Xno"; then
16008 if test "X$withval" = "X"; then
16010 acl_save_prefix="$prefix"
16011 prefix="$acl_final_prefix"
16012 acl_save_exec_prefix="$exec_prefix"
16013 exec_prefix="$acl_final_exec_prefix"
16015 eval additional_includedir=\"$includedir\"
16016 eval additional_libdir=\"$libdir\"
16018 exec_prefix="$acl_save_exec_prefix"
16019 prefix="$acl_save_prefix"
16022 additional_includedir="$withval/include"
16023 additional_libdir="$withval/lib"
16034 names_already_handled=
16035 names_next_round='babeltrace babeltrace-ctf'
16036 while test -n "$names_next_round"; do
16037 names_this_round="$names_next_round"
16039 for name in $names_this_round; do
16041 for n in $names_already_handled; do
16042 if test "$n" = "$name"; then
16043 already_handled=yes
16047 if test -z "$already_handled"; then
16048 names_already_handled="$names_already_handled $name"
16049 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16050 eval value=\"\$HAVE_LIB$uppername\"
16051 if test -n "$value"; then
16052 if test "$value" = yes; then
16053 eval value=\"\$LIB$uppername\"
16054 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
16055 eval value=\"\$LTLIB$uppername\"
16056 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
16065 if test $use_additional = yes; then
16066 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16067 found_dir="$additional_libdir"
16068 found_so="$additional_libdir/lib$name.$shlibext"
16069 if test -f "$additional_libdir/lib$name.la"; then
16070 found_la="$additional_libdir/lib$name.la"
16073 if test -f "$additional_libdir/lib$name.$libext"; then
16074 found_dir="$additional_libdir"
16075 found_a="$additional_libdir/lib$name.$libext"
16076 if test -f "$additional_libdir/lib$name.la"; then
16077 found_la="$additional_libdir/lib$name.la"
16082 if test "X$found_dir" = "X"; then
16083 for x in $LDFLAGS $LTLIBBABELTRACE; do
16085 acl_save_prefix="$prefix"
16086 prefix="$acl_final_prefix"
16087 acl_save_exec_prefix="$exec_prefix"
16088 exec_prefix="$acl_final_exec_prefix"
16090 exec_prefix="$acl_save_exec_prefix"
16091 prefix="$acl_save_prefix"
16095 dir=`echo "X$x" | sed -e 's/^X-L//'`
16096 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16098 found_so="$dir/lib$name.$shlibext"
16099 if test -f "$dir/lib$name.la"; then
16100 found_la="$dir/lib$name.la"
16103 if test -f "$dir/lib$name.$libext"; then
16105 found_a="$dir/lib$name.$libext"
16106 if test -f "$dir/lib$name.la"; then
16107 found_la="$dir/lib$name.la"
16113 if test "X$found_dir" != "X"; then
16118 if test "X$found_dir" != "X"; then
16119 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
16120 if test "X$found_so" != "X"; then
16121 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16122 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16125 for x in $ltrpathdirs; do
16126 if test "X$x" = "X$found_dir"; then
16131 if test -z "$haveit"; then
16132 ltrpathdirs="$ltrpathdirs $found_dir"
16134 if test "$hardcode_direct" = yes; then
16135 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16137 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16138 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16140 for x in $rpathdirs; do
16141 if test "X$x" = "X$found_dir"; then
16146 if test -z "$haveit"; then
16147 rpathdirs="$rpathdirs $found_dir"
16151 for x in $LDFLAGS $LIBBABELTRACE; do
16153 acl_save_prefix="$prefix"
16154 prefix="$acl_final_prefix"
16155 acl_save_exec_prefix="$exec_prefix"
16156 exec_prefix="$acl_final_exec_prefix"
16158 exec_prefix="$acl_save_exec_prefix"
16159 prefix="$acl_save_prefix"
16161 if test "X$x" = "X-L$found_dir"; then
16166 if test -z "$haveit"; then
16167 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
16169 if test "$hardcode_minus_L" != no; then
16170 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16172 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16178 if test "X$found_a" != "X"; then
16179 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
16181 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
16184 additional_includedir=
16185 case "$found_dir" in
16187 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16188 additional_includedir="$basedir/include"
16191 if test "X$additional_includedir" != "X"; then
16192 if test "X$additional_includedir" != "X/usr/include"; then
16194 if test "X$additional_includedir" = "X/usr/local/include"; then
16195 if test -n "$GCC"; then
16197 linux*) haveit=yes;;
16201 if test -z "$haveit"; then
16202 for x in $CPPFLAGS $INCBABELTRACE; do
16204 acl_save_prefix="$prefix"
16205 prefix="$acl_final_prefix"
16206 acl_save_exec_prefix="$exec_prefix"
16207 exec_prefix="$acl_final_exec_prefix"
16209 exec_prefix="$acl_save_exec_prefix"
16210 prefix="$acl_save_prefix"
16212 if test "X$x" = "X-I$additional_includedir"; then
16217 if test -z "$haveit"; then
16218 if test -d "$additional_includedir"; then
16219 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
16225 if test -n "$found_la"; then
16226 save_libdir="$libdir"
16227 case "$found_la" in
16228 */* | *\\*) . "$found_la" ;;
16229 *) . "./$found_la" ;;
16231 libdir="$save_libdir"
16232 for dep in $dependency_libs; do
16235 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16236 if test "X$additional_libdir" != "X/usr/lib"; then
16238 if test "X$additional_libdir" = "X/usr/local/lib"; then
16239 if test -n "$GCC"; then
16241 linux*) haveit=yes;;
16245 if test -z "$haveit"; then
16247 for x in $LDFLAGS $LIBBABELTRACE; do
16249 acl_save_prefix="$prefix"
16250 prefix="$acl_final_prefix"
16251 acl_save_exec_prefix="$exec_prefix"
16252 exec_prefix="$acl_final_exec_prefix"
16254 exec_prefix="$acl_save_exec_prefix"
16255 prefix="$acl_save_prefix"
16257 if test "X$x" = "X-L$additional_libdir"; then
16262 if test -z "$haveit"; then
16263 if test -d "$additional_libdir"; then
16264 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
16268 for x in $LDFLAGS $LTLIBBABELTRACE; do
16270 acl_save_prefix="$prefix"
16271 prefix="$acl_final_prefix"
16272 acl_save_exec_prefix="$exec_prefix"
16273 exec_prefix="$acl_final_exec_prefix"
16275 exec_prefix="$acl_save_exec_prefix"
16276 prefix="$acl_save_prefix"
16278 if test "X$x" = "X-L$additional_libdir"; then
16283 if test -z "$haveit"; then
16284 if test -d "$additional_libdir"; then
16285 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
16292 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16293 if test "$enable_rpath" != no; then
16295 for x in $rpathdirs; do
16296 if test "X$x" = "X$dir"; then
16301 if test -z "$haveit"; then
16302 rpathdirs="$rpathdirs $dir"
16305 for x in $ltrpathdirs; do
16306 if test "X$x" = "X$dir"; then
16311 if test -z "$haveit"; then
16312 ltrpathdirs="$ltrpathdirs $dir"
16317 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16320 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16323 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
16324 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
16330 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16331 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
16337 if test "X$rpathdirs" != "X"; then
16338 if test -n "$hardcode_libdir_separator"; then
16340 for found_dir in $rpathdirs; do
16341 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16343 acl_save_libdir="$libdir"
16345 eval flag=\"$hardcode_libdir_flag_spec\"
16346 libdir="$acl_save_libdir"
16347 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16349 for found_dir in $rpathdirs; do
16350 acl_save_libdir="$libdir"
16351 libdir="$found_dir"
16352 eval flag=\"$hardcode_libdir_flag_spec\"
16353 libdir="$acl_save_libdir"
16354 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16358 if test "X$ltrpathdirs" != "X"; then
16359 for found_dir in $ltrpathdirs; do
16360 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
16365 ac_save_CPPFLAGS="$CPPFLAGS"
16367 for element in $INCBABELTRACE; do
16369 for x in $CPPFLAGS; do
16371 acl_save_prefix="$prefix"
16372 prefix="$acl_final_prefix"
16373 acl_save_exec_prefix="$exec_prefix"
16374 exec_prefix="$acl_final_exec_prefix"
16376 exec_prefix="$acl_save_exec_prefix"
16377 prefix="$acl_save_prefix"
16379 if test "X$x" = "X$element"; then
16384 if test -z "$haveit"; then
16385 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
16391 $as_echo_n "checking for libbabeltrace... " >&6; }
16392 if test "${ac_cv_libbabeltrace+set}" = set; then :
16393 $as_echo_n "(cached) " >&6
16396 ac_save_LIBS="$LIBS"
16397 LIBS="$LIBS $LIBBABELTRACE"
16398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399 /* end confdefs.h. */
16400 #include <babeltrace/babeltrace.h>
16401 #include <babeltrace/ctf/events.h>
16402 #include <babeltrace/ctf/iterator.h>
16406 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
16407 struct bt_ctf_event *event = NULL;
16408 const struct bt_definition *scope;
16410 pos.type = BT_SEEK_BEGIN;
16411 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
16412 scope = bt_ctf_get_top_level_scope (event,
16413 BT_STREAM_EVENT_HEADER);
16414 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
16420 if ac_fn_c_try_link "$LINENO"; then :
16421 ac_cv_libbabeltrace=yes
16423 ac_cv_libbabeltrace=no
16425 rm -f core conftest.err conftest.$ac_objext \
16426 conftest$ac_exeext conftest.$ac_ext
16427 LIBS="$ac_save_LIBS"
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
16431 $as_echo "$ac_cv_libbabeltrace" >&6; }
16432 if test "$ac_cv_libbabeltrace" = yes; then
16433 HAVE_LIBBABELTRACE=yes
16435 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
16438 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
16440 $as_echo "$LIBBABELTRACE" >&6; }
16442 HAVE_LIBBABELTRACE=no
16443 CPPFLAGS="$ac_save_CPPFLAGS"
16453 CFLAGS=$saved_CFLAGS
16455 if test "$HAVE_LIBBABELTRACE" != yes; then
16456 if test "$with_babeltrace" = yes; then
16457 as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
16460 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
16465 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16466 # to an empty version.
16472 if test "${nativefile}" != ""; then
16473 case "${nativefile}" in
16474 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
16475 * ) GDB_NM_FILE="${nativefile}"
16477 files="${files} ${GDB_NM_FILE}"
16478 links="${links} nm.h"
16480 cat >>confdefs.h <<_ACEOF
16481 #define GDB_NM_FILE "${GDB_NM_FILE}"
16487 ac_sources="$files"
16489 while test -n "$ac_sources"; do
16490 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16491 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16492 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
16494 ac_config_links="$ac_config_links $ac_config_links_1"
16500 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16504 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16505 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
16506 if test "x$GDB_TRANSFORM_NAME" = x; then
16507 GDB_TRANSFORM_NAME=gdb
16512 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16513 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
16514 if test "x$GCORE_TRANSFORM_NAME" = x; then
16515 GCORE_TRANSFORM_NAME=gcore
16519 ac_config_files="$ac_config_files gcore"
16521 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
16524 cat >confcache <<\_ACEOF
16525 # This file is a shell script that caches the results of configure
16526 # tests run on this system so they can be shared between configure
16527 # scripts and configure runs, see configure's option --config-cache.
16528 # It is not useful on other systems. If it contains results you don't
16529 # want to keep, you may remove or edit it.
16531 # config.status only pays attention to the cache file if you give it
16532 # the --recheck option to rerun configure.
16534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16536 # following values.
16540 # The following way of writing the cache mishandles newlines in values,
16541 # but we know of no workaround that is simple, portable, and efficient.
16542 # So, we kill variables containing newlines.
16543 # Ultrix sh set writes to stderr and can't be redirected directly,
16544 # and sets the high bit in the cache file unless we assign to the vars.
16546 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16547 eval ac_val=\$$ac_var
16551 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16552 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16555 _ | IFS | as_nl) ;; #(
16556 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16557 *) { eval $ac_var=; unset $ac_var;} ;;
16563 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16564 *${as_nl}ac_space=\ *)
16565 # `set' does not quote correctly, so add quotes: double-quote
16566 # substitution turns \\\\ into \\, and sed turns \\ into \.
16569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16572 # `set' quotes correctly as required by POSIX, so do not add quotes.
16573 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16584 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16586 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16587 if test -w "$cache_file"; then
16588 test "x$cache_file" != "x/dev/null" &&
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16590 $as_echo "$as_me: updating cache $cache_file" >&6;}
16591 cat confcache >$cache_file
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16594 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16599 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16600 # Let make expand exec_prefix.
16601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16603 DEFS=-DHAVE_CONFIG_H
16607 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16608 # 1. Remove the extension, and $U if already installed.
16609 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16610 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16611 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16612 # will be set to the directory where LIBOBJS objects are built.
16613 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16614 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16616 LIBOBJS=$ac_libobjs
16618 LTLIBOBJS=$ac_ltlibobjs
16621 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16622 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16625 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16626 as_fn_error "conditional \"GMAKE\" was never defined.
16627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16629 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16630 as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
16631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16633 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
16634 as_fn_error "conditional \"HAVE_GUILE\" was never defined.
16635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16639 : ${CONFIG_STATUS=./config.status}
16641 ac_clean_files_save=$ac_clean_files
16642 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16644 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16646 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16648 # Generated by $as_me.
16649 # Run this file to recreate the current configuration.
16650 # Compiler output produced by configure, useful for debugging
16651 # configure, is in config.log if it exists.
16654 ac_cs_recheck=false
16657 SHELL=\${CONFIG_SHELL-$SHELL}
16660 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16661 ## -------------------- ##
16662 ## M4sh Initialization. ##
16663 ## -------------------- ##
16665 # Be more Bourne compatible
16666 DUALCASE=1; export DUALCASE # for MKS sh
16667 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16670 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16671 # is contrary to our usage. Disable this feature.
16672 alias -g '${1+"$@"}'='"$@"'
16673 setopt NO_GLOB_SUBST
16675 case `(set -o) 2>/dev/null` in #(
16687 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16688 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16691 # Prefer a ksh shell builtin over an external printf program on Solaris,
16692 # but without wasting forks for bash or zsh.
16693 if test -z "$BASH_VERSION$ZSH_VERSION" \
16694 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16695 as_echo='print -r --'
16696 as_echo_n='print -rn --'
16697 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16698 as_echo='printf %s\n'
16699 as_echo_n='printf %s'
16701 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16702 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16703 as_echo_n='/usr/ucb/echo -n'
16705 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16706 as_echo_n_body='eval
16710 expr "X$arg" : "X\\(.*\\)$as_nl";
16711 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16713 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16715 export as_echo_n_body
16716 as_echo_n='sh -c $as_echo_n_body as_echo'
16718 export as_echo_body
16719 as_echo='sh -c $as_echo_body as_echo'
16722 # The user is always right.
16723 if test "${PATH_SEPARATOR+set}" != set; then
16725 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16726 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16733 # We need space, tab and new line, in precisely that order. Quoting is
16734 # there to prevent editors from complaining about space-tab.
16735 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16736 # splitting by setting IFS to empty value.)
16739 # Find who we are. Look in the path if we contain no directory separator.
16741 *[\\/]* ) as_myself=$0 ;;
16742 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743 for as_dir in $PATH
16746 test -z "$as_dir" && as_dir=.
16747 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16753 # We did not find ourselves, most probably we were run as `sh COMMAND'
16754 # in which case we are not to be found in the path.
16755 if test "x$as_myself" = x; then
16758 if test ! -f "$as_myself"; then
16759 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16763 # Unset variables that we do not need and which cause bugs (e.g. in
16764 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16765 # suppresses any "Segmentation fault" message there. '((' could
16766 # trigger a bug in pdksh 5.2.14.
16767 for as_var in BASH_ENV ENV MAIL MAILPATH
16768 do eval test x\${$as_var+set} = xset \
16769 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16785 # as_fn_error ERROR [LINENO LOG_FD]
16786 # ---------------------------------
16787 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16788 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16789 # script with status $?, using 1 if that was 0.
16792 as_status=$?; test $as_status -eq 0 && as_status=1
16794 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16795 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16797 $as_echo "$as_me: error: $1" >&2
16798 as_fn_exit $as_status
16802 # as_fn_set_status STATUS
16803 # -----------------------
16804 # Set $? to STATUS, without forking.
16805 as_fn_set_status ()
16808 } # as_fn_set_status
16810 # as_fn_exit STATUS
16811 # -----------------
16812 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16816 as_fn_set_status $1
16822 # Portably unset VAR.
16825 { eval $1=; unset $1;}
16827 as_unset=as_fn_unset
16828 # as_fn_append VAR VALUE
16829 # ----------------------
16830 # Append the text in VALUE to the end of the definition contained in VAR. Take
16831 # advantage of any shell optimizations that allow amortized linear growth over
16832 # repeated appends, instead of the typical quadratic growth present in naive
16834 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16835 eval 'as_fn_append ()
16846 # as_fn_arith ARG...
16847 # ------------------
16848 # Perform arithmetic evaluation on the ARGs, and store the result in the
16849 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16850 # must be portable across $(()) and expr.
16851 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16852 eval 'as_fn_arith ()
16859 as_val=`expr "$@" || test $? -eq 1`
16864 if expr a : '\(a\)' >/dev/null 2>&1 &&
16865 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16871 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16872 as_basename=basename
16877 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16883 as_me=`$as_basename -- "$0" ||
16884 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16885 X"$0" : 'X\(//\)$' \| \
16886 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16888 sed '/^.*\/\([^/][^/]*\)\/*$/{
16902 # Avoid depending upon Character Ranges.
16903 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16904 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16905 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16906 as_cr_digits='0123456789'
16907 as_cr_alnum=$as_cr_Letters$as_cr_digits
16909 ECHO_C= ECHO_N= ECHO_T=
16910 case `echo -n x` in #(((((
16912 case `echo 'xy\c'` in
16913 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16915 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16922 rm -f conf$$ conf$$.exe conf$$.file
16923 if test -d conf$$.dir; then
16924 rm -f conf$$.dir/conf$$.file
16927 mkdir conf$$.dir 2>/dev/null
16929 if (echo >conf$$.file) 2>/dev/null; then
16930 if ln -s conf$$.file conf$$ 2>/dev/null; then
16932 # ... but there are two gotchas:
16933 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16934 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16935 # In both cases, we have to default to `cp -p'.
16936 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16938 elif ln conf$$.file conf$$ 2>/dev/null; then
16946 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16947 rmdir conf$$.dir 2>/dev/null
16952 # Create "$as_dir" as a directory, including parents if necessary.
16957 -*) as_dir=./$as_dir;;
16959 test -d "$as_dir" || eval $as_mkdir_p || {
16963 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16964 *) as_qdir=$as_dir;;
16966 as_dirs="'$as_qdir' $as_dirs"
16967 as_dir=`$as_dirname -- "$as_dir" ||
16968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16969 X"$as_dir" : 'X\(//\)[^/]' \| \
16970 X"$as_dir" : 'X\(//\)$' \| \
16971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16972 $as_echo X"$as_dir" |
16973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16977 /^X\(\/\/\)[^/].*/{
16990 test -d "$as_dir" && break
16992 test -z "$as_dirs" || eval "mkdir $as_dirs"
16993 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16997 if mkdir -p . 2>/dev/null; then
16998 as_mkdir_p='mkdir -p "$as_dir"'
17000 test -d ./-p && rmdir ./-p
17004 if test -x / >/dev/null 2>&1; then
17005 as_test_x='test -x'
17007 if ls -dL / >/dev/null 2>&1; then
17014 if test -d "$1"; then
17020 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17021 ???[sx]*):;;*)false;;esac;fi
17025 as_executable_p=$as_test_x
17027 # Sed expression to map a string onto a valid CPP name.
17028 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17030 # Sed expression to map a string onto a valid variable name.
17031 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17035 ## ----------------------------------- ##
17036 ## Main body of $CONFIG_STATUS script. ##
17037 ## ----------------------------------- ##
17039 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17042 # Save the log message, to keep $0 and so on meaningful, and to
17043 # report actual input values of CONFIG_FILES etc. instead of their
17044 # values after options handling.
17046 This file was extended by $as_me, which was
17047 generated by GNU Autoconf 2.64. Invocation command line was
17049 CONFIG_FILES = $CONFIG_FILES
17050 CONFIG_HEADERS = $CONFIG_HEADERS
17051 CONFIG_LINKS = $CONFIG_LINKS
17052 CONFIG_COMMANDS = $CONFIG_COMMANDS
17055 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17060 case $ac_config_files in *"
17061 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17064 case $ac_config_headers in *"
17065 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17070 # Files that config.status was made for.
17071 config_files="$ac_config_files"
17072 config_headers="$ac_config_headers"
17073 config_links="$ac_config_links"
17074 config_commands="$ac_config_commands"
17078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17080 \`$as_me' instantiates files and other configuration actions
17081 from templates according to the current configuration. Unless the files
17082 and actions are specified as TAGs, all are instantiated by default.
17084 Usage: $0 [OPTION]... [TAG]...
17086 -h, --help print this help, then exit
17087 -V, --version print version number and configuration settings, then exit
17088 -q, --quiet, --silent
17089 do not print progress messages
17090 -d, --debug don't remove temporary files
17091 --recheck update $as_me by reconfiguring in the same conditions
17092 --file=FILE[:TEMPLATE]
17093 instantiate the configuration file FILE
17094 --header=FILE[:TEMPLATE]
17095 instantiate the configuration header FILE
17097 Configuration files:
17100 Configuration headers:
17103 Configuration links:
17106 Configuration commands:
17109 Report bugs to the package provider."
17112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17115 configured by $0, generated by GNU Autoconf 2.64,
17116 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17118 Copyright (C) 2009 Free Software Foundation, Inc.
17119 This config.status script is free software; the Free Software Foundation
17120 gives unlimited permission to copy, distribute and modify it."
17126 test -n "\$AWK" || AWK=awk
17129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17130 # The default lists apply if the user does not specify any file.
17136 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17137 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17148 # Handling of the options.
17149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17151 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17152 $as_echo "$ac_cs_version"; exit ;;
17153 --debug | --debu | --deb | --de | --d | -d )
17155 --file | --fil | --fi | --f )
17158 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17160 as_fn_append CONFIG_FILES " '$ac_optarg'"
17161 ac_need_defaults=false;;
17162 --header | --heade | --head | --hea )
17165 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17167 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17168 ac_need_defaults=false;;
17170 # Conflict between --help and --header
17171 as_fn_error "ambiguous option: \`$1'
17172 Try \`$0 --help' for more information.";;
17173 --help | --hel | -h )
17174 $as_echo "$ac_cs_usage"; exit ;;
17175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17176 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17179 # This is an error.
17180 -*) as_fn_error "unrecognized option: \`$1'
17181 Try \`$0 --help' for more information." ;;
17183 *) as_fn_append ac_config_targets " $1"
17184 ac_need_defaults=false ;;
17190 ac_configure_extra_args=
17192 if $ac_cs_silent; then
17194 ac_configure_extra_args="$ac_configure_extra_args --silent"
17198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17199 if \$ac_cs_recheck; then
17200 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17202 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17203 CONFIG_SHELL='$SHELL'
17204 export CONFIG_SHELL
17209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17213 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17214 ## Running $as_me. ##
17220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17224 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17230 # Handling of arguments.
17231 for ac_config_target in $ac_config_targets
17233 case $ac_config_target in
17234 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17235 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
17236 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
17237 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
17238 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
17239 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17240 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
17241 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17242 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
17244 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17249 # If the user did not use the arguments to specify the items to instantiate,
17250 # then the envvar interface is used. Set only those that are not.
17251 # We use the long form for the default assignment because of an extremely
17252 # bizarre bug on SunOS 4.1.3.
17253 if $ac_need_defaults; then
17254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17256 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17257 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17260 # Have a temporary directory for convenience. Make it in the build tree
17261 # simply because there is no reason against having it here, and in addition,
17262 # creating and moving files from /tmp can sometimes cause problems.
17263 # Hook for its removal unless debugging.
17264 # Note that there is a small window in which the directory will not be cleaned:
17265 # after its creation but before its name has been assigned to `$tmp'.
17269 trap 'exit_status=$?
17270 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17272 trap 'as_fn_exit 1' 1 2 13 15
17274 # Create a (secure) tmp directory for tmp files.
17277 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17278 test -n "$tmp" && test -d "$tmp"
17281 tmp=./conf$$-$RANDOM
17282 (umask 077 && mkdir "$tmp")
17283 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17285 # Set up the scripts for CONFIG_FILES section.
17286 # No need to generate them if there are no CONFIG_FILES.
17287 # This happens for instance with `./config.status config.h'.
17288 if test -n "$CONFIG_FILES"; then
17290 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17291 ac_cs_awk_getline=:
17292 ac_cs_awk_pipe_init=
17293 ac_cs_awk_read_file='
17294 while ((getline aline < (F[key])) > 0)
17297 ac_cs_awk_pipe_fini=
17299 ac_cs_awk_getline=false
17300 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17301 ac_cs_awk_read_file='
17303 print "cat " F[key] " &&"
17304 '$ac_cs_awk_pipe_init
17305 # The final `:' finishes the AND list.
17306 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17308 ac_cr=`echo X | tr X '\015'`
17309 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17310 # But we know of no other shell where ac_cr would be empty at this
17311 # point, so we can use a bashism as a fallback.
17312 if test "x$ac_cr" = x; then
17313 eval ac_cr=\$\'\\r\'
17315 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17316 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17319 ac_cs_awk_cr=$ac_cr
17322 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17325 # Create commands to substitute file output variables.
17327 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17328 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17329 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17332 } >conf$$files.sh &&
17333 . ./conf$$files.sh ||
17334 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17335 rm -f conf$$files.sh
17338 echo "cat >conf$$subs.awk <<_ACEOF" &&
17339 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17341 } >conf$$subs.sh ||
17342 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17343 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17345 for ac_last_try in false false false false false :; do
17346 . ./conf$$subs.sh ||
17347 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17349 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17350 if test $ac_delim_n = $ac_delim_num; then
17352 elif $ac_last_try; then
17353 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17358 rm -f conf$$subs.sh
17360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17361 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17365 s/^/S["/; s/!.*/"]=/
17375 s/\(.\{148\}\).*/\1/
17377 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17382 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17389 s/\(.\{148\}\).*/\1/
17391 s/["\\]/\\&/g; s/^/"/; s/$/"/
17395 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17400 ' <conf$$subs.awk | sed '
17405 ' >>$CONFIG_STATUS || ac_write_fail=1
17406 rm -f conf$$subs.awk
17407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17409 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17410 for (key in S) S_is_set[key] = 1
17412 \$ac_cs_awk_pipe_init
17416 nfields = split(line, field, "@")
17418 len = length(field[1])
17419 for (i = 2; i < nfields; i++) {
17421 keylen = length(key)
17422 if (S_is_set[key]) {
17424 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17425 len += length(value) + length(field[++i])
17430 if (nfields == 3 && !substed) {
17432 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17433 \$ac_cs_awk_read_file
17439 \$ac_cs_awk_pipe_fini
17442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17443 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17444 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17447 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17448 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17451 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17452 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17453 # trailing colons and then remove the whole line if VPATH becomes empty
17454 # (actually we leave an empty line to preserve line numbers).
17455 if test "x$srcdir" = x.; then
17456 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17457 s/:*\$(srcdir):*/:/
17458 s/:*\${srcdir}:*/:/
17460 s/^\([^=]*=[ ]*\):*/\1/
17466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17467 fi # test -n "$CONFIG_FILES"
17469 # Set up the scripts for CONFIG_HEADERS section.
17470 # No need to generate them if there are no CONFIG_HEADERS.
17471 # This happens for instance with `./config.status Makefile'.
17472 if test -n "$CONFIG_HEADERS"; then
17473 cat >"$tmp/defines.awk" <<\_ACAWK ||
17477 # Transform confdefs.h into an awk script `defines.awk', embedded as
17478 # here-document in config.status, that substitutes the proper values into
17479 # config.h.in to produce config.h.
17481 # Create a delimiter string that does not exist in confdefs.h, to ease
17482 # handling of long lines.
17484 for ac_last_try in false false :; do
17485 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17486 if test -z "$ac_t"; then
17488 elif $ac_last_try; then
17489 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17491 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17495 # For the awk script, D is an array of macro values keyed by name,
17496 # likewise P contains macro parameters if any. Preserve backslash
17497 # newline sequences.
17499 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17501 s/.\{148\}/&'"$ac_delim"'/g
17504 s/^[ ]*#[ ]*define[ ][ ]*/ /
17511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17513 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17517 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17518 D["\1"]=" \3\\\\\\n"\\/p
17520 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17525 s/.\{148\}/&'"$ac_delim"'/g
17530 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17533 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17535 ' <confdefs.h | sed '
17536 s/'"$ac_delim"'/"\\\
17537 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17540 for (key in D) D_is_set[key] = 1
17543 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17545 split(line, arg, " ")
17546 if (arg[1] == "#") {
17550 defundef = substr(arg[1], 2)
17553 split(mac1, mac2, "(") #)
17555 prefix = substr(line, 1, index(line, defundef) - 1)
17556 if (D_is_set[macro]) {
17557 # Preserve the white space surrounding the "#".
17558 print prefix "define", macro P[macro] D[macro]
17561 # Replace #undef with comments. This is necessary, for example,
17562 # in the case of _POSIX_SOURCE, which is predefined and required
17563 # on some systems where configure will not decide to define it.
17564 if (defundef == "undef") {
17565 print "/*", prefix defundef, macro, "*/"
17573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17574 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17575 fi # test -n "$CONFIG_HEADERS"
17578 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17583 :[FHLC]) ac_mode=$ac_tag; continue;;
17585 case $ac_mode$ac_tag in
17587 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17588 :[FH]-) ac_tag=-:-;;
17589 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17606 -) ac_f="$tmp/stdin";;
17607 *) # Look for the file first in the build tree, then in the source tree
17608 # (if the path is not absolute). The absolute path cannot be DOS-style,
17609 # because $ac_f cannot contain `:'.
17613 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17615 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17617 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17618 as_fn_append ac_file_inputs " '$ac_f'"
17621 # Let's still pretend it is `configure' which instantiates (i.e., don't
17622 # use $as_me), people would be surprised to read:
17623 # /* config.h. Generated by config.status. */
17624 configure_input='Generated from '`
17625 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17627 if test x"$ac_file" != x-; then
17628 configure_input="$ac_file. $configure_input"
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17630 $as_echo "$as_me: creating $ac_file" >&6;}
17632 # Neutralize special characters interpreted by sed in replacement strings.
17633 case $configure_input in #(
17634 *\&* | *\|* | *\\* )
17635 ac_sed_conf_input=`$as_echo "$configure_input" |
17636 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17637 *) ac_sed_conf_input=$configure_input;;
17641 *:-:* | *:-) cat >"$tmp/stdin" \
17642 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17647 ac_dir=`$as_dirname -- "$ac_file" ||
17648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17649 X"$ac_file" : 'X\(//\)[^/]' \| \
17650 X"$ac_file" : 'X\(//\)$' \| \
17651 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17652 $as_echo X"$ac_file" |
17653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17657 /^X\(\/\/\)[^/].*/{
17670 as_dir="$ac_dir"; as_fn_mkdir_p
17674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17677 # A ".." for each directory in $ac_dir_suffix.
17678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17679 case $ac_top_builddir_sub in
17680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17684 ac_abs_top_builddir=$ac_pwd
17685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17686 # for backward compatibility:
17687 ac_top_builddir=$ac_top_build_prefix
17690 .) # We are building in place.
17692 ac_top_srcdir=$ac_top_builddir_sub
17693 ac_abs_top_srcdir=$ac_pwd ;;
17694 [\\/]* | ?:[\\/]* ) # Absolute name.
17695 ac_srcdir=$srcdir$ac_dir_suffix;
17696 ac_top_srcdir=$srcdir
17697 ac_abs_top_srcdir=$srcdir ;;
17698 *) # Relative name.
17699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17700 ac_top_srcdir=$ac_top_build_prefix$srcdir
17701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17713 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17714 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17719 # If the template does not know about datarootdir, expand it.
17720 # FIXME: This hack should be removed a few years after 2.60.
17721 ac_datarootdir_hack=; ac_datarootdir_seen=
17732 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17733 *datarootdir*) ac_datarootdir_seen=yes;;
17734 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17736 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17739 ac_datarootdir_hack='
17740 s&@datadir@&$datadir&g
17741 s&@docdir@&$docdir&g
17742 s&@infodir@&$infodir&g
17743 s&@localedir@&$localedir&g
17744 s&@mandir@&$mandir&g
17745 s&\\\${datarootdir}&$datarootdir&g' ;;
17749 # Neutralize VPATH when `$srcdir' = `.'.
17750 # Shell code in configure.ac might set extrasub.
17751 # FIXME: do we really want to maintain this feature?
17752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17753 ac_sed_extra="$ac_vpsub
17756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17759 s|@configure_input@|$ac_sed_conf_input|;t t
17760 s&@top_builddir@&$ac_top_builddir_sub&;t t
17761 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17762 s&@srcdir@&$ac_srcdir&;t t
17763 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17764 s&@top_srcdir@&$ac_top_srcdir&;t t
17765 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17766 s&@builddir@&$ac_builddir&;t t
17767 s&@abs_builddir@&$ac_abs_builddir&;t t
17768 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17769 s&@INSTALL@&$ac_INSTALL&;t t
17770 $ac_datarootdir_hack
17772 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17773 if $ac_cs_awk_getline; then
17774 $AWK -f "$tmp/subs.awk"
17776 $AWK -f "$tmp/subs.awk" | $SHELL
17778 || as_fn_error "could not create $ac_file" "$LINENO" 5
17780 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17781 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17782 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17784 which seems to be undefined. Please make sure it is defined." >&5
17785 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17786 which seems to be undefined. Please make sure it is defined." >&2;}
17790 -) cat "$tmp/out" && rm -f "$tmp/out";;
17791 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17793 || as_fn_error "could not create $ac_file" "$LINENO" 5
17799 if test x"$ac_file" != x-; then
17801 $as_echo "/* $configure_input */" \
17802 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17803 } >"$tmp/config.h" \
17804 || as_fn_error "could not create $ac_file" "$LINENO" 5
17805 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17807 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17810 mv "$tmp/config.h" "$ac_file" \
17811 || as_fn_error "could not create $ac_file" "$LINENO" 5
17814 $as_echo "/* $configure_input */" \
17815 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17816 || as_fn_error "could not create -" "$LINENO" 5
17824 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17827 # Prefer the file from the source tree if names are identical.
17828 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17829 ac_source=$srcdir/$ac_source
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17833 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17835 if test ! -r "$ac_source"; then
17836 as_fn_error "$ac_source: file not found" "$LINENO" 5
17840 # Try a relative symlink, then a hard link, then a copy.
17842 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17843 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17845 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17846 ln "$ac_source" "$ac_file" 2>/dev/null ||
17847 cp -p "$ac_source" "$ac_file" ||
17848 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17851 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17852 $as_echo "$as_me: executing $ac_file commands" >&6;}
17857 case $ac_file$ac_mode in
17858 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17859 "gcore":F) chmod +x gcore ;;
17861 case x$CONFIG_HEADERS in
17862 xconfig.h:config.in)
17867 case x$CONFIG_HEADERS in
17868 xconfig.h:config.in)
17873 case x$CONFIG_HEADERS in
17874 xconfig.h:config.in)
17878 "data-directory/Makefile":F)
17879 case x$CONFIG_HEADERS in
17880 xconfig.h:config.in)
17891 ac_clean_files=$ac_clean_files_save
17893 test $ac_write_fail = 0 ||
17894 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17897 # configure is writing to config.log, and then calls config.status.
17898 # config.status does its own redirection, appending to config.log.
17899 # Unfortunately, on DOS this fails, as config.log is still kept open
17900 # by configure, so config.status won't be able to write to it; its
17901 # output is simply discarded. So we exec the FD to /dev/null,
17902 # effectively closing config.log, so it can be properly (re)opened and
17903 # appended to by config.status. When coming back to configure, we
17904 # need to make the FD available again.
17905 if test "$no_create" != yes; then
17907 ac_config_status_args=
17908 test "$silent" = yes &&
17909 ac_config_status_args="$ac_config_status_args --quiet"
17911 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17913 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17914 # would make configure fail if this is the last instruction.
17915 $ac_cs_success || as_fn_exit $?
17919 # CONFIG_SUBDIRS section.
17921 if test "$no_recursion" != yes; then
17923 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17924 # so they do not pile up.
17925 ac_sub_configure_args=
17927 eval "set x $ac_configure_args"
17931 if test -n "$ac_prev"; then
17936 -cache-file | --cache-file | --cache-fil | --cache-fi \
17937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17938 ac_prev=cache_file ;;
17939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17943 --config-cache | -C)
17945 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17947 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17949 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17951 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17953 --disable-option-checking)
17957 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17959 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17963 # Always prepend --prefix to ensure using the same prefix
17964 # in subdir configurations.
17965 ac_arg="--prefix=$prefix"
17967 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17969 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17972 if test "$silent" = yes; then
17973 ac_sub_configure_args="--silent $ac_sub_configure_args"
17976 # Always prepend --disable-option-checking to silence warnings, since
17977 # different subdirs can have different --enable and --with options.
17978 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17981 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17983 # Do not complain, so a configure script can configure whichever
17984 # parts of a large source tree are present.
17985 test -d "$srcdir/$ac_dir" || continue
17987 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17988 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17989 $as_echo "$ac_msg" >&6
17990 as_dir="$ac_dir"; as_fn_mkdir_p
17994 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17996 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17997 # A ".." for each directory in $ac_dir_suffix.
17998 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17999 case $ac_top_builddir_sub in
18000 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18001 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18004 ac_abs_top_builddir=$ac_pwd
18005 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18006 # for backward compatibility:
18007 ac_top_builddir=$ac_top_build_prefix
18010 .) # We are building in place.
18012 ac_top_srcdir=$ac_top_builddir_sub
18013 ac_abs_top_srcdir=$ac_pwd ;;
18014 [\\/]* | ?:[\\/]* ) # Absolute name.
18015 ac_srcdir=$srcdir$ac_dir_suffix;
18016 ac_top_srcdir=$srcdir
18017 ac_abs_top_srcdir=$srcdir ;;
18018 *) # Relative name.
18019 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18020 ac_top_srcdir=$ac_top_build_prefix$srcdir
18021 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18023 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18028 # Check for guested configure; otherwise get Cygnus style configure.
18029 if test -f "$ac_srcdir/configure.gnu"; then
18030 ac_sub_configure=$ac_srcdir/configure.gnu
18031 elif test -f "$ac_srcdir/configure"; then
18032 ac_sub_configure=$ac_srcdir/configure
18033 elif test -f "$ac_srcdir/configure.in"; then
18034 # This should be Cygnus configure.
18035 ac_sub_configure=$ac_aux_dir/configure
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18038 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18042 # The recursion is here.
18043 if test -n "$ac_sub_configure"; then
18044 # Make the cache file name correct relative to the subdirectory.
18045 case $cache_file in
18046 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18047 *) # Relative name.
18048 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18051 { $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
18052 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18053 # The eval makes quoting arguments work.
18054 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18055 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18056 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18062 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18064 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}