2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 enable_option_checking=no
624 ac_subst_vars='LTLIBOBJS
633 HAVE_NATIVE_GCORE_HOST
725 READLINE_TEXI_INCFLAG
749 HAVE_NATIVE_GCORE_TARGET
776 INSTALL_STRIP_PROGRAM
805 MAINTAINER_MODE_FALSE
834 program_transform_name
845 ac_subst_files='nat_makefile_frag'
847 enable_option_checking
848 enable_maintainer_mode
851 with_separate_debug_dir
853 with_relocated_sources
855 with_auto_load_safe_path
887 enable_build_warnings
888 enable_gdb_build_warnings
898 with_libbabeltrace_prefix
901 ac_precious_vars='build_alias
918 ac_subdirs_all='testsuite
922 # Initialize some variables set by options.
924 ac_init_version=false
925 ac_unrecognized_opts=
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
936 program_transform_name=s,x,x,
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE}'
961 infodir='${datarootdir}/info'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
982 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987 # Accept the important Cygnus configure options, so we can diagnose typos.
989 case $ac_dashdash$ac_option in
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1013 -datadir | --datadir | --datadi | --datad)
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1025 -disable-* | --disable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid feature name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1034 "enable_$ac_useropt"
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1039 eval enable_$ac_useropt=no ;;
1041 -docdir | --docdir | --docdi | --doc | --do)
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
1051 -enable-* | --enable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1065 eval enable_$ac_useropt=\$ac_optarg ;;
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096 htmldir=$ac_optarg ;;
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1110 -libdir | --libdir | --libdi | --libd)
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1201 -psdir | --psdir | --psdi | --psd | --ps)
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214 sbindir=$ac_optarg ;;
1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218 | --sharedst | --shareds | --shared | --share | --shar \
1220 ac_prev=sharedstatedir ;;
1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225 sharedstatedir=$ac_optarg ;;
1227 -site | --site | --sit)
1229 -site=* | --site=* | --sit=*)
1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235 srcdir=$ac_optarg ;;
1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238 | --syscon | --sysco | --sysc | --sys | --sy)
1239 ac_prev=sysconfdir ;;
1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242 sysconfdir=$ac_optarg ;;
1244 -target | --target | --targe | --targ | --tar | --ta | --t)
1245 ac_prev=target_alias ;;
1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247 target_alias=$ac_optarg ;;
1249 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 -version | --version | --versio | --versi | --vers | -V)
1253 ac_init_version=: ;;
1256 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 as_fn_error $? "invalid package name: $ac_useropt"
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1269 eval with_$ac_useropt=\$ac_optarg ;;
1271 -without-* | --without-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 as_fn_error $? "invalid package name: $ac_useropt"
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1285 eval with_$ac_useropt=no ;;
1288 # Obsolete; use --with-x.
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296 x_includes=$ac_optarg ;;
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303 x_libraries=$ac_optarg ;;
1305 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1306 Try \`$0 --help' for more information"
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 case $ac_envvar in #(
1313 '' | [0-9]* | *[!_$as_cr_alnum]* )
1314 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1316 eval $ac_envvar=\$ac_optarg
1317 export $ac_envvar ;;
1320 # FIXME: should be removed in autoconf 3.0.
1321 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1330 if test -n "$ac_prev"; then
1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332 as_fn_error $? "missing argument to $ac_option"
1335 if test -n "$ac_unrecognized_opts"; then
1336 case $enable_option_checking in
1338 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1339 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1343 # Check all directory arguments for consistency.
1344 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
1349 eval ac_val=\$$ac_var
1350 # Remove trailing slashes.
1353 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354 eval $ac_var=\$ac_val;;
1356 # Be sure to have absolute directory names.
1358 [\\/$]* | ?:[\\/]* ) continue;;
1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1369 target=$target_alias
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
1375 elif test "x$build_alias" != "x$host_alias"; then
1381 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383 test "$silent" = yes && exec 6>/dev/null
1386 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di=`ls -di .` &&
1388 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389 as_fn_error $? "working directory cannot be determined"
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 as_fn_error $? "pwd does not report name of working directory"
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396 ac_srcdir_defaulted=yes
1397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir=`$as_dirname -- "$as_myself" ||
1399 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400 X"$as_myself" : 'X\(//\)[^/]' \| \
1401 X"$as_myself" : 'X\(//\)$' \| \
1402 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1403 $as_echo X"$as_myself" |
1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1426 ac_srcdir_defaulted=no
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 # Report the --help message.
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1460 \`configure' configures this package to adapt to many kinds of systems.
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1467 Defaults for the options are specified in brackets.
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking ...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1491 For better control, use the options below.
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1518 --program-prefix=PREFIX prepend PREFIX to installed program names
1519 --program-suffix=SUFFIX append SUFFIX to installed program names
1520 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1523 --x-includes=DIR X include files are in DIR
1524 --x-libraries=DIR X library files are in DIR
1527 --build=BUILD configure for building on BUILD [guessed]
1528 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1529 --target=TARGET configure for building compilers for TARGET [HOST]
1533 if test -n "$ac_init_help"; then
1538 --disable-option-checking ignore unrecognized --enable/--with options
1539 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1540 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1541 --enable-maintainer-mode
1542 enable make rules and dependencies not useful (and
1543 sometimes confusing) to the casual installer
1544 --enable-plugins Enable support for plugins
1545 --disable-largefile omit support for large files
1546 --enable-targets=TARGETS
1547 alternative target configurations
1548 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1549 --disable-gdbmi disable machine-interface (MI)
1550 --enable-tui enable full-screen terminal user interface (TUI)
1551 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1552 --enable-profiling enable profiling of GDB
1553 --enable-codesign=CERT sign gdb with 'codesign -s CERT'
1554 --disable-rpath do not hardcode runtime library paths
1555 --enable-libmcheck Try linking with -lmcheck if available
1556 --enable-werror treat compile warnings as errors
1557 --enable-build-warnings enable build-time compiler warnings if gcc is used
1558 --enable-gdb-build-warnings
1559 enable GDB specific build-time compiler warnings if
1561 --enable-ubsan enable undefined behavior sanitizer (auto/yes/no)
1562 --enable-sim link gdb with simulator
1563 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1565 --enable-unit-tests Enable the inclusion of unit tests when compiling
1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1571 --with-separate-debug-dir=PATH
1572 look for global separate debug info in this path
1574 --with-gdb-datadir=PATH look for global separate data files in this path
1576 --with-relocated-sources=PATH
1577 automatically relocate this path for source files
1578 --with-auto-load-dir=PATH
1579 directories from which to load auto-loaded scripts
1580 [$debugdir:$datadir/auto-load]
1581 --with-auto-load-safe-path=PATH
1582 directories safe to hold auto-loaded files
1583 [--with-auto-load-dir]
1584 --without-auto-load-safe-path
1585 do not restrict auto-loaded files locations
1586 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1587 --with-curses use the curses library instead of the termcap
1589 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1590 --with-bugurl=URL Direct users to URL to report a bug
1591 --with-system-zlib use installed libz
1592 --with-gnu-ld assume the C compiler uses GNU ld default=no
1593 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1594 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1595 --with-iconv-bin=PATH specify where to find the iconv program
1596 --with-system-readline use installed readline library
1597 --with-jit-reader-dir=PATH
1598 directory to load the JIT readers from
1599 --with-expat include expat support (auto/yes/no)
1600 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1601 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1602 --with-mpfr include MPFR support (auto/yes/no)
1603 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1604 --without-libmpfr-prefix don't search for libmpfr in includedir and libdir
1605 --with-python[=PYTHON] include python support
1606 (auto/yes/no/<python-program>)
1607 --with-guile[=GUILE] include guile support
1608 (auto/yes/no/<guile-version>/<pkg-config-program>)
1609 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1610 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1611 --without-libipt-prefix don't search for libipt in includedir and libdir
1612 --without-included-regex
1613 don't use included regex; this is the default on
1614 systems with version 2 of the GNU C library (use
1615 with caution on other system)
1616 --with-sysroot[=DIR] search for usr/lib et al within DIR
1617 --with-system-gdbinit=PATH
1618 automatically load a system-wide gdbinit file
1619 --with-lzma support lzma compression (auto/yes/no)
1620 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1621 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1622 --with-tcl directory containing tcl configuration (tclConfig.sh)
1623 --with-tk directory containing tk configuration (tkConfig.sh)
1624 --with-x use the X Window System
1625 --with-babeltrace include babeltrace support (auto/yes/no)
1626 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1627 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1629 Some influential environment variables:
1630 CC C compiler command
1631 CFLAGS C compiler flags
1632 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1633 nonstandard directory <lib dir>
1634 LIBS libraries to pass to the linker, e.g. -l<library>
1635 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1636 you have headers in a nonstandard directory <include dir>
1637 CXX C++ compiler command
1638 CXXFLAGS C++ compiler flags
1640 MAKEINFO Parent configure detects if it is of sufficient version.
1642 Parameters for MAKEINFO.
1643 YACC The `Yet Another Compiler Compiler' implementation to use.
1644 Defaults to the first program found out of: `bison -y', `byacc',
1646 YFLAGS The list of arguments that will be passed by default to $YACC.
1647 This script will default YFLAGS to the empty string to avoid a
1648 default value of `-d' given by some make applications.
1649 XMKMF Path to xmkmf, Makefile generator for X Window System
1651 Use these variables to override the choices made by `configure' or to help
1652 it to find libraries and programs with nonstandard names/locations.
1654 Report bugs to the package provider.
1659 if test "$ac_init_help" = "recursive"; then
1660 # If there are subdirs, report their specific --help.
1661 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1662 test -d "$ac_dir" ||
1663 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1671 # A ".." for each directory in $ac_dir_suffix.
1672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1673 case $ac_top_builddir_sub in
1674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1678 ac_abs_top_builddir=$ac_pwd
1679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1680 # for backward compatibility:
1681 ac_top_builddir=$ac_top_build_prefix
1684 .) # We are building in place.
1686 ac_top_srcdir=$ac_top_builddir_sub
1687 ac_abs_top_srcdir=$ac_pwd ;;
1688 [\\/]* | ?:[\\/]* ) # Absolute name.
1689 ac_srcdir=$srcdir$ac_dir_suffix;
1690 ac_top_srcdir=$srcdir
1691 ac_abs_top_srcdir=$srcdir ;;
1693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1694 ac_top_srcdir=$ac_top_build_prefix$srcdir
1695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1699 cd "$ac_dir" || { ac_status=$?; continue; }
1700 # Check for guested configure.
1701 if test -f "$ac_srcdir/configure.gnu"; then
1703 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1704 elif test -f "$ac_srcdir/configure"; then
1706 $SHELL "$ac_srcdir/configure" --help=recursive
1708 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1710 cd "$ac_pwd" || { ac_status=$?; break; }
1714 test -n "$ac_init_help" && exit $ac_status
1715 if $ac_init_version; then
1718 generated by GNU Autoconf 2.69
1720 Copyright (C) 2012 Free Software Foundation, Inc.
1721 This configure script is free software; the Free Software Foundation
1722 gives unlimited permission to copy, distribute and modify it.
1727 ## ------------------------ ##
1728 ## Autoconf initialization. ##
1729 ## ------------------------ ##
1731 # ac_fn_c_try_compile LINENO
1732 # --------------------------
1733 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_compile ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext
1738 if { { ac_try="$ac_compile"
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_compile") 2>conftest.err
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest.$ac_objext; then :
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1767 } # ac_fn_c_try_compile
1769 # ac_fn_cxx_try_compile LINENO
1770 # ----------------------------
1771 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_cxx_try_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext
1776 if { { ac_try="$ac_compile"
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_cxx_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext; then :
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1805 } # ac_fn_cxx_try_compile
1807 # ac_fn_c_try_cpp LINENO
1808 # ----------------------
1809 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_cpp conftest.$ac_ext"
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } > conftest.i && {
1829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1844 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1847 # the include files in INCLUDES and setting the cache variable VAR
1849 ac_fn_c_check_header_mongrel ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if eval \${$3+:} false; then :
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1862 # Is the header compilable?
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1864 $as_echo_n "checking $2 usability... " >&6; }
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871 ac_header_compiler=yes
1873 ac_header_compiler=no
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1877 $as_echo "$ac_header_compiler" >&6; }
1879 # Is the header present?
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1881 $as_echo_n "checking $2 presence... " >&6; }
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1886 if ac_fn_c_try_cpp "$LINENO"; then :
1887 ac_header_preproc=yes
1889 ac_header_preproc=no
1891 rm -f conftest.err conftest.i conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1893 $as_echo "$ac_header_preproc" >&6; }
1895 # So? What about this header?
1896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1899 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1905 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1907 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1909 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1911 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1921 eval "$3=\$ac_header_compiler"
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 } # ac_fn_c_check_header_mongrel
1931 # ac_fn_c_try_run LINENO
1932 # ----------------------
1933 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1934 # that executables *can* be run.
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if { { ac_try="$ac_link"
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_link") 2>&5
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1949 { { case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_try") 2>&5
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; }; }; then :
1961 $as_echo "$as_me: program exited with status $ac_status" >&5
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1965 ac_retval=$ac_status
1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status $ac_retval
1973 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1974 # -------------------------------------------------------
1975 # Tests whether HEADER exists and can be compiled using the include files in
1976 # INCLUDES, setting the cache variable VAR accordingly.
1977 ac_fn_c_check_header_compile ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1990 if ac_fn_c_try_compile "$LINENO"; then :
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_header_compile
2004 # ac_fn_c_try_link LINENO
2005 # -----------------------
2006 # Try to link conftest.$ac_ext, and return whether this succeeded.
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 rm -f conftest.$ac_objext conftest$ac_exeext
2011 if { { ac_try="$ac_link"
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 $as_echo "$ac_try_echo"; } >&5
2018 (eval "$ac_link") 2>conftest.err
2020 if test -s conftest.err; then
2021 grep -v '^ *+' conftest.err >conftest.er1
2022 cat conftest.er1 >&5
2023 mv -f conftest.er1 conftest.err
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; } && {
2027 test -z "$ac_c_werror_flag" ||
2028 test ! -s conftest.err
2029 } && test -s conftest$ac_exeext && {
2030 test "$cross_compiling" = yes ||
2031 test -x conftest$ac_exeext
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2040 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2041 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2042 # interfere with the next link command; also delete a directory that is
2043 # left behind by Apple's compiler. We do this before executing the actions.
2044 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2048 } # ac_fn_c_try_link
2050 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2051 # --------------------------------------------
2052 # Tries to find the compile-time value of EXPR in a program that includes
2053 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2055 ac_fn_c_compute_int ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 if test "$cross_compiling" = yes; then
2059 # Depending upon the size, compute the lo and hi bounds.
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2066 static int test_array [1 - 2 * !(($2) >= 0)];
2068 return test_array [0];
2074 if ac_fn_c_try_compile "$LINENO"; then :
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2083 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085 return test_array [0];
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_hi=$ac_mid; break
2094 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2095 if test $ac_lo -le $ac_mid; then
2099 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2110 static int test_array [1 - 2 * !(($2) < 0)];
2112 return test_array [0];
2118 if ac_fn_c_try_compile "$LINENO"; then :
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2127 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2129 return test_array [0];
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136 ac_lo=$ac_mid; break
2138 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2139 if test $ac_mid -le $ac_hi; then
2143 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 # Binary search between lo and hi bounds.
2154 while test "x$ac_lo" != "x$ac_hi"; do
2155 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 return test_array [0];
2170 if ac_fn_c_try_compile "$LINENO"; then :
2173 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2185 static long int longval () { return $2; }
2186 static unsigned long int ulongval () { return $2; }
2193 FILE *f = fopen ("conftest.val", "w");
2198 long int i = longval ();
2201 fprintf (f, "%ld", i);
2205 unsigned long int i = ulongval ();
2208 fprintf (f, "%lu", i);
2210 /* Do not output a trailing newline, as this causes \r\n confusion
2211 on some platforms. */
2212 return ferror (f) || fclose (f) != 0;
2218 if ac_fn_c_try_run "$LINENO"; then :
2219 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2224 conftest.$ac_objext conftest.beam conftest.$ac_ext
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 as_fn_set_status $ac_retval
2231 } # ac_fn_c_compute_int
2233 # ac_fn_c_check_func LINENO FUNC VAR
2234 # ----------------------------------
2235 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2236 ac_fn_c_check_func ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2240 $as_echo_n "checking for $2... " >&6; }
2241 if eval \${$3+:} false; then :
2242 $as_echo_n "(cached) " >&6
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2246 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2248 #define $2 innocuous_$2
2250 /* System header to define __stub macros and hopefully few prototypes,
2251 which can conflict with char $2 (); below.
2252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2253 <limits.h> exists even on freestanding compilers. */
2256 # include <limits.h>
2258 # include <assert.h>
2263 /* Override any GCC internal prototype to avoid an error.
2264 Use char because int might match the return type of a GCC
2265 builtin and then its argument prototype would still apply. */
2270 /* The GNU C library defines this for functions which it implements
2271 to always fail with ENOSYS. Some functions are actually named
2272 something starting with __ and the normal name is an alias. */
2273 #if defined __stub_$2 || defined __stub___$2
2285 if ac_fn_c_try_link "$LINENO"; then :
2290 rm -f core conftest.err conftest.$ac_objext \
2291 conftest$ac_exeext conftest.$ac_ext
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298 } # ac_fn_c_check_func
2300 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2301 # ----------------------------------------------------
2302 # Tries to find if the field MEMBER exists in type AGGR, after including
2303 # INCLUDES, setting cache variable VAR accordingly.
2304 ac_fn_c_check_member ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2308 $as_echo_n "checking for $2.$3... " >&6; }
2309 if eval \${$4+:} false; then :
2310 $as_echo_n "(cached) " >&6
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2325 if ac_fn_c_try_compile "$LINENO"; then :
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2335 if (sizeof ac_aggr.$3)
2341 if ac_fn_c_try_compile "$LINENO"; then :
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355 } # ac_fn_c_check_member
2357 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2358 # -------------------------------------------
2359 # Tests whether TYPE exists after having included INCLUDES, setting cache
2360 # variable VAR accordingly.
2361 ac_fn_c_check_type ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365 $as_echo_n "checking for $2... " >&6; }
2366 if eval \${$3+:} false; then :
2367 $as_echo_n "(cached) " >&6
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2382 if ac_fn_c_try_compile "$LINENO"; then :
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2395 if ac_fn_c_try_compile "$LINENO"; then :
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406 $as_echo "$ac_res" >&6; }
2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409 } # ac_fn_c_check_type
2411 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2412 # ---------------------------------------------
2413 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2415 ac_fn_c_check_decl ()
2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418 as_decl_name=`echo $2|sed 's/ *(.*//'`
2419 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2421 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2422 if eval \${$3+:} false; then :
2423 $as_echo_n "(cached) " >&6
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2431 #ifndef $as_decl_name
2433 (void) $as_decl_use;
2435 (void) $as_decl_name;
2443 if ac_fn_c_try_compile "$LINENO"; then :
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2455 } # ac_fn_c_check_decl
2457 # ac_fn_cxx_try_link LINENO
2458 # -------------------------
2459 # Try to link conftest.$ac_ext, and return whether this succeeded.
2460 ac_fn_cxx_try_link ()
2462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2463 rm -f conftest.$ac_objext conftest$ac_exeext
2464 if { { ac_try="$ac_link"
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2470 $as_echo "$ac_try_echo"; } >&5
2471 (eval "$ac_link") 2>conftest.err
2473 if test -s conftest.err; then
2474 grep -v '^ *+' conftest.err >conftest.er1
2475 cat conftest.er1 >&5
2476 mv -f conftest.er1 conftest.err
2478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2479 test $ac_status = 0; } && {
2480 test -z "$ac_cxx_werror_flag" ||
2481 test ! -s conftest.err
2482 } && test -s conftest$ac_exeext && {
2483 test "$cross_compiling" = yes ||
2484 test -x conftest$ac_exeext
2488 $as_echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2493 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2494 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2495 # interfere with the next link command; also delete a directory that is
2496 # left behind by Apple's compiler. We do this before executing the actions.
2497 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499 as_fn_set_status $ac_retval
2501 } # ac_fn_cxx_try_link
2502 cat >config.log <<_ACEOF
2503 This file contains any messages produced by compilers while
2504 running configure, to aid debugging if configure makes a mistake.
2506 It was created by $as_me, which was
2507 generated by GNU Autoconf 2.69. Invocation command line was
2519 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2520 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2521 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2522 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2523 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2525 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2526 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2528 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2529 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2530 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2531 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2532 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2533 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2534 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 test -z "$as_dir" && as_dir=.
2543 $as_echo "PATH: $as_dir"
2559 # Keep a trace of the command line.
2560 # Strip out --no-create and --no-recursion so they do not pile up.
2561 # Strip out --silent because we don't want to record it for future runs.
2562 # Also quote any args containing shell meta-characters.
2563 # Make two passes to allow for proper duplicate-argument suppression.
2567 ac_must_keep_next=false
2573 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2575 | -silent | --silent | --silen | --sile | --sil)
2578 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2581 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2583 as_fn_append ac_configure_args1 " '$ac_arg'"
2584 if test $ac_must_keep_next = true; then
2585 ac_must_keep_next=false # Got value, back to normal.
2588 *=* | --config-cache | -C | -disable-* | --disable-* \
2589 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2590 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2591 | -with-* | --with-* | -without-* | --without-* | --x)
2592 case "$ac_configure_args0 " in
2593 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2596 -* ) ac_must_keep_next=true ;;
2599 as_fn_append ac_configure_args " '$ac_arg'"
2604 { ac_configure_args0=; unset ac_configure_args0;}
2605 { ac_configure_args1=; unset ac_configure_args1;}
2607 # When interrupted or exit'd, cleanup temporary files, and complete
2608 # config.log. We remove comments because anyway the quotes in there
2609 # would cause problems or look ugly.
2610 # WARNING: Use '\'' to represent an apostrophe within the trap.
2611 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2612 trap 'exit_status=$?
2613 # Save into config.log some information that might help in debugging.
2617 $as_echo "## ---------------- ##
2618 ## Cache variables. ##
2619 ## ---------------- ##"
2621 # The following way of writing the cache mishandles newlines in values,
2623 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2624 eval ac_val=\$$ac_var
2628 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2629 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2632 _ | IFS | as_nl) ;; #(
2633 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2634 *) { eval $ac_var=; unset $ac_var;} ;;
2639 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2640 *${as_nl}ac_space=\ *)
2642 "s/'\''/'\''\\\\'\'''\''/g;
2643 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2646 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2653 $as_echo "## ----------------- ##
2654 ## Output variables. ##
2655 ## ----------------- ##"
2657 for ac_var in $ac_subst_vars
2659 eval ac_val=\$$ac_var
2661 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2663 $as_echo "$ac_var='\''$ac_val'\''"
2667 if test -n "$ac_subst_files"; then
2668 $as_echo "## ------------------- ##
2669 ## File substitutions. ##
2670 ## ------------------- ##"
2672 for ac_var in $ac_subst_files
2674 eval ac_val=\$$ac_var
2676 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2678 $as_echo "$ac_var='\''$ac_val'\''"
2683 if test -s confdefs.h; then
2684 $as_echo "## ----------- ##
2691 test "$ac_signal" != 0 &&
2692 $as_echo "$as_me: caught signal $ac_signal"
2693 $as_echo "$as_me: exit $exit_status"
2695 rm -f core *.core core.conftest.* &&
2696 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2699 for ac_signal in 1 2 13 15; do
2700 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2704 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2705 rm -f -r conftest* confdefs.h
2707 $as_echo "/* confdefs.h */" > confdefs.h
2709 # Predefined preprocessor variables.
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE_NAME "$PACKAGE_NAME"
2715 cat >>confdefs.h <<_ACEOF
2716 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2719 cat >>confdefs.h <<_ACEOF
2720 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2723 cat >>confdefs.h <<_ACEOF
2724 #define PACKAGE_STRING "$PACKAGE_STRING"
2727 cat >>confdefs.h <<_ACEOF
2728 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2731 cat >>confdefs.h <<_ACEOF
2732 #define PACKAGE_URL "$PACKAGE_URL"
2736 # Let the site file select an alternate cache file if it wants to.
2737 # Prefer an explicitly selected file to automatically selected ones.
2740 if test -n "$CONFIG_SITE"; then
2741 # We do not want a PATH search for config.site.
2742 case $CONFIG_SITE in #((
2743 -*) ac_site_file1=./$CONFIG_SITE;;
2744 */*) ac_site_file1=$CONFIG_SITE;;
2745 *) ac_site_file1=./$CONFIG_SITE;;
2747 elif test "x$prefix" != xNONE; then
2748 ac_site_file1=$prefix/share/config.site
2749 ac_site_file2=$prefix/etc/config.site
2751 ac_site_file1=$ac_default_prefix/share/config.site
2752 ac_site_file2=$ac_default_prefix/etc/config.site
2754 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2756 test "x$ac_site_file" = xNONE && continue
2757 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2759 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2760 sed 's/^/| /' "$ac_site_file" >&5
2762 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764 as_fn_error $? "failed to load site script $ac_site_file
2765 See \`config.log' for more details" "$LINENO" 5; }
2769 if test -r "$cache_file"; then
2770 # Some versions of bash will fail to source /dev/null (special files
2771 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2772 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2774 $as_echo "$as_me: loading cache $cache_file" >&6;}
2776 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2777 *) . "./$cache_file";;
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2782 $as_echo "$as_me: creating cache $cache_file" >&6;}
2786 as_fn_append ac_header_list " stdlib.h"
2787 as_fn_append ac_header_list " unistd.h"
2788 as_fn_append ac_header_list " sys/param.h"
2789 # Check that the precious variables saved in the cache have kept the same
2791 ac_cache_corrupted=false
2792 for ac_var in $ac_precious_vars; do
2793 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2794 eval ac_new_set=\$ac_env_${ac_var}_set
2795 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2796 eval ac_new_val=\$ac_env_${ac_var}_value
2797 case $ac_old_set,$ac_new_set in
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2800 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2801 ac_cache_corrupted=: ;;
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2804 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2805 ac_cache_corrupted=: ;;
2808 if test "x$ac_old_val" != "x$ac_new_val"; then
2809 # differences in whitespace do not lead to failure.
2810 ac_old_val_w=`echo x $ac_old_val`
2811 ac_new_val_w=`echo x $ac_new_val`
2812 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2814 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2815 ac_cache_corrupted=:
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2818 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2819 eval $ac_var=\$ac_old_val
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2822 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2824 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2827 # Pass precious variables to config.status.
2828 if test "$ac_new_set" = set; then
2830 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2831 *) ac_arg=$ac_var=$ac_new_val ;;
2833 case " $ac_configure_args " in
2834 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2835 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2839 if $ac_cache_corrupted; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2843 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2844 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2846 ## -------------------- ##
2847 ## Main body of script. ##
2848 ## -------------------- ##
2851 ac_cpp='$CPP $CPPFLAGS'
2852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2860 ac_config_headers="$ac_config_headers config.h:config.in"
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2864 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2865 # Check whether --enable-maintainer-mode was given.
2866 if test "${enable_maintainer_mode+set}" = set; then :
2867 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2869 USE_MAINTAINER_MODE=no
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2873 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2874 if test $USE_MAINTAINER_MODE = yes; then
2875 MAINTAINER_MODE_TRUE=
2876 MAINTAINER_MODE_FALSE='#'
2878 MAINTAINER_MODE_TRUE='#'
2879 MAINTAINER_MODE_FALSE=
2882 MAINT=$MAINTAINER_MODE_TRUE
2886 # Set the 'development' global.
2887 . $srcdir/../bfd/development.sh
2890 ac_cpp='$CPP $CPPFLAGS'
2891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_CC+:} false; then :
2900 $as_echo_n "(cached) " >&6
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 if test -n "$CC"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2925 $as_echo "$CC" >&6; }
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2933 if test -z "$ac_cv_prog_CC"; then
2935 # Extract the first word of "gcc", so it can be a program name with args.
2936 set dummy gcc; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2940 $as_echo_n "(cached) " >&6
2942 if test -n "$ac_ct_CC"; then
2943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 ac_cv_prog_ac_ct_CC="gcc"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963 if test -n "$ac_ct_CC"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2965 $as_echo "$ac_ct_CC" >&6; }
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2971 if test "x$ac_ct_CC" = x; then
2974 case $cross_compiling:$ac_tool_warned in
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2978 ac_tool_warned=yes ;;
2986 if test -z "$CC"; then
2987 if test -n "$ac_tool_prefix"; then
2988 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2989 set dummy ${ac_tool_prefix}cc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_CC+:} false; then :
2993 $as_echo_n "(cached) " >&6
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_CC="${ac_tool_prefix}cc"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 if test -n "$CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3027 if test -z "$CC"; then
3028 # Extract the first word of "cc", so it can be a program name with args.
3029 set dummy cc; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if ${ac_cv_prog_CC+:} false; then :
3033 $as_echo_n "(cached) " >&6
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3047 ac_prog_rejected=yes
3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 if test $ac_prog_rejected = yes; then
3059 # We found a bogon in the path, so make sure we never use it.
3060 set dummy $ac_cv_prog_CC
3062 if test $# != 0; then
3063 # We chose a different compiler from the bogus one.
3064 # However, it has the same basename, so the bogon will be chosen
3065 # first if we set CC to just the basename; use the full file name.
3067 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3073 if test -n "$CC"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3075 $as_echo "$CC" >&6; }
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3083 if test -z "$CC"; then
3084 if test -n "$ac_tool_prefix"; then
3085 for ac_prog in cl.exe
3087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if ${ac_cv_prog_CC+:} false; then :
3092 $as_echo_n "(cached) " >&6
3094 if test -n "$CC"; then
3095 ac_cv_prog_CC="$CC" # Let the user override the test.
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 if test -n "$CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3124 test -n "$CC" && break
3127 if test -z "$CC"; then
3129 for ac_prog in cl.exe
3131 # Extract the first word of "$ac_prog", so it can be a program name with args.
3132 set dummy $ac_prog; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3136 $as_echo_n "(cached) " >&6
3138 if test -n "$ac_ct_CC"; then
3139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_ac_ct_CC="$ac_prog"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3159 if test -n "$ac_ct_CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3161 $as_echo "$ac_ct_CC" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3168 test -n "$ac_ct_CC" && break
3171 if test "x$ac_ct_CC" = x; then
3174 case $cross_compiling:$ac_tool_warned in
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3178 ac_tool_warned=yes ;;
3187 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error $? "no acceptable C compiler found in \$PATH
3190 See \`config.log' for more details" "$LINENO" 5; }
3192 # Provide some information about the compiler.
3193 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3196 for ac_option in --version -v -V -qversion; do
3197 { { ac_try="$ac_compiler $ac_option >&5"
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3206 if test -s conftest.err; then
3208 ... rest of stderr output deleted ...
3209 10q' conftest.err >conftest.er1
3210 cat conftest.er1 >&5
3212 rm -f conftest.er1 conftest.err
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3228 ac_clean_files_save=$ac_clean_files
3229 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3230 # Try to create an executable without -o first, disregard a.out.
3231 # It will help us diagnose broken compilers, and finding out an intuition
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3234 $as_echo_n "checking whether the C compiler works... " >&6; }
3235 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3237 # The possible output files:
3238 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3241 for ac_file in $ac_files
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3245 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3250 if { { ac_try="$ac_link_default"
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 $as_echo "$ac_try_echo"; } >&5
3257 (eval "$ac_link_default") 2>&5
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }; then :
3261 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3263 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3264 # so that the user can short-circuit this test for compilers unknown to
3266 for ac_file in $ac_files ''
3268 test -f "$ac_file" || continue
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3273 # We found the default executable, but exeext='' is most
3277 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3279 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281 # We set ac_cv_exeext here because the later test for it is not
3282 # safe: cross compilers may not add the suffix if given an `-o'
3283 # argument, so we may need to know it at that point already.
3284 # Even if this section looks crufty: it has the advantage of
3291 test "$ac_cv_exeext" = no && ac_cv_exeext=
3296 if test -z "$ac_file"; then :
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 $as_echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304 as_fn_error 77 "C compiler cannot create executables
3305 See \`config.log' for more details" "$LINENO" 5; }
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3308 $as_echo "yes" >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3311 $as_echo_n "checking for C compiler default output file name... " >&6; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3313 $as_echo "$ac_file" >&6; }
3314 ac_exeext=$ac_cv_exeext
3316 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3317 ac_clean_files=$ac_clean_files_save
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3319 $as_echo_n "checking for suffix of executables... " >&6; }
3320 if { { ac_try="$ac_link"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_link") 2>&5
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }; then :
3331 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3332 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3333 # work properly (i.e., refer to `conftest.exe'), while it won't with
3335 for ac_file in conftest.exe conftest conftest.*; do
3336 test -f "$ac_file" || continue
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3339 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3348 See \`config.log' for more details" "$LINENO" 5; }
3350 rm -f conftest conftest$ac_cv_exeext
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3352 $as_echo "$ac_cv_exeext" >&6; }
3354 rm -f conftest.$ac_ext
3355 EXEEXT=$ac_cv_exeext
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3363 FILE *f = fopen ("conftest.out", "w");
3364 return ferror (f) || fclose (f) != 0;
3370 ac_clean_files="$ac_clean_files conftest.out"
3371 # Check that the compiler produces executables we can run. If not, either
3372 # the compiler is broken, or we cross compile.
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3374 $as_echo_n "checking whether we are cross compiling... " >&6; }
3375 if test "$cross_compiling" != yes; then
3376 { { ac_try="$ac_link"
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_link") 2>&5
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }
3387 if { ac_try='./conftest$ac_cv_exeext'
3388 { { case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_try") 2>&5
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; }; then
3400 if test "$cross_compiling" = maybe; then
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 as_fn_error $? "cannot run C compiled programs.
3406 If you meant to cross compile, use \`--host'.
3407 See \`config.log' for more details" "$LINENO" 5; }
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3412 $as_echo "$cross_compiling" >&6; }
3414 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3415 ac_clean_files=$ac_clean_files_save
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3417 $as_echo_n "checking for suffix of object files... " >&6; }
3418 if ${ac_cv_objext+:} false; then :
3419 $as_echo_n "(cached) " >&6
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3432 rm -f conftest.o conftest.obj
3433 if { { ac_try="$ac_compile"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_compile") 2>&5
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }; then :
3444 for ac_file in conftest.o conftest.obj conftest.*; do
3445 test -f "$ac_file" || continue;
3447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3448 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3453 $as_echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 as_fn_error $? "cannot compute suffix of object files: cannot compile
3459 See \`config.log' for more details" "$LINENO" 5; }
3461 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3464 $as_echo "$ac_cv_objext" >&6; }
3465 OBJEXT=$ac_cv_objext
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3468 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3469 if ${ac_cv_c_compiler_gnu+:} false; then :
3470 $as_echo_n "(cached) " >&6
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3486 if ac_fn_c_try_compile "$LINENO"; then :
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3496 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3497 if test $ac_compiler_gnu = yes; then
3502 ac_test_CFLAGS=${CFLAGS+set}
3503 ac_save_CFLAGS=$CFLAGS
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3505 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3506 if ${ac_cv_prog_cc_g+:} false; then :
3507 $as_echo_n "(cached) " >&6
3509 ac_save_c_werror_flag=$ac_c_werror_flag
3510 ac_c_werror_flag=yes
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3524 if ac_fn_c_try_compile "$LINENO"; then :
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3539 if ac_fn_c_try_compile "$LINENO"; then :
3542 ac_c_werror_flag=$ac_save_c_werror_flag
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3555 if ac_fn_c_try_compile "$LINENO"; then :
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_c_werror_flag=$ac_save_c_werror_flag
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3566 $as_echo "$ac_cv_prog_cc_g" >&6; }
3567 if test "$ac_test_CFLAGS" = set; then
3568 CFLAGS=$ac_save_CFLAGS
3569 elif test $ac_cv_prog_cc_g = yes; then
3570 if test "$GCC" = yes; then
3576 if test "$GCC" = yes; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3583 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3584 if ${ac_cv_prog_cc_c89+:} false; then :
3585 $as_echo_n "(cached) " >&6
3587 ac_cv_prog_cc_c89=no
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3594 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3595 struct buf { int x; };
3596 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3597 static char *e (p, i)
3603 static char *f (char * (*g) (char **, int), char **p, ...)
3608 s = g (p, va_arg (v,int));
3613 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3614 function prototypes and stuff, but not '\xHH' hex character constants.
3615 These don't provoke an error unfortunately, instead are silently treated
3616 as 'x'. The following induces an error, until -std is added to get
3617 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3618 array size at least. It's necessary to write '\x00'==0 to get something
3619 that's true only with -std. */
3620 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3622 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3623 inside strings and character constants. */
3625 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3627 int test (int i, double x);
3628 struct s1 {int (*f) (int a);};
3629 struct s2 {int (*f) (double a);};
3630 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3636 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3641 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3642 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3644 CC="$ac_save_CC $ac_arg"
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646 ac_cv_prog_cc_c89=$ac_arg
3648 rm -f core conftest.err conftest.$ac_objext
3649 test "x$ac_cv_prog_cc_c89" != "xno" && break
3651 rm -f conftest.$ac_ext
3656 case "x$ac_cv_prog_cc_c89" in
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3659 $as_echo "none needed" >&6; } ;;
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3662 $as_echo "unsupported" >&6; } ;;
3664 CC="$CC $ac_cv_prog_cc_c89"
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3666 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3668 if test "x$ac_cv_prog_cc_c89" != xno; then :
3673 ac_cpp='$CPP $CPPFLAGS'
3674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679 ac_cpp='$CXXCPP $CPPFLAGS'
3680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3683 if test -z "$CXX"; then
3684 if test -n "$CCC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if ${ac_cv_prog_CXX+:} false; then :
3695 $as_echo_n "(cached) " >&6
3697 if test -n "$CXX"; then
3698 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 if test -n "$CXX"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3720 $as_echo "$CXX" >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3727 test -n "$CXX" && break
3730 if test -z "$CXX"; then
3732 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3734 # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy $ac_prog; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3739 $as_echo_n "(cached) " >&6
3741 if test -n "$ac_ct_CXX"; then
3742 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751 ac_cv_prog_ac_ct_CXX="$ac_prog"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3762 if test -n "$ac_ct_CXX"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3764 $as_echo "$ac_ct_CXX" >&6; }
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3771 test -n "$ac_ct_CXX" && break
3774 if test "x$ac_ct_CXX" = x; then
3777 case $cross_compiling:$ac_tool_warned in
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781 ac_tool_warned=yes ;;
3789 # Provide some information about the compiler.
3790 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3793 for ac_option in --version -v -V -qversion; do
3794 { { ac_try="$ac_compiler $ac_option >&5"
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3803 if test -s conftest.err; then
3805 ... rest of stderr output deleted ...
3806 10q' conftest.err >conftest.er1
3807 cat conftest.er1 >&5
3809 rm -f conftest.er1 conftest.err
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3815 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3816 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3817 $as_echo_n "(cached) " >&6
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3833 if ac_fn_cxx_try_compile "$LINENO"; then :
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3843 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3844 if test $ac_compiler_gnu = yes; then
3849 ac_test_CXXFLAGS=${CXXFLAGS+set}
3850 ac_save_CXXFLAGS=$CXXFLAGS
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3852 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3853 if ${ac_cv_prog_cxx_g+:} false; then :
3854 $as_echo_n "(cached) " >&6
3856 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3857 ac_cxx_werror_flag=yes
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3871 if ac_fn_cxx_try_compile "$LINENO"; then :
3872 ac_cv_prog_cxx_g=yes
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3886 if ac_fn_cxx_try_compile "$LINENO"; then :
3889 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3902 if ac_fn_cxx_try_compile "$LINENO"; then :
3903 ac_cv_prog_cxx_g=yes
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3913 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3914 if test "$ac_test_CXXFLAGS" = set; then
3915 CXXFLAGS=$ac_save_CXXFLAGS
3916 elif test $ac_cv_prog_cxx_g = yes; then
3917 if test "$GXX" = yes; then
3923 if test "$GXX" = yes; then
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3943 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3944 # On Suns, sometimes $CPP names a directory.
3945 if test -n "$CPP" && test -d "$CPP"; then
3948 if test -z "$CPP"; then
3949 if ${ac_cv_prog_CPP+:} false; then :
3950 $as_echo_n "(cached) " >&6
3952 # Double quotes because CPP needs to be expanded
3953 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3956 for ac_c_preproc_warn_flag in '' yes
3958 # Use a header file that comes with gcc, so configuring glibc
3959 # with a fresh cross-compiler works.
3960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3961 # <limits.h> exists even on freestanding compilers.
3962 # On the NeXT, cc -E runs the code through the compiler's parser,
3963 # not just through cpp. "Syntax error" is here to catch this case.
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3967 # include <limits.h>
3969 # include <assert.h>
3973 if ac_fn_c_try_cpp "$LINENO"; then :
3976 # Broken: fails on valid input.
3979 rm -f conftest.err conftest.i conftest.$ac_ext
3981 # OK, works on sane cases. Now check whether nonexistent headers
3982 # can be detected and how.
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3985 #include <ac_nonexistent.h>
3987 if ac_fn_c_try_cpp "$LINENO"; then :
3988 # Broken: success on invalid input.
3991 # Passes both tests.
3995 rm -f conftest.err conftest.i conftest.$ac_ext
3998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3999 rm -f conftest.i conftest.err conftest.$ac_ext
4000 if $ac_preproc_ok; then :
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4013 $as_echo "$CPP" >&6; }
4015 for ac_c_preproc_warn_flag in '' yes
4017 # Use a header file that comes with gcc, so configuring glibc
4018 # with a fresh cross-compiler works.
4019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4020 # <limits.h> exists even on freestanding compilers.
4021 # On the NeXT, cc -E runs the code through the compiler's parser,
4022 # not just through cpp. "Syntax error" is here to catch this case.
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4026 # include <limits.h>
4028 # include <assert.h>
4032 if ac_fn_c_try_cpp "$LINENO"; then :
4035 # Broken: fails on valid input.
4038 rm -f conftest.err conftest.i conftest.$ac_ext
4040 # OK, works on sane cases. Now check whether nonexistent headers
4041 # can be detected and how.
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044 #include <ac_nonexistent.h>
4046 if ac_fn_c_try_cpp "$LINENO"; then :
4047 # Broken: success on invalid input.
4050 # Passes both tests.
4054 rm -f conftest.err conftest.i conftest.$ac_ext
4057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4058 rm -f conftest.i conftest.err conftest.$ac_ext
4059 if $ac_preproc_ok; then :
4062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4065 See \`config.log' for more details" "$LINENO" 5; }
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4076 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4077 if ${ac_cv_path_GREP+:} false; then :
4078 $as_echo_n "(cached) " >&6
4080 if test -z "$GREP"; then
4081 ac_path_GREP_found=false
4082 # Loop through the user's path and test for each of PROGNAME-LIST
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087 test -z "$as_dir" && as_dir=.
4088 for ac_prog in grep ggrep; do
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4091 as_fn_executable_p "$ac_path_GREP" || continue
4092 # Check for GNU ac_path_GREP and select it if it is found.
4093 # Check for GNU $ac_path_GREP
4094 case `"$ac_path_GREP" --version 2>&1` in
4096 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4099 $as_echo_n 0123456789 >"conftest.in"
4102 cat "conftest.in" "conftest.in" >"conftest.tmp"
4103 mv "conftest.tmp" "conftest.in"
4104 cp "conftest.in" "conftest.nl"
4105 $as_echo 'GREP' >> "conftest.nl"
4106 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4108 as_fn_arith $ac_count + 1 && ac_count=$as_val
4109 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4110 # Best one so far, save it but keep looking for a better one
4111 ac_cv_path_GREP="$ac_path_GREP"
4112 ac_path_GREP_max=$ac_count
4114 # 10*(2^10) chars as input seems more than enough
4115 test $ac_count -gt 10 && break
4117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120 $ac_path_GREP_found && break 3
4125 if test -z "$ac_cv_path_GREP"; then
4126 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4129 ac_cv_path_GREP=$GREP
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4134 $as_echo "$ac_cv_path_GREP" >&6; }
4135 GREP="$ac_cv_path_GREP"
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4139 $as_echo_n "checking for egrep... " >&6; }
4140 if ${ac_cv_path_EGREP+:} false; then :
4141 $as_echo_n "(cached) " >&6
4143 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4144 then ac_cv_path_EGREP="$GREP -E"
4146 if test -z "$EGREP"; then
4147 ac_path_EGREP_found=false
4148 # Loop through the user's path and test for each of PROGNAME-LIST
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4153 test -z "$as_dir" && as_dir=.
4154 for ac_prog in egrep; do
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4157 as_fn_executable_p "$ac_path_EGREP" || continue
4158 # Check for GNU ac_path_EGREP and select it if it is found.
4159 # Check for GNU $ac_path_EGREP
4160 case `"$ac_path_EGREP" --version 2>&1` in
4162 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4165 $as_echo_n 0123456789 >"conftest.in"
4168 cat "conftest.in" "conftest.in" >"conftest.tmp"
4169 mv "conftest.tmp" "conftest.in"
4170 cp "conftest.in" "conftest.nl"
4171 $as_echo 'EGREP' >> "conftest.nl"
4172 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174 as_fn_arith $ac_count + 1 && ac_count=$as_val
4175 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4176 # Best one so far, save it but keep looking for a better one
4177 ac_cv_path_EGREP="$ac_path_EGREP"
4178 ac_path_EGREP_max=$ac_count
4180 # 10*(2^10) chars as input seems more than enough
4181 test $ac_count -gt 10 && break
4183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4186 $ac_path_EGREP_found && break 3
4191 if test -z "$ac_cv_path_EGREP"; then
4192 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4195 ac_cv_path_EGREP=$EGREP
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4201 $as_echo "$ac_cv_path_EGREP" >&6; }
4202 EGREP="$ac_cv_path_EGREP"
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4206 $as_echo_n "checking for ANSI C header files... " >&6; }
4207 if ${ac_cv_header_stdc+:} false; then :
4208 $as_echo_n "(cached) " >&6
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4225 if ac_fn_c_try_compile "$LINENO"; then :
4226 ac_cv_header_stdc=yes
4228 ac_cv_header_stdc=no
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 if test $ac_cv_header_stdc = yes; then
4233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240 $EGREP "memchr" >/dev/null 2>&1; then :
4243 ac_cv_header_stdc=no
4249 if test $ac_cv_header_stdc = yes; then
4250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 $EGREP "free" >/dev/null 2>&1; then :
4260 ac_cv_header_stdc=no
4266 if test $ac_cv_header_stdc = yes; then
4267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4268 if test "$cross_compiling" = yes; then :
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4275 #if ((' ' & 0x0FF) == 0x020)
4276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4279 # define ISLOWER(c) \
4280 (('a' <= (c) && (c) <= 'i') \
4281 || ('j' <= (c) && (c) <= 'r') \
4282 || ('s' <= (c) && (c) <= 'z'))
4283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4291 for (i = 0; i < 256; i++)
4292 if (XOR (islower (i), ISLOWER (i))
4293 || toupper (i) != TOUPPER (i))
4298 if ac_fn_c_try_run "$LINENO"; then :
4301 ac_cv_header_stdc=no
4303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4304 conftest.$ac_objext conftest.beam conftest.$ac_ext
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4310 $as_echo "$ac_cv_header_stdc" >&6; }
4311 if test $ac_cv_header_stdc = yes; then
4313 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4318 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4319 inttypes.h stdint.h unistd.h
4321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4322 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4324 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4325 cat >>confdefs.h <<_ACEOF
4326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4335 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4336 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4343 if test "$MINIX" = yes; then
4345 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4348 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4351 $as_echo "#define _MINIX 1" >>confdefs.h
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4357 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4358 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4359 $as_echo_n "(cached) " >&6
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4364 # define __EXTENSIONS__ 1
4365 $ac_includes_default
4374 if ac_fn_c_try_compile "$LINENO"; then :
4375 ac_cv_safe_to_define___extensions__=yes
4377 ac_cv_safe_to_define___extensions__=no
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4382 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4383 test $ac_cv_safe_to_define___extensions__ = yes &&
4384 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4386 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4388 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4390 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4392 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4396 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4397 if test -f "$ac_dir/install-sh"; then
4399 ac_install_sh="$ac_aux_dir/install-sh -c"
4401 elif test -f "$ac_dir/install.sh"; then
4403 ac_install_sh="$ac_aux_dir/install.sh -c"
4405 elif test -f "$ac_dir/shtool"; then
4407 ac_install_sh="$ac_aux_dir/shtool install -c"
4411 if test -z "$ac_aux_dir"; then
4412 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4415 # These three variables are undocumented and unsupported,
4416 # and are intended to be withdrawn in a future Autoconf release.
4417 # They can cause serious problems if a builder's source tree is in a directory
4418 # whose full name contains unusual characters.
4419 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4420 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4421 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4424 # Make sure we can run config.sub.
4425 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4426 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4429 $as_echo_n "checking build system type... " >&6; }
4430 if ${ac_cv_build+:} false; then :
4431 $as_echo_n "(cached) " >&6
4433 ac_build_alias=$build_alias
4434 test "x$ac_build_alias" = x &&
4435 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4436 test "x$ac_build_alias" = x &&
4437 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4439 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4443 $as_echo "$ac_cv_build" >&6; }
4444 case $ac_cv_build in
4446 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4449 ac_save_IFS=$IFS; IFS='-'
4455 # Remember, the first character of IFS is used to create $*,
4456 # except with old shells:
4459 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4463 $as_echo_n "checking host system type... " >&6; }
4464 if ${ac_cv_host+:} false; then :
4465 $as_echo_n "(cached) " >&6
4467 if test "x$host_alias" = x; then
4468 ac_cv_host=$ac_cv_build
4470 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4471 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4476 $as_echo "$ac_cv_host" >&6; }
4479 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4482 ac_save_IFS=$IFS; IFS='-'
4488 # Remember, the first character of IFS is used to create $*,
4489 # except with old shells:
4492 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4496 $as_echo_n "checking target system type... " >&6; }
4497 if ${ac_cv_target+:} false; then :
4498 $as_echo_n "(cached) " >&6
4500 if test "x$target_alias" = x; then
4501 ac_cv_target=$ac_cv_host
4503 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4504 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4509 $as_echo "$ac_cv_target" >&6; }
4510 case $ac_cv_target in
4512 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4514 target=$ac_cv_target
4515 ac_save_IFS=$IFS; IFS='-'
4521 # Remember, the first character of IFS is used to create $*,
4522 # except with old shells:
4525 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4528 # The aliases save the names the user supplied, while $host etc.
4529 # will get canonicalized.
4530 test -n "$target_alias" &&
4531 test "$program_prefix$program_suffix$program_transform_name" = \
4533 program_prefix=${target_alias}-
4535 # The tests for host and target for $enable_largefile require
4540 # As the $enable_largefile decision depends on --enable-plugins we must set it
4541 # even in directories otherwise not depending on the $plugins option.
4545 for ac_header in dlfcn.h
4547 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4549 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4550 cat >>confdefs.h <<_ACEOF
4551 #define HAVE_DLFCN_H 1
4558 for ac_header in windows.h
4560 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4562 if test "x$ac_cv_header_windows_h" = xyes; then :
4563 cat >>confdefs.h <<_ACEOF
4564 #define HAVE_WINDOWS_H 1
4572 # Check whether --enable-plugins was given.
4573 if test "${enable_plugins+set}" = set; then :
4574 enableval=$enable_plugins; case "${enableval}" in
4577 if test "$maybe_plugins" != "yes" ; then
4578 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4582 plugins=$maybe_plugins
4586 if test "$plugins" = "yes"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4588 $as_echo_n "checking for library containing dlsym... " >&6; }
4589 if ${ac_cv_search_dlsym+:} false; then :
4590 $as_echo_n "(cached) " >&6
4592 ac_func_search_save_LIBS=$LIBS
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4596 /* Override any GCC internal prototype to avoid an error.
4597 Use char because int might match the return type of a GCC
4598 builtin and then its argument prototype would still apply. */
4611 for ac_lib in '' dl; do
4612 if test -z "$ac_lib"; then
4613 ac_res="none required"
4616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4618 if ac_fn_c_try_link "$LINENO"; then :
4619 ac_cv_search_dlsym=$ac_res
4621 rm -f core conftest.err conftest.$ac_objext \
4623 if ${ac_cv_search_dlsym+:} false; then :
4627 if ${ac_cv_search_dlsym+:} false; then :
4630 ac_cv_search_dlsym=no
4633 LIBS=$ac_func_search_save_LIBS
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4636 $as_echo "$ac_cv_search_dlsym" >&6; }
4637 ac_res=$ac_cv_search_dlsym
4638 if test "$ac_res" != no; then :
4639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4647 sparc-*-solaris*|i[3-7]86-*-solaris*)
4648 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4649 # are mutually exclusive; and without procfs support, the bfd/ elf module
4650 # cannot provide certain routines such as elfcore_write_prpsinfo
4651 # or elfcore_write_prstatus. So unless the user explicitly requested
4652 # large-file support through the --enable-largefile switch, disable
4653 # large-file support in favor of procfs support.
4654 test "${target}" = "${host}" -a "x$plugins" = xno \
4655 && : ${enable_largefile="no"}
4659 # Check whether --enable-largefile was given.
4660 if test "${enable_largefile+set}" = set; then :
4661 enableval=$enable_largefile;
4664 if test "$enable_largefile" != no; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4667 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4668 if ${ac_cv_sys_largefile_CC+:} false; then :
4669 $as_echo_n "(cached) " >&6
4671 ac_cv_sys_largefile_CC=no
4672 if test "$GCC" != yes; then
4675 # IRIX 6.2 and later do not support large files by default,
4676 # so use the C compiler's -n32 option if that helps.
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679 #include <sys/types.h>
4680 /* Check that off_t can represent 2**63 - 1 correctly.
4681 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4682 since some C++ compilers masquerading as C compilers
4683 incorrectly reject 9223372036854775807. */
4684 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4685 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4686 && LARGE_OFF_T % 2147483647 == 1)
4696 if ac_fn_c_try_compile "$LINENO"; then :
4699 rm -f core conftest.err conftest.$ac_objext
4701 if ac_fn_c_try_compile "$LINENO"; then :
4702 ac_cv_sys_largefile_CC=' -n32'; break
4704 rm -f core conftest.err conftest.$ac_objext
4708 rm -f conftest.$ac_ext
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4712 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4713 if test "$ac_cv_sys_largefile_CC" != no; then
4714 CC=$CC$ac_cv_sys_largefile_CC
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4718 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4719 if ${ac_cv_sys_file_offset_bits+:} false; then :
4720 $as_echo_n "(cached) " >&6
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725 #include <sys/types.h>
4726 /* Check that off_t can represent 2**63 - 1 correctly.
4727 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4728 since some C++ compilers masquerading as C compilers
4729 incorrectly reject 9223372036854775807. */
4730 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4731 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4732 && LARGE_OFF_T % 2147483647 == 1)
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_cv_sys_file_offset_bits=no; break
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748 #define _FILE_OFFSET_BITS 64
4749 #include <sys/types.h>
4750 /* Check that off_t can represent 2**63 - 1 correctly.
4751 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4752 since some C++ compilers masquerading as C compilers
4753 incorrectly reject 9223372036854775807. */
4754 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4755 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4756 && LARGE_OFF_T % 2147483647 == 1)
4766 if ac_fn_c_try_compile "$LINENO"; then :
4767 ac_cv_sys_file_offset_bits=64; break
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 ac_cv_sys_file_offset_bits=unknown
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4775 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4776 case $ac_cv_sys_file_offset_bits in #(
4779 cat >>confdefs.h <<_ACEOF
4780 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4785 if test $ac_cv_sys_file_offset_bits = unknown; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4787 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4788 if ${ac_cv_sys_large_files+:} false; then :
4789 $as_echo_n "(cached) " >&6
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 #include <sys/types.h>
4795 /* Check that off_t can represent 2**63 - 1 correctly.
4796 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4797 since some C++ compilers masquerading as C compilers
4798 incorrectly reject 9223372036854775807. */
4799 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4801 && LARGE_OFF_T % 2147483647 == 1)
4811 if ac_fn_c_try_compile "$LINENO"; then :
4812 ac_cv_sys_large_files=no; break
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4817 #define _LARGE_FILES 1
4818 #include <sys/types.h>
4819 /* Check that off_t can represent 2**63 - 1 correctly.
4820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4821 since some C++ compilers masquerading as C compilers
4822 incorrectly reject 9223372036854775807. */
4823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4825 && LARGE_OFF_T % 2147483647 == 1)
4835 if ac_fn_c_try_compile "$LINENO"; then :
4836 ac_cv_sys_large_files=1; break
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 ac_cv_sys_large_files=unknown
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4844 $as_echo "$ac_cv_sys_large_files" >&6; }
4845 case $ac_cv_sys_large_files in #(
4848 cat >>confdefs.h <<_ACEOF
4849 #define _LARGE_FILES $ac_cv_sys_large_files
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4864 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4865 if ${am_cv_prog_cc_stdc+:} false; then :
4866 $as_echo_n "(cached) " >&6
4868 am_cv_prog_cc_stdc=no
4870 # Don't try gcc -ansi; that turns off useful extensions and
4871 # breaks some systems' header files.
4872 # AIX -qlanglvl=ansi
4873 # Ultrix and OSF/1 -std1
4874 # HP-UX 10.20 and later -Ae
4875 # HP-UX older versions -Aa -D_HPUX_SOURCE
4876 # SVR4 -Xc -D__EXTENSIONS__
4877 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4879 CC="$ac_save_CC $ac_arg"
4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4884 #include <sys/types.h>
4885 #include <sys/stat.h>
4886 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4887 struct buf { int x; };
4888 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4889 static char *e (p, i)
4895 static char *f (char * (*g) (char **, int), char **p, ...)
4900 s = g (p, va_arg (v,int));
4904 int test (int i, double x);
4905 struct s1 {int (*f) (int a);};
4906 struct s2 {int (*f) (double a);};
4907 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4915 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4921 if ac_fn_c_try_compile "$LINENO"; then :
4922 am_cv_prog_cc_stdc="$ac_arg"; break
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 if test -z "$am_cv_prog_cc_stdc"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4932 $as_echo "none needed" >&6; }
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4935 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4937 case "x$am_cv_prog_cc_stdc" in
4939 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4942 # Expand $ac_aux_dir to an absolute path.
4943 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4945 if test x"${install_sh+set}" != xset; then
4948 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4950 install_sh="\${SHELL} $am_aux_dir/install-sh"
4954 # Installed binaries are usually stripped using 'strip' when the user
4955 # run "make install-strip". However 'strip' might not be the right
4956 # tool to use in cross-compilation environments, therefore Automake
4957 # will honor the 'STRIP' environment variable to overrule this program.
4958 if test "$cross_compiling" != no; then
4959 if test -n "$ac_tool_prefix"; then
4960 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4961 set dummy ${ac_tool_prefix}strip; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if ${ac_cv_prog_STRIP+:} false; then :
4965 $as_echo_n "(cached) " >&6
4967 if test -n "$STRIP"; then
4968 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4977 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 STRIP=$ac_cv_prog_STRIP
4988 if test -n "$STRIP"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4990 $as_echo "$STRIP" >&6; }
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4998 if test -z "$ac_cv_prog_STRIP"; then
5000 # Extract the first word of "strip", so it can be a program name with args.
5001 set dummy strip; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5005 $as_echo_n "(cached) " >&6
5007 if test -n "$ac_ct_STRIP"; then
5008 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017 ac_cv_prog_ac_ct_STRIP="strip"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5028 if test -n "$ac_ct_STRIP"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5030 $as_echo "$ac_ct_STRIP" >&6; }
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5036 if test "x$ac_ct_STRIP" = x; then
5039 case $cross_compiling:$ac_tool_warned in
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5043 ac_tool_warned=yes ;;
5048 STRIP="$ac_cv_prog_STRIP"
5052 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5056 for ac_dir in .. "$srcdir"/..; do
5057 if test -f "$ac_dir/install-sh"; then
5059 ac_install_sh="$ac_aux_dir/install-sh -c"
5061 elif test -f "$ac_dir/install.sh"; then
5063 ac_install_sh="$ac_aux_dir/install.sh -c"
5065 elif test -f "$ac_dir/shtool"; then
5067 ac_install_sh="$ac_aux_dir/shtool install -c"
5071 if test -z "$ac_aux_dir"; then
5072 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5075 # These three variables are undocumented and unsupported,
5076 # and are intended to be withdrawn in a future Autoconf release.
5077 # They can cause serious problems if a builder's source tree is in a directory
5078 # whose full name contains unusual characters.
5079 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5080 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5081 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5085 test "$program_prefix" != NONE &&
5086 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5087 # Use a double $ so make ignores it.
5088 test "$program_suffix" != NONE &&
5089 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5090 # Double any \ or $.
5091 # By default was `s,x,x', remove it if useless.
5092 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5093 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5096 # We require a C++11 compiler. Check if one is available, and if
5097 # necessary, set CXX_DIALECT to some -std=xxx switch.
5099 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5101 ac_cpp='$CXXCPP $CPPFLAGS'
5102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5108 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5109 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5110 $as_echo_n "(cached) " >&6
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5116 // If the compiler admits that it is not ready for C++11, why torture it?
5117 // Hopefully, this will speed up the test.
5121 #error "This is not a C++ compiler"
5123 #elif __cplusplus < 201103L
5125 #error "This is not a C++11 compiler"
5132 namespace test_static_assert
5135 template <typename T>
5138 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5143 namespace test_final_override
5151 struct Derived : public Base
5153 virtual void f() override {}
5158 namespace test_double_right_angle_brackets
5161 template < typename T >
5164 typedef check<void> single_type;
5165 typedef check<check<void>> double_type;
5166 typedef check<check<check<void>>> triple_type;
5167 typedef check<check<check<check<void>>>> quadruple_type;
5171 namespace test_decltype
5184 namespace test_type_deduction
5187 template < typename T1, typename T2 >
5190 static const bool value = false;
5193 template < typename T >
5194 struct is_same<T, T>
5196 static const bool value = true;
5199 template < typename T1, typename T2 >
5201 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5207 test(const int c, volatile int v)
5209 static_assert(is_same<int, decltype(0)>::value == true, "");
5210 static_assert(is_same<int, decltype(c)>::value == false, "");
5211 static_assert(is_same<int, decltype(v)>::value == false, "");
5214 auto sumi = ac + av + 'x';
5215 auto sumf = ac + av + 1.0;
5216 static_assert(is_same<int, decltype(ac)>::value == true, "");
5217 static_assert(is_same<int, decltype(av)>::value == true, "");
5218 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5219 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5220 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5221 return (sumf > 0.0) ? sumi : add(c, v);
5226 namespace test_noexcept
5229 int f() { return 0; }
5230 int g() noexcept { return 0; }
5232 static_assert(noexcept(f()) == false, "");
5233 static_assert(noexcept(g()) == true, "");
5237 namespace test_constexpr
5240 template < typename CharT >
5241 unsigned long constexpr
5242 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5244 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5247 template < typename CharT >
5248 unsigned long constexpr
5249 strlen_c(const CharT *const s) noexcept
5251 return strlen_c_r(s, 0UL);
5254 static_assert(strlen_c("") == 0UL, "");
5255 static_assert(strlen_c("1") == 1UL, "");
5256 static_assert(strlen_c("example") == 7UL, "");
5257 static_assert(strlen_c("another\0example") == 7UL, "");
5261 namespace test_rvalue_references
5267 static constexpr int value = N;
5270 answer<1> f(int&) { return answer<1>(); }
5271 answer<2> f(const int&) { return answer<2>(); }
5272 answer<3> f(int&&) { return answer<3>(); }
5279 static_assert(decltype(f(i))::value == 1, "");
5280 static_assert(decltype(f(c))::value == 2, "");
5281 static_assert(decltype(f(0))::value == 3, "");
5286 namespace test_uniform_initialization
5291 static const int zero {};
5292 static const int one {1};
5295 static_assert(test::zero == 0, "");
5296 static_assert(test::one == 1, "");
5300 namespace test_lambdas
5306 auto lambda1 = [](){};
5307 auto lambda2 = lambda1;
5315 auto a = [](int i, int j){ return i + j; }(1, 2);
5316 auto b = []() -> int { return '0'; }();
5317 auto c = [=](){ return a + b; }();
5318 auto d = [&](){ return c; }();
5319 auto e = [a, &b](int x) mutable {
5320 const auto identity = [](int y){ return y; };
5321 for (auto i = 0; i < a; ++i)
5323 return x + identity(a + b);
5325 return a + b + c + d + e;
5331 const auto nullary = [](){ return 0; };
5332 const auto unary = [](int x){ return x; };
5333 using nullary_t = decltype(nullary);
5334 using unary_t = decltype(unary);
5335 const auto higher1st = [](nullary_t f){ return f(); };
5336 const auto higher2nd = [unary](nullary_t f1){
5337 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5339 return higher1st(nullary) + higher2nd(nullary)(unary);
5344 namespace test_variadic_templates
5350 template <int N0, int... N1toN>
5351 struct sum<N0, N1toN...>
5353 static constexpr auto value = N0 + sum<N1toN...>::value;
5359 static constexpr auto value = 0;
5362 static_assert(sum<>::value == 0, "");
5363 static_assert(sum<1>::value == 1, "");
5364 static_assert(sum<23>::value == 23, "");
5365 static_assert(sum<1, 2>::value == 3, "");
5366 static_assert(sum<5, 5, 11>::value == 21, "");
5367 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5371 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5372 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5374 namespace test_template_alias_sfinae
5379 template<typename T>
5380 using member = typename T::member_type;
5382 template<typename T>
5385 template<typename T>
5386 void func(member<T>*) {}
5390 void test() { func<foo>(0); }
5394 } // namespace cxx11
5396 #endif // __cplusplus >= 201103L
5401 if ac_fn_cxx_try_compile "$LINENO"; then :
5402 ax_cv_cxx_compile_cxx11=yes
5404 ax_cv_cxx_compile_cxx11=no
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5409 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5410 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5414 if test x$ac_success = xno; then
5415 for alternative in ${ax_cxx_compile_alternatives}; do
5416 switch="-std=gnu++${alternative}"
5417 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5419 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5420 if eval \${$cachevar+:} false; then :
5421 $as_echo_n "(cached) " >&6
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5429 // If the compiler admits that it is not ready for C++11, why torture it?
5430 // Hopefully, this will speed up the test.
5434 #error "This is not a C++ compiler"
5436 #elif __cplusplus < 201103L
5438 #error "This is not a C++11 compiler"
5445 namespace test_static_assert
5448 template <typename T>
5451 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5456 namespace test_final_override
5464 struct Derived : public Base
5466 virtual void f() override {}
5471 namespace test_double_right_angle_brackets
5474 template < typename T >
5477 typedef check<void> single_type;
5478 typedef check<check<void>> double_type;
5479 typedef check<check<check<void>>> triple_type;
5480 typedef check<check<check<check<void>>>> quadruple_type;
5484 namespace test_decltype
5497 namespace test_type_deduction
5500 template < typename T1, typename T2 >
5503 static const bool value = false;
5506 template < typename T >
5507 struct is_same<T, T>
5509 static const bool value = true;
5512 template < typename T1, typename T2 >
5514 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5520 test(const int c, volatile int v)
5522 static_assert(is_same<int, decltype(0)>::value == true, "");
5523 static_assert(is_same<int, decltype(c)>::value == false, "");
5524 static_assert(is_same<int, decltype(v)>::value == false, "");
5527 auto sumi = ac + av + 'x';
5528 auto sumf = ac + av + 1.0;
5529 static_assert(is_same<int, decltype(ac)>::value == true, "");
5530 static_assert(is_same<int, decltype(av)>::value == true, "");
5531 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5532 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5533 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5534 return (sumf > 0.0) ? sumi : add(c, v);
5539 namespace test_noexcept
5542 int f() { return 0; }
5543 int g() noexcept { return 0; }
5545 static_assert(noexcept(f()) == false, "");
5546 static_assert(noexcept(g()) == true, "");
5550 namespace test_constexpr
5553 template < typename CharT >
5554 unsigned long constexpr
5555 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5557 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5560 template < typename CharT >
5561 unsigned long constexpr
5562 strlen_c(const CharT *const s) noexcept
5564 return strlen_c_r(s, 0UL);
5567 static_assert(strlen_c("") == 0UL, "");
5568 static_assert(strlen_c("1") == 1UL, "");
5569 static_assert(strlen_c("example") == 7UL, "");
5570 static_assert(strlen_c("another\0example") == 7UL, "");
5574 namespace test_rvalue_references
5580 static constexpr int value = N;
5583 answer<1> f(int&) { return answer<1>(); }
5584 answer<2> f(const int&) { return answer<2>(); }
5585 answer<3> f(int&&) { return answer<3>(); }
5592 static_assert(decltype(f(i))::value == 1, "");
5593 static_assert(decltype(f(c))::value == 2, "");
5594 static_assert(decltype(f(0))::value == 3, "");
5599 namespace test_uniform_initialization
5604 static const int zero {};
5605 static const int one {1};
5608 static_assert(test::zero == 0, "");
5609 static_assert(test::one == 1, "");
5613 namespace test_lambdas
5619 auto lambda1 = [](){};
5620 auto lambda2 = lambda1;
5628 auto a = [](int i, int j){ return i + j; }(1, 2);
5629 auto b = []() -> int { return '0'; }();
5630 auto c = [=](){ return a + b; }();
5631 auto d = [&](){ return c; }();
5632 auto e = [a, &b](int x) mutable {
5633 const auto identity = [](int y){ return y; };
5634 for (auto i = 0; i < a; ++i)
5636 return x + identity(a + b);
5638 return a + b + c + d + e;
5644 const auto nullary = [](){ return 0; };
5645 const auto unary = [](int x){ return x; };
5646 using nullary_t = decltype(nullary);
5647 using unary_t = decltype(unary);
5648 const auto higher1st = [](nullary_t f){ return f(); };
5649 const auto higher2nd = [unary](nullary_t f1){
5650 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5652 return higher1st(nullary) + higher2nd(nullary)(unary);
5657 namespace test_variadic_templates
5663 template <int N0, int... N1toN>
5664 struct sum<N0, N1toN...>
5666 static constexpr auto value = N0 + sum<N1toN...>::value;
5672 static constexpr auto value = 0;
5675 static_assert(sum<>::value == 0, "");
5676 static_assert(sum<1>::value == 1, "");
5677 static_assert(sum<23>::value == 23, "");
5678 static_assert(sum<1, 2>::value == 3, "");
5679 static_assert(sum<5, 5, 11>::value == 21, "");
5680 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5684 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5685 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5687 namespace test_template_alias_sfinae
5692 template<typename T>
5693 using member = typename T::member_type;
5695 template<typename T>
5698 template<typename T>
5699 void func(member<T>*) {}
5703 void test() { func<foo>(0); }
5707 } // namespace cxx11
5709 #endif // __cplusplus >= 201103L
5714 if ac_fn_cxx_try_compile "$LINENO"; then :
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 eval ac_res=\$$cachevar
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5724 $as_echo "$ac_res" >&6; }
5725 if eval test x\$$cachevar = xyes; then
5726 CXX_DIALECT="$switch"
5733 if test x$ac_success = xno; then
5734 for alternative in ${ax_cxx_compile_alternatives}; do
5735 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5736 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5738 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5739 if eval \${$cachevar+:} false; then :
5740 $as_echo_n "(cached) " >&6
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5748 // If the compiler admits that it is not ready for C++11, why torture it?
5749 // Hopefully, this will speed up the test.
5753 #error "This is not a C++ compiler"
5755 #elif __cplusplus < 201103L
5757 #error "This is not a C++11 compiler"
5764 namespace test_static_assert
5767 template <typename T>
5770 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5775 namespace test_final_override
5783 struct Derived : public Base
5785 virtual void f() override {}
5790 namespace test_double_right_angle_brackets
5793 template < typename T >
5796 typedef check<void> single_type;
5797 typedef check<check<void>> double_type;
5798 typedef check<check<check<void>>> triple_type;
5799 typedef check<check<check<check<void>>>> quadruple_type;
5803 namespace test_decltype
5816 namespace test_type_deduction
5819 template < typename T1, typename T2 >
5822 static const bool value = false;
5825 template < typename T >
5826 struct is_same<T, T>
5828 static const bool value = true;
5831 template < typename T1, typename T2 >
5833 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5839 test(const int c, volatile int v)
5841 static_assert(is_same<int, decltype(0)>::value == true, "");
5842 static_assert(is_same<int, decltype(c)>::value == false, "");
5843 static_assert(is_same<int, decltype(v)>::value == false, "");
5846 auto sumi = ac + av + 'x';
5847 auto sumf = ac + av + 1.0;
5848 static_assert(is_same<int, decltype(ac)>::value == true, "");
5849 static_assert(is_same<int, decltype(av)>::value == true, "");
5850 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5851 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5852 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5853 return (sumf > 0.0) ? sumi : add(c, v);
5858 namespace test_noexcept
5861 int f() { return 0; }
5862 int g() noexcept { return 0; }
5864 static_assert(noexcept(f()) == false, "");
5865 static_assert(noexcept(g()) == true, "");
5869 namespace test_constexpr
5872 template < typename CharT >
5873 unsigned long constexpr
5874 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5876 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5879 template < typename CharT >
5880 unsigned long constexpr
5881 strlen_c(const CharT *const s) noexcept
5883 return strlen_c_r(s, 0UL);
5886 static_assert(strlen_c("") == 0UL, "");
5887 static_assert(strlen_c("1") == 1UL, "");
5888 static_assert(strlen_c("example") == 7UL, "");
5889 static_assert(strlen_c("another\0example") == 7UL, "");
5893 namespace test_rvalue_references
5899 static constexpr int value = N;
5902 answer<1> f(int&) { return answer<1>(); }
5903 answer<2> f(const int&) { return answer<2>(); }
5904 answer<3> f(int&&) { return answer<3>(); }
5911 static_assert(decltype(f(i))::value == 1, "");
5912 static_assert(decltype(f(c))::value == 2, "");
5913 static_assert(decltype(f(0))::value == 3, "");
5918 namespace test_uniform_initialization
5923 static const int zero {};
5924 static const int one {1};
5927 static_assert(test::zero == 0, "");
5928 static_assert(test::one == 1, "");
5932 namespace test_lambdas
5938 auto lambda1 = [](){};
5939 auto lambda2 = lambda1;
5947 auto a = [](int i, int j){ return i + j; }(1, 2);
5948 auto b = []() -> int { return '0'; }();
5949 auto c = [=](){ return a + b; }();
5950 auto d = [&](){ return c; }();
5951 auto e = [a, &b](int x) mutable {
5952 const auto identity = [](int y){ return y; };
5953 for (auto i = 0; i < a; ++i)
5955 return x + identity(a + b);
5957 return a + b + c + d + e;
5963 const auto nullary = [](){ return 0; };
5964 const auto unary = [](int x){ return x; };
5965 using nullary_t = decltype(nullary);
5966 using unary_t = decltype(unary);
5967 const auto higher1st = [](nullary_t f){ return f(); };
5968 const auto higher2nd = [unary](nullary_t f1){
5969 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5971 return higher1st(nullary) + higher2nd(nullary)(unary);
5976 namespace test_variadic_templates
5982 template <int N0, int... N1toN>
5983 struct sum<N0, N1toN...>
5985 static constexpr auto value = N0 + sum<N1toN...>::value;
5991 static constexpr auto value = 0;
5994 static_assert(sum<>::value == 0, "");
5995 static_assert(sum<1>::value == 1, "");
5996 static_assert(sum<23>::value == 23, "");
5997 static_assert(sum<1, 2>::value == 3, "");
5998 static_assert(sum<5, 5, 11>::value == 21, "");
5999 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6003 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6004 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6006 namespace test_template_alias_sfinae
6011 template<typename T>
6012 using member = typename T::member_type;
6014 template<typename T>
6017 template<typename T>
6018 void func(member<T>*) {}
6022 void test() { func<foo>(0); }
6026 } // namespace cxx11
6028 #endif // __cplusplus >= 201103L
6033 if ac_fn_cxx_try_compile "$LINENO"; then :
6038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 eval ac_res=\$$cachevar
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6043 $as_echo "$ac_res" >&6; }
6044 if eval test x\$$cachevar = xyes; then
6045 CXX_DIALECT="$switch"
6050 if test x$ac_success = xyes; then
6056 ac_cpp='$CPP $CPPFLAGS'
6057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6062 if test x$ac_success = xno; then
6063 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6066 if test x$ac_success = xno; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6069 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6073 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6080 # Dependency checking.
6081 rm -rf .tst 2>/dev/null
6082 mkdir .tst 2>/dev/null
6083 if test -d .tst; then
6088 rmdir .tst 2>/dev/null
6090 DEPDIR="${am__leading_dot}deps"
6092 ac_config_commands="$ac_config_commands depdir"
6095 depcc="$CC" am_compiler_list=
6097 am_depcomp=$ac_aux_dir/depcomp
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6099 $as_echo_n "checking dependency style of $depcc... " >&6; }
6100 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6101 $as_echo_n "(cached) " >&6
6103 if test -f "$am_depcomp"; then
6104 # We make a subdir and do the tests there. Otherwise we can end up
6105 # making bogus files that we don't know about and never remove. For
6106 # instance it was reported that on HP-UX the gcc test will end up
6107 # making a dummy file named `D' -- because `-MD' means `put the output
6110 # Copy depcomp to subdir because otherwise we won't find it if we're
6111 # using a relative directory.
6112 cp "$am_depcomp" conftest.dir
6114 # We will build objects and dependencies in a subdirectory because
6115 # it helps to detect inapplicable dependency modes. For instance
6116 # both Tru64's cc and ICC support -MD to output dependencies as a
6117 # side effect of compilation, but ICC will put the dependencies in
6118 # the current directory while Tru64 will put them in the object
6122 am_cv_CC_dependencies_compiler_type=none
6123 if test "$am_compiler_list" = ""; then
6124 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6126 for depmode in $am_compiler_list; do
6127 if test $depmode = none; then break; fi
6129 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6130 # Setup a source with many dependencies, because some compilers
6131 # like to wrap large dependency lists on column 80 (with \), and
6132 # we should not choose a depcomp mode which is confused by this.
6134 # We need to recreate these files for each test, as the compiler may
6135 # overwrite some of them when testing with obscure command lines.
6136 # This happens at least with the AIX C compiler.
6138 for i in 1 2 3 4 5 6; do
6139 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6140 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6141 # Solaris 8's {/usr,}/bin/sh.
6142 touch sub/conftst$i.h
6144 echo "include sub/conftest.Po" > confmf
6146 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6147 # mode. It turns out that the SunPro C++ compiler does not properly
6148 # handle `-M -o', and we need to detect this.
6149 depcmd="depmode=$depmode \
6150 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6151 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6152 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6153 echo "| $depcmd" | sed -e 's/ */ /g' >&5
6154 if env $depcmd > conftest.err 2>&1 &&
6155 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6156 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6157 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6158 # icc doesn't choke on unknown options, it will just issue warnings
6159 # or remarks (even with -Werror). So we grep stderr for any message
6160 # that says an option was ignored or not supported.
6161 # When given -MP, icc 7.0 and 7.1 complain thusly:
6162 # icc: Command line warning: ignoring option '-M'; no argument required
6163 # The diagnosis changed in icc 8.0:
6164 # icc: Command line remark: option '-MP' not supported
6165 if (grep 'ignoring option' conftest.err ||
6166 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6167 am_cv_CC_dependencies_compiler_type=$depmode
6168 $as_echo "$as_me:$LINENO: success" >&5
6172 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6173 sed -e 's/^/| /' < conftest.err >&5
6179 am_cv_CC_dependencies_compiler_type=none
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6184 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6185 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
6186 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6187 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6192 gnulib_extra_configure_args=
6193 # If large-file support is disabled, make sure gnulib does the same.
6194 if test "$enable_largefile" = no; then
6195 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
6198 # Configure gnulib. We need to build gnulib under some other
6199 # directory not "gnulib", to avoid the problem of both GDB and
6200 # GDBserver wanting to build it in the same directory, when building
6201 # in the source dir.
6204 in_build="build-gnulib"
6205 in_extra_args="$gnulib_extra_configure_args"
6207 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6208 # so they do not pile up.
6209 ac_sub_configure_args=
6211 eval "set x $ac_configure_args"
6215 if test -n "$ac_prev"; then
6220 -cache-file | --cache-file | --cache-fil | --cache-fi \
6221 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6222 ac_prev=cache_file ;;
6223 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6224 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6227 --config-cache | -C)
6229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6233 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6235 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6237 --disable-option-checking)
6241 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6243 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
6247 # Always prepend --prefix to ensure using the same prefix
6248 # in subdir configurations.
6249 ac_arg="--prefix=$prefix"
6251 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6253 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
6256 if test "$silent" = yes; then
6257 ac_sub_configure_args="--silent $ac_sub_configure_args"
6260 # Always prepend --disable-option-checking to silence warnings, since
6261 # different subdirs can have different --enable and --with options.
6262 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
6267 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6269 $as_echo "$ac_msg" >&6
6270 as_dir="$ac_dir"; as_fn_mkdir_p
6274 ac_srcdir=$srcdir/$in_src ;;
6276 ac_srcdir=../$srcdir/$in_src ;;
6281 ac_sub_configure=$ac_srcdir/configure
6283 # Make the cache file name correct relative to the subdirectory.
6285 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6287 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
6290 if test -n "$in_extra_args"; then
6291 # Add the extra args at the end.
6292 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
6295 { $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
6296 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6297 # The eval makes quoting arguments work.
6298 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6299 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6300 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6316 # If we haven't got the data from the intl directory,
6317 # assume NLS is disabled.
6326 if test -f ../intl/config.intl; then
6327 . ../intl/config.intl
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6330 $as_echo_n "checking whether NLS is requested... " >&6; }
6331 if test x"$USE_NLS" != xyes; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6336 $as_echo "yes" >&6; }
6338 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6342 $as_echo_n "checking for catalogs to be installed... " >&6; }
6343 # Look for .po and .gmo files in the source directory.
6346 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6347 # If there aren't any .gmo files the shell will give us the
6348 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6350 case "$cat" in *\**)
6353 # The quadruple backslash is collapsed to a double backslash
6354 # by the backticks, then collapsed again by the double quotes,
6355 # leaving us with one backslash in the sed expression (right
6356 # before the dot that mustn't act as a wildcard).
6357 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6358 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6359 # The user is allowed to set LINGUAS to a list of languages to
6360 # install catalogs for. If it's empty that means "all of them."
6361 if test "x$LINGUAS" = x; then
6362 CATALOGS="$CATALOGS $cat"
6363 XLINGUAS="$XLINGUAS $lang"
6365 case "$LINGUAS" in *$lang*)
6366 CATALOGS="$CATALOGS $cat"
6367 XLINGUAS="$XLINGUAS $lang"
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6374 $as_echo "$LINGUAS" >&6; }
6387 localedir='${datadir}/locale'
6390 if test x"$USE_NLS" = xyes; then
6391 CONFIG_ALL="$CONFIG_ALL all-po"
6392 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
6393 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
6394 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
6397 GNULIB=build-gnulib/import
6399 # For Makefile dependencies.
6401 if test x"$STDINT_H" != x; then
6402 GNULIB_STDINT_H=$GNULIB/$STDINT_H
6408 cat >>confdefs.h <<_ACEOF
6409 #define PACKAGE "$PACKAGE"
6414 # We never need to detect it in this sub-configure.
6415 # But preserve it for config.status --recheck.
6419 MAKEINFO_EXTRA_FLAGS=""
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6421 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6422 if ${gdb_cv_have_makeinfo_click+:} false; then :
6423 $as_echo_n "(cached) " >&6
6425 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6426 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6427 gdb_cv_have_makeinfo_click=yes
6429 gdb_cv_have_makeinfo_click=no
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6433 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6434 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
6435 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6441 # Check whether --with-separate-debug-dir was given.
6442 if test "${with_separate_debug_dir+set}" = set; then :
6443 withval=$with_separate_debug_dir;
6446 DEBUGDIR=${libdir}/debug
6450 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6451 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6452 ac_define_dir=`eval echo $DEBUGDIR`
6453 ac_define_dir=`eval echo $ac_define_dir`
6455 cat >>confdefs.h <<_ACEOF
6456 #define DEBUGDIR "$ac_define_dir"
6462 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6463 if test "x$prefix" = xNONE; then
6464 test_prefix=/usr/local
6469 test_prefix=$exec_prefix
6472 case ${ac_define_dir} in
6473 "${test_prefix}"|"${test_prefix}/"*|\
6474 '${exec_prefix}'|'${exec_prefix}/'*)
6479 cat >>confdefs.h <<_ACEOF
6480 #define DEBUGDIR_RELOCATABLE $value
6486 # We can't pass paths as command line arguments.
6487 # Mingw32 tries to be clever and will convert the paths for us.
6488 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6489 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6490 # This breaks GDB's relocatable path conversions since paths passed in
6491 # config.h would not get so translated, the path prefixes no longer match.
6493 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6494 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6495 ac_define_dir=`eval echo $bindir`
6496 ac_define_dir=`eval echo $ac_define_dir`
6498 cat >>confdefs.h <<_ACEOF
6499 #define BINDIR "$ac_define_dir"
6504 # GDB's datadir relocation
6508 # Check whether --with-gdb-datadir was given.
6509 if test "${with_gdb_datadir+set}" = set; then :
6510 withval=$with_gdb_datadir;
6511 GDB_DATADIR=$withval
6513 GDB_DATADIR=${datadir}/gdb
6517 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6518 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6519 ac_define_dir=`eval echo $GDB_DATADIR`
6520 ac_define_dir=`eval echo $ac_define_dir`
6522 cat >>confdefs.h <<_ACEOF
6523 #define GDB_DATADIR "$ac_define_dir"
6529 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6530 if test "x$prefix" = xNONE; then
6531 test_prefix=/usr/local
6536 test_prefix=$exec_prefix
6539 case ${ac_define_dir} in
6540 "${test_prefix}"|"${test_prefix}/"*|\
6541 '${exec_prefix}'|'${exec_prefix}/'*)
6546 cat >>confdefs.h <<_ACEOF
6547 #define GDB_DATADIR_RELOCATABLE $value
6554 # Check whether --with-relocated-sources was given.
6555 if test "${with_relocated_sources+set}" = set; then :
6556 withval=$with_relocated_sources; reloc_srcdir="${withval}"
6558 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6559 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6560 ac_define_dir=`eval echo $reloc_srcdir`
6561 ac_define_dir=`eval echo $ac_define_dir`
6563 cat >>confdefs.h <<_ACEOF
6564 #define RELOC_SRCDIR "$ac_define_dir"
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6573 $as_echo_n "checking for default auto-load directory... " >&6; }
6575 # Check whether --with-auto-load-dir was given.
6576 if test "${with_auto_load_dir+set}" = set; then :
6577 withval=$with_auto_load_dir;
6579 with_auto_load_dir='$debugdir:$datadir/auto-load'
6582 escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6584 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6585 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6586 ac_define_dir=`eval echo $escape_dir`
6587 ac_define_dir=`eval echo $ac_define_dir`
6589 cat >>confdefs.h <<_ACEOF
6590 #define AUTO_LOAD_DIR "$ac_define_dir"
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6595 $as_echo "$with_auto_load_dir" >&6; }
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6598 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6600 # Check whether --with-auto-load-safe-path was given.
6601 if test "${with_auto_load_safe_path+set}" = set; then :
6602 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6603 with_auto_load_safe_path="/"
6606 with_auto_load_safe_path="$with_auto_load_dir"
6609 escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6611 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6612 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6613 ac_define_dir=`eval echo $escape_dir`
6614 ac_define_dir=`eval echo $ac_define_dir`
6616 cat >>confdefs.h <<_ACEOF
6617 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6622 $as_echo "$with_auto_load_safe_path" >&6; }
6626 subdirs="$subdirs testsuite"
6629 # Check whether to support alternative target configurations
6630 # Check whether --enable-targets was given.
6631 if test "${enable_targets+set}" = set; then :
6632 enableval=$enable_targets; case "${enableval}" in
6633 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6635 no) enable_targets= ;;
6636 *) enable_targets=$enableval ;;
6641 # Check whether to enable 64-bit support on 32-bit hosts
6642 # Check whether --enable-64-bit-bfd was given.
6643 if test "${enable_64_bit_bfd+set}" = set; then :
6644 enableval=$enable_64_bit_bfd; case "${enableval}" in
6647 *) as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6653 # Provide defaults for some variables set by the per-host and per-target
6655 gdb_host_obs=posix-hdep.o
6657 if test "${target}" = "${host}"; then
6663 . $srcdir/configure.host
6665 # Add in the common host objects.
6666 . $srcdir/common/common.host
6667 gdb_host_obs="$gdb_host_obs $common_host_obs"
6669 # Accumulate some settings from configure.tgt over all enabled targets
6673 HAVE_NATIVE_GCORE_TARGET=
6675 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6677 if test "$targ_alias" = "all"; then
6680 # Canonicalize the secondary target names.
6681 result=`$ac_config_sub $targ_alias 2>/dev/null`
6682 if test -n "$result"; then
6688 . ${srcdir}/configure.tgt
6690 if test -z "${gdb_target_obs}"; then :
6691 as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
6694 # Target-specific object files
6695 for i in ${gdb_target_obs}; do
6696 case " $TARGET_OBS " in
6699 TARGET_OBS="$TARGET_OBS ${i}"
6704 # Check whether this target needs 64-bit CORE_ADDR
6705 if test x${want64} = xfalse; then
6706 . ${srcdir}/../bfd/config.bfd
6709 # Check whether this target is native and supports gcore.
6710 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6711 && $gdb_have_gcore; then
6712 HAVE_NATIVE_GCORE_TARGET=1
6717 if test x${all_targets} = xtrue; then
6719 # We want all 64-bit targets if we either:
6720 # - run on a 64-bit host or
6721 # - already require 64-bit support for some other target or
6722 # - the --enable-64-bit-bfd option was supplied
6723 # Otherwise we only support all 32-bit targets.
6725 # NOTE: This test must be in sync with the corresponding
6728 if test x${want64} = xfalse; then
6729 # The cast to long int works around a bug in the HP C Compiler
6730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6732 # This bug is HP SR number 8606223364.
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6734 $as_echo_n "checking size of long... " >&6; }
6735 if ${ac_cv_sizeof_long+:} false; then :
6736 $as_echo_n "(cached) " >&6
6738 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6741 if test "$ac_cv_type_long" = yes; then
6742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6744 as_fn_error 77 "cannot compute sizeof (long)
6745 See \`config.log' for more details" "$LINENO" 5; }
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6753 $as_echo "$ac_cv_sizeof_long" >&6; }
6757 cat >>confdefs.h <<_ACEOF
6758 #define SIZEOF_LONG $ac_cv_sizeof_long
6762 if test "x${ac_cv_sizeof_long}" = "x8"; then
6766 if test x${want64} = xtrue; then
6767 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6769 TARGET_OBS='$(ALL_TARGET_OBS)'
6776 # For other settings, only the main target counts.
6780 targ=$target; . ${srcdir}/configure.tgt
6782 # Fetch the default architecture and default target vector from BFD.
6783 targ=$target; . $srcdir/../bfd/config.bfd
6785 # We only want the first architecture, so strip off the others if
6786 # there is more than one.
6787 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6789 if test "x$targ_archs" != x; then
6791 cat >>confdefs.h <<_ACEOF
6792 #define DEFAULT_BFD_ARCH $targ_archs
6796 if test "x$targ_defvec" != x; then
6798 cat >>confdefs.h <<_ACEOF
6799 #define DEFAULT_BFD_VEC $targ_defvec
6805 # Check whether --enable-gdbmi was given.
6806 if test "${enable_gdbmi+set}" = set; then :
6807 enableval=$enable_gdbmi; case $enableval in
6811 as_fn_error $? "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6817 if test x"$enable_gdbmi" = xyes; then
6818 if test -d $srcdir/mi; then
6819 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6820 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6821 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6822 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6827 # Check whether --enable-tui was given.
6828 if test "${enable_tui+set}" = set; then :
6829 enableval=$enable_tui; case $enableval in
6833 as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6841 # Check whether --enable-gdbtk was given.
6842 if test "${enable_gdbtk+set}" = set; then :
6843 enableval=$enable_gdbtk; case $enableval in
6847 as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6850 if test -d $srcdir/gdbtk; then
6857 # We unconditionally disable gdbtk tests on selected platforms.
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6861 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6865 # Libunwind support for ia64.
6868 # Check whether --with-libunwind-ia64 was given.
6869 if test "${with_libunwind_ia64+set}" = set; then :
6870 withval=$with_libunwind_ia64;
6872 with_libunwind_ia64=auto
6876 # Backward compatibility option.
6877 if test "${with_libunwind+set}" = set; then
6878 if test x"$with_libunwind_ia64" != xauto; then
6879 as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6882 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6883 with_libunwind_ia64="$with_libunwind"
6886 case "$with_libunwind_ia64" in
6890 for ac_header in libunwind-ia64.h
6892 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6893 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
6894 cat >>confdefs.h <<_ACEOF
6895 #define HAVE_LIBUNWIND_IA64_H 1
6902 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
6905 as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6909 if test x"$with_libunwind_ia64" = xyes; then
6910 for ac_header in libunwind-ia64.h
6912 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6913 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
6914 cat >>confdefs.h <<_ACEOF
6915 #define HAVE_LIBUNWIND_IA64_H 1
6922 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
6923 as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6925 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
6926 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
6927 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
6932 # Check whether --with-curses was given.
6933 if test "${with_curses+set}" = set; then :
6934 withval=$with_curses; opt_curses=$withval
6939 if test "$opt_curses" = "yes"; then
6943 # Profiling support.
6944 # Check whether --enable-profiling was given.
6945 if test "${enable_profiling+set}" = set; then :
6946 enableval=$enable_profiling; case $enableval in
6950 as_fn_error $? "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6957 for ac_func in monstartup _mcleanup
6959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6960 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6961 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6962 cat >>confdefs.h <<_ACEOF
6963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6970 $as_echo_n "checking for _etext... " >&6; }
6971 if ${ac_cv_var__etext+:} false; then :
6972 $as_echo_n "(cached) " >&6
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6987 if ac_fn_c_try_link "$LINENO"; then :
6988 ac_cv_var__etext=yes
6992 rm -f core conftest.err conftest.$ac_objext \
6993 conftest$ac_exeext conftest.$ac_ext
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6996 $as_echo "$ac_cv_var__etext" >&6; }
6997 if test $ac_cv_var__etext = yes; then
6999 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7003 $as_echo_n "checking for etext... " >&6; }
7004 if ${ac_cv_var_etext+:} false; then :
7005 $as_echo_n "(cached) " >&6
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7020 if ac_fn_c_try_link "$LINENO"; then :
7025 rm -f core conftest.err conftest.$ac_objext \
7026 conftest$ac_exeext conftest.$ac_ext
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7029 $as_echo "$ac_cv_var_etext" >&6; }
7030 if test $ac_cv_var_etext = yes; then
7032 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7035 if test "$enable_profiling" = yes ; then
7036 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
7037 as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7040 OLD_CFLAGS="$CFLAGS"
7041 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7044 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7045 if ${ac_cv_cc_supports_pg+:} false; then :
7046 $as_echo_n "(cached) " >&6
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7059 if ac_fn_c_try_compile "$LINENO"; then :
7060 ac_cv_cc_supports_pg=yes
7062 ac_cv_cc_supports_pg=no
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7067 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7069 if test $ac_cv_cc_supports_pg = no; then
7070 as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7073 CFLAGS="$OLD_CFLAGS"
7077 # Check whether --enable-codesign was given.
7078 if test "${enable_codesign+set}" = set; then :
7079 enableval=$enable_codesign; CODESIGN_CERT=$enableval
7086 # Check whether --with-pkgversion was given.
7087 if test "${with_pkgversion+set}" = set; then :
7088 withval=$with_pkgversion; case "$withval" in
7089 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7091 *) PKGVERSION="($withval) " ;;
7102 # Check whether --with-bugurl was given.
7103 if test "${with_bugurl+set}" = set; then :
7104 withval=$with_bugurl; case "$withval" in
7105 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7108 *) BUGURL="$withval"
7112 BUGURL="http://www.gnu.org/software/gdb/bugs/"
7122 REPORT_BUGS_TO="<$BUGURL>"
7123 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7130 cat >>confdefs.h <<_ACEOF
7131 #define PKGVERSION "$PKGVERSION"
7135 cat >>confdefs.h <<_ACEOF
7136 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7140 # --------------------- #
7141 # Checks for programs. #
7142 # --------------------- #
7144 for ac_prog in gawk mawk nawk awk
7146 # Extract the first word of "$ac_prog", so it can be a program name with args.
7147 set dummy $ac_prog; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_prog_AWK+:} false; then :
7151 $as_echo_n "(cached) " >&6
7153 if test -n "$AWK"; then
7154 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163 ac_cv_prog_AWK="$ac_prog"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 if test -n "$AWK"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7176 $as_echo "$AWK" >&6; }
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7183 test -n "$AWK" && break
7186 # Find a good install program. We prefer a C program (faster),
7187 # so one script is as good as another. But avoid the broken or
7188 # incompatible versions:
7189 # SysV /etc/install, /usr/sbin/install
7190 # SunOS /usr/etc/install
7191 # IRIX /sbin/install
7193 # AmigaOS /C/install, which installs bootblocks on floppy discs
7194 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7195 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7196 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7197 # OS/2's system install, which has a completely different semantic
7198 # ./install, which can be erroneously created by make from ./install.sh.
7199 # Reject install programs that cannot install multiple files.
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7201 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7202 if test -z "$INSTALL"; then
7203 if ${ac_cv_path_install+:} false; then :
7204 $as_echo_n "(cached) " >&6
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 test -z "$as_dir" && as_dir=.
7211 # Account for people who put trailing slashes in PATH elements.
7212 case $as_dir/ in #((
7213 ./ | .// | /[cC]/* | \
7214 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7215 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7218 # OSF1 and SCO ODT 3.0 have their own names for install.
7219 # Don't use installbsd from OSF since it installs stuff as root
7221 for ac_prog in ginstall scoinst install; do
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7224 if test $ac_prog = install &&
7225 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7226 # AIX install. It has an incompatible calling convention.
7228 elif test $ac_prog = install &&
7229 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7230 # program-specific install script used by HP pwplus--don't use.
7233 rm -rf conftest.one conftest.two conftest.dir
7234 echo one > conftest.one
7235 echo two > conftest.two
7237 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7238 test -s conftest.one && test -s conftest.two &&
7239 test -s conftest.dir/conftest.one &&
7240 test -s conftest.dir/conftest.two
7242 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7255 rm -rf conftest.one conftest.two conftest.dir
7258 if test "${ac_cv_path_install+set}" = set; then
7259 INSTALL=$ac_cv_path_install
7261 # As a last resort, use the slow shell script. Don't cache a
7262 # value for INSTALL within a source directory, because that will
7263 # break other packages using the cache if that directory is
7264 # removed, or if the value is a relative name.
7265 INSTALL=$ac_install_sh
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7269 $as_echo "$INSTALL" >&6; }
7271 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7272 # It thinks the first close brace ends the variable substitution.
7273 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7275 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7277 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7280 $as_echo_n "checking whether ln -s works... " >&6; }
7282 if test "$LN_S" = "ln -s"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7284 $as_echo "yes" >&6; }
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7287 $as_echo "no, using $LN_S" >&6; }
7290 if test -n "$ac_tool_prefix"; then
7291 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7292 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_prog_RANLIB+:} false; then :
7296 $as_echo_n "(cached) " >&6
7298 if test -n "$RANLIB"; then
7299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 RANLIB=$ac_cv_prog_RANLIB
7319 if test -n "$RANLIB"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7321 $as_echo "$RANLIB" >&6; }
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7329 if test -z "$ac_cv_prog_RANLIB"; then
7330 ac_ct_RANLIB=$RANLIB
7331 # Extract the first word of "ranlib", so it can be a program name with args.
7332 set dummy ranlib; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7336 $as_echo_n "(cached) " >&6
7338 if test -n "$ac_ct_RANLIB"; then
7339 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348 ac_cv_prog_ac_ct_RANLIB="ranlib"
7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7359 if test -n "$ac_ct_RANLIB"; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7361 $as_echo "$ac_ct_RANLIB" >&6; }
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7367 if test "x$ac_ct_RANLIB" = x; then
7370 case $cross_compiling:$ac_tool_warned in
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7374 ac_tool_warned=yes ;;
7376 RANLIB=$ac_ct_RANLIB
7379 RANLIB="$ac_cv_prog_RANLIB"
7382 for ac_prog in 'bison -y' byacc
7384 # Extract the first word of "$ac_prog", so it can be a program name with args.
7385 set dummy $ac_prog; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_YACC+:} false; then :
7389 $as_echo_n "(cached) " >&6
7391 if test -n "$YACC"; then
7392 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_YACC="$ac_prog"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 YACC=$ac_cv_prog_YACC
7412 if test -n "$YACC"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7414 $as_echo "$YACC" >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7421 test -n "$YACC" && break
7423 test -n "$YACC" || YACC="yacc"
7426 if test -n "$ac_tool_prefix"; then
7427 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7428 set dummy ${ac_tool_prefix}ar; ac_word=$2
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if ${ac_cv_prog_AR+:} false; then :
7432 $as_echo_n "(cached) " >&6
7434 if test -n "$AR"; then
7435 ac_cv_prog_AR="$AR" # Let the user override the test.
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444 ac_cv_prog_AR="${ac_tool_prefix}ar"
7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 if test -n "$AR"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7457 $as_echo "$AR" >&6; }
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7465 if test -z "$ac_cv_prog_AR"; then
7467 # Extract the first word of "ar", so it can be a program name with args.
7468 set dummy ar; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7472 $as_echo_n "(cached) " >&6
7474 if test -n "$ac_ct_AR"; then
7475 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_ac_ct_AR="ar"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7495 if test -n "$ac_ct_AR"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7497 $as_echo "$ac_ct_AR" >&6; }
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7503 if test "x$ac_ct_AR" = x; then
7506 case $cross_compiling:$ac_tool_warned in
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7510 ac_tool_warned=yes ;;
7518 if test -n "$ac_tool_prefix"; then
7519 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7520 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522 $as_echo_n "checking for $ac_word... " >&6; }
7523 if ${ac_cv_prog_DLLTOOL+:} false; then :
7524 $as_echo_n "(cached) " >&6
7526 if test -n "$DLLTOOL"; then
7527 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7536 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 DLLTOOL=$ac_cv_prog_DLLTOOL
7547 if test -n "$DLLTOOL"; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7549 $as_echo "$DLLTOOL" >&6; }
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552 $as_echo "no" >&6; }
7557 if test -z "$ac_cv_prog_DLLTOOL"; then
7558 ac_ct_DLLTOOL=$DLLTOOL
7559 # Extract the first word of "dlltool", so it can be a program name with args.
7560 set dummy dlltool; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7564 $as_echo_n "(cached) " >&6
7566 if test -n "$ac_ct_DLLTOOL"; then
7567 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7576 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7587 if test -n "$ac_ct_DLLTOOL"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7589 $as_echo "$ac_ct_DLLTOOL" >&6; }
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7595 if test "x$ac_ct_DLLTOOL" = x; then
7598 case $cross_compiling:$ac_tool_warned in
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7602 ac_tool_warned=yes ;;
7604 DLLTOOL=$ac_ct_DLLTOOL
7607 DLLTOOL="$ac_cv_prog_DLLTOOL"
7610 if test -n "$ac_tool_prefix"; then
7611 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7612 set dummy ${ac_tool_prefix}windres; ac_word=$2
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 $as_echo_n "checking for $ac_word... " >&6; }
7615 if ${ac_cv_prog_WINDRES+:} false; then :
7616 $as_echo_n "(cached) " >&6
7618 if test -n "$WINDRES"; then
7619 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 WINDRES=$ac_cv_prog_WINDRES
7639 if test -n "$WINDRES"; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7641 $as_echo "$WINDRES" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7649 if test -z "$ac_cv_prog_WINDRES"; then
7650 ac_ct_WINDRES=$WINDRES
7651 # Extract the first word of "windres", so it can be a program name with args.
7652 set dummy windres; ac_word=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7656 $as_echo_n "(cached) " >&6
7658 if test -n "$ac_ct_WINDRES"; then
7659 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668 ac_cv_prog_ac_ct_WINDRES="windres"
7669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7679 if test -n "$ac_ct_WINDRES"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7681 $as_echo "$ac_ct_WINDRES" >&6; }
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7687 if test "x$ac_ct_WINDRES" = x; then
7690 case $cross_compiling:$ac_tool_warned in
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7694 ac_tool_warned=yes ;;
7696 WINDRES=$ac_ct_WINDRES
7699 WINDRES="$ac_cv_prog_WINDRES"
7705 # Needed for GNU Hurd hosts.
7706 if test -n "$ac_tool_prefix"; then
7707 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7708 set dummy ${ac_tool_prefix}mig; ac_word=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if ${ac_cv_prog_MIG+:} false; then :
7712 $as_echo_n "(cached) " >&6
7714 if test -n "$MIG"; then
7715 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 if test -n "$MIG"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7737 $as_echo "$MIG" >&6; }
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7745 if test -z "$ac_cv_prog_MIG"; then
7747 # Extract the first word of "mig", so it can be a program name with args.
7748 set dummy mig; ac_word=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
7752 $as_echo_n "(cached) " >&6
7754 if test -n "$ac_ct_MIG"; then
7755 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7764 ac_cv_prog_ac_ct_MIG="mig"
7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7775 if test -n "$ac_ct_MIG"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7777 $as_echo "$ac_ct_MIG" >&6; }
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7783 if test "x$ac_ct_MIG" = x; then
7786 case $cross_compiling:$ac_tool_warned in
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7790 ac_tool_warned=yes ;;
7795 MIG="$ac_cv_prog_MIG"
7798 if test x"$MIG" = x; then
7799 as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
7804 # ---------------------- #
7805 # Checks for libraries. #
7806 # ---------------------- #
7808 # We might need to link with -lm; most simulators need it.
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7810 $as_echo_n "checking for main in -lm... " >&6; }
7811 if ${ac_cv_lib_m_main+:} false; then :
7812 $as_echo_n "(cached) " >&6
7814 ac_check_lib_save_LIBS=$LIBS
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7828 if ac_fn_c_try_link "$LINENO"; then :
7829 ac_cv_lib_m_main=yes
7833 rm -f core conftest.err conftest.$ac_objext \
7834 conftest$ac_exeext conftest.$ac_ext
7835 LIBS=$ac_check_lib_save_LIBS
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7838 $as_echo "$ac_cv_lib_m_main" >&6; }
7839 if test "x$ac_cv_lib_m_main" = xyes; then :
7840 cat >>confdefs.h <<_ACEOF
7849 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7851 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7852 if ${ac_cv_search_gethostbyname+:} false; then :
7853 $as_echo_n "(cached) " >&6
7855 ac_func_search_save_LIBS=$LIBS
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7859 /* Override any GCC internal prototype to avoid an error.
7860 Use char because int might match the return type of a GCC
7861 builtin and then its argument prototype would still apply. */
7865 char gethostbyname ();
7869 return gethostbyname ();
7874 for ac_lib in '' nsl; do
7875 if test -z "$ac_lib"; then
7876 ac_res="none required"
7879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7881 if ac_fn_c_try_link "$LINENO"; then :
7882 ac_cv_search_gethostbyname=$ac_res
7884 rm -f core conftest.err conftest.$ac_objext \
7886 if ${ac_cv_search_gethostbyname+:} false; then :
7890 if ${ac_cv_search_gethostbyname+:} false; then :
7893 ac_cv_search_gethostbyname=no
7896 LIBS=$ac_func_search_save_LIBS
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7899 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7900 ac_res=$ac_cv_search_gethostbyname
7901 if test "$ac_res" != no; then :
7902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7907 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7909 $as_echo_n "checking for library containing socketpair... " >&6; }
7910 if ${ac_cv_search_socketpair+:} false; then :
7911 $as_echo_n "(cached) " >&6
7913 ac_func_search_save_LIBS=$LIBS
7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7917 /* Override any GCC internal prototype to avoid an error.
7918 Use char because int might match the return type of a GCC
7919 builtin and then its argument prototype would still apply. */
7927 return socketpair ();
7932 for ac_lib in '' socket; do
7933 if test -z "$ac_lib"; then
7934 ac_res="none required"
7937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7939 if ac_fn_c_try_link "$LINENO"; then :
7940 ac_cv_search_socketpair=$ac_res
7942 rm -f core conftest.err conftest.$ac_objext \
7944 if ${ac_cv_search_socketpair+:} false; then :
7948 if ${ac_cv_search_socketpair+:} false; then :
7951 ac_cv_search_socketpair=no
7954 LIBS=$ac_func_search_save_LIBS
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7957 $as_echo "$ac_cv_search_socketpair" >&6; }
7958 ac_res=$ac_cv_search_socketpair
7959 if test "$ac_res" != no; then :
7960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7965 # Link in zlib if we can. This allows us to read compressed debug sections.
7967 # Use the system's zlib library.
7968 zlibdir="-L\$(top_builddir)/../zlib"
7969 zlibinc="-I\$(top_srcdir)/../zlib"
7971 # Check whether --with-system-zlib was given.
7972 if test "${with_system_zlib+set}" = set; then :
7973 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7984 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7985 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7987 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7988 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
7989 $as_echo_n "(cached) " >&6
7991 ac_func_search_save_LIBS=$LIBS
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7995 /* Override any GCC internal prototype to avoid an error.
7996 Use char because int might match the return type of a GCC
7997 builtin and then its argument prototype would still apply. */
8001 char kinfo_getvmmap ();
8005 return kinfo_getvmmap ();
8010 for ac_lib in '' util util-freebsd; do
8011 if test -z "$ac_lib"; then
8012 ac_res="none required"
8015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8017 if ac_fn_c_try_link "$LINENO"; then :
8018 ac_cv_search_kinfo_getvmmap=$ac_res
8020 rm -f core conftest.err conftest.$ac_objext \
8022 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
8026 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
8029 ac_cv_search_kinfo_getvmmap=no
8032 LIBS=$ac_func_search_save_LIBS
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
8035 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
8036 ac_res=$ac_cv_search_kinfo_getvmmap
8037 if test "$ac_res" != no; then :
8038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8040 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8045 # fbsd-nat.c can also use kinfo_getfile.
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8047 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8048 if ${ac_cv_search_kinfo_getfile+:} false; then :
8049 $as_echo_n "(cached) " >&6
8051 ac_func_search_save_LIBS=$LIBS
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8055 /* Override any GCC internal prototype to avoid an error.
8056 Use char because int might match the return type of a GCC
8057 builtin and then its argument prototype would still apply. */
8061 char kinfo_getfile ();
8065 return kinfo_getfile ();
8070 for ac_lib in '' util util-freebsd; do
8071 if test -z "$ac_lib"; then
8072 ac_res="none required"
8075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8077 if ac_fn_c_try_link "$LINENO"; then :
8078 ac_cv_search_kinfo_getfile=$ac_res
8080 rm -f core conftest.err conftest.$ac_objext \
8082 if ${ac_cv_search_kinfo_getfile+:} false; then :
8086 if ${ac_cv_search_kinfo_getfile+:} false; then :
8089 ac_cv_search_kinfo_getfile=no
8092 LIBS=$ac_func_search_save_LIBS
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8095 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8096 ac_res=$ac_cv_search_kinfo_getfile
8097 if test "$ac_res" != no; then :
8098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8100 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8106 if test "X$prefix" = "XNONE"; then
8107 acl_final_prefix="$ac_default_prefix"
8109 acl_final_prefix="$prefix"
8111 if test "X$exec_prefix" = "XNONE"; then
8112 acl_final_exec_prefix='${prefix}'
8114 acl_final_exec_prefix="$exec_prefix"
8116 acl_save_prefix="$prefix"
8117 prefix="$acl_final_prefix"
8118 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8119 prefix="$acl_save_prefix"
8122 # Check whether --with-gnu-ld was given.
8123 if test "${with_gnu_ld+set}" = set; then :
8124 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8129 # Prepare PATH_SEPARATOR.
8130 # The user is always right.
8131 if test "${PATH_SEPARATOR+set}" != set; then
8132 echo "#! /bin/sh" >conf$$.sh
8133 echo "exit 0" >>conf$$.sh
8135 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8143 if test "$GCC" = yes; then
8144 # Check if gcc -print-prog-name=ld gives a path.
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8146 $as_echo_n "checking for ld used by GCC... " >&6; }
8149 # gcc leaves a trailing carriage return which upsets mingw
8150 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8152 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8155 # Accept absolute paths.
8156 [\\/]* | [A-Za-z]:[\\/]*)
8157 re_direlt='/[^/][^/]*/\.\./'
8158 # Canonicalize the path of ld
8159 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8160 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8161 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8163 test -z "$LD" && LD="$ac_prog"
8166 # If it fails, then pretend we aren't using GCC.
8170 # If it is relative, then search for the first ld in PATH.
8174 elif test "$with_gnu_ld" = yes; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8176 $as_echo_n "checking for GNU ld... " >&6; }
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8179 $as_echo_n "checking for non-GNU ld... " >&6; }
8181 if ${acl_cv_path_LD+:} false; then :
8182 $as_echo_n "(cached) " >&6
8184 if test -z "$LD"; then
8185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8186 for ac_dir in $PATH; do
8187 test -z "$ac_dir" && ac_dir=.
8188 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8189 acl_cv_path_LD="$ac_dir/$ac_prog"
8190 # Check to see if the program is GNU ld. I'd rather use --version,
8191 # but apparently some GNU ld's only accept -v.
8192 # Break only if it was the GNU/non-GNU ld that we prefer.
8193 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8194 test "$with_gnu_ld" != no && break
8196 test "$with_gnu_ld" != yes && break
8202 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8206 LD="$acl_cv_path_LD"
8207 if test -n "$LD"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8209 $as_echo "$LD" >&6; }
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8214 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8216 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8217 if ${acl_cv_prog_gnu_ld+:} false; then :
8218 $as_echo_n "(cached) " >&6
8220 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8221 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8222 acl_cv_prog_gnu_ld=yes
8224 acl_cv_prog_gnu_ld=no
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8228 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8229 with_gnu_ld=$acl_cv_prog_gnu_ld
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8234 $as_echo_n "checking for shared library run path origin... " >&6; }
8235 if ${acl_cv_rpath+:} false; then :
8236 $as_echo_n "(cached) " >&6
8239 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8240 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8247 $as_echo "$acl_cv_rpath" >&6; }
8249 libext="$acl_cv_libext"
8250 shlibext="$acl_cv_shlibext"
8251 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8252 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8253 hardcode_direct="$acl_cv_hardcode_direct"
8254 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8255 # Check whether --enable-rpath was given.
8256 if test "${enable_rpath+set}" = set; then :
8257 enableval=$enable_rpath; :
8271 acl_save_prefix="$prefix"
8272 prefix="$acl_final_prefix"
8273 acl_save_exec_prefix="$exec_prefix"
8274 exec_prefix="$acl_final_exec_prefix"
8276 eval additional_includedir=\"$includedir\"
8277 eval additional_libdir=\"$libdir\"
8279 exec_prefix="$acl_save_exec_prefix"
8280 prefix="$acl_save_prefix"
8283 # Check whether --with-libiconv-prefix was given.
8284 if test "${with_libiconv_prefix+set}" = set; then :
8285 withval=$with_libiconv_prefix;
8286 if test "X$withval" = "Xno"; then
8289 if test "X$withval" = "X"; then
8291 acl_save_prefix="$prefix"
8292 prefix="$acl_final_prefix"
8293 acl_save_exec_prefix="$exec_prefix"
8294 exec_prefix="$acl_final_exec_prefix"
8296 eval additional_includedir=\"$includedir\"
8297 eval additional_libdir=\"$libdir\"
8299 exec_prefix="$acl_save_exec_prefix"
8300 prefix="$acl_save_prefix"
8303 additional_includedir="$withval/include"
8304 additional_libdir="$withval/lib"
8315 names_already_handled=
8316 names_next_round='iconv '
8317 while test -n "$names_next_round"; do
8318 names_this_round="$names_next_round"
8320 for name in $names_this_round; do
8322 for n in $names_already_handled; do
8323 if test "$n" = "$name"; then
8328 if test -z "$already_handled"; then
8329 names_already_handled="$names_already_handled $name"
8330 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8331 eval value=\"\$HAVE_LIB$uppername\"
8332 if test -n "$value"; then
8333 if test "$value" = yes; then
8334 eval value=\"\$LIB$uppername\"
8335 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8336 eval value=\"\$LTLIB$uppername\"
8337 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8346 if test $use_additional = yes; then
8347 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8348 found_dir="$additional_libdir"
8349 found_so="$additional_libdir/lib$name.$shlibext"
8350 if test -f "$additional_libdir/lib$name.la"; then
8351 found_la="$additional_libdir/lib$name.la"
8354 if test -f "$additional_libdir/lib$name.$libext"; then
8355 found_dir="$additional_libdir"
8356 found_a="$additional_libdir/lib$name.$libext"
8357 if test -f "$additional_libdir/lib$name.la"; then
8358 found_la="$additional_libdir/lib$name.la"
8363 if test "X$found_dir" = "X"; then
8364 for x in $LDFLAGS $LTLIBICONV; do
8366 acl_save_prefix="$prefix"
8367 prefix="$acl_final_prefix"
8368 acl_save_exec_prefix="$exec_prefix"
8369 exec_prefix="$acl_final_exec_prefix"
8371 exec_prefix="$acl_save_exec_prefix"
8372 prefix="$acl_save_prefix"
8376 dir=`echo "X$x" | sed -e 's/^X-L//'`
8377 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8379 found_so="$dir/lib$name.$shlibext"
8380 if test -f "$dir/lib$name.la"; then
8381 found_la="$dir/lib$name.la"
8384 if test -f "$dir/lib$name.$libext"; then
8386 found_a="$dir/lib$name.$libext"
8387 if test -f "$dir/lib$name.la"; then
8388 found_la="$dir/lib$name.la"
8394 if test "X$found_dir" != "X"; then
8399 if test "X$found_dir" != "X"; then
8400 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8401 if test "X$found_so" != "X"; then
8402 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8403 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8406 for x in $ltrpathdirs; do
8407 if test "X$x" = "X$found_dir"; then
8412 if test -z "$haveit"; then
8413 ltrpathdirs="$ltrpathdirs $found_dir"
8415 if test "$hardcode_direct" = yes; then
8416 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8418 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8419 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8421 for x in $rpathdirs; do
8422 if test "X$x" = "X$found_dir"; then
8427 if test -z "$haveit"; then
8428 rpathdirs="$rpathdirs $found_dir"
8432 for x in $LDFLAGS $LIBICONV; do
8434 acl_save_prefix="$prefix"
8435 prefix="$acl_final_prefix"
8436 acl_save_exec_prefix="$exec_prefix"
8437 exec_prefix="$acl_final_exec_prefix"
8439 exec_prefix="$acl_save_exec_prefix"
8440 prefix="$acl_save_prefix"
8442 if test "X$x" = "X-L$found_dir"; then
8447 if test -z "$haveit"; then
8448 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8450 if test "$hardcode_minus_L" != no; then
8451 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8453 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8459 if test "X$found_a" != "X"; then
8460 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8462 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8465 additional_includedir=
8466 case "$found_dir" in
8468 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8469 additional_includedir="$basedir/include"
8472 if test "X$additional_includedir" != "X"; then
8473 if test "X$additional_includedir" != "X/usr/include"; then
8475 if test "X$additional_includedir" = "X/usr/local/include"; then
8476 if test -n "$GCC"; then
8478 linux*) haveit=yes;;
8482 if test -z "$haveit"; then
8483 for x in $CPPFLAGS $INCICONV; do
8485 acl_save_prefix="$prefix"
8486 prefix="$acl_final_prefix"
8487 acl_save_exec_prefix="$exec_prefix"
8488 exec_prefix="$acl_final_exec_prefix"
8490 exec_prefix="$acl_save_exec_prefix"
8491 prefix="$acl_save_prefix"
8493 if test "X$x" = "X-I$additional_includedir"; then
8498 if test -z "$haveit"; then
8499 if test -d "$additional_includedir"; then
8500 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8506 if test -n "$found_la"; then
8507 save_libdir="$libdir"
8509 */* | *\\*) . "$found_la" ;;
8510 *) . "./$found_la" ;;
8512 libdir="$save_libdir"
8513 for dep in $dependency_libs; do
8516 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8517 if test "X$additional_libdir" != "X/usr/lib"; then
8519 if test "X$additional_libdir" = "X/usr/local/lib"; then
8520 if test -n "$GCC"; then
8522 linux*) haveit=yes;;
8526 if test -z "$haveit"; then
8528 for x in $LDFLAGS $LIBICONV; do
8530 acl_save_prefix="$prefix"
8531 prefix="$acl_final_prefix"
8532 acl_save_exec_prefix="$exec_prefix"
8533 exec_prefix="$acl_final_exec_prefix"
8535 exec_prefix="$acl_save_exec_prefix"
8536 prefix="$acl_save_prefix"
8538 if test "X$x" = "X-L$additional_libdir"; then
8543 if test -z "$haveit"; then
8544 if test -d "$additional_libdir"; then
8545 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8549 for x in $LDFLAGS $LTLIBICONV; do
8551 acl_save_prefix="$prefix"
8552 prefix="$acl_final_prefix"
8553 acl_save_exec_prefix="$exec_prefix"
8554 exec_prefix="$acl_final_exec_prefix"
8556 exec_prefix="$acl_save_exec_prefix"
8557 prefix="$acl_save_prefix"
8559 if test "X$x" = "X-L$additional_libdir"; then
8564 if test -z "$haveit"; then
8565 if test -d "$additional_libdir"; then
8566 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8573 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8574 if test "$enable_rpath" != no; then
8576 for x in $rpathdirs; do
8577 if test "X$x" = "X$dir"; then
8582 if test -z "$haveit"; then
8583 rpathdirs="$rpathdirs $dir"
8586 for x in $ltrpathdirs; do
8587 if test "X$x" = "X$dir"; then
8592 if test -z "$haveit"; then
8593 ltrpathdirs="$ltrpathdirs $dir"
8598 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8601 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8604 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8605 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8611 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8612 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8618 if test "X$rpathdirs" != "X"; then
8619 if test -n "$hardcode_libdir_separator"; then
8621 for found_dir in $rpathdirs; do
8622 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8624 acl_save_libdir="$libdir"
8626 eval flag=\"$hardcode_libdir_flag_spec\"
8627 libdir="$acl_save_libdir"
8628 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8630 for found_dir in $rpathdirs; do
8631 acl_save_libdir="$libdir"
8633 eval flag=\"$hardcode_libdir_flag_spec\"
8634 libdir="$acl_save_libdir"
8635 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8639 if test "X$ltrpathdirs" != "X"; then
8640 for found_dir in $ltrpathdirs; do
8641 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8652 $as_echo_n "checking for iconv... " >&6; }
8653 if ${am_cv_func_iconv+:} false; then :
8654 $as_echo_n "(cached) " >&6
8657 am_cv_func_iconv="no, consider installing GNU libiconv"
8659 am_save_CPPFLAGS="$CPPFLAGS"
8660 CPPFLAGS="$CPPFLAGS $INCICONV"
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8668 iconv_t cd = iconv_open("","");
8669 iconv(cd,NULL,NULL,NULL,NULL);
8675 if ac_fn_c_try_link "$LINENO"; then :
8676 am_cv_func_iconv=yes
8678 rm -f core conftest.err conftest.$ac_objext \
8679 conftest$ac_exeext conftest.$ac_ext
8680 CPPFLAGS="$am_save_CPPFLAGS"
8682 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
8683 for _libs in .libs _libs; do
8684 am_save_CPPFLAGS="$CPPFLAGS"
8685 am_save_LIBS="$LIBS"
8686 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
8687 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8695 iconv_t cd = iconv_open("","");
8696 iconv(cd,NULL,NULL,NULL,NULL);
8702 if ac_fn_c_try_link "$LINENO"; then :
8703 INCICONV="-I../libiconv/include"
8704 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
8705 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
8707 am_cv_func_iconv=yes
8709 rm -f core conftest.err conftest.$ac_objext \
8710 conftest$ac_exeext conftest.$ac_ext
8711 CPPFLAGS="$am_save_CPPFLAGS"
8712 LIBS="$am_save_LIBS"
8713 if test "$am_cv_func_iconv" = "yes"; then
8719 if test "$am_cv_func_iconv" != yes; then
8720 am_save_CPPFLAGS="$CPPFLAGS"
8721 am_save_LIBS="$LIBS"
8722 CPPFLAGS="$CPPFLAGS $INCICONV"
8723 LIBS="$LIBS $LIBICONV"
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8731 iconv_t cd = iconv_open("","");
8732 iconv(cd,NULL,NULL,NULL,NULL);
8738 if ac_fn_c_try_link "$LINENO"; then :
8740 am_cv_func_iconv=yes
8742 rm -f core conftest.err conftest.$ac_objext \
8743 conftest$ac_exeext conftest.$ac_ext
8744 CPPFLAGS="$am_save_CPPFLAGS"
8745 LIBS="$am_save_LIBS"
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8750 $as_echo "$am_cv_func_iconv" >&6; }
8751 if test "$am_cv_func_iconv" = yes; then
8753 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8756 if test "$am_cv_lib_iconv" = yes; then
8758 for element in $INCICONV; do
8760 for x in $CPPFLAGS; do
8762 acl_save_prefix="$prefix"
8763 prefix="$acl_final_prefix"
8764 acl_save_exec_prefix="$exec_prefix"
8765 exec_prefix="$acl_final_exec_prefix"
8767 exec_prefix="$acl_save_exec_prefix"
8768 prefix="$acl_save_prefix"
8770 if test "X$x" = "X$element"; then
8775 if test -z "$haveit"; then
8776 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8781 $as_echo_n "checking how to link with libiconv... " >&6; }
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8783 $as_echo "$LIBICONV" >&6; }
8791 if test "$am_cv_func_iconv" = yes; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8793 $as_echo_n "checking for iconv declaration... " >&6; }
8794 if ${am_cv_proto_iconv+:} false; then :
8795 $as_echo_n "(cached) " >&6
8798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h. */
8807 #if defined(__STDC__) || defined(__cplusplus)
8808 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8821 if ac_fn_c_try_compile "$LINENO"; then :
8822 am_cv_proto_iconv_arg1=""
8824 am_cv_proto_iconv_arg1="const"
8826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827 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);"
8830 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8832 }$am_cv_proto_iconv" >&5
8834 }$am_cv_proto_iconv" >&6; }
8836 cat >>confdefs.h <<_ACEOF
8837 #define ICONV_CONST $am_cv_proto_iconv_arg1
8843 # GDB may fork/exec the iconv program to get the list of supported character
8844 # sets. Allow the user to specify where to find it.
8845 # There are several factors affecting the choice of option name:
8846 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8847 # the build-time location of libiconv files.
8848 # - The program we need to find is iconv, which comes with glibc. The user
8849 # doesn't necessarily have libiconv installed. Therefore naming this
8850 # --with-libiconv-foo feels wrong.
8851 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8852 # defined to work on directories not files (though it really doesn't know
8854 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8855 # with --with-libiconv-prefix.
8856 # Putting these together is why the option name is --with-iconv-bin.
8859 # Check whether --with-iconv-bin was given.
8860 if test "${with_iconv_bin+set}" = set; then :
8861 withval=$with_iconv_bin; iconv_bin="${withval}"
8863 cat >>confdefs.h <<_ACEOF
8864 #define ICONV_BIN "${iconv_bin}"
8868 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8869 if test "x$prefix" = xNONE; then
8870 test_prefix=/usr/local
8875 test_prefix=$exec_prefix
8878 case ${iconv_bin} in
8879 "${test_prefix}"|"${test_prefix}/"*|\
8880 '${exec_prefix}'|'${exec_prefix}/'*)
8885 cat >>confdefs.h <<_ACEOF
8886 #define ICONV_BIN_RELOCATABLE $value
8894 # For the TUI, we need enhanced curses functionality.
8895 if test x"$enable_tui" != xno; then
8900 if test x"$prefer_curses" = xyes; then
8901 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8902 # curses library because the latter might not provide all the
8903 # functionality we need. However, this leads to problems on systems
8904 # where the linker searches /usr/local/lib, but the compiler doesn't
8905 # search /usr/local/include, if ncurses is installed in /usr/local. A
8906 # default installation of ncurses on alpha*-dec-osf* will lead to such
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8909 $as_echo_n "checking for library containing waddstr... " >&6; }
8910 if ${ac_cv_search_waddstr+:} false; then :
8911 $as_echo_n "(cached) " >&6
8913 ac_func_search_save_LIBS=$LIBS
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8917 /* Override any GCC internal prototype to avoid an error.
8918 Use char because int might match the return type of a GCC
8919 builtin and then its argument prototype would still apply. */
8932 for ac_lib in '' ncursesw ncurses cursesX curses; do
8933 if test -z "$ac_lib"; then
8934 ac_res="none required"
8937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8939 if ac_fn_c_try_link "$LINENO"; then :
8940 ac_cv_search_waddstr=$ac_res
8942 rm -f core conftest.err conftest.$ac_objext \
8944 if ${ac_cv_search_waddstr+:} false; then :
8948 if ${ac_cv_search_waddstr+:} false; then :
8951 ac_cv_search_waddstr=no
8954 LIBS=$ac_func_search_save_LIBS
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8957 $as_echo "$ac_cv_search_waddstr" >&6; }
8958 ac_res=$ac_cv_search_waddstr
8959 if test "$ac_res" != no; then :
8960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8965 if test "$ac_cv_search_waddstr" != no; then
8970 # Check whether we should enable the TUI, but only do so if we really
8972 if test x"$enable_tui" != xno; then
8973 if test -d $srcdir/tui; then
8974 if test "$curses_found" != no; then
8975 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8976 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8977 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8978 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8980 if test x"$enable_tui" = xyes; then
8981 as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8984 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8990 # Since GDB uses Readline, we need termcap functionality. In many
8991 # cases this will be provided by the curses library, but some systems
8992 # have a separate termcap library, or no curses library at all.
8996 if test -d $srcdir/libtermcap; then
8997 LIBS="../libtermcap/libtermcap.a $LIBS"
8998 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9001 ac_cv_search_tgetent="none required"
9005 # These are the libraries checked by Readline.
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9007 $as_echo_n "checking for library containing tgetent... " >&6; }
9008 if ${ac_cv_search_tgetent+:} false; then :
9009 $as_echo_n "(cached) " >&6
9011 ac_func_search_save_LIBS=$LIBS
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9015 /* Override any GCC internal prototype to avoid an error.
9016 Use char because int might match the return type of a GCC
9017 builtin and then its argument prototype would still apply. */
9030 for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
9031 if test -z "$ac_lib"; then
9032 ac_res="none required"
9035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9037 if ac_fn_c_try_link "$LINENO"; then :
9038 ac_cv_search_tgetent=$ac_res
9040 rm -f core conftest.err conftest.$ac_objext \
9042 if ${ac_cv_search_tgetent+:} false; then :
9046 if ${ac_cv_search_tgetent+:} false; then :
9049 ac_cv_search_tgetent=no
9052 LIBS=$ac_func_search_save_LIBS
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9055 $as_echo "$ac_cv_search_tgetent" >&6; }
9056 ac_res=$ac_cv_search_tgetent
9057 if test "$ac_res" != no; then :
9058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9063 if test "$ac_cv_search_tgetent" = no; then
9064 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
9068 # Check whether --with-system-readline was given.
9069 if test "${with_system_readline+set}" = set; then :
9070 withval=$with_system_readline;
9074 if test "$with_system_readline" = yes; then
9078 READLINE_TEXI_INCFLAG=
9080 READLINE='$(READLINE_DIR)/libreadline.a'
9081 READLINE_DEPS='$(READLINE)'
9082 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9083 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
9090 # Generate jit-reader.h
9092 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9095 # The cast to long int works around a bug in the HP C Compiler
9096 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9097 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9098 # This bug is HP SR number 8606223364.
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9100 $as_echo_n "checking size of unsigned long long... " >&6; }
9101 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
9102 $as_echo_n "(cached) " >&6
9104 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9107 if test "$ac_cv_type_unsigned_long_long" = yes; then
9108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9110 as_fn_error 77 "cannot compute sizeof (unsigned long long)
9111 See \`config.log' for more details" "$LINENO" 5; }
9113 ac_cv_sizeof_unsigned_long_long=0
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9119 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9123 cat >>confdefs.h <<_ACEOF
9124 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9128 # The cast to long int works around a bug in the HP C Compiler
9129 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9130 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9131 # This bug is HP SR number 8606223364.
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9133 $as_echo_n "checking size of unsigned long... " >&6; }
9134 if ${ac_cv_sizeof_unsigned_long+:} false; then :
9135 $as_echo_n "(cached) " >&6
9137 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9140 if test "$ac_cv_type_unsigned_long" = yes; then
9141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9143 as_fn_error 77 "cannot compute sizeof (unsigned long)
9144 See \`config.log' for more details" "$LINENO" 5; }
9146 ac_cv_sizeof_unsigned_long=0
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9152 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9156 cat >>confdefs.h <<_ACEOF
9157 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9161 # The cast to long int works around a bug in the HP C Compiler
9162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9164 # This bug is HP SR number 8606223364.
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9166 $as_echo_n "checking size of unsigned __int128... " >&6; }
9167 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
9168 $as_echo_n "(cached) " >&6
9170 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9173 if test "$ac_cv_type_unsigned___int128" = yes; then
9174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9176 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
9177 See \`config.log' for more details" "$LINENO" 5; }
9179 ac_cv_sizeof_unsigned___int128=0
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9185 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9189 cat >>confdefs.h <<_ACEOF
9190 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9195 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9196 TARGET_PTR="unsigned long"
9197 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9198 TARGET_PTR="unsigned long long"
9199 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9200 TARGET_PTR="unsigned __int128"
9202 TARGET_PTR="unsigned long"
9206 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9210 $as_echo_n "checking for library containing dlopen... " >&6; }
9211 if ${ac_cv_search_dlopen+:} false; then :
9212 $as_echo_n "(cached) " >&6
9214 ac_func_search_save_LIBS=$LIBS
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9218 /* Override any GCC internal prototype to avoid an error.
9219 Use char because int might match the return type of a GCC
9220 builtin and then its argument prototype would still apply. */
9233 for ac_lib in '' dl; do
9234 if test -z "$ac_lib"; then
9235 ac_res="none required"
9238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9240 if ac_fn_c_try_link "$LINENO"; then :
9241 ac_cv_search_dlopen=$ac_res
9243 rm -f core conftest.err conftest.$ac_objext \
9245 if ${ac_cv_search_dlopen+:} false; then :
9249 if ${ac_cv_search_dlopen+:} false; then :
9252 ac_cv_search_dlopen=no
9255 LIBS=$ac_func_search_save_LIBS
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9258 $as_echo "$ac_cv_search_dlopen" >&6; }
9259 ac_res=$ac_cv_search_dlopen
9260 if test "$ac_res" != no; then :
9261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9268 # Check whether --with-jit-reader-dir was given.
9269 if test "${with_jit_reader_dir+set}" = set; then :
9270 withval=$with_jit_reader_dir;
9271 JIT_READER_DIR=$withval
9273 JIT_READER_DIR=${libdir}/gdb
9277 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9279 ac_define_dir=`eval echo $JIT_READER_DIR`
9280 ac_define_dir=`eval echo $ac_define_dir`
9282 cat >>confdefs.h <<_ACEOF
9283 #define JIT_READER_DIR "$ac_define_dir"
9289 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9290 if test "x$prefix" = xNONE; then
9291 test_prefix=/usr/local
9296 test_prefix=$exec_prefix
9299 case ${ac_define_dir} in
9300 "${test_prefix}"|"${test_prefix}/"*|\
9301 '${exec_prefix}'|'${exec_prefix}/'*)
9306 cat >>confdefs.h <<_ACEOF
9307 #define JIT_READER_DIR_RELOCATABLE $value
9314 # Check whether --with-expat was given.
9315 if test "${with_expat+set}" = set; then :
9316 withval=$with_expat;
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9322 $as_echo_n "checking whether to use expat... " >&6; }
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9324 $as_echo "$with_expat" >&6; }
9326 if test "${with_expat}" = no; then
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9328 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9341 acl_save_prefix="$prefix"
9342 prefix="$acl_final_prefix"
9343 acl_save_exec_prefix="$exec_prefix"
9344 exec_prefix="$acl_final_exec_prefix"
9346 eval additional_includedir=\"$includedir\"
9347 eval additional_libdir=\"$libdir\"
9349 exec_prefix="$acl_save_exec_prefix"
9350 prefix="$acl_save_prefix"
9353 # Check whether --with-libexpat-prefix was given.
9354 if test "${with_libexpat_prefix+set}" = set; then :
9355 withval=$with_libexpat_prefix;
9356 if test "X$withval" = "Xno"; then
9359 if test "X$withval" = "X"; then
9361 acl_save_prefix="$prefix"
9362 prefix="$acl_final_prefix"
9363 acl_save_exec_prefix="$exec_prefix"
9364 exec_prefix="$acl_final_exec_prefix"
9366 eval additional_includedir=\"$includedir\"
9367 eval additional_libdir=\"$libdir\"
9369 exec_prefix="$acl_save_exec_prefix"
9370 prefix="$acl_save_prefix"
9373 additional_includedir="$withval/include"
9374 additional_libdir="$withval/lib"
9385 names_already_handled=
9386 names_next_round='expat '
9387 while test -n "$names_next_round"; do
9388 names_this_round="$names_next_round"
9390 for name in $names_this_round; do
9392 for n in $names_already_handled; do
9393 if test "$n" = "$name"; then
9398 if test -z "$already_handled"; then
9399 names_already_handled="$names_already_handled $name"
9400 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9401 eval value=\"\$HAVE_LIB$uppername\"
9402 if test -n "$value"; then
9403 if test "$value" = yes; then
9404 eval value=\"\$LIB$uppername\"
9405 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
9406 eval value=\"\$LTLIB$uppername\"
9407 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9416 if test $use_additional = yes; then
9417 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9418 found_dir="$additional_libdir"
9419 found_so="$additional_libdir/lib$name.$shlibext"
9420 if test -f "$additional_libdir/lib$name.la"; then
9421 found_la="$additional_libdir/lib$name.la"
9424 if test -f "$additional_libdir/lib$name.$libext"; then
9425 found_dir="$additional_libdir"
9426 found_a="$additional_libdir/lib$name.$libext"
9427 if test -f "$additional_libdir/lib$name.la"; then
9428 found_la="$additional_libdir/lib$name.la"
9433 if test "X$found_dir" = "X"; then
9434 for x in $LDFLAGS $LTLIBEXPAT; do
9436 acl_save_prefix="$prefix"
9437 prefix="$acl_final_prefix"
9438 acl_save_exec_prefix="$exec_prefix"
9439 exec_prefix="$acl_final_exec_prefix"
9441 exec_prefix="$acl_save_exec_prefix"
9442 prefix="$acl_save_prefix"
9446 dir=`echo "X$x" | sed -e 's/^X-L//'`
9447 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9449 found_so="$dir/lib$name.$shlibext"
9450 if test -f "$dir/lib$name.la"; then
9451 found_la="$dir/lib$name.la"
9454 if test -f "$dir/lib$name.$libext"; then
9456 found_a="$dir/lib$name.$libext"
9457 if test -f "$dir/lib$name.la"; then
9458 found_la="$dir/lib$name.la"
9464 if test "X$found_dir" != "X"; then
9469 if test "X$found_dir" != "X"; then
9470 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9471 if test "X$found_so" != "X"; then
9472 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9473 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9476 for x in $ltrpathdirs; do
9477 if test "X$x" = "X$found_dir"; then
9482 if test -z "$haveit"; then
9483 ltrpathdirs="$ltrpathdirs $found_dir"
9485 if test "$hardcode_direct" = yes; then
9486 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9488 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9489 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9491 for x in $rpathdirs; do
9492 if test "X$x" = "X$found_dir"; then
9497 if test -z "$haveit"; then
9498 rpathdirs="$rpathdirs $found_dir"
9502 for x in $LDFLAGS $LIBEXPAT; do
9504 acl_save_prefix="$prefix"
9505 prefix="$acl_final_prefix"
9506 acl_save_exec_prefix="$exec_prefix"
9507 exec_prefix="$acl_final_exec_prefix"
9509 exec_prefix="$acl_save_exec_prefix"
9510 prefix="$acl_save_prefix"
9512 if test "X$x" = "X-L$found_dir"; then
9517 if test -z "$haveit"; then
9518 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9520 if test "$hardcode_minus_L" != no; then
9521 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9523 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9529 if test "X$found_a" != "X"; then
9530 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9532 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9535 additional_includedir=
9536 case "$found_dir" in
9538 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9539 additional_includedir="$basedir/include"
9542 if test "X$additional_includedir" != "X"; then
9543 if test "X$additional_includedir" != "X/usr/include"; then
9545 if test "X$additional_includedir" = "X/usr/local/include"; then
9546 if test -n "$GCC"; then
9548 linux*) haveit=yes;;
9552 if test -z "$haveit"; then
9553 for x in $CPPFLAGS $INCEXPAT; do
9555 acl_save_prefix="$prefix"
9556 prefix="$acl_final_prefix"
9557 acl_save_exec_prefix="$exec_prefix"
9558 exec_prefix="$acl_final_exec_prefix"
9560 exec_prefix="$acl_save_exec_prefix"
9561 prefix="$acl_save_prefix"
9563 if test "X$x" = "X-I$additional_includedir"; then
9568 if test -z "$haveit"; then
9569 if test -d "$additional_includedir"; then
9570 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9576 if test -n "$found_la"; then
9577 save_libdir="$libdir"
9579 */* | *\\*) . "$found_la" ;;
9580 *) . "./$found_la" ;;
9582 libdir="$save_libdir"
9583 for dep in $dependency_libs; do
9586 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9587 if test "X$additional_libdir" != "X/usr/lib"; then
9589 if test "X$additional_libdir" = "X/usr/local/lib"; then
9590 if test -n "$GCC"; then
9592 linux*) haveit=yes;;
9596 if test -z "$haveit"; then
9598 for x in $LDFLAGS $LIBEXPAT; do
9600 acl_save_prefix="$prefix"
9601 prefix="$acl_final_prefix"
9602 acl_save_exec_prefix="$exec_prefix"
9603 exec_prefix="$acl_final_exec_prefix"
9605 exec_prefix="$acl_save_exec_prefix"
9606 prefix="$acl_save_prefix"
9608 if test "X$x" = "X-L$additional_libdir"; then
9613 if test -z "$haveit"; then
9614 if test -d "$additional_libdir"; then
9615 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9619 for x in $LDFLAGS $LTLIBEXPAT; do
9621 acl_save_prefix="$prefix"
9622 prefix="$acl_final_prefix"
9623 acl_save_exec_prefix="$exec_prefix"
9624 exec_prefix="$acl_final_exec_prefix"
9626 exec_prefix="$acl_save_exec_prefix"
9627 prefix="$acl_save_prefix"
9629 if test "X$x" = "X-L$additional_libdir"; then
9634 if test -z "$haveit"; then
9635 if test -d "$additional_libdir"; then
9636 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9643 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9644 if test "$enable_rpath" != no; then
9646 for x in $rpathdirs; do
9647 if test "X$x" = "X$dir"; then
9652 if test -z "$haveit"; then
9653 rpathdirs="$rpathdirs $dir"
9656 for x in $ltrpathdirs; do
9657 if test "X$x" = "X$dir"; then
9662 if test -z "$haveit"; then
9663 ltrpathdirs="$ltrpathdirs $dir"
9668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9671 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9674 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9675 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9681 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9682 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9688 if test "X$rpathdirs" != "X"; then
9689 if test -n "$hardcode_libdir_separator"; then
9691 for found_dir in $rpathdirs; do
9692 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9694 acl_save_libdir="$libdir"
9696 eval flag=\"$hardcode_libdir_flag_spec\"
9697 libdir="$acl_save_libdir"
9698 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9700 for found_dir in $rpathdirs; do
9701 acl_save_libdir="$libdir"
9703 eval flag=\"$hardcode_libdir_flag_spec\"
9704 libdir="$acl_save_libdir"
9705 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9709 if test "X$ltrpathdirs" != "X"; then
9710 for found_dir in $ltrpathdirs; do
9711 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9716 ac_save_CPPFLAGS="$CPPFLAGS"
9718 for element in $INCEXPAT; do
9720 for x in $CPPFLAGS; do
9722 acl_save_prefix="$prefix"
9723 prefix="$acl_final_prefix"
9724 acl_save_exec_prefix="$exec_prefix"
9725 exec_prefix="$acl_final_exec_prefix"
9727 exec_prefix="$acl_save_exec_prefix"
9728 prefix="$acl_save_prefix"
9730 if test "X$x" = "X$element"; then
9735 if test -z "$haveit"; then
9736 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9742 $as_echo_n "checking for libexpat... " >&6; }
9743 if ${ac_cv_libexpat+:} false; then :
9744 $as_echo_n "(cached) " >&6
9747 ac_save_LIBS="$LIBS"
9748 LIBS="$LIBS $LIBEXPAT"
9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750 /* end confdefs.h. */
9755 XML_Parser p = XML_ParserCreate (0);
9760 if ac_fn_c_try_link "$LINENO"; then :
9765 rm -f core conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767 LIBS="$ac_save_LIBS"
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9771 $as_echo "$ac_cv_libexpat" >&6; }
9772 if test "$ac_cv_libexpat" = yes; then
9775 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9778 $as_echo_n "checking how to link with libexpat... " >&6; }
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9780 $as_echo "$LIBEXPAT" >&6; }
9783 CPPFLAGS="$ac_save_CPPFLAGS"
9793 if test "$HAVE_LIBEXPAT" != yes; then
9794 if test "$with_expat" = yes; then
9795 as_fn_error $? "expat is missing or unusable" "$LINENO" 5
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9798 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9802 LIBS="$LIBS $LIBEXPAT"
9803 for ac_func in XML_StopParser
9805 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9806 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
9807 cat >>confdefs.h <<_ACEOF
9808 #define HAVE_XML_STOPPARSER 1
9819 # Check whether --with-mpfr was given.
9820 if test "${with_mpfr+set}" = set; then :
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9827 $as_echo_n "checking whether to use MPFR... " >&6; }
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9829 $as_echo "$with_mpfr" >&6; }
9831 if test "${with_mpfr}" = no; then
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9833 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9846 acl_save_prefix="$prefix"
9847 prefix="$acl_final_prefix"
9848 acl_save_exec_prefix="$exec_prefix"
9849 exec_prefix="$acl_final_exec_prefix"
9851 eval additional_includedir=\"$includedir\"
9852 eval additional_libdir=\"$libdir\"
9854 exec_prefix="$acl_save_exec_prefix"
9855 prefix="$acl_save_prefix"
9858 # Check whether --with-libmpfr-prefix was given.
9859 if test "${with_libmpfr_prefix+set}" = set; then :
9860 withval=$with_libmpfr_prefix;
9861 if test "X$withval" = "Xno"; then
9864 if test "X$withval" = "X"; then
9866 acl_save_prefix="$prefix"
9867 prefix="$acl_final_prefix"
9868 acl_save_exec_prefix="$exec_prefix"
9869 exec_prefix="$acl_final_exec_prefix"
9871 eval additional_includedir=\"$includedir\"
9872 eval additional_libdir=\"$libdir\"
9874 exec_prefix="$acl_save_exec_prefix"
9875 prefix="$acl_save_prefix"
9878 additional_includedir="$withval/include"
9879 additional_libdir="$withval/lib"
9890 names_already_handled=
9891 names_next_round='mpfr gmp'
9892 while test -n "$names_next_round"; do
9893 names_this_round="$names_next_round"
9895 for name in $names_this_round; do
9897 for n in $names_already_handled; do
9898 if test "$n" = "$name"; then
9903 if test -z "$already_handled"; then
9904 names_already_handled="$names_already_handled $name"
9905 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9906 eval value=\"\$HAVE_LIB$uppername\"
9907 if test -n "$value"; then
9908 if test "$value" = yes; then
9909 eval value=\"\$LIB$uppername\"
9910 test -z "$value" || LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$value"
9911 eval value=\"\$LTLIB$uppername\"
9912 test -z "$value" || LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9921 if test $use_additional = yes; then
9922 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9923 found_dir="$additional_libdir"
9924 found_so="$additional_libdir/lib$name.$shlibext"
9925 if test -f "$additional_libdir/lib$name.la"; then
9926 found_la="$additional_libdir/lib$name.la"
9929 if test -f "$additional_libdir/lib$name.$libext"; then
9930 found_dir="$additional_libdir"
9931 found_a="$additional_libdir/lib$name.$libext"
9932 if test -f "$additional_libdir/lib$name.la"; then
9933 found_la="$additional_libdir/lib$name.la"
9938 if test "X$found_dir" = "X"; then
9939 for x in $LDFLAGS $LTLIBMPFR; do
9941 acl_save_prefix="$prefix"
9942 prefix="$acl_final_prefix"
9943 acl_save_exec_prefix="$exec_prefix"
9944 exec_prefix="$acl_final_exec_prefix"
9946 exec_prefix="$acl_save_exec_prefix"
9947 prefix="$acl_save_prefix"
9951 dir=`echo "X$x" | sed -e 's/^X-L//'`
9952 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9954 found_so="$dir/lib$name.$shlibext"
9955 if test -f "$dir/lib$name.la"; then
9956 found_la="$dir/lib$name.la"
9959 if test -f "$dir/lib$name.$libext"; then
9961 found_a="$dir/lib$name.$libext"
9962 if test -f "$dir/lib$name.la"; then
9963 found_la="$dir/lib$name.la"
9969 if test "X$found_dir" != "X"; then
9974 if test "X$found_dir" != "X"; then
9975 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9976 if test "X$found_so" != "X"; then
9977 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9978 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9981 for x in $ltrpathdirs; do
9982 if test "X$x" = "X$found_dir"; then
9987 if test -z "$haveit"; then
9988 ltrpathdirs="$ltrpathdirs $found_dir"
9990 if test "$hardcode_direct" = yes; then
9991 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9993 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9994 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9996 for x in $rpathdirs; do
9997 if test "X$x" = "X$found_dir"; then
10002 if test -z "$haveit"; then
10003 rpathdirs="$rpathdirs $found_dir"
10007 for x in $LDFLAGS $LIBMPFR; do
10009 acl_save_prefix="$prefix"
10010 prefix="$acl_final_prefix"
10011 acl_save_exec_prefix="$exec_prefix"
10012 exec_prefix="$acl_final_exec_prefix"
10014 exec_prefix="$acl_save_exec_prefix"
10015 prefix="$acl_save_prefix"
10017 if test "X$x" = "X-L$found_dir"; then
10022 if test -z "$haveit"; then
10023 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10025 if test "$hardcode_minus_L" != no; then
10026 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
10028 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
10034 if test "X$found_a" != "X"; then
10035 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_a"
10037 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10040 additional_includedir=
10041 case "$found_dir" in
10043 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10044 additional_includedir="$basedir/include"
10047 if test "X$additional_includedir" != "X"; then
10048 if test "X$additional_includedir" != "X/usr/include"; then
10050 if test "X$additional_includedir" = "X/usr/local/include"; then
10051 if test -n "$GCC"; then
10053 linux*) haveit=yes;;
10057 if test -z "$haveit"; then
10058 for x in $CPPFLAGS $INCMPFR; do
10060 acl_save_prefix="$prefix"
10061 prefix="$acl_final_prefix"
10062 acl_save_exec_prefix="$exec_prefix"
10063 exec_prefix="$acl_final_exec_prefix"
10065 exec_prefix="$acl_save_exec_prefix"
10066 prefix="$acl_save_prefix"
10068 if test "X$x" = "X-I$additional_includedir"; then
10073 if test -z "$haveit"; then
10074 if test -d "$additional_includedir"; then
10075 INCMPFR="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10081 if test -n "$found_la"; then
10082 save_libdir="$libdir"
10083 case "$found_la" in
10084 */* | *\\*) . "$found_la" ;;
10085 *) . "./$found_la" ;;
10087 libdir="$save_libdir"
10088 for dep in $dependency_libs; do
10091 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10092 if test "X$additional_libdir" != "X/usr/lib"; then
10094 if test "X$additional_libdir" = "X/usr/local/lib"; then
10095 if test -n "$GCC"; then
10097 linux*) haveit=yes;;
10101 if test -z "$haveit"; then
10103 for x in $LDFLAGS $LIBMPFR; do
10105 acl_save_prefix="$prefix"
10106 prefix="$acl_final_prefix"
10107 acl_save_exec_prefix="$exec_prefix"
10108 exec_prefix="$acl_final_exec_prefix"
10110 exec_prefix="$acl_save_exec_prefix"
10111 prefix="$acl_save_prefix"
10113 if test "X$x" = "X-L$additional_libdir"; then
10118 if test -z "$haveit"; then
10119 if test -d "$additional_libdir"; then
10120 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10124 for x in $LDFLAGS $LTLIBMPFR; do
10126 acl_save_prefix="$prefix"
10127 prefix="$acl_final_prefix"
10128 acl_save_exec_prefix="$exec_prefix"
10129 exec_prefix="$acl_final_exec_prefix"
10131 exec_prefix="$acl_save_exec_prefix"
10132 prefix="$acl_save_prefix"
10134 if test "X$x" = "X-L$additional_libdir"; then
10139 if test -z "$haveit"; then
10140 if test -d "$additional_libdir"; then
10141 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10148 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10149 if test "$enable_rpath" != no; then
10151 for x in $rpathdirs; do
10152 if test "X$x" = "X$dir"; then
10157 if test -z "$haveit"; then
10158 rpathdirs="$rpathdirs $dir"
10161 for x in $ltrpathdirs; do
10162 if test "X$x" = "X$dir"; then
10167 if test -z "$haveit"; then
10168 ltrpathdirs="$ltrpathdirs $dir"
10173 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10176 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10179 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$dep"
10180 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10186 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
10187 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10193 if test "X$rpathdirs" != "X"; then
10194 if test -n "$hardcode_libdir_separator"; then
10196 for found_dir in $rpathdirs; do
10197 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10199 acl_save_libdir="$libdir"
10201 eval flag=\"$hardcode_libdir_flag_spec\"
10202 libdir="$acl_save_libdir"
10203 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
10205 for found_dir in $rpathdirs; do
10206 acl_save_libdir="$libdir"
10207 libdir="$found_dir"
10208 eval flag=\"$hardcode_libdir_flag_spec\"
10209 libdir="$acl_save_libdir"
10210 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
10214 if test "X$ltrpathdirs" != "X"; then
10215 for found_dir in $ltrpathdirs; do
10216 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10221 ac_save_CPPFLAGS="$CPPFLAGS"
10223 for element in $INCMPFR; do
10225 for x in $CPPFLAGS; do
10227 acl_save_prefix="$prefix"
10228 prefix="$acl_final_prefix"
10229 acl_save_exec_prefix="$exec_prefix"
10230 exec_prefix="$acl_final_exec_prefix"
10232 exec_prefix="$acl_save_exec_prefix"
10233 prefix="$acl_save_prefix"
10235 if test "X$x" = "X$element"; then
10240 if test -z "$haveit"; then
10241 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10247 $as_echo_n "checking for libmpfr... " >&6; }
10248 if ${ac_cv_libmpfr+:} false; then :
10249 $as_echo_n "(cached) " >&6
10252 ac_save_LIBS="$LIBS"
10253 LIBS="$LIBS $LIBMPFR"
10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10260 mpfr_exp_t exp; mpfr_t x;
10261 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10266 if ac_fn_c_try_link "$LINENO"; then :
10271 rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10273 LIBS="$ac_save_LIBS"
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10277 $as_echo "$ac_cv_libmpfr" >&6; }
10278 if test "$ac_cv_libmpfr" = yes; then
10281 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10284 $as_echo_n "checking how to link with libmpfr... " >&6; }
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10286 $as_echo "$LIBMPFR" >&6; }
10289 CPPFLAGS="$ac_save_CPPFLAGS"
10299 if test "$HAVE_LIBMPFR" != yes; then
10300 if test "$with_mpfr" = yes; then
10301 as_fn_error $? "MPFR is missing or unusable" "$LINENO" 5
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10304 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10309 # --------------------- #
10310 # Check for libpython. #
10311 # --------------------- #
10318 # Check whether --with-python was given.
10319 if test "${with_python+set}" = set; then :
10320 withval=$with_python;
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10326 $as_echo_n "checking whether to use python... " >&6; }
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10328 $as_echo "$with_python" >&6; }
10330 if test "${with_python}" = no; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10332 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10335 case "${with_python}" in
10337 if test -d ${with_python}; then
10338 # Assume the python binary is ${with_python}/bin/python.
10339 python_prog="${with_python}/bin/python"
10341 # If python does not exit ${with_python}/bin, then try in
10342 # ${with_python}. On Windows/MinGW, this is where the Python
10344 if test ! -x "${python_prog}"; then
10345 python_prog="${with_python}/python"
10348 if test ! -x "${python_prog}"; then
10349 # Fall back to gdb 7.0/7.1 behaviour.
10350 python_prog=missing
10351 python_prefix=${with_python}
10353 elif test -x "${with_python}"; then
10354 # While we can't run python compiled for $host (unless host == build),
10355 # the user could write a script that provides the needed information,
10356 # so we support that.
10357 python_prog=${with_python}
10360 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
10364 # Disallow --with-python=foo/bar.
10365 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
10368 # The user has either specified auto, yes, or the name of the python
10369 # program assumed to be in $PATH.
10371 case "${with_python}" in
10373 if test ${build} = ${host}; then
10374 # Extract the first word of "python", so it can be a program name with args.
10375 set dummy python; ac_word=$2
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10377 $as_echo_n "checking for $ac_word... " >&6; }
10378 if ${ac_cv_path_python_prog_path+:} false; then :
10379 $as_echo_n "(cached) " >&6
10381 case $python_prog_path in
10383 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387 for as_dir in $PATH
10390 test -z "$as_dir" && as_dir=.
10391 for ac_exec_ext in '' $ac_executable_extensions; do
10392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10393 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10401 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10405 python_prog_path=$ac_cv_path_python_prog_path
10406 if test -n "$python_prog_path"; then
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10408 $as_echo "$python_prog_path" >&6; }
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 $as_echo "no" >&6; }
10415 if test "${python_prog_path}" = missing; then
10416 python_prog=missing
10418 python_prog=${python_prog_path}
10421 # Not much we can do except assume the cross-compiler will find the
10423 python_prog=missing
10427 # While we can't run python compiled for $host (unless host == build),
10428 # the user could write a script that provides the needed information,
10429 # so we support that.
10430 python_prog="${with_python}"
10431 # Extract the first word of "${python_prog}", so it can be a program name with args.
10432 set dummy ${python_prog}; ac_word=$2
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10434 $as_echo_n "checking for $ac_word... " >&6; }
10435 if ${ac_cv_path_python_prog_path+:} false; then :
10436 $as_echo_n "(cached) " >&6
10438 case $python_prog_path in
10440 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444 for as_dir in $PATH
10447 test -z "$as_dir" && as_dir=.
10448 for ac_exec_ext in '' $ac_executable_extensions; do
10449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10450 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10462 python_prog_path=$ac_cv_path_python_prog_path
10463 if test -n "$python_prog_path"; then
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10465 $as_echo "$python_prog_path" >&6; }
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10468 $as_echo "no" >&6; }
10472 if test "${python_prog_path}" = missing; then
10473 as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
10479 if test "${python_prog}" != missing; then
10480 # We have a python program to use, but it may be too old.
10481 # Don't flag an error for --with-python=auto (the default).
10482 have_python_config=yes
10483 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10484 if test $? != 0; then
10485 have_python_config=failed
10486 if test "${with_python}" != auto; then
10487 as_fn_error $? "failure running python-config --includes" "$LINENO" 5
10490 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10491 if test $? != 0; then
10492 have_python_config=failed
10493 if test "${with_python}" != auto; then
10494 as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
10497 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10498 if test $? != 0; then
10499 have_python_config=failed
10500 if test "${with_python}" != auto; then
10501 as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
10505 # We do not have a python executable we can use to determine where
10506 # to find the Python headers and libs. We cannot guess the include
10507 # path from the python_prefix either, because that include path
10508 # depends on the Python version. So, there is nothing much we can
10509 # do except assume that the compiler will be able to find those files.
10512 have_python_config=no
10515 # If we have python-config, only try the configuration it provides.
10516 # Otherwise fallback on the old way of trying different versions of
10520 if test "${have_python_config}" = yes; then
10521 # Determine the Python version by extracting "-lpython<version>"
10522 # part of the python_libs. <version> is usually X.Y with X and Y
10523 # being decimal numbers, but can also be XY (seen on Windows).
10525 # The extraction is performed using sed with a regular expression.
10526 # Initially, the regexp used was using the '?' quantifier to make
10527 # the dot in the version number optional. Unfortunately, this
10528 # does not work with non-GNU versions of sed because, because of
10529 # what looks like a limitation (the '?' quantifier does not work
10530 # with back-references). We work around this limitation by using
10531 # the '*' quantifier instead. It means that, in theory, we might
10532 # match unexpected version strings such as "-lpython2..7", but
10533 # this seems unlikely in practice. And even if that happens,
10534 # an error will be triggered later on, when checking that version
10536 python_version=`echo " ${python_libs} " \
10537 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10538 case "${python_version}" in
10541 version=${python_version}
10543 new_CPPFLAGS=${python_includes}
10544 new_LIBS=${python_libs}
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10546 $as_echo_n "checking for ${version}... " >&6; }
10547 save_CPPFLAGS=$CPPFLAGS
10549 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10550 LIBS="$new_LIBS $LIBS"
10551 found_usable_python=no
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10554 #include "Python.h"
10563 if ac_fn_c_try_link "$LINENO"; then :
10564 have_libpython=${version}
10565 found_usable_python=yes
10566 PYTHON_CPPFLAGS=$new_CPPFLAGS
10567 PYTHON_LIBS=$new_LIBS
10569 rm -f core conftest.err conftest.$ac_objext \
10570 conftest$ac_exeext conftest.$ac_ext
10571 CPPFLAGS=$save_CPPFLAGS
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10574 $as_echo "${found_usable_python}" >&6; }
10578 as_fn_error $? "unable to determine python version from ${python_libs}" "$LINENO" 5
10581 elif test "${have_python_config}" != failed; then
10582 if test "${have_libpython}" = no; then
10586 new_CPPFLAGS=${python_includes}
10587 new_LIBS="-lpython2.7 ${python_libs}"
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10589 $as_echo_n "checking for ${version}... " >&6; }
10590 save_CPPFLAGS=$CPPFLAGS
10592 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10593 LIBS="$new_LIBS $LIBS"
10594 found_usable_python=no
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 #include "Python.h"
10606 if ac_fn_c_try_link "$LINENO"; then :
10607 have_libpython=${version}
10608 found_usable_python=yes
10609 PYTHON_CPPFLAGS=$new_CPPFLAGS
10610 PYTHON_LIBS=$new_LIBS
10612 rm -f core conftest.err conftest.$ac_objext \
10613 conftest$ac_exeext conftest.$ac_ext
10614 CPPFLAGS=$save_CPPFLAGS
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10617 $as_echo "${found_usable_python}" >&6; }
10620 if test "${have_libpython}" = no; then
10624 new_CPPFLAGS=${python_includes}
10625 new_LIBS="-lpython2.6 ${python_libs}"
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10627 $as_echo_n "checking for ${version}... " >&6; }
10628 save_CPPFLAGS=$CPPFLAGS
10630 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10631 LIBS="$new_LIBS $LIBS"
10632 found_usable_python=no
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635 #include "Python.h"
10644 if ac_fn_c_try_link "$LINENO"; then :
10645 have_libpython=${version}
10646 found_usable_python=yes
10647 PYTHON_CPPFLAGS=$new_CPPFLAGS
10648 PYTHON_LIBS=$new_LIBS
10650 rm -f core conftest.err conftest.$ac_objext \
10651 conftest$ac_exeext conftest.$ac_ext
10652 CPPFLAGS=$save_CPPFLAGS
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10655 $as_echo "${found_usable_python}" >&6; }
10658 if test ${have_libpython} = no; then
10662 new_CPPFLAGS=${python_includes}
10663 new_LIBS="-lpython2.5 ${python_libs}"
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10665 $as_echo_n "checking for ${version}... " >&6; }
10666 save_CPPFLAGS=$CPPFLAGS
10668 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10669 LIBS="$new_LIBS $LIBS"
10670 found_usable_python=no
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673 #include "Python.h"
10682 if ac_fn_c_try_link "$LINENO"; then :
10683 have_libpython=${version}
10684 found_usable_python=yes
10685 PYTHON_CPPFLAGS=$new_CPPFLAGS
10686 PYTHON_LIBS=$new_LIBS
10688 rm -f core conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 CPPFLAGS=$save_CPPFLAGS
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10693 $as_echo "${found_usable_python}" >&6; }
10696 if test ${have_libpython} = no; then
10700 new_CPPFLAGS=${python_includes}
10701 new_LIBS="-lpython2.4 ${python_libs}"
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10703 $as_echo_n "checking for ${version}... " >&6; }
10704 save_CPPFLAGS=$CPPFLAGS
10706 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10707 LIBS="$new_LIBS $LIBS"
10708 found_usable_python=no
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10711 #include "Python.h"
10720 if ac_fn_c_try_link "$LINENO"; then :
10721 have_libpython=${version}
10722 found_usable_python=yes
10723 PYTHON_CPPFLAGS=$new_CPPFLAGS
10724 PYTHON_LIBS=$new_LIBS
10726 rm -f core conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 CPPFLAGS=$save_CPPFLAGS
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10731 $as_echo "${found_usable_python}" >&6; }
10735 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
10737 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10739 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
10741 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10743 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
10745 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10747 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
10749 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10753 if test "${have_libpython}" = no; then
10754 case "${with_python}" in
10756 as_fn_error $? "python is missing or unusable" "$LINENO" 5
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10760 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10763 as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
10767 if test -n "${python_prefix}"; then
10769 cat >>confdefs.h <<_ACEOF
10770 #define WITH_PYTHON_PATH "${python_prefix}"
10774 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10775 if test "x$prefix" = xNONE; then
10776 test_prefix=/usr/local
10778 test_prefix=$prefix
10781 test_prefix=$exec_prefix
10784 case ${python_prefix} in
10785 "${test_prefix}"|"${test_prefix}/"*|\
10786 '${exec_prefix}'|'${exec_prefix}/'*)
10791 cat >>confdefs.h <<_ACEOF
10792 #define PYTHON_PATH_RELOCATABLE $value
10800 if test "${have_libpython}" != no; then
10802 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10804 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10805 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10806 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10807 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
10808 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10810 # Flags needed to compile Python code (taken from python-config --cflags).
10811 # We cannot call python-config directly because it will output whatever was
10812 # used when compiling the Python interpreter itself, including flags which
10813 # would make the python-related objects be compiled differently from the
10814 # rest of GDB (e.g., -O2 and -fPIC).
10815 if test "${GCC}" = yes; then
10816 tentative_python_cflags="-fno-strict-aliasing -fwrapv"
10817 # Python headers recommend -DNDEBUG, but it's unclear if that just
10818 # refers to building Python itself. In release mode, though, it
10819 # doesn't hurt for the Python code in gdb to follow.
10820 $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
10823 if test "x${tentative_python_cflags}" != x; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10825 $as_echo_n "checking compiler flags for python code... " >&6; }
10826 for flag in ${tentative_python_cflags}; do
10827 # Check that the compiler accepts it
10828 saved_CFLAGS="$CFLAGS"
10829 CFLAGS="$CFLAGS $flag"
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10841 if ac_fn_c_try_compile "$LINENO"; then :
10842 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10845 CFLAGS="$saved_CFLAGS"
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10848 $as_echo "${PYTHON_CFLAGS}" >&6; }
10851 # On x64 Windows, Python's include headers, and pyconfig.h in
10852 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10853 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10854 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10855 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10856 # The issue was reported to the Python community, but still isn't
10857 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10859 case "$gdb_host" in
10861 if test "${GCC}" = yes; then
10862 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
10867 # Note that "python -m threading" cannot be used to check for
10868 # threading support due to a bug in Python 2.7.3
10869 # (http://bugs.python.org/issue15567).
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10871 $as_echo_n "checking whether python supports threads... " >&6; }
10872 saved_CPPFLAGS="${CPPFLAGS}"
10873 CPPFLAGS="${PYTHON_CPPFLAGS}"
10874 # Note that the test is reversed so that python_has_threads=yes on
10875 # unexpected failures.
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10879 #include <Python.h>
10885 if ac_fn_c_try_cpp "$LINENO"; then :
10886 python_has_threads=no
10888 python_has_threads=yes
10890 rm -f conftest.err conftest.i conftest.$ac_ext
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10892 $as_echo "${python_has_threads}" >&6; }
10893 CPPFLAGS="${saved_CPPFLAGS}"
10895 # Even if Python support is not compiled in, we need to have this file
10896 # included so that the "python" command, et.al., still exists.
10897 CONFIG_OBS="$CONFIG_OBS python/python.o"
10898 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
10901 # Work around Python http://bugs.python.org/issue10112. See also
10902 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10903 # no effect. Note that the only test after this that uses Python is
10904 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10905 # run without -export-dynamic too.
10906 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10911 if test "${have_libpython}" != no; then
10913 HAVE_PYTHON_FALSE='#'
10915 HAVE_PYTHON_TRUE='#'
10920 # -------------------- #
10921 # Check for libguile. #
10922 # -------------------- #
10929 # Check whether --with-guile was given.
10930 if test "${with_guile+set}" = set; then :
10931 withval=$with_guile;
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10937 $as_echo_n "checking whether to use guile... " >&6; }
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10939 $as_echo "$with_guile" >&6; }
10941 # Extract the first word of "pkg-config", so it can be a program name with args.
10942 set dummy pkg-config; ac_word=$2
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10944 $as_echo_n "checking for $ac_word... " >&6; }
10945 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
10946 $as_echo_n "(cached) " >&6
10948 case $pkg_config_prog_path in
10950 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
10953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10954 for as_dir in $PATH
10957 test -z "$as_dir" && as_dir=.
10958 for ac_exec_ext in '' $ac_executable_extensions; do
10959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10960 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
10961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10968 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
10972 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
10973 if test -n "$pkg_config_prog_path"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10975 $as_echo "$pkg_config_prog_path" >&6; }
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10983 try_guile_versions="guile-2.0"
10985 case "${with_guile}" in
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10988 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10991 if test "${pkg_config_prog_path}" = "missing"; then
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10993 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10996 pkg_config=${pkg_config_prog_path}
10997 guile_version_list=${try_guile_versions}
11000 found_usable_guile=checking
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11002 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11003 for guile_version in ${guile_version_list}; do
11004 ${pkg_config} --exists ${guile_version} 2>/dev/null
11005 if test $? != 0; then
11008 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11009 if test $? != 0; then
11010 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11012 new_LIBS=`${pkg_config} --libs ${guile_version}`
11013 if test $? != 0; then
11014 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11016 found_usable_guile=${guile_version}
11019 if test "${found_usable_guile}" = "checking"; then
11020 if test "${flag_errors}" = "yes"; then
11021 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11023 found_usable_guile=no
11026 if test "${found_usable_guile}" != no; then
11027 save_CPPFLAGS=$CPPFLAGS
11029 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11030 LIBS="$LIBS $new_LIBS"
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11033 #include "libguile.h"
11042 if ac_fn_c_try_link "$LINENO"; then :
11044 GUILE_CPPFLAGS=$new_CPPFLAGS
11045 GUILE_LIBS=$new_LIBS
11047 found_usable_guile=no
11049 rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11051 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11052 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11054 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11059 CPPFLAGS=$save_CPPFLAGS
11061 if test "${found_usable_guile}" = no; then
11062 if test "${flag_errors}" = yes; then
11063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11065 as_fn_error $? "linking guile version ${guile_version} test program failed
11066 See \`config.log' for more details" "$LINENO" 5; }
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11071 $as_echo "${found_usable_guile}" >&6; }
11076 if test "${pkg_config_prog_path}" = "missing"; then
11077 as_fn_error $? "pkg-config not found" "$LINENO" 5
11080 pkg_config=${pkg_config_prog_path}
11081 guile_version_list=${try_guile_versions}
11084 found_usable_guile=checking
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11086 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11087 for guile_version in ${guile_version_list}; do
11088 ${pkg_config} --exists ${guile_version} 2>/dev/null
11089 if test $? != 0; then
11092 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11093 if test $? != 0; then
11094 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11096 new_LIBS=`${pkg_config} --libs ${guile_version}`
11097 if test $? != 0; then
11098 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11100 found_usable_guile=${guile_version}
11103 if test "${found_usable_guile}" = "checking"; then
11104 if test "${flag_errors}" = "yes"; then
11105 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11107 found_usable_guile=no
11110 if test "${found_usable_guile}" != no; then
11111 save_CPPFLAGS=$CPPFLAGS
11113 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11114 LIBS="$LIBS $new_LIBS"
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11117 #include "libguile.h"
11126 if ac_fn_c_try_link "$LINENO"; then :
11128 GUILE_CPPFLAGS=$new_CPPFLAGS
11129 GUILE_LIBS=$new_LIBS
11131 found_usable_guile=no
11133 rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
11135 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11136 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11138 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11143 CPPFLAGS=$save_CPPFLAGS
11145 if test "${found_usable_guile}" = no; then
11146 if test "${flag_errors}" = yes; then
11147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11149 as_fn_error $? "linking guile version ${guile_version} test program failed
11150 See \`config.log' for more details" "$LINENO" 5; }
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11155 $as_echo "${found_usable_guile}" >&6; }
11159 if test -x "${with_guile}"; then
11161 pkg_config=${with_guile}
11162 guile_version_list=${try_guile_versions}
11165 found_usable_guile=checking
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11167 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11168 for guile_version in ${guile_version_list}; do
11169 ${pkg_config} --exists ${guile_version} 2>/dev/null
11170 if test $? != 0; then
11173 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11174 if test $? != 0; then
11175 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11177 new_LIBS=`${pkg_config} --libs ${guile_version}`
11178 if test $? != 0; then
11179 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11181 found_usable_guile=${guile_version}
11184 if test "${found_usable_guile}" = "checking"; then
11185 if test "${flag_errors}" = "yes"; then
11186 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11188 found_usable_guile=no
11191 if test "${found_usable_guile}" != no; then
11192 save_CPPFLAGS=$CPPFLAGS
11194 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11195 LIBS="$LIBS $new_LIBS"
11196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11198 #include "libguile.h"
11207 if ac_fn_c_try_link "$LINENO"; then :
11209 GUILE_CPPFLAGS=$new_CPPFLAGS
11210 GUILE_LIBS=$new_LIBS
11212 found_usable_guile=no
11214 rm -f core conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11217 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11219 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11224 CPPFLAGS=$save_CPPFLAGS
11226 if test "${found_usable_guile}" = no; then
11227 if test "${flag_errors}" = yes; then
11228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11230 as_fn_error $? "linking guile version ${guile_version} test program failed
11231 See \`config.log' for more details" "$LINENO" 5; }
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11236 $as_echo "${found_usable_guile}" >&6; }
11239 as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
11243 # Disallow --with=guile="" and --with-guile=foo/bar.
11244 as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
11247 # A space separate list of guile versions to try, in order.
11248 if test "${pkg_config_prog_path}" = "missing"; then
11249 as_fn_error $? "pkg-config not found" "$LINENO" 5
11252 pkg_config=${pkg_config_prog_path}
11253 guile_version_list=${with_guile}
11256 found_usable_guile=checking
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11258 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11259 for guile_version in ${guile_version_list}; do
11260 ${pkg_config} --exists ${guile_version} 2>/dev/null
11261 if test $? != 0; then
11264 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11265 if test $? != 0; then
11266 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11268 new_LIBS=`${pkg_config} --libs ${guile_version}`
11269 if test $? != 0; then
11270 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11272 found_usable_guile=${guile_version}
11275 if test "${found_usable_guile}" = "checking"; then
11276 if test "${flag_errors}" = "yes"; then
11277 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11279 found_usable_guile=no
11282 if test "${found_usable_guile}" != no; then
11283 save_CPPFLAGS=$CPPFLAGS
11285 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11286 LIBS="$LIBS $new_LIBS"
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11289 #include "libguile.h"
11298 if ac_fn_c_try_link "$LINENO"; then :
11300 GUILE_CPPFLAGS=$new_CPPFLAGS
11301 GUILE_LIBS=$new_LIBS
11303 found_usable_guile=no
11305 rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
11307 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11308 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11310 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11315 CPPFLAGS=$save_CPPFLAGS
11317 if test "${found_usable_guile}" = no; then
11318 if test "${flag_errors}" = yes; then
11319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11321 as_fn_error $? "linking guile version ${guile_version} test program failed
11322 See \`config.log' for more details" "$LINENO" 5; }
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11327 $as_echo "${found_usable_guile}" >&6; }
11332 if test "${have_libguile}" != no; then
11333 case "${with_guile}" in
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11337 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11338 if ${ac_cv_guild_program_name+:} false; then :
11339 $as_echo_n "(cached) " >&6
11341 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
11343 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11344 # the 'guild' and 'bindir' variables. In that case, try to guess
11345 # what the program name is, at the risk of getting it wrong if
11346 # Guile was configured with '--program-suffix' or similar.
11347 if test "x$ac_cv_guild_program_name" = "x"; then
11348 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11349 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11354 $as_echo "$ac_cv_guild_program_name" >&6; }
11356 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11357 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11360 GUILD="$ac_cv_guild_program_name"
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11367 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11368 if ${ac_cv_guild_program_name+:} false; then :
11369 $as_echo_n "(cached) " >&6
11371 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11373 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11374 # the 'guild' and 'bindir' variables. In that case, try to guess
11375 # what the program name is, at the risk of getting it wrong if
11376 # Guile was configured with '--program-suffix' or similar.
11377 if test "x$ac_cv_guild_program_name" = "x"; then
11378 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11379 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11384 $as_echo "$ac_cv_guild_program_name" >&6; }
11386 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11387 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11390 GUILD="$ac_cv_guild_program_name"
11397 if test "$cross_compiling" = no; then
11400 GUILD_TARGET_FLAG="--target=$host"
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11407 $as_echo_n "checking whether guild supports this host... " >&6; }
11408 if ${ac_cv_guild_ok+:} false; then :
11409 $as_echo_n "(cached) " >&6
11411 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11412 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11419 $as_echo "$ac_cv_guild_ok" >&6; }
11421 if test "$ac_cv_guild_ok" = no; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11424 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11428 if test "${have_libguile}" != no; then
11430 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11432 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11433 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11434 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11435 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
11436 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11439 save_CPPFLAGS="$CPPFLAGS"
11441 CPPFLAGS="$GUILE_CPPFLAGS"
11442 for ac_func in scm_new_smob
11444 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11445 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
11446 cat >>confdefs.h <<_ACEOF
11447 #define HAVE_SCM_NEW_SMOB 1
11454 CPPFLAGS="$save_CPPFLAGS"
11456 # Even if Guile support is not compiled in, we need to have these files
11458 CONFIG_OBS="$CONFIG_OBS guile/guile.o"
11459 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
11463 if test "${have_libguile}" != no; then
11465 HAVE_GUILE_FALSE='#'
11467 HAVE_GUILE_TRUE='#'
11472 # --------------------- #
11473 # Check for libmcheck. #
11474 # --------------------- #
11476 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
11477 # but turn it off if Python is enabled with threads, since -lmcheck is
11478 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
11479 # and for releases.
11480 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
11481 && $development; then
11482 libmcheck_default=yes
11484 libmcheck_default=no
11487 # Check whether --enable-libmcheck was given.
11488 if test "${enable_libmcheck+set}" = set; then :
11489 enableval=$enable_libmcheck; case "${enableval}" in
11490 yes | y) ENABLE_LIBMCHECK="yes" ;;
11491 no | n) ENABLE_LIBMCHECK="no" ;;
11492 *) as_fn_error $? "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
11497 if test -z "${ENABLE_LIBMCHECK}"; then
11498 ENABLE_LIBMCHECK=${libmcheck_default}
11501 if test "$ENABLE_LIBMCHECK" = "yes" ; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
11503 $as_echo_n "checking for main in -lmcheck... " >&6; }
11504 if ${ac_cv_lib_mcheck_main+:} false; then :
11505 $as_echo_n "(cached) " >&6
11507 ac_check_lib_save_LIBS=$LIBS
11508 LIBS="-lmcheck $LIBS"
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11521 if ac_fn_c_try_link "$LINENO"; then :
11522 ac_cv_lib_mcheck_main=yes
11524 ac_cv_lib_mcheck_main=no
11526 rm -f core conftest.err conftest.$ac_objext \
11527 conftest$ac_exeext conftest.$ac_ext
11528 LIBS=$ac_check_lib_save_LIBS
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
11531 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
11532 if test "x$ac_cv_lib_mcheck_main" = xyes; then :
11533 cat >>confdefs.h <<_ACEOF
11534 #define HAVE_LIBMCHECK 1
11537 LIBS="-lmcheck $LIBS"
11544 if test "$ENABLE_LIBMCHECK" = "yes" \
11545 -a "${have_libpython}" != "no" \
11546 -a "${python_has_threads}" = "yes" ; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
11548 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
11552 # Check whether --with-intel_pt was given.
11553 if test "${with_intel_pt+set}" = set; then :
11554 withval=$with_intel_pt;
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11560 $as_echo_n "checking whether to use intel pt... " >&6; }
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11562 $as_echo "$with_intel_pt" >&6; }
11564 if test "${with_intel_pt}" = no; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11566 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11572 #include <linux/perf_event.h>
11573 #ifndef PERF_ATTR_SIZE_VER5
11578 if ac_fn_c_try_cpp "$LINENO"; then :
11583 rm -f conftest.err conftest.i conftest.$ac_ext
11584 if test "$perf_event" != yes; then
11585 if test "$with_intel_pt" = yes; then
11586 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11589 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11603 acl_save_prefix="$prefix"
11604 prefix="$acl_final_prefix"
11605 acl_save_exec_prefix="$exec_prefix"
11606 exec_prefix="$acl_final_exec_prefix"
11608 eval additional_includedir=\"$includedir\"
11609 eval additional_libdir=\"$libdir\"
11611 exec_prefix="$acl_save_exec_prefix"
11612 prefix="$acl_save_prefix"
11615 # Check whether --with-libipt-prefix was given.
11616 if test "${with_libipt_prefix+set}" = set; then :
11617 withval=$with_libipt_prefix;
11618 if test "X$withval" = "Xno"; then
11621 if test "X$withval" = "X"; then
11623 acl_save_prefix="$prefix"
11624 prefix="$acl_final_prefix"
11625 acl_save_exec_prefix="$exec_prefix"
11626 exec_prefix="$acl_final_exec_prefix"
11628 eval additional_includedir=\"$includedir\"
11629 eval additional_libdir=\"$libdir\"
11631 exec_prefix="$acl_save_exec_prefix"
11632 prefix="$acl_save_prefix"
11635 additional_includedir="$withval/include"
11636 additional_libdir="$withval/lib"
11647 names_already_handled=
11648 names_next_round='ipt '
11649 while test -n "$names_next_round"; do
11650 names_this_round="$names_next_round"
11652 for name in $names_this_round; do
11654 for n in $names_already_handled; do
11655 if test "$n" = "$name"; then
11656 already_handled=yes
11660 if test -z "$already_handled"; then
11661 names_already_handled="$names_already_handled $name"
11662 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11663 eval value=\"\$HAVE_LIB$uppername\"
11664 if test -n "$value"; then
11665 if test "$value" = yes; then
11666 eval value=\"\$LIB$uppername\"
11667 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
11668 eval value=\"\$LTLIB$uppername\"
11669 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
11678 if test $use_additional = yes; then
11679 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11680 found_dir="$additional_libdir"
11681 found_so="$additional_libdir/lib$name.$shlibext"
11682 if test -f "$additional_libdir/lib$name.la"; then
11683 found_la="$additional_libdir/lib$name.la"
11686 if test -f "$additional_libdir/lib$name.$libext"; then
11687 found_dir="$additional_libdir"
11688 found_a="$additional_libdir/lib$name.$libext"
11689 if test -f "$additional_libdir/lib$name.la"; then
11690 found_la="$additional_libdir/lib$name.la"
11695 if test "X$found_dir" = "X"; then
11696 for x in $LDFLAGS $LTLIBIPT; do
11698 acl_save_prefix="$prefix"
11699 prefix="$acl_final_prefix"
11700 acl_save_exec_prefix="$exec_prefix"
11701 exec_prefix="$acl_final_exec_prefix"
11703 exec_prefix="$acl_save_exec_prefix"
11704 prefix="$acl_save_prefix"
11708 dir=`echo "X$x" | sed -e 's/^X-L//'`
11709 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11711 found_so="$dir/lib$name.$shlibext"
11712 if test -f "$dir/lib$name.la"; then
11713 found_la="$dir/lib$name.la"
11716 if test -f "$dir/lib$name.$libext"; then
11718 found_a="$dir/lib$name.$libext"
11719 if test -f "$dir/lib$name.la"; then
11720 found_la="$dir/lib$name.la"
11726 if test "X$found_dir" != "X"; then
11731 if test "X$found_dir" != "X"; then
11732 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11733 if test "X$found_so" != "X"; then
11734 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11735 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11738 for x in $ltrpathdirs; do
11739 if test "X$x" = "X$found_dir"; then
11744 if test -z "$haveit"; then
11745 ltrpathdirs="$ltrpathdirs $found_dir"
11747 if test "$hardcode_direct" = yes; then
11748 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11750 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11751 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11753 for x in $rpathdirs; do
11754 if test "X$x" = "X$found_dir"; then
11759 if test -z "$haveit"; then
11760 rpathdirs="$rpathdirs $found_dir"
11764 for x in $LDFLAGS $LIBIPT; do
11766 acl_save_prefix="$prefix"
11767 prefix="$acl_final_prefix"
11768 acl_save_exec_prefix="$exec_prefix"
11769 exec_prefix="$acl_final_exec_prefix"
11771 exec_prefix="$acl_save_exec_prefix"
11772 prefix="$acl_save_prefix"
11774 if test "X$x" = "X-L$found_dir"; then
11779 if test -z "$haveit"; then
11780 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11782 if test "$hardcode_minus_L" != no; then
11783 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11785 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
11791 if test "X$found_a" != "X"; then
11792 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
11794 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11797 additional_includedir=
11798 case "$found_dir" in
11800 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11801 additional_includedir="$basedir/include"
11804 if test "X$additional_includedir" != "X"; then
11805 if test "X$additional_includedir" != "X/usr/include"; then
11807 if test "X$additional_includedir" = "X/usr/local/include"; then
11808 if test -n "$GCC"; then
11810 linux*) haveit=yes;;
11814 if test -z "$haveit"; then
11815 for x in $CPPFLAGS $INCIPT; do
11817 acl_save_prefix="$prefix"
11818 prefix="$acl_final_prefix"
11819 acl_save_exec_prefix="$exec_prefix"
11820 exec_prefix="$acl_final_exec_prefix"
11822 exec_prefix="$acl_save_exec_prefix"
11823 prefix="$acl_save_prefix"
11825 if test "X$x" = "X-I$additional_includedir"; then
11830 if test -z "$haveit"; then
11831 if test -d "$additional_includedir"; then
11832 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11838 if test -n "$found_la"; then
11839 save_libdir="$libdir"
11840 case "$found_la" in
11841 */* | *\\*) . "$found_la" ;;
11842 *) . "./$found_la" ;;
11844 libdir="$save_libdir"
11845 for dep in $dependency_libs; do
11848 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11849 if test "X$additional_libdir" != "X/usr/lib"; then
11851 if test "X$additional_libdir" = "X/usr/local/lib"; then
11852 if test -n "$GCC"; then
11854 linux*) haveit=yes;;
11858 if test -z "$haveit"; then
11860 for x in $LDFLAGS $LIBIPT; do
11862 acl_save_prefix="$prefix"
11863 prefix="$acl_final_prefix"
11864 acl_save_exec_prefix="$exec_prefix"
11865 exec_prefix="$acl_final_exec_prefix"
11867 exec_prefix="$acl_save_exec_prefix"
11868 prefix="$acl_save_prefix"
11870 if test "X$x" = "X-L$additional_libdir"; then
11875 if test -z "$haveit"; then
11876 if test -d "$additional_libdir"; then
11877 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11881 for x in $LDFLAGS $LTLIBIPT; do
11883 acl_save_prefix="$prefix"
11884 prefix="$acl_final_prefix"
11885 acl_save_exec_prefix="$exec_prefix"
11886 exec_prefix="$acl_final_exec_prefix"
11888 exec_prefix="$acl_save_exec_prefix"
11889 prefix="$acl_save_prefix"
11891 if test "X$x" = "X-L$additional_libdir"; then
11896 if test -z "$haveit"; then
11897 if test -d "$additional_libdir"; then
11898 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11905 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11906 if test "$enable_rpath" != no; then
11908 for x in $rpathdirs; do
11909 if test "X$x" = "X$dir"; then
11914 if test -z "$haveit"; then
11915 rpathdirs="$rpathdirs $dir"
11918 for x in $ltrpathdirs; do
11919 if test "X$x" = "X$dir"; then
11924 if test -z "$haveit"; then
11925 ltrpathdirs="$ltrpathdirs $dir"
11930 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11933 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11936 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
11937 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11943 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
11944 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11950 if test "X$rpathdirs" != "X"; then
11951 if test -n "$hardcode_libdir_separator"; then
11953 for found_dir in $rpathdirs; do
11954 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11956 acl_save_libdir="$libdir"
11958 eval flag=\"$hardcode_libdir_flag_spec\"
11959 libdir="$acl_save_libdir"
11960 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
11962 for found_dir in $rpathdirs; do
11963 acl_save_libdir="$libdir"
11964 libdir="$found_dir"
11965 eval flag=\"$hardcode_libdir_flag_spec\"
11966 libdir="$acl_save_libdir"
11967 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
11971 if test "X$ltrpathdirs" != "X"; then
11972 for found_dir in $ltrpathdirs; do
11973 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11978 ac_save_CPPFLAGS="$CPPFLAGS"
11980 for element in $INCIPT; do
11982 for x in $CPPFLAGS; do
11984 acl_save_prefix="$prefix"
11985 prefix="$acl_final_prefix"
11986 acl_save_exec_prefix="$exec_prefix"
11987 exec_prefix="$acl_final_exec_prefix"
11989 exec_prefix="$acl_save_exec_prefix"
11990 prefix="$acl_save_prefix"
11992 if test "X$x" = "X$element"; then
11997 if test -z "$haveit"; then
11998 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
12004 $as_echo_n "checking for libipt... " >&6; }
12005 if ${ac_cv_libipt+:} false; then :
12006 $as_echo_n "(cached) " >&6
12009 ac_save_LIBS="$LIBS"
12010 LIBS="$LIBS $LIBIPT"
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12013 #include "intel-pt.h"
12017 pt_insn_alloc_decoder (0);
12022 if ac_fn_c_try_link "$LINENO"; then :
12027 rm -f core conftest.err conftest.$ac_objext \
12028 conftest$ac_exeext conftest.$ac_ext
12029 LIBS="$ac_save_LIBS"
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
12033 $as_echo "$ac_cv_libipt" >&6; }
12034 if test "$ac_cv_libipt" = yes; then
12037 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
12040 $as_echo_n "checking how to link with libipt... " >&6; }
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
12042 $as_echo "$LIBIPT" >&6; }
12045 CPPFLAGS="$ac_save_CPPFLAGS"
12055 if test "$HAVE_LIBIPT" != yes; then
12056 if test "$with_intel_pt" = yes; then
12057 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
12060 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
12064 LIBS="$LIBS $LIBIPT"
12065 for ac_func in pt_insn_event
12067 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
12068 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
12069 cat >>confdefs.h <<_ACEOF
12070 #define HAVE_PT_INSN_EVENT 1
12076 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
12078 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
12080 cat >>confdefs.h <<_ACEOF
12081 #define HAVE_STRUCT_PT_INSN_ENABLED 1
12086 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
12088 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
12090 cat >>confdefs.h <<_ACEOF
12091 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
12101 # ------------------------- #
12102 # Checks for header files. #
12103 # ------------------------- #
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12106 $as_echo_n "checking for ANSI C header files... " >&6; }
12107 if ${ac_cv_header_stdc+:} false; then :
12108 $as_echo_n "(cached) " >&6
12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h. */
12112 #include <stdlib.h>
12113 #include <stdarg.h>
12114 #include <string.h>
12125 if ac_fn_c_try_compile "$LINENO"; then :
12126 ac_cv_header_stdc=yes
12128 ac_cv_header_stdc=no
12130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12132 if test $ac_cv_header_stdc = yes; then
12133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136 #include <string.h>
12139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12140 $EGREP "memchr" >/dev/null 2>&1; then :
12143 ac_cv_header_stdc=no
12149 if test $ac_cv_header_stdc = yes; then
12150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152 /* end confdefs.h. */
12153 #include <stdlib.h>
12156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12157 $EGREP "free" >/dev/null 2>&1; then :
12160 ac_cv_header_stdc=no
12166 if test $ac_cv_header_stdc = yes; then
12167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12168 if test "$cross_compiling" = yes; then :
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12174 #include <stdlib.h>
12175 #if ((' ' & 0x0FF) == 0x020)
12176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12179 # define ISLOWER(c) \
12180 (('a' <= (c) && (c) <= 'i') \
12181 || ('j' <= (c) && (c) <= 'r') \
12182 || ('s' <= (c) && (c) <= 'z'))
12183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12191 for (i = 0; i < 256; i++)
12192 if (XOR (islower (i), ISLOWER (i))
12193 || toupper (i) != TOUPPER (i))
12198 if ac_fn_c_try_run "$LINENO"; then :
12201 ac_cv_header_stdc=no
12203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12204 conftest.$ac_objext conftest.beam conftest.$ac_ext
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12210 $as_echo "$ac_cv_header_stdc" >&6; }
12211 if test $ac_cv_header_stdc = yes; then
12213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12217 # elf_hp.h is for HP/UX 64-bit shared library support.
12218 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12219 thread_db.h linux/elf.h \
12220 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12221 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12222 sys/reg.h sys/debugreg.h sys/select.h \
12223 termios.h elf_hp.h \
12226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12227 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12228 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12229 cat >>confdefs.h <<_ACEOF
12230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12237 for ac_header in sys/user.h
12239 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12240 # include <sys/param.h>
12244 if test "x$ac_cv_header_sys_user_h" = xyes; then :
12245 cat >>confdefs.h <<_ACEOF
12246 #define HAVE_SYS_USER_H 1
12254 for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
12256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12257 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12258 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12259 cat >>confdefs.h <<_ACEOF
12260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12267 for ac_header in term.h
12269 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12270 # include <curses.h>
12274 if test "x$ac_cv_header_term_h" = xyes; then :
12275 cat >>confdefs.h <<_ACEOF
12276 #define HAVE_TERM_H 1
12284 # ------------------------- #
12285 # Checks for declarations. #
12286 # ------------------------- #
12289 # Check for presence and size of long long.
12290 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12291 if test "x$ac_cv_type_long_long" = xyes; then :
12293 cat >>confdefs.h <<_ACEOF
12294 #define HAVE_LONG_LONG 1
12297 # The cast to long int works around a bug in the HP C Compiler
12298 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12299 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12300 # This bug is HP SR number 8606223364.
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12302 $as_echo_n "checking size of long long... " >&6; }
12303 if ${ac_cv_sizeof_long_long+:} false; then :
12304 $as_echo_n "(cached) " >&6
12306 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12309 if test "$ac_cv_type_long_long" = yes; then
12310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12312 as_fn_error 77 "cannot compute sizeof (long long)
12313 See \`config.log' for more details" "$LINENO" 5; }
12315 ac_cv_sizeof_long_long=0
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12321 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12325 cat >>confdefs.h <<_ACEOF
12326 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12333 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12334 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12335 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12341 cat >>confdefs.h <<_ACEOF
12342 #define HAVE_DECL_BASENAME $ac_have_decl
12344 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12345 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12351 cat >>confdefs.h <<_ACEOF
12352 #define HAVE_DECL_FFS $ac_have_decl
12354 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12355 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12361 cat >>confdefs.h <<_ACEOF
12362 #define HAVE_DECL_ASPRINTF $ac_have_decl
12364 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12365 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12371 cat >>confdefs.h <<_ACEOF
12372 #define HAVE_DECL_VASPRINTF $ac_have_decl
12374 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12375 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12381 cat >>confdefs.h <<_ACEOF
12382 #define HAVE_DECL_SNPRINTF $ac_have_decl
12384 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12385 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12391 cat >>confdefs.h <<_ACEOF
12392 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12395 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12396 if test "x$ac_cv_have_decl_strtol" = xyes; then :
12402 cat >>confdefs.h <<_ACEOF
12403 #define HAVE_DECL_STRTOL $ac_have_decl
12405 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12406 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
12412 cat >>confdefs.h <<_ACEOF
12413 #define HAVE_DECL_STRTOUL $ac_have_decl
12415 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12416 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
12422 cat >>confdefs.h <<_ACEOF
12423 #define HAVE_DECL_STRTOLL $ac_have_decl
12425 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12426 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
12432 cat >>confdefs.h <<_ACEOF
12433 #define HAVE_DECL_STRTOULL $ac_have_decl
12436 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12437 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12443 cat >>confdefs.h <<_ACEOF
12444 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12449 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12450 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12456 cat >>confdefs.h <<_ACEOF
12457 #define HAVE_DECL_SNPRINTF $ac_have_decl
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12462 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12463 if ${am_cv_val_LC_MESSAGES+:} false; then :
12464 $as_echo_n "(cached) " >&6
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12468 #include <locale.h>
12477 if ac_fn_c_try_link "$LINENO"; then :
12478 am_cv_val_LC_MESSAGES=yes
12480 am_cv_val_LC_MESSAGES=no
12482 rm -f core conftest.err conftest.$ac_objext \
12483 conftest$ac_exeext conftest.$ac_ext
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12486 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12487 if test $am_cv_val_LC_MESSAGES = yes; then
12489 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12494 # ----------------------- #
12495 # Checks for structures. #
12496 # ----------------------- #
12498 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12499 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
12501 cat >>confdefs.h <<_ACEOF
12502 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12507 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12508 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
12510 cat >>confdefs.h <<_ACEOF
12511 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12518 # ------------------ #
12519 # Checks for types. #
12520 # ------------------ #
12522 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12523 #include <sys/socket.h>
12526 if test "x$ac_cv_type_socklen_t" = xyes; then :
12528 cat >>confdefs.h <<_ACEOF
12529 #define HAVE_SOCKLEN_T 1
12536 # ------------------------------------- #
12537 # Checks for compiler characteristics. #
12538 # ------------------------------------- #
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12541 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12542 if ${ac_cv_c_const+:} false; then :
12543 $as_echo_n "(cached) " >&6
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12552 #ifndef __cplusplus
12553 /* Ultrix mips cc rejects this sort of thing. */
12554 typedef int charset[2];
12555 const charset cs = { 0, 0 };
12556 /* SunOS 4.1.1 cc rejects this. */
12557 char const *const *pcpcc;
12559 /* NEC SVR4.0.2 mips cc rejects this. */
12560 struct point {int x, y;};
12561 static struct point const zero = {0,0};
12562 /* AIX XL C 1.02.0.0 rejects this.
12563 It does not let you subtract one const X* pointer from another in
12564 an arm of an if-expression whose if-part is not a constant
12566 const char *g = "string";
12567 pcpcc = &g + (g ? g-g : 0);
12568 /* HPUX 7.0 cc rejects these. */
12570 ppc = (char**) pcpcc;
12571 pcpcc = (char const *const *) ppc;
12572 { /* SCO 3.2v4 cc rejects this sort of thing. */
12575 char const *s = 0 ? (char *) 0 : (char const *) 0;
12580 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12581 int x[] = {25, 17};
12582 const int *foo = &x[0];
12585 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12586 typedef const int *iptr;
12590 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12591 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12592 struct s { int j; const int *ap[3]; } bx;
12593 struct s *b = &bx; b->j = 5;
12595 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12596 const int foo = 10;
12597 if (!foo) return 0;
12599 return !cs[0] && !zero.x;
12606 if ac_fn_c_try_compile "$LINENO"; then :
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12614 $as_echo "$ac_cv_c_const" >&6; }
12615 if test $ac_cv_c_const = no; then
12617 $as_echo "#define const /**/" >>confdefs.h
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12622 $as_echo_n "checking for inline... " >&6; }
12623 if ${ac_cv_c_inline+:} false; then :
12624 $as_echo_n "(cached) " >&6
12627 for ac_kw in inline __inline__ __inline; do
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12630 #ifndef __cplusplus
12632 static $ac_kw foo_t static_foo () {return 0; }
12633 $ac_kw foo_t foo () {return 0; }
12637 if ac_fn_c_try_compile "$LINENO"; then :
12638 ac_cv_c_inline=$ac_kw
12640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12641 test "$ac_cv_c_inline" != no && break
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12646 $as_echo "$ac_cv_c_inline" >&6; }
12648 case $ac_cv_c_inline in
12651 case $ac_cv_c_inline in
12653 *) ac_val=$ac_cv_c_inline;;
12655 cat >>confdefs.h <<_ACEOF
12656 #ifndef __cplusplus
12657 #define inline $ac_val
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12664 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12665 if ${ac_cv_c_bigendian+:} false; then :
12666 $as_echo_n "(cached) " >&6
12668 ac_cv_c_bigendian=unknown
12669 # See if we're dealing with a universal compiler.
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12672 #ifndef __APPLE_CC__
12673 not a universal capable compiler
12678 if ac_fn_c_try_compile "$LINENO"; then :
12680 # Check for potential -arch flags. It is not universal unless
12681 # there are at least two -arch flags with different values.
12684 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12685 if test -n "$ac_prev"; then
12687 i?86 | x86_64 | ppc | ppc64)
12688 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12691 ac_cv_c_bigendian=universal
12697 elif test "x$ac_word" = "x-arch"; then
12702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12703 if test $ac_cv_c_bigendian = unknown; then
12704 # See if sys/param.h defines the BYTE_ORDER macro.
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12707 #include <sys/types.h>
12708 #include <sys/param.h>
12713 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12714 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12716 bogus endian macros
12723 if ac_fn_c_try_compile "$LINENO"; then :
12724 # It does; now see whether it defined to BIG_ENDIAN or not.
12725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726 /* end confdefs.h. */
12727 #include <sys/types.h>
12728 #include <sys/param.h>
12733 #if BYTE_ORDER != BIG_ENDIAN
12741 if ac_fn_c_try_compile "$LINENO"; then :
12742 ac_cv_c_bigendian=yes
12744 ac_cv_c_bigendian=no
12746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 if test $ac_cv_c_bigendian = unknown; then
12751 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h. */
12754 #include <limits.h>
12759 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12760 bogus endian macros
12767 if ac_fn_c_try_compile "$LINENO"; then :
12768 # It does; now see whether it defined to _BIG_ENDIAN or not.
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771 #include <limits.h>
12776 #ifndef _BIG_ENDIAN
12784 if ac_fn_c_try_compile "$LINENO"; then :
12785 ac_cv_c_bigendian=yes
12787 ac_cv_c_bigendian=no
12789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12793 if test $ac_cv_c_bigendian = unknown; then
12794 # Compile a test program.
12795 if test "$cross_compiling" = yes; then :
12796 # Try to guess by grepping values from an object file.
12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12799 short int ascii_mm[] =
12800 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12801 short int ascii_ii[] =
12802 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12803 int use_ascii (int i) {
12804 return ascii_mm[i] + ascii_ii[i];
12806 short int ebcdic_ii[] =
12807 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12808 short int ebcdic_mm[] =
12809 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12810 int use_ebcdic (int i) {
12811 return ebcdic_mm[i] + ebcdic_ii[i];
12818 return use_ascii (foo) == use_ebcdic (foo);
12823 if ac_fn_c_try_compile "$LINENO"; then :
12824 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12825 ac_cv_c_bigendian=yes
12827 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12828 if test "$ac_cv_c_bigendian" = unknown; then
12829 ac_cv_c_bigendian=no
12831 # finding both strings is unlikely to happen, but who knows?
12832 ac_cv_c_bigendian=unknown
12836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12840 $ac_includes_default
12845 /* Are we little or big endian? From Harbison&Steele. */
12849 char c[sizeof (long int)];
12852 return u.c[sizeof (long int) - 1] == 1;
12858 if ac_fn_c_try_run "$LINENO"; then :
12859 ac_cv_c_bigendian=no
12861 ac_cv_c_bigendian=yes
12863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12864 conftest.$ac_objext conftest.beam conftest.$ac_ext
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12870 $as_echo "$ac_cv_c_bigendian" >&6; }
12871 case $ac_cv_c_bigendian in #(
12873 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12879 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12883 as_fn_error $? "unknown endianness
12884 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12888 # ------------------------------ #
12889 # Checks for library functions. #
12890 # ------------------------------ #
12895 for ac_header in $ac_header_list
12897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12898 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12900 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12901 cat >>confdefs.h <<_ACEOF
12902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12916 for ac_func in getpagesize
12918 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12919 if test "x$ac_cv_func_getpagesize" = xyes; then :
12920 cat >>confdefs.h <<_ACEOF
12921 #define HAVE_GETPAGESIZE 1
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12928 $as_echo_n "checking for working mmap... " >&6; }
12929 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12930 $as_echo_n "(cached) " >&6
12932 if test "$cross_compiling" = yes; then :
12933 ac_cv_func_mmap_fixed_mapped=no
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12937 $ac_includes_default
12938 /* malloc might have been renamed as rpl_malloc. */
12941 /* Thanks to Mike Haertel and Jim Avera for this test.
12942 Here is a matrix of mmap possibilities:
12943 mmap private not fixed
12944 mmap private fixed at somewhere currently unmapped
12945 mmap private fixed at somewhere already mapped
12946 mmap shared not fixed
12947 mmap shared fixed at somewhere currently unmapped
12948 mmap shared fixed at somewhere already mapped
12949 For private mappings, we should verify that changes cannot be read()
12950 back from the file, nor mmap's back from the file at a different
12951 address. (There have been systems where private was not correctly
12952 implemented like the infamous i386 svr4.0, and systems where the
12953 VM page cache was not coherent with the file system buffer cache
12954 like early versions of FreeBSD and possibly contemporary NetBSD.)
12955 For shared mappings, we should conversely verify that changes get
12956 propagated back to all the places they're supposed to be.
12958 Grep wants private fixed already mapped.
12959 The main things grep needs to know about mmap are:
12960 * does it exist and is it safe to write into the mmap'd area
12961 * how to use it (BSD variants) */
12964 #include <sys/mman.h>
12966 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12970 /* This mess was copied from the GNU getpagesize.h. */
12971 #ifndef HAVE_GETPAGESIZE
12972 # ifdef _SC_PAGESIZE
12973 # define getpagesize() sysconf(_SC_PAGESIZE)
12974 # else /* no _SC_PAGESIZE */
12975 # ifdef HAVE_SYS_PARAM_H
12976 # include <sys/param.h>
12977 # ifdef EXEC_PAGESIZE
12978 # define getpagesize() EXEC_PAGESIZE
12979 # else /* no EXEC_PAGESIZE */
12981 # define getpagesize() NBPG * CLSIZE
12984 # endif /* no CLSIZE */
12985 # else /* no NBPG */
12987 # define getpagesize() NBPC
12988 # else /* no NBPC */
12990 # define getpagesize() PAGESIZE
12991 # endif /* PAGESIZE */
12992 # endif /* no NBPC */
12993 # endif /* no NBPG */
12994 # endif /* no EXEC_PAGESIZE */
12995 # else /* no HAVE_SYS_PARAM_H */
12996 # define getpagesize() 8192 /* punt totally */
12997 # endif /* no HAVE_SYS_PARAM_H */
12998 # endif /* no _SC_PAGESIZE */
13000 #endif /* no HAVE_GETPAGESIZE */
13005 char *data, *data2, *data3;
13006 const char *cdata2;
13010 pagesize = getpagesize ();
13012 /* First, make a file with some known garbage in it. */
13013 data = (char *) malloc (pagesize);
13016 for (i = 0; i < pagesize; ++i)
13017 *(data + i) = rand ();
13019 fd = creat ("conftest.mmap", 0600);
13022 if (write (fd, data, pagesize) != pagesize)
13026 /* Next, check that the tail of a page is zero-filled. File must have
13027 non-zero length, otherwise we risk SIGBUS for entire page. */
13028 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13032 if (write (fd2, cdata2, 1) != 1)
13034 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13035 if (data2 == MAP_FAILED)
13037 for (i = 0; i < pagesize; ++i)
13041 if (munmap (data2, pagesize))
13044 /* Next, try to mmap the file at a fixed address which already has
13045 something else allocated at it. If we can, also make sure that
13046 we see the same garbage. */
13047 fd = open ("conftest.mmap", O_RDWR);
13050 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13051 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13053 for (i = 0; i < pagesize; ++i)
13054 if (*(data + i) != *(data2 + i))
13057 /* Finally, make sure that changes to the mapped area do not
13058 percolate back to the file as seen by read(). (This is a bug on
13059 some variants of i386 svr4.0.) */
13060 for (i = 0; i < pagesize; ++i)
13061 *(data2 + i) = *(data2 + i) + 1;
13062 data3 = (char *) malloc (pagesize);
13065 if (read (fd, data3, pagesize) != pagesize)
13067 for (i = 0; i < pagesize; ++i)
13068 if (*(data + i) != *(data3 + i))
13074 if ac_fn_c_try_run "$LINENO"; then :
13075 ac_cv_func_mmap_fixed_mapped=yes
13077 ac_cv_func_mmap_fixed_mapped=no
13079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13080 conftest.$ac_objext conftest.beam conftest.$ac_ext
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13085 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13086 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13088 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13091 rm -f conftest.mmap conftest.txt
13093 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13094 if test "x$ac_cv_type_pid_t" = xyes; then :
13098 cat >>confdefs.h <<_ACEOF
13104 for ac_header in vfork.h
13106 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13107 if test "x$ac_cv_header_vfork_h" = xyes; then :
13108 cat >>confdefs.h <<_ACEOF
13109 #define HAVE_VFORK_H 1
13116 for ac_func in fork vfork
13118 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13119 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13120 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13121 cat >>confdefs.h <<_ACEOF
13122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13128 if test "x$ac_cv_func_fork" = xyes; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13130 $as_echo_n "checking for working fork... " >&6; }
13131 if ${ac_cv_func_fork_works+:} false; then :
13132 $as_echo_n "(cached) " >&6
13134 if test "$cross_compiling" = yes; then :
13135 ac_cv_func_fork_works=cross
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13139 $ac_includes_default
13144 /* By Ruediger Kuhlmann. */
13145 return fork () < 0;
13151 if ac_fn_c_try_run "$LINENO"; then :
13152 ac_cv_func_fork_works=yes
13154 ac_cv_func_fork_works=no
13156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13157 conftest.$ac_objext conftest.beam conftest.$ac_ext
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13162 $as_echo "$ac_cv_func_fork_works" >&6; }
13165 ac_cv_func_fork_works=$ac_cv_func_fork
13167 if test "x$ac_cv_func_fork_works" = xcross; then
13169 *-*-amigaos* | *-*-msdosdjgpp*)
13170 # Override, as these systems have only a dummy fork() stub
13171 ac_cv_func_fork_works=no
13174 ac_cv_func_fork_works=yes
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13178 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13180 ac_cv_func_vfork_works=$ac_cv_func_vfork
13181 if test "x$ac_cv_func_vfork" = xyes; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13183 $as_echo_n "checking for working vfork... " >&6; }
13184 if ${ac_cv_func_vfork_works+:} false; then :
13185 $as_echo_n "(cached) " >&6
13187 if test "$cross_compiling" = yes; then :
13188 ac_cv_func_vfork_works=cross
13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h. */
13192 /* Thanks to Paul Eggert for this test. */
13193 $ac_includes_default
13194 #include <sys/wait.h>
13195 #ifdef HAVE_VFORK_H
13196 # include <vfork.h>
13198 /* On some sparc systems, changes by the child to local and incoming
13199 argument registers are propagated back to the parent. The compiler
13200 is told about this with #include <vfork.h>, but some compilers
13201 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13202 static variable whose address is put into a register that is
13203 clobbered by the vfork. */
13206 sparc_address_test (int arg)
13208 sparc_address_test (arg) int arg;
13211 static pid_t child;
13229 pid_t parent = getpid ();
13232 sparc_address_test (0);
13237 /* Here is another test for sparc vfork register problems. This
13238 test uses lots of local variables, at least as many local
13239 variables as main has allocated so far including compiler
13240 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13241 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13242 reuse the register of parent for one of the local variables,
13243 since it will think that parent can't possibly be used any more
13244 in this routine. Assigning to the local variable will thus
13245 munge parent in the parent process. */
13247 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13248 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13249 /* Convince the compiler that p..p7 are live; otherwise, it might
13250 use the same hardware register for all 8 local variables. */
13251 if (p != p1 || p != p2 || p != p3 || p != p4
13252 || p != p5 || p != p6 || p != p7)
13255 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13256 from child file descriptors. If the child closes a descriptor
13257 before it execs or exits, this munges the parent's descriptor
13258 as well. Test for this by closing stdout in the child. */
13259 _exit(close(fileno(stdout)) != 0);
13264 while (wait(&status) != child)
13267 /* Was there some problem with vforking? */
13270 /* Did the child fail? (This shouldn't happen.) */
13273 /* Did the vfork/compiler bug occur? */
13274 || parent != getpid()
13276 /* Did the file descriptor bug occur? */
13277 || fstat(fileno(stdout), &st) != 0
13282 if ac_fn_c_try_run "$LINENO"; then :
13283 ac_cv_func_vfork_works=yes
13285 ac_cv_func_vfork_works=no
13287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13288 conftest.$ac_objext conftest.beam conftest.$ac_ext
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13293 $as_echo "$ac_cv_func_vfork_works" >&6; }
13296 if test "x$ac_cv_func_fork_works" = xcross; then
13297 ac_cv_func_vfork_works=$ac_cv_func_vfork
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13299 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13302 if test "x$ac_cv_func_vfork_works" = xyes; then
13304 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13308 $as_echo "#define vfork fork" >>confdefs.h
13311 if test "x$ac_cv_func_fork_works" = xyes; then
13313 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13317 for ac_func in getauxval getrusage getuid getgid \
13318 pipe poll pread pread64 pwrite resize_term \
13319 sbrk getpgid setpgid setpgrp setsid \
13320 sigaction sigprocmask sigsetmask socketpair \
13321 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13322 setrlimit getrlimit posix_madvise waitpid \
13323 ptrace64 sigaltstack setns
13325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13326 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13327 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13328 cat >>confdefs.h <<_ACEOF
13329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13337 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13338 if ${am_cv_langinfo_codeset+:} false; then :
13339 $as_echo_n "(cached) " >&6
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13343 #include <langinfo.h>
13347 char* cs = nl_langinfo(CODESET);
13352 if ac_fn_c_try_link "$LINENO"; then :
13353 am_cv_langinfo_codeset=yes
13355 am_cv_langinfo_codeset=no
13357 rm -f core conftest.err conftest.$ac_objext \
13358 conftest$ac_exeext conftest.$ac_ext
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13362 $as_echo "$am_cv_langinfo_codeset" >&6; }
13363 if test $am_cv_langinfo_codeset = yes; then
13365 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13369 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13370 if test "x$ac_cv_type_size_t" = xyes; then :
13374 cat >>confdefs.h <<_ACEOF
13375 #define size_t unsigned int
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13382 $as_echo_n "checking for ANSI C header files... " >&6; }
13383 if ${ac_cv_header_stdc+:} false; then :
13384 $as_echo_n "(cached) " >&6
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13388 #include <stdlib.h>
13389 #include <stdarg.h>
13390 #include <string.h>
13401 if ac_fn_c_try_compile "$LINENO"; then :
13402 ac_cv_header_stdc=yes
13404 ac_cv_header_stdc=no
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 if test $ac_cv_header_stdc = yes; then
13409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412 #include <string.h>
13415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13416 $EGREP "memchr" >/dev/null 2>&1; then :
13419 ac_cv_header_stdc=no
13425 if test $ac_cv_header_stdc = yes; then
13426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13429 #include <stdlib.h>
13432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13433 $EGREP "free" >/dev/null 2>&1; then :
13436 ac_cv_header_stdc=no
13442 if test $ac_cv_header_stdc = yes; then
13443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13444 if test "$cross_compiling" = yes; then :
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13450 #include <stdlib.h>
13451 #if ((' ' & 0x0FF) == 0x020)
13452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13455 # define ISLOWER(c) \
13456 (('a' <= (c) && (c) <= 'i') \
13457 || ('j' <= (c) && (c) <= 'r') \
13458 || ('s' <= (c) && (c) <= 'z'))
13459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13467 for (i = 0; i < 256; i++)
13468 if (XOR (islower (i), ISLOWER (i))
13469 || toupper (i) != TOUPPER (i))
13474 if ac_fn_c_try_run "$LINENO"; then :
13477 ac_cv_header_stdc=no
13479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13480 conftest.$ac_objext conftest.beam conftest.$ac_ext
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13486 $as_echo "$ac_cv_header_stdc" >&6; }
13487 if test $ac_cv_header_stdc = yes; then
13489 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13493 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13494 # for constant arguments. Useless!
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13496 $as_echo_n "checking for working alloca.h... " >&6; }
13497 if ${ac_cv_working_alloca_h+:} false; then :
13498 $as_echo_n "(cached) " >&6
13500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13502 #include <alloca.h>
13506 char *p = (char *) alloca (2 * sizeof (int));
13512 if ac_fn_c_try_link "$LINENO"; then :
13513 ac_cv_working_alloca_h=yes
13515 ac_cv_working_alloca_h=no
13517 rm -f core conftest.err conftest.$ac_objext \
13518 conftest$ac_exeext conftest.$ac_ext
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13521 $as_echo "$ac_cv_working_alloca_h" >&6; }
13522 if test $ac_cv_working_alloca_h = yes; then
13524 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13529 $as_echo_n "checking for alloca... " >&6; }
13530 if ${ac_cv_func_alloca_works+:} false; then :
13531 $as_echo_n "(cached) " >&6
13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13536 # define alloca __builtin_alloca
13539 # include <malloc.h>
13540 # define alloca _alloca
13542 # ifdef HAVE_ALLOCA_H
13543 # include <alloca.h>
13548 # ifndef alloca /* predefined by HP cc +Olibcalls */
13549 void *alloca (size_t);
13559 char *p = (char *) alloca (1);
13565 if ac_fn_c_try_link "$LINENO"; then :
13566 ac_cv_func_alloca_works=yes
13568 ac_cv_func_alloca_works=no
13570 rm -f core conftest.err conftest.$ac_objext \
13571 conftest$ac_exeext conftest.$ac_ext
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13574 $as_echo "$ac_cv_func_alloca_works" >&6; }
13576 if test $ac_cv_func_alloca_works = yes; then
13578 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13581 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13582 # that cause trouble. Some versions do not even contain alloca or
13583 # contain a buggy version. If you still want to use their alloca,
13584 # use ar to extract alloca.o from them instead of compiling alloca.c.
13586 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13588 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13592 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13593 if ${ac_cv_os_cray+:} false; then :
13594 $as_echo_n "(cached) " >&6
13596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597 /* end confdefs.h. */
13598 #if defined CRAY && ! defined CRAY2
13605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13606 $EGREP "webecray" >/dev/null 2>&1; then :
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13615 $as_echo "$ac_cv_os_cray" >&6; }
13616 if test $ac_cv_os_cray = yes; then
13617 for ac_func in _getb67 GETB67 getb67; do
13618 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13619 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13620 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13622 cat >>confdefs.h <<_ACEOF
13623 #define CRAY_STACKSEG_END $ac_func
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13633 $as_echo_n "checking stack direction for C alloca... " >&6; }
13634 if ${ac_cv_c_stack_direction+:} false; then :
13635 $as_echo_n "(cached) " >&6
13637 if test "$cross_compiling" = yes; then :
13638 ac_cv_c_stack_direction=0
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642 $ac_includes_default
13644 find_stack_direction (int *addr, int depth)
13646 int dir, dummy = 0;
13649 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13650 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13651 return dir + dummy;
13655 main (int argc, char **argv)
13657 return find_stack_direction (0, argc + !argv + 20) < 0;
13660 if ac_fn_c_try_run "$LINENO"; then :
13661 ac_cv_c_stack_direction=1
13663 ac_cv_c_stack_direction=-1
13665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13666 conftest.$ac_objext conftest.beam conftest.$ac_ext
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13671 $as_echo "$ac_cv_c_stack_direction" >&6; }
13672 cat >>confdefs.h <<_ACEOF
13673 #define STACK_DIRECTION $ac_cv_c_stack_direction
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13682 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13683 if ${am_cv_langinfo_codeset+:} false; then :
13684 $as_echo_n "(cached) " >&6
13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13688 #include <langinfo.h>
13692 char* cs = nl_langinfo(CODESET);
13697 if ac_fn_c_try_link "$LINENO"; then :
13698 am_cv_langinfo_codeset=yes
13700 am_cv_langinfo_codeset=no
13702 rm -f core conftest.err conftest.$ac_objext \
13703 conftest$ac_exeext conftest.$ac_ext
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13707 $as_echo "$am_cv_langinfo_codeset" >&6; }
13708 if test $am_cv_langinfo_codeset = yes; then
13710 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13715 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h
13717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13718 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13720 cat >>confdefs.h <<_ACEOF
13721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13729 for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction
13731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13732 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13733 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13734 cat >>confdefs.h <<_ACEOF
13735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13742 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13743 if test "x$ac_cv_have_decl_strerror" = xyes; then :
13749 cat >>confdefs.h <<_ACEOF
13750 #define HAVE_DECL_STRERROR $ac_have_decl
13752 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13753 if test "x$ac_cv_have_decl_strstr" = xyes; then :
13759 cat >>confdefs.h <<_ACEOF
13760 #define HAVE_DECL_STRSTR $ac_have_decl
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13765 $as_echo_n "checking for sigsetjmp... " >&6; }
13766 if ${gdb_cv_func_sigsetjmp+:} false; then :
13767 $as_echo_n "(cached) " >&6
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13772 #include <setjmp.h>
13777 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13782 if ac_fn_c_try_compile "$LINENO"; then :
13783 gdb_cv_func_sigsetjmp=yes
13785 gdb_cv_func_sigsetjmp=no
13787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13790 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13791 if test $gdb_cv_func_sigsetjmp = yes; then
13793 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13798 # Check the return and argument types of ptrace.
13801 for ac_header in sys/ptrace.h ptrace.h
13803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13804 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13805 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13806 cat >>confdefs.h <<_ACEOF
13807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13815 gdb_ptrace_headers='
13816 #include <sys/types.h>
13817 #if HAVE_SYS_PTRACE_H
13818 # include <sys/ptrace.h>
13821 # include <unistd.h>
13824 # There is no point in checking if we don't have a prototype.
13825 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13827 if test "x$ac_cv_have_decl_ptrace" = xyes; then :
13833 cat >>confdefs.h <<_ACEOF
13834 #define HAVE_DECL_PTRACE $ac_have_decl
13836 if test $ac_have_decl = 1; then :
13840 : ${gdb_cv_func_ptrace_ret='int'}
13841 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13845 # Check return type. Varargs (used on GNU/Linux) conflict with the
13846 # empty argument list, so check for that explicitly.
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13848 $as_echo_n "checking return type of ptrace... " >&6; }
13849 if ${gdb_cv_func_ptrace_ret+:} false; then :
13850 $as_echo_n "(cached) " >&6
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13854 $gdb_ptrace_headers
13858 extern long ptrace (enum __ptrace_request, ...);
13863 if ac_fn_c_try_compile "$LINENO"; then :
13864 gdb_cv_func_ptrace_ret='long'
13866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867 /* end confdefs.h. */
13868 $gdb_ptrace_headers
13872 extern int ptrace ();
13877 if ac_fn_c_try_compile "$LINENO"; then :
13878 gdb_cv_func_ptrace_ret='int'
13880 gdb_cv_func_ptrace_ret='long'
13882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13887 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13889 cat >>confdefs.h <<_ACEOF
13890 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13893 # Check argument types.
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13895 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13896 if ${gdb_cv_func_ptrace_args+:} false; then :
13897 $as_echo_n "(cached) " >&6
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13902 $gdb_ptrace_headers
13906 extern long ptrace (enum __ptrace_request, ...);
13911 if ac_fn_c_try_compile "$LINENO"; then :
13912 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
13915 for gdb_arg1 in 'int' 'long'; do
13916 for gdb_arg2 in 'pid_t' 'int' 'long'; do
13917 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13918 for gdb_arg4 in 'int' 'long' 'void *'; do
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13921 $gdb_ptrace_headers
13926 extern $gdb_cv_func_ptrace_ret
13927 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13933 if ac_fn_c_try_compile "$LINENO"; then :
13934 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13938 for gdb_arg5 in 'int *' 'int' 'long'; do
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13941 $gdb_ptrace_headers
13946 extern $gdb_cv_func_ptrace_ret
13947 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13953 if ac_fn_c_try_compile "$LINENO"; then :
13955 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13964 # Provide a safe default value.
13965 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13971 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13972 ac_save_IFS=$IFS; IFS=','
13973 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13977 cat >>confdefs.h <<_ACEOF
13978 #define PTRACE_TYPE_ARG1 $1
13982 cat >>confdefs.h <<_ACEOF
13983 #define PTRACE_TYPE_ARG3 $3
13987 cat >>confdefs.h <<_ACEOF
13988 #define PTRACE_TYPE_ARG4 $4
13991 if test -n "$5"; then
13993 cat >>confdefs.h <<_ACEOF
13994 #define PTRACE_TYPE_ARG5 $5
14000 if test "$cross_compiling" = no; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14002 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14003 if ${ac_cv_func_setpgrp_void+:} false; then :
14004 $as_echo_n "(cached) " >&6
14006 if test "$cross_compiling" = yes; then :
14007 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14011 $ac_includes_default
14015 /* If this system has a BSD-style setpgrp which takes arguments,
14016 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14017 exit successfully. */
14018 return setpgrp (1,1) != -1;
14023 if ac_fn_c_try_run "$LINENO"; then :
14024 ac_cv_func_setpgrp_void=no
14026 ac_cv_func_setpgrp_void=yes
14028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14029 conftest.$ac_objext conftest.beam conftest.$ac_ext
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14034 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14035 if test $ac_cv_func_setpgrp_void = yes; then
14037 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14043 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14044 if ${ac_cv_func_setpgrp_void+:} false; then :
14045 $as_echo_n "(cached) " >&6
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14050 #include <unistd.h>
14056 if (setpgrp(1,1) == -1)
14065 if ac_fn_c_try_compile "$LINENO"; then :
14066 ac_cv_func_setpgrp_void=no
14068 ac_cv_func_setpgrp_void=yes
14070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14073 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14074 if test $ac_cv_func_setpgrp_void = yes; then
14075 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14080 # Assume we'll default to using the included libiberty regex.
14081 gdb_use_included_regex=yes
14083 # However, if the system regex is GNU regex, then default to *not*
14084 # using the included regex.
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14086 $as_echo_n "checking for GNU regex... " >&6; }
14087 if ${gdb_cv_have_gnu_regex+:} false; then :
14088 $as_echo_n "(cached) " >&6
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092 #include <gnu-versions.h>
14096 #define REGEX_INTERFACE_VERSION 1
14097 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14098 # error "Version mismatch"
14104 if ac_fn_c_try_compile "$LINENO"; then :
14105 gdb_cv_have_gnu_regex=yes
14107 gdb_cv_have_gnu_regex=no
14109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14112 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14113 if test $gdb_cv_have_gnu_regex = yes; then
14114 gdb_use_included_regex=no
14118 # Check whether --with-included-regex was given.
14119 if test "${with_included_regex+set}" = set; then :
14120 withval=$with_included_regex; gdb_with_regex=$withval
14122 gdb_with_regex=$gdb_use_included_regex
14125 if test "$gdb_with_regex" = yes; then
14127 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14131 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14132 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14133 #include <sys/proc.h>
14136 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
14138 cat >>confdefs.h <<_ACEOF
14139 #define HAVE_STRUCT_THREAD_TD_PCB 1
14146 # See if <sys/lwp.h> defines `struct lwp`.
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14148 $as_echo_n "checking for struct lwp... " >&6; }
14149 if ${gdb_cv_struct_lwp+:} false; then :
14150 $as_echo_n "(cached) " >&6
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14154 #include <sys/param.h>
14156 #include <sys/lwp.h>
14165 if ac_fn_c_try_compile "$LINENO"; then :
14166 gdb_cv_struct_lwp=yes
14168 gdb_cv_struct_lwp=no
14170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14173 $as_echo "$gdb_cv_struct_lwp" >&6; }
14174 if test $gdb_cv_struct_lwp = yes; then
14176 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14180 # See if <machine/reg.h> degines `struct reg'.
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14182 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14183 if ${gdb_cv_struct_reg+:} false; then :
14184 $as_echo_n "(cached) " >&6
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14188 #include <sys/types.h>
14189 #include <machine/reg.h>
14198 if ac_fn_c_try_compile "$LINENO"; then :
14199 gdb_cv_struct_reg=yes
14201 gdb_cv_struct_reg=no
14203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14206 $as_echo "$gdb_cv_struct_reg" >&6; }
14207 if test $gdb_cv_struct_reg = yes; then
14209 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14213 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14214 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14215 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14216 #include <machine/reg.h>
14218 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
14220 cat >>confdefs.h <<_ACEOF
14221 #define HAVE_STRUCT_REG_R_FS 1
14226 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14227 #include <machine/reg.h>
14229 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
14231 cat >>confdefs.h <<_ACEOF
14232 #define HAVE_STRUCT_REG_R_GS 1
14239 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14240 # Older amd64 Linux's don't have the fs_base and gs_base members of
14241 # `struct user_regs_struct'.
14242 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/types.h>
14243 #include <sys/user.h>
14245 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
14247 cat >>confdefs.h <<_ACEOF
14248 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14253 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/types.h>
14254 #include <sys/user.h>
14256 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
14258 cat >>confdefs.h <<_ACEOF
14259 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14266 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14268 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14269 if ${gdb_cv_have_ptrace_getregs+:} false; then :
14270 $as_echo_n "(cached) " >&6
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 #include <sys/ptrace.h>
14283 if ac_fn_c_try_compile "$LINENO"; then :
14284 gdb_cv_have_ptrace_getregs=yes
14286 gdb_cv_have_ptrace_getregs=no
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14292 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14293 if test $gdb_cv_have_ptrace_getregs = yes; then
14295 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14299 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14301 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14302 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
14303 $as_echo_n "(cached) " >&6
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14307 #include <sys/ptrace.h>
14316 if ac_fn_c_try_compile "$LINENO"; then :
14317 gdb_cv_have_ptrace_getfpxregs=yes
14319 gdb_cv_have_ptrace_getfpxregs=no
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14325 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14326 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14328 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14332 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14334 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14335 if ${gdb_cv_have_pt_getdbregs+:} false; then :
14336 $as_echo_n "(cached) " >&6
14338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h. */
14340 #include <sys/types.h>
14341 #include <sys/ptrace.h>
14350 if ac_fn_c_try_compile "$LINENO"; then :
14351 gdb_cv_have_pt_getdbregs=yes
14353 gdb_cv_have_pt_getdbregs=no
14355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14359 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14360 if test $gdb_cv_have_pt_getdbregs = yes; then
14362 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14366 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14368 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14369 if ${gdb_cv_have_pt_getxmmregs+:} false; then :
14370 $as_echo_n "(cached) " >&6
14372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h. */
14374 #include <sys/types.h>
14375 #include <sys/ptrace.h>
14384 if ac_fn_c_try_compile "$LINENO"; then :
14385 gdb_cv_have_pt_getxmmregs=yes
14387 gdb_cv_have_pt_getxmmregs=no
14389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14393 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14394 if test $gdb_cv_have_pt_getxmmregs = yes; then
14396 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14400 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14401 # Older FreeBSD versions don't have the pl_tdname member of
14402 # `struct ptrace_lwpinfo'.
14403 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14405 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
14407 cat >>confdefs.h <<_ACEOF
14408 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14415 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14416 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14418 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
14420 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
14422 cat >>confdefs.h <<_ACEOF
14423 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14430 if test "$ac_cv_header_sys_procfs_h" = yes; then
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14432 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14433 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
14434 $as_echo_n "(cached) " >&6
14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h. */
14440 /* Needed for new procfs interface on sparc-solaris. */
14441 #define _STRUCTURED_PROC 1
14442 #include <sys/procfs.h>
14451 if ac_fn_c_try_compile "$LINENO"; then :
14452 bfd_cv_have_sys_procfs_type_gregset_t=yes
14454 bfd_cv_have_sys_procfs_type_gregset_t=no
14457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14462 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14466 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14469 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14470 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
14471 $as_echo_n "(cached) " >&6
14473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14474 /* end confdefs.h. */
14477 /* Needed for new procfs interface on sparc-solaris. */
14478 #define _STRUCTURED_PROC 1
14479 #include <sys/procfs.h>
14488 if ac_fn_c_try_compile "$LINENO"; then :
14489 bfd_cv_have_sys_procfs_type_fpregset_t=yes
14491 bfd_cv_have_sys_procfs_type_fpregset_t=no
14494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14497 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14499 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14503 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14506 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14507 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
14508 $as_echo_n "(cached) " >&6
14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511 /* end confdefs.h. */
14514 /* Needed for new procfs interface on sparc-solaris. */
14515 #define _STRUCTURED_PROC 1
14516 #include <sys/procfs.h>
14525 if ac_fn_c_try_compile "$LINENO"; then :
14526 bfd_cv_have_sys_procfs_type_prgregset_t=yes
14528 bfd_cv_have_sys_procfs_type_prgregset_t=no
14531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14536 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14540 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14543 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14544 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
14545 $as_echo_n "(cached) " >&6
14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h. */
14551 /* Needed for new procfs interface on sparc-solaris. */
14552 #define _STRUCTURED_PROC 1
14553 #include <sys/procfs.h>
14562 if ac_fn_c_try_compile "$LINENO"; then :
14563 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
14565 bfd_cv_have_sys_procfs_type_prfpregset_t=no
14568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14571 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14573 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14577 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14580 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14581 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
14582 $as_echo_n "(cached) " >&6
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14588 /* Needed for new procfs interface on sparc-solaris. */
14589 #define _STRUCTURED_PROC 1
14590 #include <sys/procfs.h>
14599 if ac_fn_c_try_compile "$LINENO"; then :
14600 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
14602 bfd_cv_have_sys_procfs_type_prgregset32_t=no
14605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14608 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14610 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14614 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14617 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14618 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
14619 $as_echo_n "(cached) " >&6
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14625 /* Needed for new procfs interface on sparc-solaris. */
14626 #define _STRUCTURED_PROC 1
14627 #include <sys/procfs.h>
14636 if ac_fn_c_try_compile "$LINENO"; then :
14637 bfd_cv_have_sys_procfs_type_lwpid_t=yes
14639 bfd_cv_have_sys_procfs_type_lwpid_t=no
14642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14645 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14647 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14651 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14654 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14655 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
14656 $as_echo_n "(cached) " >&6
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14662 /* Needed for new procfs interface on sparc-solaris. */
14663 #define _STRUCTURED_PROC 1
14664 #include <sys/procfs.h>
14673 if ac_fn_c_try_compile "$LINENO"; then :
14674 bfd_cv_have_sys_procfs_type_psaddr_t=yes
14676 bfd_cv_have_sys_procfs_type_psaddr_t=no
14679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14684 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14688 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
14691 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
14692 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
14693 $as_echo_n "(cached) " >&6
14695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14696 /* end confdefs.h. */
14699 /* Needed for new procfs interface on sparc-solaris. */
14700 #define _STRUCTURED_PROC 1
14701 #include <sys/procfs.h>
14705 elf_fpregset_t avar
14710 if ac_fn_c_try_compile "$LINENO"; then :
14711 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
14713 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
14721 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
14725 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
14729 # Check if the compiler supports the `long long' type.
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14732 $as_echo_n "checking for long long support in compiler... " >&6; }
14733 if ${gdb_cv_c_long_long+:} false; then :
14734 $as_echo_n "(cached) " >&6
14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14737 /* end confdefs.h. */
14738 extern long long foo;
14742 switch (foo & 2) { case 0: return 1; }
14747 if ac_fn_c_try_compile "$LINENO"; then :
14748 gdb_cv_c_long_long=yes
14750 gdb_cv_c_long_long=no
14752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14755 $as_echo "$gdb_cv_c_long_long" >&6; }
14756 if test $gdb_cv_c_long_long != yes; then
14757 # libdecnumber requires long long.
14758 as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
14761 # Check if the compiler and runtime support printing long longs.
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14764 $as_echo_n "checking for long long support in printf... " >&6; }
14765 if ${gdb_cv_printf_has_long_long+:} false; then :
14766 $as_echo_n "(cached) " >&6
14768 if test "$cross_compiling" = yes; then :
14769 gdb_cv_printf_has_long_long=no
14771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14773 $ac_includes_default
14779 l = (l << 16) + 0x0123;
14780 l = (l << 16) + 0x4567;
14781 l = (l << 16) + 0x89ab;
14782 l = (l << 16) + 0xcdef;
14783 sprintf (buf, "0x%016llx", l);
14784 return (strcmp ("0x0123456789abcdef", buf));
14789 if ac_fn_c_try_run "$LINENO"; then :
14790 gdb_cv_printf_has_long_long=yes
14792 gdb_cv_printf_has_long_long=no
14794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14795 conftest.$ac_objext conftest.beam conftest.$ac_ext
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14800 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14801 if test $gdb_cv_printf_has_long_long = yes; then
14803 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14807 # Check if the compiler and runtime support printing decfloats.
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14810 $as_echo_n "checking for decfloat support in printf... " >&6; }
14811 if ${gdb_cv_printf_has_decfloat+:} false; then :
14812 $as_echo_n "(cached) " >&6
14814 if test "$cross_compiling" = yes; then :
14815 gdb_cv_printf_has_decfloat=no
14817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818 /* end confdefs.h. */
14819 $ac_includes_default
14824 _Decimal32 d32 = 1.2345df;
14825 _Decimal64 d64 = 1.2345dd;
14826 _Decimal128 d128 = 1.2345dl;
14827 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14828 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14833 if ac_fn_c_try_run "$LINENO"; then :
14834 gdb_cv_printf_has_decfloat=yes
14836 gdb_cv_printf_has_decfloat=no
14838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14839 conftest.$ac_objext conftest.beam conftest.$ac_ext
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14844 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14845 if test $gdb_cv_printf_has_decfloat = yes; then
14847 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14851 # Check if the compiler supports the `long double' type. We can't use
14852 # AC_C_LONG_DOUBLE because that one does additional checks on the
14853 # constants defined in <float.h> that fail on some systems,
14854 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14857 $as_echo_n "checking for long double support in compiler... " >&6; }
14858 if ${gdb_cv_c_long_double+:} false; then :
14859 $as_echo_n "(cached) " >&6
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14865 if ac_fn_c_try_compile "$LINENO"; then :
14866 gdb_cv_c_long_double=yes
14868 gdb_cv_c_long_double=no
14870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14873 $as_echo "$gdb_cv_c_long_double" >&6; }
14874 if test $gdb_cv_c_long_double = yes; then
14876 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14880 # Check if the compiler and runtime support printing long doubles.
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14883 $as_echo_n "checking for long double support in printf... " >&6; }
14884 if ${gdb_cv_printf_has_long_double+:} false; then :
14885 $as_echo_n "(cached) " >&6
14887 if test "$cross_compiling" = yes; then :
14888 gdb_cv_printf_has_long_double=no
14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14892 $ac_includes_default
14897 long double f = 3.141592653;
14898 sprintf (buf, "%Lg", f);
14899 return (strncmp ("3.14159", buf, 7));
14904 if ac_fn_c_try_run "$LINENO"; then :
14905 gdb_cv_printf_has_long_double=yes
14907 gdb_cv_printf_has_long_double=no
14909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14910 conftest.$ac_objext conftest.beam conftest.$ac_ext
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14915 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14916 if test $gdb_cv_printf_has_long_double = yes; then
14918 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14922 # Check if the compiler and runtime support scanning long doubles.
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14925 $as_echo_n "checking for long double support in scanf... " >&6; }
14926 if ${gdb_cv_scanf_has_long_double+:} false; then :
14927 $as_echo_n "(cached) " >&6
14929 if test "$cross_compiling" = yes; then :
14930 gdb_cv_scanf_has_long_double=no
14932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h. */
14938 char *buf = "3.141592653";
14940 sscanf (buf, "%Lg", &f);
14941 return !(f > 3.14159 && f < 3.14160);
14946 if ac_fn_c_try_run "$LINENO"; then :
14947 gdb_cv_scanf_has_long_double=yes
14949 gdb_cv_scanf_has_long_double=no
14951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14952 conftest.$ac_objext conftest.beam conftest.$ac_ext
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14957 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14958 if test $gdb_cv_scanf_has_long_double = yes; then
14960 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14967 $as_echo_n "checking for -bbigtoc option... " >&6; }
14968 if ${gdb_cv_bigtoc+:} false; then :
14969 $as_echo_n "(cached) " >&6
14972 SAVE_LDFLAGS=$LDFLAGS
14975 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14976 *) gdb_cv_bigtoc=-bbigtoc ;;
14979 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h. */
14991 if ac_fn_c_try_link "$LINENO"; then :
14996 rm -f core conftest.err conftest.$ac_objext \
14997 conftest$ac_exeext conftest.$ac_ext
14998 LDFLAGS="${SAVE_LDFLAGS}"
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
15002 $as_echo "$gdb_cv_bigtoc" >&6; }
15003 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
15008 $as_echo_n "checking for the dynamic export flag... " >&6; }
15010 if test "${gdb_native}" = yes; then
15011 # The dynamically loaded libthread_db needs access to symbols in the gdb
15012 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
15013 # may not be supported there.
15014 old_LDFLAGS="$LDFLAGS"
15015 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
15016 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
15017 LDFLAGS="$LDFLAGS $RDYNAMIC"
15018 if test "${have_libpython}" = no; then
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15030 if ac_fn_c_try_link "$LINENO"; then :
15033 rm -f core conftest.err conftest.$ac_objext \
15034 conftest$ac_exeext conftest.$ac_ext
15036 # Workaround http://bugs.python.org/issue4434 where static
15037 # libpythonX.Y.a would get its symbols required for
15038 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
15039 # Problem does not happen for the recommended libpythonX.Y.so linkage.
15041 # Note the workaround for Python
15042 # http://bugs.python.org/issue10112 earlier has removed
15043 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
15044 # here too, as otherwise it'd make this -Wl,--dynamic-list test
15046 old_CFLAGS="$CFLAGS"
15047 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
15049 LIBS="$LIBS $PYTHON_LIBS"
15050 old_CPPFLAGS="$CPPFLAGS"
15051 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15052 if test "$cross_compiling" = yes; then :
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057 #include "Python.h"
15063 err = PyRun_SimpleString ("import itertools\n");
15065 return err == 0 ? 0 : 1;
15070 if ac_fn_c_try_run "$LINENO"; then :
15073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15074 conftest.$ac_objext conftest.beam conftest.$ac_ext
15078 CFLAGS="$old_CFLAGS"
15079 CPPFLAGS="$old_CPPFLAGS"
15081 LDFLAGS="$old_LDFLAGS"
15083 if $dynamic_list; then
15084 found="-Wl,--dynamic-list"
15085 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15088 RDYNAMIC="-rdynamic"
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15092 $as_echo "$found" >&6; }
15095 if test ${build} = ${host} -a ${host} = ${target} ; then
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15099 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15100 if ${gdb_cv_have_aix_thread_debug+:} false; then :
15101 $as_echo_n "(cached) " >&6
15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104 /* end confdefs.h. */
15105 #include <sys/pthdebug.h>
15109 #ifndef PTHDB_VERSION_3
15116 if ac_fn_c_try_compile "$LINENO"; then :
15117 gdb_cv_have_aix_thread_debug=yes
15119 gdb_cv_have_aix_thread_debug=no
15121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
15125 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
15126 if test $gdb_cv_have_aix_thread_debug = yes; then
15127 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
15128 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
15129 LIBS="$LIBS -lpthdebug"
15131 # Older versions of AIX do not provide the declaration for
15132 # the getthrds function (it appears that it was introduced
15134 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
15136 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
15142 cat >>confdefs.h <<_ACEOF
15143 #define HAVE_DECL_GETTHRDS $ac_have_decl
15152 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15154 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15155 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
15156 $as_echo_n "(cached) " >&6
15158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15160 #include <thread_db.h>
15164 int i = TD_NOTALLOC;
15169 if ac_fn_c_try_compile "$LINENO"; then :
15170 gdb_cv_thread_db_h_has_td_notalloc=yes
15172 gdb_cv_thread_db_h_has_td_notalloc=no
15175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15179 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15181 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15182 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
15183 $as_echo_n "(cached) " >&6
15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h. */
15187 #include <thread_db.h>
15191 int i = TD_VERSION;
15196 if ac_fn_c_try_compile "$LINENO"; then :
15197 gdb_cv_thread_db_h_has_td_version=yes
15199 gdb_cv_thread_db_h_has_td_version=no
15202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15206 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15208 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15209 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
15210 $as_echo_n "(cached) " >&6
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214 #include <thread_db.h>
15223 if ac_fn_c_try_compile "$LINENO"; then :
15224 gdb_cv_thread_db_h_has_td_notls=yes
15226 gdb_cv_thread_db_h_has_td_notls=no
15229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15233 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15235 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15237 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15240 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15242 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15245 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15247 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15251 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15253 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
15259 cat >>confdefs.h <<_ACEOF
15260 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15264 if test "$cross_compiling" = yes; then :
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15267 #include <sys/personality.h>
15272 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15273 # define ADDR_NO_RANDOMIZE 0x0040000
15275 /* Test the flag could be set and stays set. */
15276 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15277 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15283 if ac_fn_c_try_link "$LINENO"; then :
15284 have_personality=true
15286 have_personality=false
15288 rm -f core conftest.err conftest.$ac_objext \
15289 conftest$ac_exeext conftest.$ac_ext
15291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292 /* end confdefs.h. */
15293 #include <sys/personality.h>
15298 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15299 # define ADDR_NO_RANDOMIZE 0x0040000
15301 /* Test the flag could be set and stays set. */
15302 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15303 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15309 if ac_fn_c_try_run "$LINENO"; then :
15310 have_personality=true
15312 have_personality=false
15314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15315 conftest.$ac_objext conftest.beam conftest.$ac_ext
15318 if $have_personality
15321 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15334 cat >>confdefs.h <<_ACEOF
15335 #define GDBINIT "$gdbinit"
15340 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15341 # except that the argument to --with-sysroot is optional.
15342 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15343 if test "x$with_sysroot" = xyes; then
15344 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
15347 # Check whether --with-sysroot was given.
15348 if test "${with_sysroot+set}" = set; then :
15349 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
15351 TARGET_SYSTEM_ROOT=
15355 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15356 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15357 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
15358 ac_define_dir=`eval echo $ac_define_dir`
15360 cat >>confdefs.h <<_ACEOF
15361 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15367 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15368 if test "x$prefix" = xNONE; then
15369 test_prefix=/usr/local
15371 test_prefix=$prefix
15374 test_prefix=$exec_prefix
15377 case ${ac_define_dir} in
15378 "${test_prefix}"|"${test_prefix}/"*|\
15379 '${exec_prefix}'|'${exec_prefix}/'*)
15384 cat >>confdefs.h <<_ACEOF
15385 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15392 # Check whether --with-system-gdbinit was given.
15393 if test "${with_system_gdbinit+set}" = set; then :
15394 withval=$with_system_gdbinit;
15395 SYSTEM_GDBINIT=$withval
15401 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15403 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
15404 ac_define_dir=`eval echo $ac_define_dir`
15406 cat >>confdefs.h <<_ACEOF
15407 #define SYSTEM_GDBINIT "$ac_define_dir"
15413 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15414 if test "x$prefix" = xNONE; then
15415 test_prefix=/usr/local
15417 test_prefix=$prefix
15420 test_prefix=$exec_prefix
15423 case ${ac_define_dir} in
15424 "${test_prefix}"|"${test_prefix}/"*|\
15425 '${exec_prefix}'|'${exec_prefix}/'*)
15430 cat >>confdefs.h <<_ACEOF
15431 #define SYSTEM_GDBINIT_RELOCATABLE $value
15438 # Check whether --enable-werror was given.
15439 if test "${enable_werror+set}" = set; then :
15440 enableval=$enable_werror; case "${enableval}" in
15441 yes | y) ERROR_ON_WARNING="yes" ;;
15442 no | n) ERROR_ON_WARNING="no" ;;
15443 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15448 # Enable -Werror by default when using gcc. Turn it off for releases.
15449 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15450 ERROR_ON_WARNING=yes
15454 if test "${ERROR_ON_WARNING}" = yes ; then
15455 WERROR_CFLAGS="-Werror"
15458 # The options we'll try to enable.
15459 build_warnings="-Wall -Wpointer-arith \
15460 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
15461 -Wno-switch -Wno-char-subscripts \
15462 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15463 -Wno-sign-compare -Wno-error=maybe-uninitialized \
15464 -Wno-mismatched-tags \
15465 -Wno-error=deprecated-register \
15466 -Wsuggest-override \
15467 -Wimplicit-fallthrough=3 \
15468 -Wduplicated-cond \
15473 # Enable -Wno-format by default when using gcc on mingw since many
15474 # GCC versions complain about %I64.
15475 build_warnings="$build_warnings -Wno-format" ;;
15477 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15478 # doesn't understand.
15479 build_warnings="$build_warnings -Wno-unknown-pragmas"
15480 # Solaris 11 <unistd.h> marks vfork deprecated.
15481 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
15483 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
15484 # but there's a special case for this below.
15485 build_warnings="$build_warnings -Wformat-nonliteral" ;;
15488 # Check whether --enable-build-warnings was given.
15489 if test "${enable_build_warnings+set}" = set; then :
15490 enableval=$enable_build_warnings; case "${enableval}" in
15492 no) build_warnings="-w";;
15493 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15494 build_warnings="${build_warnings} ${t}";;
15495 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15496 build_warnings="${t} ${build_warnings}";;
15497 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15499 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15500 echo "Setting compiler warning flags = $build_warnings" 6>&1
15503 # Check whether --enable-gdb-build-warnings was given.
15504 if test "${enable_gdb_build_warnings+set}" = set; then :
15505 enableval=$enable_gdb_build_warnings; case "${enableval}" in
15507 no) build_warnings="-w";;
15508 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15509 build_warnings="${build_warnings} ${t}";;
15510 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15511 build_warnings="${t} ${build_warnings}";;
15512 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15514 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15515 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15519 # The set of warnings supported by a C++ compiler is not the same as
15520 # of the C compiler.
15522 ac_cpp='$CXXCPP $CPPFLAGS'
15523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15529 if test "x${build_warnings}" != x -a "x$GCC" = xyes
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15532 $as_echo_n "checking compiler warning flags... " >&6; }
15533 # Separate out the -Werror flag as some files just cannot be
15534 # compiled with it enabled.
15535 for w in ${build_warnings}; do
15536 # GCC does not complain about -Wno-unknown-warning. Invert
15537 # and test -Wunknown-warning instead.
15540 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
15541 -Wformat-nonliteral)
15542 # gcc requires -Wformat before -Wformat-nonliteral
15543 # will work, so stick them together.
15552 -Werr*) WERROR_CFLAGS=-Werror ;;
15554 # Check whether GCC accepts it.
15555 saved_CFLAGS="$CFLAGS"
15556 CFLAGS="$CFLAGS -Werror $wtest"
15557 saved_CXXFLAGS="$CXXFLAGS"
15558 CXXFLAGS="$CXXFLAGS -Werror $wtest"
15559 if test "x$w" = "x-Wunused-variable"; then
15560 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
15561 # fixed in GCC 4.9. This test is derived from the gdb
15562 # source code that triggered this bug in GCC.
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15565 struct scoped_restore_base {};
15566 struct scoped_restore_tmpl : public scoped_restore_base {
15567 ~scoped_restore_tmpl() {}
15572 const scoped_restore_base &b = scoped_restore_tmpl();
15577 if ac_fn_cxx_try_compile "$LINENO"; then :
15578 WARN_CFLAGS="${WARN_CFLAGS} $w"
15580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15583 /* end confdefs.h. */
15593 if ac_fn_cxx_try_compile "$LINENO"; then :
15594 WARN_CFLAGS="${WARN_CFLAGS} $w"
15596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598 CFLAGS="$saved_CFLAGS"
15599 CXXFLAGS="$saved_CXXFLAGS"
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15603 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15609 ac_cpp='$CPP $CPPFLAGS'
15610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15616 # Check whether --enable-ubsan was given.
15617 if test "${enable_ubsan+set}" = set; then :
15618 enableval=$enable_ubsan;
15623 if test "x$enable_ubsan" = xauto; then
15624 if $development; then
15629 ac_cpp='$CXXCPP $CPPFLAGS'
15630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15634 if test "x$enable_ubsan" = xyes; then
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
15636 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
15637 saved_CXXFLAGS="$CXXFLAGS"
15638 CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
15639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15640 /* end confdefs.h. */
15650 if ac_fn_cxx_try_link "$LINENO"; then :
15655 rm -f core conftest.err conftest.$ac_objext \
15656 conftest$ac_exeext conftest.$ac_ext
15657 CXXFLAGS="$saved_CXXFLAGS"
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
15659 $as_echo "$enable_ubsan" >&6; }
15660 if test "x$enable_ubsan" = xyes; then
15661 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
15662 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
15666 ac_cpp='$CPP $CPPFLAGS'
15667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15673 # In the Cygwin environment, we need some additional flags.
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
15675 $as_echo_n "checking for cygwin... " >&6; }
15676 if ${gdb_cv_os_cygwin+:} false; then :
15677 $as_echo_n "(cached) " >&6
15679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h. */
15682 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15687 $EGREP "^lose$" >/dev/null 2>&1; then :
15688 gdb_cv_os_cygwin=yes
15690 gdb_cv_os_cygwin=no
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
15696 $as_echo "$gdb_cv_os_cygwin" >&6; }
15699 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
15701 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15702 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15703 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
15704 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
15708 # libreadline needs libuser32.a in a cygwin environment
15710 if test x$gdb_cv_os_cygwin = xyes; then
15711 WIN32LIBS="-luser32"
15712 case "${target}" in
15713 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15718 # The ser-tcp.c module requires sockets.
15722 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15724 WIN32LIBS="$WIN32LIBS -lws2_32"
15729 # Add ELF support to GDB, but only if BFD includes ELF support.
15732 OLD_LDFLAGS=$LDFLAGS
15734 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15735 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15736 # always want our bfd.
15737 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15738 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15739 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15740 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15741 LIBS="-lbfd -liberty -lz $intl $LIBS"
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15743 $as_echo_n "checking for ELF support in BFD... " >&6; }
15744 if ${gdb_cv_var_elf+:} false; then :
15745 $as_echo_n "(cached) " >&6
15747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748 /* end confdefs.h. */
15749 #include <stdlib.h>
15751 #include "elf-bfd.h"
15756 return bfd_get_elf_phdr_upper_bound (NULL);
15761 if ac_fn_c_try_link "$LINENO"; then :
15766 rm -f core conftest.err conftest.$ac_objext \
15767 conftest$ac_exeext conftest.$ac_ext
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15770 $as_echo "$gdb_cv_var_elf" >&6; }
15772 LDFLAGS=$OLD_LDFLAGS
15774 if test $gdb_cv_var_elf = yes; then
15775 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15777 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15779 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15780 if test "$plugins" = "yes"; then
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15782 $as_echo_n "checking for library containing dlopen... " >&6; }
15783 if ${ac_cv_search_dlopen+:} false; then :
15784 $as_echo_n "(cached) " >&6
15786 ac_func_search_save_LIBS=$LIBS
15787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788 /* end confdefs.h. */
15790 /* Override any GCC internal prototype to avoid an error.
15791 Use char because int might match the return type of a GCC
15792 builtin and then its argument prototype would still apply. */
15805 for ac_lib in '' dl; do
15806 if test -z "$ac_lib"; then
15807 ac_res="none required"
15810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15812 if ac_fn_c_try_link "$LINENO"; then :
15813 ac_cv_search_dlopen=$ac_res
15815 rm -f core conftest.err conftest.$ac_objext \
15817 if ${ac_cv_search_dlopen+:} false; then :
15821 if ${ac_cv_search_dlopen+:} false; then :
15824 ac_cv_search_dlopen=no
15826 rm conftest.$ac_ext
15827 LIBS=$ac_func_search_save_LIBS
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15830 $as_echo "$ac_cv_search_dlopen" >&6; }
15831 ac_res=$ac_cv_search_dlopen
15832 if test "$ac_res" != no; then :
15833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15840 # Add macho support to GDB, but only if BFD includes it.
15843 OLD_LDFLAGS=$LDFLAGS
15845 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15846 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15847 # always want our bfd.
15848 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15849 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15850 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15851 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15852 LIBS="-lbfd -liberty -lz $intl $LIBS"
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15854 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15855 if ${gdb_cv_var_macho+:} false; then :
15856 $as_echo_n "(cached) " >&6
15858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859 /* end confdefs.h. */
15860 #include <stdlib.h>
15862 #include "mach-o.h"
15867 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15872 if ac_fn_c_try_link "$LINENO"; then :
15873 gdb_cv_var_macho=yes
15875 gdb_cv_var_macho=no
15877 rm -f core conftest.err conftest.$ac_objext \
15878 conftest$ac_exeext conftest.$ac_ext
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15881 $as_echo "$gdb_cv_var_macho" >&6; }
15883 LDFLAGS=$OLD_LDFLAGS
15885 if test $gdb_cv_var_macho = yes; then
15886 CONFIG_OBS="$CONFIG_OBS machoread.o"
15889 # Add any host-specific objects to GDB.
15890 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
15892 # If building on ELF, look for lzma support for embedded compressed debug info.
15893 if test $gdb_cv_var_elf = yes; then
15895 # Check whether --with-lzma was given.
15896 if test "${with_lzma+set}" = set; then :
15897 withval=$with_lzma;
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15903 $as_echo_n "checking whether to use lzma... " >&6; }
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15905 $as_echo "$with_lzma" >&6; }
15907 if test "${with_lzma}" != no; then
15918 acl_save_prefix="$prefix"
15919 prefix="$acl_final_prefix"
15920 acl_save_exec_prefix="$exec_prefix"
15921 exec_prefix="$acl_final_exec_prefix"
15923 eval additional_includedir=\"$includedir\"
15924 eval additional_libdir=\"$libdir\"
15926 exec_prefix="$acl_save_exec_prefix"
15927 prefix="$acl_save_prefix"
15930 # Check whether --with-liblzma-prefix was given.
15931 if test "${with_liblzma_prefix+set}" = set; then :
15932 withval=$with_liblzma_prefix;
15933 if test "X$withval" = "Xno"; then
15936 if test "X$withval" = "X"; then
15938 acl_save_prefix="$prefix"
15939 prefix="$acl_final_prefix"
15940 acl_save_exec_prefix="$exec_prefix"
15941 exec_prefix="$acl_final_exec_prefix"
15943 eval additional_includedir=\"$includedir\"
15944 eval additional_libdir=\"$libdir\"
15946 exec_prefix="$acl_save_exec_prefix"
15947 prefix="$acl_save_prefix"
15950 additional_includedir="$withval/include"
15951 additional_libdir="$withval/lib"
15962 names_already_handled=
15963 names_next_round='lzma '
15964 while test -n "$names_next_round"; do
15965 names_this_round="$names_next_round"
15967 for name in $names_this_round; do
15969 for n in $names_already_handled; do
15970 if test "$n" = "$name"; then
15971 already_handled=yes
15975 if test -z "$already_handled"; then
15976 names_already_handled="$names_already_handled $name"
15977 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15978 eval value=\"\$HAVE_LIB$uppername\"
15979 if test -n "$value"; then
15980 if test "$value" = yes; then
15981 eval value=\"\$LIB$uppername\"
15982 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
15983 eval value=\"\$LTLIB$uppername\"
15984 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15993 if test $use_additional = yes; then
15994 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15995 found_dir="$additional_libdir"
15996 found_so="$additional_libdir/lib$name.$shlibext"
15997 if test -f "$additional_libdir/lib$name.la"; then
15998 found_la="$additional_libdir/lib$name.la"
16001 if test -f "$additional_libdir/lib$name.$libext"; then
16002 found_dir="$additional_libdir"
16003 found_a="$additional_libdir/lib$name.$libext"
16004 if test -f "$additional_libdir/lib$name.la"; then
16005 found_la="$additional_libdir/lib$name.la"
16010 if test "X$found_dir" = "X"; then
16011 for x in $LDFLAGS $LTLIBLZMA; do
16013 acl_save_prefix="$prefix"
16014 prefix="$acl_final_prefix"
16015 acl_save_exec_prefix="$exec_prefix"
16016 exec_prefix="$acl_final_exec_prefix"
16018 exec_prefix="$acl_save_exec_prefix"
16019 prefix="$acl_save_prefix"
16023 dir=`echo "X$x" | sed -e 's/^X-L//'`
16024 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16026 found_so="$dir/lib$name.$shlibext"
16027 if test -f "$dir/lib$name.la"; then
16028 found_la="$dir/lib$name.la"
16031 if test -f "$dir/lib$name.$libext"; then
16033 found_a="$dir/lib$name.$libext"
16034 if test -f "$dir/lib$name.la"; then
16035 found_la="$dir/lib$name.la"
16041 if test "X$found_dir" != "X"; then
16046 if test "X$found_dir" != "X"; then
16047 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
16048 if test "X$found_so" != "X"; then
16049 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16050 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
16053 for x in $ltrpathdirs; do
16054 if test "X$x" = "X$found_dir"; then
16059 if test -z "$haveit"; then
16060 ltrpathdirs="$ltrpathdirs $found_dir"
16062 if test "$hardcode_direct" = yes; then
16063 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
16065 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16066 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
16068 for x in $rpathdirs; do
16069 if test "X$x" = "X$found_dir"; then
16074 if test -z "$haveit"; then
16075 rpathdirs="$rpathdirs $found_dir"
16079 for x in $LDFLAGS $LIBLZMA; do
16081 acl_save_prefix="$prefix"
16082 prefix="$acl_final_prefix"
16083 acl_save_exec_prefix="$exec_prefix"
16084 exec_prefix="$acl_final_exec_prefix"
16086 exec_prefix="$acl_save_exec_prefix"
16087 prefix="$acl_save_prefix"
16089 if test "X$x" = "X-L$found_dir"; then
16094 if test -z "$haveit"; then
16095 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
16097 if test "$hardcode_minus_L" != no; then
16098 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
16100 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
16106 if test "X$found_a" != "X"; then
16107 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
16109 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
16112 additional_includedir=
16113 case "$found_dir" in
16115 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16116 additional_includedir="$basedir/include"
16119 if test "X$additional_includedir" != "X"; then
16120 if test "X$additional_includedir" != "X/usr/include"; then
16122 if test "X$additional_includedir" = "X/usr/local/include"; then
16123 if test -n "$GCC"; then
16125 linux*) haveit=yes;;
16129 if test -z "$haveit"; then
16130 for x in $CPPFLAGS $INCLZMA; do
16132 acl_save_prefix="$prefix"
16133 prefix="$acl_final_prefix"
16134 acl_save_exec_prefix="$exec_prefix"
16135 exec_prefix="$acl_final_exec_prefix"
16137 exec_prefix="$acl_save_exec_prefix"
16138 prefix="$acl_save_prefix"
16140 if test "X$x" = "X-I$additional_includedir"; then
16145 if test -z "$haveit"; then
16146 if test -d "$additional_includedir"; then
16147 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
16153 if test -n "$found_la"; then
16154 save_libdir="$libdir"
16155 case "$found_la" in
16156 */* | *\\*) . "$found_la" ;;
16157 *) . "./$found_la" ;;
16159 libdir="$save_libdir"
16160 for dep in $dependency_libs; do
16163 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16164 if test "X$additional_libdir" != "X/usr/lib"; then
16166 if test "X$additional_libdir" = "X/usr/local/lib"; then
16167 if test -n "$GCC"; then
16169 linux*) haveit=yes;;
16173 if test -z "$haveit"; then
16175 for x in $LDFLAGS $LIBLZMA; do
16177 acl_save_prefix="$prefix"
16178 prefix="$acl_final_prefix"
16179 acl_save_exec_prefix="$exec_prefix"
16180 exec_prefix="$acl_final_exec_prefix"
16182 exec_prefix="$acl_save_exec_prefix"
16183 prefix="$acl_save_prefix"
16185 if test "X$x" = "X-L$additional_libdir"; then
16190 if test -z "$haveit"; then
16191 if test -d "$additional_libdir"; then
16192 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16196 for x in $LDFLAGS $LTLIBLZMA; do
16198 acl_save_prefix="$prefix"
16199 prefix="$acl_final_prefix"
16200 acl_save_exec_prefix="$exec_prefix"
16201 exec_prefix="$acl_final_exec_prefix"
16203 exec_prefix="$acl_save_exec_prefix"
16204 prefix="$acl_save_prefix"
16206 if test "X$x" = "X-L$additional_libdir"; then
16211 if test -z "$haveit"; then
16212 if test -d "$additional_libdir"; then
16213 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16220 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16221 if test "$enable_rpath" != no; then
16223 for x in $rpathdirs; do
16224 if test "X$x" = "X$dir"; then
16229 if test -z "$haveit"; then
16230 rpathdirs="$rpathdirs $dir"
16233 for x in $ltrpathdirs; do
16234 if test "X$x" = "X$dir"; then
16239 if test -z "$haveit"; then
16240 ltrpathdirs="$ltrpathdirs $dir"
16245 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16248 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16251 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
16252 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16258 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
16259 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16265 if test "X$rpathdirs" != "X"; then
16266 if test -n "$hardcode_libdir_separator"; then
16268 for found_dir in $rpathdirs; do
16269 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16271 acl_save_libdir="$libdir"
16273 eval flag=\"$hardcode_libdir_flag_spec\"
16274 libdir="$acl_save_libdir"
16275 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
16277 for found_dir in $rpathdirs; do
16278 acl_save_libdir="$libdir"
16279 libdir="$found_dir"
16280 eval flag=\"$hardcode_libdir_flag_spec\"
16281 libdir="$acl_save_libdir"
16282 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
16286 if test "X$ltrpathdirs" != "X"; then
16287 for found_dir in $ltrpathdirs; do
16288 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16293 ac_save_CPPFLAGS="$CPPFLAGS"
16295 for element in $INCLZMA; do
16297 for x in $CPPFLAGS; do
16299 acl_save_prefix="$prefix"
16300 prefix="$acl_final_prefix"
16301 acl_save_exec_prefix="$exec_prefix"
16302 exec_prefix="$acl_final_exec_prefix"
16304 exec_prefix="$acl_save_exec_prefix"
16305 prefix="$acl_save_prefix"
16307 if test "X$x" = "X$element"; then
16312 if test -z "$haveit"; then
16313 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16319 $as_echo_n "checking for liblzma... " >&6; }
16320 if ${ac_cv_liblzma+:} false; then :
16321 $as_echo_n "(cached) " >&6
16324 ac_save_LIBS="$LIBS"
16325 LIBS="$LIBS $LIBLZMA"
16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h. */
16332 lzma_index_iter iter;
16333 lzma_index_iter_init (&iter, 0);
16334 lzma_mf_is_supported (LZMA_MF_HC3);
16339 if ac_fn_c_try_link "$LINENO"; then :
16344 rm -f core conftest.err conftest.$ac_objext \
16345 conftest$ac_exeext conftest.$ac_ext
16346 LIBS="$ac_save_LIBS"
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16350 $as_echo "$ac_cv_liblzma" >&6; }
16351 if test "$ac_cv_liblzma" = yes; then
16354 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16357 $as_echo_n "checking how to link with liblzma... " >&6; }
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16359 $as_echo "$LIBLZMA" >&6; }
16362 CPPFLAGS="$ac_save_CPPFLAGS"
16372 if test "$HAVE_LIBLZMA" != yes; then
16373 if test "$with_lzma" = yes; then
16374 as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
16380 LIBGUI="../libgui/src/libgui.a"
16381 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
16390 *-*-cygwin* | *-*-mingw* )
16399 if test "${enable_gdbtk}" = "yes"; then
16401 # Gdbtk must have an absolute path to srcdir in order to run
16402 # properly when not installed.
16405 GDBTK_SRC_DIR=`pwd`
16410 # Ok, lets find the tcl configuration
16411 # First, look for one uninstalled.
16412 # the alternative search directory is invoked by --with-tcl
16415 if test x"${no_tcl}" = x ; then
16416 # we reset no_tcl in case something fails here
16419 # Check whether --with-tcl was given.
16420 if test "${with_tcl+set}" = set; then :
16421 withval=$with_tcl; with_tclconfig=${withval}
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16425 $as_echo_n "checking for Tcl configuration... " >&6; }
16426 if ${ac_cv_c_tclconfig+:} false; then :
16427 $as_echo_n "(cached) " >&6
16431 # First check to see if --with-tcl was specified.
16433 *-*-cygwin*) platDir="win" ;;
16434 *) platDir="unix" ;;
16436 if test x"${with_tclconfig}" != x ; then
16437 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16438 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
16440 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16444 # then check for a private Tcl installation
16445 if test x"${ac_cv_c_tclconfig}" = x ; then
16448 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16449 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16450 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16452 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16453 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16454 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16456 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16457 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16458 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16459 if test -f "$i/$platDir/tclConfig.sh" ; then
16460 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16466 # on Darwin, check in Framework installation locations
16467 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
16468 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16469 `ls -d /Library/Frameworks 2>/dev/null` \
16470 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16471 `ls -d /System/Library/Frameworks 2>/dev/null` \
16473 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16474 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
16480 # check in a few common install locations
16481 if test x"${ac_cv_c_tclconfig}" = x ; then
16482 for i in `ls -d ${libdir} 2>/dev/null` \
16483 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16484 `ls -d ${prefix}/lib 2>/dev/null` \
16485 `ls -d /usr/local/lib 2>/dev/null` \
16486 `ls -d /usr/contrib/lib 2>/dev/null` \
16487 `ls -d /usr/lib 2>/dev/null` \
16489 if test -f "$i/tclConfig.sh" ; then
16490 ac_cv_c_tclconfig=`(cd $i; pwd)`
16496 # check in a few other private locations
16497 if test x"${ac_cv_c_tclconfig}" = x ; then
16500 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16501 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16502 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16503 if test -f "$i/$platDir/tclConfig.sh" ; then
16504 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16513 if test x"${ac_cv_c_tclconfig}" = x ; then
16514 TCL_BIN_DIR="# no Tcl configs found"
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16516 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16519 TCL_BIN_DIR=${ac_cv_c_tclconfig}
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16521 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16526 # If $no_tk is nonempty, then we can't do Tk, and there is no
16527 # point to doing Tcl.
16530 # Ok, lets find the tk configuration
16531 # First, look for one uninstalled.
16532 # the alternative search directory is invoked by --with-tk
16535 if test x"${no_tk}" = x ; then
16536 # we reset no_tk in case something fails here
16539 # Check whether --with-tk was given.
16540 if test "${with_tk+set}" = set; then :
16541 withval=$with_tk; with_tkconfig=${withval}
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16545 $as_echo_n "checking for Tk configuration... " >&6; }
16546 if ${ac_cv_c_tkconfig+:} false; then :
16547 $as_echo_n "(cached) " >&6
16551 # First check to see if --with-tkconfig was specified.
16552 if test x"${with_tkconfig}" != x ; then
16553 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16554 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
16556 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16560 # then check for a private Tk library
16562 *-*-cygwin*) platDir="win" ;;
16563 *) platDir="unix" ;;
16565 if test x"${ac_cv_c_tkconfig}" = x ; then
16568 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16569 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16570 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16572 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16573 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16574 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16576 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16577 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16578 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16579 if test -f "$i/$platDir/tkConfig.sh" ; then
16580 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16586 # on Darwin, check in Framework installation locations
16587 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
16588 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16589 `ls -d /Library/Frameworks 2>/dev/null` \
16590 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16591 `ls -d /System/Library/Frameworks 2>/dev/null` \
16593 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16594 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
16600 # check in a few common install locations
16601 if test x"${ac_cv_c_tkconfig}" = x ; then
16602 for i in `ls -d ${libdir} 2>/dev/null` \
16603 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16604 `ls -d ${prefix}/lib 2>/dev/null` \
16605 `ls -d /usr/local/lib 2>/dev/null` \
16606 `ls -d /usr/contrib/lib 2>/dev/null` \
16607 `ls -d /usr/lib 2>/dev/null` \
16609 if test -f "$i/tkConfig.sh" ; then
16610 ac_cv_c_tkconfig=`(cd $i; pwd)`
16615 # check in a few other private locations
16616 if test x"${ac_cv_c_tkconfig}" = x ; then
16619 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16620 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16621 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16622 if test -f "$i/$platDir/tkConfig.sh" ; then
16623 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16632 if test x"${ac_cv_c_tkconfig}" = x ; then
16633 TK_BIN_DIR="# no Tk configs found"
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16635 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16638 TK_BIN_DIR=${ac_cv_c_tkconfig}
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16640 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16645 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16648 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16650 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16652 $as_echo "loading" >&6; }
16653 . ${TCL_BIN_DIR}/tclConfig.sh
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16656 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16659 # eval is required to do the TCL_DBGX substitution
16660 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16661 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16663 # If the TCL_BIN_DIR is the build directory (not the install directory),
16664 # then set the common variable name to the value of the build variables.
16665 # For example, the variable TCL_LIB_SPEC will be set to the value
16666 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16667 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16668 # installed and uninstalled version of Tcl.
16669 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16670 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
16671 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
16672 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
16673 elif test "`uname -s`" = "Darwin"; then
16674 # If Tcl was built as a framework, attempt to use the libraries
16675 # from the framework at the given location so that linking works
16676 # against Tcl.framework installed in an arbitrary location.
16677 case ${TCL_DEFS} in
16679 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16680 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
16681 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16682 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16683 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16688 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16689 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16690 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16696 # eval is required to do the TCL_DBGX substitution
16697 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16698 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16699 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16700 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16716 # Check for in-tree tcl
16723 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16727 # Find Tcl private headers
16728 if test x"${intree}" = xno; then
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16731 $as_echo_n "checking for Tcl private headers... " >&6; }
16733 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16734 if test -f ${dir}/tclInt.h ; then
16738 if test x"${private_dir}" = x; then
16739 as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
16741 TCL_PRIVATE_INCLUDE="-I${private_dir}"
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16743 $as_echo "${private_dir}" >&6; }
16746 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16747 TCL_LIBRARY="${TCL_LIB_SPEC}"
16750 # If building tcl in the same src tree, private headers
16751 # are not needed, but we need to be sure to use the right
16753 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
16754 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
16755 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16763 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16765 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16767 $as_echo "loading" >&6; }
16768 . ${TK_BIN_DIR}/tkConfig.sh
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16771 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16774 # eval is required to do the TK_DBGX substitution
16775 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16776 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16778 # If the TK_BIN_DIR is the build directory (not the install directory),
16779 # then set the common variable name to the value of the build variables.
16780 # For example, the variable TK_LIB_SPEC will be set to the value
16781 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16782 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16783 # installed and uninstalled version of Tcl.
16784 if test -f "${TK_BIN_DIR}/Makefile" ; then
16785 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
16786 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
16787 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
16788 elif test "`uname -s`" = "Darwin"; then
16789 # If Tk was built as a framework, attempt to use the libraries
16790 # from the framework at the given location so that linking works
16791 # against Tk.framework installed in an arbitrary location.
16794 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16795 for i in "`cd ${TK_BIN_DIR}; pwd`" \
16796 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16797 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16798 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16803 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16804 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16805 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16811 # eval is required to do the TK_DBGX substitution
16812 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16813 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16814 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16815 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16830 # Check for in-tree Tk
16832 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16836 # Find Tk private headers
16837 if test x"${intree}" = xno; then
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16840 $as_echo_n "checking for Tk private headers... " >&6; }
16842 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16843 if test -f ${dir}/tkInt.h; then
16847 if test x"${private_dir}" = x; then
16848 as_fn_error $? "could not find Tk private headers" "$LINENO" 5
16850 TK_PRIVATE_INCLUDE="-I${private_dir}"
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16852 $as_echo "${private_dir}" >&6; }
16855 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16856 TK_LIBRARY=${TK_LIB_SPEC}
16859 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
16860 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
16861 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
16868 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16870 # Include some libraries that Tcl and Tk want.
16871 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16872 # Yes, the ordering seems wrong here. But it isn't.
16873 # TK_LIBS is the list of libraries that need to be linked
16874 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16875 # were in LIBS then any link tests after this point would
16876 # try to include things like `$(LIBGUI)', which wouldn't work.
16877 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
16879 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16880 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16881 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16882 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
16883 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
16884 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
16885 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
16887 if test x$gdb_cv_os_cygwin = xyes; then
16888 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16889 WIN32LDAPP="-Wl,--subsystem,console"
16890 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
16893 subdirs="$subdirs gdbtk"
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16906 $as_echo_n "checking for X... " >&6; }
16909 # Check whether --with-x was given.
16910 if test "${with_x+set}" = set; then :
16914 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16915 if test "x$with_x" = xno; then
16916 # The user explicitly disabled X.
16919 case $x_includes,$x_libraries in #(
16920 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
16921 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
16922 $as_echo_n "(cached) " >&6
16924 # One or both of the vars are not set, and there is no cached value.
16925 ac_x_includes=no ac_x_libraries=no
16926 rm -f -r conftest.dir
16927 if mkdir conftest.dir; then
16929 cat >Imakefile <<'_ACEOF'
16931 @echo incroot='${INCROOT}'
16933 @echo usrlibdir='${USRLIBDIR}'
16935 @echo libdir='${LIBDIR}'
16937 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
16938 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16939 for ac_var in incroot usrlibdir libdir; do
16940 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16942 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16943 for ac_extension in a so sl dylib la dll; do
16944 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16945 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16946 ac_im_usrlibdir=$ac_im_libdir; break
16949 # Screen out bogus values from the imake configuration. They are
16950 # bogus both because they are the default anyway, and because
16951 # using them would break gcc on systems where it needs fixed includes.
16952 case $ac_im_incroot in
16953 /usr/include) ac_x_includes= ;;
16954 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
16956 case $ac_im_usrlibdir in
16957 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
16958 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
16962 rm -f -r conftest.dir
16965 # Standard set of common directories for X headers.
16966 # Check X11 before X11Rn because it is often a symlink to the current release.
16980 /usr/local/X11/include
16981 /usr/local/X11R7/include
16982 /usr/local/X11R6/include
16983 /usr/local/X11R5/include
16984 /usr/local/X11R4/include
16986 /usr/local/include/X11
16987 /usr/local/include/X11R7
16988 /usr/local/include/X11R6
16989 /usr/local/include/X11R5
16990 /usr/local/include/X11R4
16994 /usr/XFree86/include/X11
16998 /usr/unsupported/include
16999 /usr/athena/include
17000 /usr/local/x11r5/include
17001 /usr/lpp/Xamples/include
17003 /usr/openwin/include
17004 /usr/openwin/share/include'
17006 if test "$ac_x_includes" = no; then
17007 # Guess where to find include files, by looking for Xlib.h.
17008 # First, try using that file with no special directory specified.
17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h. */
17011 #include <X11/Xlib.h>
17013 if ac_fn_c_try_cpp "$LINENO"; then :
17014 # We can compile using X headers with no special include directory.
17017 for ac_dir in $ac_x_header_dirs; do
17018 if test -r "$ac_dir/X11/Xlib.h"; then
17019 ac_x_includes=$ac_dir
17024 rm -f conftest.err conftest.i conftest.$ac_ext
17025 fi # $ac_x_includes = no
17027 if test "$ac_x_libraries" = no; then
17028 # Check for the libraries.
17029 # See if we find them without any special options.
17030 # Don't add to $LIBS permanently.
17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h. */
17035 #include <X11/Xlib.h>
17044 if ac_fn_c_try_link "$LINENO"; then :
17046 # We can link X programs with no special library path.
17050 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17052 # Don't even attempt the hair of trying to link an X program!
17053 for ac_extension in a so sl dylib la dll; do
17054 if test -r "$ac_dir/libX11.$ac_extension"; then
17055 ac_x_libraries=$ac_dir
17061 rm -f core conftest.err conftest.$ac_objext \
17062 conftest$ac_exeext conftest.$ac_ext
17063 fi # $ac_x_libraries = no
17065 case $ac_x_includes,$ac_x_libraries in #(
17066 no,* | *,no | *\'*)
17067 # Didn't find X, or a directory has "'" in its name.
17068 ac_cv_have_x="have_x=no";; #(
17070 # Record where we found X for the cache.
17071 ac_cv_have_x="have_x=yes\
17072 ac_x_includes='$ac_x_includes'\
17073 ac_x_libraries='$ac_x_libraries'"
17079 eval "$ac_cv_have_x"
17082 if test "$have_x" != yes; then
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17084 $as_echo "$have_x" >&6; }
17087 # If each of the values was on the command line, it overrides each guess.
17088 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17089 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17090 # Update the cache value to reflect the command line values.
17091 ac_cv_have_x="have_x=yes\
17092 ac_x_includes='$x_includes'\
17093 ac_x_libraries='$x_libraries'"
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17095 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17099 # Unlike the sim directory, whether a simulator is linked is controlled by
17100 # presence of a gdb_sim definition in the target configure.tgt entry.
17101 # This code just checks for a few cases where we'd like to ignore those
17102 # definitions, even when they're present in the '.mt' file. These cases
17103 # are when --disable-sim is specified, or if the simulator directory is
17104 # not part of the source tree.
17106 # Check whether --enable-sim was given.
17107 if test "${enable_sim+set}" = set; then :
17108 enableval=$enable_sim; echo "enable_sim = $enable_sim";
17109 echo "enableval = ${enableval}";
17110 case "${enableval}" in
17111 yes) ignore_sim=false ;;
17112 no) ignore_sim=true ;;
17113 *) ignore_sim=false ;;
17120 if test ! -d "${srcdir}/../sim"; then
17126 if test "${ignore_sim}" = "false"; then
17127 if test x"${gdb_sim}" != x ; then
17129 SIM_OBS="remote-sim.o"
17131 $as_echo "#define WITH_SIM 1" >>confdefs.h
17134 # Some tdep code should only be compiled in when the ppc sim is
17135 # built. PR sim/13418.
17139 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
17159 # List of host floatformats.
17161 cat >>confdefs.h <<_ACEOF
17162 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17166 cat >>confdefs.h <<_ACEOF
17167 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17171 cat >>confdefs.h <<_ACEOF
17172 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17176 # target_subdir is used by the testsuite to find the target libraries.
17178 if test "${host}" != "${target}"; then
17179 target_subdir="${target_alias}/"
17183 # Import nat definitions.
17184 nat_makefile_frag=/dev/null
17185 if test "${gdb_native}" = "yes"; then
17186 . ${srcdir}/configure.nat
17187 nativefile=$NAT_FILE
17200 if test x"${gdb_osabi}" != x ; then
17202 cat >>confdefs.h <<_ACEOF
17203 #define GDB_OSABI_DEFAULT $gdb_osabi
17208 # Check whether --enable-gdbserver was given.
17209 if test "${enable_gdbserver+set}" = set; then :
17210 enableval=$enable_gdbserver; case "${enableval}" in
17212 *) as_fn_error $? "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17215 enable_gdbserver=auto
17219 # We only build gdbserver automatically in a native configuration, and
17220 # only if the user did not explicitly disable its build.
17221 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17223 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17224 if test "x$build_gdbserver" = xyes; then
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17226 $as_echo "yes" >&6; }
17227 subdirs="$subdirs gdbserver"
17229 gdbserver_build_enabled=yes
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17232 $as_echo "no" >&6; }
17236 # If the user explicitly request the gdbserver to be built, verify that
17237 # we were in fact able to enable it.
17238 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17239 as_fn_error $? "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17242 # Check for babeltrace and babeltrace-ctf
17244 # Check whether --with-babeltrace was given.
17245 if test "${with_babeltrace+set}" = set; then :
17246 withval=$with_babeltrace;
17248 with_babeltrace=auto
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17252 $as_echo_n "checking whether to use babeltrace... " >&6; }
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17254 $as_echo "$with_babeltrace" >&6; }
17256 if test "x$with_babeltrace" = "xno"; then
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17258 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17260 # Append -Werror to CFLAGS so that configure can catch the warning
17261 # "assignment from incompatible pointer type", which is related to
17262 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17263 # in GDB, while babeltrace 1.0.3 is broken.
17264 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17265 # safe to save and restore CFLAGS here.
17266 saved_CFLAGS=$CFLAGS
17267 CFLAGS="$CFLAGS -Werror"
17278 acl_save_prefix="$prefix"
17279 prefix="$acl_final_prefix"
17280 acl_save_exec_prefix="$exec_prefix"
17281 exec_prefix="$acl_final_exec_prefix"
17283 eval additional_includedir=\"$includedir\"
17284 eval additional_libdir=\"$libdir\"
17286 exec_prefix="$acl_save_exec_prefix"
17287 prefix="$acl_save_prefix"
17290 # Check whether --with-libbabeltrace-prefix was given.
17291 if test "${with_libbabeltrace_prefix+set}" = set; then :
17292 withval=$with_libbabeltrace_prefix;
17293 if test "X$withval" = "Xno"; then
17296 if test "X$withval" = "X"; then
17298 acl_save_prefix="$prefix"
17299 prefix="$acl_final_prefix"
17300 acl_save_exec_prefix="$exec_prefix"
17301 exec_prefix="$acl_final_exec_prefix"
17303 eval additional_includedir=\"$includedir\"
17304 eval additional_libdir=\"$libdir\"
17306 exec_prefix="$acl_save_exec_prefix"
17307 prefix="$acl_save_prefix"
17310 additional_includedir="$withval/include"
17311 additional_libdir="$withval/lib"
17322 names_already_handled=
17323 names_next_round='babeltrace babeltrace-ctf'
17324 while test -n "$names_next_round"; do
17325 names_this_round="$names_next_round"
17327 for name in $names_this_round; do
17329 for n in $names_already_handled; do
17330 if test "$n" = "$name"; then
17331 already_handled=yes
17335 if test -z "$already_handled"; then
17336 names_already_handled="$names_already_handled $name"
17337 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17338 eval value=\"\$HAVE_LIB$uppername\"
17339 if test -n "$value"; then
17340 if test "$value" = yes; then
17341 eval value=\"\$LIB$uppername\"
17342 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17343 eval value=\"\$LTLIB$uppername\"
17344 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17353 if test $use_additional = yes; then
17354 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17355 found_dir="$additional_libdir"
17356 found_so="$additional_libdir/lib$name.$shlibext"
17357 if test -f "$additional_libdir/lib$name.la"; then
17358 found_la="$additional_libdir/lib$name.la"
17361 if test -f "$additional_libdir/lib$name.$libext"; then
17362 found_dir="$additional_libdir"
17363 found_a="$additional_libdir/lib$name.$libext"
17364 if test -f "$additional_libdir/lib$name.la"; then
17365 found_la="$additional_libdir/lib$name.la"
17370 if test "X$found_dir" = "X"; then
17371 for x in $LDFLAGS $LTLIBBABELTRACE; do
17373 acl_save_prefix="$prefix"
17374 prefix="$acl_final_prefix"
17375 acl_save_exec_prefix="$exec_prefix"
17376 exec_prefix="$acl_final_exec_prefix"
17378 exec_prefix="$acl_save_exec_prefix"
17379 prefix="$acl_save_prefix"
17383 dir=`echo "X$x" | sed -e 's/^X-L//'`
17384 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17386 found_so="$dir/lib$name.$shlibext"
17387 if test -f "$dir/lib$name.la"; then
17388 found_la="$dir/lib$name.la"
17391 if test -f "$dir/lib$name.$libext"; then
17393 found_a="$dir/lib$name.$libext"
17394 if test -f "$dir/lib$name.la"; then
17395 found_la="$dir/lib$name.la"
17401 if test "X$found_dir" != "X"; then
17406 if test "X$found_dir" != "X"; then
17407 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17408 if test "X$found_so" != "X"; then
17409 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17410 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17413 for x in $ltrpathdirs; do
17414 if test "X$x" = "X$found_dir"; then
17419 if test -z "$haveit"; then
17420 ltrpathdirs="$ltrpathdirs $found_dir"
17422 if test "$hardcode_direct" = yes; then
17423 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17425 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17426 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17428 for x in $rpathdirs; do
17429 if test "X$x" = "X$found_dir"; then
17434 if test -z "$haveit"; then
17435 rpathdirs="$rpathdirs $found_dir"
17439 for x in $LDFLAGS $LIBBABELTRACE; do
17441 acl_save_prefix="$prefix"
17442 prefix="$acl_final_prefix"
17443 acl_save_exec_prefix="$exec_prefix"
17444 exec_prefix="$acl_final_exec_prefix"
17446 exec_prefix="$acl_save_exec_prefix"
17447 prefix="$acl_save_prefix"
17449 if test "X$x" = "X-L$found_dir"; then
17454 if test -z "$haveit"; then
17455 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17457 if test "$hardcode_minus_L" != no; then
17458 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17460 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17466 if test "X$found_a" != "X"; then
17467 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17469 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17472 additional_includedir=
17473 case "$found_dir" in
17475 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17476 additional_includedir="$basedir/include"
17479 if test "X$additional_includedir" != "X"; then
17480 if test "X$additional_includedir" != "X/usr/include"; then
17482 if test "X$additional_includedir" = "X/usr/local/include"; then
17483 if test -n "$GCC"; then
17485 linux*) haveit=yes;;
17489 if test -z "$haveit"; then
17490 for x in $CPPFLAGS $INCBABELTRACE; do
17492 acl_save_prefix="$prefix"
17493 prefix="$acl_final_prefix"
17494 acl_save_exec_prefix="$exec_prefix"
17495 exec_prefix="$acl_final_exec_prefix"
17497 exec_prefix="$acl_save_exec_prefix"
17498 prefix="$acl_save_prefix"
17500 if test "X$x" = "X-I$additional_includedir"; then
17505 if test -z "$haveit"; then
17506 if test -d "$additional_includedir"; then
17507 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17513 if test -n "$found_la"; then
17514 save_libdir="$libdir"
17515 case "$found_la" in
17516 */* | *\\*) . "$found_la" ;;
17517 *) . "./$found_la" ;;
17519 libdir="$save_libdir"
17520 for dep in $dependency_libs; do
17523 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17524 if test "X$additional_libdir" != "X/usr/lib"; then
17526 if test "X$additional_libdir" = "X/usr/local/lib"; then
17527 if test -n "$GCC"; then
17529 linux*) haveit=yes;;
17533 if test -z "$haveit"; then
17535 for x in $LDFLAGS $LIBBABELTRACE; do
17537 acl_save_prefix="$prefix"
17538 prefix="$acl_final_prefix"
17539 acl_save_exec_prefix="$exec_prefix"
17540 exec_prefix="$acl_final_exec_prefix"
17542 exec_prefix="$acl_save_exec_prefix"
17543 prefix="$acl_save_prefix"
17545 if test "X$x" = "X-L$additional_libdir"; then
17550 if test -z "$haveit"; then
17551 if test -d "$additional_libdir"; then
17552 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17556 for x in $LDFLAGS $LTLIBBABELTRACE; do
17558 acl_save_prefix="$prefix"
17559 prefix="$acl_final_prefix"
17560 acl_save_exec_prefix="$exec_prefix"
17561 exec_prefix="$acl_final_exec_prefix"
17563 exec_prefix="$acl_save_exec_prefix"
17564 prefix="$acl_save_prefix"
17566 if test "X$x" = "X-L$additional_libdir"; then
17571 if test -z "$haveit"; then
17572 if test -d "$additional_libdir"; then
17573 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17580 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17581 if test "$enable_rpath" != no; then
17583 for x in $rpathdirs; do
17584 if test "X$x" = "X$dir"; then
17589 if test -z "$haveit"; then
17590 rpathdirs="$rpathdirs $dir"
17593 for x in $ltrpathdirs; do
17594 if test "X$x" = "X$dir"; then
17599 if test -z "$haveit"; then
17600 ltrpathdirs="$ltrpathdirs $dir"
17605 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17608 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17611 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17612 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17618 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17619 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17625 if test "X$rpathdirs" != "X"; then
17626 if test -n "$hardcode_libdir_separator"; then
17628 for found_dir in $rpathdirs; do
17629 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17631 acl_save_libdir="$libdir"
17633 eval flag=\"$hardcode_libdir_flag_spec\"
17634 libdir="$acl_save_libdir"
17635 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17637 for found_dir in $rpathdirs; do
17638 acl_save_libdir="$libdir"
17639 libdir="$found_dir"
17640 eval flag=\"$hardcode_libdir_flag_spec\"
17641 libdir="$acl_save_libdir"
17642 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17646 if test "X$ltrpathdirs" != "X"; then
17647 for found_dir in $ltrpathdirs; do
17648 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17653 ac_save_CPPFLAGS="$CPPFLAGS"
17655 for element in $INCBABELTRACE; do
17657 for x in $CPPFLAGS; do
17659 acl_save_prefix="$prefix"
17660 prefix="$acl_final_prefix"
17661 acl_save_exec_prefix="$exec_prefix"
17662 exec_prefix="$acl_final_exec_prefix"
17664 exec_prefix="$acl_save_exec_prefix"
17665 prefix="$acl_save_prefix"
17667 if test "X$x" = "X$element"; then
17672 if test -z "$haveit"; then
17673 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17679 $as_echo_n "checking for libbabeltrace... " >&6; }
17680 if ${ac_cv_libbabeltrace+:} false; then :
17681 $as_echo_n "(cached) " >&6
17684 ac_save_LIBS="$LIBS"
17685 LIBS="$LIBS $LIBBABELTRACE"
17686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17687 /* end confdefs.h. */
17688 #include <babeltrace/babeltrace.h>
17689 #include <babeltrace/ctf/events.h>
17690 #include <babeltrace/ctf/iterator.h>
17694 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17695 struct bt_ctf_event *event = NULL;
17696 const struct bt_definition *scope;
17698 pos->type = BT_SEEK_BEGIN;
17699 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17700 scope = bt_ctf_get_top_level_scope (event,
17701 BT_STREAM_EVENT_HEADER);
17702 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17708 if ac_fn_c_try_link "$LINENO"; then :
17709 ac_cv_libbabeltrace=yes
17711 ac_cv_libbabeltrace=no
17713 rm -f core conftest.err conftest.$ac_objext \
17714 conftest$ac_exeext conftest.$ac_ext
17715 LIBS="$ac_save_LIBS"
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17719 $as_echo "$ac_cv_libbabeltrace" >&6; }
17720 if test "$ac_cv_libbabeltrace" = yes; then
17721 HAVE_LIBBABELTRACE=yes
17723 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17726 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17728 $as_echo "$LIBBABELTRACE" >&6; }
17730 HAVE_LIBBABELTRACE=no
17731 CPPFLAGS="$ac_save_CPPFLAGS"
17741 CFLAGS=$saved_CFLAGS
17743 if test "$HAVE_LIBBABELTRACE" != yes; then
17744 if test "$with_babeltrace" = yes; then
17745 as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17748 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17753 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17760 if test "${nativefile}" != ""; then
17761 case "${nativefile}" in
17762 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
17763 * ) GDB_NM_FILE="${nativefile}"
17765 files="${files} ${GDB_NM_FILE}"
17766 links="${links} nm.h"
17768 cat >>confdefs.h <<_ACEOF
17769 #define GDB_NM_FILE "${GDB_NM_FILE}"
17775 for ac_prog in xsltproc
17777 # Extract the first word of "$ac_prog", so it can be a program name with args.
17778 set dummy $ac_prog; ac_word=$2
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17780 $as_echo_n "checking for $ac_word... " >&6; }
17781 if ${ac_cv_path_XSLTPROC+:} false; then :
17782 $as_echo_n "(cached) " >&6
17786 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
17789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17790 for as_dir in $PATH
17793 test -z "$as_dir" && as_dir=.
17794 for ac_exec_ext in '' $ac_executable_extensions; do
17795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17796 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
17797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17807 XSLTPROC=$ac_cv_path_XSLTPROC
17808 if test -n "$XSLTPROC"; then
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17810 $as_echo "$XSLTPROC" >&6; }
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17813 $as_echo "no" >&6; }
17817 test -n "$XSLTPROC" && break
17819 test -n "$XSLTPROC" || XSLTPROC="missing"
17821 if test "x$USE_MAINTAINER_MODE" = xyes; then
17822 if test "${XSLTPROC}" = missing; then
17823 as_fn_error $? "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17828 ac_sources="$files"
17830 while test -n "$ac_sources"; do
17831 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17832 set $ac_sources; ac_source=$1; shift; ac_sources=$*
17833 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
17835 ac_config_links="$ac_config_links $ac_config_links_1"
17841 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17845 # Check whether we will enable the inclusion of unit tests when
17848 # The default value of this option changes depending whether we're on
17849 # development mode (in which case it's "true") or not (in which case
17851 # Check whether --enable-unit-tests was given.
17852 if test "${enable_unit_tests+set}" = set; then :
17853 enableval=$enable_unit_tests; case "${enableval}" in
17854 yes) enable_unittests=true ;;
17855 no) enable_unittests=false ;;
17856 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
17859 enable_unittests=$development
17863 if $enable_unittests; then
17865 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17868 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) common/selftest.o selftest-arch.o"
17869 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
17875 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17876 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
17877 if test "x$GDB_TRANSFORM_NAME" = x; then
17878 GDB_TRANSFORM_NAME=gdb
17883 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17884 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
17885 if test "x$GCORE_TRANSFORM_NAME" = x; then
17886 GCORE_TRANSFORM_NAME=gcore
17890 ac_config_files="$ac_config_files gcore"
17892 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
17895 cat >confcache <<\_ACEOF
17896 # This file is a shell script that caches the results of configure
17897 # tests run on this system so they can be shared between configure
17898 # scripts and configure runs, see configure's option --config-cache.
17899 # It is not useful on other systems. If it contains results you don't
17900 # want to keep, you may remove or edit it.
17902 # config.status only pays attention to the cache file if you give it
17903 # the --recheck option to rerun configure.
17905 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17906 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17907 # following values.
17911 # The following way of writing the cache mishandles newlines in values,
17912 # but we know of no workaround that is simple, portable, and efficient.
17913 # So, we kill variables containing newlines.
17914 # Ultrix sh set writes to stderr and can't be redirected directly,
17915 # and sets the high bit in the cache file unless we assign to the vars.
17917 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17918 eval ac_val=\$$ac_var
17922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17926 _ | IFS | as_nl) ;; #(
17927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17928 *) { eval $ac_var=; unset $ac_var;} ;;
17934 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17935 *${as_nl}ac_space=\ *)
17936 # `set' does not quote correctly, so add quotes: double-quote
17937 # substitution turns \\\\ into \\, and sed turns \\ into \.
17940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17943 # `set' quotes correctly as required by POSIX, so do not add quotes.
17944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17955 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17957 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17958 if test -w "$cache_file"; then
17959 if test "x$cache_file" != "x/dev/null"; then
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17961 $as_echo "$as_me: updating cache $cache_file" >&6;}
17962 if test ! -f "$cache_file" || test -h "$cache_file"; then
17963 cat confcache >"$cache_file"
17965 case $cache_file in #(
17967 mv -f confcache "$cache_file"$$ &&
17968 mv -f "$cache_file"$$ "$cache_file" ;; #(
17970 mv -f confcache "$cache_file" ;;
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17976 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17981 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17982 # Let make expand exec_prefix.
17983 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17985 DEFS=-DHAVE_CONFIG_H
17990 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17991 # 1. Remove the extension, and $U if already installed.
17992 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17993 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17994 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17995 # will be set to the directory where LIBOBJS objects are built.
17996 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17997 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17999 LIBOBJS=$ac_libobjs
18001 LTLIBOBJS=$ac_ltlibobjs
18004 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18005 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18008 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
18009 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
18010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18012 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
18013 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
18014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18018 : "${CONFIG_STATUS=./config.status}"
18020 ac_clean_files_save=$ac_clean_files
18021 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18023 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18025 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18027 # Generated by $as_me.
18028 # Run this file to recreate the current configuration.
18029 # Compiler output produced by configure, useful for debugging
18030 # configure, is in config.log if it exists.
18033 ac_cs_recheck=false
18036 SHELL=\${CONFIG_SHELL-$SHELL}
18039 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18040 ## -------------------- ##
18041 ## M4sh Initialization. ##
18042 ## -------------------- ##
18044 # Be more Bourne compatible
18045 DUALCASE=1; export DUALCASE # for MKS sh
18046 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18049 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18050 # is contrary to our usage. Disable this feature.
18051 alias -g '${1+"$@"}'='"$@"'
18052 setopt NO_GLOB_SUBST
18054 case `(set -o) 2>/dev/null` in #(
18066 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18067 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18070 # Prefer a ksh shell builtin over an external printf program on Solaris,
18071 # but without wasting forks for bash or zsh.
18072 if test -z "$BASH_VERSION$ZSH_VERSION" \
18073 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18074 as_echo='print -r --'
18075 as_echo_n='print -rn --'
18076 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18077 as_echo='printf %s\n'
18078 as_echo_n='printf %s'
18080 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18081 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18082 as_echo_n='/usr/ucb/echo -n'
18084 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18085 as_echo_n_body='eval
18089 expr "X$arg" : "X\\(.*\\)$as_nl";
18090 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18092 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18094 export as_echo_n_body
18095 as_echo_n='sh -c $as_echo_n_body as_echo'
18097 export as_echo_body
18098 as_echo='sh -c $as_echo_body as_echo'
18101 # The user is always right.
18102 if test "${PATH_SEPARATOR+set}" != set; then
18104 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18105 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18112 # We need space, tab and new line, in precisely that order. Quoting is
18113 # there to prevent editors from complaining about space-tab.
18114 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18115 # splitting by setting IFS to empty value.)
18118 # Find who we are. Look in the path if we contain no directory separator.
18121 *[\\/]* ) as_myself=$0 ;;
18122 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18123 for as_dir in $PATH
18126 test -z "$as_dir" && as_dir=.
18127 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18133 # We did not find ourselves, most probably we were run as `sh COMMAND'
18134 # in which case we are not to be found in the path.
18135 if test "x$as_myself" = x; then
18138 if test ! -f "$as_myself"; then
18139 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18143 # Unset variables that we do not need and which cause bugs (e.g. in
18144 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18145 # suppresses any "Segmentation fault" message there. '((' could
18146 # trigger a bug in pdksh 5.2.14.
18147 for as_var in BASH_ENV ENV MAIL MAILPATH
18148 do eval test x\${$as_var+set} = xset \
18149 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18162 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18165 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18166 # ----------------------------------------
18167 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18168 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18169 # script with STATUS, using 1 if that was 0.
18172 as_status=$1; test $as_status -eq 0 && as_status=1
18174 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18175 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18177 $as_echo "$as_me: error: $2" >&2
18178 as_fn_exit $as_status
18182 # as_fn_set_status STATUS
18183 # -----------------------
18184 # Set $? to STATUS, without forking.
18185 as_fn_set_status ()
18188 } # as_fn_set_status
18190 # as_fn_exit STATUS
18191 # -----------------
18192 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18196 as_fn_set_status $1
18202 # Portably unset VAR.
18205 { eval $1=; unset $1;}
18207 as_unset=as_fn_unset
18208 # as_fn_append VAR VALUE
18209 # ----------------------
18210 # Append the text in VALUE to the end of the definition contained in VAR. Take
18211 # advantage of any shell optimizations that allow amortized linear growth over
18212 # repeated appends, instead of the typical quadratic growth present in naive
18214 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18215 eval 'as_fn_append ()
18226 # as_fn_arith ARG...
18227 # ------------------
18228 # Perform arithmetic evaluation on the ARGs, and store the result in the
18229 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18230 # must be portable across $(()) and expr.
18231 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18232 eval 'as_fn_arith ()
18239 as_val=`expr "$@" || test $? -eq 1`
18244 if expr a : '\(a\)' >/dev/null 2>&1 &&
18245 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18251 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18252 as_basename=basename
18257 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18263 as_me=`$as_basename -- "$0" ||
18264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18265 X"$0" : 'X\(//\)$' \| \
18266 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18268 sed '/^.*\/\([^/][^/]*\)\/*$/{
18282 # Avoid depending upon Character Ranges.
18283 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18284 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18285 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18286 as_cr_digits='0123456789'
18287 as_cr_alnum=$as_cr_Letters$as_cr_digits
18289 ECHO_C= ECHO_N= ECHO_T=
18290 case `echo -n x` in #(((((
18292 case `echo 'xy\c'` in
18293 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18295 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18302 rm -f conf$$ conf$$.exe conf$$.file
18303 if test -d conf$$.dir; then
18304 rm -f conf$$.dir/conf$$.file
18307 mkdir conf$$.dir 2>/dev/null
18309 if (echo >conf$$.file) 2>/dev/null; then
18310 if ln -s conf$$.file conf$$ 2>/dev/null; then
18312 # ... but there are two gotchas:
18313 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18314 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18315 # In both cases, we have to default to `cp -pR'.
18316 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18318 elif ln conf$$.file conf$$ 2>/dev/null; then
18326 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18327 rmdir conf$$.dir 2>/dev/null
18332 # Create "$as_dir" as a directory, including parents if necessary.
18337 -*) as_dir=./$as_dir;;
18339 test -d "$as_dir" || eval $as_mkdir_p || {
18343 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18344 *) as_qdir=$as_dir;;
18346 as_dirs="'$as_qdir' $as_dirs"
18347 as_dir=`$as_dirname -- "$as_dir" ||
18348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18349 X"$as_dir" : 'X\(//\)[^/]' \| \
18350 X"$as_dir" : 'X\(//\)$' \| \
18351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18352 $as_echo X"$as_dir" |
18353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18357 /^X\(\/\/\)[^/].*/{
18370 test -d "$as_dir" && break
18372 test -z "$as_dirs" || eval "mkdir $as_dirs"
18373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18377 if mkdir -p . 2>/dev/null; then
18378 as_mkdir_p='mkdir -p "$as_dir"'
18380 test -d ./-p && rmdir ./-p
18385 # as_fn_executable_p FILE
18386 # -----------------------
18387 # Test if FILE is an executable regular file.
18388 as_fn_executable_p ()
18390 test -f "$1" && test -x "$1"
18391 } # as_fn_executable_p
18392 as_test_x='test -x'
18393 as_executable_p=as_fn_executable_p
18395 # Sed expression to map a string onto a valid CPP name.
18396 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18398 # Sed expression to map a string onto a valid variable name.
18399 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18403 ## ----------------------------------- ##
18404 ## Main body of $CONFIG_STATUS script. ##
18405 ## ----------------------------------- ##
18407 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18410 # Save the log message, to keep $0 and so on meaningful, and to
18411 # report actual input values of CONFIG_FILES etc. instead of their
18412 # values after options handling.
18414 This file was extended by $as_me, which was
18415 generated by GNU Autoconf 2.69. Invocation command line was
18417 CONFIG_FILES = $CONFIG_FILES
18418 CONFIG_HEADERS = $CONFIG_HEADERS
18419 CONFIG_LINKS = $CONFIG_LINKS
18420 CONFIG_COMMANDS = $CONFIG_COMMANDS
18423 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18428 case $ac_config_files in *"
18429 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18432 case $ac_config_headers in *"
18433 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18438 # Files that config.status was made for.
18439 config_files="$ac_config_files"
18440 config_headers="$ac_config_headers"
18441 config_links="$ac_config_links"
18442 config_commands="$ac_config_commands"
18446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18448 \`$as_me' instantiates files and other configuration actions
18449 from templates according to the current configuration. Unless the files
18450 and actions are specified as TAGs, all are instantiated by default.
18452 Usage: $0 [OPTION]... [TAG]...
18454 -h, --help print this help, then exit
18455 -V, --version print version number and configuration settings, then exit
18456 --config print configuration, then exit
18457 -q, --quiet, --silent
18458 do not print progress messages
18459 -d, --debug don't remove temporary files
18460 --recheck update $as_me by reconfiguring in the same conditions
18461 --file=FILE[:TEMPLATE]
18462 instantiate the configuration file FILE
18463 --header=FILE[:TEMPLATE]
18464 instantiate the configuration header FILE
18466 Configuration files:
18469 Configuration headers:
18472 Configuration links:
18475 Configuration commands:
18478 Report bugs to the package provider."
18481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18482 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18485 configured by $0, generated by GNU Autoconf 2.69,
18486 with options \\"\$ac_cs_config\\"
18488 Copyright (C) 2012 Free Software Foundation, Inc.
18489 This config.status script is free software; the Free Software Foundation
18490 gives unlimited permission to copy, distribute and modify it."
18496 test -n "\$AWK" || AWK=awk
18499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18500 # The default lists apply if the user does not specify any file.
18506 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18507 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18511 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18523 # Handling of the options.
18524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18526 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18527 $as_echo "$ac_cs_version"; exit ;;
18528 --config | --confi | --conf | --con | --co | --c )
18529 $as_echo "$ac_cs_config"; exit ;;
18530 --debug | --debu | --deb | --de | --d | -d )
18532 --file | --fil | --fi | --f )
18535 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18536 '') as_fn_error $? "missing file argument" ;;
18538 as_fn_append CONFIG_FILES " '$ac_optarg'"
18539 ac_need_defaults=false;;
18540 --header | --heade | --head | --hea )
18543 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18545 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18546 ac_need_defaults=false;;
18548 # Conflict between --help and --header
18549 as_fn_error $? "ambiguous option: \`$1'
18550 Try \`$0 --help' for more information.";;
18551 --help | --hel | -h )
18552 $as_echo "$ac_cs_usage"; exit ;;
18553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18554 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18557 # This is an error.
18558 -*) as_fn_error $? "unrecognized option: \`$1'
18559 Try \`$0 --help' for more information." ;;
18561 *) as_fn_append ac_config_targets " $1"
18562 ac_need_defaults=false ;;
18568 ac_configure_extra_args=
18570 if $ac_cs_silent; then
18572 ac_configure_extra_args="$ac_configure_extra_args --silent"
18576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18577 if \$ac_cs_recheck; then
18578 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18580 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18581 CONFIG_SHELL='$SHELL'
18582 export CONFIG_SHELL
18587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18592 ## Running $as_me. ##
18598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18602 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18608 # Handling of arguments.
18609 for ac_config_target in $ac_config_targets
18611 case $ac_config_target in
18612 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18613 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
18614 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18615 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
18616 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
18617 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18618 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
18619 "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
18620 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18621 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
18623 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18628 # If the user did not use the arguments to specify the items to instantiate,
18629 # then the envvar interface is used. Set only those that are not.
18630 # We use the long form for the default assignment because of an extremely
18631 # bizarre bug on SunOS 4.1.3.
18632 if $ac_need_defaults; then
18633 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18634 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18635 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18636 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18639 # Have a temporary directory for convenience. Make it in the build tree
18640 # simply because there is no reason against having it here, and in addition,
18641 # creating and moving files from /tmp can sometimes cause problems.
18642 # Hook for its removal unless debugging.
18643 # Note that there is a small window in which the directory will not be cleaned:
18644 # after its creation but before its name has been assigned to `$tmp'.
18648 trap 'exit_status=$?
18649 : "${ac_tmp:=$tmp}"
18650 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18652 trap 'as_fn_exit 1' 1 2 13 15
18654 # Create a (secure) tmp directory for tmp files.
18657 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18661 tmp=./conf$$-$RANDOM
18662 (umask 077 && mkdir "$tmp")
18663 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18666 # Set up the scripts for CONFIG_FILES section.
18667 # No need to generate them if there are no CONFIG_FILES.
18668 # This happens for instance with `./config.status config.h'.
18669 if test -n "$CONFIG_FILES"; then
18671 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18672 ac_cs_awk_getline=:
18673 ac_cs_awk_pipe_init=
18674 ac_cs_awk_read_file='
18675 while ((getline aline < (F[key])) > 0)
18678 ac_cs_awk_pipe_fini=
18680 ac_cs_awk_getline=false
18681 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18682 ac_cs_awk_read_file='
18684 print "cat " F[key] " &&"
18685 '$ac_cs_awk_pipe_init
18686 # The final `:' finishes the AND list.
18687 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18689 ac_cr=`echo X | tr X '\015'`
18690 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18691 # But we know of no other shell where ac_cr would be empty at this
18692 # point, so we can use a bashism as a fallback.
18693 if test "x$ac_cr" = x; then
18694 eval ac_cr=\$\'\\r\'
18696 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18697 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18700 ac_cs_awk_cr=$ac_cr
18703 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18706 # Create commands to substitute file output variables.
18708 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18709 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18710 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18713 } >conf$$files.sh &&
18714 . ./conf$$files.sh ||
18715 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18716 rm -f conf$$files.sh
18719 echo "cat >conf$$subs.awk <<_ACEOF" &&
18720 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18722 } >conf$$subs.sh ||
18723 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18724 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18726 for ac_last_try in false false false false false :; do
18727 . ./conf$$subs.sh ||
18728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18730 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18731 if test $ac_delim_n = $ac_delim_num; then
18733 elif $ac_last_try; then
18734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18736 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18739 rm -f conf$$subs.sh
18741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18742 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18746 s/^/S["/; s/!.*/"]=/
18756 s/\(.\{148\}\)..*/\1/
18758 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18763 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18770 s/\(.\{148\}\)..*/\1/
18772 s/["\\]/\\&/g; s/^/"/; s/$/"/
18776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18781 ' <conf$$subs.awk | sed '
18786 ' >>$CONFIG_STATUS || ac_write_fail=1
18787 rm -f conf$$subs.awk
18788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18790 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18791 for (key in S) S_is_set[key] = 1
18793 \$ac_cs_awk_pipe_init
18797 nfields = split(line, field, "@")
18799 len = length(field[1])
18800 for (i = 2; i < nfields; i++) {
18802 keylen = length(key)
18803 if (S_is_set[key]) {
18805 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18806 len += length(value) + length(field[++i])
18811 if (nfields == 3 && !substed) {
18813 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18814 \$ac_cs_awk_read_file
18820 \$ac_cs_awk_pipe_fini
18823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18824 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18825 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18828 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18829 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18832 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18833 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18834 # trailing colons and then remove the whole line if VPATH becomes empty
18835 # (actually we leave an empty line to preserve line numbers).
18836 if test "x$srcdir" = x.; then
18837 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18856 fi # test -n "$CONFIG_FILES"
18858 # Set up the scripts for CONFIG_HEADERS section.
18859 # No need to generate them if there are no CONFIG_HEADERS.
18860 # This happens for instance with `./config.status Makefile'.
18861 if test -n "$CONFIG_HEADERS"; then
18862 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18866 # Transform confdefs.h into an awk script `defines.awk', embedded as
18867 # here-document in config.status, that substitutes the proper values into
18868 # config.h.in to produce config.h.
18870 # Create a delimiter string that does not exist in confdefs.h, to ease
18871 # handling of long lines.
18873 for ac_last_try in false false :; do
18874 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18875 if test -z "$ac_tt"; then
18877 elif $ac_last_try; then
18878 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18884 # For the awk script, D is an array of macro values keyed by name,
18885 # likewise P contains macro parameters if any. Preserve backslash
18886 # newline sequences.
18888 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18890 s/.\{148\}/&'"$ac_delim"'/g
18893 s/^[ ]*#[ ]*define[ ][ ]*/ /
18900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18902 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18906 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18907 D["\1"]=" \3\\\\\\n"\\/p
18909 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18914 s/.\{148\}/&'"$ac_delim"'/g
18919 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18922 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18924 ' <confdefs.h | sed '
18925 s/'"$ac_delim"'/"\\\
18926 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18929 for (key in D) D_is_set[key] = 1
18932 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18934 split(line, arg, " ")
18935 if (arg[1] == "#") {
18939 defundef = substr(arg[1], 2)
18942 split(mac1, mac2, "(") #)
18944 prefix = substr(line, 1, index(line, defundef) - 1)
18945 if (D_is_set[macro]) {
18946 # Preserve the white space surrounding the "#".
18947 print prefix "define", macro P[macro] D[macro]
18950 # Replace #undef with comments. This is necessary, for example,
18951 # in the case of _POSIX_SOURCE, which is predefined and required
18952 # on some systems where configure will not decide to define it.
18953 if (defundef == "undef") {
18954 print "/*", prefix defundef, macro, "*/"
18962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18963 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18964 fi # test -n "$CONFIG_HEADERS"
18967 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18972 :[FHLC]) ac_mode=$ac_tag; continue;;
18974 case $ac_mode$ac_tag in
18976 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18977 :[FH]-) ac_tag=-:-;;
18978 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18995 -) ac_f="$ac_tmp/stdin";;
18996 *) # Look for the file first in the build tree, then in the source tree
18997 # (if the path is not absolute). The absolute path cannot be DOS-style,
18998 # because $ac_f cannot contain `:'.
19002 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19004 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19006 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19007 as_fn_append ac_file_inputs " '$ac_f'"
19010 # Let's still pretend it is `configure' which instantiates (i.e., don't
19011 # use $as_me), people would be surprised to read:
19012 # /* config.h. Generated by config.status. */
19013 configure_input='Generated from '`
19014 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19016 if test x"$ac_file" != x-; then
19017 configure_input="$ac_file. $configure_input"
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19019 $as_echo "$as_me: creating $ac_file" >&6;}
19021 # Neutralize special characters interpreted by sed in replacement strings.
19022 case $configure_input in #(
19023 *\&* | *\|* | *\\* )
19024 ac_sed_conf_input=`$as_echo "$configure_input" |
19025 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19026 *) ac_sed_conf_input=$configure_input;;
19030 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19036 ac_dir=`$as_dirname -- "$ac_file" ||
19037 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19038 X"$ac_file" : 'X\(//\)[^/]' \| \
19039 X"$ac_file" : 'X\(//\)$' \| \
19040 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19041 $as_echo X"$ac_file" |
19042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19046 /^X\(\/\/\)[^/].*/{
19059 as_dir="$ac_dir"; as_fn_mkdir_p
19063 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19065 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19066 # A ".." for each directory in $ac_dir_suffix.
19067 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19068 case $ac_top_builddir_sub in
19069 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19070 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19073 ac_abs_top_builddir=$ac_pwd
19074 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19075 # for backward compatibility:
19076 ac_top_builddir=$ac_top_build_prefix
19079 .) # We are building in place.
19081 ac_top_srcdir=$ac_top_builddir_sub
19082 ac_abs_top_srcdir=$ac_pwd ;;
19083 [\\/]* | ?:[\\/]* ) # Absolute name.
19084 ac_srcdir=$srcdir$ac_dir_suffix;
19085 ac_top_srcdir=$srcdir
19086 ac_abs_top_srcdir=$srcdir ;;
19087 *) # Relative name.
19088 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19089 ac_top_srcdir=$ac_top_build_prefix$srcdir
19090 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19092 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19102 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19103 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19108 # If the template does not know about datarootdir, expand it.
19109 # FIXME: This hack should be removed a few years after 2.60.
19110 ac_datarootdir_hack=; ac_datarootdir_seen=
19121 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19122 *datarootdir*) ac_datarootdir_seen=yes;;
19123 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19125 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19128 ac_datarootdir_hack='
19129 s&@datadir@&$datadir&g
19130 s&@docdir@&$docdir&g
19131 s&@infodir@&$infodir&g
19132 s&@localedir@&$localedir&g
19133 s&@mandir@&$mandir&g
19134 s&\\\${datarootdir}&$datarootdir&g' ;;
19138 # Neutralize VPATH when `$srcdir' = `.'.
19139 # Shell code in configure.ac might set extrasub.
19140 # FIXME: do we really want to maintain this feature?
19141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19142 ac_sed_extra="$ac_vpsub
19145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19148 s|@configure_input@|$ac_sed_conf_input|;t t
19149 s&@top_builddir@&$ac_top_builddir_sub&;t t
19150 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19151 s&@srcdir@&$ac_srcdir&;t t
19152 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19153 s&@top_srcdir@&$ac_top_srcdir&;t t
19154 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19155 s&@builddir@&$ac_builddir&;t t
19156 s&@abs_builddir@&$ac_abs_builddir&;t t
19157 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19158 s&@INSTALL@&$ac_INSTALL&;t t
19159 $ac_datarootdir_hack
19161 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19162 if $ac_cs_awk_getline; then
19163 $AWK -f "$ac_tmp/subs.awk"
19165 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19167 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19169 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19170 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19171 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19172 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19174 which seems to be undefined. Please make sure it is defined" >&5
19175 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19176 which seems to be undefined. Please make sure it is defined" >&2;}
19178 rm -f "$ac_tmp/stdin"
19180 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19181 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19189 if test x"$ac_file" != x-; then
19191 $as_echo "/* $configure_input */" \
19192 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19193 } >"$ac_tmp/config.h" \
19194 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19195 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19197 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19200 mv "$ac_tmp/config.h" "$ac_file" \
19201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19204 $as_echo "/* $configure_input */" \
19205 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19206 || as_fn_error $? "could not create -" "$LINENO" 5
19214 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19217 # Prefer the file from the source tree if names are identical.
19218 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19219 ac_source=$srcdir/$ac_source
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19223 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19225 if test ! -r "$ac_source"; then
19226 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19230 # Try a relative symlink, then a hard link, then a copy.
19232 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19233 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19235 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19236 ln "$ac_source" "$ac_file" 2>/dev/null ||
19237 cp -p "$ac_source" "$ac_file" ||
19238 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19241 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19242 $as_echo "$as_me: executing $ac_file commands" >&6;}
19247 case $ac_file$ac_mode in
19248 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19249 "gcore":F) chmod +x gcore ;;
19251 case x$CONFIG_HEADERS in
19252 xconfig.h:config.in)
19257 case x$CONFIG_HEADERS in
19258 xconfig.h:config.in)
19263 case x$CONFIG_HEADERS in
19264 xconfig.h:config.in)
19269 case x$CONFIG_HEADERS in
19270 xconfig.h:config.in)
19274 "data-directory/Makefile":F)
19275 case x$CONFIG_HEADERS in
19276 xconfig.h:config.in)
19287 ac_clean_files=$ac_clean_files_save
19289 test $ac_write_fail = 0 ||
19290 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19293 # configure is writing to config.log, and then calls config.status.
19294 # config.status does its own redirection, appending to config.log.
19295 # Unfortunately, on DOS this fails, as config.log is still kept open
19296 # by configure, so config.status won't be able to write to it; its
19297 # output is simply discarded. So we exec the FD to /dev/null,
19298 # effectively closing config.log, so it can be properly (re)opened and
19299 # appended to by config.status. When coming back to configure, we
19300 # need to make the FD available again.
19301 if test "$no_create" != yes; then
19303 ac_config_status_args=
19304 test "$silent" = yes &&
19305 ac_config_status_args="$ac_config_status_args --quiet"
19307 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19309 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19310 # would make configure fail if this is the last instruction.
19311 $ac_cs_success || as_fn_exit 1
19315 # CONFIG_SUBDIRS section.
19317 if test "$no_recursion" != yes; then
19319 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19320 # so they do not pile up.
19321 ac_sub_configure_args=
19323 eval "set x $ac_configure_args"
19327 if test -n "$ac_prev"; then
19332 -cache-file | --cache-file | --cache-fil | --cache-fi \
19333 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19334 ac_prev=cache_file ;;
19335 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19336 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19339 --config-cache | -C)
19341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19345 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19347 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19349 --disable-option-checking)
19353 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19355 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19359 # Always prepend --prefix to ensure using the same prefix
19360 # in subdir configurations.
19361 ac_arg="--prefix=$prefix"
19363 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19365 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19368 if test "$silent" = yes; then
19369 ac_sub_configure_args="--silent $ac_sub_configure_args"
19372 # Always prepend --disable-option-checking to silence warnings, since
19373 # different subdirs can have different --enable and --with options.
19374 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19377 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19379 # Do not complain, so a configure script can configure whichever
19380 # parts of a large source tree are present.
19381 test -d "$srcdir/$ac_dir" || continue
19383 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19384 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19385 $as_echo "$ac_msg" >&6
19386 as_dir="$ac_dir"; as_fn_mkdir_p
19390 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19392 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19393 # A ".." for each directory in $ac_dir_suffix.
19394 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19395 case $ac_top_builddir_sub in
19396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19400 ac_abs_top_builddir=$ac_pwd
19401 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19402 # for backward compatibility:
19403 ac_top_builddir=$ac_top_build_prefix
19406 .) # We are building in place.
19408 ac_top_srcdir=$ac_top_builddir_sub
19409 ac_abs_top_srcdir=$ac_pwd ;;
19410 [\\/]* | ?:[\\/]* ) # Absolute name.
19411 ac_srcdir=$srcdir$ac_dir_suffix;
19412 ac_top_srcdir=$srcdir
19413 ac_abs_top_srcdir=$srcdir ;;
19414 *) # Relative name.
19415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19416 ac_top_srcdir=$ac_top_build_prefix$srcdir
19417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19419 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19424 # Check for guested configure; otherwise get Cygnus style configure.
19425 if test -f "$ac_srcdir/configure.gnu"; then
19426 ac_sub_configure=$ac_srcdir/configure.gnu
19427 elif test -f "$ac_srcdir/configure"; then
19428 ac_sub_configure=$ac_srcdir/configure
19429 elif test -f "$ac_srcdir/configure.in"; then
19430 # This should be Cygnus configure.
19431 ac_sub_configure=$ac_aux_dir/configure
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19434 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19438 # The recursion is here.
19439 if test -n "$ac_sub_configure"; then
19440 # Make the cache file name correct relative to the subdirectory.
19441 case $cache_file in
19442 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19443 *) # Relative name.
19444 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19447 { $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
19448 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19449 # The eval makes quoting arguments work.
19450 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19451 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19452 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19458 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19460 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}