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."
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>
623 enable_option_checking=no
624 ac_subst_vars='LTLIBOBJS
628 READELF_TRANSFORM_NAME
644 HAVE_NATIVE_GCORE_HOST
748 READLINE_TEXI_INCFLAG
777 HAVE_NATIVE_GCORE_TARGET
804 INSTALL_STRIP_PROGRAM
834 MAINTAINER_MODE_FALSE
863 program_transform_name
874 ac_subst_files='nat_makefile_frag'
876 enable_option_checking
877 enable_maintainer_mode
880 with_separate_debug_dir
882 with_relocated_sources
884 with_auto_load_safe_path
917 enable_source_highlight
923 with_system_gdbinit_dir
925 enable_build_warnings
926 enable_gdb_build_warnings
936 with_libbabeltrace_prefix
937 with_libbabeltrace_type
940 with_libxxhash_prefix
944 ac_precious_vars='build_alias
966 ac_subdirs_all='gdbtk'
968 # Initialize some variables set by options.
970 ac_init_version=false
971 ac_unrecognized_opts=
973 # The variables have the same names as the options, with
974 # dashes changed to underlines.
982 program_transform_name=s,x,x,
990 # Installation directory options.
991 # These are left unexpanded so users can "make install exec_prefix=/foo"
992 # and all the variables that are supposed to be based on exec_prefix
993 # by default will actually change.
994 # Use braces instead of parens because sh, perl, etc. also accept them.
995 # (The list follows the same order as the GNU Coding Standards.)
996 bindir='${exec_prefix}/bin'
997 sbindir='${exec_prefix}/sbin'
998 libexecdir='${exec_prefix}/libexec'
999 datarootdir='${prefix}/share'
1000 datadir='${datarootdir}'
1001 sysconfdir='${prefix}/etc'
1002 sharedstatedir='${prefix}/com'
1003 localstatedir='${prefix}/var'
1004 includedir='${prefix}/include'
1005 oldincludedir='/usr/include'
1006 docdir='${datarootdir}/doc/${PACKAGE}'
1007 infodir='${datarootdir}/info'
1012 libdir='${exec_prefix}/lib'
1013 localedir='${datarootdir}/locale'
1014 mandir='${datarootdir}/man'
1020 # If the previous option needs an argument, assign it.
1021 if test -n "$ac_prev"; then
1022 eval $ac_prev=\$ac_option
1028 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033 # Accept the important Cygnus configure options, so we can diagnose typos.
1035 case $ac_dashdash$ac_option in
1039 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042 bindir=$ac_optarg ;;
1044 -build | --build | --buil | --bui | --bu)
1045 ac_prev=build_alias ;;
1046 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047 build_alias=$ac_optarg ;;
1049 -cache-file | --cache-file | --cache-fil | --cache-fi \
1050 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051 ac_prev=cache_file ;;
1052 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054 cache_file=$ac_optarg ;;
1056 --config-cache | -C)
1057 cache_file=config.cache ;;
1059 -datadir | --datadir | --datadi | --datad)
1061 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062 datadir=$ac_optarg ;;
1064 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065 | --dataroo | --dataro | --datar)
1066 ac_prev=datarootdir ;;
1067 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069 datarootdir=$ac_optarg ;;
1071 -disable-* | --disable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid feature name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1080 "enable_$ac_useropt"
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1085 eval enable_$ac_useropt=no ;;
1087 -docdir | --docdir | --docdi | --doc | --do)
1089 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1090 docdir=$ac_optarg ;;
1092 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1094 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1095 dvidir=$ac_optarg ;;
1097 -enable-* | --enable-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error $? "invalid feature name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1106 "enable_$ac_useropt"
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1111 eval enable_$ac_useropt=\$ac_optarg ;;
1113 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1114 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1115 | --exec | --exe | --ex)
1116 ac_prev=exec_prefix ;;
1117 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1118 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1119 | --exec=* | --exe=* | --ex=*)
1120 exec_prefix=$ac_optarg ;;
1122 -gas | --gas | --ga | --g)
1123 # Obsolete; use --with-gas.
1126 -help | --help | --hel | --he | -h)
1127 ac_init_help=long ;;
1128 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1129 ac_init_help=recursive ;;
1130 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1131 ac_init_help=short ;;
1133 -host | --host | --hos | --ho)
1134 ac_prev=host_alias ;;
1135 -host=* | --host=* | --hos=* | --ho=*)
1136 host_alias=$ac_optarg ;;
1138 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1140 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1142 htmldir=$ac_optarg ;;
1144 -includedir | --includedir | --includedi | --included | --include \
1145 | --includ | --inclu | --incl | --inc)
1146 ac_prev=includedir ;;
1147 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1148 | --includ=* | --inclu=* | --incl=* | --inc=*)
1149 includedir=$ac_optarg ;;
1151 -infodir | --infodir | --infodi | --infod | --info | --inf)
1153 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1154 infodir=$ac_optarg ;;
1156 -libdir | --libdir | --libdi | --libd)
1158 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1159 libdir=$ac_optarg ;;
1161 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1162 | --libexe | --libex | --libe)
1163 ac_prev=libexecdir ;;
1164 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1165 | --libexe=* | --libex=* | --libe=*)
1166 libexecdir=$ac_optarg ;;
1168 -localedir | --localedir | --localedi | --localed | --locale)
1169 ac_prev=localedir ;;
1170 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1171 localedir=$ac_optarg ;;
1173 -localstatedir | --localstatedir | --localstatedi | --localstated \
1174 | --localstate | --localstat | --localsta | --localst | --locals)
1175 ac_prev=localstatedir ;;
1176 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1177 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1178 localstatedir=$ac_optarg ;;
1180 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1182 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1183 mandir=$ac_optarg ;;
1185 -nfp | --nfp | --nf)
1186 # Obsolete; use --without-fp.
1189 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1190 | --no-cr | --no-c | -n)
1193 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1194 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1198 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1199 | --oldin | --oldi | --old | --ol | --o)
1200 ac_prev=oldincludedir ;;
1201 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1202 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1203 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1204 oldincludedir=$ac_optarg ;;
1206 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1208 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1209 prefix=$ac_optarg ;;
1211 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1212 | --program-pre | --program-pr | --program-p)
1213 ac_prev=program_prefix ;;
1214 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1215 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1216 program_prefix=$ac_optarg ;;
1218 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1219 | --program-suf | --program-su | --program-s)
1220 ac_prev=program_suffix ;;
1221 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1222 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1223 program_suffix=$ac_optarg ;;
1225 -program-transform-name | --program-transform-name \
1226 | --program-transform-nam | --program-transform-na \
1227 | --program-transform-n | --program-transform- \
1228 | --program-transform | --program-transfor \
1229 | --program-transfo | --program-transf \
1230 | --program-trans | --program-tran \
1231 | --progr-tra | --program-tr | --program-t)
1232 ac_prev=program_transform_name ;;
1233 -program-transform-name=* | --program-transform-name=* \
1234 | --program-transform-nam=* | --program-transform-na=* \
1235 | --program-transform-n=* | --program-transform-=* \
1236 | --program-transform=* | --program-transfor=* \
1237 | --program-transfo=* | --program-transf=* \
1238 | --program-trans=* | --program-tran=* \
1239 | --progr-tra=* | --program-tr=* | --program-t=*)
1240 program_transform_name=$ac_optarg ;;
1242 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1244 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1245 pdfdir=$ac_optarg ;;
1247 -psdir | --psdir | --psdi | --psd | --ps)
1249 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1253 | -silent | --silent | --silen | --sile | --sil)
1256 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1258 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1260 sbindir=$ac_optarg ;;
1262 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1263 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1264 | --sharedst | --shareds | --shared | --share | --shar \
1266 ac_prev=sharedstatedir ;;
1267 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1268 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1269 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1271 sharedstatedir=$ac_optarg ;;
1273 -site | --site | --sit)
1275 -site=* | --site=* | --sit=*)
1278 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1280 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1281 srcdir=$ac_optarg ;;
1283 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1284 | --syscon | --sysco | --sysc | --sys | --sy)
1285 ac_prev=sysconfdir ;;
1286 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1287 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1288 sysconfdir=$ac_optarg ;;
1290 -target | --target | --targe | --targ | --tar | --ta | --t)
1291 ac_prev=target_alias ;;
1292 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1293 target_alias=$ac_optarg ;;
1295 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298 -version | --version | --versio | --versi | --vers | -V)
1299 ac_init_version=: ;;
1302 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error $? "invalid package name: $ac_useropt"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1315 eval with_$ac_useropt=\$ac_optarg ;;
1317 -without-* | --without-*)
1318 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321 as_fn_error $? "invalid package name: $ac_useropt"
1322 ac_useropt_orig=$ac_useropt
1323 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329 ac_unrecognized_sep=', ';;
1331 eval with_$ac_useropt=no ;;
1334 # Obsolete; use --with-x.
1337 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1338 | --x-incl | --x-inc | --x-in | --x-i)
1339 ac_prev=x_includes ;;
1340 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1341 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1342 x_includes=$ac_optarg ;;
1344 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1345 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1346 ac_prev=x_libraries ;;
1347 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1348 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1349 x_libraries=$ac_optarg ;;
1351 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1352 Try \`$0 --help' for more information"
1356 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1357 # Reject names that are not valid shell variable names.
1358 case $ac_envvar in #(
1359 '' | [0-9]* | *[!_$as_cr_alnum]* )
1360 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1362 eval $ac_envvar=\$ac_optarg
1363 export $ac_envvar ;;
1366 # FIXME: should be removed in autoconf 3.0.
1367 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1369 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1376 if test -n "$ac_prev"; then
1377 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1378 as_fn_error $? "missing argument to $ac_option"
1381 if test -n "$ac_unrecognized_opts"; then
1382 case $enable_option_checking in
1384 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1385 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1389 # Check all directory arguments for consistency.
1390 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1391 datadir sysconfdir sharedstatedir localstatedir includedir \
1392 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1393 libdir localedir mandir
1395 eval ac_val=\$$ac_var
1396 # Remove trailing slashes.
1399 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1400 eval $ac_var=\$ac_val;;
1402 # Be sure to have absolute directory names.
1404 [\\/$]* | ?:[\\/]* ) continue;;
1405 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1407 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1410 # There might be people who depend on the old broken behavior: `$host'
1411 # used to hold the argument of --host etc.
1412 # FIXME: To remove some day.
1415 target=$target_alias
1417 # FIXME: To remove some day.
1418 if test "x$host_alias" != x; then
1419 if test "x$build_alias" = x; then
1420 cross_compiling=maybe
1421 elif test "x$build_alias" != "x$host_alias"; then
1427 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429 test "$silent" = yes && exec 6>/dev/null
1432 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1433 ac_ls_di=`ls -di .` &&
1434 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1435 as_fn_error $? "working directory cannot be determined"
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437 as_fn_error $? "pwd does not report name of working directory"
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442 ac_srcdir_defaulted=yes
1443 # Try the directory containing this script, then the parent directory.
1444 ac_confdir=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$as_myself" : 'X\(//\)[^/]' \| \
1447 X"$as_myself" : 'X\(//\)$' \| \
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 $as_echo X"$as_myself" |
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1472 ac_srcdir_defaulted=no
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1478 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1480 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1490 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1492 for ac_var in $ac_precious_vars; do
1493 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_${ac_var}_value=\$${ac_var}
1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1500 # Report the --help message.
1502 if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1506 \`configure' configures this package to adapt to many kinds of systems.
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE. See below for descriptions of some of the useful variables.
1513 Defaults for the options are specified in brackets.
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
1520 -q, --quiet, --silent do not print \`checking ...' messages
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1526 Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
1528 [$ac_default_prefix]
1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1537 For better control, use the options below.
1539 Fine tuning of the installation directories:
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546 --libdir=DIR object code libraries [EPREFIX/lib]
1547 --includedir=DIR C header files [PREFIX/include]
1548 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1551 --infodir=DIR info documentation [DATAROOTDIR/info]
1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1553 --mandir=DIR man documentation [DATAROOTDIR/man]
1554 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1555 --htmldir=DIR html documentation [DOCDIR]
1556 --dvidir=DIR dvi documentation [DOCDIR]
1557 --pdfdir=DIR pdf documentation [DOCDIR]
1558 --psdir=DIR ps documentation [DOCDIR]
1564 --program-prefix=PREFIX prepend PREFIX to installed program names
1565 --program-suffix=SUFFIX append SUFFIX to installed program names
1566 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1569 --x-includes=DIR X include files are in DIR
1570 --x-libraries=DIR X library files are in DIR
1573 --build=BUILD configure for building on BUILD [guessed]
1574 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1575 --target=TARGET configure for building compilers for TARGET [HOST]
1579 if test -n "$ac_init_help"; then
1584 --disable-option-checking ignore unrecognized --enable/--with options
1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1587 --enable-maintainer-mode
1588 enable make rules and dependencies not useful (and
1589 sometimes confusing) to the casual installer
1590 --enable-plugins Enable support for plugins
1591 --disable-largefile omit support for large files
1592 --enable-shared build shared libraries [default=yes]
1593 --enable-targets=TARGETS
1594 alternative target configurations
1595 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1596 --disable-gdbmi disable machine-interface (MI)
1597 --enable-tui enable full-screen terminal user interface (TUI)
1598 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1599 --enable-profiling enable profiling of GDB
1600 --enable-codesign=CERT sign gdb with 'codesign -s CERT'
1601 --disable-rpath do not hardcode runtime library paths
1602 --enable-source-highlight
1603 enable source-highlight for source listings
1604 --enable-werror treat compile warnings as errors
1605 --enable-build-warnings enable build-time compiler warnings if gcc is used
1606 --enable-gdb-build-warnings
1607 enable GDB specific build-time compiler warnings if
1609 --enable-ubsan enable undefined behavior sanitizer (auto/yes/no)
1610 --enable-sim link gdb with simulator
1611 --enable-libctf Handle .ctf type-info sections [default=yes]
1612 --enable-unit-tests Enable the inclusion of unit tests when compiling
1616 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1617 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1618 --with-separate-debug-dir=PATH
1619 look for global separate debug info in this path
1621 --with-gdb-datadir=PATH look for global separate data files in this path
1623 --with-relocated-sources=PATH
1624 automatically relocate this path for source files
1625 --with-auto-load-dir=PATH
1626 directories from which to load auto-loaded scripts
1627 [$debugdir:$datadir/auto-load]
1628 --with-auto-load-safe-path=PATH
1629 directories safe to hold auto-loaded files
1630 [--with-auto-load-dir]
1631 --without-auto-load-safe-path
1632 do not restrict auto-loaded files locations
1633 --with-debuginfod Enable debuginfo lookups with debuginfod
1635 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1636 --with-curses use the curses library instead of the termcap
1638 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1639 --with-bugurl=URL Direct users to URL to report a bug
1640 --with-system-zlib use installed libz
1641 --with-gnu-ld assume the C compiler uses GNU ld default=no
1642 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1643 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1644 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1645 --with-iconv-bin=PATH specify where to find the iconv program
1646 --with-system-readline use installed readline library
1647 --with-jit-reader-dir=PATH
1648 directory to load the JIT readers from
1649 --with-expat include expat support (auto/yes/no)
1650 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1651 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1652 --with-libexpat-type=TYPE type of library to search for (auto/static/shared)
1653 --with-libgmp-prefix[=DIR] search for libgmp in DIR/include and DIR/lib
1654 --without-libgmp-prefix don't search for libgmp in includedir and libdir
1655 --with-libgmp-type=TYPE type of library to search for (auto/static/shared)
1656 --with-mpfr include MPFR support (auto/yes/no)
1657 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1658 --without-libmpfr-prefix don't search for libmpfr in includedir and libdir
1659 --with-libmpfr-type=TYPE type of library to search for (auto/static/shared)
1660 --with-python[=PYTHON] include python support
1661 (auto/yes/no/<python-program>)
1662 --with-python-libdir[=DIR]
1663 search for python's libraries in DIR
1664 --with-guile[=GUILE] include guile support
1665 (auto/yes/no/<guile-version>/<pkg-config-program>)
1666 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1667 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1668 --without-libipt-prefix don't search for libipt in includedir and libdir
1669 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1670 --with-sysroot[=DIR] search for usr/lib et al within DIR
1671 --with-system-gdbinit=PATH
1672 automatically load a system-wide gdbinit file
1673 --with-system-gdbinit-dir=PATH
1674 automatically load system-wide gdbinit files from
1676 --with-lzma support lzma compression (auto/yes/no)
1677 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1678 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1679 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1680 --with-tcl directory containing tcl configuration (tclConfig.sh)
1681 --with-tk directory containing tk configuration (tkConfig.sh)
1682 --with-x use the X Window System
1683 --with-babeltrace include babeltrace support (auto/yes/no)
1684 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1685 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1686 --with-libbabeltrace-type=TYPE type of library to search for (auto/static/shared)
1687 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1688 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1689 --without-libxxhash-prefix don't search for libxxhash in includedir and libdir
1690 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1692 Some influential environment variables:
1693 CC C compiler command
1694 CFLAGS C compiler flags
1695 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1696 nonstandard directory <lib dir>
1697 LIBS libraries to pass to the linker, e.g. -l<library>
1698 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1699 you have headers in a nonstandard directory <include dir>
1700 CXX C++ compiler command
1701 CXXFLAGS C++ compiler flags
1703 MAKEINFO Parent configure detects if it is of sufficient version.
1705 Parameters for MAKEINFO.
1706 PKG_CONFIG path to pkg-config utility
1708 directories to add to pkg-config's search path
1710 path overriding pkg-config's built-in search path
1712 C compiler flags for DEBUGINFOD, overriding pkg-config
1714 linker flags for DEBUGINFOD, overriding pkg-config
1715 YACC The `Yet Another Compiler Compiler' implementation to use.
1716 Defaults to the first program found out of: `bison -y', `byacc',
1718 YFLAGS The list of arguments that will be passed by default to $YACC.
1719 This script will default YFLAGS to the empty string to avoid a
1720 default value of `-d' given by some make applications.
1721 XMKMF Path to xmkmf, Makefile generator for X Window System
1723 Use these variables to override the choices made by `configure' or to help
1724 it to find libraries and programs with nonstandard names/locations.
1726 Report bugs to the package provider.
1731 if test "$ac_init_help" = "recursive"; then
1732 # If there are subdirs, report their specific --help.
1733 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1734 test -d "$ac_dir" ||
1735 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1740 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1743 # A ".." for each directory in $ac_dir_suffix.
1744 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1745 case $ac_top_builddir_sub in
1746 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1747 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1750 ac_abs_top_builddir=$ac_pwd
1751 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1752 # for backward compatibility:
1753 ac_top_builddir=$ac_top_build_prefix
1756 .) # We are building in place.
1758 ac_top_srcdir=$ac_top_builddir_sub
1759 ac_abs_top_srcdir=$ac_pwd ;;
1760 [\\/]* | ?:[\\/]* ) # Absolute name.
1761 ac_srcdir=$srcdir$ac_dir_suffix;
1762 ac_top_srcdir=$srcdir
1763 ac_abs_top_srcdir=$srcdir ;;
1765 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1766 ac_top_srcdir=$ac_top_build_prefix$srcdir
1767 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1769 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1771 cd "$ac_dir" || { ac_status=$?; continue; }
1772 # Check for guested configure.
1773 if test -f "$ac_srcdir/configure.gnu"; then
1775 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1776 elif test -f "$ac_srcdir/configure"; then
1778 $SHELL "$ac_srcdir/configure" --help=recursive
1780 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1782 cd "$ac_pwd" || { ac_status=$?; break; }
1786 test -n "$ac_init_help" && exit $ac_status
1787 if $ac_init_version; then
1790 generated by GNU Autoconf 2.69
1792 Copyright (C) 2012 Free Software Foundation, Inc.
1793 This configure script is free software; the Free Software Foundation
1794 gives unlimited permission to copy, distribute and modify it.
1799 ## ------------------------ ##
1800 ## Autoconf initialization. ##
1801 ## ------------------------ ##
1803 # ac_fn_c_try_compile LINENO
1804 # --------------------------
1805 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_c_try_compile ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 rm -f conftest.$ac_objext
1810 if { { ac_try="$ac_compile"
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_compile") 2>conftest.err
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && {
1826 test -z "$ac_c_werror_flag" ||
1827 test ! -s conftest.err
1828 } && test -s conftest.$ac_objext; then :
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1839 } # ac_fn_c_try_compile
1841 # ac_fn_cxx_try_compile LINENO
1842 # ----------------------------
1843 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext
1848 if { { ac_try="$ac_compile"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_compile") 2>conftest.err
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest.$ac_objext; then :
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1877 } # ac_fn_cxx_try_compile
1879 # ac_fn_c_try_cpp LINENO
1880 # ----------------------
1881 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if { { ac_try="$ac_cpp conftest.$ac_ext"
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } > conftest.i && {
1901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1902 test ! -s conftest.err
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1916 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1919 # the include files in INCLUDES and setting the cache variable VAR
1921 ac_fn_c_check_header_mongrel ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if eval \${$3+:} false; then :
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1934 # Is the header compilable?
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1936 $as_echo_n "checking $2 usability... " >&6; }
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 ac_header_compiler=yes
1945 ac_header_compiler=no
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1949 $as_echo "$ac_header_compiler" >&6; }
1951 # Is the header present?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1953 $as_echo_n "checking $2 presence... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1958 if ac_fn_c_try_cpp "$LINENO"; then :
1959 ac_header_preproc=yes
1961 ac_header_preproc=no
1963 rm -f conftest.err conftest.i conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1965 $as_echo "$ac_header_preproc" >&6; }
1967 # So? What about this header?
1968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1971 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1977 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1979 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1981 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1983 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991 $as_echo_n "(cached) " >&6
1993 eval "$3=\$ac_header_compiler"
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 } # ac_fn_c_check_header_mongrel
2003 # ac_fn_c_try_run LINENO
2004 # ----------------------
2005 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2006 # that executables *can* be run.
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 if { { ac_try="$ac_link"
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_link") 2>&5
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2021 { { case "(($ac_try" in
2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023 *) ac_try_echo=$ac_try;;
2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 $as_echo "$ac_try_echo"; } >&5
2027 (eval "$ac_try") 2>&5
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; }; }; then :
2033 $as_echo "$as_me: program exited with status $ac_status" >&5
2034 $as_echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2037 ac_retval=$ac_status
2039 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status $ac_retval
2045 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2046 # -------------------------------------------------------
2047 # Tests whether HEADER exists and can be compiled using the include files in
2048 # INCLUDES, setting the cache variable VAR accordingly.
2049 ac_fn_c_check_header_compile ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if eval \${$3+:} false; then :
2055 $as_echo_n "(cached) " >&6
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2062 if ac_fn_c_try_compile "$LINENO"; then :
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 } # ac_fn_c_check_header_compile
2076 # ac_fn_c_try_link LINENO
2077 # -----------------------
2078 # Try to link conftest.$ac_ext, and return whether this succeeded.
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 rm -f conftest.$ac_objext conftest$ac_exeext
2083 if { { ac_try="$ac_link"
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_link") 2>conftest.err
2092 if test -s conftest.err; then
2093 grep -v '^ *+' conftest.err >conftest.er1
2094 cat conftest.er1 >&5
2095 mv -f conftest.er1 conftest.err
2097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098 test $ac_status = 0; } && {
2099 test -z "$ac_c_werror_flag" ||
2100 test ! -s conftest.err
2101 } && test -s conftest$ac_exeext && {
2102 test "$cross_compiling" = yes ||
2103 test -x conftest$ac_exeext
2107 $as_echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2112 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2113 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2114 # interfere with the next link command; also delete a directory that is
2115 # left behind by Apple's compiler. We do this before executing the actions.
2116 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 as_fn_set_status $ac_retval
2120 } # ac_fn_c_try_link
2122 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2123 # --------------------------------------------
2124 # Tries to find the compile-time value of EXPR in a program that includes
2125 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2127 ac_fn_c_compute_int ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 if test "$cross_compiling" = yes; then
2131 # Depending upon the size, compute the lo and hi bounds.
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) >= 0)];
2140 return test_array [0];
2146 if ac_fn_c_try_compile "$LINENO"; then :
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2157 return test_array [0];
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_hi=$ac_mid; break
2166 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2167 if test $ac_lo -le $ac_mid; then
2171 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2182 static int test_array [1 - 2 * !(($2) < 0)];
2184 return test_array [0];
2190 if ac_fn_c_try_compile "$LINENO"; then :
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2199 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2201 return test_array [0];
2207 if ac_fn_c_try_compile "$LINENO"; then :
2208 ac_lo=$ac_mid; break
2210 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2211 if test $ac_mid -le $ac_hi; then
2215 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 # Binary search between lo and hi bounds.
2226 while test "x$ac_lo" != "x$ac_hi"; do
2227 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2234 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2236 return test_array [0];
2242 if ac_fn_c_try_compile "$LINENO"; then :
2245 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2257 static long int longval () { return $2; }
2258 static unsigned long int ulongval () { return $2; }
2265 FILE *f = fopen ("conftest.val", "w");
2270 long int i = longval ();
2273 fprintf (f, "%ld", i);
2277 unsigned long int i = ulongval ();
2280 fprintf (f, "%lu", i);
2282 /* Do not output a trailing newline, as this causes \r\n confusion
2283 on some platforms. */
2284 return ferror (f) || fclose (f) != 0;
2290 if ac_fn_c_try_run "$LINENO"; then :
2291 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2296 conftest.$ac_objext conftest.beam conftest.$ac_ext
2300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301 as_fn_set_status $ac_retval
2303 } # ac_fn_c_compute_int
2305 # ac_fn_c_check_func LINENO FUNC VAR
2306 # ----------------------------------
2307 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2308 ac_fn_c_check_func ()
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2312 $as_echo_n "checking for $2... " >&6; }
2313 if eval \${$3+:} false; then :
2314 $as_echo_n "(cached) " >&6
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2318 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2320 #define $2 innocuous_$2
2322 /* System header to define __stub macros and hopefully few prototypes,
2323 which can conflict with char $2 (); below.
2324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2325 <limits.h> exists even on freestanding compilers. */
2328 # include <limits.h>
2330 # include <assert.h>
2335 /* Override any GCC internal prototype to avoid an error.
2336 Use char because int might match the return type of a GCC
2337 builtin and then its argument prototype would still apply. */
2342 /* The GNU C library defines this for functions which it implements
2343 to always fail with ENOSYS. Some functions are actually named
2344 something starting with __ and the normal name is an alias. */
2345 #if defined __stub_$2 || defined __stub___$2
2357 if ac_fn_c_try_link "$LINENO"; then :
2362 rm -f core conftest.err conftest.$ac_objext \
2363 conftest$ac_exeext conftest.$ac_ext
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 $as_echo "$ac_res" >&6; }
2368 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2370 } # ac_fn_c_check_func
2372 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2373 # -------------------------------------------
2374 # Tests whether TYPE exists after having included INCLUDES, setting cache
2375 # variable VAR accordingly.
2376 ac_fn_c_check_type ()
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380 $as_echo_n "checking for $2... " >&6; }
2381 if eval \${$3+:} false; then :
2382 $as_echo_n "(cached) " >&6
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2397 if ac_fn_c_try_compile "$LINENO"; then :
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2410 if ac_fn_c_try_compile "$LINENO"; then :
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2421 $as_echo "$ac_res" >&6; }
2422 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2424 } # ac_fn_c_check_type
2426 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2427 # ---------------------------------------------
2428 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2430 ac_fn_c_check_decl ()
2432 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2433 as_decl_name=`echo $2|sed 's/ *(.*//'`
2434 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2436 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2437 if eval \${$3+:} false; then :
2438 $as_echo_n "(cached) " >&6
2440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h. */
2446 #ifndef $as_decl_name
2448 (void) $as_decl_use;
2450 (void) $as_decl_name;
2458 if ac_fn_c_try_compile "$LINENO"; then :
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2467 $as_echo "$ac_res" >&6; }
2468 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2470 } # ac_fn_c_check_decl
2472 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2473 # ----------------------------------------------------
2474 # Tries to find if the field MEMBER exists in type AGGR, after including
2475 # INCLUDES, setting cache variable VAR accordingly.
2476 ac_fn_c_check_member ()
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2480 $as_echo_n "checking for $2.$3... " >&6; }
2481 if eval \${$4+:} false; then :
2482 $as_echo_n "(cached) " >&6
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2497 if ac_fn_c_try_compile "$LINENO"; then :
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2507 if (sizeof ac_aggr.$3)
2513 if ac_fn_c_try_compile "$LINENO"; then :
2518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2524 $as_echo "$ac_res" >&6; }
2525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2527 } # ac_fn_c_check_member
2529 # ac_fn_cxx_try_link LINENO
2530 # -------------------------
2531 # Try to link conftest.$ac_ext, and return whether this succeeded.
2532 ac_fn_cxx_try_link ()
2534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535 rm -f conftest.$ac_objext conftest$ac_exeext
2536 if { { ac_try="$ac_link"
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2542 $as_echo "$ac_try_echo"; } >&5
2543 (eval "$ac_link") 2>conftest.err
2545 if test -s conftest.err; then
2546 grep -v '^ *+' conftest.err >conftest.er1
2547 cat conftest.er1 >&5
2548 mv -f conftest.er1 conftest.err
2550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2551 test $ac_status = 0; } && {
2552 test -z "$ac_cxx_werror_flag" ||
2553 test ! -s conftest.err
2554 } && test -s conftest$ac_exeext && {
2555 test "$cross_compiling" = yes ||
2556 test -x conftest$ac_exeext
2560 $as_echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2565 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2566 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2567 # interfere with the next link command; also delete a directory that is
2568 # left behind by Apple's compiler. We do this before executing the actions.
2569 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2571 as_fn_set_status $ac_retval
2573 } # ac_fn_cxx_try_link
2575 # ac_fn_cxx_check_func LINENO FUNC VAR
2576 # ------------------------------------
2577 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2578 ac_fn_cxx_check_func ()
2580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2582 $as_echo_n "checking for $2... " >&6; }
2583 if eval \${$3+:} false; then :
2584 $as_echo_n "(cached) " >&6
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2588 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2590 #define $2 innocuous_$2
2592 /* System header to define __stub macros and hopefully few prototypes,
2593 which can conflict with char $2 (); below.
2594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2595 <limits.h> exists even on freestanding compilers. */
2598 # include <limits.h>
2600 # include <assert.h>
2605 /* Override any GCC internal prototype to avoid an error.
2606 Use char because int might match the return type of a GCC
2607 builtin and then its argument prototype would still apply. */
2612 /* The GNU C library defines this for functions which it implements
2613 to always fail with ENOSYS. Some functions are actually named
2614 something starting with __ and the normal name is an alias. */
2615 #if defined __stub_$2 || defined __stub___$2
2627 if ac_fn_cxx_try_link "$LINENO"; then :
2632 rm -f core conftest.err conftest.$ac_objext \
2633 conftest$ac_exeext conftest.$ac_ext
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2637 $as_echo "$ac_res" >&6; }
2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2640 } # ac_fn_cxx_check_func
2641 cat >config.log <<_ACEOF
2642 This file contains any messages produced by compilers while
2643 running configure, to aid debugging if configure makes a mistake.
2645 It was created by $as_me, which was
2646 generated by GNU Autoconf 2.69. Invocation command line was
2658 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2659 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2660 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2661 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2662 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2664 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2665 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2667 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2668 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2669 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2670 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2671 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2672 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2673 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir=.
2682 $as_echo "PATH: $as_dir"
2698 # Keep a trace of the command line.
2699 # Strip out --no-create and --no-recursion so they do not pile up.
2700 # Strip out --silent because we don't want to record it for future runs.
2701 # Also quote any args containing shell meta-characters.
2702 # Make two passes to allow for proper duplicate-argument suppression.
2706 ac_must_keep_next=false
2712 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2714 | -silent | --silent | --silen | --sile | --sil)
2717 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2720 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2722 as_fn_append ac_configure_args1 " '$ac_arg'"
2723 if test $ac_must_keep_next = true; then
2724 ac_must_keep_next=false # Got value, back to normal.
2727 *=* | --config-cache | -C | -disable-* | --disable-* \
2728 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2729 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2730 | -with-* | --with-* | -without-* | --without-* | --x)
2731 case "$ac_configure_args0 " in
2732 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2735 -* ) ac_must_keep_next=true ;;
2738 as_fn_append ac_configure_args " '$ac_arg'"
2743 { ac_configure_args0=; unset ac_configure_args0;}
2744 { ac_configure_args1=; unset ac_configure_args1;}
2746 # When interrupted or exit'd, cleanup temporary files, and complete
2747 # config.log. We remove comments because anyway the quotes in there
2748 # would cause problems or look ugly.
2749 # WARNING: Use '\'' to represent an apostrophe within the trap.
2750 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2751 trap 'exit_status=$?
2752 # Save into config.log some information that might help in debugging.
2756 $as_echo "## ---------------- ##
2757 ## Cache variables. ##
2758 ## ---------------- ##"
2760 # The following way of writing the cache mishandles newlines in values,
2762 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2763 eval ac_val=\$$ac_var
2767 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2768 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2771 _ | IFS | as_nl) ;; #(
2772 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2773 *) { eval $ac_var=; unset $ac_var;} ;;
2778 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2779 *${as_nl}ac_space=\ *)
2781 "s/'\''/'\''\\\\'\'''\''/g;
2782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2785 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2792 $as_echo "## ----------------- ##
2793 ## Output variables. ##
2794 ## ----------------- ##"
2796 for ac_var in $ac_subst_vars
2798 eval ac_val=\$$ac_var
2800 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2802 $as_echo "$ac_var='\''$ac_val'\''"
2806 if test -n "$ac_subst_files"; then
2807 $as_echo "## ------------------- ##
2808 ## File substitutions. ##
2809 ## ------------------- ##"
2811 for ac_var in $ac_subst_files
2813 eval ac_val=\$$ac_var
2815 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2817 $as_echo "$ac_var='\''$ac_val'\''"
2822 if test -s confdefs.h; then
2823 $as_echo "## ----------- ##
2830 test "$ac_signal" != 0 &&
2831 $as_echo "$as_me: caught signal $ac_signal"
2832 $as_echo "$as_me: exit $exit_status"
2834 rm -f core *.core core.conftest.* &&
2835 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2838 for ac_signal in 1 2 13 15; do
2839 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2843 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2844 rm -f -r conftest* confdefs.h
2846 $as_echo "/* confdefs.h */" > confdefs.h
2848 # Predefined preprocessor variables.
2850 cat >>confdefs.h <<_ACEOF
2851 #define PACKAGE_NAME "$PACKAGE_NAME"
2854 cat >>confdefs.h <<_ACEOF
2855 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2858 cat >>confdefs.h <<_ACEOF
2859 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2862 cat >>confdefs.h <<_ACEOF
2863 #define PACKAGE_STRING "$PACKAGE_STRING"
2866 cat >>confdefs.h <<_ACEOF
2867 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_URL "$PACKAGE_URL"
2875 # Let the site file select an alternate cache file if it wants to.
2876 # Prefer an explicitly selected file to automatically selected ones.
2879 if test -n "$CONFIG_SITE"; then
2880 # We do not want a PATH search for config.site.
2881 case $CONFIG_SITE in #((
2882 -*) ac_site_file1=./$CONFIG_SITE;;
2883 */*) ac_site_file1=$CONFIG_SITE;;
2884 *) ac_site_file1=./$CONFIG_SITE;;
2886 elif test "x$prefix" != xNONE; then
2887 ac_site_file1=$prefix/share/config.site
2888 ac_site_file2=$prefix/etc/config.site
2890 ac_site_file1=$ac_default_prefix/share/config.site
2891 ac_site_file2=$ac_default_prefix/etc/config.site
2893 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2895 test "x$ac_site_file" = xNONE && continue
2896 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2898 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2899 sed 's/^/| /' "$ac_site_file" >&5
2901 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2903 as_fn_error $? "failed to load site script $ac_site_file
2904 See \`config.log' for more details" "$LINENO" 5; }
2908 if test -r "$cache_file"; then
2909 # Some versions of bash will fail to source /dev/null (special files
2910 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2911 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2913 $as_echo "$as_me: loading cache $cache_file" >&6;}
2915 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2916 *) . "./$cache_file";;
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2921 $as_echo "$as_me: creating cache $cache_file" >&6;}
2925 as_fn_append ac_header_list " stdlib.h"
2926 as_fn_append ac_header_list " unistd.h"
2927 as_fn_append ac_header_list " sys/param.h"
2928 # Check that the precious variables saved in the cache have kept the same
2930 ac_cache_corrupted=false
2931 for ac_var in $ac_precious_vars; do
2932 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2933 eval ac_new_set=\$ac_env_${ac_var}_set
2934 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2935 eval ac_new_val=\$ac_env_${ac_var}_value
2936 case $ac_old_set,$ac_new_set in
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2939 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2940 ac_cache_corrupted=: ;;
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2943 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2944 ac_cache_corrupted=: ;;
2947 if test "x$ac_old_val" != "x$ac_new_val"; then
2948 # differences in whitespace do not lead to failure.
2949 ac_old_val_w=`echo x $ac_old_val`
2950 ac_new_val_w=`echo x $ac_new_val`
2951 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2953 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2954 ac_cache_corrupted=:
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2957 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2958 eval $ac_var=\$ac_old_val
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2961 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2963 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2966 # Pass precious variables to config.status.
2967 if test "$ac_new_set" = set; then
2969 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2970 *) ac_arg=$ac_var=$ac_new_val ;;
2972 case " $ac_configure_args " in
2973 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2974 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2978 if $ac_cache_corrupted; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2982 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2983 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2985 ## -------------------- ##
2986 ## Main body of script. ##
2987 ## -------------------- ##
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 ac_config_headers="$ac_config_headers config.h:config.in"
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3004 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3005 # Check whether --enable-maintainer-mode was given.
3006 if test "${enable_maintainer_mode+set}" = set; then :
3007 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3009 USE_MAINTAINER_MODE=no
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3013 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3014 if test $USE_MAINTAINER_MODE = yes; then
3015 MAINTAINER_MODE_TRUE=
3016 MAINTAINER_MODE_FALSE='#'
3018 MAINTAINER_MODE_TRUE='#'
3019 MAINTAINER_MODE_FALSE=
3022 MAINT=$MAINTAINER_MODE_TRUE
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3033 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_CC+:} false; then :
3037 $as_echo_n "(cached) " >&6
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3070 if test -z "$ac_cv_prog_CC"; then
3072 # Extract the first word of "gcc", so it can be a program name with args.
3073 set dummy gcc; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3077 $as_echo_n "(cached) " >&6
3079 if test -n "$ac_ct_CC"; then
3080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_ac_ct_CC="gcc"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3100 if test -n "$ac_ct_CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3102 $as_echo "$ac_ct_CC" >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3108 if test "x$ac_ct_CC" = x; then
3111 case $cross_compiling:$ac_tool_warned in
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3115 ac_tool_warned=yes ;;
3123 if test -z "$CC"; then
3124 if test -n "$ac_tool_prefix"; then
3125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3126 set dummy ${ac_tool_prefix}cc; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if ${ac_cv_prog_CC+:} false; then :
3130 $as_echo_n "(cached) " >&6
3132 if test -n "$CC"; then
3133 ac_cv_prog_CC="$CC" # Let the user override the test.
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142 ac_cv_prog_CC="${ac_tool_prefix}cc"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 if test -n "$CC"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3155 $as_echo "$CC" >&6; }
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3164 if test -z "$CC"; then
3165 # Extract the first word of "cc", so it can be a program name with args.
3166 set dummy cc; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_CC+:} false; then :
3170 $as_echo_n "(cached) " >&6
3172 if test -n "$CC"; then
3173 ac_cv_prog_CC="$CC" # Let the user override the test.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3184 ac_prog_rejected=yes
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 if test $ac_prog_rejected = yes; then
3196 # We found a bogon in the path, so make sure we never use it.
3197 set dummy $ac_cv_prog_CC
3199 if test $# != 0; then
3200 # We chose a different compiler from the bogus one.
3201 # However, it has the same basename, so the bogon will be chosen
3202 # first if we set CC to just the basename; use the full file name.
3204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3210 if test -n "$CC"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3212 $as_echo "$CC" >&6; }
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3220 if test -z "$CC"; then
3221 if test -n "$ac_tool_prefix"; then
3222 for ac_prog in cl.exe
3224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_CC+:} false; then :
3229 $as_echo_n "(cached) " >&6
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 if test -n "$CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3261 test -n "$CC" && break
3264 if test -z "$CC"; then
3266 for ac_prog in cl.exe
3268 # Extract the first word of "$ac_prog", so it can be a program name with args.
3269 set dummy $ac_prog; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3273 $as_echo_n "(cached) " >&6
3275 if test -n "$ac_ct_CC"; then
3276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_ac_ct_CC="$ac_prog"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3296 if test -n "$ac_ct_CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3298 $as_echo "$ac_ct_CC" >&6; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3305 test -n "$ac_ct_CC" && break
3308 if test "x$ac_ct_CC" = x; then
3311 case $cross_compiling:$ac_tool_warned in
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3315 ac_tool_warned=yes ;;
3324 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326 as_fn_error $? "no acceptable C compiler found in \$PATH
3327 See \`config.log' for more details" "$LINENO" 5; }
3329 # Provide some information about the compiler.
3330 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3333 for ac_option in --version -v -V -qversion; do
3334 { { ac_try="$ac_compiler $ac_option >&5"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3343 if test -s conftest.err; then
3345 ... rest of stderr output deleted ...
3346 10q' conftest.err >conftest.er1
3347 cat conftest.er1 >&5
3349 rm -f conftest.er1 conftest.err
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3365 ac_clean_files_save=$ac_clean_files
3366 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3367 # Try to create an executable without -o first, disregard a.out.
3368 # It will help us diagnose broken compilers, and finding out an intuition
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3371 $as_echo_n "checking whether the C compiler works... " >&6; }
3372 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3374 # The possible output files:
3375 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3378 for ac_file in $ac_files
3381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3382 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3387 if { { ac_try="$ac_link_default"
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_link_default") 2>&5
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
3398 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3399 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3400 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3401 # so that the user can short-circuit this test for compilers unknown to
3403 for ac_file in $ac_files ''
3405 test -f "$ac_file" || continue
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3410 # We found the default executable, but exeext='' is most
3414 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3418 # We set ac_cv_exeext here because the later test for it is not
3419 # safe: cross compilers may not add the suffix if given an `-o'
3420 # argument, so we may need to know it at that point already.
3421 # Even if this section looks crufty: it has the advantage of
3428 test "$ac_cv_exeext" = no && ac_cv_exeext=
3433 if test -z "$ac_file"; then :
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 $as_echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441 as_fn_error 77 "C compiler cannot create executables
3442 See \`config.log' for more details" "$LINENO" 5; }
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3445 $as_echo "yes" >&6; }
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3448 $as_echo_n "checking for C compiler default output file name... " >&6; }
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3450 $as_echo "$ac_file" >&6; }
3451 ac_exeext=$ac_cv_exeext
3453 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3454 ac_clean_files=$ac_clean_files_save
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3456 $as_echo_n "checking for suffix of executables... " >&6; }
3457 if { { ac_try="$ac_link"
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463 $as_echo "$ac_try_echo"; } >&5
3464 (eval "$ac_link") 2>&5
3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }; then :
3468 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3469 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3470 # work properly (i.e., refer to `conftest.exe'), while it won't with
3472 for ac_file in conftest.exe conftest conftest.*; do
3473 test -f "$ac_file" || continue
3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3476 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3485 See \`config.log' for more details" "$LINENO" 5; }
3487 rm -f conftest conftest$ac_cv_exeext
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3489 $as_echo "$ac_cv_exeext" >&6; }
3491 rm -f conftest.$ac_ext
3492 EXEEXT=$ac_cv_exeext
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3500 FILE *f = fopen ("conftest.out", "w");
3501 return ferror (f) || fclose (f) != 0;
3507 ac_clean_files="$ac_clean_files conftest.out"
3508 # Check that the compiler produces executables we can run. If not, either
3509 # the compiler is broken, or we cross compile.
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3511 $as_echo_n "checking whether we are cross compiling... " >&6; }
3512 if test "$cross_compiling" != yes; then
3513 { { ac_try="$ac_link"
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_link") 2>&5
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }
3524 if { ac_try='./conftest$ac_cv_exeext'
3525 { { case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530 $as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_try") 2>&5
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; }; then
3537 if test "$cross_compiling" = maybe; then
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 as_fn_error $? "cannot run C compiled programs.
3543 If you meant to cross compile, use \`--host'.
3544 See \`config.log' for more details" "$LINENO" 5; }
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3549 $as_echo "$cross_compiling" >&6; }
3551 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3552 ac_clean_files=$ac_clean_files_save
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3554 $as_echo_n "checking for suffix of object files... " >&6; }
3555 if ${ac_cv_objext+:} false; then :
3556 $as_echo_n "(cached) " >&6
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3569 rm -f conftest.o conftest.obj
3570 if { { ac_try="$ac_compile"
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576 $as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_compile") 2>&5
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; then :
3581 for ac_file in conftest.o conftest.obj conftest.*; do
3582 test -f "$ac_file" || continue;
3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3585 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3590 $as_echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595 as_fn_error $? "cannot compute suffix of object files: cannot compile
3596 See \`config.log' for more details" "$LINENO" 5; }
3598 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3601 $as_echo "$ac_cv_objext" >&6; }
3602 OBJEXT=$ac_cv_objext
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3605 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3606 if ${ac_cv_c_compiler_gnu+:} false; then :
3607 $as_echo_n "(cached) " >&6
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3623 if ac_fn_c_try_compile "$LINENO"; then :
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3633 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3634 if test $ac_compiler_gnu = yes; then
3639 ac_test_CFLAGS=${CFLAGS+set}
3640 ac_save_CFLAGS=$CFLAGS
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3642 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3643 if ${ac_cv_prog_cc_g+:} false; then :
3644 $as_echo_n "(cached) " >&6
3646 ac_save_c_werror_flag=$ac_c_werror_flag
3647 ac_c_werror_flag=yes
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3661 if ac_fn_c_try_compile "$LINENO"; then :
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3676 if ac_fn_c_try_compile "$LINENO"; then :
3679 ac_c_werror_flag=$ac_save_c_werror_flag
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3692 if ac_fn_c_try_compile "$LINENO"; then :
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3703 $as_echo "$ac_cv_prog_cc_g" >&6; }
3704 if test "$ac_test_CFLAGS" = set; then
3705 CFLAGS=$ac_save_CFLAGS
3706 elif test $ac_cv_prog_cc_g = yes; then
3707 if test "$GCC" = yes; then
3713 if test "$GCC" = yes; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3720 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3721 if ${ac_cv_prog_cc_c89+:} false; then :
3722 $as_echo_n "(cached) " >&6
3724 ac_cv_prog_cc_c89=no
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3731 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3732 struct buf { int x; };
3733 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3734 static char *e (p, i)
3740 static char *f (char * (*g) (char **, int), char **p, ...)
3745 s = g (p, va_arg (v,int));
3750 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3751 function prototypes and stuff, but not '\xHH' hex character constants.
3752 These don't provoke an error unfortunately, instead are silently treated
3753 as 'x'. The following induces an error, until -std is added to get
3754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3755 array size at least. It's necessary to write '\x00'==0 to get something
3756 that's true only with -std. */
3757 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3759 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3760 inside strings and character constants. */
3762 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3764 int test (int i, double x);
3765 struct s1 {int (*f) (int a);};
3766 struct s2 {int (*f) (double a);};
3767 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3778 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3779 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3781 CC="$ac_save_CC $ac_arg"
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783 ac_cv_prog_cc_c89=$ac_arg
3785 rm -f core conftest.err conftest.$ac_objext
3786 test "x$ac_cv_prog_cc_c89" != "xno" && break
3788 rm -f conftest.$ac_ext
3793 case "x$ac_cv_prog_cc_c89" in
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3796 $as_echo "none needed" >&6; } ;;
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3799 $as_echo "unsupported" >&6; } ;;
3801 CC="$CC $ac_cv_prog_cc_c89"
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3803 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3805 if test "x$ac_cv_prog_cc_c89" != xno; then :
3810 ac_cpp='$CPP $CPPFLAGS'
3811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 ac_cpp='$CXXCPP $CPPFLAGS'
3817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3820 if test -z "$CXX"; then
3821 if test -n "$CCC"; then
3824 if test -n "$ac_tool_prefix"; then
3825 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if ${ac_cv_prog_CXX+:} false; then :
3832 $as_echo_n "(cached) " >&6
3834 if test -n "$CXX"; then
3835 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 if test -n "$CXX"; then
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3857 $as_echo "$CXX" >&6; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3864 test -n "$CXX" && break
3867 if test -z "$CXX"; then
3869 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3871 # Extract the first word of "$ac_prog", so it can be a program name with args.
3872 set dummy $ac_prog; ac_word=$2
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874 $as_echo_n "checking for $ac_word... " >&6; }
3875 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3876 $as_echo_n "(cached) " >&6
3878 if test -n "$ac_ct_CXX"; then
3879 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888 ac_cv_prog_ac_ct_CXX="$ac_prog"
3889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3899 if test -n "$ac_ct_CXX"; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3901 $as_echo "$ac_ct_CXX" >&6; }
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3908 test -n "$ac_ct_CXX" && break
3911 if test "x$ac_ct_CXX" = x; then
3914 case $cross_compiling:$ac_tool_warned in
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3918 ac_tool_warned=yes ;;
3926 # Provide some information about the compiler.
3927 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3930 for ac_option in --version -v -V -qversion; do
3931 { { ac_try="$ac_compiler $ac_option >&5"
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 $as_echo "$ac_try_echo"; } >&5
3938 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3940 if test -s conftest.err; then
3942 ... rest of stderr output deleted ...
3943 10q' conftest.err >conftest.er1
3944 cat conftest.er1 >&5
3946 rm -f conftest.er1 conftest.err
3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3952 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3953 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3954 $as_echo_n "(cached) " >&6
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3970 if ac_fn_cxx_try_compile "$LINENO"; then :
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3980 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3981 if test $ac_compiler_gnu = yes; then
3986 ac_test_CXXFLAGS=${CXXFLAGS+set}
3987 ac_save_CXXFLAGS=$CXXFLAGS
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3989 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3990 if ${ac_cv_prog_cxx_g+:} false; then :
3991 $as_echo_n "(cached) " >&6
3993 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3994 ac_cxx_werror_flag=yes
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4008 if ac_fn_cxx_try_compile "$LINENO"; then :
4009 ac_cv_prog_cxx_g=yes
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4023 if ac_fn_cxx_try_compile "$LINENO"; then :
4026 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4039 if ac_fn_cxx_try_compile "$LINENO"; then :
4040 ac_cv_prog_cxx_g=yes
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4050 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4051 if test "$ac_test_CXXFLAGS" = set; then
4052 CXXFLAGS=$ac_save_CXXFLAGS
4053 elif test $ac_cv_prog_cxx_g = yes; then
4054 if test "$GXX" = yes; then
4060 if test "$GXX" = yes; then
4067 ac_cpp='$CPP $CPPFLAGS'
4068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4080 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4081 # On Suns, sometimes $CPP names a directory.
4082 if test -n "$CPP" && test -d "$CPP"; then
4085 if test -z "$CPP"; then
4086 if ${ac_cv_prog_CPP+:} false; then :
4087 $as_echo_n "(cached) " >&6
4089 # Double quotes because CPP needs to be expanded
4090 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4093 for ac_c_preproc_warn_flag in '' yes
4095 # Use a header file that comes with gcc, so configuring glibc
4096 # with a fresh cross-compiler works.
4097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4098 # <limits.h> exists even on freestanding compilers.
4099 # On the NeXT, cc -E runs the code through the compiler's parser,
4100 # not just through cpp. "Syntax error" is here to catch this case.
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4104 # include <limits.h>
4106 # include <assert.h>
4110 if ac_fn_c_try_cpp "$LINENO"; then :
4113 # Broken: fails on valid input.
4116 rm -f conftest.err conftest.i conftest.$ac_ext
4118 # OK, works on sane cases. Now check whether nonexistent headers
4119 # can be detected and how.
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4124 if ac_fn_c_try_cpp "$LINENO"; then :
4125 # Broken: success on invalid input.
4128 # Passes both tests.
4132 rm -f conftest.err conftest.i conftest.$ac_ext
4135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4136 rm -f conftest.i conftest.err conftest.$ac_ext
4137 if $ac_preproc_ok; then :
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4150 $as_echo "$CPP" >&6; }
4152 for ac_c_preproc_warn_flag in '' yes
4154 # Use a header file that comes with gcc, so configuring glibc
4155 # with a fresh cross-compiler works.
4156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4157 # <limits.h> exists even on freestanding compilers.
4158 # On the NeXT, cc -E runs the code through the compiler's parser,
4159 # not just through cpp. "Syntax error" is here to catch this case.
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4163 # include <limits.h>
4165 # include <assert.h>
4169 if ac_fn_c_try_cpp "$LINENO"; then :
4172 # Broken: fails on valid input.
4175 rm -f conftest.err conftest.i conftest.$ac_ext
4177 # OK, works on sane cases. Now check whether nonexistent headers
4178 # can be detected and how.
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4181 #include <ac_nonexistent.h>
4183 if ac_fn_c_try_cpp "$LINENO"; then :
4184 # Broken: success on invalid input.
4187 # Passes both tests.
4191 rm -f conftest.err conftest.i conftest.$ac_ext
4194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4195 rm -f conftest.i conftest.err conftest.$ac_ext
4196 if $ac_preproc_ok; then :
4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4202 See \`config.log' for more details" "$LINENO" 5; }
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4213 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4214 if ${ac_cv_path_GREP+:} false; then :
4215 $as_echo_n "(cached) " >&6
4217 if test -z "$GREP"; then
4218 ac_path_GREP_found=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4224 test -z "$as_dir" && as_dir=.
4225 for ac_prog in grep ggrep; do
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4228 as_fn_executable_p "$ac_path_GREP" || continue
4229 # Check for GNU ac_path_GREP and select it if it is found.
4230 # Check for GNU $ac_path_GREP
4231 case `"$ac_path_GREP" --version 2>&1` in
4233 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4236 $as_echo_n 0123456789 >"conftest.in"
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 $as_echo 'GREP' >> "conftest.nl"
4243 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245 as_fn_arith $ac_count + 1 && ac_count=$as_val
4246 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_GREP="$ac_path_GREP"
4249 ac_path_GREP_max=$ac_count
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4257 $ac_path_GREP_found && break 3
4262 if test -z "$ac_cv_path_GREP"; then
4263 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4266 ac_cv_path_GREP=$GREP
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4271 $as_echo "$ac_cv_path_GREP" >&6; }
4272 GREP="$ac_cv_path_GREP"
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4276 $as_echo_n "checking for egrep... " >&6; }
4277 if ${ac_cv_path_EGREP+:} false; then :
4278 $as_echo_n "(cached) " >&6
4280 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4281 then ac_cv_path_EGREP="$GREP -E"
4283 if test -z "$EGREP"; then
4284 ac_path_EGREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in egrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4294 as_fn_executable_p "$ac_path_EGREP" || continue
4295 # Check for GNU ac_path_EGREP and select it if it is found.
4296 # Check for GNU $ac_path_EGREP
4297 case `"$ac_path_EGREP" --version 2>&1` in
4299 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4302 $as_echo_n 0123456789 >"conftest.in"
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'EGREP' >> "conftest.nl"
4309 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
4312 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_EGREP="$ac_path_EGREP"
4315 ac_path_EGREP_max=$ac_count
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4323 $ac_path_EGREP_found && break 3
4328 if test -z "$ac_cv_path_EGREP"; then
4329 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4332 ac_cv_path_EGREP=$EGREP
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4338 $as_echo "$ac_cv_path_EGREP" >&6; }
4339 EGREP="$ac_cv_path_EGREP"
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4343 $as_echo_n "checking for ANSI C header files... " >&6; }
4344 if ${ac_cv_header_stdc+:} false; then :
4345 $as_echo_n "(cached) " >&6
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4362 if ac_fn_c_try_compile "$LINENO"; then :
4363 ac_cv_header_stdc=yes
4365 ac_cv_header_stdc=no
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 if test $ac_cv_header_stdc = yes; then
4370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377 $EGREP "memchr" >/dev/null 2>&1; then :
4380 ac_cv_header_stdc=no
4386 if test $ac_cv_header_stdc = yes; then
4387 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 $EGREP "free" >/dev/null 2>&1; then :
4397 ac_cv_header_stdc=no
4403 if test $ac_cv_header_stdc = yes; then
4404 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4405 if test "$cross_compiling" = yes; then :
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4412 #if ((' ' & 0x0FF) == 0x020)
4413 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4414 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4416 # define ISLOWER(c) \
4417 (('a' <= (c) && (c) <= 'i') \
4418 || ('j' <= (c) && (c) <= 'r') \
4419 || ('s' <= (c) && (c) <= 'z'))
4420 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4423 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4428 for (i = 0; i < 256; i++)
4429 if (XOR (islower (i), ISLOWER (i))
4430 || toupper (i) != TOUPPER (i))
4435 if ac_fn_c_try_run "$LINENO"; then :
4438 ac_cv_header_stdc=no
4440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4441 conftest.$ac_objext conftest.beam conftest.$ac_ext
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4447 $as_echo "$ac_cv_header_stdc" >&6; }
4448 if test $ac_cv_header_stdc = yes; then
4450 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4454 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4455 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4456 inttypes.h stdint.h unistd.h
4458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4459 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4461 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4462 cat >>confdefs.h <<_ACEOF
4463 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4472 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4473 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4480 if test "$MINIX" = yes; then
4482 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4485 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4488 $as_echo "#define _MINIX 1" >>confdefs.h
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4494 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4495 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4496 $as_echo_n "(cached) " >&6
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4501 # define __EXTENSIONS__ 1
4502 $ac_includes_default
4511 if ac_fn_c_try_compile "$LINENO"; then :
4512 ac_cv_safe_to_define___extensions__=yes
4514 ac_cv_safe_to_define___extensions__=no
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4519 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4520 test $ac_cv_safe_to_define___extensions__ = yes &&
4521 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4523 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4525 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4527 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4529 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4533 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4534 if test -f "$ac_dir/install-sh"; then
4536 ac_install_sh="$ac_aux_dir/install-sh -c"
4538 elif test -f "$ac_dir/install.sh"; then
4540 ac_install_sh="$ac_aux_dir/install.sh -c"
4542 elif test -f "$ac_dir/shtool"; then
4544 ac_install_sh="$ac_aux_dir/shtool install -c"
4548 if test -z "$ac_aux_dir"; then
4549 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4552 # These three variables are undocumented and unsupported,
4553 # and are intended to be withdrawn in a future Autoconf release.
4554 # They can cause serious problems if a builder's source tree is in a directory
4555 # whose full name contains unusual characters.
4556 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4557 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4558 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4561 # Make sure we can run config.sub.
4562 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4563 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4566 $as_echo_n "checking build system type... " >&6; }
4567 if ${ac_cv_build+:} false; then :
4568 $as_echo_n "(cached) " >&6
4570 ac_build_alias=$build_alias
4571 test "x$ac_build_alias" = x &&
4572 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4573 test "x$ac_build_alias" = x &&
4574 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4575 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4576 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4580 $as_echo "$ac_cv_build" >&6; }
4581 case $ac_cv_build in
4583 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4586 ac_save_IFS=$IFS; IFS='-'
4592 # Remember, the first character of IFS is used to create $*,
4593 # except with old shells:
4596 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4600 $as_echo_n "checking host system type... " >&6; }
4601 if ${ac_cv_host+:} false; then :
4602 $as_echo_n "(cached) " >&6
4604 if test "x$host_alias" = x; then
4605 ac_cv_host=$ac_cv_build
4607 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4608 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4613 $as_echo "$ac_cv_host" >&6; }
4616 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4619 ac_save_IFS=$IFS; IFS='-'
4625 # Remember, the first character of IFS is used to create $*,
4626 # except with old shells:
4629 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4633 $as_echo_n "checking target system type... " >&6; }
4634 if ${ac_cv_target+:} false; then :
4635 $as_echo_n "(cached) " >&6
4637 if test "x$target_alias" = x; then
4638 ac_cv_target=$ac_cv_host
4640 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4646 $as_echo "$ac_cv_target" >&6; }
4647 case $ac_cv_target in
4649 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4651 target=$ac_cv_target
4652 ac_save_IFS=$IFS; IFS='-'
4658 # Remember, the first character of IFS is used to create $*,
4659 # except with old shells:
4662 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4665 # The aliases save the names the user supplied, while $host etc.
4666 # will get canonicalized.
4667 test -n "$target_alias" &&
4668 test "$program_prefix$program_suffix$program_transform_name" = \
4670 program_prefix=${target_alias}-
4672 # The tests for host and target for $enable_largefile require
4677 # As the $enable_largefile decision depends on --enable-plugins we must set it
4678 # even in directories otherwise not depending on the $plugins option.
4682 for ac_header in dlfcn.h
4684 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4686 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4687 cat >>confdefs.h <<_ACEOF
4688 #define HAVE_DLFCN_H 1
4695 for ac_header in windows.h
4697 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4699 if test "x$ac_cv_header_windows_h" = xyes; then :
4700 cat >>confdefs.h <<_ACEOF
4701 #define HAVE_WINDOWS_H 1
4709 # Check whether --enable-plugins was given.
4710 if test "${enable_plugins+set}" = set; then :
4711 enableval=$enable_plugins; case "${enableval}" in
4714 if test "$maybe_plugins" != "yes" ; then
4715 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4719 plugins=$maybe_plugins
4723 if test "$plugins" = "yes"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4725 $as_echo_n "checking for library containing dlsym... " >&6; }
4726 if ${ac_cv_search_dlsym+:} false; then :
4727 $as_echo_n "(cached) " >&6
4729 ac_func_search_save_LIBS=$LIBS
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4733 /* Override any GCC internal prototype to avoid an error.
4734 Use char because int might match the return type of a GCC
4735 builtin and then its argument prototype would still apply. */
4748 for ac_lib in '' dl; do
4749 if test -z "$ac_lib"; then
4750 ac_res="none required"
4753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4755 if ac_fn_c_try_link "$LINENO"; then :
4756 ac_cv_search_dlsym=$ac_res
4758 rm -f core conftest.err conftest.$ac_objext \
4760 if ${ac_cv_search_dlsym+:} false; then :
4764 if ${ac_cv_search_dlsym+:} false; then :
4767 ac_cv_search_dlsym=no
4770 LIBS=$ac_func_search_save_LIBS
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4773 $as_echo "$ac_cv_search_dlsym" >&6; }
4774 ac_res=$ac_cv_search_dlsym
4775 if test "$ac_res" != no; then :
4776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4784 sparc-*-solaris*|i?86-*-solaris*)
4785 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4786 # were mutually exclusive until Solaris 11.3. Without procfs support,
4787 # the bfd/ elf module cannot provide certain routines such as
4788 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4789 # explicitly requested large-file support through the
4790 # --enable-largefile switch, disable large-file support in favor of
4793 # Check if <sys/procfs.h> is incompatible with large-file support.
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796 #define _FILE_OFFSET_BITS 64
4797 #define _STRUCTURED_PROC 1
4798 #include <sys/procfs.h>
4807 if ac_fn_c_try_compile "$LINENO"; then :
4808 acx_cv_procfs_lfs=yes
4810 acx_cv_procfs_lfs=no
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 # Forcefully disable large-file support only if necessary, gdb is in
4816 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4817 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
4818 : ${enable_largefile="no"}
4819 if test "$plugins" = yes; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4821 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4822 $as_echo "$as_me: WARNING:
4823 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4828 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4829 # benefit of g++ 9+ which predefines it on Solaris.
4830 if test "$enable_largefile" = no; then
4831 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
4837 # Check whether --enable-largefile was given.
4838 if test "${enable_largefile+set}" = set; then :
4839 enableval=$enable_largefile;
4842 if test "$enable_largefile" != no; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4845 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4846 if ${ac_cv_sys_largefile_CC+:} false; then :
4847 $as_echo_n "(cached) " >&6
4849 ac_cv_sys_largefile_CC=no
4850 if test "$GCC" != yes; then
4853 # IRIX 6.2 and later do not support large files by default,
4854 # so use the C compiler's -n32 option if that helps.
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857 #include <sys/types.h>
4858 /* Check that off_t can represent 2**63 - 1 correctly.
4859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4860 since some C++ compilers masquerading as C compilers
4861 incorrectly reject 9223372036854775807. */
4862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4864 && LARGE_OFF_T % 2147483647 == 1)
4874 if ac_fn_c_try_compile "$LINENO"; then :
4877 rm -f core conftest.err conftest.$ac_objext
4879 if ac_fn_c_try_compile "$LINENO"; then :
4880 ac_cv_sys_largefile_CC=' -n32'; break
4882 rm -f core conftest.err conftest.$ac_objext
4886 rm -f conftest.$ac_ext
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4890 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4891 if test "$ac_cv_sys_largefile_CC" != no; then
4892 CC=$CC$ac_cv_sys_largefile_CC
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4896 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4897 if ${ac_cv_sys_file_offset_bits+:} false; then :
4898 $as_echo_n "(cached) " >&6
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903 #include <sys/types.h>
4904 /* Check that off_t can represent 2**63 - 1 correctly.
4905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4906 since some C++ compilers masquerading as C compilers
4907 incorrectly reject 9223372036854775807. */
4908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4910 && LARGE_OFF_T % 2147483647 == 1)
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921 ac_cv_sys_file_offset_bits=no; break
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #define _FILE_OFFSET_BITS 64
4927 #include <sys/types.h>
4928 /* Check that off_t can represent 2**63 - 1 correctly.
4929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4930 since some C++ compilers masquerading as C compilers
4931 incorrectly reject 9223372036854775807. */
4932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4934 && LARGE_OFF_T % 2147483647 == 1)
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 ac_cv_sys_file_offset_bits=64; break
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 ac_cv_sys_file_offset_bits=unknown
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4953 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4954 case $ac_cv_sys_file_offset_bits in #(
4957 cat >>confdefs.h <<_ACEOF
4958 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4963 if test $ac_cv_sys_file_offset_bits = unknown; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4965 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4966 if ${ac_cv_sys_large_files+:} false; then :
4967 $as_echo_n "(cached) " >&6
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972 #include <sys/types.h>
4973 /* Check that off_t can represent 2**63 - 1 correctly.
4974 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4975 since some C++ compilers masquerading as C compilers
4976 incorrectly reject 9223372036854775807. */
4977 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4978 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4979 && LARGE_OFF_T % 2147483647 == 1)
4989 if ac_fn_c_try_compile "$LINENO"; then :
4990 ac_cv_sys_large_files=no; break
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995 #define _LARGE_FILES 1
4996 #include <sys/types.h>
4997 /* Check that off_t can represent 2**63 - 1 correctly.
4998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4999 since some C++ compilers masquerading as C compilers
5000 incorrectly reject 9223372036854775807. */
5001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5003 && LARGE_OFF_T % 2147483647 == 1)
5013 if ac_fn_c_try_compile "$LINENO"; then :
5014 ac_cv_sys_large_files=1; break
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cv_sys_large_files=unknown
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5022 $as_echo "$ac_cv_sys_large_files" >&6; }
5023 case $ac_cv_sys_large_files in #(
5026 cat >>confdefs.h <<_ACEOF
5027 #define _LARGE_FILES $ac_cv_sys_large_files
5038 # Expand $ac_aux_dir to an absolute path.
5039 am_aux_dir=`cd "$ac_aux_dir" && pwd`
5041 if test x"${install_sh+set}" != xset; then
5044 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5046 install_sh="\${SHELL} $am_aux_dir/install-sh"
5050 # Installed binaries are usually stripped using 'strip' when the user
5051 # run "make install-strip". However 'strip' might not be the right
5052 # tool to use in cross-compilation environments, therefore Automake
5053 # will honor the 'STRIP' environment variable to overrule this program.
5054 if test "$cross_compiling" != no; then
5055 if test -n "$ac_tool_prefix"; then
5056 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5057 set dummy ${ac_tool_prefix}strip; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_prog_STRIP+:} false; then :
5061 $as_echo_n "(cached) " >&6
5063 if test -n "$STRIP"; then
5064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 STRIP=$ac_cv_prog_STRIP
5084 if test -n "$STRIP"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5086 $as_echo "$STRIP" >&6; }
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5094 if test -z "$ac_cv_prog_STRIP"; then
5096 # Extract the first word of "strip", so it can be a program name with args.
5097 set dummy strip; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5101 $as_echo_n "(cached) " >&6
5103 if test -n "$ac_ct_STRIP"; then
5104 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113 ac_cv_prog_ac_ct_STRIP="strip"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5124 if test -n "$ac_ct_STRIP"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5126 $as_echo "$ac_ct_STRIP" >&6; }
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5132 if test "x$ac_ct_STRIP" = x; then
5135 case $cross_compiling:$ac_tool_warned in
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5139 ac_tool_warned=yes ;;
5144 STRIP="$ac_cv_prog_STRIP"
5148 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5152 for ac_dir in .. "$srcdir"/..; do
5153 if test -f "$ac_dir/install-sh"; then
5155 ac_install_sh="$ac_aux_dir/install-sh -c"
5157 elif test -f "$ac_dir/install.sh"; then
5159 ac_install_sh="$ac_aux_dir/install.sh -c"
5161 elif test -f "$ac_dir/shtool"; then
5163 ac_install_sh="$ac_aux_dir/shtool install -c"
5167 if test -z "$ac_aux_dir"; then
5168 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5171 # These three variables are undocumented and unsupported,
5172 # and are intended to be withdrawn in a future Autoconf release.
5173 # They can cause serious problems if a builder's source tree is in a directory
5174 # whose full name contains unusual characters.
5175 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5176 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5177 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5181 # Set build, build_cpu, build_vendor and build_os.
5184 # Set host, host_cpu, host_vendor, and host_os.
5187 # Set target, target_cpu, target_vendor, and target_os.
5190 case ${build_alias} in
5191 "") build_noncanonical=${build} ;;
5192 *) build_noncanonical=${build_alias} ;;
5195 case ${host_alias} in
5196 "") host_noncanonical=${build_noncanonical} ;;
5197 *) host_noncanonical=${host_alias} ;;
5200 case ${target_alias} in
5201 "") target_noncanonical=${host_noncanonical} ;;
5202 *) target_noncanonical=${target_alias} ;;
5208 test "$program_prefix" != NONE &&
5209 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5210 # Use a double $ so make ignores it.
5211 test "$program_suffix" != NONE &&
5212 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5213 # Double any \ or $.
5214 # By default was `s,x,x', remove it if useless.
5215 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5216 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5219 # We require a C++11 compiler. Check if one is available, and if
5220 # necessary, set CXX_DIALECT to some -std=xxx switch.
5222 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5224 ac_cpp='$CXXCPP $CPPFLAGS'
5225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5231 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5232 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5233 $as_echo_n "(cached) " >&6
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5239 // If the compiler admits that it is not ready for C++11, why torture it?
5240 // Hopefully, this will speed up the test.
5244 #error "This is not a C++ compiler"
5246 #elif __cplusplus < 201103L
5248 #error "This is not a C++11 compiler"
5255 namespace test_static_assert
5258 template <typename T>
5261 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5266 namespace test_final_override
5274 struct Derived : public Base
5276 virtual void f() override {}
5281 namespace test_double_right_angle_brackets
5284 template < typename T >
5287 typedef check<void> single_type;
5288 typedef check<check<void>> double_type;
5289 typedef check<check<check<void>>> triple_type;
5290 typedef check<check<check<check<void>>>> quadruple_type;
5294 namespace test_decltype
5307 namespace test_type_deduction
5310 template < typename T1, typename T2 >
5313 static const bool value = false;
5316 template < typename T >
5317 struct is_same<T, T>
5319 static const bool value = true;
5322 template < typename T1, typename T2 >
5324 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5330 test(const int c, volatile int v)
5332 static_assert(is_same<int, decltype(0)>::value == true, "");
5333 static_assert(is_same<int, decltype(c)>::value == false, "");
5334 static_assert(is_same<int, decltype(v)>::value == false, "");
5337 auto sumi = ac + av + 'x';
5338 auto sumf = ac + av + 1.0;
5339 static_assert(is_same<int, decltype(ac)>::value == true, "");
5340 static_assert(is_same<int, decltype(av)>::value == true, "");
5341 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5342 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5343 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5344 return (sumf > 0.0) ? sumi : add(c, v);
5349 namespace test_noexcept
5352 int f() { return 0; }
5353 int g() noexcept { return 0; }
5355 static_assert(noexcept(f()) == false, "");
5356 static_assert(noexcept(g()) == true, "");
5360 namespace test_constexpr
5363 template < typename CharT >
5364 unsigned long constexpr
5365 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5367 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5370 template < typename CharT >
5371 unsigned long constexpr
5372 strlen_c(const CharT *const s) noexcept
5374 return strlen_c_r(s, 0UL);
5377 static_assert(strlen_c("") == 0UL, "");
5378 static_assert(strlen_c("1") == 1UL, "");
5379 static_assert(strlen_c("example") == 7UL, "");
5380 static_assert(strlen_c("another\0example") == 7UL, "");
5384 namespace test_rvalue_references
5390 static constexpr int value = N;
5393 answer<1> f(int&) { return answer<1>(); }
5394 answer<2> f(const int&) { return answer<2>(); }
5395 answer<3> f(int&&) { return answer<3>(); }
5402 static_assert(decltype(f(i))::value == 1, "");
5403 static_assert(decltype(f(c))::value == 2, "");
5404 static_assert(decltype(f(0))::value == 3, "");
5409 namespace test_uniform_initialization
5414 static const int zero {};
5415 static const int one {1};
5418 static_assert(test::zero == 0, "");
5419 static_assert(test::one == 1, "");
5423 namespace test_lambdas
5429 auto lambda1 = [](){};
5430 auto lambda2 = lambda1;
5438 auto a = [](int i, int j){ return i + j; }(1, 2);
5439 auto b = []() -> int { return '0'; }();
5440 auto c = [=](){ return a + b; }();
5441 auto d = [&](){ return c; }();
5442 auto e = [a, &b](int x) mutable {
5443 const auto identity = [](int y){ return y; };
5444 for (auto i = 0; i < a; ++i)
5446 return x + identity(a + b);
5448 return a + b + c + d + e;
5454 const auto nullary = [](){ return 0; };
5455 const auto unary = [](int x){ return x; };
5456 using nullary_t = decltype(nullary);
5457 using unary_t = decltype(unary);
5458 const auto higher1st = [](nullary_t f){ return f(); };
5459 const auto higher2nd = [unary](nullary_t f1){
5460 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5462 return higher1st(nullary) + higher2nd(nullary)(unary);
5467 namespace test_variadic_templates
5473 template <int N0, int... N1toN>
5474 struct sum<N0, N1toN...>
5476 static constexpr auto value = N0 + sum<N1toN...>::value;
5482 static constexpr auto value = 0;
5485 static_assert(sum<>::value == 0, "");
5486 static_assert(sum<1>::value == 1, "");
5487 static_assert(sum<23>::value == 23, "");
5488 static_assert(sum<1, 2>::value == 3, "");
5489 static_assert(sum<5, 5, 11>::value == 21, "");
5490 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5494 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5495 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5497 namespace test_template_alias_sfinae
5502 template<typename T>
5503 using member = typename T::member_type;
5505 template<typename T>
5508 template<typename T>
5509 void func(member<T>*) {}
5513 void test() { func<foo>(0); }
5517 } // namespace cxx11
5519 #endif // __cplusplus >= 201103L
5524 if ac_fn_cxx_try_compile "$LINENO"; then :
5525 ax_cv_cxx_compile_cxx11=yes
5527 ax_cv_cxx_compile_cxx11=no
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5532 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5533 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5537 if test x$ac_success = xno; then
5538 for alternative in ${ax_cxx_compile_alternatives}; do
5539 switch="-std=gnu++${alternative}"
5540 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5542 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5543 if eval \${$cachevar+:} false; then :
5544 $as_echo_n "(cached) " >&6
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5552 // If the compiler admits that it is not ready for C++11, why torture it?
5553 // Hopefully, this will speed up the test.
5557 #error "This is not a C++ compiler"
5559 #elif __cplusplus < 201103L
5561 #error "This is not a C++11 compiler"
5568 namespace test_static_assert
5571 template <typename T>
5574 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5579 namespace test_final_override
5587 struct Derived : public Base
5589 virtual void f() override {}
5594 namespace test_double_right_angle_brackets
5597 template < typename T >
5600 typedef check<void> single_type;
5601 typedef check<check<void>> double_type;
5602 typedef check<check<check<void>>> triple_type;
5603 typedef check<check<check<check<void>>>> quadruple_type;
5607 namespace test_decltype
5620 namespace test_type_deduction
5623 template < typename T1, typename T2 >
5626 static const bool value = false;
5629 template < typename T >
5630 struct is_same<T, T>
5632 static const bool value = true;
5635 template < typename T1, typename T2 >
5637 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5643 test(const int c, volatile int v)
5645 static_assert(is_same<int, decltype(0)>::value == true, "");
5646 static_assert(is_same<int, decltype(c)>::value == false, "");
5647 static_assert(is_same<int, decltype(v)>::value == false, "");
5650 auto sumi = ac + av + 'x';
5651 auto sumf = ac + av + 1.0;
5652 static_assert(is_same<int, decltype(ac)>::value == true, "");
5653 static_assert(is_same<int, decltype(av)>::value == true, "");
5654 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5655 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5656 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5657 return (sumf > 0.0) ? sumi : add(c, v);
5662 namespace test_noexcept
5665 int f() { return 0; }
5666 int g() noexcept { return 0; }
5668 static_assert(noexcept(f()) == false, "");
5669 static_assert(noexcept(g()) == true, "");
5673 namespace test_constexpr
5676 template < typename CharT >
5677 unsigned long constexpr
5678 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5680 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5683 template < typename CharT >
5684 unsigned long constexpr
5685 strlen_c(const CharT *const s) noexcept
5687 return strlen_c_r(s, 0UL);
5690 static_assert(strlen_c("") == 0UL, "");
5691 static_assert(strlen_c("1") == 1UL, "");
5692 static_assert(strlen_c("example") == 7UL, "");
5693 static_assert(strlen_c("another\0example") == 7UL, "");
5697 namespace test_rvalue_references
5703 static constexpr int value = N;
5706 answer<1> f(int&) { return answer<1>(); }
5707 answer<2> f(const int&) { return answer<2>(); }
5708 answer<3> f(int&&) { return answer<3>(); }
5715 static_assert(decltype(f(i))::value == 1, "");
5716 static_assert(decltype(f(c))::value == 2, "");
5717 static_assert(decltype(f(0))::value == 3, "");
5722 namespace test_uniform_initialization
5727 static const int zero {};
5728 static const int one {1};
5731 static_assert(test::zero == 0, "");
5732 static_assert(test::one == 1, "");
5736 namespace test_lambdas
5742 auto lambda1 = [](){};
5743 auto lambda2 = lambda1;
5751 auto a = [](int i, int j){ return i + j; }(1, 2);
5752 auto b = []() -> int { return '0'; }();
5753 auto c = [=](){ return a + b; }();
5754 auto d = [&](){ return c; }();
5755 auto e = [a, &b](int x) mutable {
5756 const auto identity = [](int y){ return y; };
5757 for (auto i = 0; i < a; ++i)
5759 return x + identity(a + b);
5761 return a + b + c + d + e;
5767 const auto nullary = [](){ return 0; };
5768 const auto unary = [](int x){ return x; };
5769 using nullary_t = decltype(nullary);
5770 using unary_t = decltype(unary);
5771 const auto higher1st = [](nullary_t f){ return f(); };
5772 const auto higher2nd = [unary](nullary_t f1){
5773 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5775 return higher1st(nullary) + higher2nd(nullary)(unary);
5780 namespace test_variadic_templates
5786 template <int N0, int... N1toN>
5787 struct sum<N0, N1toN...>
5789 static constexpr auto value = N0 + sum<N1toN...>::value;
5795 static constexpr auto value = 0;
5798 static_assert(sum<>::value == 0, "");
5799 static_assert(sum<1>::value == 1, "");
5800 static_assert(sum<23>::value == 23, "");
5801 static_assert(sum<1, 2>::value == 3, "");
5802 static_assert(sum<5, 5, 11>::value == 21, "");
5803 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5807 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5808 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5810 namespace test_template_alias_sfinae
5815 template<typename T>
5816 using member = typename T::member_type;
5818 template<typename T>
5821 template<typename T>
5822 void func(member<T>*) {}
5826 void test() { func<foo>(0); }
5830 } // namespace cxx11
5832 #endif // __cplusplus >= 201103L
5837 if ac_fn_cxx_try_compile "$LINENO"; then :
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 eval ac_res=\$$cachevar
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5847 $as_echo "$ac_res" >&6; }
5848 if eval test x\$$cachevar = xyes; then
5849 CXX_DIALECT="$switch"
5856 if test x$ac_success = xno; then
5857 for alternative in ${ax_cxx_compile_alternatives}; do
5858 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5859 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5861 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5862 if eval \${$cachevar+:} false; then :
5863 $as_echo_n "(cached) " >&6
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5871 // If the compiler admits that it is not ready for C++11, why torture it?
5872 // Hopefully, this will speed up the test.
5876 #error "This is not a C++ compiler"
5878 #elif __cplusplus < 201103L
5880 #error "This is not a C++11 compiler"
5887 namespace test_static_assert
5890 template <typename T>
5893 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5898 namespace test_final_override
5906 struct Derived : public Base
5908 virtual void f() override {}
5913 namespace test_double_right_angle_brackets
5916 template < typename T >
5919 typedef check<void> single_type;
5920 typedef check<check<void>> double_type;
5921 typedef check<check<check<void>>> triple_type;
5922 typedef check<check<check<check<void>>>> quadruple_type;
5926 namespace test_decltype
5939 namespace test_type_deduction
5942 template < typename T1, typename T2 >
5945 static const bool value = false;
5948 template < typename T >
5949 struct is_same<T, T>
5951 static const bool value = true;
5954 template < typename T1, typename T2 >
5956 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5962 test(const int c, volatile int v)
5964 static_assert(is_same<int, decltype(0)>::value == true, "");
5965 static_assert(is_same<int, decltype(c)>::value == false, "");
5966 static_assert(is_same<int, decltype(v)>::value == false, "");
5969 auto sumi = ac + av + 'x';
5970 auto sumf = ac + av + 1.0;
5971 static_assert(is_same<int, decltype(ac)>::value == true, "");
5972 static_assert(is_same<int, decltype(av)>::value == true, "");
5973 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5974 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5975 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5976 return (sumf > 0.0) ? sumi : add(c, v);
5981 namespace test_noexcept
5984 int f() { return 0; }
5985 int g() noexcept { return 0; }
5987 static_assert(noexcept(f()) == false, "");
5988 static_assert(noexcept(g()) == true, "");
5992 namespace test_constexpr
5995 template < typename CharT >
5996 unsigned long constexpr
5997 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5999 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6002 template < typename CharT >
6003 unsigned long constexpr
6004 strlen_c(const CharT *const s) noexcept
6006 return strlen_c_r(s, 0UL);
6009 static_assert(strlen_c("") == 0UL, "");
6010 static_assert(strlen_c("1") == 1UL, "");
6011 static_assert(strlen_c("example") == 7UL, "");
6012 static_assert(strlen_c("another\0example") == 7UL, "");
6016 namespace test_rvalue_references
6022 static constexpr int value = N;
6025 answer<1> f(int&) { return answer<1>(); }
6026 answer<2> f(const int&) { return answer<2>(); }
6027 answer<3> f(int&&) { return answer<3>(); }
6034 static_assert(decltype(f(i))::value == 1, "");
6035 static_assert(decltype(f(c))::value == 2, "");
6036 static_assert(decltype(f(0))::value == 3, "");
6041 namespace test_uniform_initialization
6046 static const int zero {};
6047 static const int one {1};
6050 static_assert(test::zero == 0, "");
6051 static_assert(test::one == 1, "");
6055 namespace test_lambdas
6061 auto lambda1 = [](){};
6062 auto lambda2 = lambda1;
6070 auto a = [](int i, int j){ return i + j; }(1, 2);
6071 auto b = []() -> int { return '0'; }();
6072 auto c = [=](){ return a + b; }();
6073 auto d = [&](){ return c; }();
6074 auto e = [a, &b](int x) mutable {
6075 const auto identity = [](int y){ return y; };
6076 for (auto i = 0; i < a; ++i)
6078 return x + identity(a + b);
6080 return a + b + c + d + e;
6086 const auto nullary = [](){ return 0; };
6087 const auto unary = [](int x){ return x; };
6088 using nullary_t = decltype(nullary);
6089 using unary_t = decltype(unary);
6090 const auto higher1st = [](nullary_t f){ return f(); };
6091 const auto higher2nd = [unary](nullary_t f1){
6092 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6094 return higher1st(nullary) + higher2nd(nullary)(unary);
6099 namespace test_variadic_templates
6105 template <int N0, int... N1toN>
6106 struct sum<N0, N1toN...>
6108 static constexpr auto value = N0 + sum<N1toN...>::value;
6114 static constexpr auto value = 0;
6117 static_assert(sum<>::value == 0, "");
6118 static_assert(sum<1>::value == 1, "");
6119 static_assert(sum<23>::value == 23, "");
6120 static_assert(sum<1, 2>::value == 3, "");
6121 static_assert(sum<5, 5, 11>::value == 21, "");
6122 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6126 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6127 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6129 namespace test_template_alias_sfinae
6134 template<typename T>
6135 using member = typename T::member_type;
6137 template<typename T>
6140 template<typename T>
6141 void func(member<T>*) {}
6145 void test() { func<foo>(0); }
6149 } // namespace cxx11
6151 #endif // __cplusplus >= 201103L
6156 if ac_fn_cxx_try_compile "$LINENO"; then :
6161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164 eval ac_res=\$$cachevar
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6166 $as_echo "$ac_res" >&6; }
6167 if eval test x\$$cachevar = xyes; then
6168 CXX_DIALECT="$switch"
6173 if test x$ac_success = xyes; then
6179 ac_cpp='$CPP $CPPFLAGS'
6180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6184 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6185 if test x$ac_success = xno; then
6186 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6189 if test x$ac_success = xno; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6192 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6196 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6203 # Dependency checking.
6204 rm -rf .tst 2>/dev/null
6205 mkdir .tst 2>/dev/null
6206 if test -d .tst; then
6211 rmdir .tst 2>/dev/null
6213 DEPDIR="${am__leading_dot}deps"
6215 ac_config_commands="$ac_config_commands depdir"
6218 depcc="$CC" am_compiler_list=
6220 am_depcomp=$ac_aux_dir/depcomp
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6222 $as_echo_n "checking dependency style of $depcc... " >&6; }
6223 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6224 $as_echo_n "(cached) " >&6
6226 if test -f "$am_depcomp"; then
6227 # We make a subdir and do the tests there. Otherwise we can end up
6228 # making bogus files that we don't know about and never remove. For
6229 # instance it was reported that on HP-UX the gcc test will end up
6230 # making a dummy file named `D' -- because `-MD' means `put the output
6233 # Copy depcomp to subdir because otherwise we won't find it if we're
6234 # using a relative directory.
6235 cp "$am_depcomp" conftest.dir
6237 # We will build objects and dependencies in a subdirectory because
6238 # it helps to detect inapplicable dependency modes. For instance
6239 # both Tru64's cc and ICC support -MD to output dependencies as a
6240 # side effect of compilation, but ICC will put the dependencies in
6241 # the current directory while Tru64 will put them in the object
6245 am_cv_CC_dependencies_compiler_type=none
6246 if test "$am_compiler_list" = ""; then
6247 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6249 for depmode in $am_compiler_list; do
6250 if test $depmode = none; then break; fi
6252 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6253 # Setup a source with many dependencies, because some compilers
6254 # like to wrap large dependency lists on column 80 (with \), and
6255 # we should not choose a depcomp mode which is confused by this.
6257 # We need to recreate these files for each test, as the compiler may
6258 # overwrite some of them when testing with obscure command lines.
6259 # This happens at least with the AIX C compiler.
6261 for i in 1 2 3 4 5 6; do
6262 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6263 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6264 # Solaris 8's {/usr,}/bin/sh.
6265 touch sub/conftst$i.h
6267 echo "include sub/conftest.Po" > confmf
6269 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6270 # mode. It turns out that the SunPro C++ compiler does not properly
6271 # handle `-M -o', and we need to detect this.
6272 depcmd="depmode=$depmode \
6273 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6274 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6275 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6276 echo "| $depcmd" | sed -e 's/ */ /g' >&5
6277 if env $depcmd > conftest.err 2>&1 &&
6278 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6279 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6280 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6281 # icc doesn't choke on unknown options, it will just issue warnings
6282 # or remarks (even with -Werror). So we grep stderr for any message
6283 # that says an option was ignored or not supported.
6284 # When given -MP, icc 7.0 and 7.1 complain thusly:
6285 # icc: Command line warning: ignoring option '-M'; no argument required
6286 # The diagnosis changed in icc 8.0:
6287 # icc: Command line remark: option '-MP' not supported
6288 if (grep 'ignoring option' conftest.err ||
6289 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6290 am_cv_CC_dependencies_compiler_type=$depmode
6291 $as_echo "$as_me:$LINENO: success" >&5
6295 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6296 sed -e 's/^/| /' < conftest.err >&5
6302 am_cv_CC_dependencies_compiler_type=none
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6307 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6308 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
6309 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6310 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6326 # If we haven't got the data from the intl directory,
6327 # assume NLS is disabled.
6336 if test -f ../intl/config.intl; then
6337 . ../intl/config.intl
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6340 $as_echo_n "checking whether NLS is requested... " >&6; }
6341 if test x"$USE_NLS" != xyes; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6346 $as_echo "yes" >&6; }
6348 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6352 $as_echo_n "checking for catalogs to be installed... " >&6; }
6353 # Look for .po and .gmo files in the source directory.
6356 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6357 # If there aren't any .gmo files the shell will give us the
6358 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6360 case "$cat" in *\**)
6363 # The quadruple backslash is collapsed to a double backslash
6364 # by the backticks, then collapsed again by the double quotes,
6365 # leaving us with one backslash in the sed expression (right
6366 # before the dot that mustn't act as a wildcard).
6367 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6368 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6369 # The user is allowed to set LINGUAS to a list of languages to
6370 # install catalogs for. If it's empty that means "all of them."
6371 if test "x$LINGUAS" = x; then
6372 CATALOGS="$CATALOGS $cat"
6373 XLINGUAS="$XLINGUAS $lang"
6375 case "$LINGUAS" in *$lang*)
6376 CATALOGS="$CATALOGS $cat"
6377 XLINGUAS="$XLINGUAS $lang"
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6384 $as_echo "$LINGUAS" >&6; }
6397 localedir='${datadir}/locale'
6400 if test x"$USE_NLS" = xyes; then
6401 CONFIG_ALL="$CONFIG_ALL all-po"
6402 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
6403 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
6404 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
6409 cat >>confdefs.h <<_ACEOF
6410 #define PACKAGE "$PACKAGE"
6415 # We never need to detect it in this sub-configure.
6416 # But preserve it for config.status --recheck.
6420 MAKEINFO_EXTRA_FLAGS=""
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6422 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6423 if ${gdb_cv_have_makeinfo_click+:} false; then :
6424 $as_echo_n "(cached) " >&6
6426 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6427 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6428 gdb_cv_have_makeinfo_click=yes
6430 gdb_cv_have_makeinfo_click=no
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6434 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6435 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
6436 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6442 # Check whether --with-separate-debug-dir was given.
6443 if test "${with_separate_debug_dir+set}" = set; then :
6444 withval=$with_separate_debug_dir;
6447 DEBUGDIR=${libdir}/debug
6451 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6453 ac_define_dir=`eval echo $DEBUGDIR`
6454 ac_define_dir=`eval echo $ac_define_dir`
6456 cat >>confdefs.h <<_ACEOF
6457 #define DEBUGDIR "$ac_define_dir"
6463 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6464 if test "x$prefix" = xNONE; then
6465 test_prefix=/usr/local
6470 test_prefix=$exec_prefix
6473 case ${ac_define_dir} in
6474 "${test_prefix}"|"${test_prefix}/"*|\
6475 '${exec_prefix}'|'${exec_prefix}/'*)
6480 cat >>confdefs.h <<_ACEOF
6481 #define DEBUGDIR_RELOCATABLE $value
6487 # We can't pass paths as command line arguments.
6488 # Mingw32 tries to be clever and will convert the paths for us.
6489 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6490 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6491 # This breaks GDB's relocatable path conversions since paths passed in
6492 # config.h would not get so translated, the path prefixes no longer match.
6494 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6495 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6496 ac_define_dir=`eval echo $bindir`
6497 ac_define_dir=`eval echo $ac_define_dir`
6499 cat >>confdefs.h <<_ACEOF
6500 #define BINDIR "$ac_define_dir"
6505 # GDB's datadir relocation
6509 # Check whether --with-gdb-datadir was given.
6510 if test "${with_gdb_datadir+set}" = set; then :
6511 withval=$with_gdb_datadir;
6512 GDB_DATADIR=$withval
6514 GDB_DATADIR=${datadir}/gdb
6518 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6520 ac_define_dir=`eval echo $GDB_DATADIR`
6521 ac_define_dir=`eval echo $ac_define_dir`
6523 cat >>confdefs.h <<_ACEOF
6524 #define GDB_DATADIR "$ac_define_dir"
6530 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6531 if test "x$prefix" = xNONE; then
6532 test_prefix=/usr/local
6537 test_prefix=$exec_prefix
6540 case ${ac_define_dir} in
6541 "${test_prefix}"|"${test_prefix}/"*|\
6542 '${exec_prefix}'|'${exec_prefix}/'*)
6547 cat >>confdefs.h <<_ACEOF
6548 #define GDB_DATADIR_RELOCATABLE $value
6555 # Check whether --with-relocated-sources was given.
6556 if test "${with_relocated_sources+set}" = set; then :
6557 withval=$with_relocated_sources; reloc_srcdir="${withval}"
6559 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6560 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6561 ac_define_dir=`eval echo $reloc_srcdir`
6562 ac_define_dir=`eval echo $ac_define_dir`
6564 cat >>confdefs.h <<_ACEOF
6565 #define RELOC_SRCDIR "$ac_define_dir"
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6574 $as_echo_n "checking for default auto-load directory... " >&6; }
6576 # Check whether --with-auto-load-dir was given.
6577 if test "${with_auto_load_dir+set}" = set; then :
6578 withval=$with_auto_load_dir;
6580 with_auto_load_dir='$debugdir:$datadir/auto-load'
6583 escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6585 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6586 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6587 ac_define_dir=`eval echo $escape_dir`
6588 ac_define_dir=`eval echo $ac_define_dir`
6590 cat >>confdefs.h <<_ACEOF
6591 #define AUTO_LOAD_DIR "$ac_define_dir"
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6596 $as_echo "$with_auto_load_dir" >&6; }
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6599 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6601 # Check whether --with-auto-load-safe-path was given.
6602 if test "${with_auto_load_safe_path+set}" = set; then :
6603 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6604 with_auto_load_safe_path="/"
6607 with_auto_load_safe_path="$with_auto_load_dir"
6610 escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6612 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6613 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6614 ac_define_dir=`eval echo $escape_dir`
6615 ac_define_dir=`eval echo $ac_define_dir`
6617 cat >>confdefs.h <<_ACEOF
6618 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6623 $as_echo "$with_auto_load_safe_path" >&6; }
6625 # Enable shared libraries.
6626 # Check whether --enable-shared was given.
6627 if test "${enable_shared+set}" = set; then :
6628 enableval=$enable_shared;
6634 # If we have shared libraries, try to set RPATH_ENVVAR reasonably,
6635 # such that we can find the shared libraries in the build tree.
6636 if test $enable_shared = no; then
6637 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
6639 RPATH_ENVVAR=RPATH_ENVVAR
6641 # The variable `LD_LIBRARY_PATH' is used on most platforms.
6642 RPATH_ENVVAR=LD_LIBRARY_PATH
6643 # The following exceptions are taken from Libtool 1.4.3.
6646 if test $host_cpu != ia64; then
6647 RPATH_ENVVAR=LIBPATH
6649 darwin* | rhapsody*)
6650 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6655 # Check whether to support alternative target configurations
6656 # Check whether --enable-targets was given.
6657 if test "${enable_targets+set}" = set; then :
6658 enableval=$enable_targets; case "${enableval}" in
6659 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6661 no) enable_targets= ;;
6662 *) enable_targets=$enableval ;;
6667 # Check whether to enable 64-bit support on 32-bit hosts
6668 # Check whether --enable-64-bit-bfd was given.
6669 if test "${enable_64_bit_bfd+set}" = set; then :
6670 enableval=$enable_64_bit_bfd; case "${enableval}" in
6673 *) as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6679 # Provide defaults for some variables set by the per-host and per-target
6681 gdb_host_obs=posix-hdep.o
6683 if test "${target}" = "${host}"; then
6689 . $srcdir/configure.host
6691 # Accumulate some settings from configure.tgt over all enabled targets
6695 HAVE_NATIVE_GCORE_TARGET=
6697 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6699 if test "$targ_alias" = "all"; then
6702 # Canonicalize the secondary target names.
6703 result=`$ac_config_sub $targ_alias 2>/dev/null`
6704 if test -n "$result"; then
6710 . ${srcdir}/configure.tgt
6712 if test -z "${gdb_target_obs}"; then :
6713 as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
6716 # Target-specific object files
6717 for i in ${gdb_target_obs}; do
6718 case " $TARGET_OBS " in
6721 TARGET_OBS="$TARGET_OBS ${i}"
6726 # Check whether this target needs 64-bit CORE_ADDR
6727 if test x${want64} = xfalse; then
6728 . ${srcdir}/../bfd/config.bfd
6731 # Check whether this target is native and supports gcore.
6732 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6733 && $gdb_have_gcore; then
6734 HAVE_NATIVE_GCORE_TARGET=1
6739 if test x${all_targets} = xtrue; then
6741 # We want all 64-bit targets if we either:
6742 # - run on a 64-bit host or
6743 # - already require 64-bit support for some other target or
6744 # - the --enable-64-bit-bfd option was supplied
6745 # Otherwise we only support all 32-bit targets.
6747 # NOTE: This test must be in sync with the corresponding
6750 if test x${want64} = xfalse; then
6751 # The cast to long int works around a bug in the HP C Compiler
6752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6754 # This bug is HP SR number 8606223364.
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6756 $as_echo_n "checking size of long... " >&6; }
6757 if ${ac_cv_sizeof_long+:} false; then :
6758 $as_echo_n "(cached) " >&6
6760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6763 if test "$ac_cv_type_long" = yes; then
6764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6766 as_fn_error 77 "cannot compute sizeof (long)
6767 See \`config.log' for more details" "$LINENO" 5; }
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6775 $as_echo "$ac_cv_sizeof_long" >&6; }
6779 cat >>confdefs.h <<_ACEOF
6780 #define SIZEOF_LONG $ac_cv_sizeof_long
6784 if test "x${ac_cv_sizeof_long}" = "x8"; then
6788 if test x${want64} = xtrue; then
6789 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6791 TARGET_OBS='$(ALL_TARGET_OBS)'
6798 # For other settings, only the main target counts.
6801 targ=$target; . ${srcdir}/configure.tgt
6803 # Fetch the default architecture and default target vector from BFD.
6804 targ=$target; . $srcdir/../bfd/config.bfd
6806 # We only want the first architecture, so strip off the others if
6807 # there is more than one.
6808 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6810 if test "x$targ_archs" != x; then
6812 cat >>confdefs.h <<_ACEOF
6813 #define DEFAULT_BFD_ARCH $targ_archs
6817 if test "x$targ_defvec" != x; then
6819 cat >>confdefs.h <<_ACEOF
6820 #define DEFAULT_BFD_VEC $targ_defvec
6826 # Check whether --enable-gdbmi was given.
6827 if test "${enable_gdbmi+set}" = set; then :
6828 enableval=$enable_gdbmi; case $enableval in
6832 as_fn_error $? "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6838 if test x"$enable_gdbmi" = xyes; then
6839 if test -d "$srcdir/mi"; then
6840 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6841 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6842 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6843 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6848 # Check whether --enable-tui was given.
6849 if test "${enable_tui+set}" = set; then :
6850 enableval=$enable_tui; case $enableval in
6854 as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6862 # Check whether --enable-gdbtk was given.
6863 if test "${enable_gdbtk+set}" = set; then :
6864 enableval=$enable_gdbtk; case $enableval in
6868 as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6871 if test -d "$srcdir/gdbtk"; then
6878 # We unconditionally disable gdbtk tests on selected platforms.
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6882 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6886 # Handle optional debuginfod support
6894 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6895 if test -n "$ac_tool_prefix"; then
6896 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6897 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6901 $as_echo_n "(cached) " >&6
6905 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6927 if test -n "$PKG_CONFIG"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6929 $as_echo "$PKG_CONFIG" >&6; }
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6937 if test -z "$ac_cv_path_PKG_CONFIG"; then
6938 ac_pt_PKG_CONFIG=$PKG_CONFIG
6939 # Extract the first word of "pkg-config", so it can be a program name with args.
6940 set dummy pkg-config; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6944 $as_echo_n "(cached) " >&6
6946 case $ac_pt_PKG_CONFIG in
6948 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6970 if test -n "$ac_pt_PKG_CONFIG"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6972 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6978 if test "x$ac_pt_PKG_CONFIG" = x; then
6981 case $cross_compiling:$ac_tool_warned in
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985 ac_tool_warned=yes ;;
6987 PKG_CONFIG=$ac_pt_PKG_CONFIG
6990 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6994 if test -n "$PKG_CONFIG"; then
6995 _pkg_min_version=0.9.0
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6997 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6998 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7000 $as_echo "yes" >&6; }
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003 $as_echo "no" >&6; }
7008 # Handle optional debuginfod support
7010 # Check whether --with-debuginfod was given.
7011 if test "${with_debuginfod+set}" = set; then :
7012 withval=$with_debuginfod;
7014 with_debuginfod=auto
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
7018 $as_echo_n "checking whether to use debuginfod... " >&6; }
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
7020 $as_echo "$with_debuginfod" >&6; }
7022 if test "x$with_debuginfod" != xno; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
7026 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
7028 if test -n "$DEBUGINFOD_CFLAGS"; then
7029 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
7030 elif test -n "$PKG_CONFIG"; then
7031 if test -n "$PKG_CONFIG" && \
7032 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7033 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7036 test $ac_status = 0; }; then
7037 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
7038 test "x$?" != "x0" && pkg_failed=yes
7045 if test -n "$DEBUGINFOD_LIBS"; then
7046 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
7047 elif test -n "$PKG_CONFIG"; then
7048 if test -n "$PKG_CONFIG" && \
7049 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7050 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7053 test $ac_status = 0; }; then
7054 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7055 test "x$?" != "x0" && pkg_failed=yes
7063 if test $pkg_failed = no; then
7064 pkg_save_LDFLAGS="$LDFLAGS"
7065 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7077 if ac_fn_c_try_link "$LINENO"; then :
7082 rm -f core conftest.err conftest.$ac_objext \
7083 conftest$ac_exeext conftest.$ac_ext
7084 LDFLAGS=$pkg_save_LDFLAGS
7089 if test $pkg_failed = yes; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7093 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7094 _pkg_short_errors_supported=yes
7096 _pkg_short_errors_supported=no
7098 if test $_pkg_short_errors_supported = yes; then
7099 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7101 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7103 # Put the nasty error message in config.log where it belongs
7104 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7106 if test "x$with_debuginfod" = xyes; then
7107 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7110 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7112 elif test $pkg_failed = untried; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 $as_echo "no" >&6; }
7115 if test "x$with_debuginfod" = xyes; then
7116 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7119 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7122 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
7123 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7125 $as_echo "yes" >&6; }
7127 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7132 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7136 # Libunwind support for ia64.
7138 # Check whether --with-libunwind-ia64 was given.
7139 if test "${with_libunwind_ia64+set}" = set; then :
7140 withval=$with_libunwind_ia64;
7142 with_libunwind_ia64=auto
7146 # Backward compatibility option.
7147 if test "${with_libunwind+set}" = set; then
7148 if test x"$with_libunwind_ia64" != xauto; then
7149 as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7152 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7153 with_libunwind_ia64="$with_libunwind"
7156 case "$with_libunwind_ia64" in
7160 for ac_header in libunwind-ia64.h
7162 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7163 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
7164 cat >>confdefs.h <<_ACEOF
7165 #define HAVE_LIBUNWIND_IA64_H 1
7172 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
7175 as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7179 if test x"$with_libunwind_ia64" = xyes; then
7180 for ac_header in libunwind-ia64.h
7182 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7183 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
7184 cat >>confdefs.h <<_ACEOF
7185 #define HAVE_LIBUNWIND_IA64_H 1
7192 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
7193 as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7195 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
7196 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
7197 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
7202 # Check whether --with-curses was given.
7203 if test "${with_curses+set}" = set; then :
7204 withval=$with_curses; opt_curses=$withval
7209 if test "$opt_curses" = "yes"; then
7213 # Profiling support.
7214 # Check whether --enable-profiling was given.
7215 if test "${enable_profiling+set}" = set; then :
7216 enableval=$enable_profiling; case $enableval in
7220 as_fn_error $? "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7227 for ac_func in monstartup _mcleanup
7229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7231 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7232 cat >>confdefs.h <<_ACEOF
7233 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7240 $as_echo_n "checking for _etext... " >&6; }
7241 if ${ac_cv_var__etext+:} false; then :
7242 $as_echo_n "(cached) " >&6
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7257 if ac_fn_c_try_link "$LINENO"; then :
7258 ac_cv_var__etext=yes
7263 rm -f core conftest.err conftest.$ac_objext \
7264 conftest$ac_exeext conftest.$ac_ext
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7268 $as_echo "$ac_cv_var__etext" >&6; }
7269 if test "$ac_cv_var__etext" = yes; then
7271 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7275 $as_echo_n "checking for etext... " >&6; }
7276 if ${ac_cv_var_etext+:} false; then :
7277 $as_echo_n "(cached) " >&6
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7292 if ac_fn_c_try_link "$LINENO"; then :
7298 rm -f core conftest.err conftest.$ac_objext \
7299 conftest$ac_exeext conftest.$ac_ext
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7303 $as_echo "$ac_cv_var_etext" >&6; }
7304 if test "$ac_cv_var_etext" = yes; then
7306 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7309 if test "$enable_profiling" = yes ; then
7310 if test "$ac_cv_func_monstartup" = no || test "$ac_cv_func__mcleanup" = no; then
7311 as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7314 OLD_CFLAGS="$CFLAGS"
7315 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7318 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7319 if ${ac_cv_cc_supports_pg+:} false; then :
7320 $as_echo_n "(cached) " >&6
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7333 if ac_fn_c_try_compile "$LINENO"; then :
7334 ac_cv_cc_supports_pg=yes
7336 ac_cv_cc_supports_pg=no
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7343 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7345 if test "$ac_cv_cc_supports_pg" = no; then
7346 as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7349 CFLAGS="$OLD_CFLAGS"
7353 # Check whether --enable-codesign was given.
7354 if test "${enable_codesign+set}" = set; then :
7355 enableval=$enable_codesign; CODESIGN_CERT=$enableval
7362 # Check whether --with-pkgversion was given.
7363 if test "${with_pkgversion+set}" = set; then :
7364 withval=$with_pkgversion; case "$withval" in
7365 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7367 *) PKGVERSION="($withval) " ;;
7378 # Check whether --with-bugurl was given.
7379 if test "${with_bugurl+set}" = set; then :
7380 withval=$with_bugurl; case "$withval" in
7381 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7384 *) BUGURL="$withval"
7388 BUGURL="https://www.gnu.org/software/gdb/bugs/"
7398 REPORT_BUGS_TO="<$BUGURL>"
7399 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7406 cat >>confdefs.h <<_ACEOF
7407 #define PKGVERSION "$PKGVERSION"
7411 cat >>confdefs.h <<_ACEOF
7412 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7416 # --------------------- #
7417 # Checks for programs. #
7418 # --------------------- #
7420 for ac_prog in gawk mawk nawk awk
7422 # Extract the first word of "$ac_prog", so it can be a program name with args.
7423 set dummy $ac_prog; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if ${ac_cv_prog_AWK+:} false; then :
7427 $as_echo_n "(cached) " >&6
7429 if test -n "$AWK"; then
7430 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439 ac_cv_prog_AWK="$ac_prog"
7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 if test -n "$AWK"; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7452 $as_echo "$AWK" >&6; }
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7459 test -n "$AWK" && break
7462 # Find a good install program. We prefer a C program (faster),
7463 # so one script is as good as another. But avoid the broken or
7464 # incompatible versions:
7465 # SysV /etc/install, /usr/sbin/install
7466 # SunOS /usr/etc/install
7467 # IRIX /sbin/install
7469 # AmigaOS /C/install, which installs bootblocks on floppy discs
7470 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7471 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7472 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7473 # OS/2's system install, which has a completely different semantic
7474 # ./install, which can be erroneously created by make from ./install.sh.
7475 # Reject install programs that cannot install multiple files.
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7477 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7478 if test -z "$INSTALL"; then
7479 if ${ac_cv_path_install+:} false; then :
7480 $as_echo_n "(cached) " >&6
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 test -z "$as_dir" && as_dir=.
7487 # Account for people who put trailing slashes in PATH elements.
7488 case $as_dir/ in #((
7489 ./ | .// | /[cC]/* | \
7490 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7491 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7494 # OSF1 and SCO ODT 3.0 have their own names for install.
7495 # Don't use installbsd from OSF since it installs stuff as root
7497 for ac_prog in ginstall scoinst install; do
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7500 if test $ac_prog = install &&
7501 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7502 # AIX install. It has an incompatible calling convention.
7504 elif test $ac_prog = install &&
7505 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7506 # program-specific install script used by HP pwplus--don't use.
7509 rm -rf conftest.one conftest.two conftest.dir
7510 echo one > conftest.one
7511 echo two > conftest.two
7513 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7514 test -s conftest.one && test -s conftest.two &&
7515 test -s conftest.dir/conftest.one &&
7516 test -s conftest.dir/conftest.two
7518 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7531 rm -rf conftest.one conftest.two conftest.dir
7534 if test "${ac_cv_path_install+set}" = set; then
7535 INSTALL=$ac_cv_path_install
7537 # As a last resort, use the slow shell script. Don't cache a
7538 # value for INSTALL within a source directory, because that will
7539 # break other packages using the cache if that directory is
7540 # removed, or if the value is a relative name.
7541 INSTALL=$ac_install_sh
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7545 $as_echo "$INSTALL" >&6; }
7547 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7548 # It thinks the first close brace ends the variable substitution.
7549 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7551 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7553 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7556 $as_echo_n "checking whether ln -s works... " >&6; }
7558 if test "$LN_S" = "ln -s"; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7560 $as_echo "yes" >&6; }
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7563 $as_echo "no, using $LN_S" >&6; }
7566 if test -n "$ac_tool_prefix"; then
7567 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7568 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_RANLIB+:} false; then :
7572 $as_echo_n "(cached) " >&6
7574 if test -n "$RANLIB"; then
7575 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 RANLIB=$ac_cv_prog_RANLIB
7595 if test -n "$RANLIB"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7597 $as_echo "$RANLIB" >&6; }
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7605 if test -z "$ac_cv_prog_RANLIB"; then
7606 ac_ct_RANLIB=$RANLIB
7607 # Extract the first word of "ranlib", so it can be a program name with args.
7608 set dummy ranlib; ac_word=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7612 $as_echo_n "(cached) " >&6
7614 if test -n "$ac_ct_RANLIB"; then
7615 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624 ac_cv_prog_ac_ct_RANLIB="ranlib"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7635 if test -n "$ac_ct_RANLIB"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7637 $as_echo "$ac_ct_RANLIB" >&6; }
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7643 if test "x$ac_ct_RANLIB" = x; then
7646 case $cross_compiling:$ac_tool_warned in
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7650 ac_tool_warned=yes ;;
7652 RANLIB=$ac_ct_RANLIB
7655 RANLIB="$ac_cv_prog_RANLIB"
7658 for ac_prog in 'bison -y' byacc
7660 # Extract the first word of "$ac_prog", so it can be a program name with args.
7661 set dummy $ac_prog; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if ${ac_cv_prog_YACC+:} false; then :
7665 $as_echo_n "(cached) " >&6
7667 if test -n "$YACC"; then
7668 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677 ac_cv_prog_YACC="$ac_prog"
7678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 YACC=$ac_cv_prog_YACC
7688 if test -n "$YACC"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7690 $as_echo "$YACC" >&6; }
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7697 test -n "$YACC" && break
7699 test -n "$YACC" || YACC="yacc"
7702 if test -n "$ac_tool_prefix"; then
7703 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7704 set dummy ${ac_tool_prefix}ar; ac_word=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if ${ac_cv_prog_AR+:} false; then :
7708 $as_echo_n "(cached) " >&6
7710 if test -n "$AR"; then
7711 ac_cv_prog_AR="$AR" # Let the user override the test.
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720 ac_cv_prog_AR="${ac_tool_prefix}ar"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 if test -n "$AR"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7733 $as_echo "$AR" >&6; }
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7741 if test -z "$ac_cv_prog_AR"; then
7743 # Extract the first word of "ar", so it can be a program name with args.
7744 set dummy ar; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7748 $as_echo_n "(cached) " >&6
7750 if test -n "$ac_ct_AR"; then
7751 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760 ac_cv_prog_ac_ct_AR="ar"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7771 if test -n "$ac_ct_AR"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7773 $as_echo "$ac_ct_AR" >&6; }
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7779 if test "x$ac_ct_AR" = x; then
7782 case $cross_compiling:$ac_tool_warned in
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7786 ac_tool_warned=yes ;;
7794 if test -n "$ac_tool_prefix"; then
7795 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7796 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 $as_echo_n "checking for $ac_word... " >&6; }
7799 if ${ac_cv_prog_DLLTOOL+:} false; then :
7800 $as_echo_n "(cached) " >&6
7802 if test -n "$DLLTOOL"; then
7803 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7812 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 DLLTOOL=$ac_cv_prog_DLLTOOL
7823 if test -n "$DLLTOOL"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7825 $as_echo "$DLLTOOL" >&6; }
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7833 if test -z "$ac_cv_prog_DLLTOOL"; then
7834 ac_ct_DLLTOOL=$DLLTOOL
7835 # Extract the first word of "dlltool", so it can be a program name with args.
7836 set dummy dlltool; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7840 $as_echo_n "(cached) " >&6
7842 if test -n "$ac_ct_DLLTOOL"; then
7843 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7863 if test -n "$ac_ct_DLLTOOL"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7865 $as_echo "$ac_ct_DLLTOOL" >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7871 if test "x$ac_ct_DLLTOOL" = x; then
7874 case $cross_compiling:$ac_tool_warned in
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7878 ac_tool_warned=yes ;;
7880 DLLTOOL=$ac_ct_DLLTOOL
7883 DLLTOOL="$ac_cv_prog_DLLTOOL"
7886 if test -n "$ac_tool_prefix"; then
7887 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7888 set dummy ${ac_tool_prefix}windres; ac_word=$2
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 $as_echo_n "checking for $ac_word... " >&6; }
7891 if ${ac_cv_prog_WINDRES+:} false; then :
7892 $as_echo_n "(cached) " >&6
7894 if test -n "$WINDRES"; then
7895 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 WINDRES=$ac_cv_prog_WINDRES
7915 if test -n "$WINDRES"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7917 $as_echo "$WINDRES" >&6; }
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7925 if test -z "$ac_cv_prog_WINDRES"; then
7926 ac_ct_WINDRES=$WINDRES
7927 # Extract the first word of "windres", so it can be a program name with args.
7928 set dummy windres; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7932 $as_echo_n "(cached) " >&6
7934 if test -n "$ac_ct_WINDRES"; then
7935 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944 ac_cv_prog_ac_ct_WINDRES="windres"
7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7955 if test -n "$ac_ct_WINDRES"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7957 $as_echo "$ac_ct_WINDRES" >&6; }
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7963 if test "x$ac_ct_WINDRES" = x; then
7966 case $cross_compiling:$ac_tool_warned in
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7970 ac_tool_warned=yes ;;
7972 WINDRES=$ac_ct_WINDRES
7975 WINDRES="$ac_cv_prog_WINDRES"
7981 # Needed for GNU Hurd hosts.
7982 if test -n "$ac_tool_prefix"; then
7983 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7984 set dummy ${ac_tool_prefix}mig; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if ${ac_cv_prog_MIG+:} false; then :
7988 $as_echo_n "(cached) " >&6
7990 if test -n "$MIG"; then
7991 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 if test -n "$MIG"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8013 $as_echo "$MIG" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8021 if test -z "$ac_cv_prog_MIG"; then
8023 # Extract the first word of "mig", so it can be a program name with args.
8024 set dummy mig; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
8028 $as_echo_n "(cached) " >&6
8030 if test -n "$ac_ct_MIG"; then
8031 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8040 ac_cv_prog_ac_ct_MIG="mig"
8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8051 if test -n "$ac_ct_MIG"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8053 $as_echo "$ac_ct_MIG" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8059 if test "x$ac_ct_MIG" = x; then
8062 case $cross_compiling:$ac_tool_warned in
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8066 ac_tool_warned=yes ;;
8071 MIG="$ac_cv_prog_MIG"
8074 if test x"$MIG" = x; then
8075 as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
8080 # ---------------------- #
8081 # Checks for libraries. #
8082 # ---------------------- #
8084 # We might need to link with -lm; most simulators need it.
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8086 $as_echo_n "checking for main in -lm... " >&6; }
8087 if ${ac_cv_lib_m_main+:} false; then :
8088 $as_echo_n "(cached) " >&6
8090 ac_check_lib_save_LIBS=$LIBS
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8104 if ac_fn_c_try_link "$LINENO"; then :
8105 ac_cv_lib_m_main=yes
8109 rm -f core conftest.err conftest.$ac_objext \
8110 conftest$ac_exeext conftest.$ac_ext
8111 LIBS=$ac_check_lib_save_LIBS
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8114 $as_echo "$ac_cv_lib_m_main" >&6; }
8115 if test "x$ac_cv_lib_m_main" = xyes; then :
8116 cat >>confdefs.h <<_ACEOF
8125 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8127 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8128 if ${ac_cv_search_gethostbyname+:} false; then :
8129 $as_echo_n "(cached) " >&6
8131 ac_func_search_save_LIBS=$LIBS
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8135 /* Override any GCC internal prototype to avoid an error.
8136 Use char because int might match the return type of a GCC
8137 builtin and then its argument prototype would still apply. */
8141 char gethostbyname ();
8145 return gethostbyname ();
8150 for ac_lib in '' nsl; do
8151 if test -z "$ac_lib"; then
8152 ac_res="none required"
8155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8157 if ac_fn_c_try_link "$LINENO"; then :
8158 ac_cv_search_gethostbyname=$ac_res
8160 rm -f core conftest.err conftest.$ac_objext \
8162 if ${ac_cv_search_gethostbyname+:} false; then :
8166 if ${ac_cv_search_gethostbyname+:} false; then :
8169 ac_cv_search_gethostbyname=no
8172 LIBS=$ac_func_search_save_LIBS
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8175 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8176 ac_res=$ac_cv_search_gethostbyname
8177 if test "$ac_res" != no; then :
8178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8183 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8185 $as_echo_n "checking for library containing socketpair... " >&6; }
8186 if ${ac_cv_search_socketpair+:} false; then :
8187 $as_echo_n "(cached) " >&6
8189 ac_func_search_save_LIBS=$LIBS
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8193 /* Override any GCC internal prototype to avoid an error.
8194 Use char because int might match the return type of a GCC
8195 builtin and then its argument prototype would still apply. */
8203 return socketpair ();
8208 for ac_lib in '' socket; do
8209 if test -z "$ac_lib"; then
8210 ac_res="none required"
8213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8215 if ac_fn_c_try_link "$LINENO"; then :
8216 ac_cv_search_socketpair=$ac_res
8218 rm -f core conftest.err conftest.$ac_objext \
8220 if ${ac_cv_search_socketpair+:} false; then :
8224 if ${ac_cv_search_socketpair+:} false; then :
8227 ac_cv_search_socketpair=no
8230 LIBS=$ac_func_search_save_LIBS
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8233 $as_echo "$ac_cv_search_socketpair" >&6; }
8234 ac_res=$ac_cv_search_socketpair
8235 if test "$ac_res" != no; then :
8236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8241 # Link in zlib if we can. This allows us to read compressed debug sections.
8243 # Use the system's zlib library.
8244 zlibdir="-L\$(top_builddir)/../zlib"
8245 zlibinc="-I\$(top_srcdir)/../zlib"
8247 # Check whether --with-system-zlib was given.
8248 if test "${with_system_zlib+set}" = set; then :
8249 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8261 if test "X$prefix" = "XNONE"; then
8262 acl_final_prefix="$ac_default_prefix"
8264 acl_final_prefix="$prefix"
8266 if test "X$exec_prefix" = "XNONE"; then
8267 acl_final_exec_prefix='${prefix}'
8269 acl_final_exec_prefix="$exec_prefix"
8271 acl_save_prefix="$prefix"
8272 prefix="$acl_final_prefix"
8273 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8274 prefix="$acl_save_prefix"
8277 # Check whether --with-gnu-ld was given.
8278 if test "${with_gnu_ld+set}" = set; then :
8279 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8284 # Prepare PATH_SEPARATOR.
8285 # The user is always right.
8286 if test "${PATH_SEPARATOR+set}" != set; then
8287 echo "#! /bin/sh" >conf$$.sh
8288 echo "exit 0" >>conf$$.sh
8290 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8298 if test "$GCC" = yes; then
8299 # Check if gcc -print-prog-name=ld gives a path.
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8301 $as_echo_n "checking for ld used by GCC... " >&6; }
8304 # gcc leaves a trailing carriage return which upsets mingw
8305 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8307 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8310 # Accept absolute paths.
8311 [\\/]* | [A-Za-z]:[\\/]*)
8312 re_direlt='/[^/][^/]*/\.\./'
8313 # Canonicalize the path of ld
8314 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8315 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8316 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8318 test -z "$LD" && LD="$ac_prog"
8321 # If it fails, then pretend we aren't using GCC.
8325 # If it is relative, then search for the first ld in PATH.
8329 elif test "$with_gnu_ld" = yes; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8331 $as_echo_n "checking for GNU ld... " >&6; }
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8334 $as_echo_n "checking for non-GNU ld... " >&6; }
8336 if ${acl_cv_path_LD+:} false; then :
8337 $as_echo_n "(cached) " >&6
8339 if test -z "$LD"; then
8340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8341 for ac_dir in $PATH; do
8342 test -z "$ac_dir" && ac_dir=.
8343 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8344 acl_cv_path_LD="$ac_dir/$ac_prog"
8345 # Check to see if the program is GNU ld. I'd rather use --version,
8346 # but apparently some GNU ld's only accept -v.
8347 # Break only if it was the GNU/non-GNU ld that we prefer.
8348 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8349 test "$with_gnu_ld" != no && break
8351 test "$with_gnu_ld" != yes && break
8357 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8361 LD="$acl_cv_path_LD"
8362 if test -n "$LD"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8364 $as_echo "$LD" >&6; }
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8369 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8371 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8372 if ${acl_cv_prog_gnu_ld+:} false; then :
8373 $as_echo_n "(cached) " >&6
8375 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8376 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8377 acl_cv_prog_gnu_ld=yes
8379 acl_cv_prog_gnu_ld=no
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8383 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8384 with_gnu_ld=$acl_cv_prog_gnu_ld
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8389 $as_echo_n "checking for shared library run path origin... " >&6; }
8390 if ${acl_cv_rpath+:} false; then :
8391 $as_echo_n "(cached) " >&6
8394 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8395 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8402 $as_echo "$acl_cv_rpath" >&6; }
8404 libext="$acl_cv_libext"
8405 shlibext="$acl_cv_shlibext"
8406 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8407 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8408 hardcode_direct="$acl_cv_hardcode_direct"
8409 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8410 # Check whether --enable-rpath was given.
8411 if test "${enable_rpath+set}" = set; then :
8412 enableval=$enable_rpath; :
8426 acl_save_prefix="$prefix"
8427 prefix="$acl_final_prefix"
8428 acl_save_exec_prefix="$exec_prefix"
8429 exec_prefix="$acl_final_exec_prefix"
8431 eval additional_includedir=\"$includedir\"
8432 eval additional_libdir=\"$libdir\"
8434 exec_prefix="$acl_save_exec_prefix"
8435 prefix="$acl_save_prefix"
8438 # Check whether --with-libiconv-prefix was given.
8439 if test "${with_libiconv_prefix+set}" = set; then :
8440 withval=$with_libiconv_prefix;
8441 if test "X$withval" = "Xno"; then
8444 if test "X$withval" = "X"; then
8446 acl_save_prefix="$prefix"
8447 prefix="$acl_final_prefix"
8448 acl_save_exec_prefix="$exec_prefix"
8449 exec_prefix="$acl_final_exec_prefix"
8451 eval additional_includedir=\"$includedir\"
8452 eval additional_libdir=\"$libdir\"
8454 exec_prefix="$acl_save_exec_prefix"
8455 prefix="$acl_save_prefix"
8458 additional_includedir="$withval/include"
8459 additional_libdir="$withval/lib"
8466 # Check whether --with-libiconv-type was given.
8467 if test "${with_libiconv_type+set}" = set; then :
8468 withval=$with_libiconv_type; with_libiconv_type=$withval
8470 with_libiconv_type=auto
8473 lib_type=`eval echo \$with_libiconv_type`
8480 names_already_handled=
8481 names_next_round='iconv '
8482 while test -n "$names_next_round"; do
8483 names_this_round="$names_next_round"
8485 for name in $names_this_round; do
8487 for n in $names_already_handled; do
8488 if test "$n" = "$name"; then
8493 if test -z "$already_handled"; then
8494 names_already_handled="$names_already_handled $name"
8495 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8496 eval value=\"\$HAVE_LIB$uppername\"
8497 if test -n "$value"; then
8498 if test "$value" = yes; then
8499 eval value=\"\$LIB$uppername\"
8500 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8501 eval value=\"\$LTLIB$uppername\"
8502 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8511 if test $use_additional = yes; then
8512 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8513 found_dir="$additional_libdir"
8514 found_so="$additional_libdir/lib$name.$shlibext"
8515 if test -f "$additional_libdir/lib$name.la"; then
8516 found_la="$additional_libdir/lib$name.la"
8518 elif test x$lib_type != xshared; then
8519 if test -f "$additional_libdir/lib$name.$libext"; then
8520 found_dir="$additional_libdir"
8521 found_a="$additional_libdir/lib$name.$libext"
8522 if test -f "$additional_libdir/lib$name.la"; then
8523 found_la="$additional_libdir/lib$name.la"
8528 if test "X$found_dir" = "X"; then
8529 for x in $LDFLAGS $LTLIBICONV; do
8531 acl_save_prefix="$prefix"
8532 prefix="$acl_final_prefix"
8533 acl_save_exec_prefix="$exec_prefix"
8534 exec_prefix="$acl_final_exec_prefix"
8536 exec_prefix="$acl_save_exec_prefix"
8537 prefix="$acl_save_prefix"
8541 dir=`echo "X$x" | sed -e 's/^X-L//'`
8542 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8544 found_so="$dir/lib$name.$shlibext"
8545 if test -f "$dir/lib$name.la"; then
8546 found_la="$dir/lib$name.la"
8548 elif test x$lib_type != xshared; then
8549 if test -f "$dir/lib$name.$libext"; then
8551 found_a="$dir/lib$name.$libext"
8552 if test -f "$dir/lib$name.la"; then
8553 found_la="$dir/lib$name.la"
8559 if test "X$found_dir" != "X"; then
8564 if test "X$found_dir" != "X"; then
8565 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8566 if test "X$found_so" != "X"; then
8567 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8568 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8571 for x in $ltrpathdirs; do
8572 if test "X$x" = "X$found_dir"; then
8577 if test -z "$haveit"; then
8578 ltrpathdirs="$ltrpathdirs $found_dir"
8580 if test "$hardcode_direct" = yes; then
8581 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8583 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8584 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8586 for x in $rpathdirs; do
8587 if test "X$x" = "X$found_dir"; then
8592 if test -z "$haveit"; then
8593 rpathdirs="$rpathdirs $found_dir"
8597 for x in $LDFLAGS $LIBICONV; do
8599 acl_save_prefix="$prefix"
8600 prefix="$acl_final_prefix"
8601 acl_save_exec_prefix="$exec_prefix"
8602 exec_prefix="$acl_final_exec_prefix"
8604 exec_prefix="$acl_save_exec_prefix"
8605 prefix="$acl_save_prefix"
8607 if test "X$x" = "X-L$found_dir"; then
8612 if test -z "$haveit"; then
8613 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8615 if test "$hardcode_minus_L" != no; then
8616 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8618 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8624 if test "X$found_a" != "X"; then
8625 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8627 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8630 additional_includedir=
8631 case "$found_dir" in
8633 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8634 additional_includedir="$basedir/include"
8637 if test "X$additional_includedir" != "X"; then
8638 if test "X$additional_includedir" != "X/usr/include"; then
8640 if test "X$additional_includedir" = "X/usr/local/include"; then
8641 if test -n "$GCC"; then
8643 linux*) haveit=yes;;
8647 if test -z "$haveit"; then
8648 for x in $CPPFLAGS $INCICONV; do
8650 acl_save_prefix="$prefix"
8651 prefix="$acl_final_prefix"
8652 acl_save_exec_prefix="$exec_prefix"
8653 exec_prefix="$acl_final_exec_prefix"
8655 exec_prefix="$acl_save_exec_prefix"
8656 prefix="$acl_save_prefix"
8658 if test "X$x" = "X-I$additional_includedir"; then
8663 if test -z "$haveit"; then
8664 if test -d "$additional_includedir"; then
8665 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8671 if test -n "$found_la"; then
8672 save_libdir="$libdir"
8674 */* | *\\*) . "$found_la" ;;
8675 *) . "./$found_la" ;;
8677 libdir="$save_libdir"
8678 for dep in $dependency_libs; do
8681 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8682 if test "X$additional_libdir" != "X/usr/lib"; then
8684 if test "X$additional_libdir" = "X/usr/local/lib"; then
8685 if test -n "$GCC"; then
8687 linux*) haveit=yes;;
8691 if test -z "$haveit"; then
8693 for x in $LDFLAGS $LIBICONV; do
8695 acl_save_prefix="$prefix"
8696 prefix="$acl_final_prefix"
8697 acl_save_exec_prefix="$exec_prefix"
8698 exec_prefix="$acl_final_exec_prefix"
8700 exec_prefix="$acl_save_exec_prefix"
8701 prefix="$acl_save_prefix"
8703 if test "X$x" = "X-L$additional_libdir"; then
8708 if test -z "$haveit"; then
8709 if test -d "$additional_libdir"; then
8710 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8714 for x in $LDFLAGS $LTLIBICONV; do
8716 acl_save_prefix="$prefix"
8717 prefix="$acl_final_prefix"
8718 acl_save_exec_prefix="$exec_prefix"
8719 exec_prefix="$acl_final_exec_prefix"
8721 exec_prefix="$acl_save_exec_prefix"
8722 prefix="$acl_save_prefix"
8724 if test "X$x" = "X-L$additional_libdir"; then
8729 if test -z "$haveit"; then
8730 if test -d "$additional_libdir"; then
8731 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8738 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8739 if test "$enable_rpath" != no; then
8741 for x in $rpathdirs; do
8742 if test "X$x" = "X$dir"; then
8747 if test -z "$haveit"; then
8748 rpathdirs="$rpathdirs $dir"
8751 for x in $ltrpathdirs; do
8752 if test "X$x" = "X$dir"; then
8757 if test -z "$haveit"; then
8758 ltrpathdirs="$ltrpathdirs $dir"
8763 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8766 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8769 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8770 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8776 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
8777 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8778 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8780 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8781 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8788 if test "X$rpathdirs" != "X"; then
8789 if test -n "$hardcode_libdir_separator"; then
8791 for found_dir in $rpathdirs; do
8792 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8794 acl_save_libdir="$libdir"
8796 eval flag=\"$hardcode_libdir_flag_spec\"
8797 libdir="$acl_save_libdir"
8798 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8800 for found_dir in $rpathdirs; do
8801 acl_save_libdir="$libdir"
8803 eval flag=\"$hardcode_libdir_flag_spec\"
8804 libdir="$acl_save_libdir"
8805 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8809 if test "X$ltrpathdirs" != "X"; then
8810 for found_dir in $ltrpathdirs; do
8811 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8822 $as_echo_n "checking for iconv... " >&6; }
8823 if ${am_cv_func_iconv+:} false; then :
8824 $as_echo_n "(cached) " >&6
8827 am_cv_func_iconv="no, consider installing GNU libiconv"
8829 am_save_CPPFLAGS="$CPPFLAGS"
8830 CPPFLAGS="$CPPFLAGS $INCICONV"
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8838 iconv_t cd = iconv_open("","");
8839 iconv(cd,NULL,NULL,NULL,NULL);
8845 if ac_fn_c_try_link "$LINENO"; then :
8846 am_cv_func_iconv=yes
8848 rm -f core conftest.err conftest.$ac_objext \
8849 conftest$ac_exeext conftest.$ac_ext
8850 CPPFLAGS="$am_save_CPPFLAGS"
8852 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
8853 for _libs in .libs _libs; do
8854 am_save_CPPFLAGS="$CPPFLAGS"
8855 am_save_LIBS="$LIBS"
8856 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
8857 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8865 iconv_t cd = iconv_open("","");
8866 iconv(cd,NULL,NULL,NULL,NULL);
8872 if ac_fn_c_try_link "$LINENO"; then :
8873 INCICONV="-I../libiconv/include"
8874 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
8875 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
8877 am_cv_func_iconv=yes
8879 rm -f core conftest.err conftest.$ac_objext \
8880 conftest$ac_exeext conftest.$ac_ext
8881 CPPFLAGS="$am_save_CPPFLAGS"
8882 LIBS="$am_save_LIBS"
8883 if test "$am_cv_func_iconv" = "yes"; then
8889 if test "$am_cv_func_iconv" != yes; then
8890 am_save_CPPFLAGS="$CPPFLAGS"
8891 am_save_LIBS="$LIBS"
8892 CPPFLAGS="$CPPFLAGS $INCICONV"
8893 LIBS="$LIBS $LIBICONV"
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8901 iconv_t cd = iconv_open("","");
8902 iconv(cd,NULL,NULL,NULL,NULL);
8908 if ac_fn_c_try_link "$LINENO"; then :
8910 am_cv_func_iconv=yes
8912 rm -f core conftest.err conftest.$ac_objext \
8913 conftest$ac_exeext conftest.$ac_ext
8914 CPPFLAGS="$am_save_CPPFLAGS"
8915 LIBS="$am_save_LIBS"
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8920 $as_echo "$am_cv_func_iconv" >&6; }
8921 if test "$am_cv_func_iconv" = yes; then
8923 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8926 if test "$am_cv_lib_iconv" = yes; then
8928 for element in $INCICONV; do
8930 for x in $CPPFLAGS; do
8932 acl_save_prefix="$prefix"
8933 prefix="$acl_final_prefix"
8934 acl_save_exec_prefix="$exec_prefix"
8935 exec_prefix="$acl_final_exec_prefix"
8937 exec_prefix="$acl_save_exec_prefix"
8938 prefix="$acl_save_prefix"
8940 if test "X$x" = "X$element"; then
8945 if test -z "$haveit"; then
8946 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8951 $as_echo_n "checking how to link with libiconv... " >&6; }
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8953 $as_echo "$LIBICONV" >&6; }
8961 if test "$am_cv_func_iconv" = yes; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8963 $as_echo_n "checking for iconv declaration... " >&6; }
8964 if ${am_cv_proto_iconv+:} false; then :
8965 $as_echo_n "(cached) " >&6
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8977 #if defined(__STDC__) || defined(__cplusplus)
8978 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8991 if ac_fn_c_try_compile "$LINENO"; then :
8992 am_cv_proto_iconv_arg1=""
8994 am_cv_proto_iconv_arg1="const"
8996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 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);"
9000 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9002 }$am_cv_proto_iconv" >&5
9004 }$am_cv_proto_iconv" >&6; }
9006 cat >>confdefs.h <<_ACEOF
9007 #define ICONV_CONST $am_cv_proto_iconv_arg1
9013 # GDB may fork/exec the iconv program to get the list of supported character
9014 # sets. Allow the user to specify where to find it.
9015 # There are several factors affecting the choice of option name:
9016 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9017 # the build-time location of libiconv files.
9018 # - The program we need to find is iconv, which comes with glibc. The user
9019 # doesn't necessarily have libiconv installed. Therefore naming this
9020 # --with-libiconv-foo feels wrong.
9021 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9022 # defined to work on directories not files (though it really doesn't know
9024 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9025 # with --with-libiconv-prefix.
9026 # Putting these together is why the option name is --with-iconv-bin.
9029 # Check whether --with-iconv-bin was given.
9030 if test "${with_iconv_bin+set}" = set; then :
9031 withval=$with_iconv_bin; iconv_bin="${withval}"
9033 cat >>confdefs.h <<_ACEOF
9034 #define ICONV_BIN "${iconv_bin}"
9038 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9039 if test "x$prefix" = xNONE; then
9040 test_prefix=/usr/local
9045 test_prefix=$exec_prefix
9048 case ${iconv_bin} in
9049 "${test_prefix}"|"${test_prefix}/"*|\
9050 '${exec_prefix}'|'${exec_prefix}/'*)
9055 cat >>confdefs.h <<_ACEOF
9056 #define ICONV_BIN_RELOCATABLE $value
9064 # For the TUI, we need enhanced curses functionality.
9065 if test x"$enable_tui" != xno; then
9070 if test x"$prefer_curses" = xyes; then
9071 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9072 # curses library because the latter might not provide all the
9073 # functionality we need. However, this leads to problems on systems
9074 # where the linker searches /usr/local/lib, but the compiler doesn't
9075 # search /usr/local/include, if ncurses is installed in /usr/local. A
9076 # default installation of ncurses on alpha*-dec-osf* will lead to such
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9079 $as_echo_n "checking for library containing waddstr... " >&6; }
9080 if ${ac_cv_search_waddstr+:} false; then :
9081 $as_echo_n "(cached) " >&6
9083 ac_func_search_save_LIBS=$LIBS
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9087 /* Override any GCC internal prototype to avoid an error.
9088 Use char because int might match the return type of a GCC
9089 builtin and then its argument prototype would still apply. */
9102 for ac_lib in '' ncursesw ncurses cursesX curses; do
9103 if test -z "$ac_lib"; then
9104 ac_res="none required"
9107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9109 if ac_fn_c_try_link "$LINENO"; then :
9110 ac_cv_search_waddstr=$ac_res
9112 rm -f core conftest.err conftest.$ac_objext \
9114 if ${ac_cv_search_waddstr+:} false; then :
9118 if ${ac_cv_search_waddstr+:} false; then :
9121 ac_cv_search_waddstr=no
9124 LIBS=$ac_func_search_save_LIBS
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9127 $as_echo "$ac_cv_search_waddstr" >&6; }
9128 ac_res=$ac_cv_search_waddstr
9129 if test "$ac_res" != no; then :
9130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9135 if test "$ac_cv_search_waddstr" != no; then
9140 # Check whether we should enable the TUI, but only do so if we really
9142 if test x"$enable_tui" != xno; then
9143 if test -d "$srcdir/tui"; then
9144 if test "$curses_found" != no; then
9145 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9146 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9147 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9148 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9150 if test x"$enable_tui" = xyes; then
9151 as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9154 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9160 # Since GDB uses Readline, we need termcap functionality. In many
9161 # cases this will be provided by the curses library, but some systems
9162 # have a separate termcap library, or no curses library at all.
9166 if test -d "$srcdir/libtermcap"; then
9167 LIBS="../libtermcap/libtermcap.a $LIBS"
9168 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9171 ac_cv_search_tgetent="none required"
9175 # These are the libraries checked by Readline.
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9177 $as_echo_n "checking for library containing tgetent... " >&6; }
9178 if ${ac_cv_search_tgetent+:} false; then :
9179 $as_echo_n "(cached) " >&6
9181 ac_func_search_save_LIBS=$LIBS
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9185 /* Override any GCC internal prototype to avoid an error.
9186 Use char because int might match the return type of a GCC
9187 builtin and then its argument prototype would still apply. */
9200 for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
9201 if test -z "$ac_lib"; then
9202 ac_res="none required"
9205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9207 if ac_fn_c_try_link "$LINENO"; then :
9208 ac_cv_search_tgetent=$ac_res
9210 rm -f core conftest.err conftest.$ac_objext \
9212 if ${ac_cv_search_tgetent+:} false; then :
9216 if ${ac_cv_search_tgetent+:} false; then :
9219 ac_cv_search_tgetent=no
9222 LIBS=$ac_func_search_save_LIBS
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9225 $as_echo "$ac_cv_search_tgetent" >&6; }
9226 ac_res=$ac_cv_search_tgetent
9227 if test "$ac_res" != no; then :
9228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9233 if test "$ac_cv_search_tgetent" = no; then
9234 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
9238 # Check whether --with-system-readline was given.
9239 if test "${with_system_readline+set}" = set; then :
9240 withval=$with_system_readline;
9244 if test "$with_system_readline" = yes; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9246 $as_echo_n "checking whether system readline is new enough... " >&6; }
9247 if ${gdb_cv_readline_ok+:} false; then :
9248 $as_echo_n "(cached) " >&6
9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9253 #include <readline/readline.h>
9257 #if RL_VERSION_MAJOR < 7
9258 # error "readline version 7 required"
9265 if ac_fn_c_try_compile "$LINENO"; then :
9266 gdb_cv_readline_ok=yes
9268 gdb_cv_readline_ok=no
9271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9275 $as_echo "$gdb_cv_readline_ok" >&6; }
9276 if test "$gdb_cv_readline_ok" != yes; then
9277 as_fn_error $? "system readline is not new enough" "$LINENO" 5
9283 READLINE_TEXI_INCFLAG=
9285 READLINE='$(READLINE_DIR)/libreadline.a'
9286 READLINE_DEPS='$(READLINE)'
9287 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9288 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
9295 # Generate jit-reader.h
9297 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9300 # The cast to long int works around a bug in the HP C Compiler
9301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9303 # This bug is HP SR number 8606223364.
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9305 $as_echo_n "checking size of unsigned long long... " >&6; }
9306 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
9307 $as_echo_n "(cached) " >&6
9309 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9312 if test "$ac_cv_type_unsigned_long_long" = yes; then
9313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9315 as_fn_error 77 "cannot compute sizeof (unsigned long long)
9316 See \`config.log' for more details" "$LINENO" 5; }
9318 ac_cv_sizeof_unsigned_long_long=0
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9324 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9328 cat >>confdefs.h <<_ACEOF
9329 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9333 # The cast to long int works around a bug in the HP C Compiler
9334 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9335 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9336 # This bug is HP SR number 8606223364.
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9338 $as_echo_n "checking size of unsigned long... " >&6; }
9339 if ${ac_cv_sizeof_unsigned_long+:} false; then :
9340 $as_echo_n "(cached) " >&6
9342 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9345 if test "$ac_cv_type_unsigned_long" = yes; then
9346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9348 as_fn_error 77 "cannot compute sizeof (unsigned long)
9349 See \`config.log' for more details" "$LINENO" 5; }
9351 ac_cv_sizeof_unsigned_long=0
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9357 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9361 cat >>confdefs.h <<_ACEOF
9362 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9366 # The cast to long int works around a bug in the HP C Compiler
9367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9369 # This bug is HP SR number 8606223364.
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9371 $as_echo_n "checking size of unsigned __int128... " >&6; }
9372 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
9373 $as_echo_n "(cached) " >&6
9375 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9378 if test "$ac_cv_type_unsigned___int128" = yes; then
9379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9381 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
9382 See \`config.log' for more details" "$LINENO" 5; }
9384 ac_cv_sizeof_unsigned___int128=0
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9390 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9394 cat >>confdefs.h <<_ACEOF
9395 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9400 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9401 TARGET_PTR="unsigned long"
9402 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9403 TARGET_PTR="unsigned long long"
9404 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9405 TARGET_PTR="unsigned __int128"
9407 TARGET_PTR="unsigned long"
9411 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9415 $as_echo_n "checking for library containing dlopen... " >&6; }
9416 if ${ac_cv_search_dlopen+:} false; then :
9417 $as_echo_n "(cached) " >&6
9419 ac_func_search_save_LIBS=$LIBS
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9423 /* Override any GCC internal prototype to avoid an error.
9424 Use char because int might match the return type of a GCC
9425 builtin and then its argument prototype would still apply. */
9438 for ac_lib in '' dl; do
9439 if test -z "$ac_lib"; then
9440 ac_res="none required"
9443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9445 if ac_fn_c_try_link "$LINENO"; then :
9446 ac_cv_search_dlopen=$ac_res
9448 rm -f core conftest.err conftest.$ac_objext \
9450 if ${ac_cv_search_dlopen+:} false; then :
9454 if ${ac_cv_search_dlopen+:} false; then :
9457 ac_cv_search_dlopen=no
9460 LIBS=$ac_func_search_save_LIBS
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9463 $as_echo "$ac_cv_search_dlopen" >&6; }
9464 ac_res=$ac_cv_search_dlopen
9465 if test "$ac_res" != no; then :
9466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9473 # Check whether --with-jit-reader-dir was given.
9474 if test "${with_jit_reader_dir+set}" = set; then :
9475 withval=$with_jit_reader_dir;
9476 JIT_READER_DIR=$withval
9478 JIT_READER_DIR=${libdir}/gdb
9482 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9483 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9484 ac_define_dir=`eval echo $JIT_READER_DIR`
9485 ac_define_dir=`eval echo $ac_define_dir`
9487 cat >>confdefs.h <<_ACEOF
9488 #define JIT_READER_DIR "$ac_define_dir"
9494 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9495 if test "x$prefix" = xNONE; then
9496 test_prefix=/usr/local
9501 test_prefix=$exec_prefix
9504 case ${ac_define_dir} in
9505 "${test_prefix}"|"${test_prefix}/"*|\
9506 '${exec_prefix}'|'${exec_prefix}/'*)
9511 cat >>confdefs.h <<_ACEOF
9512 #define JIT_READER_DIR_RELOCATABLE $value
9519 # Check whether --with-expat was given.
9520 if test "${with_expat+set}" = set; then :
9521 withval=$with_expat;
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9527 $as_echo_n "checking whether to use expat... " >&6; }
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9529 $as_echo "$with_expat" >&6; }
9531 if test "${with_expat}" = no; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9533 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9546 acl_save_prefix="$prefix"
9547 prefix="$acl_final_prefix"
9548 acl_save_exec_prefix="$exec_prefix"
9549 exec_prefix="$acl_final_exec_prefix"
9551 eval additional_includedir=\"$includedir\"
9552 eval additional_libdir=\"$libdir\"
9554 exec_prefix="$acl_save_exec_prefix"
9555 prefix="$acl_save_prefix"
9558 # Check whether --with-libexpat-prefix was given.
9559 if test "${with_libexpat_prefix+set}" = set; then :
9560 withval=$with_libexpat_prefix;
9561 if test "X$withval" = "Xno"; then
9564 if test "X$withval" = "X"; then
9566 acl_save_prefix="$prefix"
9567 prefix="$acl_final_prefix"
9568 acl_save_exec_prefix="$exec_prefix"
9569 exec_prefix="$acl_final_exec_prefix"
9571 eval additional_includedir=\"$includedir\"
9572 eval additional_libdir=\"$libdir\"
9574 exec_prefix="$acl_save_exec_prefix"
9575 prefix="$acl_save_prefix"
9578 additional_includedir="$withval/include"
9579 additional_libdir="$withval/lib"
9586 # Check whether --with-libexpat-type was given.
9587 if test "${with_libexpat_type+set}" = set; then :
9588 withval=$with_libexpat_type; with_libexpat_type=$withval
9590 with_libexpat_type=auto
9593 lib_type=`eval echo \$with_libexpat_type`
9600 names_already_handled=
9601 names_next_round='expat '
9602 while test -n "$names_next_round"; do
9603 names_this_round="$names_next_round"
9605 for name in $names_this_round; do
9607 for n in $names_already_handled; do
9608 if test "$n" = "$name"; then
9613 if test -z "$already_handled"; then
9614 names_already_handled="$names_already_handled $name"
9615 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9616 eval value=\"\$HAVE_LIB$uppername\"
9617 if test -n "$value"; then
9618 if test "$value" = yes; then
9619 eval value=\"\$LIB$uppername\"
9620 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
9621 eval value=\"\$LTLIB$uppername\"
9622 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9631 if test $use_additional = yes; then
9632 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
9633 found_dir="$additional_libdir"
9634 found_so="$additional_libdir/lib$name.$shlibext"
9635 if test -f "$additional_libdir/lib$name.la"; then
9636 found_la="$additional_libdir/lib$name.la"
9638 elif test x$lib_type != xshared; then
9639 if test -f "$additional_libdir/lib$name.$libext"; then
9640 found_dir="$additional_libdir"
9641 found_a="$additional_libdir/lib$name.$libext"
9642 if test -f "$additional_libdir/lib$name.la"; then
9643 found_la="$additional_libdir/lib$name.la"
9648 if test "X$found_dir" = "X"; then
9649 for x in $LDFLAGS $LTLIBEXPAT; do
9651 acl_save_prefix="$prefix"
9652 prefix="$acl_final_prefix"
9653 acl_save_exec_prefix="$exec_prefix"
9654 exec_prefix="$acl_final_exec_prefix"
9656 exec_prefix="$acl_save_exec_prefix"
9657 prefix="$acl_save_prefix"
9661 dir=`echo "X$x" | sed -e 's/^X-L//'`
9662 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
9664 found_so="$dir/lib$name.$shlibext"
9665 if test -f "$dir/lib$name.la"; then
9666 found_la="$dir/lib$name.la"
9668 elif test x$lib_type != xshared; then
9669 if test -f "$dir/lib$name.$libext"; then
9671 found_a="$dir/lib$name.$libext"
9672 if test -f "$dir/lib$name.la"; then
9673 found_la="$dir/lib$name.la"
9679 if test "X$found_dir" != "X"; then
9684 if test "X$found_dir" != "X"; then
9685 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9686 if test "X$found_so" != "X"; then
9687 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9688 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9691 for x in $ltrpathdirs; do
9692 if test "X$x" = "X$found_dir"; then
9697 if test -z "$haveit"; then
9698 ltrpathdirs="$ltrpathdirs $found_dir"
9700 if test "$hardcode_direct" = yes; then
9701 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9703 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9704 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9706 for x in $rpathdirs; do
9707 if test "X$x" = "X$found_dir"; then
9712 if test -z "$haveit"; then
9713 rpathdirs="$rpathdirs $found_dir"
9717 for x in $LDFLAGS $LIBEXPAT; do
9719 acl_save_prefix="$prefix"
9720 prefix="$acl_final_prefix"
9721 acl_save_exec_prefix="$exec_prefix"
9722 exec_prefix="$acl_final_exec_prefix"
9724 exec_prefix="$acl_save_exec_prefix"
9725 prefix="$acl_save_prefix"
9727 if test "X$x" = "X-L$found_dir"; then
9732 if test -z "$haveit"; then
9733 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9735 if test "$hardcode_minus_L" != no; then
9736 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9738 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9744 if test "X$found_a" != "X"; then
9745 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9747 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9750 additional_includedir=
9751 case "$found_dir" in
9753 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9754 additional_includedir="$basedir/include"
9757 if test "X$additional_includedir" != "X"; then
9758 if test "X$additional_includedir" != "X/usr/include"; then
9760 if test "X$additional_includedir" = "X/usr/local/include"; then
9761 if test -n "$GCC"; then
9763 linux*) haveit=yes;;
9767 if test -z "$haveit"; then
9768 for x in $CPPFLAGS $INCEXPAT; do
9770 acl_save_prefix="$prefix"
9771 prefix="$acl_final_prefix"
9772 acl_save_exec_prefix="$exec_prefix"
9773 exec_prefix="$acl_final_exec_prefix"
9775 exec_prefix="$acl_save_exec_prefix"
9776 prefix="$acl_save_prefix"
9778 if test "X$x" = "X-I$additional_includedir"; then
9783 if test -z "$haveit"; then
9784 if test -d "$additional_includedir"; then
9785 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9791 if test -n "$found_la"; then
9792 save_libdir="$libdir"
9794 */* | *\\*) . "$found_la" ;;
9795 *) . "./$found_la" ;;
9797 libdir="$save_libdir"
9798 for dep in $dependency_libs; do
9801 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9802 if test "X$additional_libdir" != "X/usr/lib"; then
9804 if test "X$additional_libdir" = "X/usr/local/lib"; then
9805 if test -n "$GCC"; then
9807 linux*) haveit=yes;;
9811 if test -z "$haveit"; then
9813 for x in $LDFLAGS $LIBEXPAT; do
9815 acl_save_prefix="$prefix"
9816 prefix="$acl_final_prefix"
9817 acl_save_exec_prefix="$exec_prefix"
9818 exec_prefix="$acl_final_exec_prefix"
9820 exec_prefix="$acl_save_exec_prefix"
9821 prefix="$acl_save_prefix"
9823 if test "X$x" = "X-L$additional_libdir"; then
9828 if test -z "$haveit"; then
9829 if test -d "$additional_libdir"; then
9830 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9834 for x in $LDFLAGS $LTLIBEXPAT; do
9836 acl_save_prefix="$prefix"
9837 prefix="$acl_final_prefix"
9838 acl_save_exec_prefix="$exec_prefix"
9839 exec_prefix="$acl_final_exec_prefix"
9841 exec_prefix="$acl_save_exec_prefix"
9842 prefix="$acl_save_prefix"
9844 if test "X$x" = "X-L$additional_libdir"; then
9849 if test -z "$haveit"; then
9850 if test -d "$additional_libdir"; then
9851 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9858 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9859 if test "$enable_rpath" != no; then
9861 for x in $rpathdirs; do
9862 if test "X$x" = "X$dir"; then
9867 if test -z "$haveit"; then
9868 rpathdirs="$rpathdirs $dir"
9871 for x in $ltrpathdirs; do
9872 if test "X$x" = "X$dir"; then
9877 if test -z "$haveit"; then
9878 ltrpathdirs="$ltrpathdirs $dir"
9883 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9886 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9889 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9890 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9896 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
9897 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9898 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9900 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9901 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9908 if test "X$rpathdirs" != "X"; then
9909 if test -n "$hardcode_libdir_separator"; then
9911 for found_dir in $rpathdirs; do
9912 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9914 acl_save_libdir="$libdir"
9916 eval flag=\"$hardcode_libdir_flag_spec\"
9917 libdir="$acl_save_libdir"
9918 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9920 for found_dir in $rpathdirs; do
9921 acl_save_libdir="$libdir"
9923 eval flag=\"$hardcode_libdir_flag_spec\"
9924 libdir="$acl_save_libdir"
9925 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9929 if test "X$ltrpathdirs" != "X"; then
9930 for found_dir in $ltrpathdirs; do
9931 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9936 ac_save_CPPFLAGS="$CPPFLAGS"
9938 for element in $INCEXPAT; do
9940 for x in $CPPFLAGS; do
9942 acl_save_prefix="$prefix"
9943 prefix="$acl_final_prefix"
9944 acl_save_exec_prefix="$exec_prefix"
9945 exec_prefix="$acl_final_exec_prefix"
9947 exec_prefix="$acl_save_exec_prefix"
9948 prefix="$acl_save_prefix"
9950 if test "X$x" = "X$element"; then
9955 if test -z "$haveit"; then
9956 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9962 $as_echo_n "checking for libexpat... " >&6; }
9963 if ${ac_cv_libexpat+:} false; then :
9964 $as_echo_n "(cached) " >&6
9967 ac_save_LIBS="$LIBS"
9968 LIBS="$LIBS $LIBEXPAT"
9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970 /* end confdefs.h. */
9975 XML_Parser p = XML_ParserCreate (0);
9980 if ac_fn_c_try_link "$LINENO"; then :
9985 rm -f core conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987 LIBS="$ac_save_LIBS"
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9991 $as_echo "$ac_cv_libexpat" >&6; }
9992 if test "$ac_cv_libexpat" = yes; then
9995 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9998 $as_echo_n "checking how to link with libexpat... " >&6; }
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10000 $as_echo "$LIBEXPAT" >&6; }
10003 CPPFLAGS="$ac_save_CPPFLAGS"
10013 if test "$HAVE_LIBEXPAT" != yes; then
10014 if test "$with_expat" = yes; then
10015 as_fn_error $? "expat is missing or unusable" "$LINENO" 5
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10018 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10022 LIBS="$LIBS $LIBEXPAT"
10023 for ac_func in XML_StopParser
10025 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10026 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
10027 cat >>confdefs.h <<_ACEOF
10028 #define HAVE_XML_STOPPARSER 1
10038 # Verify that we have a usable GMP library.
10049 acl_save_prefix="$prefix"
10050 prefix="$acl_final_prefix"
10051 acl_save_exec_prefix="$exec_prefix"
10052 exec_prefix="$acl_final_exec_prefix"
10054 eval additional_includedir=\"$includedir\"
10055 eval additional_libdir=\"$libdir\"
10057 exec_prefix="$acl_save_exec_prefix"
10058 prefix="$acl_save_prefix"
10061 # Check whether --with-libgmp-prefix was given.
10062 if test "${with_libgmp_prefix+set}" = set; then :
10063 withval=$with_libgmp_prefix;
10064 if test "X$withval" = "Xno"; then
10067 if test "X$withval" = "X"; then
10069 acl_save_prefix="$prefix"
10070 prefix="$acl_final_prefix"
10071 acl_save_exec_prefix="$exec_prefix"
10072 exec_prefix="$acl_final_exec_prefix"
10074 eval additional_includedir=\"$includedir\"
10075 eval additional_libdir=\"$libdir\"
10077 exec_prefix="$acl_save_exec_prefix"
10078 prefix="$acl_save_prefix"
10081 additional_includedir="$withval/include"
10082 additional_libdir="$withval/lib"
10089 # Check whether --with-libgmp-type was given.
10090 if test "${with_libgmp_type+set}" = set; then :
10091 withval=$with_libgmp_type; with_libgmp_type=$withval
10093 with_libgmp_type=auto
10096 lib_type=`eval echo \$with_libgmp_type`
10103 names_already_handled=
10104 names_next_round='gmp '
10105 while test -n "$names_next_round"; do
10106 names_this_round="$names_next_round"
10108 for name in $names_this_round; do
10110 for n in $names_already_handled; do
10111 if test "$n" = "$name"; then
10112 already_handled=yes
10116 if test -z "$already_handled"; then
10117 names_already_handled="$names_already_handled $name"
10118 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10119 eval value=\"\$HAVE_LIB$uppername\"
10120 if test -n "$value"; then
10121 if test "$value" = yes; then
10122 eval value=\"\$LIB$uppername\"
10123 test -z "$value" || LIBGMP="${LIBGMP}${LIBGMP:+ }$value"
10124 eval value=\"\$LTLIB$uppername\"
10125 test -z "$value" || LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }$value"
10134 if test $use_additional = yes; then
10135 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10136 found_dir="$additional_libdir"
10137 found_so="$additional_libdir/lib$name.$shlibext"
10138 if test -f "$additional_libdir/lib$name.la"; then
10139 found_la="$additional_libdir/lib$name.la"
10141 elif test x$lib_type != xshared; then
10142 if test -f "$additional_libdir/lib$name.$libext"; then
10143 found_dir="$additional_libdir"
10144 found_a="$additional_libdir/lib$name.$libext"
10145 if test -f "$additional_libdir/lib$name.la"; then
10146 found_la="$additional_libdir/lib$name.la"
10151 if test "X$found_dir" = "X"; then
10152 for x in $LDFLAGS $LTLIBGMP; do
10154 acl_save_prefix="$prefix"
10155 prefix="$acl_final_prefix"
10156 acl_save_exec_prefix="$exec_prefix"
10157 exec_prefix="$acl_final_exec_prefix"
10159 exec_prefix="$acl_save_exec_prefix"
10160 prefix="$acl_save_prefix"
10164 dir=`echo "X$x" | sed -e 's/^X-L//'`
10165 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10167 found_so="$dir/lib$name.$shlibext"
10168 if test -f "$dir/lib$name.la"; then
10169 found_la="$dir/lib$name.la"
10171 elif test x$lib_type != xshared; then
10172 if test -f "$dir/lib$name.$libext"; then
10174 found_a="$dir/lib$name.$libext"
10175 if test -f "$dir/lib$name.la"; then
10176 found_la="$dir/lib$name.la"
10182 if test "X$found_dir" != "X"; then
10187 if test "X$found_dir" != "X"; then
10188 LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-L$found_dir -l$name"
10189 if test "X$found_so" != "X"; then
10190 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10191 LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
10194 for x in $ltrpathdirs; do
10195 if test "X$x" = "X$found_dir"; then
10200 if test -z "$haveit"; then
10201 ltrpathdirs="$ltrpathdirs $found_dir"
10203 if test "$hardcode_direct" = yes; then
10204 LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
10206 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10207 LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
10209 for x in $rpathdirs; do
10210 if test "X$x" = "X$found_dir"; then
10215 if test -z "$haveit"; then
10216 rpathdirs="$rpathdirs $found_dir"
10220 for x in $LDFLAGS $LIBGMP; do
10222 acl_save_prefix="$prefix"
10223 prefix="$acl_final_prefix"
10224 acl_save_exec_prefix="$exec_prefix"
10225 exec_prefix="$acl_final_exec_prefix"
10227 exec_prefix="$acl_save_exec_prefix"
10228 prefix="$acl_save_prefix"
10230 if test "X$x" = "X-L$found_dir"; then
10235 if test -z "$haveit"; then
10236 LIBGMP="${LIBGMP}${LIBGMP:+ }-L$found_dir"
10238 if test "$hardcode_minus_L" != no; then
10239 LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
10241 LIBGMP="${LIBGMP}${LIBGMP:+ }-l$name"
10247 if test "X$found_a" != "X"; then
10248 LIBGMP="${LIBGMP}${LIBGMP:+ }$found_a"
10250 LIBGMP="${LIBGMP}${LIBGMP:+ }-L$found_dir -l$name"
10253 additional_includedir=
10254 case "$found_dir" in
10256 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10257 additional_includedir="$basedir/include"
10260 if test "X$additional_includedir" != "X"; then
10261 if test "X$additional_includedir" != "X/usr/include"; then
10263 if test "X$additional_includedir" = "X/usr/local/include"; then
10264 if test -n "$GCC"; then
10266 linux*) haveit=yes;;
10270 if test -z "$haveit"; then
10271 for x in $CPPFLAGS $INCGMP; do
10273 acl_save_prefix="$prefix"
10274 prefix="$acl_final_prefix"
10275 acl_save_exec_prefix="$exec_prefix"
10276 exec_prefix="$acl_final_exec_prefix"
10278 exec_prefix="$acl_save_exec_prefix"
10279 prefix="$acl_save_prefix"
10281 if test "X$x" = "X-I$additional_includedir"; then
10286 if test -z "$haveit"; then
10287 if test -d "$additional_includedir"; then
10288 INCGMP="${INCGMP}${INCGMP:+ }-I$additional_includedir"
10294 if test -n "$found_la"; then
10295 save_libdir="$libdir"
10296 case "$found_la" in
10297 */* | *\\*) . "$found_la" ;;
10298 *) . "./$found_la" ;;
10300 libdir="$save_libdir"
10301 for dep in $dependency_libs; do
10304 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10305 if test "X$additional_libdir" != "X/usr/lib"; then
10307 if test "X$additional_libdir" = "X/usr/local/lib"; then
10308 if test -n "$GCC"; then
10310 linux*) haveit=yes;;
10314 if test -z "$haveit"; then
10316 for x in $LDFLAGS $LIBGMP; do
10318 acl_save_prefix="$prefix"
10319 prefix="$acl_final_prefix"
10320 acl_save_exec_prefix="$exec_prefix"
10321 exec_prefix="$acl_final_exec_prefix"
10323 exec_prefix="$acl_save_exec_prefix"
10324 prefix="$acl_save_prefix"
10326 if test "X$x" = "X-L$additional_libdir"; then
10331 if test -z "$haveit"; then
10332 if test -d "$additional_libdir"; then
10333 LIBGMP="${LIBGMP}${LIBGMP:+ }-L$additional_libdir"
10337 for x in $LDFLAGS $LTLIBGMP; do
10339 acl_save_prefix="$prefix"
10340 prefix="$acl_final_prefix"
10341 acl_save_exec_prefix="$exec_prefix"
10342 exec_prefix="$acl_final_exec_prefix"
10344 exec_prefix="$acl_save_exec_prefix"
10345 prefix="$acl_save_prefix"
10347 if test "X$x" = "X-L$additional_libdir"; then
10352 if test -z "$haveit"; then
10353 if test -d "$additional_libdir"; then
10354 LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-L$additional_libdir"
10361 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10362 if test "$enable_rpath" != no; then
10364 for x in $rpathdirs; do
10365 if test "X$x" = "X$dir"; then
10370 if test -z "$haveit"; then
10371 rpathdirs="$rpathdirs $dir"
10374 for x in $ltrpathdirs; do
10375 if test "X$x" = "X$dir"; then
10380 if test -z "$haveit"; then
10381 ltrpathdirs="$ltrpathdirs $dir"
10386 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10389 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10392 LIBGMP="${LIBGMP}${LIBGMP:+ }$dep"
10393 LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }$dep"
10399 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
10400 LIBGMP="${LIBGMP}${LIBGMP:+ }-l$name"
10401 LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-l$name"
10403 LIBGMP="${LIBGMP}${LIBGMP:+ }-l:lib$name.$libext"
10404 LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-l:lib$name.$libext"
10411 if test "X$rpathdirs" != "X"; then
10412 if test -n "$hardcode_libdir_separator"; then
10414 for found_dir in $rpathdirs; do
10415 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10417 acl_save_libdir="$libdir"
10419 eval flag=\"$hardcode_libdir_flag_spec\"
10420 libdir="$acl_save_libdir"
10421 LIBGMP="${LIBGMP}${LIBGMP:+ }$flag"
10423 for found_dir in $rpathdirs; do
10424 acl_save_libdir="$libdir"
10425 libdir="$found_dir"
10426 eval flag=\"$hardcode_libdir_flag_spec\"
10427 libdir="$acl_save_libdir"
10428 LIBGMP="${LIBGMP}${LIBGMP:+ }$flag"
10432 if test "X$ltrpathdirs" != "X"; then
10433 for found_dir in $ltrpathdirs; do
10434 LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-R$found_dir"
10439 ac_save_CPPFLAGS="$CPPFLAGS"
10441 for element in $INCGMP; do
10443 for x in $CPPFLAGS; do
10445 acl_save_prefix="$prefix"
10446 prefix="$acl_final_prefix"
10447 acl_save_exec_prefix="$exec_prefix"
10448 exec_prefix="$acl_final_exec_prefix"
10450 exec_prefix="$acl_save_exec_prefix"
10451 prefix="$acl_save_prefix"
10453 if test "X$x" = "X$element"; then
10458 if test -z "$haveit"; then
10459 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5
10465 $as_echo_n "checking for libgmp... " >&6; }
10466 if ${ac_cv_libgmp+:} false; then :
10467 $as_echo_n "(cached) " >&6
10470 ac_save_LIBS="$LIBS"
10471 LIBS="$LIBS $LIBGMP"
10472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473 /* end confdefs.h. */
10484 if ac_fn_c_try_link "$LINENO"; then :
10489 rm -f core conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10491 LIBS="$ac_save_LIBS"
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgmp" >&5
10495 $as_echo "$ac_cv_libgmp" >&6; }
10496 if test "$ac_cv_libgmp" = yes; then
10499 $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgmp" >&5
10502 $as_echo_n "checking how to link with libgmp... " >&6; }
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGMP" >&5
10504 $as_echo "$LIBGMP" >&6; }
10507 CPPFLAGS="$ac_save_CPPFLAGS"
10517 if test "$HAVE_LIBGMP" != yes; then
10518 as_fn_error $? "GMP is missing or unusable" "$LINENO" 5
10522 # Check whether --with-mpfr was given.
10523 if test "${with_mpfr+set}" = set; then :
10524 withval=$with_mpfr;
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10530 $as_echo_n "checking whether to use MPFR... " >&6; }
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10532 $as_echo "$with_mpfr" >&6; }
10534 if test "${with_mpfr}" = no; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10536 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10549 acl_save_prefix="$prefix"
10550 prefix="$acl_final_prefix"
10551 acl_save_exec_prefix="$exec_prefix"
10552 exec_prefix="$acl_final_exec_prefix"
10554 eval additional_includedir=\"$includedir\"
10555 eval additional_libdir=\"$libdir\"
10557 exec_prefix="$acl_save_exec_prefix"
10558 prefix="$acl_save_prefix"
10561 # Check whether --with-libmpfr-prefix was given.
10562 if test "${with_libmpfr_prefix+set}" = set; then :
10563 withval=$with_libmpfr_prefix;
10564 if test "X$withval" = "Xno"; then
10567 if test "X$withval" = "X"; then
10569 acl_save_prefix="$prefix"
10570 prefix="$acl_final_prefix"
10571 acl_save_exec_prefix="$exec_prefix"
10572 exec_prefix="$acl_final_exec_prefix"
10574 eval additional_includedir=\"$includedir\"
10575 eval additional_libdir=\"$libdir\"
10577 exec_prefix="$acl_save_exec_prefix"
10578 prefix="$acl_save_prefix"
10581 additional_includedir="$withval/include"
10582 additional_libdir="$withval/lib"
10589 # Check whether --with-libmpfr-type was given.
10590 if test "${with_libmpfr_type+set}" = set; then :
10591 withval=$with_libmpfr_type; with_libmpfr_type=$withval
10593 with_libmpfr_type=auto
10596 lib_type=`eval echo \$with_libmpfr_type`
10603 names_already_handled=
10604 names_next_round='mpfr gmp'
10605 while test -n "$names_next_round"; do
10606 names_this_round="$names_next_round"
10608 for name in $names_this_round; do
10610 for n in $names_already_handled; do
10611 if test "$n" = "$name"; then
10612 already_handled=yes
10616 if test -z "$already_handled"; then
10617 names_already_handled="$names_already_handled $name"
10618 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10619 eval value=\"\$HAVE_LIB$uppername\"
10620 if test -n "$value"; then
10621 if test "$value" = yes; then
10622 eval value=\"\$LIB$uppername\"
10623 test -z "$value" || LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$value"
10624 eval value=\"\$LTLIB$uppername\"
10625 test -z "$value" || LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10634 if test $use_additional = yes; then
10635 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10636 found_dir="$additional_libdir"
10637 found_so="$additional_libdir/lib$name.$shlibext"
10638 if test -f "$additional_libdir/lib$name.la"; then
10639 found_la="$additional_libdir/lib$name.la"
10641 elif test x$lib_type != xshared; then
10642 if test -f "$additional_libdir/lib$name.$libext"; then
10643 found_dir="$additional_libdir"
10644 found_a="$additional_libdir/lib$name.$libext"
10645 if test -f "$additional_libdir/lib$name.la"; then
10646 found_la="$additional_libdir/lib$name.la"
10651 if test "X$found_dir" = "X"; then
10652 for x in $LDFLAGS $LTLIBMPFR; do
10654 acl_save_prefix="$prefix"
10655 prefix="$acl_final_prefix"
10656 acl_save_exec_prefix="$exec_prefix"
10657 exec_prefix="$acl_final_exec_prefix"
10659 exec_prefix="$acl_save_exec_prefix"
10660 prefix="$acl_save_prefix"
10664 dir=`echo "X$x" | sed -e 's/^X-L//'`
10665 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10667 found_so="$dir/lib$name.$shlibext"
10668 if test -f "$dir/lib$name.la"; then
10669 found_la="$dir/lib$name.la"
10671 elif test x$lib_type != xshared; then
10672 if test -f "$dir/lib$name.$libext"; then
10674 found_a="$dir/lib$name.$libext"
10675 if test -f "$dir/lib$name.la"; then
10676 found_la="$dir/lib$name.la"
10682 if test "X$found_dir" != "X"; then
10687 if test "X$found_dir" != "X"; then
10688 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10689 if test "X$found_so" != "X"; then
10690 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10691 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
10694 for x in $ltrpathdirs; do
10695 if test "X$x" = "X$found_dir"; then
10700 if test -z "$haveit"; then
10701 ltrpathdirs="$ltrpathdirs $found_dir"
10703 if test "$hardcode_direct" = yes; then
10704 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
10706 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10707 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
10709 for x in $rpathdirs; do
10710 if test "X$x" = "X$found_dir"; then
10715 if test -z "$haveit"; then
10716 rpathdirs="$rpathdirs $found_dir"
10720 for x in $LDFLAGS $LIBMPFR; do
10722 acl_save_prefix="$prefix"
10723 prefix="$acl_final_prefix"
10724 acl_save_exec_prefix="$exec_prefix"
10725 exec_prefix="$acl_final_exec_prefix"
10727 exec_prefix="$acl_save_exec_prefix"
10728 prefix="$acl_save_prefix"
10730 if test "X$x" = "X-L$found_dir"; then
10735 if test -z "$haveit"; then
10736 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10738 if test "$hardcode_minus_L" != no; then
10739 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
10741 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
10747 if test "X$found_a" != "X"; then
10748 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_a"
10750 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10753 additional_includedir=
10754 case "$found_dir" in
10756 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10757 additional_includedir="$basedir/include"
10760 if test "X$additional_includedir" != "X"; then
10761 if test "X$additional_includedir" != "X/usr/include"; then
10763 if test "X$additional_includedir" = "X/usr/local/include"; then
10764 if test -n "$GCC"; then
10766 linux*) haveit=yes;;
10770 if test -z "$haveit"; then
10771 for x in $CPPFLAGS $INCMPFR; do
10773 acl_save_prefix="$prefix"
10774 prefix="$acl_final_prefix"
10775 acl_save_exec_prefix="$exec_prefix"
10776 exec_prefix="$acl_final_exec_prefix"
10778 exec_prefix="$acl_save_exec_prefix"
10779 prefix="$acl_save_prefix"
10781 if test "X$x" = "X-I$additional_includedir"; then
10786 if test -z "$haveit"; then
10787 if test -d "$additional_includedir"; then
10788 INCMPFR="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10794 if test -n "$found_la"; then
10795 save_libdir="$libdir"
10796 case "$found_la" in
10797 */* | *\\*) . "$found_la" ;;
10798 *) . "./$found_la" ;;
10800 libdir="$save_libdir"
10801 for dep in $dependency_libs; do
10804 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10805 if test "X$additional_libdir" != "X/usr/lib"; then
10807 if test "X$additional_libdir" = "X/usr/local/lib"; then
10808 if test -n "$GCC"; then
10810 linux*) haveit=yes;;
10814 if test -z "$haveit"; then
10816 for x in $LDFLAGS $LIBMPFR; do
10818 acl_save_prefix="$prefix"
10819 prefix="$acl_final_prefix"
10820 acl_save_exec_prefix="$exec_prefix"
10821 exec_prefix="$acl_final_exec_prefix"
10823 exec_prefix="$acl_save_exec_prefix"
10824 prefix="$acl_save_prefix"
10826 if test "X$x" = "X-L$additional_libdir"; then
10831 if test -z "$haveit"; then
10832 if test -d "$additional_libdir"; then
10833 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10837 for x in $LDFLAGS $LTLIBMPFR; do
10839 acl_save_prefix="$prefix"
10840 prefix="$acl_final_prefix"
10841 acl_save_exec_prefix="$exec_prefix"
10842 exec_prefix="$acl_final_exec_prefix"
10844 exec_prefix="$acl_save_exec_prefix"
10845 prefix="$acl_save_prefix"
10847 if test "X$x" = "X-L$additional_libdir"; then
10852 if test -z "$haveit"; then
10853 if test -d "$additional_libdir"; then
10854 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10861 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10862 if test "$enable_rpath" != no; then
10864 for x in $rpathdirs; do
10865 if test "X$x" = "X$dir"; then
10870 if test -z "$haveit"; then
10871 rpathdirs="$rpathdirs $dir"
10874 for x in $ltrpathdirs; do
10875 if test "X$x" = "X$dir"; then
10880 if test -z "$haveit"; then
10881 ltrpathdirs="$ltrpathdirs $dir"
10886 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10889 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10892 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$dep"
10893 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10899 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
10900 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
10901 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10903 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10904 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10911 if test "X$rpathdirs" != "X"; then
10912 if test -n "$hardcode_libdir_separator"; then
10914 for found_dir in $rpathdirs; do
10915 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10917 acl_save_libdir="$libdir"
10919 eval flag=\"$hardcode_libdir_flag_spec\"
10920 libdir="$acl_save_libdir"
10921 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
10923 for found_dir in $rpathdirs; do
10924 acl_save_libdir="$libdir"
10925 libdir="$found_dir"
10926 eval flag=\"$hardcode_libdir_flag_spec\"
10927 libdir="$acl_save_libdir"
10928 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
10932 if test "X$ltrpathdirs" != "X"; then
10933 for found_dir in $ltrpathdirs; do
10934 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10939 ac_save_CPPFLAGS="$CPPFLAGS"
10941 for element in $INCMPFR; do
10943 for x in $CPPFLAGS; do
10945 acl_save_prefix="$prefix"
10946 prefix="$acl_final_prefix"
10947 acl_save_exec_prefix="$exec_prefix"
10948 exec_prefix="$acl_final_exec_prefix"
10950 exec_prefix="$acl_save_exec_prefix"
10951 prefix="$acl_save_prefix"
10953 if test "X$x" = "X$element"; then
10958 if test -z "$haveit"; then
10959 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10965 $as_echo_n "checking for libmpfr... " >&6; }
10966 if ${ac_cv_libmpfr+:} false; then :
10967 $as_echo_n "(cached) " >&6
10970 ac_save_LIBS="$LIBS"
10971 LIBS="$LIBS $LIBMPFR"
10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10978 mpfr_exp_t exp; mpfr_t x;
10979 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10984 if ac_fn_c_try_link "$LINENO"; then :
10989 rm -f core conftest.err conftest.$ac_objext \
10990 conftest$ac_exeext conftest.$ac_ext
10991 LIBS="$ac_save_LIBS"
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10995 $as_echo "$ac_cv_libmpfr" >&6; }
10996 if test "$ac_cv_libmpfr" = yes; then
10999 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
11002 $as_echo_n "checking how to link with libmpfr... " >&6; }
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
11004 $as_echo "$LIBMPFR" >&6; }
11007 CPPFLAGS="$ac_save_CPPFLAGS"
11017 if test "$HAVE_LIBMPFR" != yes; then
11018 if test "$with_mpfr" = yes; then
11019 as_fn_error $? "MPFR is missing or unusable" "$LINENO" 5
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
11022 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
11027 # --------------------- #
11028 # Check for libpython. #
11029 # --------------------- #
11036 # Check whether --with-python was given.
11037 if test "${with_python+set}" = set; then :
11038 withval=$with_python;
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
11044 $as_echo_n "checking whether to use python... " >&6; }
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
11046 $as_echo "$with_python" >&6; }
11048 if test "${with_python}" = no; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
11050 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11053 case "${with_python}" in
11055 if test -d "${with_python}"; then
11056 # Assume the python binary is ${with_python}/bin/python.
11057 python_prog="${with_python}/bin/python"
11059 # If python does not exit ${with_python}/bin, then try in
11060 # ${with_python}. On Windows/MinGW, this is where the Python
11062 if test ! -x "${python_prog}"; then
11063 python_prog="${with_python}/python"
11066 if test ! -x "${python_prog}"; then
11067 # Fall back to gdb 7.0/7.1 behaviour.
11068 python_prog=missing
11069 python_prefix=${with_python}
11071 elif test -x "${with_python}"; then
11072 # While we can't run python compiled for $host (unless host == build),
11073 # the user could write a script that provides the needed information,
11074 # so we support that.
11075 python_prog=${with_python}
11078 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
11082 # Disallow --with-python=foo/bar.
11083 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
11086 # The user has either specified auto, yes, or the name of the python
11087 # program assumed to be in $PATH.
11089 case "${with_python}" in
11091 if test "${build}" = "${host}"; then
11092 # Extract the first word of "python", so it can be a program name with args.
11093 set dummy python; ac_word=$2
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095 $as_echo_n "checking for $ac_word... " >&6; }
11096 if ${ac_cv_path_python_prog_path+:} false; then :
11097 $as_echo_n "(cached) " >&6
11099 case $python_prog_path in
11101 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105 for as_dir in $PATH
11108 test -z "$as_dir" && as_dir=.
11109 for ac_exec_ext in '' $ac_executable_extensions; do
11110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11111 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
11112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
11123 python_prog_path=$ac_cv_path_python_prog_path
11124 if test -n "$python_prog_path"; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11126 $as_echo "$python_prog_path" >&6; }
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11133 if test "${python_prog_path}" = missing; then
11134 python_prog=missing
11136 python_prog=${python_prog_path}
11139 # Not much we can do except assume the cross-compiler will find the
11141 python_prog=missing
11145 # While we can't run python compiled for $host (unless host == build),
11146 # the user could write a script that provides the needed information,
11147 # so we support that.
11148 python_prog="${with_python}"
11149 # Extract the first word of "${python_prog}", so it can be a program name with args.
11150 set dummy ${python_prog}; ac_word=$2
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11152 $as_echo_n "checking for $ac_word... " >&6; }
11153 if ${ac_cv_path_python_prog_path+:} false; then :
11154 $as_echo_n "(cached) " >&6
11156 case $python_prog_path in
11158 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 for as_dir in $PATH
11165 test -z "$as_dir" && as_dir=.
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11168 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
11180 python_prog_path=$ac_cv_path_python_prog_path
11181 if test -n "$python_prog_path"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11183 $as_echo "$python_prog_path" >&6; }
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11190 if test "${python_prog_path}" = missing; then
11191 as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
11197 if test "${python_prog}" != missing; then
11198 # We have a python program to use, but it may be too old.
11199 # Don't flag an error for --with-python=auto (the default).
11200 have_python_config=yes
11201 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
11202 if test $? != 0; then
11203 have_python_config=failed
11204 if test "${with_python}" != auto; then
11205 as_fn_error $? "failure running python-config --includes" "$LINENO" 5
11208 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
11209 if test $? != 0; then
11210 have_python_config=failed
11211 if test "${with_python}" != auto; then
11212 as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
11215 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
11216 if test $? != 0; then
11217 have_python_config=failed
11218 if test "${with_python}" != auto; then
11219 as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
11223 # We do not have a python executable we can use to determine where
11224 # to find the Python headers and libs. We cannot guess the include
11225 # path from the python_prefix either, because that include path
11226 # depends on the Python version. So, there is nothing much we can
11227 # do except assume that the compiler will be able to find those files.
11230 have_python_config=no
11233 # If we have python-config, only try the configuration it provides.
11234 # Otherwise fallback on the old way of trying different versions of
11238 if test "${have_python_config}" = yes; then
11241 new_CPPFLAGS=${python_includes}
11242 new_LIBS=${python_libs}
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11244 $as_echo_n "checking for python... " >&6; }
11245 save_CPPFLAGS=$CPPFLAGS
11247 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11248 LIBS="$new_LIBS $LIBS"
11249 found_usable_python=no
11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11252 #include "Python.h"
11261 if ac_fn_c_try_link "$LINENO"; then :
11263 found_usable_python=yes
11264 PYTHON_CPPFLAGS=$new_CPPFLAGS
11265 PYTHON_LIBS=$new_LIBS
11267 rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11269 CPPFLAGS=$save_CPPFLAGS
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11272 $as_echo "${found_usable_python}" >&6; }
11274 elif test "${have_python_config}" != failed; then
11275 if test "${have_libpython}" = no; then
11278 new_CPPFLAGS=${python_includes}
11279 new_LIBS="-lpython2.7 ${python_libs}"
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11281 $as_echo_n "checking for python... " >&6; }
11282 save_CPPFLAGS=$CPPFLAGS
11284 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11285 LIBS="$new_LIBS $LIBS"
11286 found_usable_python=no
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11289 #include "Python.h"
11298 if ac_fn_c_try_link "$LINENO"; then :
11300 found_usable_python=yes
11301 PYTHON_CPPFLAGS=$new_CPPFLAGS
11302 PYTHON_LIBS=$new_LIBS
11304 rm -f core conftest.err conftest.$ac_objext \
11305 conftest$ac_exeext conftest.$ac_ext
11306 CPPFLAGS=$save_CPPFLAGS
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11309 $as_echo "${found_usable_python}" >&6; }
11312 if test "${have_libpython}" = no; then
11315 new_CPPFLAGS=${python_includes}
11316 new_LIBS="-lpython2.6 ${python_libs}"
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11318 $as_echo_n "checking for python... " >&6; }
11319 save_CPPFLAGS=$CPPFLAGS
11321 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11322 LIBS="$new_LIBS $LIBS"
11323 found_usable_python=no
11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11326 #include "Python.h"
11335 if ac_fn_c_try_link "$LINENO"; then :
11337 found_usable_python=yes
11338 PYTHON_CPPFLAGS=$new_CPPFLAGS
11339 PYTHON_LIBS=$new_LIBS
11341 rm -f core conftest.err conftest.$ac_objext \
11342 conftest$ac_exeext conftest.$ac_ext
11343 CPPFLAGS=$save_CPPFLAGS
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11346 $as_echo "${found_usable_python}" >&6; }
11351 if test "${have_libpython}" = no; then
11352 case "${with_python}" in
11354 as_fn_error $? "python is missing or unusable" "$LINENO" 5
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11358 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11361 as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
11365 if test -n "${python_prefix}"; then
11367 cat >>confdefs.h <<_ACEOF
11368 #define WITH_PYTHON_PATH "${python_prefix}"
11372 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
11373 if test "x$prefix" = xNONE; then
11374 test_prefix=/usr/local
11376 test_prefix=$prefix
11379 test_prefix=$exec_prefix
11382 case ${python_prefix} in
11383 "${test_prefix}"|"${test_prefix}/"*|\
11384 '${exec_prefix}'|'${exec_prefix}/'*)
11389 cat >>confdefs.h <<_ACEOF
11390 #define PYTHON_PATH_RELOCATABLE $value
11399 # Check whether --with-python-libdir was given.
11400 if test "${with_python_libdir+set}" = set; then :
11401 withval=$with_python_libdir;
11404 # If no python libdir is specified then select one based on
11405 # python's prefix path.
11406 if test -n "${python_prefix}"; then
11407 with_python_libdir=${python_prefix}/lib
11413 if test "${have_libpython}" != no; then
11415 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11417 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11418 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11419 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11420 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
11421 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11423 if test -n "${with_python_libdir}"; then
11425 cat >>confdefs.h <<_ACEOF
11426 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
11430 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
11431 if test "x$prefix" = xNONE; then
11432 test_prefix=/usr/local
11434 test_prefix=$prefix
11437 test_prefix=$exec_prefix
11440 case ${with_python_libdir} in
11441 "${test_prefix}"|"${test_prefix}/"*|\
11442 '${exec_prefix}'|'${exec_prefix}/'*)
11447 cat >>confdefs.h <<_ACEOF
11448 #define PYTHON_LIBDIR_RELOCATABLE $value
11454 # Flags needed to compile Python code (taken from python-config --cflags).
11455 # We cannot call python-config directly because it will output whatever was
11456 # used when compiling the Python interpreter itself, including flags which
11457 # would make the python-related objects be compiled differently from the
11458 # rest of GDB (e.g., -O2 and -fPIC).
11459 if test "${GCC}" = yes; then
11460 tentative_python_cflags="-fno-strict-aliasing -fwrapv"
11461 # Python headers recommend -DNDEBUG, but it's unclear if that just
11462 # refers to building Python itself. In release mode, though, it
11463 # doesn't hurt for the Python code in gdb to follow.
11464 $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
11467 if test "x${tentative_python_cflags}" != x; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11469 $as_echo_n "checking compiler flags for python code... " >&6; }
11470 for flag in ${tentative_python_cflags}; do
11471 # Check that the compiler accepts it
11472 saved_CFLAGS="$CFLAGS"
11473 CFLAGS="$CFLAGS $flag"
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11485 if ac_fn_c_try_compile "$LINENO"; then :
11486 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 CFLAGS="$saved_CFLAGS"
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11492 $as_echo "${PYTHON_CFLAGS}" >&6; }
11495 # On x64 Windows, Python's include headers, and pyconfig.h in
11496 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11497 # version of Windows. Unfortunately, MS_WIN64 is only defined if
11498 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
11499 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11500 # The issue was reported to the Python community, but still isn't
11501 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11503 case "$gdb_host" in
11505 if test "${GCC}" = yes; then
11506 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
11511 # Even if Python support is not compiled in, we need to have this file
11512 # included so that the "python" command, et.al., still exists.
11513 CONFIG_OBS="$CONFIG_OBS python/python.o"
11514 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
11517 # Work around Python http://bugs.python.org/issue10112. See also
11518 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11519 # no effect. Note that the only test after this that uses Python is
11520 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11521 # run without -export-dynamic too.
11522 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11527 if test "${have_libpython}" != no; then
11529 HAVE_PYTHON_FALSE='#'
11531 HAVE_PYTHON_TRUE='#'
11536 # -------------------- #
11537 # Check for libguile. #
11538 # -------------------- #
11545 # Check whether --with-guile was given.
11546 if test "${with_guile+set}" = set; then :
11547 withval=$with_guile;
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11553 $as_echo_n "checking whether to use guile... " >&6; }
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11555 $as_echo "$with_guile" >&6; }
11557 # Extract the first word of "pkg-config", so it can be a program name with args.
11558 set dummy pkg-config; ac_word=$2
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11560 $as_echo_n "checking for $ac_word... " >&6; }
11561 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
11562 $as_echo_n "(cached) " >&6
11564 case $pkg_config_prog_path in
11566 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
11569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570 for as_dir in $PATH
11573 test -z "$as_dir" && as_dir=.
11574 for ac_exec_ext in '' $ac_executable_extensions; do
11575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11576 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
11577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
11588 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
11589 if test -n "$pkg_config_prog_path"; then
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11591 $as_echo "$pkg_config_prog_path" >&6; }
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594 $as_echo "no" >&6; }
11599 try_guile_versions="guile-3.0 guile-2.2 guile-2.0"
11601 case "${with_guile}" in
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11604 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11607 if test "${pkg_config_prog_path}" = "missing"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11609 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11612 pkg_config=${pkg_config_prog_path}
11613 guile_version_list=${try_guile_versions}
11616 found_usable_guile=checking
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11618 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11619 for guile_version in ${guile_version_list}; do
11620 ${pkg_config} --exists ${guile_version} 2>/dev/null
11621 if test $? != 0; then
11624 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11625 if test $? != 0; then
11626 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11628 new_LIBS=`${pkg_config} --libs ${guile_version}`
11629 if test $? != 0; then
11630 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11632 found_usable_guile=${guile_version}
11635 if test "${found_usable_guile}" = "checking"; then
11636 if test "${flag_errors}" = "yes"; then
11637 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11639 found_usable_guile=no
11642 if test "${found_usable_guile}" != no; then
11643 save_CPPFLAGS=$CPPFLAGS
11645 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11646 LIBS="$LIBS $new_LIBS"
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649 #include "libguile.h"
11658 if ac_fn_c_try_link "$LINENO"; then :
11660 GUILE_CPPFLAGS=$new_CPPFLAGS
11661 GUILE_LIBS=$new_LIBS
11663 found_usable_guile=no
11665 rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11668 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11670 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11675 CPPFLAGS=$save_CPPFLAGS
11677 if test "${found_usable_guile}" = no; then
11678 if test "${flag_errors}" = yes; then
11679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11681 as_fn_error $? "linking guile version ${guile_version} test program failed
11682 See \`config.log' for more details" "$LINENO" 5; }
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11687 $as_echo "${found_usable_guile}" >&6; }
11692 if test "${pkg_config_prog_path}" = "missing"; then
11693 as_fn_error $? "pkg-config not found" "$LINENO" 5
11696 pkg_config=${pkg_config_prog_path}
11697 guile_version_list=${try_guile_versions}
11700 found_usable_guile=checking
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11702 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11703 for guile_version in ${guile_version_list}; do
11704 ${pkg_config} --exists ${guile_version} 2>/dev/null
11705 if test $? != 0; then
11708 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11709 if test $? != 0; then
11710 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11712 new_LIBS=`${pkg_config} --libs ${guile_version}`
11713 if test $? != 0; then
11714 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11716 found_usable_guile=${guile_version}
11719 if test "${found_usable_guile}" = "checking"; then
11720 if test "${flag_errors}" = "yes"; then
11721 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11723 found_usable_guile=no
11726 if test "${found_usable_guile}" != no; then
11727 save_CPPFLAGS=$CPPFLAGS
11729 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11730 LIBS="$LIBS $new_LIBS"
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11733 #include "libguile.h"
11742 if ac_fn_c_try_link "$LINENO"; then :
11744 GUILE_CPPFLAGS=$new_CPPFLAGS
11745 GUILE_LIBS=$new_LIBS
11747 found_usable_guile=no
11749 rm -f core conftest.err conftest.$ac_objext \
11750 conftest$ac_exeext conftest.$ac_ext
11751 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11752 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11754 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11759 CPPFLAGS=$save_CPPFLAGS
11761 if test "${found_usable_guile}" = no; then
11762 if test "${flag_errors}" = yes; then
11763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11765 as_fn_error $? "linking guile version ${guile_version} test program failed
11766 See \`config.log' for more details" "$LINENO" 5; }
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11771 $as_echo "${found_usable_guile}" >&6; }
11775 if test -x "${with_guile}"; then
11777 pkg_config=${with_guile}
11778 guile_version_list=${try_guile_versions}
11781 found_usable_guile=checking
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11783 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11784 for guile_version in ${guile_version_list}; do
11785 ${pkg_config} --exists ${guile_version} 2>/dev/null
11786 if test $? != 0; then
11789 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11790 if test $? != 0; then
11791 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11793 new_LIBS=`${pkg_config} --libs ${guile_version}`
11794 if test $? != 0; then
11795 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11797 found_usable_guile=${guile_version}
11800 if test "${found_usable_guile}" = "checking"; then
11801 if test "${flag_errors}" = "yes"; then
11802 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11804 found_usable_guile=no
11807 if test "${found_usable_guile}" != no; then
11808 save_CPPFLAGS=$CPPFLAGS
11810 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11811 LIBS="$LIBS $new_LIBS"
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814 #include "libguile.h"
11823 if ac_fn_c_try_link "$LINENO"; then :
11825 GUILE_CPPFLAGS=$new_CPPFLAGS
11826 GUILE_LIBS=$new_LIBS
11828 found_usable_guile=no
11830 rm -f core conftest.err conftest.$ac_objext \
11831 conftest$ac_exeext conftest.$ac_ext
11832 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11833 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11835 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11840 CPPFLAGS=$save_CPPFLAGS
11842 if test "${found_usable_guile}" = no; then
11843 if test "${flag_errors}" = yes; then
11844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11846 as_fn_error $? "linking guile version ${guile_version} test program failed
11847 See \`config.log' for more details" "$LINENO" 5; }
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11852 $as_echo "${found_usable_guile}" >&6; }
11855 as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
11859 # Disallow --with=guile="" and --with-guile=foo/bar.
11860 as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
11863 # A space separate list of guile versions to try, in order.
11864 if test "${pkg_config_prog_path}" = "missing"; then
11865 as_fn_error $? "pkg-config not found" "$LINENO" 5
11868 pkg_config=${pkg_config_prog_path}
11869 guile_version_list=${with_guile}
11872 found_usable_guile=checking
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11874 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11875 for guile_version in ${guile_version_list}; do
11876 ${pkg_config} --exists ${guile_version} 2>/dev/null
11877 if test $? != 0; then
11880 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11881 if test $? != 0; then
11882 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11884 new_LIBS=`${pkg_config} --libs ${guile_version}`
11885 if test $? != 0; then
11886 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11888 found_usable_guile=${guile_version}
11891 if test "${found_usable_guile}" = "checking"; then
11892 if test "${flag_errors}" = "yes"; then
11893 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11895 found_usable_guile=no
11898 if test "${found_usable_guile}" != no; then
11899 save_CPPFLAGS=$CPPFLAGS
11901 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11902 LIBS="$LIBS $new_LIBS"
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11905 #include "libguile.h"
11914 if ac_fn_c_try_link "$LINENO"; then :
11916 GUILE_CPPFLAGS=$new_CPPFLAGS
11917 GUILE_LIBS=$new_LIBS
11919 found_usable_guile=no
11921 rm -f core conftest.err conftest.$ac_objext \
11922 conftest$ac_exeext conftest.$ac_ext
11923 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11924 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11926 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11931 CPPFLAGS=$save_CPPFLAGS
11933 if test "${found_usable_guile}" = no; then
11934 if test "${flag_errors}" = yes; then
11935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11937 as_fn_error $? "linking guile version ${guile_version} test program failed
11938 See \`config.log' for more details" "$LINENO" 5; }
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11943 $as_echo "${found_usable_guile}" >&6; }
11948 if test "${have_libguile}" != no; then
11949 case "${with_guile}" in
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11953 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11954 if ${ac_cv_guild_program_name+:} false; then :
11955 $as_echo_n "(cached) " >&6
11957 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
11959 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11960 # the 'guild' and 'bindir' variables. In that case, try to guess
11961 # what the program name is, at the risk of getting it wrong if
11962 # Guile was configured with '--program-suffix' or similar.
11963 if test "x$ac_cv_guild_program_name" = "x"; then
11964 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11965 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11970 $as_echo "$ac_cv_guild_program_name" >&6; }
11972 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11973 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11976 GUILD="$ac_cv_guild_program_name"
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11983 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11984 if ${ac_cv_guild_program_name+:} false; then :
11985 $as_echo_n "(cached) " >&6
11987 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11989 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11990 # the 'guild' and 'bindir' variables. In that case, try to guess
11991 # what the program name is, at the risk of getting it wrong if
11992 # Guile was configured with '--program-suffix' or similar.
11993 if test "x$ac_cv_guild_program_name" = "x"; then
11994 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11995 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
12000 $as_echo "$ac_cv_guild_program_name" >&6; }
12002 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
12003 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
12006 GUILD="$ac_cv_guild_program_name"
12013 if test "$cross_compiling" = no; then
12016 GUILD_TARGET_FLAG="--target=$host"
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
12023 $as_echo_n "checking whether guild supports this host... " >&6; }
12024 if ${ac_cv_guild_ok+:} false; then :
12025 $as_echo_n "(cached) " >&6
12027 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
12028 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
12035 $as_echo "$ac_cv_guild_ok" >&6; }
12037 if test "$ac_cv_guild_ok" = no; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
12040 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
12044 if test "${have_libguile}" != no; then
12046 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
12048 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
12049 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
12050 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
12051 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
12052 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
12055 save_CPPFLAGS="$CPPFLAGS"
12057 CPPFLAGS="$GUILE_CPPFLAGS"
12058 for ac_func in scm_new_smob
12060 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
12061 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
12062 cat >>confdefs.h <<_ACEOF
12063 #define HAVE_SCM_NEW_SMOB 1
12070 CPPFLAGS="$save_CPPFLAGS"
12072 # Even if Guile support is not compiled in, we need to have these files
12074 CONFIG_OBS="$CONFIG_OBS guile/guile.o"
12075 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
12079 if test "${have_libguile}" != no; then
12081 HAVE_GUILE_FALSE='#'
12083 HAVE_GUILE_TRUE='#'
12088 # ---------------------------- #
12089 # Check for source highlight. #
12090 # ---------------------------- #
12095 # Check whether --enable-source-highlight was given.
12096 if test "${enable_source_highlight+set}" = set; then :
12097 enableval=$enable_source_highlight; case "${enableval}" in
12098 yes) enable_source_highlight=yes ;;
12099 no) enable_source_highlight=no ;;
12100 *) as_fn_error $? "bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
12103 enable_source_highlight=auto
12107 if test "${enable_source_highlight}" != "no"; then
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
12109 $as_echo_n "checking for the source-highlight library... " >&6; }
12110 if test "${pkg_config_prog_path}" = "missing"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
12112 $as_echo "no - pkg-config not found" >&6; }
12113 if test "${enable_source_highlight}" = "yes"; then
12114 as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
12117 if ${pkg_config_prog_path} --exists source-highlight; then
12120 as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
12124 SRCHIGH_CFLAGS=`${pkg_config_prog_path} --cflags source-highlight`
12125 SRCHIGH_LIBS=`${pkg_config_prog_path} --libs source-highlight`
12127 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12130 $as_echo "yes" >&6; }
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12134 if test "${enable_source_highlight}" = "yes"; then
12135 as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
12143 # ------------------------- #
12144 # Checks for header files. #
12145 # ------------------------- #
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12148 $as_echo_n "checking for ANSI C header files... " >&6; }
12149 if ${ac_cv_header_stdc+:} false; then :
12150 $as_echo_n "(cached) " >&6
12152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12154 #include <stdlib.h>
12155 #include <stdarg.h>
12156 #include <string.h>
12167 if ac_fn_c_try_compile "$LINENO"; then :
12168 ac_cv_header_stdc=yes
12170 ac_cv_header_stdc=no
12172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12174 if test $ac_cv_header_stdc = yes; then
12175 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177 /* end confdefs.h. */
12178 #include <string.h>
12181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12182 $EGREP "memchr" >/dev/null 2>&1; then :
12185 ac_cv_header_stdc=no
12191 if test $ac_cv_header_stdc = yes; then
12192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12195 #include <stdlib.h>
12198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12199 $EGREP "free" >/dev/null 2>&1; then :
12202 ac_cv_header_stdc=no
12208 if test $ac_cv_header_stdc = yes; then
12209 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12210 if test "$cross_compiling" = yes; then :
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12216 #include <stdlib.h>
12217 #if ((' ' & 0x0FF) == 0x020)
12218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12221 # define ISLOWER(c) \
12222 (('a' <= (c) && (c) <= 'i') \
12223 || ('j' <= (c) && (c) <= 'r') \
12224 || ('s' <= (c) && (c) <= 'z'))
12225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12233 for (i = 0; i < 256; i++)
12234 if (XOR (islower (i), ISLOWER (i))
12235 || toupper (i) != TOUPPER (i))
12240 if ac_fn_c_try_run "$LINENO"; then :
12243 ac_cv_header_stdc=no
12245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12246 conftest.$ac_objext conftest.beam conftest.$ac_ext
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12252 $as_echo "$ac_cv_header_stdc" >&6; }
12253 if test $ac_cv_header_stdc = yes; then
12255 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12259 # elf_hp.h is for HP/UX 64-bit shared library support.
12260 for ac_header in nlist.h machine/reg.h \
12262 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12263 sys/resource.h sys/ptrace.h ptrace.h \
12264 sys/reg.h sys/debugreg.h \
12267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12268 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12269 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12270 cat >>confdefs.h <<_ACEOF
12271 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12278 for ac_header in sys/user.h
12280 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12281 # include <sys/param.h>
12285 if test "x$ac_cv_header_sys_user_h" = xyes; then :
12286 cat >>confdefs.h <<_ACEOF
12287 #define HAVE_SYS_USER_H 1
12295 for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
12297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12298 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12299 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12300 cat >>confdefs.h <<_ACEOF
12301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12308 for ac_header in term.h
12310 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12311 # include <curses.h>
12315 if test "x$ac_cv_header_term_h" = xyes; then :
12316 cat >>confdefs.h <<_ACEOF
12317 #define HAVE_TERM_H 1
12325 for ac_header in sys/socket.h
12327 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12328 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
12329 cat >>confdefs.h <<_ACEOF
12330 #define HAVE_SYS_SOCKET_H 1
12337 for ac_header in ws2tcpip.h
12339 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
12340 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
12341 cat >>confdefs.h <<_ACEOF
12342 #define HAVE_WS2TCPIP_H 1
12350 # ------------------------- #
12351 # Checks for declarations. #
12352 # ------------------------- #
12355 # Check for presence and size of long long.
12356 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12357 if test "x$ac_cv_type_long_long" = xyes; then :
12359 cat >>confdefs.h <<_ACEOF
12360 #define HAVE_LONG_LONG 1
12363 # The cast to long int works around a bug in the HP C Compiler
12364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12366 # This bug is HP SR number 8606223364.
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12368 $as_echo_n "checking size of long long... " >&6; }
12369 if ${ac_cv_sizeof_long_long+:} false; then :
12370 $as_echo_n "(cached) " >&6
12372 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12375 if test "$ac_cv_type_long_long" = yes; then
12376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12378 as_fn_error 77 "cannot compute sizeof (long long)
12379 See \`config.log' for more details" "$LINENO" 5; }
12381 ac_cv_sizeof_long_long=0
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12387 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12391 cat >>confdefs.h <<_ACEOF
12392 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12399 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12400 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12401 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12407 cat >>confdefs.h <<_ACEOF
12408 #define HAVE_DECL_BASENAME $ac_have_decl
12410 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12411 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12417 cat >>confdefs.h <<_ACEOF
12418 #define HAVE_DECL_FFS $ac_have_decl
12420 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12421 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12427 cat >>confdefs.h <<_ACEOF
12428 #define HAVE_DECL_ASPRINTF $ac_have_decl
12430 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12431 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12437 cat >>confdefs.h <<_ACEOF
12438 #define HAVE_DECL_VASPRINTF $ac_have_decl
12440 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12441 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12447 cat >>confdefs.h <<_ACEOF
12448 #define HAVE_DECL_SNPRINTF $ac_have_decl
12450 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12451 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12457 cat >>confdefs.h <<_ACEOF
12458 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12461 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12462 if test "x$ac_cv_have_decl_strtol" = xyes; then :
12468 cat >>confdefs.h <<_ACEOF
12469 #define HAVE_DECL_STRTOL $ac_have_decl
12471 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12472 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
12478 cat >>confdefs.h <<_ACEOF
12479 #define HAVE_DECL_STRTOUL $ac_have_decl
12481 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12482 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
12488 cat >>confdefs.h <<_ACEOF
12489 #define HAVE_DECL_STRTOLL $ac_have_decl
12491 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12492 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
12498 cat >>confdefs.h <<_ACEOF
12499 #define HAVE_DECL_STRTOULL $ac_have_decl
12502 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12503 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12509 cat >>confdefs.h <<_ACEOF
12510 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12515 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12516 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12522 cat >>confdefs.h <<_ACEOF
12523 #define HAVE_DECL_SNPRINTF $ac_have_decl
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12528 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12529 if ${am_cv_val_LC_MESSAGES+:} false; then :
12530 $as_echo_n "(cached) " >&6
12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533 /* end confdefs.h. */
12534 #include <locale.h>
12543 if ac_fn_c_try_link "$LINENO"; then :
12544 am_cv_val_LC_MESSAGES=yes
12546 am_cv_val_LC_MESSAGES=no
12548 rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12552 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12553 if test $am_cv_val_LC_MESSAGES = yes; then
12555 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12560 # ------------------ #
12561 # Checks for types. #
12562 # ------------------ #
12564 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12565 #if HAVE_SYS_SOCKET_H
12566 # include <sys/socket.h>
12567 #elif HAVE_WS2TCPIP_H
12568 # include <ws2tcpip.h>
12572 if test "x$ac_cv_type_socklen_t" = xyes; then :
12574 cat >>confdefs.h <<_ACEOF
12575 #define HAVE_SOCKLEN_T 1
12582 # ------------------------------------- #
12583 # Checks for compiler characteristics. #
12584 # ------------------------------------- #
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12587 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12588 if ${ac_cv_c_const+:} false; then :
12589 $as_echo_n "(cached) " >&6
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h. */
12598 #ifndef __cplusplus
12599 /* Ultrix mips cc rejects this sort of thing. */
12600 typedef int charset[2];
12601 const charset cs = { 0, 0 };
12602 /* SunOS 4.1.1 cc rejects this. */
12603 char const *const *pcpcc;
12605 /* NEC SVR4.0.2 mips cc rejects this. */
12606 struct point {int x, y;};
12607 static struct point const zero = {0,0};
12608 /* AIX XL C 1.02.0.0 rejects this.
12609 It does not let you subtract one const X* pointer from another in
12610 an arm of an if-expression whose if-part is not a constant
12612 const char *g = "string";
12613 pcpcc = &g + (g ? g-g : 0);
12614 /* HPUX 7.0 cc rejects these. */
12616 ppc = (char**) pcpcc;
12617 pcpcc = (char const *const *) ppc;
12618 { /* SCO 3.2v4 cc rejects this sort of thing. */
12621 char const *s = 0 ? (char *) 0 : (char const *) 0;
12626 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12627 int x[] = {25, 17};
12628 const int *foo = &x[0];
12631 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12632 typedef const int *iptr;
12636 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12637 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12638 struct s { int j; const int *ap[3]; } bx;
12639 struct s *b = &bx; b->j = 5;
12641 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12642 const int foo = 10;
12643 if (!foo) return 0;
12645 return !cs[0] && !zero.x;
12652 if ac_fn_c_try_compile "$LINENO"; then :
12657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12660 $as_echo "$ac_cv_c_const" >&6; }
12661 if test $ac_cv_c_const = no; then
12663 $as_echo "#define const /**/" >>confdefs.h
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12668 $as_echo_n "checking for inline... " >&6; }
12669 if ${ac_cv_c_inline+:} false; then :
12670 $as_echo_n "(cached) " >&6
12673 for ac_kw in inline __inline__ __inline; do
12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h. */
12676 #ifndef __cplusplus
12678 static $ac_kw foo_t static_foo () {return 0; }
12679 $ac_kw foo_t foo () {return 0; }
12683 if ac_fn_c_try_compile "$LINENO"; then :
12684 ac_cv_c_inline=$ac_kw
12686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12687 test "$ac_cv_c_inline" != no && break
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12692 $as_echo "$ac_cv_c_inline" >&6; }
12694 case $ac_cv_c_inline in
12697 case $ac_cv_c_inline in
12699 *) ac_val=$ac_cv_c_inline;;
12701 cat >>confdefs.h <<_ACEOF
12702 #ifndef __cplusplus
12703 #define inline $ac_val
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12710 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12711 if ${ac_cv_c_bigendian+:} false; then :
12712 $as_echo_n "(cached) " >&6
12714 ac_cv_c_bigendian=unknown
12715 # See if we're dealing with a universal compiler.
12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12718 #ifndef __APPLE_CC__
12719 not a universal capable compiler
12724 if ac_fn_c_try_compile "$LINENO"; then :
12726 # Check for potential -arch flags. It is not universal unless
12727 # there are at least two -arch flags with different values.
12730 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12731 if test -n "$ac_prev"; then
12733 i?86 | x86_64 | ppc | ppc64)
12734 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12737 ac_cv_c_bigendian=universal
12743 elif test "x$ac_word" = "x-arch"; then
12748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12749 if test $ac_cv_c_bigendian = unknown; then
12750 # See if sys/param.h defines the BYTE_ORDER macro.
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12753 #include <sys/types.h>
12754 #include <sys/param.h>
12759 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12760 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12762 bogus endian macros
12769 if ac_fn_c_try_compile "$LINENO"; then :
12770 # It does; now see whether it defined to BIG_ENDIAN or not.
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12773 #include <sys/types.h>
12774 #include <sys/param.h>
12779 #if BYTE_ORDER != BIG_ENDIAN
12787 if ac_fn_c_try_compile "$LINENO"; then :
12788 ac_cv_c_bigendian=yes
12790 ac_cv_c_bigendian=no
12792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796 if test $ac_cv_c_bigendian = unknown; then
12797 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12800 #include <limits.h>
12805 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12806 bogus endian macros
12813 if ac_fn_c_try_compile "$LINENO"; then :
12814 # It does; now see whether it defined to _BIG_ENDIAN or not.
12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12817 #include <limits.h>
12822 #ifndef _BIG_ENDIAN
12830 if ac_fn_c_try_compile "$LINENO"; then :
12831 ac_cv_c_bigendian=yes
12833 ac_cv_c_bigendian=no
12835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 if test $ac_cv_c_bigendian = unknown; then
12840 # Compile a test program.
12841 if test "$cross_compiling" = yes; then :
12842 # Try to guess by grepping values from an object file.
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12845 short int ascii_mm[] =
12846 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12847 short int ascii_ii[] =
12848 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12849 int use_ascii (int i) {
12850 return ascii_mm[i] + ascii_ii[i];
12852 short int ebcdic_ii[] =
12853 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12854 short int ebcdic_mm[] =
12855 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12856 int use_ebcdic (int i) {
12857 return ebcdic_mm[i] + ebcdic_ii[i];
12864 return use_ascii (foo) == use_ebcdic (foo);
12869 if ac_fn_c_try_compile "$LINENO"; then :
12870 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12871 ac_cv_c_bigendian=yes
12873 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12874 if test "$ac_cv_c_bigendian" = unknown; then
12875 ac_cv_c_bigendian=no
12877 # finding both strings is unlikely to happen, but who knows?
12878 ac_cv_c_bigendian=unknown
12882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12886 $ac_includes_default
12891 /* Are we little or big endian? From Harbison&Steele. */
12895 char c[sizeof (long int)];
12898 return u.c[sizeof (long int) - 1] == 1;
12904 if ac_fn_c_try_run "$LINENO"; then :
12905 ac_cv_c_bigendian=no
12907 ac_cv_c_bigendian=yes
12909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12910 conftest.$ac_objext conftest.beam conftest.$ac_ext
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12916 $as_echo "$ac_cv_c_bigendian" >&6; }
12917 case $ac_cv_c_bigendian in #(
12919 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12925 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12929 as_fn_error $? "unknown endianness
12930 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12934 # ------------------------------ #
12935 # Checks for library functions. #
12936 # ------------------------------ #
12938 for ac_func in getuid getgid \
12939 pipe pread pread64 pwrite resize_term \
12941 sigaction sigsetmask socketpair \
12942 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12943 setrlimit getrlimit posix_madvise waitpid \
12946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12947 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12948 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12949 cat >>confdefs.h <<_ACEOF
12950 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12958 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12959 if ${am_cv_langinfo_codeset+:} false; then :
12960 $as_echo_n "(cached) " >&6
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964 #include <langinfo.h>
12968 char* cs = nl_langinfo(CODESET);
12973 if ac_fn_c_try_link "$LINENO"; then :
12974 am_cv_langinfo_codeset=yes
12976 am_cv_langinfo_codeset=no
12978 rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12983 $as_echo "$am_cv_langinfo_codeset" >&6; }
12984 if test $am_cv_langinfo_codeset = yes; then
12986 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12990 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12991 if test "x$ac_cv_type_size_t" = xyes; then :
12995 cat >>confdefs.h <<_ACEOF
12996 #define size_t unsigned int
13004 for ac_header in $ac_header_list
13006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13007 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13009 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13010 cat >>confdefs.h <<_ACEOF
13011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13024 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13025 if test "x$ac_cv_type_pid_t" = xyes; then :
13029 cat >>confdefs.h <<_ACEOF
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13036 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13037 if ${ac_cv_path_SED+:} false; then :
13038 $as_echo_n "(cached) " >&6
13040 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13041 for ac_i in 1 2 3 4 5 6 7; do
13042 ac_script="$ac_script$as_nl$ac_script"
13044 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13045 { ac_script=; unset ac_script;}
13046 if test -z "$SED"; then
13047 ac_path_SED_found=false
13048 # Loop through the user's path and test for each of PROGNAME-LIST
13049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050 for as_dir in $PATH
13053 test -z "$as_dir" && as_dir=.
13054 for ac_prog in sed gsed; do
13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13057 as_fn_executable_p "$ac_path_SED" || continue
13058 # Check for GNU ac_path_SED and select it if it is found.
13059 # Check for GNU $ac_path_SED
13060 case `"$ac_path_SED" --version 2>&1` in
13062 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13065 $as_echo_n 0123456789 >"conftest.in"
13068 cat "conftest.in" "conftest.in" >"conftest.tmp"
13069 mv "conftest.tmp" "conftest.in"
13070 cp "conftest.in" "conftest.nl"
13071 $as_echo '' >> "conftest.nl"
13072 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13074 as_fn_arith $ac_count + 1 && ac_count=$as_val
13075 if test $ac_count -gt ${ac_path_SED_max-0}; then
13076 # Best one so far, save it but keep looking for a better one
13077 ac_cv_path_SED="$ac_path_SED"
13078 ac_path_SED_max=$ac_count
13080 # 10*(2^10) chars as input seems more than enough
13081 test $ac_count -gt 10 && break
13083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13086 $ac_path_SED_found && break 3
13091 if test -z "$ac_cv_path_SED"; then
13092 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13095 ac_cv_path_SED=$SED
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13100 $as_echo "$ac_cv_path_SED" >&6; }
13101 SED="$ac_cv_path_SED"
13105 # Set the 'development' global.
13106 . $srcdir/../bfd/development.sh
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13109 $as_echo_n "checking for ANSI C header files... " >&6; }
13110 if ${ac_cv_header_stdc+:} false; then :
13111 $as_echo_n "(cached) " >&6
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13115 #include <stdlib.h>
13116 #include <stdarg.h>
13117 #include <string.h>
13128 if ac_fn_c_try_compile "$LINENO"; then :
13129 ac_cv_header_stdc=yes
13131 ac_cv_header_stdc=no
13133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135 if test $ac_cv_header_stdc = yes; then
13136 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13139 #include <string.h>
13142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13143 $EGREP "memchr" >/dev/null 2>&1; then :
13146 ac_cv_header_stdc=no
13152 if test $ac_cv_header_stdc = yes; then
13153 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156 #include <stdlib.h>
13159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13160 $EGREP "free" >/dev/null 2>&1; then :
13163 ac_cv_header_stdc=no
13169 if test $ac_cv_header_stdc = yes; then
13170 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13171 if test "$cross_compiling" = yes; then :
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13177 #include <stdlib.h>
13178 #if ((' ' & 0x0FF) == 0x020)
13179 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13180 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13182 # define ISLOWER(c) \
13183 (('a' <= (c) && (c) <= 'i') \
13184 || ('j' <= (c) && (c) <= 'r') \
13185 || ('s' <= (c) && (c) <= 'z'))
13186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13194 for (i = 0; i < 256; i++)
13195 if (XOR (islower (i), ISLOWER (i))
13196 || toupper (i) != TOUPPER (i))
13201 if ac_fn_c_try_run "$LINENO"; then :
13204 ac_cv_header_stdc=no
13206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13207 conftest.$ac_objext conftest.beam conftest.$ac_ext
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13213 $as_echo "$ac_cv_header_stdc" >&6; }
13214 if test $ac_cv_header_stdc = yes; then
13216 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13220 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13221 # for constant arguments. Useless!
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13223 $as_echo_n "checking for working alloca.h... " >&6; }
13224 if ${ac_cv_working_alloca_h+:} false; then :
13225 $as_echo_n "(cached) " >&6
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13229 #include <alloca.h>
13233 char *p = (char *) alloca (2 * sizeof (int));
13239 if ac_fn_c_try_link "$LINENO"; then :
13240 ac_cv_working_alloca_h=yes
13242 ac_cv_working_alloca_h=no
13244 rm -f core conftest.err conftest.$ac_objext \
13245 conftest$ac_exeext conftest.$ac_ext
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13248 $as_echo "$ac_cv_working_alloca_h" >&6; }
13249 if test $ac_cv_working_alloca_h = yes; then
13251 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13256 $as_echo_n "checking for alloca... " >&6; }
13257 if ${ac_cv_func_alloca_works+:} false; then :
13258 $as_echo_n "(cached) " >&6
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13263 # define alloca __builtin_alloca
13266 # include <malloc.h>
13267 # define alloca _alloca
13269 # ifdef HAVE_ALLOCA_H
13270 # include <alloca.h>
13275 # ifndef alloca /* predefined by HP cc +Olibcalls */
13276 void *alloca (size_t);
13286 char *p = (char *) alloca (1);
13292 if ac_fn_c_try_link "$LINENO"; then :
13293 ac_cv_func_alloca_works=yes
13295 ac_cv_func_alloca_works=no
13297 rm -f core conftest.err conftest.$ac_objext \
13298 conftest$ac_exeext conftest.$ac_ext
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13301 $as_echo "$ac_cv_func_alloca_works" >&6; }
13303 if test $ac_cv_func_alloca_works = yes; then
13305 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13308 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13309 # that cause trouble. Some versions do not even contain alloca or
13310 # contain a buggy version. If you still want to use their alloca,
13311 # use ar to extract alloca.o from them instead of compiling alloca.c.
13313 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13315 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13319 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13320 if ${ac_cv_os_cray+:} false; then :
13321 $as_echo_n "(cached) " >&6
13323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13324 /* end confdefs.h. */
13325 #if defined CRAY && ! defined CRAY2
13332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13333 $EGREP "webecray" >/dev/null 2>&1; then :
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13342 $as_echo "$ac_cv_os_cray" >&6; }
13343 if test $ac_cv_os_cray = yes; then
13344 for ac_func in _getb67 GETB67 getb67; do
13345 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13346 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13347 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13349 cat >>confdefs.h <<_ACEOF
13350 #define CRAY_STACKSEG_END $ac_func
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13360 $as_echo_n "checking stack direction for C alloca... " >&6; }
13361 if ${ac_cv_c_stack_direction+:} false; then :
13362 $as_echo_n "(cached) " >&6
13364 if test "$cross_compiling" = yes; then :
13365 ac_cv_c_stack_direction=0
13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13369 $ac_includes_default
13371 find_stack_direction (int *addr, int depth)
13373 int dir, dummy = 0;
13376 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13377 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13378 return dir + dummy;
13382 main (int argc, char **argv)
13384 return find_stack_direction (0, argc + !argv + 20) < 0;
13387 if ac_fn_c_try_run "$LINENO"; then :
13388 ac_cv_c_stack_direction=1
13390 ac_cv_c_stack_direction=-1
13392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13393 conftest.$ac_objext conftest.beam conftest.$ac_ext
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13398 $as_echo "$ac_cv_c_stack_direction" >&6; }
13399 cat >>confdefs.h <<_ACEOF
13400 #define STACK_DIRECTION $ac_cv_c_stack_direction
13411 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13413 WIN32APILIBS="-lws2_32"
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13419 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13420 if ${am_cv_langinfo_codeset+:} false; then :
13421 $as_echo_n "(cached) " >&6
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13425 #include <langinfo.h>
13429 char* cs = nl_langinfo(CODESET);
13434 if ac_fn_c_try_link "$LINENO"; then :
13435 am_cv_langinfo_codeset=yes
13437 am_cv_langinfo_codeset=no
13439 rm -f core conftest.err conftest.$ac_objext \
13440 conftest$ac_exeext conftest.$ac_ext
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13444 $as_echo "$am_cv_langinfo_codeset" >&6; }
13445 if test $am_cv_langinfo_codeset = yes; then
13447 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13452 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 dlfcn.h linux/elf.h proc_service.h poll.h sys/poll.h sys/select.h
13454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13455 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13457 cat >>confdefs.h <<_ACEOF
13458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13467 for ac_func in getpagesize
13469 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13470 if test "x$ac_cv_func_getpagesize" = xyes; then :
13471 cat >>confdefs.h <<_ACEOF
13472 #define HAVE_GETPAGESIZE 1
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13479 $as_echo_n "checking for working mmap... " >&6; }
13480 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13481 $as_echo_n "(cached) " >&6
13483 if test "$cross_compiling" = yes; then :
13484 ac_cv_func_mmap_fixed_mapped=no
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 $ac_includes_default
13489 /* malloc might have been renamed as rpl_malloc. */
13492 /* Thanks to Mike Haertel and Jim Avera for this test.
13493 Here is a matrix of mmap possibilities:
13494 mmap private not fixed
13495 mmap private fixed at somewhere currently unmapped
13496 mmap private fixed at somewhere already mapped
13497 mmap shared not fixed
13498 mmap shared fixed at somewhere currently unmapped
13499 mmap shared fixed at somewhere already mapped
13500 For private mappings, we should verify that changes cannot be read()
13501 back from the file, nor mmap's back from the file at a different
13502 address. (There have been systems where private was not correctly
13503 implemented like the infamous i386 svr4.0, and systems where the
13504 VM page cache was not coherent with the file system buffer cache
13505 like early versions of FreeBSD and possibly contemporary NetBSD.)
13506 For shared mappings, we should conversely verify that changes get
13507 propagated back to all the places they're supposed to be.
13509 Grep wants private fixed already mapped.
13510 The main things grep needs to know about mmap are:
13511 * does it exist and is it safe to write into the mmap'd area
13512 * how to use it (BSD variants) */
13515 #include <sys/mman.h>
13517 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13521 /* This mess was copied from the GNU getpagesize.h. */
13522 #ifndef HAVE_GETPAGESIZE
13523 # ifdef _SC_PAGESIZE
13524 # define getpagesize() sysconf(_SC_PAGESIZE)
13525 # else /* no _SC_PAGESIZE */
13526 # ifdef HAVE_SYS_PARAM_H
13527 # include <sys/param.h>
13528 # ifdef EXEC_PAGESIZE
13529 # define getpagesize() EXEC_PAGESIZE
13530 # else /* no EXEC_PAGESIZE */
13532 # define getpagesize() NBPG * CLSIZE
13535 # endif /* no CLSIZE */
13536 # else /* no NBPG */
13538 # define getpagesize() NBPC
13539 # else /* no NBPC */
13541 # define getpagesize() PAGESIZE
13542 # endif /* PAGESIZE */
13543 # endif /* no NBPC */
13544 # endif /* no NBPG */
13545 # endif /* no EXEC_PAGESIZE */
13546 # else /* no HAVE_SYS_PARAM_H */
13547 # define getpagesize() 8192 /* punt totally */
13548 # endif /* no HAVE_SYS_PARAM_H */
13549 # endif /* no _SC_PAGESIZE */
13551 #endif /* no HAVE_GETPAGESIZE */
13556 char *data, *data2, *data3;
13557 const char *cdata2;
13561 pagesize = getpagesize ();
13563 /* First, make a file with some known garbage in it. */
13564 data = (char *) malloc (pagesize);
13567 for (i = 0; i < pagesize; ++i)
13568 *(data + i) = rand ();
13570 fd = creat ("conftest.mmap", 0600);
13573 if (write (fd, data, pagesize) != pagesize)
13577 /* Next, check that the tail of a page is zero-filled. File must have
13578 non-zero length, otherwise we risk SIGBUS for entire page. */
13579 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13583 if (write (fd2, cdata2, 1) != 1)
13585 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13586 if (data2 == MAP_FAILED)
13588 for (i = 0; i < pagesize; ++i)
13592 if (munmap (data2, pagesize))
13595 /* Next, try to mmap the file at a fixed address which already has
13596 something else allocated at it. If we can, also make sure that
13597 we see the same garbage. */
13598 fd = open ("conftest.mmap", O_RDWR);
13601 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13602 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13604 for (i = 0; i < pagesize; ++i)
13605 if (*(data + i) != *(data2 + i))
13608 /* Finally, make sure that changes to the mapped area do not
13609 percolate back to the file as seen by read(). (This is a bug on
13610 some variants of i386 svr4.0.) */
13611 for (i = 0; i < pagesize; ++i)
13612 *(data2 + i) = *(data2 + i) + 1;
13613 data3 = (char *) malloc (pagesize);
13616 if (read (fd, data3, pagesize) != pagesize)
13618 for (i = 0; i < pagesize; ++i)
13619 if (*(data + i) != *(data3 + i))
13625 if ac_fn_c_try_run "$LINENO"; then :
13626 ac_cv_func_mmap_fixed_mapped=yes
13628 ac_cv_func_mmap_fixed_mapped=no
13630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13631 conftest.$ac_objext conftest.beam conftest.$ac_ext
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13636 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13637 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13639 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13642 rm -f conftest.mmap conftest.txt
13644 for ac_header in vfork.h
13646 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13647 if test "x$ac_cv_header_vfork_h" = xyes; then :
13648 cat >>confdefs.h <<_ACEOF
13649 #define HAVE_VFORK_H 1
13656 for ac_func in fork vfork
13658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13659 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13660 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13661 cat >>confdefs.h <<_ACEOF
13662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13668 if test "x$ac_cv_func_fork" = xyes; then
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13670 $as_echo_n "checking for working fork... " >&6; }
13671 if ${ac_cv_func_fork_works+:} false; then :
13672 $as_echo_n "(cached) " >&6
13674 if test "$cross_compiling" = yes; then :
13675 ac_cv_func_fork_works=cross
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679 $ac_includes_default
13684 /* By Ruediger Kuhlmann. */
13685 return fork () < 0;
13691 if ac_fn_c_try_run "$LINENO"; then :
13692 ac_cv_func_fork_works=yes
13694 ac_cv_func_fork_works=no
13696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13697 conftest.$ac_objext conftest.beam conftest.$ac_ext
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13702 $as_echo "$ac_cv_func_fork_works" >&6; }
13705 ac_cv_func_fork_works=$ac_cv_func_fork
13707 if test "x$ac_cv_func_fork_works" = xcross; then
13709 *-*-amigaos* | *-*-msdosdjgpp*)
13710 # Override, as these systems have only a dummy fork() stub
13711 ac_cv_func_fork_works=no
13714 ac_cv_func_fork_works=yes
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13718 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13720 ac_cv_func_vfork_works=$ac_cv_func_vfork
13721 if test "x$ac_cv_func_vfork" = xyes; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13723 $as_echo_n "checking for working vfork... " >&6; }
13724 if ${ac_cv_func_vfork_works+:} false; then :
13725 $as_echo_n "(cached) " >&6
13727 if test "$cross_compiling" = yes; then :
13728 ac_cv_func_vfork_works=cross
13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13732 /* Thanks to Paul Eggert for this test. */
13733 $ac_includes_default
13734 #include <sys/wait.h>
13735 #ifdef HAVE_VFORK_H
13736 # include <vfork.h>
13738 /* On some sparc systems, changes by the child to local and incoming
13739 argument registers are propagated back to the parent. The compiler
13740 is told about this with #include <vfork.h>, but some compilers
13741 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13742 static variable whose address is put into a register that is
13743 clobbered by the vfork. */
13746 sparc_address_test (int arg)
13748 sparc_address_test (arg) int arg;
13751 static pid_t child;
13769 pid_t parent = getpid ();
13772 sparc_address_test (0);
13777 /* Here is another test for sparc vfork register problems. This
13778 test uses lots of local variables, at least as many local
13779 variables as main has allocated so far including compiler
13780 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13781 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13782 reuse the register of parent for one of the local variables,
13783 since it will think that parent can't possibly be used any more
13784 in this routine. Assigning to the local variable will thus
13785 munge parent in the parent process. */
13787 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13788 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13789 /* Convince the compiler that p..p7 are live; otherwise, it might
13790 use the same hardware register for all 8 local variables. */
13791 if (p != p1 || p != p2 || p != p3 || p != p4
13792 || p != p5 || p != p6 || p != p7)
13795 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13796 from child file descriptors. If the child closes a descriptor
13797 before it execs or exits, this munges the parent's descriptor
13798 as well. Test for this by closing stdout in the child. */
13799 _exit(close(fileno(stdout)) != 0);
13804 while (wait(&status) != child)
13807 /* Was there some problem with vforking? */
13810 /* Did the child fail? (This shouldn't happen.) */
13813 /* Did the vfork/compiler bug occur? */
13814 || parent != getpid()
13816 /* Did the file descriptor bug occur? */
13817 || fstat(fileno(stdout), &st) != 0
13822 if ac_fn_c_try_run "$LINENO"; then :
13823 ac_cv_func_vfork_works=yes
13825 ac_cv_func_vfork_works=no
13827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13828 conftest.$ac_objext conftest.beam conftest.$ac_ext
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13833 $as_echo "$ac_cv_func_vfork_works" >&6; }
13836 if test "x$ac_cv_func_fork_works" = xcross; then
13837 ac_cv_func_vfork_works=$ac_cv_func_vfork
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13839 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13842 if test "x$ac_cv_func_vfork_works" = xyes; then
13844 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13848 $as_echo "#define vfork fork" >>confdefs.h
13851 if test "x$ac_cv_func_fork_works" = xyes; then
13853 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13857 for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13858 ptrace64 sbrk setns sigaltstack sigprocmask \
13859 setpgid setpgrp getrusage getauxval
13861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13863 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13864 cat >>confdefs.h <<_ACEOF
13865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13872 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13873 if test "x$ac_cv_have_decl_strstr" = xyes; then :
13879 cat >>confdefs.h <<_ACEOF
13880 #define HAVE_DECL_STRSTR $ac_have_decl
13884 # ----------------------- #
13885 # Checks for structures. #
13886 # ----------------------- #
13888 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13889 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13891 cat >>confdefs.h <<_ACEOF
13892 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13897 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13898 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
13900 cat >>confdefs.h <<_ACEOF
13901 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13908 # On FreeBSD we need libutil for the kinfo_get* functions. On
13909 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
13910 # Figure out which one to use.
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13912 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13913 if ${ac_cv_search_kinfo_getfile+:} false; then :
13914 $as_echo_n "(cached) " >&6
13916 ac_func_search_save_LIBS=$LIBS
13917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13918 /* end confdefs.h. */
13920 /* Override any GCC internal prototype to avoid an error.
13921 Use char because int might match the return type of a GCC
13922 builtin and then its argument prototype would still apply. */
13926 char kinfo_getfile ();
13930 return kinfo_getfile ();
13935 for ac_lib in '' util util-freebsd; do
13936 if test -z "$ac_lib"; then
13937 ac_res="none required"
13940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13942 if ac_fn_c_try_link "$LINENO"; then :
13943 ac_cv_search_kinfo_getfile=$ac_res
13945 rm -f core conftest.err conftest.$ac_objext \
13947 if ${ac_cv_search_kinfo_getfile+:} false; then :
13951 if ${ac_cv_search_kinfo_getfile+:} false; then :
13954 ac_cv_search_kinfo_getfile=no
13956 rm conftest.$ac_ext
13957 LIBS=$ac_func_search_save_LIBS
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13960 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13961 ac_res=$ac_cv_search_kinfo_getfile
13962 if test "$ac_res" != no; then :
13963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13968 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
13969 for ac_func in kinfo_getfile
13971 ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
13972 if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
13973 cat >>confdefs.h <<_ACEOF
13974 #define HAVE_KINFO_GETFILE 1
13981 # Check for std::thread. This does not work on some platforms, like
13984 ac_cpp='$CXXCPP $CPPFLAGS'
13985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13994 ac_cpp='$CPP $CPPFLAGS'
13995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14001 # We used to check for pthread.h first, but this fails if pthread.h
14002 # requires special compiler flags (e.g. on Tru64 or Sequent).
14003 # It gets checked for in the link test anyway.
14005 # First of all, check if the user has set any of the PTHREAD_LIBS,
14006 # etcetera environment variables, and if threads linking works using
14008 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
14009 ax_pthread_save_CC="$CC"
14010 ax_pthread_save_CFLAGS="$CFLAGS"
14011 ax_pthread_save_LIBS="$LIBS"
14012 if test "x$PTHREAD_CC" != "x"; then :
14015 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14016 LIBS="$PTHREAD_LIBS $LIBS"
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14018 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
14019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14020 /* end confdefs.h. */
14022 /* Override any GCC internal prototype to avoid an error.
14023 Use char because int might match the return type of a GCC
14024 builtin and then its argument prototype would still apply. */
14028 char pthread_join ();
14032 return pthread_join ();
14037 if ac_fn_c_try_link "$LINENO"; then :
14040 rm -f core conftest.err conftest.$ac_objext \
14041 conftest$ac_exeext conftest.$ac_ext
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14043 $as_echo "$ax_pthread_ok" >&6; }
14044 if test "x$ax_pthread_ok" = "xno"; then
14048 CC="$ax_pthread_save_CC"
14049 CFLAGS="$ax_pthread_save_CFLAGS"
14050 LIBS="$ax_pthread_save_LIBS"
14053 # We must check for the threads library under a number of different
14054 # names; the ordering is very important because some systems
14055 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14056 # libraries is broken (non-POSIX).
14058 # Create a list of thread flags to try. Items starting with a "-" are
14059 # C compiler flags, and other items are library names, except for "none"
14060 # which indicates that we try without any flags at all, and "pthread-config"
14061 # which is a program returning the flags for the Pth emulation library.
14063 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14065 # The ordering *is* (sometimes) important. Some notes on the
14066 # individual items follow:
14068 # pthreads: AIX (must check this before -lpthread)
14069 # none: in case threads are in libc; should be tried before -Kthread and
14070 # other compiler flags to prevent continual compiler warnings
14071 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14072 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14073 # (Note: HP C rejects this with "bad form for `-t' option")
14074 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14075 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14076 # doesn't hurt to check since this sometimes defines pthreads and
14077 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14078 # is present but should not be used directly; and before -mthreads,
14079 # because the compiler interprets this as "-mt" + "-hreads")
14080 # -mthreads: Mingw32/gcc, Lynx/gcc
14081 # pthread: Linux, etcetera
14082 # --thread-safe: KAI C++
14083 # pthread-config: use pthread-config program (for GNU Pth library)
14089 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14090 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14092 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
14097 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
14098 # multi-threading and also sets -lpthread."
14100 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
14105 # IBM z/OS requires a feature-test macro to be defined in order to
14106 # enable POSIX threads at all, so give the user a hint if this is
14107 # not set. (We don't define these ourselves, as they can affect
14108 # other portions of the system API in unpredictable ways.)
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h. */
14113 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
14114 AX_PTHREAD_ZOS_MISSING
14118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14119 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
14121 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14129 # On Solaris (at least, for some versions), libc contains stubbed
14130 # (non-functional) versions of the pthreads routines, so link-based
14131 # tests will erroneously succeed. (N.B.: The stubs are missing
14132 # pthread_cleanup_push, or rather a function called by this macro,
14133 # so we could check for that, but who knows whether they'll stub
14134 # that too in a future libc.) So we'll check first for the
14135 # standard Solaris way of linking pthreads (-mt -lpthread).
14137 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
14141 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
14143 if test "x$GCC" = "xyes"; then :
14144 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
14147 # The presence of a feature test macro requesting re-entrant function
14148 # definitions is, on some systems, a strong hint that pthreads support is
14149 # correctly enabled
14152 darwin* | hpux* | linux* | osf* | solaris*)
14153 ax_pthread_check_macro="_REENTRANT"
14157 ax_pthread_check_macro="_THREAD_SAFE"
14161 ax_pthread_check_macro="--"
14164 if test "x$ax_pthread_check_macro" = "x--"; then :
14165 ax_pthread_check_cond=0
14167 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
14170 # Are we compiling with Clang?
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14173 $as_echo_n "checking whether $CC is Clang... " >&6; }
14174 if ${ax_cv_PTHREAD_CLANG+:} false; then :
14175 $as_echo_n "(cached) " >&6
14177 ax_cv_PTHREAD_CLANG=no
14178 # Note that Autoconf sets GCC=yes for Clang as well as GCC
14179 if test "x$GCC" = "xyes"; then
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14182 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
14183 # if defined(__clang__) && defined(__llvm__)
14184 AX_PTHREAD_CC_IS_CLANG
14188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14189 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
14190 ax_cv_PTHREAD_CLANG=yes
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14198 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
14199 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
14201 ax_pthread_clang_warning=no
14203 # Clang needs special handling, because older versions handle the -pthread
14204 # option in a rather... idiosyncratic way
14206 if test "x$ax_pthread_clang" = "xyes"; then
14208 # Clang takes -pthread; it has never supported any other flag
14210 # (Note 1: This will need to be revisited if a system that Clang
14211 # supports has POSIX threads in a separate library. This tends not
14212 # to be the way of modern systems, but it's conceivable.)
14214 # (Note 2: On some systems, notably Darwin, -pthread is not needed
14215 # to get POSIX threads support; the API is always present and
14216 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
14217 # -pthread does define _REENTRANT, and while the Darwin headers
14218 # ignore this macro, third-party headers might not.)
14220 PTHREAD_CFLAGS="-pthread"
14225 # However, older versions of Clang make a point of warning the user
14226 # that, in an invocation where only linking and no compilation is
14227 # taking place, the -pthread option has no effect ("argument unused
14228 # during compilation"). They expect -pthread to be passed in only
14229 # when source code is being compiled.
14231 # Problem is, this is at odds with the way Automake and most other
14232 # C build frameworks function, which is that the same flags used in
14233 # compilation (CFLAGS) are also used in linking. Many systems
14234 # supported by AX_PTHREAD require exactly this for POSIX threads
14235 # support, and in fact it is often not straightforward to specify a
14236 # flag that is used only in the compilation phase and not in
14237 # linking. Such a scenario is extremely rare in practice.
14239 # Even though use of the -pthread flag in linking would only print
14240 # a warning, this can be a nuisance for well-run software projects
14241 # that build with -Werror. So if the active version of Clang has
14242 # this misfeature, we search for an option to squash it.
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14245 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14246 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
14247 $as_echo_n "(cached) " >&6
14249 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
14250 # Create an alternate version of $ac_link that compiles and
14251 # links in two steps (.c -> .o, .o -> exe) instead of one
14252 # (.c -> exe), because the warning occurs only in the second
14254 ax_pthread_save_ac_link="$ac_link"
14255 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14256 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
14257 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14258 ax_pthread_save_CFLAGS="$CFLAGS"
14259 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
14260 if test "x$ax_pthread_try" = "xunknown"; then :
14263 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14264 ac_link="$ax_pthread_save_ac_link"
14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14267 int main(void){return 0;}
14269 if ac_fn_c_try_link "$LINENO"; then :
14270 ac_link="$ax_pthread_2step_ac_link"
14271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272 /* end confdefs.h. */
14273 int main(void){return 0;}
14275 if ac_fn_c_try_link "$LINENO"; then :
14278 rm -f core conftest.err conftest.$ac_objext \
14279 conftest$ac_exeext conftest.$ac_ext
14282 rm -f core conftest.err conftest.$ac_objext \
14283 conftest$ac_exeext conftest.$ac_ext
14285 ac_link="$ax_pthread_save_ac_link"
14286 CFLAGS="$ax_pthread_save_CFLAGS"
14287 if test "x$ax_pthread_try" = "x"; then :
14290 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14294 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14296 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14298 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14301 fi # $ax_pthread_clang = yes
14303 if test "x$ax_pthread_ok" = "xno"; then
14304 for ax_pthread_try_flag in $ax_pthread_flags; do
14306 case $ax_pthread_try_flag in
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14309 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
14314 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
14315 PTHREAD_CFLAGS="-mt"
14316 PTHREAD_LIBS="-lpthread"
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14321 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14322 PTHREAD_CFLAGS="$ax_pthread_try_flag"
14326 # Extract the first word of "pthread-config", so it can be a program name with args.
14327 set dummy pthread-config; ac_word=$2
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14329 $as_echo_n "checking for $ac_word... " >&6; }
14330 if ${ac_cv_prog_ax_pthread_config+:} false; then :
14331 $as_echo_n "(cached) " >&6
14333 if test -n "$ax_pthread_config"; then
14334 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14337 for as_dir in $PATH
14340 test -z "$as_dir" && as_dir=.
14341 for ac_exec_ext in '' $ac_executable_extensions; do
14342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14343 ac_cv_prog_ax_pthread_config="yes"
14344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14351 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14354 ax_pthread_config=$ac_cv_prog_ax_pthread_config
14355 if test -n "$ax_pthread_config"; then
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14357 $as_echo "$ax_pthread_config" >&6; }
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14360 $as_echo "no" >&6; }
14364 if test "x$ax_pthread_config" = "xno"; then :
14367 PTHREAD_CFLAGS="`pthread-config --cflags`"
14368 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14373 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14374 PTHREAD_LIBS="-l$ax_pthread_try_flag"
14378 ax_pthread_save_CFLAGS="$CFLAGS"
14379 ax_pthread_save_LIBS="$LIBS"
14380 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14381 LIBS="$PTHREAD_LIBS $LIBS"
14383 # Check for various functions. We must include pthread.h,
14384 # since some functions may be macros. (On the Sequent, we
14385 # need a special flag -Kthread to make this header compile.)
14386 # We check for pthread_join because it is in -lpthread on IRIX
14387 # while pthread_create is in libc. We check for pthread_attr_init
14388 # due to DEC craziness with -lpthreads. We check for
14389 # pthread_cleanup_push because it is one of the few pthread
14390 # functions on Solaris that doesn't have a non-functional libc stub.
14391 # We try pthread_create on general principles.
14393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h. */
14395 #include <pthread.h>
14396 # if $ax_pthread_check_cond
14397 # error "$ax_pthread_check_macro must be defined"
14399 static void routine(void *a) { a = 0; }
14400 static void *start_routine(void *a) { return a; }
14404 pthread_t th; pthread_attr_t attr;
14405 pthread_create(&th, 0, start_routine, 0);
14406 pthread_join(th, 0);
14407 pthread_attr_init(&attr);
14408 pthread_cleanup_push(routine, 0);
14409 pthread_cleanup_pop(0) /* ; */
14414 if ac_fn_c_try_link "$LINENO"; then :
14417 rm -f core conftest.err conftest.$ac_objext \
14418 conftest$ac_exeext conftest.$ac_ext
14420 CFLAGS="$ax_pthread_save_CFLAGS"
14421 LIBS="$ax_pthread_save_LIBS"
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14424 $as_echo "$ax_pthread_ok" >&6; }
14425 if test "x$ax_pthread_ok" = "xyes"; then :
14434 # Various other checks:
14435 if test "x$ax_pthread_ok" = "xyes"; then
14436 ax_pthread_save_CFLAGS="$CFLAGS"
14437 ax_pthread_save_LIBS="$LIBS"
14438 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14439 LIBS="$PTHREAD_LIBS $LIBS"
14441 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14443 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14444 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
14445 $as_echo_n "(cached) " >&6
14447 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
14448 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14451 #include <pthread.h>
14455 int attr = $ax_pthread_attr; return attr /* ; */
14460 if ac_fn_c_try_link "$LINENO"; then :
14461 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
14463 rm -f core conftest.err conftest.$ac_objext \
14464 conftest$ac_exeext conftest.$ac_ext
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14469 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14470 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14471 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14472 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14474 cat >>confdefs.h <<_ACEOF
14475 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14478 ax_pthread_joinable_attr_defined=yes
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14483 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14484 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
14485 $as_echo_n "(cached) " >&6
14487 ax_cv_PTHREAD_SPECIAL_FLAGS=no
14490 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14496 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14497 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14498 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14499 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14500 ax_pthread_special_flags_added=yes
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14504 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14505 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
14506 $as_echo_n "(cached) " >&6
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14510 #include <pthread.h>
14514 int i = PTHREAD_PRIO_INHERIT;
14519 if ac_fn_c_try_link "$LINENO"; then :
14520 ax_cv_PTHREAD_PRIO_INHERIT=yes
14522 ax_cv_PTHREAD_PRIO_INHERIT=no
14524 rm -f core conftest.err conftest.$ac_objext \
14525 conftest$ac_exeext conftest.$ac_ext
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14529 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14530 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14531 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14533 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14535 ax_pthread_prio_inherit_defined=yes
14539 CFLAGS="$ax_pthread_save_CFLAGS"
14540 LIBS="$ax_pthread_save_LIBS"
14542 # More AIX lossage: compile with *_r variant
14543 if test "x$GCC" != "xyes"; then
14547 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
14548 #handle absolute path differently from PATH based program lookup
14551 if as_fn_executable_p ${CC}_r; then :
14552 PTHREAD_CC="${CC}_r"
14555 for ac_prog in ${CC}_r
14557 # Extract the first word of "$ac_prog", so it can be a program name with args.
14558 set dummy $ac_prog; ac_word=$2
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14560 $as_echo_n "checking for $ac_word... " >&6; }
14561 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14562 $as_echo_n "(cached) " >&6
14564 if test -n "$PTHREAD_CC"; then
14565 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14568 for as_dir in $PATH
14571 test -z "$as_dir" && as_dir=.
14572 for ac_exec_ext in '' $ac_executable_extensions; do
14573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14574 ac_cv_prog_PTHREAD_CC="$ac_prog"
14575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14584 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14585 if test -n "$PTHREAD_CC"; then
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14587 $as_echo "$PTHREAD_CC" >&6; }
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14590 $as_echo "no" >&6; }
14594 test -n "$PTHREAD_CC" && break
14596 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14607 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14613 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14614 if test "x$ax_pthread_ok" = "xyes"; then
14622 ac_cpp='$CXXCPP $CPPFLAGS'
14623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14628 if test "$threads" = "yes"; then
14630 LIBS="$PTHREAD_LIBS $LIBS"
14631 save_CXXFLAGS="$CXXFLAGS"
14632 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14634 $as_echo_n "checking for std::thread... " >&6; }
14635 if ${gdb_cv_cxx_std_thread+:} false; then :
14636 $as_echo_n "(cached) " >&6
14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h. */
14641 void callback() { }
14645 std::thread t(callback);
14650 if ac_fn_cxx_try_compile "$LINENO"; then :
14651 gdb_cv_cxx_std_thread=yes
14653 gdb_cv_cxx_std_thread=no
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14658 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14660 # This check must be here, while LIBS includes any necessary
14661 # threading library.
14662 for ac_func in pthread_sigmask pthread_setname_np
14664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14665 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
14666 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14667 cat >>confdefs.h <<_ACEOF
14668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14676 CXXFLAGS="$save_CXXFLAGS"
14678 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14680 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14684 ac_cpp='$CPP $CPPFLAGS'
14685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14691 $as_echo_n "checking for sigsetjmp... " >&6; }
14692 if ${gdb_cv_func_sigsetjmp+:} false; then :
14693 $as_echo_n "(cached) " >&6
14695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14696 /* end confdefs.h. */
14697 #include <setjmp.h>
14702 while (! sigsetjmp (env, 1))
14703 siglongjmp (env, 1);
14709 if ac_fn_c_try_compile "$LINENO"; then :
14710 gdb_cv_func_sigsetjmp=yes
14712 gdb_cv_func_sigsetjmp=no
14715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14719 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14720 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14722 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14727 # Check whether --with-intel_pt was given.
14728 if test "${with_intel_pt+set}" = set; then :
14729 withval=$with_intel_pt;
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14735 $as_echo_n "checking whether to use intel pt... " >&6; }
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14737 $as_echo "$with_intel_pt" >&6; }
14739 if test "${with_intel_pt}" = no; then
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14741 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14745 /* end confdefs.h. */
14747 #include <linux/perf_event.h>
14748 #ifndef PERF_ATTR_SIZE_VER5
14753 if ac_fn_c_try_cpp "$LINENO"; then :
14758 rm -f conftest.err conftest.i conftest.$ac_ext
14759 if test "$perf_event" != yes; then
14760 if test "$with_intel_pt" = yes; then
14761 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14764 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14778 acl_save_prefix="$prefix"
14779 prefix="$acl_final_prefix"
14780 acl_save_exec_prefix="$exec_prefix"
14781 exec_prefix="$acl_final_exec_prefix"
14783 eval additional_includedir=\"$includedir\"
14784 eval additional_libdir=\"$libdir\"
14786 exec_prefix="$acl_save_exec_prefix"
14787 prefix="$acl_save_prefix"
14790 # Check whether --with-libipt-prefix was given.
14791 if test "${with_libipt_prefix+set}" = set; then :
14792 withval=$with_libipt_prefix;
14793 if test "X$withval" = "Xno"; then
14796 if test "X$withval" = "X"; then
14798 acl_save_prefix="$prefix"
14799 prefix="$acl_final_prefix"
14800 acl_save_exec_prefix="$exec_prefix"
14801 exec_prefix="$acl_final_exec_prefix"
14803 eval additional_includedir=\"$includedir\"
14804 eval additional_libdir=\"$libdir\"
14806 exec_prefix="$acl_save_exec_prefix"
14807 prefix="$acl_save_prefix"
14810 additional_includedir="$withval/include"
14811 additional_libdir="$withval/lib"
14818 # Check whether --with-libipt-type was given.
14819 if test "${with_libipt_type+set}" = set; then :
14820 withval=$with_libipt_type; with_libipt_type=$withval
14822 with_libipt_type=auto
14825 lib_type=`eval echo \$with_libipt_type`
14832 names_already_handled=
14833 names_next_round='ipt '
14834 while test -n "$names_next_round"; do
14835 names_this_round="$names_next_round"
14837 for name in $names_this_round; do
14839 for n in $names_already_handled; do
14840 if test "$n" = "$name"; then
14841 already_handled=yes
14845 if test -z "$already_handled"; then
14846 names_already_handled="$names_already_handled $name"
14847 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14848 eval value=\"\$HAVE_LIB$uppername\"
14849 if test -n "$value"; then
14850 if test "$value" = yes; then
14851 eval value=\"\$LIB$uppername\"
14852 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
14853 eval value=\"\$LTLIB$uppername\"
14854 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
14863 if test $use_additional = yes; then
14864 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14865 found_dir="$additional_libdir"
14866 found_so="$additional_libdir/lib$name.$shlibext"
14867 if test -f "$additional_libdir/lib$name.la"; then
14868 found_la="$additional_libdir/lib$name.la"
14870 elif test x$lib_type != xshared; then
14871 if test -f "$additional_libdir/lib$name.$libext"; then
14872 found_dir="$additional_libdir"
14873 found_a="$additional_libdir/lib$name.$libext"
14874 if test -f "$additional_libdir/lib$name.la"; then
14875 found_la="$additional_libdir/lib$name.la"
14880 if test "X$found_dir" = "X"; then
14881 for x in $LDFLAGS $LTLIBIPT; do
14883 acl_save_prefix="$prefix"
14884 prefix="$acl_final_prefix"
14885 acl_save_exec_prefix="$exec_prefix"
14886 exec_prefix="$acl_final_exec_prefix"
14888 exec_prefix="$acl_save_exec_prefix"
14889 prefix="$acl_save_prefix"
14893 dir=`echo "X$x" | sed -e 's/^X-L//'`
14894 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14896 found_so="$dir/lib$name.$shlibext"
14897 if test -f "$dir/lib$name.la"; then
14898 found_la="$dir/lib$name.la"
14900 elif test x$lib_type != xshared; then
14901 if test -f "$dir/lib$name.$libext"; then
14903 found_a="$dir/lib$name.$libext"
14904 if test -f "$dir/lib$name.la"; then
14905 found_la="$dir/lib$name.la"
14911 if test "X$found_dir" != "X"; then
14916 if test "X$found_dir" != "X"; then
14917 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14918 if test "X$found_so" != "X"; then
14919 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14920 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
14923 for x in $ltrpathdirs; do
14924 if test "X$x" = "X$found_dir"; then
14929 if test -z "$haveit"; then
14930 ltrpathdirs="$ltrpathdirs $found_dir"
14932 if test "$hardcode_direct" = yes; then
14933 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
14935 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14936 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
14938 for x in $rpathdirs; do
14939 if test "X$x" = "X$found_dir"; then
14944 if test -z "$haveit"; then
14945 rpathdirs="$rpathdirs $found_dir"
14949 for x in $LDFLAGS $LIBIPT; do
14951 acl_save_prefix="$prefix"
14952 prefix="$acl_final_prefix"
14953 acl_save_exec_prefix="$exec_prefix"
14954 exec_prefix="$acl_final_exec_prefix"
14956 exec_prefix="$acl_save_exec_prefix"
14957 prefix="$acl_save_prefix"
14959 if test "X$x" = "X-L$found_dir"; then
14964 if test -z "$haveit"; then
14965 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14967 if test "$hardcode_minus_L" != no; then
14968 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
14970 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
14976 if test "X$found_a" != "X"; then
14977 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
14979 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
14982 additional_includedir=
14983 case "$found_dir" in
14985 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14986 additional_includedir="$basedir/include"
14989 if test "X$additional_includedir" != "X"; then
14990 if test "X$additional_includedir" != "X/usr/include"; then
14992 if test "X$additional_includedir" = "X/usr/local/include"; then
14993 if test -n "$GCC"; then
14995 linux*) haveit=yes;;
14999 if test -z "$haveit"; then
15000 for x in $CPPFLAGS $INCIPT; do
15002 acl_save_prefix="$prefix"
15003 prefix="$acl_final_prefix"
15004 acl_save_exec_prefix="$exec_prefix"
15005 exec_prefix="$acl_final_exec_prefix"
15007 exec_prefix="$acl_save_exec_prefix"
15008 prefix="$acl_save_prefix"
15010 if test "X$x" = "X-I$additional_includedir"; then
15015 if test -z "$haveit"; then
15016 if test -d "$additional_includedir"; then
15017 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
15023 if test -n "$found_la"; then
15024 save_libdir="$libdir"
15025 case "$found_la" in
15026 */* | *\\*) . "$found_la" ;;
15027 *) . "./$found_la" ;;
15029 libdir="$save_libdir"
15030 for dep in $dependency_libs; do
15033 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15034 if test "X$additional_libdir" != "X/usr/lib"; then
15036 if test "X$additional_libdir" = "X/usr/local/lib"; then
15037 if test -n "$GCC"; then
15039 linux*) haveit=yes;;
15043 if test -z "$haveit"; then
15045 for x in $LDFLAGS $LIBIPT; do
15047 acl_save_prefix="$prefix"
15048 prefix="$acl_final_prefix"
15049 acl_save_exec_prefix="$exec_prefix"
15050 exec_prefix="$acl_final_exec_prefix"
15052 exec_prefix="$acl_save_exec_prefix"
15053 prefix="$acl_save_prefix"
15055 if test "X$x" = "X-L$additional_libdir"; then
15060 if test -z "$haveit"; then
15061 if test -d "$additional_libdir"; then
15062 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
15066 for x in $LDFLAGS $LTLIBIPT; do
15068 acl_save_prefix="$prefix"
15069 prefix="$acl_final_prefix"
15070 acl_save_exec_prefix="$exec_prefix"
15071 exec_prefix="$acl_final_exec_prefix"
15073 exec_prefix="$acl_save_exec_prefix"
15074 prefix="$acl_save_prefix"
15076 if test "X$x" = "X-L$additional_libdir"; then
15081 if test -z "$haveit"; then
15082 if test -d "$additional_libdir"; then
15083 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
15090 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15091 if test "$enable_rpath" != no; then
15093 for x in $rpathdirs; do
15094 if test "X$x" = "X$dir"; then
15099 if test -z "$haveit"; then
15100 rpathdirs="$rpathdirs $dir"
15103 for x in $ltrpathdirs; do
15104 if test "X$x" = "X$dir"; then
15109 if test -z "$haveit"; then
15110 ltrpathdirs="$ltrpathdirs $dir"
15115 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15118 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15121 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
15122 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
15128 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
15129 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
15130 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
15132 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
15133 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
15140 if test "X$rpathdirs" != "X"; then
15141 if test -n "$hardcode_libdir_separator"; then
15143 for found_dir in $rpathdirs; do
15144 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15146 acl_save_libdir="$libdir"
15148 eval flag=\"$hardcode_libdir_flag_spec\"
15149 libdir="$acl_save_libdir"
15150 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
15152 for found_dir in $rpathdirs; do
15153 acl_save_libdir="$libdir"
15154 libdir="$found_dir"
15155 eval flag=\"$hardcode_libdir_flag_spec\"
15156 libdir="$acl_save_libdir"
15157 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
15161 if test "X$ltrpathdirs" != "X"; then
15162 for found_dir in $ltrpathdirs; do
15163 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
15168 ac_save_CPPFLAGS="$CPPFLAGS"
15170 for element in $INCIPT; do
15172 for x in $CPPFLAGS; do
15174 acl_save_prefix="$prefix"
15175 prefix="$acl_final_prefix"
15176 acl_save_exec_prefix="$exec_prefix"
15177 exec_prefix="$acl_final_exec_prefix"
15179 exec_prefix="$acl_save_exec_prefix"
15180 prefix="$acl_save_prefix"
15182 if test "X$x" = "X$element"; then
15187 if test -z "$haveit"; then
15188 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
15194 $as_echo_n "checking for libipt... " >&6; }
15195 if ${ac_cv_libipt+:} false; then :
15196 $as_echo_n "(cached) " >&6
15199 ac_save_LIBS="$LIBS"
15200 LIBS="$LIBS $LIBIPT"
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15203 #include "intel-pt.h"
15207 pt_insn_alloc_decoder (0);
15212 if ac_fn_c_try_link "$LINENO"; then :
15217 rm -f core conftest.err conftest.$ac_objext \
15218 conftest$ac_exeext conftest.$ac_ext
15219 LIBS="$ac_save_LIBS"
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
15223 $as_echo "$ac_cv_libipt" >&6; }
15224 if test "$ac_cv_libipt" = yes; then
15227 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
15230 $as_echo_n "checking how to link with libipt... " >&6; }
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
15232 $as_echo "$LIBIPT" >&6; }
15235 CPPFLAGS="$ac_save_CPPFLAGS"
15245 if test "$HAVE_LIBIPT" != yes; then
15246 if test "$with_intel_pt" = yes; then
15247 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
15250 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
15254 LIBS="$LIBS $LIBIPT"
15255 for ac_func in pt_insn_event
15257 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
15258 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
15259 cat >>confdefs.h <<_ACEOF
15260 #define HAVE_PT_INSN_EVENT 1
15266 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
15268 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
15270 cat >>confdefs.h <<_ACEOF
15271 #define HAVE_STRUCT_PT_INSN_ENABLED 1
15276 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
15278 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
15280 cat >>confdefs.h <<_ACEOF
15281 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
15292 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15294 for ac_header in sys/procfs.h
15296 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
15297 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
15298 cat >>confdefs.h <<_ACEOF
15299 #define HAVE_SYS_PROCFS_H 1
15306 if test "$ac_cv_header_sys_procfs_h" = yes; then
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15309 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15310 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
15311 $as_echo_n "(cached) " >&6
15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314 /* end confdefs.h. */
15317 #include <sys/procfs.h>
15326 if ac_fn_c_try_compile "$LINENO"; then :
15327 bfd_cv_have_sys_procfs_type_gregset_t=yes
15329 bfd_cv_have_sys_procfs_type_gregset_t=no
15332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15335 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15337 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15341 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15345 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15346 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
15347 $as_echo_n "(cached) " >&6
15349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15350 /* end confdefs.h. */
15353 #include <sys/procfs.h>
15362 if ac_fn_c_try_compile "$LINENO"; then :
15363 bfd_cv_have_sys_procfs_type_fpregset_t=yes
15365 bfd_cv_have_sys_procfs_type_fpregset_t=no
15368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15373 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15377 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15381 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15382 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
15383 $as_echo_n "(cached) " >&6
15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386 /* end confdefs.h. */
15389 #include <sys/procfs.h>
15398 if ac_fn_c_try_compile "$LINENO"; then :
15399 bfd_cv_have_sys_procfs_type_prgregset_t=yes
15401 bfd_cv_have_sys_procfs_type_prgregset_t=no
15404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15409 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15413 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15417 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15418 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
15419 $as_echo_n "(cached) " >&6
15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h. */
15425 #include <sys/procfs.h>
15434 if ac_fn_c_try_compile "$LINENO"; then :
15435 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
15437 bfd_cv_have_sys_procfs_type_prfpregset_t=no
15440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15443 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15445 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15449 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15453 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15454 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
15455 $as_echo_n "(cached) " >&6
15457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15458 /* end confdefs.h. */
15461 #include <sys/procfs.h>
15470 if ac_fn_c_try_compile "$LINENO"; then :
15471 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
15473 bfd_cv_have_sys_procfs_type_prgregset32_t=no
15476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15479 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15481 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15485 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15489 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15490 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
15491 $as_echo_n "(cached) " >&6
15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494 /* end confdefs.h. */
15497 #include <sys/procfs.h>
15506 if ac_fn_c_try_compile "$LINENO"; then :
15507 bfd_cv_have_sys_procfs_type_lwpid_t=yes
15509 bfd_cv_have_sys_procfs_type_lwpid_t=no
15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15515 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15517 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15521 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15525 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15526 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
15527 $as_echo_n "(cached) " >&6
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h. */
15533 #include <sys/procfs.h>
15542 if ac_fn_c_try_compile "$LINENO"; then :
15543 bfd_cv_have_sys_procfs_type_psaddr_t=yes
15545 bfd_cv_have_sys_procfs_type_psaddr_t=no
15548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15553 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15557 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15561 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15562 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
15563 $as_echo_n "(cached) " >&6
15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h. */
15569 #include <sys/procfs.h>
15573 elf_fpregset_t avar
15578 if ac_fn_c_try_compile "$LINENO"; then :
15579 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
15581 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
15584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15587 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15589 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15593 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15598 # Check the return and argument types of ptrace.
15601 for ac_header in sys/ptrace.h ptrace.h
15603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15604 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15605 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15606 cat >>confdefs.h <<_ACEOF
15607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15615 gdb_ptrace_headers='
15616 #include <sys/types.h>
15617 #if HAVE_SYS_PTRACE_H
15618 # include <sys/ptrace.h>
15621 # include <unistd.h>
15625 # Check return type. Varargs (used on GNU/Linux) conflict with the
15626 # empty argument list, so check for that explicitly.
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15628 $as_echo_n "checking return type of ptrace... " >&6; }
15629 if ${gdb_cv_func_ptrace_ret+:} false; then :
15630 $as_echo_n "(cached) " >&6
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634 Â $gdb_ptrace_headers
15638 extern long ptrace (enum __ptrace_request, ...);
15644 if ac_fn_c_try_compile "$LINENO"; then :
15645 gdb_cv_func_ptrace_ret='long'
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15649 $gdb_ptrace_headers
15653 extern int ptrace ();
15659 if ac_fn_c_try_compile "$LINENO"; then :
15660 gdb_cv_func_ptrace_ret='int'
15662 gdb_cv_func_ptrace_ret='long'
15665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15672 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15675 cat >>confdefs.h <<_ACEOF
15676 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15680 # Check argument types.
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15682 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15683 if ${gdb_cv_func_ptrace_args+:} false; then :
15684 $as_echo_n "(cached) " >&6
15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h. */
15688 $gdb_ptrace_headers
15692 extern long ptrace (enum __ptrace_request, ...);
15698 if ac_fn_c_try_compile "$LINENO"; then :
15699 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
15701 for gdb_arg1 in 'int' 'long'; do
15702 for gdb_arg2 in 'pid_t' 'int' 'long'; do
15703 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15704 for gdb_arg4 in 'int' 'long' 'void *'; do
15705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706 /* end confdefs.h. */
15707 $gdb_ptrace_headers
15711 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15717 if ac_fn_c_try_compile "$LINENO"; then :
15718 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15724 for gdb_arg5 in 'int *' 'int' 'long'; do
15725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726 /* end confdefs.h. */
15727 $gdb_ptrace_headers
15731 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15737 if ac_fn_c_try_compile "$LINENO"; then :
15738 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15748 # Provide a safe default value.
15749 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15756 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15758 ac_save_IFS=$IFS; IFS=','
15759 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15763 cat >>confdefs.h <<_ACEOF
15764 #define PTRACE_TYPE_ARG1 $1
15768 cat >>confdefs.h <<_ACEOF
15769 #define PTRACE_TYPE_ARG3 $3
15773 cat >>confdefs.h <<_ACEOF
15774 #define PTRACE_TYPE_ARG4 $4
15777 if test -n "$5"; then
15779 cat >>confdefs.h <<_ACEOF
15780 #define PTRACE_TYPE_ARG5 $5
15786 if test "$cross_compiling" = no; then
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15788 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15789 if ${ac_cv_func_setpgrp_void+:} false; then :
15790 $as_echo_n "(cached) " >&6
15792 if test "$cross_compiling" = yes; then :
15793 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15797 $ac_includes_default
15801 /* If this system has a BSD-style setpgrp which takes arguments,
15802 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15803 exit successfully. */
15804 return setpgrp (1,1) != -1;
15809 if ac_fn_c_try_run "$LINENO"; then :
15810 ac_cv_func_setpgrp_void=no
15812 ac_cv_func_setpgrp_void=yes
15814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15815 conftest.$ac_objext conftest.beam conftest.$ac_ext
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15820 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15821 if test $ac_cv_func_setpgrp_void = yes; then
15823 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15829 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15830 if ${ac_cv_func_setpgrp_void+:} false; then :
15831 $as_echo_n "(cached) " >&6
15833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h. */
15835 #include <unistd.h>
15839 if (setpgrp(1,1) == -1)
15848 if ac_fn_c_try_compile "$LINENO"; then :
15849 ac_cv_func_setpgrp_void=no
15851 ac_cv_func_setpgrp_void=yes
15854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15858 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15859 if test "$ac_cv_func_setpgrp_void" = yes; then
15860 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15865 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15866 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15867 #include <sys/proc.h>
15870 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
15872 cat >>confdefs.h <<_ACEOF
15873 #define HAVE_STRUCT_THREAD_TD_PCB 1
15880 # See if <sys/lwp.h> defines `struct lwp`.
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15882 $as_echo_n "checking for struct lwp... " >&6; }
15883 if ${gdb_cv_struct_lwp+:} false; then :
15884 $as_echo_n "(cached) " >&6
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888 #include <sys/param.h>
15890 #include <sys/lwp.h>
15900 if ac_fn_c_try_compile "$LINENO"; then :
15901 gdb_cv_struct_lwp=yes
15903 gdb_cv_struct_lwp=no
15906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15910 $as_echo "$gdb_cv_struct_lwp" >&6; }
15911 if test "$gdb_cv_struct_lwp" = yes; then
15913 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
15917 # See if <machine/reg.h> degines `struct reg'.
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
15919 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
15920 if ${gdb_cv_struct_reg+:} false; then :
15921 $as_echo_n "(cached) " >&6
15923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h. */
15925 #include <sys/types.h>
15926 #include <machine/reg.h>
15936 if ac_fn_c_try_compile "$LINENO"; then :
15937 gdb_cv_struct_reg=yes
15939 gdb_cv_struct_reg=no
15942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
15946 $as_echo "$gdb_cv_struct_reg" >&6; }
15947 if test "$gdb_cv_struct_reg" = yes; then
15949 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
15953 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
15954 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
15955 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
15956 #include <machine/reg.h>
15958 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
15960 cat >>confdefs.h <<_ACEOF
15961 #define HAVE_STRUCT_REG_R_FS 1
15966 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
15967 #include <machine/reg.h>
15969 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
15971 cat >>confdefs.h <<_ACEOF
15972 #define HAVE_STRUCT_REG_R_GS 1
15979 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
15981 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
15982 if ${gdb_cv_have_ptrace_getregs+:} false; then :
15983 $as_echo_n "(cached) " >&6
15985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15986 /* end confdefs.h. */
15987 #include <sys/ptrace.h>
15996 if ac_fn_c_try_compile "$LINENO"; then :
15997 gdb_cv_have_ptrace_getregs=yes
15999 gdb_cv_have_ptrace_getregs=no
16002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
16007 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
16008 if test "$gdb_cv_have_ptrace_getregs" = yes; then
16010 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
16014 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
16016 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
16017 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
16018 $as_echo_n "(cached) " >&6
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16022 #include <sys/ptrace.h>
16031 if ac_fn_c_try_compile "$LINENO"; then :
16032 gdb_cv_have_ptrace_getfpxregs=yes
16034 gdb_cv_have_ptrace_getfpxregs=no
16037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16042 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
16043 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
16045 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
16049 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
16051 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
16052 if ${gdb_cv_have_pt_getdbregs+:} false; then :
16053 $as_echo_n "(cached) " >&6
16055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h. */
16057 #include <sys/types.h>
16058 #include <sys/ptrace.h>
16068 if ac_fn_c_try_compile "$LINENO"; then :
16069 gdb_cv_have_pt_getdbregs=yes
16071 gdb_cv_have_pt_getdbregs=no
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
16079 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
16080 if test "$gdb_cv_have_pt_getdbregs" = yes; then
16082 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
16086 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
16088 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
16089 if ${gdb_cv_have_pt_getxmmregs+:} false; then :
16090 $as_echo_n "(cached) " >&6
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16094 #include <sys/types.h>
16095 #include <sys/ptrace.h>
16105 if ac_fn_c_try_compile "$LINENO"; then :
16106 gdb_cv_have_pt_getxmmregs=yes
16108 gdb_cv_have_pt_getxmmregs=no
16111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
16116 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
16117 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
16119 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
16123 # See if <sys/ptrace.h> supports LWP names on FreeBSD
16124 # Older FreeBSD versions don't have the pl_tdname member of
16125 # `struct ptrace_lwpinfo'.
16126 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
16128 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
16130 cat >>confdefs.h <<_ACEOF
16131 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
16138 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
16139 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
16141 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>
16143 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
16145 cat >>confdefs.h <<_ACEOF
16146 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
16153 # Check if the compiler supports the `long long' type.
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
16156 $as_echo_n "checking for long long support in compiler... " >&6; }
16157 if ${gdb_cv_c_long_long+:} false; then :
16158 $as_echo_n "(cached) " >&6
16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16161 /* end confdefs.h. */
16162 extern long long foo;
16166 switch (foo & 2) { case 0: return 1; }
16171 if ac_fn_c_try_compile "$LINENO"; then :
16172 gdb_cv_c_long_long=yes
16174 gdb_cv_c_long_long=no
16176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
16179 $as_echo "$gdb_cv_c_long_long" >&6; }
16180 if test "$gdb_cv_c_long_long" != yes; then
16181 # libdecnumber requires long long.
16182 as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
16185 # Check if the compiler and runtime support printing long longs.
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
16188 $as_echo_n "checking for long long support in printf... " >&6; }
16189 if ${gdb_cv_printf_has_long_long+:} false; then :
16190 $as_echo_n "(cached) " >&6
16192 if test "$cross_compiling" = yes; then :
16193 gdb_cv_printf_has_long_long=no
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16197 $ac_includes_default
16203 l = (l << 16) + 0x0123;
16204 l = (l << 16) + 0x4567;
16205 l = (l << 16) + 0x89ab;
16206 l = (l << 16) + 0xcdef;
16207 sprintf (buf, "0x%016llx", l);
16208 return (strcmp ("0x0123456789abcdef", buf));
16213 if ac_fn_c_try_run "$LINENO"; then :
16214 gdb_cv_printf_has_long_long=yes
16216 gdb_cv_printf_has_long_long=no
16218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16219 conftest.$ac_objext conftest.beam conftest.$ac_ext
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
16224 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
16225 if test "$gdb_cv_printf_has_long_long" = yes; then
16227 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
16231 # Check if the compiler and runtime support printing decfloats.
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
16234 $as_echo_n "checking for decfloat support in printf... " >&6; }
16235 if ${gdb_cv_printf_has_decfloat+:} false; then :
16236 $as_echo_n "(cached) " >&6
16238 if test "$cross_compiling" = yes; then :
16239 gdb_cv_printf_has_decfloat=no
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16243 $ac_includes_default
16248 _Decimal32 d32 = 1.2345df;
16249 _Decimal64 d64 = 1.2345dd;
16250 _Decimal128 d128 = 1.2345dl;
16251 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
16252 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
16257 if ac_fn_c_try_run "$LINENO"; then :
16258 gdb_cv_printf_has_decfloat=yes
16260 gdb_cv_printf_has_decfloat=no
16262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16263 conftest.$ac_objext conftest.beam conftest.$ac_ext
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
16268 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
16269 if test "$gdb_cv_printf_has_decfloat" = yes; then
16271 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
16275 # Check if the compiler supports the `long double' type. We can't use
16276 # AC_C_LONG_DOUBLE because that one does additional checks on the
16277 # constants defined in <float.h> that fail on some systems,
16278 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
16281 $as_echo_n "checking for long double support in compiler... " >&6; }
16282 if ${gdb_cv_c_long_double+:} false; then :
16283 $as_echo_n "(cached) " >&6
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16289 if ac_fn_c_try_compile "$LINENO"; then :
16290 gdb_cv_c_long_double=yes
16292 gdb_cv_c_long_double=no
16294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
16297 $as_echo "$gdb_cv_c_long_double" >&6; }
16298 if test "$gdb_cv_c_long_double" = yes; then
16300 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16304 # Check if the compiler and runtime support printing long doubles.
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
16307 $as_echo_n "checking for long double support in printf... " >&6; }
16308 if ${gdb_cv_printf_has_long_double+:} false; then :
16309 $as_echo_n "(cached) " >&6
16311 if test "$cross_compiling" = yes; then :
16312 gdb_cv_printf_has_long_double=no
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16316 $ac_includes_default
16321 long double f = 3.141592653;
16322 sprintf (buf, "%Lg", f);
16323 return (strncmp ("3.14159", buf, 7));
16328 if ac_fn_c_try_run "$LINENO"; then :
16329 gdb_cv_printf_has_long_double=yes
16331 gdb_cv_printf_has_long_double=no
16333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16334 conftest.$ac_objext conftest.beam conftest.$ac_ext
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
16339 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
16340 if test "$gdb_cv_printf_has_long_double" = yes; then
16342 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
16346 # Check if the compiler and runtime support scanning long doubles.
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
16349 $as_echo_n "checking for long double support in scanf... " >&6; }
16350 if ${gdb_cv_scanf_has_long_double+:} false; then :
16351 $as_echo_n "(cached) " >&6
16353 if test "$cross_compiling" = yes; then :
16354 gdb_cv_scanf_has_long_double=no
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16362 char *buf = "3.141592653";
16364 sscanf (buf, "%Lg", &f);
16365 return !(f > 3.14159 && f < 3.14160);
16370 if ac_fn_c_try_run "$LINENO"; then :
16371 gdb_cv_scanf_has_long_double=yes
16373 gdb_cv_scanf_has_long_double=no
16375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16376 conftest.$ac_objext conftest.beam conftest.$ac_ext
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
16381 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
16382 if test "$gdb_cv_scanf_has_long_double" = yes; then
16384 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
16391 $as_echo_n "checking for -bbigtoc option... " >&6; }
16392 if ${gdb_cv_bigtoc+:} false; then :
16393 $as_echo_n "(cached) " >&6
16395 SAVE_LDFLAGS=$LDFLAGS
16398 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
16399 *) gdb_cv_bigtoc=-bbigtoc ;;
16402 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404 /* end confdefs.h. */
16414 if ac_fn_c_try_link "$LINENO"; then :
16420 rm -f core conftest.err conftest.$ac_objext \
16421 conftest$ac_exeext conftest.$ac_ext
16422 LDFLAGS="${SAVE_LDFLAGS}"
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16426 $as_echo "$gdb_cv_bigtoc" >&6; }
16427 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16432 $as_echo_n "checking for the dynamic export flag... " >&6; }
16434 if test "${gdb_native}" = yes; then
16435 # The dynamically loaded libthread_db needs access to symbols in the gdb
16436 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16437 # may not be supported there.
16438 old_LDFLAGS="$LDFLAGS"
16439 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16440 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16441 LDFLAGS="$LDFLAGS $RDYNAMIC"
16442 if test "${have_libpython}" = no; then
16443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16444 /* end confdefs.h. */
16454 if ac_fn_c_try_link "$LINENO"; then :
16457 rm -f core conftest.err conftest.$ac_objext \
16458 conftest$ac_exeext conftest.$ac_ext
16460 # Workaround http://bugs.python.org/issue4434 where static
16461 # libpythonX.Y.a would get its symbols required for
16462 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16463 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16465 # Note the workaround for Python
16466 # http://bugs.python.org/issue10112 earlier has removed
16467 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16468 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16470 old_CFLAGS="$CFLAGS"
16471 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
16473 LIBS="$LIBS $PYTHON_LIBS"
16474 old_CPPFLAGS="$CPPFLAGS"
16475 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16476 if test "$cross_compiling" = yes; then :
16479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16480 /* end confdefs.h. */
16481 #include "Python.h"
16487 err = PyRun_SimpleString ("import ctypes\n");
16489 return err == 0 ? 0 : 1;
16494 if ac_fn_c_try_run "$LINENO"; then :
16497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16498 conftest.$ac_objext conftest.beam conftest.$ac_ext
16502 CFLAGS="$old_CFLAGS"
16503 CPPFLAGS="$old_CPPFLAGS"
16505 LDFLAGS="$old_LDFLAGS"
16507 if $dynamic_list; then
16508 found="-Wl,--dynamic-list"
16509 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16512 RDYNAMIC="-rdynamic"
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16516 $as_echo "$found" >&6; }
16519 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16523 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16524 if ${gdb_cv_have_aix_thread_debug+:} false; then :
16525 $as_echo_n "(cached) " >&6
16527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16528 /* end confdefs.h. */
16529 #include <sys/pthdebug.h>
16533 #ifndef PTHDB_VERSION_3
16541 if ac_fn_c_try_compile "$LINENO"; then :
16542 gdb_cv_have_aix_thread_debug=yes
16544 gdb_cv_have_aix_thread_debug=no
16547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16552 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16553 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16554 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
16555 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
16556 LIBS="$LIBS -lpthdebug"
16558 # Older versions of AIX do not provide the declaration for
16559 # the getthrds function (it appears that it was introduced
16561 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16563 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
16569 cat >>confdefs.h <<_ACEOF
16570 #define HAVE_DECL_GETTHRDS $ac_have_decl
16579 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16581 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16582 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
16583 $as_echo_n "(cached) " >&6
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16587 #include <thread_db.h>
16591 int i = TD_NOTALLOC;
16597 if ac_fn_c_try_compile "$LINENO"; then :
16598 gdb_cv_thread_db_h_has_td_notalloc=yes
16600 gdb_cv_thread_db_h_has_td_notalloc=no
16603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16607 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16610 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16611 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
16612 $as_echo_n "(cached) " >&6
16614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h. */
16616 #include <thread_db.h>
16620 int i = TD_VERSION;
16626 if ac_fn_c_try_compile "$LINENO"; then :
16627 gdb_cv_thread_db_h_has_td_version=yes
16629 gdb_cv_thread_db_h_has_td_version=no
16632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16636 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16639 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16640 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
16641 $as_echo_n "(cached) " >&6
16643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644 /* end confdefs.h. */
16645 #include <thread_db.h>
16655 if ac_fn_c_try_compile "$LINENO"; then :
16656 gdb_cv_thread_db_h_has_td_notls=yes
16658 gdb_cv_thread_db_h_has_td_notls=no
16661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16665 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16667 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16669 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16672 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16674 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16677 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16679 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16692 cat >>confdefs.h <<_ACEOF
16693 #define GDBINIT "$gdbinit"
16698 cat >>confdefs.h <<_ACEOF
16699 #define GDBEARLYINIT ".gdbearlyinit"
16704 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16705 # except that the argument to --with-sysroot is optional.
16706 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16707 if test "x$with_sysroot" = xyes; then
16708 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
16711 # Check whether --with-sysroot was given.
16712 if test "${with_sysroot+set}" = set; then :
16713 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
16715 TARGET_SYSTEM_ROOT=
16719 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16721 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
16722 ac_define_dir=`eval echo $ac_define_dir`
16724 cat >>confdefs.h <<_ACEOF
16725 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16731 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
16732 if test "x$prefix" = xNONE; then
16733 test_prefix=/usr/local
16735 test_prefix=$prefix
16738 test_prefix=$exec_prefix
16741 case ${ac_define_dir} in
16742 "${test_prefix}"|"${test_prefix}/"*|\
16743 '${exec_prefix}'|'${exec_prefix}/'*)
16748 cat >>confdefs.h <<_ACEOF
16749 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16756 # Check whether --with-system-gdbinit was given.
16757 if test "${with_system_gdbinit+set}" = set; then :
16758 withval=$with_system_gdbinit;
16759 SYSTEM_GDBINIT=$withval
16765 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16766 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16767 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
16768 ac_define_dir=`eval echo $ac_define_dir`
16770 cat >>confdefs.h <<_ACEOF
16771 #define SYSTEM_GDBINIT "$ac_define_dir"
16777 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
16778 if test "x$prefix" = xNONE; then
16779 test_prefix=/usr/local
16781 test_prefix=$prefix
16784 test_prefix=$exec_prefix
16787 case ${ac_define_dir} in
16788 "${test_prefix}"|"${test_prefix}/"*|\
16789 '${exec_prefix}'|'${exec_prefix}/'*)
16794 cat >>confdefs.h <<_ACEOF
16795 #define SYSTEM_GDBINIT_RELOCATABLE $value
16802 # Check whether --with-system-gdbinit-dir was given.
16803 if test "${with_system_gdbinit_dir+set}" = set; then :
16804 withval=$with_system_gdbinit_dir;
16805 SYSTEM_GDBINIT_DIR=$withval
16807 SYSTEM_GDBINIT_DIR=
16811 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16812 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16813 ac_define_dir=`eval echo $SYSTEM_GDBINIT_DIR`
16814 ac_define_dir=`eval echo $ac_define_dir`
16816 cat >>confdefs.h <<_ACEOF
16817 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16823 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
16824 if test "x$prefix" = xNONE; then
16825 test_prefix=/usr/local
16827 test_prefix=$prefix
16830 test_prefix=$exec_prefix
16833 case ${ac_define_dir} in
16834 "${test_prefix}"|"${test_prefix}/"*|\
16835 '${exec_prefix}'|'${exec_prefix}/'*)
16840 cat >>confdefs.h <<_ACEOF
16841 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16848 # Check whether --enable-werror was given.
16849 if test "${enable_werror+set}" = set; then :
16850 enableval=$enable_werror; case "${enableval}" in
16851 yes | y) ERROR_ON_WARNING="yes" ;;
16852 no | n) ERROR_ON_WARNING="no" ;;
16853 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16858 # Enable -Werror by default when using gcc. Turn it off for releases.
16859 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16860 ERROR_ON_WARNING=yes
16864 if test "${ERROR_ON_WARNING}" = yes ; then
16865 WERROR_CFLAGS="-Werror"
16868 # The options we'll try to enable.
16869 build_warnings="-Wall -Wpointer-arith \
16870 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16871 -Wno-switch -Wno-char-subscripts \
16872 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16873 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16874 -Wno-mismatched-tags \
16875 -Wno-error=deprecated-register \
16876 -Wsuggest-override \
16877 -Wimplicit-fallthrough=3 \
16878 -Wduplicated-cond \
16880 -Wdeprecated-copy \
16881 -Wdeprecated-copy-dtor \
16883 -Wmissing-declarations \
16884 -Wmissing-prototypes \
16885 -Wstrict-null-sentinel \
16890 # Enable -Wno-format by default when using gcc on mingw since many
16891 # GCC versions complain about %I64.
16892 build_warnings="$build_warnings -Wno-format" ;;
16894 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16895 # doesn't understand.
16896 build_warnings="$build_warnings -Wno-unknown-pragmas"
16897 # Solaris 11 <unistd.h> marks vfork deprecated.
16898 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
16900 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16901 # but there's a special case for this below.
16902 build_warnings="$build_warnings -Wformat-nonliteral" ;;
16905 # Check whether --enable-build-warnings was given.
16906 if test "${enable_build_warnings+set}" = set; then :
16907 enableval=$enable_build_warnings; case "${enableval}" in
16909 no) build_warnings="-w";;
16910 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16911 build_warnings="${build_warnings} ${t}";;
16912 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16913 build_warnings="${t} ${build_warnings}";;
16914 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16916 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16917 echo "Setting compiler warning flags = $build_warnings" 6>&1
16920 # Check whether --enable-gdb-build-warnings was given.
16921 if test "${enable_gdb_build_warnings+set}" = set; then :
16922 enableval=$enable_gdb_build_warnings; case "${enableval}" in
16924 no) build_warnings="-w";;
16925 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16926 build_warnings="${build_warnings} ${t}";;
16927 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16928 build_warnings="${t} ${build_warnings}";;
16929 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16931 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16932 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16936 # The set of warnings supported by a C++ compiler is not the same as
16937 # of the C compiler.
16939 ac_cpp='$CXXCPP $CPPFLAGS'
16940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16946 if test "x${build_warnings}" != x -a "x$GCC" = xyes
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16949 $as_echo_n "checking compiler warning flags... " >&6; }
16950 # Separate out the -Werror flag as some files just cannot be
16951 # compiled with it enabled.
16952 for w in ${build_warnings}; do
16953 # GCC does not complain about -Wno-unknown-warning. Invert
16954 # and test -Wunknown-warning instead.
16957 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16958 -Wformat-nonliteral)
16959 # gcc requires -Wformat before -Wformat-nonliteral
16960 # will work, so stick them together.
16969 -Werr*) WERROR_CFLAGS=-Werror ;;
16971 # Check whether GCC accepts it.
16972 saved_CFLAGS="$CFLAGS"
16973 CFLAGS="$CFLAGS -Werror $wtest"
16974 saved_CXXFLAGS="$CXXFLAGS"
16975 CXXFLAGS="$CXXFLAGS -Werror $wtest"
16976 if test "x$w" = "x-Wunused-variable"; then
16977 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
16978 # fixed in GCC 4.9. This test is derived from the gdb
16979 # source code that triggered this bug in GCC.
16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h. */
16982 struct scoped_restore_base {};
16983 struct scoped_restore_tmpl : public scoped_restore_base {
16984 ~scoped_restore_tmpl() {}
16989 const scoped_restore_base &b = scoped_restore_tmpl();
16995 if ac_fn_cxx_try_compile "$LINENO"; then :
16996 WARN_CFLAGS="${WARN_CFLAGS} $w"
16998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001 /* end confdefs.h. */
17011 if ac_fn_cxx_try_compile "$LINENO"; then :
17012 WARN_CFLAGS="${WARN_CFLAGS} $w"
17014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17016 CFLAGS="$saved_CFLAGS"
17017 CXXFLAGS="$saved_CXXFLAGS"
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
17021 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
17027 ac_cpp='$CPP $CPPFLAGS'
17028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17034 # Check whether --enable-ubsan was given.
17035 if test "${enable_ubsan+set}" = set; then :
17036 enableval=$enable_ubsan;
17041 if test "x$enable_ubsan" = xauto; then
17042 if $development; then
17047 ac_cpp='$CXXCPP $CPPFLAGS'
17048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17052 if test "x$enable_ubsan" = xyes; then
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
17054 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
17055 saved_CXXFLAGS="$CXXFLAGS"
17056 CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h. */
17068 if ac_fn_cxx_try_link "$LINENO"; then :
17074 rm -f core conftest.err conftest.$ac_objext \
17075 conftest$ac_exeext conftest.$ac_ext
17076 CXXFLAGS="$saved_CXXFLAGS"
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
17078 $as_echo "$enable_ubsan" >&6; }
17079 if test "x$enable_ubsan" = xyes; then
17080 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
17081 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
17085 ac_cpp='$CPP $CPPFLAGS'
17086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17092 # In the Cygwin environment, we need some additional flags.
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
17094 $as_echo_n "checking for cygwin... " >&6; }
17095 if ${gdb_cv_os_cygwin+:} false; then :
17096 $as_echo_n "(cached) " >&6
17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099 /* end confdefs.h. */
17101 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
17105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17106 $EGREP "^lose$" >/dev/null 2>&1; then :
17107 gdb_cv_os_cygwin=yes
17109 gdb_cv_os_cygwin=no
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
17115 $as_echo "$gdb_cv_os_cygwin" >&6; }
17118 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
17120 *go32* ) SER_HARDWIRE=ser-go32.o ;;
17121 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
17122 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
17123 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
17127 # libreadline needs libuser32.a in a cygwin environment
17129 if test x"$gdb_cv_os_cygwin" = xyes; then
17130 WIN32LIBS="-luser32"
17131 case "${target}" in
17132 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
17137 # The ser-tcp.c module requires sockets.
17138 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
17139 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
17141 # Add ELF support to GDB, but only if BFD includes ELF support.
17144 OLD_LDFLAGS=$LDFLAGS
17146 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17147 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17148 # always want our bfd.
17149 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
17150 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17151 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
17152 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17153 LIBS="-lbfd -liberty -lz $intl $LIBS"
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
17155 $as_echo_n "checking for ELF support in BFD... " >&6; }
17156 if ${gdb_cv_var_elf+:} false; then :
17157 $as_echo_n "(cached) " >&6
17159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17160 /* end confdefs.h. */
17161 #include <stdlib.h>
17162 #include <string.h>
17164 #include "elf-bfd.h"
17168 return bfd_get_elf_phdr_upper_bound (NULL);
17174 if ac_fn_c_try_link "$LINENO"; then :
17180 rm -f core conftest.err conftest.$ac_objext \
17181 conftest$ac_exeext conftest.$ac_ext
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
17185 $as_echo "$gdb_cv_var_elf" >&6; }
17187 LDFLAGS=$OLD_LDFLAGS
17189 if test "$gdb_cv_var_elf" = yes; then
17190 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
17191 gcore-elf.o elf-none-tdep.o"
17193 $as_echo "#define HAVE_ELF 1" >>confdefs.h
17195 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
17196 if test "$plugins" = "yes"; then
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17198 $as_echo_n "checking for library containing dlopen... " >&6; }
17199 if ${ac_cv_search_dlopen+:} false; then :
17200 $as_echo_n "(cached) " >&6
17202 ac_func_search_save_LIBS=$LIBS
17203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17204 /* end confdefs.h. */
17206 /* Override any GCC internal prototype to avoid an error.
17207 Use char because int might match the return type of a GCC
17208 builtin and then its argument prototype would still apply. */
17221 for ac_lib in '' dl; do
17222 if test -z "$ac_lib"; then
17223 ac_res="none required"
17226 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17228 if ac_fn_c_try_link "$LINENO"; then :
17229 ac_cv_search_dlopen=$ac_res
17231 rm -f core conftest.err conftest.$ac_objext \
17233 if ${ac_cv_search_dlopen+:} false; then :
17237 if ${ac_cv_search_dlopen+:} false; then :
17240 ac_cv_search_dlopen=no
17242 rm conftest.$ac_ext
17243 LIBS=$ac_func_search_save_LIBS
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17246 $as_echo "$ac_cv_search_dlopen" >&6; }
17247 ac_res=$ac_cv_search_dlopen
17248 if test "$ac_res" != no; then :
17249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17256 # Add macho support to GDB, but only if BFD includes it.
17259 OLD_LDFLAGS=$LDFLAGS
17261 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17262 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17263 # always want our bfd.
17264 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
17265 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17266 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
17267 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17268 LIBS="-lbfd -liberty -lz $intl $LIBS"
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
17270 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
17271 if ${gdb_cv_var_macho+:} false; then :
17272 $as_echo_n "(cached) " >&6
17274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275 /* end confdefs.h. */
17276 #include <stdlib.h>
17277 #include <string.h>
17279 #include "mach-o.h"
17283 return bfd_mach_o_lookup_command (NULL, 0, NULL);
17289 if ac_fn_c_try_link "$LINENO"; then :
17290 gdb_cv_var_macho=yes
17292 gdb_cv_var_macho=no
17295 rm -f core conftest.err conftest.$ac_objext \
17296 conftest$ac_exeext conftest.$ac_ext
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
17300 $as_echo "$gdb_cv_var_macho" >&6; }
17302 LDFLAGS=$OLD_LDFLAGS
17304 if test "$gdb_cv_var_macho" = yes; then
17305 CONFIG_OBS="$CONFIG_OBS machoread.o"
17308 # Add any host-specific objects to GDB.
17309 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
17311 # If building on ELF, look for lzma support for embedded compressed debug info.
17312 if test "$gdb_cv_var_elf" = yes; then
17314 # Check whether --with-lzma was given.
17315 if test "${with_lzma+set}" = set; then :
17316 withval=$with_lzma;
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
17322 $as_echo_n "checking whether to use lzma... " >&6; }
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
17324 $as_echo "$with_lzma" >&6; }
17326 if test "${with_lzma}" != no; then
17337 acl_save_prefix="$prefix"
17338 prefix="$acl_final_prefix"
17339 acl_save_exec_prefix="$exec_prefix"
17340 exec_prefix="$acl_final_exec_prefix"
17342 eval additional_includedir=\"$includedir\"
17343 eval additional_libdir=\"$libdir\"
17345 exec_prefix="$acl_save_exec_prefix"
17346 prefix="$acl_save_prefix"
17349 # Check whether --with-liblzma-prefix was given.
17350 if test "${with_liblzma_prefix+set}" = set; then :
17351 withval=$with_liblzma_prefix;
17352 if test "X$withval" = "Xno"; then
17355 if test "X$withval" = "X"; then
17357 acl_save_prefix="$prefix"
17358 prefix="$acl_final_prefix"
17359 acl_save_exec_prefix="$exec_prefix"
17360 exec_prefix="$acl_final_exec_prefix"
17362 eval additional_includedir=\"$includedir\"
17363 eval additional_libdir=\"$libdir\"
17365 exec_prefix="$acl_save_exec_prefix"
17366 prefix="$acl_save_prefix"
17369 additional_includedir="$withval/include"
17370 additional_libdir="$withval/lib"
17377 # Check whether --with-liblzma-type was given.
17378 if test "${with_liblzma_type+set}" = set; then :
17379 withval=$with_liblzma_type; with_liblzma_type=$withval
17381 with_liblzma_type=auto
17384 lib_type=`eval echo \$with_liblzma_type`
17391 names_already_handled=
17392 names_next_round='lzma '
17393 while test -n "$names_next_round"; do
17394 names_this_round="$names_next_round"
17396 for name in $names_this_round; do
17398 for n in $names_already_handled; do
17399 if test "$n" = "$name"; then
17400 already_handled=yes
17404 if test -z "$already_handled"; then
17405 names_already_handled="$names_already_handled $name"
17406 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17407 eval value=\"\$HAVE_LIB$uppername\"
17408 if test -n "$value"; then
17409 if test "$value" = yes; then
17410 eval value=\"\$LIB$uppername\"
17411 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
17412 eval value=\"\$LTLIB$uppername\"
17413 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
17422 if test $use_additional = yes; then
17423 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17424 found_dir="$additional_libdir"
17425 found_so="$additional_libdir/lib$name.$shlibext"
17426 if test -f "$additional_libdir/lib$name.la"; then
17427 found_la="$additional_libdir/lib$name.la"
17429 elif test x$lib_type != xshared; then
17430 if test -f "$additional_libdir/lib$name.$libext"; then
17431 found_dir="$additional_libdir"
17432 found_a="$additional_libdir/lib$name.$libext"
17433 if test -f "$additional_libdir/lib$name.la"; then
17434 found_la="$additional_libdir/lib$name.la"
17439 if test "X$found_dir" = "X"; then
17440 for x in $LDFLAGS $LTLIBLZMA; do
17442 acl_save_prefix="$prefix"
17443 prefix="$acl_final_prefix"
17444 acl_save_exec_prefix="$exec_prefix"
17445 exec_prefix="$acl_final_exec_prefix"
17447 exec_prefix="$acl_save_exec_prefix"
17448 prefix="$acl_save_prefix"
17452 dir=`echo "X$x" | sed -e 's/^X-L//'`
17453 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17455 found_so="$dir/lib$name.$shlibext"
17456 if test -f "$dir/lib$name.la"; then
17457 found_la="$dir/lib$name.la"
17459 elif test x$lib_type != xshared; then
17460 if test -f "$dir/lib$name.$libext"; then
17462 found_a="$dir/lib$name.$libext"
17463 if test -f "$dir/lib$name.la"; then
17464 found_la="$dir/lib$name.la"
17470 if test "X$found_dir" != "X"; then
17475 if test "X$found_dir" != "X"; then
17476 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17477 if test "X$found_so" != "X"; then
17478 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17479 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
17482 for x in $ltrpathdirs; do
17483 if test "X$x" = "X$found_dir"; then
17488 if test -z "$haveit"; then
17489 ltrpathdirs="$ltrpathdirs $found_dir"
17491 if test "$hardcode_direct" = yes; then
17492 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
17494 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17495 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
17497 for x in $rpathdirs; do
17498 if test "X$x" = "X$found_dir"; then
17503 if test -z "$haveit"; then
17504 rpathdirs="$rpathdirs $found_dir"
17508 for x in $LDFLAGS $LIBLZMA; do
17510 acl_save_prefix="$prefix"
17511 prefix="$acl_final_prefix"
17512 acl_save_exec_prefix="$exec_prefix"
17513 exec_prefix="$acl_final_exec_prefix"
17515 exec_prefix="$acl_save_exec_prefix"
17516 prefix="$acl_save_prefix"
17518 if test "X$x" = "X-L$found_dir"; then
17523 if test -z "$haveit"; then
17524 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17526 if test "$hardcode_minus_L" != no; then
17527 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
17529 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
17535 if test "X$found_a" != "X"; then
17536 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
17538 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17541 additional_includedir=
17542 case "$found_dir" in
17544 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17545 additional_includedir="$basedir/include"
17548 if test "X$additional_includedir" != "X"; then
17549 if test "X$additional_includedir" != "X/usr/include"; then
17551 if test "X$additional_includedir" = "X/usr/local/include"; then
17552 if test -n "$GCC"; then
17554 linux*) haveit=yes;;
17558 if test -z "$haveit"; then
17559 for x in $CPPFLAGS $INCLZMA; do
17561 acl_save_prefix="$prefix"
17562 prefix="$acl_final_prefix"
17563 acl_save_exec_prefix="$exec_prefix"
17564 exec_prefix="$acl_final_exec_prefix"
17566 exec_prefix="$acl_save_exec_prefix"
17567 prefix="$acl_save_prefix"
17569 if test "X$x" = "X-I$additional_includedir"; then
17574 if test -z "$haveit"; then
17575 if test -d "$additional_includedir"; then
17576 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17582 if test -n "$found_la"; then
17583 save_libdir="$libdir"
17584 case "$found_la" in
17585 */* | *\\*) . "$found_la" ;;
17586 *) . "./$found_la" ;;
17588 libdir="$save_libdir"
17589 for dep in $dependency_libs; do
17592 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17593 if test "X$additional_libdir" != "X/usr/lib"; then
17595 if test "X$additional_libdir" = "X/usr/local/lib"; then
17596 if test -n "$GCC"; then
17598 linux*) haveit=yes;;
17602 if test -z "$haveit"; then
17604 for x in $LDFLAGS $LIBLZMA; do
17606 acl_save_prefix="$prefix"
17607 prefix="$acl_final_prefix"
17608 acl_save_exec_prefix="$exec_prefix"
17609 exec_prefix="$acl_final_exec_prefix"
17611 exec_prefix="$acl_save_exec_prefix"
17612 prefix="$acl_save_prefix"
17614 if test "X$x" = "X-L$additional_libdir"; then
17619 if test -z "$haveit"; then
17620 if test -d "$additional_libdir"; then
17621 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17625 for x in $LDFLAGS $LTLIBLZMA; do
17627 acl_save_prefix="$prefix"
17628 prefix="$acl_final_prefix"
17629 acl_save_exec_prefix="$exec_prefix"
17630 exec_prefix="$acl_final_exec_prefix"
17632 exec_prefix="$acl_save_exec_prefix"
17633 prefix="$acl_save_prefix"
17635 if test "X$x" = "X-L$additional_libdir"; then
17640 if test -z "$haveit"; then
17641 if test -d "$additional_libdir"; then
17642 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17649 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17650 if test "$enable_rpath" != no; then
17652 for x in $rpathdirs; do
17653 if test "X$x" = "X$dir"; then
17658 if test -z "$haveit"; then
17659 rpathdirs="$rpathdirs $dir"
17662 for x in $ltrpathdirs; do
17663 if test "X$x" = "X$dir"; then
17668 if test -z "$haveit"; then
17669 ltrpathdirs="$ltrpathdirs $dir"
17674 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17677 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17680 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
17681 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17687 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
17688 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
17689 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17691 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17692 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17699 if test "X$rpathdirs" != "X"; then
17700 if test -n "$hardcode_libdir_separator"; then
17702 for found_dir in $rpathdirs; do
17703 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17705 acl_save_libdir="$libdir"
17707 eval flag=\"$hardcode_libdir_flag_spec\"
17708 libdir="$acl_save_libdir"
17709 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
17711 for found_dir in $rpathdirs; do
17712 acl_save_libdir="$libdir"
17713 libdir="$found_dir"
17714 eval flag=\"$hardcode_libdir_flag_spec\"
17715 libdir="$acl_save_libdir"
17716 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
17720 if test "X$ltrpathdirs" != "X"; then
17721 for found_dir in $ltrpathdirs; do
17722 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17727 ac_save_CPPFLAGS="$CPPFLAGS"
17729 for element in $INCLZMA; do
17731 for x in $CPPFLAGS; do
17733 acl_save_prefix="$prefix"
17734 prefix="$acl_final_prefix"
17735 acl_save_exec_prefix="$exec_prefix"
17736 exec_prefix="$acl_final_exec_prefix"
17738 exec_prefix="$acl_save_exec_prefix"
17739 prefix="$acl_save_prefix"
17741 if test "X$x" = "X$element"; then
17746 if test -z "$haveit"; then
17747 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17753 $as_echo_n "checking for liblzma... " >&6; }
17754 if ${ac_cv_liblzma+:} false; then :
17755 $as_echo_n "(cached) " >&6
17758 ac_save_LIBS="$LIBS"
17759 LIBS="$LIBS $LIBLZMA"
17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17766 lzma_index_iter iter;
17767 lzma_index_iter_init (&iter, 0);
17768 lzma_mf_is_supported (LZMA_MF_HC3);
17773 if ac_fn_c_try_link "$LINENO"; then :
17778 rm -f core conftest.err conftest.$ac_objext \
17779 conftest$ac_exeext conftest.$ac_ext
17780 LIBS="$ac_save_LIBS"
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17784 $as_echo "$ac_cv_liblzma" >&6; }
17785 if test "$ac_cv_liblzma" = yes; then
17788 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17791 $as_echo_n "checking how to link with liblzma... " >&6; }
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17793 $as_echo "$LIBLZMA" >&6; }
17796 CPPFLAGS="$ac_save_CPPFLAGS"
17806 if test "$HAVE_LIBLZMA" != yes; then
17807 if test "$with_lzma" = yes; then
17808 as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
17814 LIBGUI="../libgui/src/libgui.a"
17815 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
17824 *-*-cygwin* | *-*-mingw* )
17833 if test "${enable_gdbtk}" = "yes"; then
17835 # Gdbtk must have an absolute path to srcdir in order to run
17836 # properly when not installed.
17839 GDBTK_SRC_DIR=`pwd`
17844 # Ok, lets find the tcl configuration
17845 # First, look for one uninstalled.
17846 # the alternative search directory is invoked by --with-tcl
17849 if test x"${no_tcl}" = x ; then
17850 # we reset no_tcl in case something fails here
17853 # Check whether --with-tcl was given.
17854 if test "${with_tcl+set}" = set; then :
17855 withval=$with_tcl; with_tclconfig=${withval}
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17859 $as_echo_n "checking for Tcl configuration... " >&6; }
17860 if ${ac_cv_c_tclconfig+:} false; then :
17861 $as_echo_n "(cached) " >&6
17865 # First check to see if --with-tcl was specified.
17867 *-*-cygwin*) platDir="win" ;;
17868 *) platDir="unix" ;;
17870 if test x"${with_tclconfig}" != x ; then
17871 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17872 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
17874 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17878 # then check for a private Tcl installation
17879 if test x"${ac_cv_c_tclconfig}" = x ; then
17882 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17883 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17884 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17886 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17887 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17888 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17890 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17891 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17892 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17893 if test -f "$i/$platDir/tclConfig.sh" ; then
17894 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
17900 # on Darwin, check in Framework installation locations
17901 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
17902 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
17903 `ls -d /Library/Frameworks 2>/dev/null` \
17904 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17905 `ls -d /System/Library/Frameworks 2>/dev/null` \
17907 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17908 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
17914 # check in a few common install locations
17915 if test x"${ac_cv_c_tclconfig}" = x ; then
17916 for i in `ls -d ${libdir} 2>/dev/null` \
17917 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17918 `ls -d ${prefix}/lib 2>/dev/null` \
17919 `ls -d /usr/local/lib 2>/dev/null` \
17920 `ls -d /usr/contrib/lib 2>/dev/null` \
17921 `ls -d /usr/lib 2>/dev/null` \
17923 if test -f "$i/tclConfig.sh" ; then
17924 ac_cv_c_tclconfig=`(cd $i; pwd)`
17930 # check in a few other private locations
17931 if test x"${ac_cv_c_tclconfig}" = x ; then
17934 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17935 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17936 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17937 if test -f "$i/$platDir/tclConfig.sh" ; then
17938 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
17947 if test x"${ac_cv_c_tclconfig}" = x ; then
17948 TCL_BIN_DIR="# no Tcl configs found"
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17950 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
17953 TCL_BIN_DIR=${ac_cv_c_tclconfig}
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
17955 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17960 # If $no_tk is nonempty, then we can't do Tk, and there is no
17961 # point to doing Tcl.
17964 # Ok, lets find the tk configuration
17965 # First, look for one uninstalled.
17966 # the alternative search directory is invoked by --with-tk
17969 if test x"${no_tk}" = x ; then
17970 # we reset no_tk in case something fails here
17973 # Check whether --with-tk was given.
17974 if test "${with_tk+set}" = set; then :
17975 withval=$with_tk; with_tkconfig=${withval}
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
17979 $as_echo_n "checking for Tk configuration... " >&6; }
17980 if ${ac_cv_c_tkconfig+:} false; then :
17981 $as_echo_n "(cached) " >&6
17985 # First check to see if --with-tkconfig was specified.
17986 if test x"${with_tkconfig}" != x ; then
17987 if test -f "${with_tkconfig}/tkConfig.sh" ; then
17988 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
17990 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
17994 # then check for a private Tk library
17996 *-*-cygwin*) platDir="win" ;;
17997 *) platDir="unix" ;;
17999 if test x"${ac_cv_c_tkconfig}" = x ; then
18002 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18003 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
18004 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
18006 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18007 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
18008 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
18010 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18011 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
18012 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
18013 if test -f "$i/$platDir/tkConfig.sh" ; then
18014 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
18020 # on Darwin, check in Framework installation locations
18021 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
18022 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
18023 `ls -d /Library/Frameworks 2>/dev/null` \
18024 `ls -d /Network/Library/Frameworks 2>/dev/null` \
18025 `ls -d /System/Library/Frameworks 2>/dev/null` \
18027 if test -f "$i/Tk.framework/tkConfig.sh" ; then
18028 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
18034 # check in a few common install locations
18035 if test x"${ac_cv_c_tkconfig}" = x ; then
18036 for i in `ls -d ${libdir} 2>/dev/null` \
18037 `ls -d ${exec_prefix}/lib 2>/dev/null` \
18038 `ls -d ${prefix}/lib 2>/dev/null` \
18039 `ls -d /usr/local/lib 2>/dev/null` \
18040 `ls -d /usr/contrib/lib 2>/dev/null` \
18041 `ls -d /usr/lib 2>/dev/null` \
18043 if test -f "$i/tkConfig.sh" ; then
18044 ac_cv_c_tkconfig=`(cd $i; pwd)`
18049 # check in a few other private locations
18050 if test x"${ac_cv_c_tkconfig}" = x ; then
18053 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18054 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
18055 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
18056 if test -f "$i/$platDir/tkConfig.sh" ; then
18057 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
18066 if test x"${ac_cv_c_tkconfig}" = x ; then
18067 TK_BIN_DIR="# no Tk configs found"
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
18069 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
18072 TK_BIN_DIR=${ac_cv_c_tkconfig}
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
18074 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18079 if test -z "${no_tcl}" -a -z "${no_tk}"; then
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
18082 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
18084 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18086 $as_echo "loading" >&6; }
18087 . ${TCL_BIN_DIR}/tclConfig.sh
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
18090 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18093 # eval is required to do the TCL_DBGX substitution
18094 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
18095 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
18097 # If the TCL_BIN_DIR is the build directory (not the install directory),
18098 # then set the common variable name to the value of the build variables.
18099 # For example, the variable TCL_LIB_SPEC will be set to the value
18100 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
18101 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
18102 # installed and uninstalled version of Tcl.
18103 if test -f "${TCL_BIN_DIR}/Makefile" ; then
18104 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
18105 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
18106 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
18107 elif test "`uname -s`" = "Darwin"; then
18108 # If Tcl was built as a framework, attempt to use the libraries
18109 # from the framework at the given location so that linking works
18110 # against Tcl.framework installed in an arbitrary location.
18111 case ${TCL_DEFS} in
18113 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
18114 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
18115 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
18116 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
18117 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
18122 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
18123 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
18124 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
18130 # eval is required to do the TCL_DBGX substitution
18131 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
18132 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
18133 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
18134 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
18150 # Check for in-tree tcl
18157 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
18161 # Find Tcl private headers
18162 if test x"${intree}" = xno; then
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
18165 $as_echo_n "checking for Tcl private headers... " >&6; }
18167 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
18168 if test -f ${dir}/tclInt.h ; then
18172 if test x"${private_dir}" = x; then
18173 as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
18175 TCL_PRIVATE_INCLUDE="-I${private_dir}"
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18177 $as_echo "${private_dir}" >&6; }
18180 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
18181 TCL_LIBRARY="${TCL_LIB_SPEC}"
18184 # If building tcl in the same src tree, private headers
18185 # are not needed, but we need to be sure to use the right
18187 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
18188 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
18189 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
18197 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
18199 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18201 $as_echo "loading" >&6; }
18202 . ${TK_BIN_DIR}/tkConfig.sh
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
18205 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18208 # eval is required to do the TK_DBGX substitution
18209 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
18210 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
18212 # If the TK_BIN_DIR is the build directory (not the install directory),
18213 # then set the common variable name to the value of the build variables.
18214 # For example, the variable TK_LIB_SPEC will be set to the value
18215 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
18216 # instead of TK_BUILD_LIB_SPEC since it will work with both an
18217 # installed and uninstalled version of Tcl.
18218 if test -f "${TK_BIN_DIR}/Makefile" ; then
18219 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
18220 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
18221 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
18222 elif test "`uname -s`" = "Darwin"; then
18223 # If Tk was built as a framework, attempt to use the libraries
18224 # from the framework at the given location so that linking works
18225 # against Tk.framework installed in an arbitrary location.
18228 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
18229 for i in "`cd ${TK_BIN_DIR}; pwd`" \
18230 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
18231 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
18232 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
18237 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
18238 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
18239 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
18245 # eval is required to do the TK_DBGX substitution
18246 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
18247 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
18248 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
18249 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
18264 # Check for in-tree Tk
18266 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
18270 # Find Tk private headers
18271 if test x"${intree}" = xno; then
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
18274 $as_echo_n "checking for Tk private headers... " >&6; }
18276 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
18277 if test -f ${dir}/tkInt.h; then
18281 if test x"${private_dir}" = x; then
18282 as_fn_error $? "could not find Tk private headers" "$LINENO" 5
18284 TK_PRIVATE_INCLUDE="-I${private_dir}"
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18286 $as_echo "${private_dir}" >&6; }
18289 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
18290 TK_LIBRARY=${TK_LIB_SPEC}
18293 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
18294 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
18295 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
18302 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
18304 # Include some libraries that Tcl and Tk want.
18305 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
18306 # Yes, the ordering seems wrong here. But it isn't.
18307 # TK_LIBS is the list of libraries that need to be linked
18308 # after Tcl/Tk. Note that this isn't put into LIBS. If it
18309 # were in LIBS then any link tests after this point would
18310 # try to include things like `$(LIBGUI)', which wouldn't work.
18311 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
18313 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
18314 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
18315 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
18316 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
18317 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
18318 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
18319 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
18321 if test x"$gdb_cv_os_cygwin" = xyes; then
18322 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
18323 WIN32LDAPP="-Wl,--subsystem,console"
18324 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
18329 subdirs="$subdirs gdbtk"
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18342 $as_echo_n "checking for X... " >&6; }
18345 # Check whether --with-x was given.
18346 if test "${with_x+set}" = set; then :
18350 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18351 if test "x$with_x" = xno; then
18352 # The user explicitly disabled X.
18355 case $x_includes,$x_libraries in #(
18356 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
18357 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
18358 $as_echo_n "(cached) " >&6
18360 # One or both of the vars are not set, and there is no cached value.
18361 ac_x_includes=no ac_x_libraries=no
18362 rm -f -r conftest.dir
18363 if mkdir conftest.dir; then
18365 cat >Imakefile <<'_ACEOF'
18367 @echo incroot='${INCROOT}'
18369 @echo usrlibdir='${USRLIBDIR}'
18371 @echo libdir='${LIBDIR}'
18373 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18374 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18375 for ac_var in incroot usrlibdir libdir; do
18376 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18378 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18379 for ac_extension in a so sl dylib la dll; do
18380 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18381 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18382 ac_im_usrlibdir=$ac_im_libdir; break
18385 # Screen out bogus values from the imake configuration. They are
18386 # bogus both because they are the default anyway, and because
18387 # using them would break gcc on systems where it needs fixed includes.
18388 case $ac_im_incroot in
18389 /usr/include) ac_x_includes= ;;
18390 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18392 case $ac_im_usrlibdir in
18393 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
18394 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18398 rm -f -r conftest.dir
18401 # Standard set of common directories for X headers.
18402 # Check X11 before X11Rn because it is often a symlink to the current release.
18416 /usr/local/X11/include
18417 /usr/local/X11R7/include
18418 /usr/local/X11R6/include
18419 /usr/local/X11R5/include
18420 /usr/local/X11R4/include
18422 /usr/local/include/X11
18423 /usr/local/include/X11R7
18424 /usr/local/include/X11R6
18425 /usr/local/include/X11R5
18426 /usr/local/include/X11R4
18430 /usr/XFree86/include/X11
18434 /usr/unsupported/include
18435 /usr/athena/include
18436 /usr/local/x11r5/include
18437 /usr/lpp/Xamples/include
18439 /usr/openwin/include
18440 /usr/openwin/share/include'
18442 if test "$ac_x_includes" = no; then
18443 # Guess where to find include files, by looking for Xlib.h.
18444 # First, try using that file with no special directory specified.
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18447 #include <X11/Xlib.h>
18449 if ac_fn_c_try_cpp "$LINENO"; then :
18450 # We can compile using X headers with no special include directory.
18453 for ac_dir in $ac_x_header_dirs; do
18454 if test -r "$ac_dir/X11/Xlib.h"; then
18455 ac_x_includes=$ac_dir
18460 rm -f conftest.err conftest.i conftest.$ac_ext
18461 fi # $ac_x_includes = no
18463 if test "$ac_x_libraries" = no; then
18464 # Check for the libraries.
18465 # See if we find them without any special options.
18466 # Don't add to $LIBS permanently.
18469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18470 /* end confdefs.h. */
18471 #include <X11/Xlib.h>
18480 if ac_fn_c_try_link "$LINENO"; then :
18482 # We can link X programs with no special library path.
18486 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18488 # Don't even attempt the hair of trying to link an X program!
18489 for ac_extension in a so sl dylib la dll; do
18490 if test -r "$ac_dir/libX11.$ac_extension"; then
18491 ac_x_libraries=$ac_dir
18497 rm -f core conftest.err conftest.$ac_objext \
18498 conftest$ac_exeext conftest.$ac_ext
18499 fi # $ac_x_libraries = no
18501 case $ac_x_includes,$ac_x_libraries in #(
18502 no,* | *,no | *\'*)
18503 # Didn't find X, or a directory has "'" in its name.
18504 ac_cv_have_x="have_x=no";; #(
18506 # Record where we found X for the cache.
18507 ac_cv_have_x="have_x=yes\
18508 ac_x_includes='$ac_x_includes'\
18509 ac_x_libraries='$ac_x_libraries'"
18515 eval "$ac_cv_have_x"
18518 if test "$have_x" != yes; then
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18520 $as_echo "$have_x" >&6; }
18523 # If each of the values was on the command line, it overrides each guess.
18524 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18525 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18526 # Update the cache value to reflect the command line values.
18527 ac_cv_have_x="have_x=yes\
18528 ac_x_includes='$x_includes'\
18529 ac_x_libraries='$x_libraries'"
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18531 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18535 # Unlike the sim directory, whether a simulator is linked is controlled by
18536 # presence of a gdb_sim definition in the target configure.tgt entry.
18537 # This code just checks for a few cases where we'd like to ignore those
18538 # definitions, even when they're present in the '.mt' file. These cases
18539 # are when --disable-sim is specified, or if the simulator directory is
18540 # not part of the source tree.
18542 # Check whether --enable-sim was given.
18543 if test "${enable_sim+set}" = set; then :
18544 enableval=$enable_sim; echo "enable_sim = $enable_sim";
18545 echo "enableval = ${enableval}";
18546 case "${enableval}" in
18547 yes) ignore_sim=false ;;
18548 no) ignore_sim=true ;;
18549 *) ignore_sim=false ;;
18556 if test ! -d "${srcdir}/../sim"; then
18562 if test "${ignore_sim}" = "false"; then
18563 if test x"${gdb_sim}" != x ; then
18565 SIM_OBS="remote-sim.o"
18567 $as_echo "#define WITH_SIM 1" >>confdefs.h
18570 # Some tdep code should only be compiled in when the ppc sim is
18571 # built. PR sim/13418.
18575 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18595 # List of host floatformats.
18597 cat >>confdefs.h <<_ACEOF
18598 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18602 cat >>confdefs.h <<_ACEOF
18603 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18607 cat >>confdefs.h <<_ACEOF
18608 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18612 # target_subdir is used by the testsuite to find the target libraries.
18614 if test "${host}" != "${target}"; then
18615 target_subdir="${target_alias}/"
18619 # Import nat definitions.
18620 nat_makefile_frag=/dev/null
18621 if test "${gdb_native}" = "yes"; then
18622 . ${srcdir}/configure.nat
18623 nativefile=$NAT_FILE
18636 if test x"${gdb_osabi}" != x ; then
18638 cat >>confdefs.h <<_ACEOF
18639 #define GDB_OSABI_DEFAULT $gdb_osabi
18644 # Check for babeltrace and babeltrace-ctf
18646 # Check whether --with-babeltrace was given.
18647 if test "${with_babeltrace+set}" = set; then :
18648 withval=$with_babeltrace;
18650 with_babeltrace=auto
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18654 $as_echo_n "checking whether to use babeltrace... " >&6; }
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18656 $as_echo "$with_babeltrace" >&6; }
18658 if test "x$with_babeltrace" = "xno"; then
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18660 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18662 # Append -Werror to CFLAGS so that configure can catch the warning
18663 # "assignment from incompatible pointer type", which is related to
18664 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18665 # in GDB, while babeltrace 1.0.3 is broken.
18666 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18667 # safe to save and restore CFLAGS here.
18668 saved_CFLAGS=$CFLAGS
18669 CFLAGS="$CFLAGS -Werror"
18680 acl_save_prefix="$prefix"
18681 prefix="$acl_final_prefix"
18682 acl_save_exec_prefix="$exec_prefix"
18683 exec_prefix="$acl_final_exec_prefix"
18685 eval additional_includedir=\"$includedir\"
18686 eval additional_libdir=\"$libdir\"
18688 exec_prefix="$acl_save_exec_prefix"
18689 prefix="$acl_save_prefix"
18692 # Check whether --with-libbabeltrace-prefix was given.
18693 if test "${with_libbabeltrace_prefix+set}" = set; then :
18694 withval=$with_libbabeltrace_prefix;
18695 if test "X$withval" = "Xno"; then
18698 if test "X$withval" = "X"; then
18700 acl_save_prefix="$prefix"
18701 prefix="$acl_final_prefix"
18702 acl_save_exec_prefix="$exec_prefix"
18703 exec_prefix="$acl_final_exec_prefix"
18705 eval additional_includedir=\"$includedir\"
18706 eval additional_libdir=\"$libdir\"
18708 exec_prefix="$acl_save_exec_prefix"
18709 prefix="$acl_save_prefix"
18712 additional_includedir="$withval/include"
18713 additional_libdir="$withval/lib"
18720 # Check whether --with-libbabeltrace-type was given.
18721 if test "${with_libbabeltrace_type+set}" = set; then :
18722 withval=$with_libbabeltrace_type; with_libbabeltrace_type=$withval
18724 with_libbabeltrace_type=auto
18727 lib_type=`eval echo \$with_libbabeltrace_type`
18734 names_already_handled=
18735 names_next_round='babeltrace babeltrace-ctf'
18736 while test -n "$names_next_round"; do
18737 names_this_round="$names_next_round"
18739 for name in $names_this_round; do
18741 for n in $names_already_handled; do
18742 if test "$n" = "$name"; then
18743 already_handled=yes
18747 if test -z "$already_handled"; then
18748 names_already_handled="$names_already_handled $name"
18749 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18750 eval value=\"\$HAVE_LIB$uppername\"
18751 if test -n "$value"; then
18752 if test "$value" = yes; then
18753 eval value=\"\$LIB$uppername\"
18754 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18755 eval value=\"\$LTLIB$uppername\"
18756 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18765 if test $use_additional = yes; then
18766 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
18767 found_dir="$additional_libdir"
18768 found_so="$additional_libdir/lib$name.$shlibext"
18769 if test -f "$additional_libdir/lib$name.la"; then
18770 found_la="$additional_libdir/lib$name.la"
18772 elif test x$lib_type != xshared; then
18773 if test -f "$additional_libdir/lib$name.$libext"; then
18774 found_dir="$additional_libdir"
18775 found_a="$additional_libdir/lib$name.$libext"
18776 if test -f "$additional_libdir/lib$name.la"; then
18777 found_la="$additional_libdir/lib$name.la"
18782 if test "X$found_dir" = "X"; then
18783 for x in $LDFLAGS $LTLIBBABELTRACE; do
18785 acl_save_prefix="$prefix"
18786 prefix="$acl_final_prefix"
18787 acl_save_exec_prefix="$exec_prefix"
18788 exec_prefix="$acl_final_exec_prefix"
18790 exec_prefix="$acl_save_exec_prefix"
18791 prefix="$acl_save_prefix"
18795 dir=`echo "X$x" | sed -e 's/^X-L//'`
18796 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
18798 found_so="$dir/lib$name.$shlibext"
18799 if test -f "$dir/lib$name.la"; then
18800 found_la="$dir/lib$name.la"
18802 elif test x$lib_type != xshared; then
18803 if test -f "$dir/lib$name.$libext"; then
18805 found_a="$dir/lib$name.$libext"
18806 if test -f "$dir/lib$name.la"; then
18807 found_la="$dir/lib$name.la"
18813 if test "X$found_dir" != "X"; then
18818 if test "X$found_dir" != "X"; then
18819 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18820 if test "X$found_so" != "X"; then
18821 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18822 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18825 for x in $ltrpathdirs; do
18826 if test "X$x" = "X$found_dir"; then
18831 if test -z "$haveit"; then
18832 ltrpathdirs="$ltrpathdirs $found_dir"
18834 if test "$hardcode_direct" = yes; then
18835 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18837 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18838 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18840 for x in $rpathdirs; do
18841 if test "X$x" = "X$found_dir"; then
18846 if test -z "$haveit"; then
18847 rpathdirs="$rpathdirs $found_dir"
18851 for x in $LDFLAGS $LIBBABELTRACE; do
18853 acl_save_prefix="$prefix"
18854 prefix="$acl_final_prefix"
18855 acl_save_exec_prefix="$exec_prefix"
18856 exec_prefix="$acl_final_exec_prefix"
18858 exec_prefix="$acl_save_exec_prefix"
18859 prefix="$acl_save_prefix"
18861 if test "X$x" = "X-L$found_dir"; then
18866 if test -z "$haveit"; then
18867 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18869 if test "$hardcode_minus_L" != no; then
18870 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18872 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18878 if test "X$found_a" != "X"; then
18879 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18881 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18884 additional_includedir=
18885 case "$found_dir" in
18887 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18888 additional_includedir="$basedir/include"
18891 if test "X$additional_includedir" != "X"; then
18892 if test "X$additional_includedir" != "X/usr/include"; then
18894 if test "X$additional_includedir" = "X/usr/local/include"; then
18895 if test -n "$GCC"; then
18897 linux*) haveit=yes;;
18901 if test -z "$haveit"; then
18902 for x in $CPPFLAGS $INCBABELTRACE; do
18904 acl_save_prefix="$prefix"
18905 prefix="$acl_final_prefix"
18906 acl_save_exec_prefix="$exec_prefix"
18907 exec_prefix="$acl_final_exec_prefix"
18909 exec_prefix="$acl_save_exec_prefix"
18910 prefix="$acl_save_prefix"
18912 if test "X$x" = "X-I$additional_includedir"; then
18917 if test -z "$haveit"; then
18918 if test -d "$additional_includedir"; then
18919 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18925 if test -n "$found_la"; then
18926 save_libdir="$libdir"
18927 case "$found_la" in
18928 */* | *\\*) . "$found_la" ;;
18929 *) . "./$found_la" ;;
18931 libdir="$save_libdir"
18932 for dep in $dependency_libs; do
18935 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18936 if test "X$additional_libdir" != "X/usr/lib"; then
18938 if test "X$additional_libdir" = "X/usr/local/lib"; then
18939 if test -n "$GCC"; then
18941 linux*) haveit=yes;;
18945 if test -z "$haveit"; then
18947 for x in $LDFLAGS $LIBBABELTRACE; do
18949 acl_save_prefix="$prefix"
18950 prefix="$acl_final_prefix"
18951 acl_save_exec_prefix="$exec_prefix"
18952 exec_prefix="$acl_final_exec_prefix"
18954 exec_prefix="$acl_save_exec_prefix"
18955 prefix="$acl_save_prefix"
18957 if test "X$x" = "X-L$additional_libdir"; then
18962 if test -z "$haveit"; then
18963 if test -d "$additional_libdir"; then
18964 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
18968 for x in $LDFLAGS $LTLIBBABELTRACE; do
18970 acl_save_prefix="$prefix"
18971 prefix="$acl_final_prefix"
18972 acl_save_exec_prefix="$exec_prefix"
18973 exec_prefix="$acl_final_exec_prefix"
18975 exec_prefix="$acl_save_exec_prefix"
18976 prefix="$acl_save_prefix"
18978 if test "X$x" = "X-L$additional_libdir"; then
18983 if test -z "$haveit"; then
18984 if test -d "$additional_libdir"; then
18985 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
18992 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18993 if test "$enable_rpath" != no; then
18995 for x in $rpathdirs; do
18996 if test "X$x" = "X$dir"; then
19001 if test -z "$haveit"; then
19002 rpathdirs="$rpathdirs $dir"
19005 for x in $ltrpathdirs; do
19006 if test "X$x" = "X$dir"; then
19011 if test -z "$haveit"; then
19012 ltrpathdirs="$ltrpathdirs $dir"
19017 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19020 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19023 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
19024 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
19030 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
19031 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
19032 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
19034 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
19035 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
19042 if test "X$rpathdirs" != "X"; then
19043 if test -n "$hardcode_libdir_separator"; then
19045 for found_dir in $rpathdirs; do
19046 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19048 acl_save_libdir="$libdir"
19050 eval flag=\"$hardcode_libdir_flag_spec\"
19051 libdir="$acl_save_libdir"
19052 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19054 for found_dir in $rpathdirs; do
19055 acl_save_libdir="$libdir"
19056 libdir="$found_dir"
19057 eval flag=\"$hardcode_libdir_flag_spec\"
19058 libdir="$acl_save_libdir"
19059 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19063 if test "X$ltrpathdirs" != "X"; then
19064 for found_dir in $ltrpathdirs; do
19065 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
19070 ac_save_CPPFLAGS="$CPPFLAGS"
19072 for element in $INCBABELTRACE; do
19074 for x in $CPPFLAGS; do
19076 acl_save_prefix="$prefix"
19077 prefix="$acl_final_prefix"
19078 acl_save_exec_prefix="$exec_prefix"
19079 exec_prefix="$acl_final_exec_prefix"
19081 exec_prefix="$acl_save_exec_prefix"
19082 prefix="$acl_save_prefix"
19084 if test "X$x" = "X$element"; then
19089 if test -z "$haveit"; then
19090 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
19096 $as_echo_n "checking for libbabeltrace... " >&6; }
19097 if ${ac_cv_libbabeltrace+:} false; then :
19098 $as_echo_n "(cached) " >&6
19101 ac_save_LIBS="$LIBS"
19102 LIBS="$LIBS $LIBBABELTRACE"
19103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19104 /* end confdefs.h. */
19105 #include <babeltrace/babeltrace.h>
19106 #include <babeltrace/ctf/events.h>
19107 #include <babeltrace/ctf/iterator.h>
19111 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
19112 struct bt_ctf_event *event = NULL;
19113 const struct bt_definition *scope;
19115 pos->type = BT_SEEK_BEGIN;
19116 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
19117 scope = bt_ctf_get_top_level_scope (event,
19118 BT_STREAM_EVENT_HEADER);
19119 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
19125 if ac_fn_c_try_link "$LINENO"; then :
19126 ac_cv_libbabeltrace=yes
19128 ac_cv_libbabeltrace=no
19130 rm -f core conftest.err conftest.$ac_objext \
19131 conftest$ac_exeext conftest.$ac_ext
19132 LIBS="$ac_save_LIBS"
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
19136 $as_echo "$ac_cv_libbabeltrace" >&6; }
19137 if test "$ac_cv_libbabeltrace" = yes; then
19138 HAVE_LIBBABELTRACE=yes
19140 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
19143 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
19145 $as_echo "$LIBBABELTRACE" >&6; }
19147 HAVE_LIBBABELTRACE=no
19148 CPPFLAGS="$ac_save_CPPFLAGS"
19158 CFLAGS=$saved_CFLAGS
19160 if test "$HAVE_LIBBABELTRACE" != yes; then
19161 if test "$with_babeltrace" = yes; then
19162 as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
19165 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
19172 # Check whether --with-xxhash was given.
19173 if test "${with_xxhash+set}" = set; then :
19174 withval=$with_xxhash;
19180 # Check whether --enable-libctf was given.
19181 if test "${enable_libctf+set}" = set; then :
19182 enableval=$enable_libctf;
19183 case "$enableval" in
19185 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
19193 if test x${enable_static} = xno; then
19194 LIBCTF="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19195 CTF_DEPS="../libctf/.libs/libctf.so"
19197 LIBCTF="../libctf/.libs/libctf.a"
19200 if test "${enable_libctf}" = yes; then
19202 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
19212 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
19215 if test "x$with_xxhash" != "xno"; then
19226 acl_save_prefix="$prefix"
19227 prefix="$acl_final_prefix"
19228 acl_save_exec_prefix="$exec_prefix"
19229 exec_prefix="$acl_final_exec_prefix"
19231 eval additional_includedir=\"$includedir\"
19232 eval additional_libdir=\"$libdir\"
19234 exec_prefix="$acl_save_exec_prefix"
19235 prefix="$acl_save_prefix"
19238 # Check whether --with-libxxhash-prefix was given.
19239 if test "${with_libxxhash_prefix+set}" = set; then :
19240 withval=$with_libxxhash_prefix;
19241 if test "X$withval" = "Xno"; then
19244 if test "X$withval" = "X"; then
19246 acl_save_prefix="$prefix"
19247 prefix="$acl_final_prefix"
19248 acl_save_exec_prefix="$exec_prefix"
19249 exec_prefix="$acl_final_exec_prefix"
19251 eval additional_includedir=\"$includedir\"
19252 eval additional_libdir=\"$libdir\"
19254 exec_prefix="$acl_save_exec_prefix"
19255 prefix="$acl_save_prefix"
19258 additional_includedir="$withval/include"
19259 additional_libdir="$withval/lib"
19266 # Check whether --with-libxxhash-type was given.
19267 if test "${with_libxxhash_type+set}" = set; then :
19268 withval=$with_libxxhash_type; with_libxxhash_type=$withval
19270 with_libxxhash_type=auto
19273 lib_type=`eval echo \$with_libxxhash_type`
19280 names_already_handled=
19281 names_next_round='xxhash '
19282 while test -n "$names_next_round"; do
19283 names_this_round="$names_next_round"
19285 for name in $names_this_round; do
19287 for n in $names_already_handled; do
19288 if test "$n" = "$name"; then
19289 already_handled=yes
19293 if test -z "$already_handled"; then
19294 names_already_handled="$names_already_handled $name"
19295 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19296 eval value=\"\$HAVE_LIB$uppername\"
19297 if test -n "$value"; then
19298 if test "$value" = yes; then
19299 eval value=\"\$LIB$uppername\"
19300 test -z "$value" || LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$value"
19301 eval value=\"\$LTLIB$uppername\"
19302 test -z "$value" || LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
19311 if test $use_additional = yes; then
19312 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
19313 found_dir="$additional_libdir"
19314 found_so="$additional_libdir/lib$name.$shlibext"
19315 if test -f "$additional_libdir/lib$name.la"; then
19316 found_la="$additional_libdir/lib$name.la"
19318 elif test x$lib_type != xshared; then
19319 if test -f "$additional_libdir/lib$name.$libext"; then
19320 found_dir="$additional_libdir"
19321 found_a="$additional_libdir/lib$name.$libext"
19322 if test -f "$additional_libdir/lib$name.la"; then
19323 found_la="$additional_libdir/lib$name.la"
19328 if test "X$found_dir" = "X"; then
19329 for x in $LDFLAGS $LTLIBXXHASH; do
19331 acl_save_prefix="$prefix"
19332 prefix="$acl_final_prefix"
19333 acl_save_exec_prefix="$exec_prefix"
19334 exec_prefix="$acl_final_exec_prefix"
19336 exec_prefix="$acl_save_exec_prefix"
19337 prefix="$acl_save_prefix"
19341 dir=`echo "X$x" | sed -e 's/^X-L//'`
19342 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
19344 found_so="$dir/lib$name.$shlibext"
19345 if test -f "$dir/lib$name.la"; then
19346 found_la="$dir/lib$name.la"
19348 elif test x$lib_type != xshared; then
19349 if test -f "$dir/lib$name.$libext"; then
19351 found_a="$dir/lib$name.$libext"
19352 if test -f "$dir/lib$name.la"; then
19353 found_la="$dir/lib$name.la"
19359 if test "X$found_dir" != "X"; then
19364 if test "X$found_dir" != "X"; then
19365 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
19366 if test "X$found_so" != "X"; then
19367 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
19368 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19371 for x in $ltrpathdirs; do
19372 if test "X$x" = "X$found_dir"; then
19377 if test -z "$haveit"; then
19378 ltrpathdirs="$ltrpathdirs $found_dir"
19380 if test "$hardcode_direct" = yes; then
19381 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19383 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19384 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19386 for x in $rpathdirs; do
19387 if test "X$x" = "X$found_dir"; then
19392 if test -z "$haveit"; then
19393 rpathdirs="$rpathdirs $found_dir"
19397 for x in $LDFLAGS $LIBXXHASH; do
19399 acl_save_prefix="$prefix"
19400 prefix="$acl_final_prefix"
19401 acl_save_exec_prefix="$exec_prefix"
19402 exec_prefix="$acl_final_exec_prefix"
19404 exec_prefix="$acl_save_exec_prefix"
19405 prefix="$acl_save_prefix"
19407 if test "X$x" = "X-L$found_dir"; then
19412 if test -z "$haveit"; then
19413 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
19415 if test "$hardcode_minus_L" != no; then
19416 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19418 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19424 if test "X$found_a" != "X"; then
19425 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
19427 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19430 additional_includedir=
19431 case "$found_dir" in
19433 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19434 additional_includedir="$basedir/include"
19437 if test "X$additional_includedir" != "X"; then
19438 if test "X$additional_includedir" != "X/usr/include"; then
19440 if test "X$additional_includedir" = "X/usr/local/include"; then
19441 if test -n "$GCC"; then
19443 linux*) haveit=yes;;
19447 if test -z "$haveit"; then
19448 for x in $CPPFLAGS $INCXXHASH; do
19450 acl_save_prefix="$prefix"
19451 prefix="$acl_final_prefix"
19452 acl_save_exec_prefix="$exec_prefix"
19453 exec_prefix="$acl_final_exec_prefix"
19455 exec_prefix="$acl_save_exec_prefix"
19456 prefix="$acl_save_prefix"
19458 if test "X$x" = "X-I$additional_includedir"; then
19463 if test -z "$haveit"; then
19464 if test -d "$additional_includedir"; then
19465 INCXXHASH="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19471 if test -n "$found_la"; then
19472 save_libdir="$libdir"
19473 case "$found_la" in
19474 */* | *\\*) . "$found_la" ;;
19475 *) . "./$found_la" ;;
19477 libdir="$save_libdir"
19478 for dep in $dependency_libs; do
19481 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19482 if test "X$additional_libdir" != "X/usr/lib"; then
19484 if test "X$additional_libdir" = "X/usr/local/lib"; then
19485 if test -n "$GCC"; then
19487 linux*) haveit=yes;;
19491 if test -z "$haveit"; then
19493 for x in $LDFLAGS $LIBXXHASH; do
19495 acl_save_prefix="$prefix"
19496 prefix="$acl_final_prefix"
19497 acl_save_exec_prefix="$exec_prefix"
19498 exec_prefix="$acl_final_exec_prefix"
19500 exec_prefix="$acl_save_exec_prefix"
19501 prefix="$acl_save_prefix"
19503 if test "X$x" = "X-L$additional_libdir"; then
19508 if test -z "$haveit"; then
19509 if test -d "$additional_libdir"; then
19510 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19514 for x in $LDFLAGS $LTLIBXXHASH; do
19516 acl_save_prefix="$prefix"
19517 prefix="$acl_final_prefix"
19518 acl_save_exec_prefix="$exec_prefix"
19519 exec_prefix="$acl_final_exec_prefix"
19521 exec_prefix="$acl_save_exec_prefix"
19522 prefix="$acl_save_prefix"
19524 if test "X$x" = "X-L$additional_libdir"; then
19529 if test -z "$haveit"; then
19530 if test -d "$additional_libdir"; then
19531 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19538 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19539 if test "$enable_rpath" != no; then
19541 for x in $rpathdirs; do
19542 if test "X$x" = "X$dir"; then
19547 if test -z "$haveit"; then
19548 rpathdirs="$rpathdirs $dir"
19551 for x in $ltrpathdirs; do
19552 if test "X$x" = "X$dir"; then
19557 if test -z "$haveit"; then
19558 ltrpathdirs="$ltrpathdirs $dir"
19563 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19566 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19569 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19570 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19576 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
19577 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19578 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19580 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19581 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19588 if test "X$rpathdirs" != "X"; then
19589 if test -n "$hardcode_libdir_separator"; then
19591 for found_dir in $rpathdirs; do
19592 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19594 acl_save_libdir="$libdir"
19596 eval flag=\"$hardcode_libdir_flag_spec\"
19597 libdir="$acl_save_libdir"
19598 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19600 for found_dir in $rpathdirs; do
19601 acl_save_libdir="$libdir"
19602 libdir="$found_dir"
19603 eval flag=\"$hardcode_libdir_flag_spec\"
19604 libdir="$acl_save_libdir"
19605 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19609 if test "X$ltrpathdirs" != "X"; then
19610 for found_dir in $ltrpathdirs; do
19611 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19616 ac_save_CPPFLAGS="$CPPFLAGS"
19618 for element in $INCXXHASH; do
19620 for x in $CPPFLAGS; do
19622 acl_save_prefix="$prefix"
19623 prefix="$acl_final_prefix"
19624 acl_save_exec_prefix="$exec_prefix"
19625 exec_prefix="$acl_final_exec_prefix"
19627 exec_prefix="$acl_save_exec_prefix"
19628 prefix="$acl_save_prefix"
19630 if test "X$x" = "X$element"; then
19635 if test -z "$haveit"; then
19636 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19642 $as_echo_n "checking for libxxhash... " >&6; }
19643 if ${ac_cv_libxxhash+:} false; then :
19644 $as_echo_n "(cached) " >&6
19647 ac_save_LIBS="$LIBS"
19648 LIBS="$LIBS $LIBXXHASH"
19649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19650 /* end confdefs.h. */
19651 #include <xxhash.h>
19655 XXH32("foo", 3, 0);
19661 if ac_fn_c_try_link "$LINENO"; then :
19662 ac_cv_libxxhash=yes
19666 rm -f core conftest.err conftest.$ac_objext \
19667 conftest$ac_exeext conftest.$ac_ext
19668 LIBS="$ac_save_LIBS"
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19672 $as_echo "$ac_cv_libxxhash" >&6; }
19673 if test "$ac_cv_libxxhash" = yes; then
19676 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19679 $as_echo_n "checking how to link with libxxhash... " >&6; }
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19681 $as_echo "$LIBXXHASH" >&6; }
19684 CPPFLAGS="$ac_save_CPPFLAGS"
19694 if test "$HAVE_LIBXXHASH" != yes; then
19695 if test "$with_xxhash" = yes; then
19696 as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
19699 if test "x$with_xxhash" = "xauto"; then
19700 with_xxhash="$HAVE_LIBXXHASH"
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19705 $as_echo_n "checking whether to use xxhash... " >&6; }
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19707 $as_echo "$with_xxhash" >&6; }
19711 if test "${nativefile}" != ""; then
19712 case "${nativefile}" in
19713 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
19714 * ) GDB_NM_FILE="${nativefile}"
19716 ac_config_links="$ac_config_links nm.h:$GDB_NM_FILE"
19719 cat >>confdefs.h <<_ACEOF
19720 #define GDB_NM_FILE "${GDB_NM_FILE}"
19728 for ac_prog in xsltproc
19730 # Extract the first word of "$ac_prog", so it can be a program name with args.
19731 set dummy $ac_prog; ac_word=$2
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19733 $as_echo_n "checking for $ac_word... " >&6; }
19734 if ${ac_cv_path_XSLTPROC+:} false; then :
19735 $as_echo_n "(cached) " >&6
19739 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19743 for as_dir in $PATH
19746 test -z "$as_dir" && as_dir=.
19747 for ac_exec_ext in '' $ac_executable_extensions; do
19748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19749 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19760 XSLTPROC=$ac_cv_path_XSLTPROC
19761 if test -n "$XSLTPROC"; then
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19763 $as_echo "$XSLTPROC" >&6; }
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19766 $as_echo "no" >&6; }
19770 test -n "$XSLTPROC" && break
19772 test -n "$XSLTPROC" || XSLTPROC="missing"
19774 if test "x$USE_MAINTAINER_MODE" = xyes; then
19775 if test "${XSLTPROC}" = missing; then
19776 as_fn_error $? "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19784 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19788 # Check whether we will enable the inclusion of unit tests when
19791 # The default value of this option changes depending whether we're on
19792 # development mode (in which case it's "true") or not (in which case
19793 # it's "false"). The $development variable is set by the GDB_AC_COMMON
19794 # macro, which must therefore be used before GDB_AC_SELFTEST.
19796 if test "x$development" != xtrue && test "x$development" != xfalse; then :
19797 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19800 # Check whether --enable-unit-tests was given.
19801 if test "${enable_unit_tests+set}" = set; then :
19802 enableval=$enable_unit_tests; case "${enableval}" in
19803 yes) enable_unittests=true ;;
19804 no) enable_unittests=false ;;
19805 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19808 enable_unittests=$development
19812 if $enable_unittests; then
19814 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19817 CONFIG_OBS="$CONFIG_OBS \$(SELFTESTS_OBS)"
19818 CONFIG_SRCS="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19824 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19825 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
19826 if test "x$GDB_TRANSFORM_NAME" = x; then
19827 GDB_TRANSFORM_NAME=gdb
19832 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19833 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
19834 if test "x$GCORE_TRANSFORM_NAME" = x; then
19835 GCORE_TRANSFORM_NAME=gcore
19839 ac_config_files="$ac_config_files gcore"
19841 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19843 # Transform the name of some programs for the testsuite/lib/pdtrace
19846 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19847 STRIP_TRANSFORM_NAME=`echo strip | sed -e "$gdb_ac_transform"`
19848 if test "x$STRIP_TRANSFORM_NAME" = x; then
19849 STRIP_TRANSFORM_NAME=strip
19854 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19855 READELF_TRANSFORM_NAME=`echo readelf | sed -e "$gdb_ac_transform"`
19856 if test "x$READELF_TRANSFORM_NAME" = x; then
19857 READELF_TRANSFORM_NAME=readelf
19862 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19863 GAS_TRANSFORM_NAME=`echo as | sed -e "$gdb_ac_transform"`
19864 if test "x$GAS_TRANSFORM_NAME" = x; then
19865 GAS_TRANSFORM_NAME=as
19870 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19871 NM_TRANSFORM_NAME=`echo nm | sed -e "$gdb_ac_transform"`
19872 if test "x$NM_TRANSFORM_NAME" = x; then
19873 NM_TRANSFORM_NAME=nm
19877 ac_config_files="$ac_config_files testsuite/lib/pdtrace"
19879 ac_config_files="$ac_config_files testsuite/Makefile"
19882 cat >confcache <<\_ACEOF
19883 # This file is a shell script that caches the results of configure
19884 # tests run on this system so they can be shared between configure
19885 # scripts and configure runs, see configure's option --config-cache.
19886 # It is not useful on other systems. If it contains results you don't
19887 # want to keep, you may remove or edit it.
19889 # config.status only pays attention to the cache file if you give it
19890 # the --recheck option to rerun configure.
19892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19894 # following values.
19898 # The following way of writing the cache mishandles newlines in values,
19899 # but we know of no workaround that is simple, portable, and efficient.
19900 # So, we kill variables containing newlines.
19901 # Ultrix sh set writes to stderr and can't be redirected directly,
19902 # and sets the high bit in the cache file unless we assign to the vars.
19904 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19905 eval ac_val=\$$ac_var
19909 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19910 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19913 _ | IFS | as_nl) ;; #(
19914 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19915 *) { eval $ac_var=; unset $ac_var;} ;;
19921 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19922 *${as_nl}ac_space=\ *)
19923 # `set' does not quote correctly, so add quotes: double-quote
19924 # substitution turns \\\\ into \\, and sed turns \\ into \.
19927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19930 # `set' quotes correctly as required by POSIX, so do not add quotes.
19931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19942 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19944 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19945 if test -w "$cache_file"; then
19946 if test "x$cache_file" != "x/dev/null"; then
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19948 $as_echo "$as_me: updating cache $cache_file" >&6;}
19949 if test ! -f "$cache_file" || test -h "$cache_file"; then
19950 cat confcache >"$cache_file"
19952 case $cache_file in #(
19954 mv -f confcache "$cache_file"$$ &&
19955 mv -f "$cache_file"$$ "$cache_file" ;; #(
19957 mv -f confcache "$cache_file" ;;
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19963 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19968 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19969 # Let make expand exec_prefix.
19970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19972 DEFS=-DHAVE_CONFIG_H
19977 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19978 # 1. Remove the extension, and $U if already installed.
19979 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19980 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19981 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19982 # will be set to the directory where LIBOBJS objects are built.
19983 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19984 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19986 LIBOBJS=$ac_libobjs
19988 LTLIBOBJS=$ac_ltlibobjs
19991 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19992 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19995 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
19996 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
19997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19999 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
20000 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
20001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20005 : "${CONFIG_STATUS=./config.status}"
20007 ac_clean_files_save=$ac_clean_files
20008 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20010 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20012 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20014 # Generated by $as_me.
20015 # Run this file to recreate the current configuration.
20016 # Compiler output produced by configure, useful for debugging
20017 # configure, is in config.log if it exists.
20020 ac_cs_recheck=false
20023 SHELL=\${CONFIG_SHELL-$SHELL}
20026 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20027 ## -------------------- ##
20028 ## M4sh Initialization. ##
20029 ## -------------------- ##
20031 # Be more Bourne compatible
20032 DUALCASE=1; export DUALCASE # for MKS sh
20033 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20036 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20037 # is contrary to our usage. Disable this feature.
20038 alias -g '${1+"$@"}'='"$@"'
20039 setopt NO_GLOB_SUBST
20041 case `(set -o) 2>/dev/null` in #(
20053 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20054 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20055 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20056 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20057 # Prefer a ksh shell builtin over an external printf program on Solaris,
20058 # but without wasting forks for bash or zsh.
20059 if test -z "$BASH_VERSION$ZSH_VERSION" \
20060 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20061 as_echo='print -r --'
20062 as_echo_n='print -rn --'
20063 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20064 as_echo='printf %s\n'
20065 as_echo_n='printf %s'
20067 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20068 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20069 as_echo_n='/usr/ucb/echo -n'
20071 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20072 as_echo_n_body='eval
20076 expr "X$arg" : "X\\(.*\\)$as_nl";
20077 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20079 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20081 export as_echo_n_body
20082 as_echo_n='sh -c $as_echo_n_body as_echo'
20084 export as_echo_body
20085 as_echo='sh -c $as_echo_body as_echo'
20088 # The user is always right.
20089 if test "${PATH_SEPARATOR+set}" != set; then
20091 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20092 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20099 # We need space, tab and new line, in precisely that order. Quoting is
20100 # there to prevent editors from complaining about space-tab.
20101 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20102 # splitting by setting IFS to empty value.)
20105 # Find who we are. Look in the path if we contain no directory separator.
20108 *[\\/]* ) as_myself=$0 ;;
20109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20110 for as_dir in $PATH
20113 test -z "$as_dir" && as_dir=.
20114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20120 # We did not find ourselves, most probably we were run as `sh COMMAND'
20121 # in which case we are not to be found in the path.
20122 if test "x$as_myself" = x; then
20125 if test ! -f "$as_myself"; then
20126 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20130 # Unset variables that we do not need and which cause bugs (e.g. in
20131 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20132 # suppresses any "Segmentation fault" message there. '((' could
20133 # trigger a bug in pdksh 5.2.14.
20134 for as_var in BASH_ENV ENV MAIL MAILPATH
20135 do eval test x\${$as_var+set} = xset \
20136 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20149 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20152 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20153 # ----------------------------------------
20154 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20155 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20156 # script with STATUS, using 1 if that was 0.
20159 as_status=$1; test $as_status -eq 0 && as_status=1
20161 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20162 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20164 $as_echo "$as_me: error: $2" >&2
20165 as_fn_exit $as_status
20169 # as_fn_set_status STATUS
20170 # -----------------------
20171 # Set $? to STATUS, without forking.
20172 as_fn_set_status ()
20175 } # as_fn_set_status
20177 # as_fn_exit STATUS
20178 # -----------------
20179 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20183 as_fn_set_status $1
20189 # Portably unset VAR.
20192 { eval $1=; unset $1;}
20194 as_unset=as_fn_unset
20195 # as_fn_append VAR VALUE
20196 # ----------------------
20197 # Append the text in VALUE to the end of the definition contained in VAR. Take
20198 # advantage of any shell optimizations that allow amortized linear growth over
20199 # repeated appends, instead of the typical quadratic growth present in naive
20201 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20202 eval 'as_fn_append ()
20213 # as_fn_arith ARG...
20214 # ------------------
20215 # Perform arithmetic evaluation on the ARGs, and store the result in the
20216 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20217 # must be portable across $(()) and expr.
20218 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20219 eval 'as_fn_arith ()
20226 as_val=`expr "$@" || test $? -eq 1`
20231 if expr a : '\(a\)' >/dev/null 2>&1 &&
20232 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20238 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20239 as_basename=basename
20244 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20250 as_me=`$as_basename -- "$0" ||
20251 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20252 X"$0" : 'X\(//\)$' \| \
20253 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20255 sed '/^.*\/\([^/][^/]*\)\/*$/{
20269 # Avoid depending upon Character Ranges.
20270 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20271 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20272 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20273 as_cr_digits='0123456789'
20274 as_cr_alnum=$as_cr_Letters$as_cr_digits
20276 ECHO_C= ECHO_N= ECHO_T=
20277 case `echo -n x` in #(((((
20279 case `echo 'xy\c'` in
20280 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20282 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20289 rm -f conf$$ conf$$.exe conf$$.file
20290 if test -d conf$$.dir; then
20291 rm -f conf$$.dir/conf$$.file
20294 mkdir conf$$.dir 2>/dev/null
20296 if (echo >conf$$.file) 2>/dev/null; then
20297 if ln -s conf$$.file conf$$ 2>/dev/null; then
20299 # ... but there are two gotchas:
20300 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20301 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20302 # In both cases, we have to default to `cp -pR'.
20303 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20305 elif ln conf$$.file conf$$ 2>/dev/null; then
20313 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20314 rmdir conf$$.dir 2>/dev/null
20319 # Create "$as_dir" as a directory, including parents if necessary.
20324 -*) as_dir=./$as_dir;;
20326 test -d "$as_dir" || eval $as_mkdir_p || {
20330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20331 *) as_qdir=$as_dir;;
20333 as_dirs="'$as_qdir' $as_dirs"
20334 as_dir=`$as_dirname -- "$as_dir" ||
20335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20336 X"$as_dir" : 'X\(//\)[^/]' \| \
20337 X"$as_dir" : 'X\(//\)$' \| \
20338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20339 $as_echo X"$as_dir" |
20340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20344 /^X\(\/\/\)[^/].*/{
20357 test -d "$as_dir" && break
20359 test -z "$as_dirs" || eval "mkdir $as_dirs"
20360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20364 if mkdir -p . 2>/dev/null; then
20365 as_mkdir_p='mkdir -p "$as_dir"'
20367 test -d ./-p && rmdir ./-p
20372 # as_fn_executable_p FILE
20373 # -----------------------
20374 # Test if FILE is an executable regular file.
20375 as_fn_executable_p ()
20377 test -f "$1" && test -x "$1"
20378 } # as_fn_executable_p
20379 as_test_x='test -x'
20380 as_executable_p=as_fn_executable_p
20382 # Sed expression to map a string onto a valid CPP name.
20383 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20385 # Sed expression to map a string onto a valid variable name.
20386 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20390 ## ----------------------------------- ##
20391 ## Main body of $CONFIG_STATUS script. ##
20392 ## ----------------------------------- ##
20394 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20397 # Save the log message, to keep $0 and so on meaningful, and to
20398 # report actual input values of CONFIG_FILES etc. instead of their
20399 # values after options handling.
20401 This file was extended by $as_me, which was
20402 generated by GNU Autoconf 2.69. Invocation command line was
20404 CONFIG_FILES = $CONFIG_FILES
20405 CONFIG_HEADERS = $CONFIG_HEADERS
20406 CONFIG_LINKS = $CONFIG_LINKS
20407 CONFIG_COMMANDS = $CONFIG_COMMANDS
20410 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20415 case $ac_config_files in *"
20416 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20419 case $ac_config_headers in *"
20420 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20425 # Files that config.status was made for.
20426 config_files="$ac_config_files"
20427 config_headers="$ac_config_headers"
20428 config_links="$ac_config_links"
20429 config_commands="$ac_config_commands"
20433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20435 \`$as_me' instantiates files and other configuration actions
20436 from templates according to the current configuration. Unless the files
20437 and actions are specified as TAGs, all are instantiated by default.
20439 Usage: $0 [OPTION]... [TAG]...
20441 -h, --help print this help, then exit
20442 -V, --version print version number and configuration settings, then exit
20443 --config print configuration, then exit
20444 -q, --quiet, --silent
20445 do not print progress messages
20446 -d, --debug don't remove temporary files
20447 --recheck update $as_me by reconfiguring in the same conditions
20448 --file=FILE[:TEMPLATE]
20449 instantiate the configuration file FILE
20450 --header=FILE[:TEMPLATE]
20451 instantiate the configuration header FILE
20453 Configuration files:
20456 Configuration headers:
20459 Configuration links:
20462 Configuration commands:
20465 Report bugs to the package provider."
20468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20469 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20472 configured by $0, generated by GNU Autoconf 2.69,
20473 with options \\"\$ac_cs_config\\"
20475 Copyright (C) 2012 Free Software Foundation, Inc.
20476 This config.status script is free software; the Free Software Foundation
20477 gives unlimited permission to copy, distribute and modify it."
20483 test -n "\$AWK" || AWK=awk
20486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20487 # The default lists apply if the user does not specify any file.
20493 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20494 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20498 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20510 # Handling of the options.
20511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20513 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20514 $as_echo "$ac_cs_version"; exit ;;
20515 --config | --confi | --conf | --con | --co | --c )
20516 $as_echo "$ac_cs_config"; exit ;;
20517 --debug | --debu | --deb | --de | --d | -d )
20519 --file | --fil | --fi | --f )
20522 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20523 '') as_fn_error $? "missing file argument" ;;
20525 as_fn_append CONFIG_FILES " '$ac_optarg'"
20526 ac_need_defaults=false;;
20527 --header | --heade | --head | --hea )
20530 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20532 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20533 ac_need_defaults=false;;
20535 # Conflict between --help and --header
20536 as_fn_error $? "ambiguous option: \`$1'
20537 Try \`$0 --help' for more information.";;
20538 --help | --hel | -h )
20539 $as_echo "$ac_cs_usage"; exit ;;
20540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20541 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20544 # This is an error.
20545 -*) as_fn_error $? "unrecognized option: \`$1'
20546 Try \`$0 --help' for more information." ;;
20548 *) as_fn_append ac_config_targets " $1"
20549 ac_need_defaults=false ;;
20555 ac_configure_extra_args=
20557 if $ac_cs_silent; then
20559 ac_configure_extra_args="$ac_configure_extra_args --silent"
20563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20564 if \$ac_cs_recheck; then
20565 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20567 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20568 CONFIG_SHELL='$SHELL'
20569 export CONFIG_SHELL
20574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20578 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20579 ## Running $as_me. ##
20585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20589 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20590 GDB_NM_FILE=$GDB_NM_FILE
20594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20596 # Handling of arguments.
20597 for ac_config_target in $ac_config_targets
20599 case $ac_config_target in
20600 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20601 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
20602 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20603 "nm.h") CONFIG_LINKS="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20604 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
20605 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20606 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
20607 "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
20608 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20609 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
20610 "testsuite/lib/pdtrace") CONFIG_FILES="$CONFIG_FILES testsuite/lib/pdtrace" ;;
20611 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20613 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20618 # If the user did not use the arguments to specify the items to instantiate,
20619 # then the envvar interface is used. Set only those that are not.
20620 # We use the long form for the default assignment because of an extremely
20621 # bizarre bug on SunOS 4.1.3.
20622 if $ac_need_defaults; then
20623 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20624 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20625 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
20626 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20629 # Have a temporary directory for convenience. Make it in the build tree
20630 # simply because there is no reason against having it here, and in addition,
20631 # creating and moving files from /tmp can sometimes cause problems.
20632 # Hook for its removal unless debugging.
20633 # Note that there is a small window in which the directory will not be cleaned:
20634 # after its creation but before its name has been assigned to `$tmp'.
20638 trap 'exit_status=$?
20639 : "${ac_tmp:=$tmp}"
20640 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20642 trap 'as_fn_exit 1' 1 2 13 15
20644 # Create a (secure) tmp directory for tmp files.
20647 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20651 tmp=./conf$$-$RANDOM
20652 (umask 077 && mkdir "$tmp")
20653 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20656 # Set up the scripts for CONFIG_FILES section.
20657 # No need to generate them if there are no CONFIG_FILES.
20658 # This happens for instance with `./config.status config.h'.
20659 if test -n "$CONFIG_FILES"; then
20661 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20662 ac_cs_awk_getline=:
20663 ac_cs_awk_pipe_init=
20664 ac_cs_awk_read_file='
20665 while ((getline aline < (F[key])) > 0)
20668 ac_cs_awk_pipe_fini=
20670 ac_cs_awk_getline=false
20671 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20672 ac_cs_awk_read_file='
20674 print "cat " F[key] " &&"
20675 '$ac_cs_awk_pipe_init
20676 # The final `:' finishes the AND list.
20677 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20679 ac_cr=`echo X | tr X '\015'`
20680 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20681 # But we know of no other shell where ac_cr would be empty at this
20682 # point, so we can use a bashism as a fallback.
20683 if test "x$ac_cr" = x; then
20684 eval ac_cr=\$\'\\r\'
20686 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20687 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20690 ac_cs_awk_cr=$ac_cr
20693 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20696 # Create commands to substitute file output variables.
20698 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20699 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20700 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20703 } >conf$$files.sh &&
20704 . ./conf$$files.sh ||
20705 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20706 rm -f conf$$files.sh
20709 echo "cat >conf$$subs.awk <<_ACEOF" &&
20710 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20712 } >conf$$subs.sh ||
20713 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20714 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20716 for ac_last_try in false false false false false :; do
20717 . ./conf$$subs.sh ||
20718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20720 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20721 if test $ac_delim_n = $ac_delim_num; then
20723 elif $ac_last_try; then
20724 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20726 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20729 rm -f conf$$subs.sh
20731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20732 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20736 s/^/S["/; s/!.*/"]=/
20746 s/\(.\{148\}\)..*/\1/
20748 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20753 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20760 s/\(.\{148\}\)..*/\1/
20762 s/["\\]/\\&/g; s/^/"/; s/$/"/
20766 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20771 ' <conf$$subs.awk | sed '
20776 ' >>$CONFIG_STATUS || ac_write_fail=1
20777 rm -f conf$$subs.awk
20778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20780 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20781 for (key in S) S_is_set[key] = 1
20783 \$ac_cs_awk_pipe_init
20787 nfields = split(line, field, "@")
20789 len = length(field[1])
20790 for (i = 2; i < nfields; i++) {
20792 keylen = length(key)
20793 if (S_is_set[key]) {
20795 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20796 len += length(value) + length(field[++i])
20801 if (nfields == 3 && !substed) {
20803 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20804 \$ac_cs_awk_read_file
20810 \$ac_cs_awk_pipe_fini
20813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20814 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20815 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20818 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20819 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20822 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20823 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20824 # trailing colons and then remove the whole line if VPATH becomes empty
20825 # (actually we leave an empty line to preserve line numbers).
20826 if test "x$srcdir" = x.; then
20827 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20846 fi # test -n "$CONFIG_FILES"
20848 # Set up the scripts for CONFIG_HEADERS section.
20849 # No need to generate them if there are no CONFIG_HEADERS.
20850 # This happens for instance with `./config.status Makefile'.
20851 if test -n "$CONFIG_HEADERS"; then
20852 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20856 # Transform confdefs.h into an awk script `defines.awk', embedded as
20857 # here-document in config.status, that substitutes the proper values into
20858 # config.h.in to produce config.h.
20860 # Create a delimiter string that does not exist in confdefs.h, to ease
20861 # handling of long lines.
20863 for ac_last_try in false false :; do
20864 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20865 if test -z "$ac_tt"; then
20867 elif $ac_last_try; then
20868 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20874 # For the awk script, D is an array of macro values keyed by name,
20875 # likewise P contains macro parameters if any. Preserve backslash
20876 # newline sequences.
20878 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20880 s/.\{148\}/&'"$ac_delim"'/g
20883 s/^[ ]*#[ ]*define[ ][ ]*/ /
20890 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20892 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20897 D["\1"]=" \3\\\\\\n"\\/p
20899 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20904 s/.\{148\}/&'"$ac_delim"'/g
20909 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20912 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20914 ' <confdefs.h | sed '
20915 s/'"$ac_delim"'/"\\\
20916 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20919 for (key in D) D_is_set[key] = 1
20922 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20924 split(line, arg, " ")
20925 if (arg[1] == "#") {
20929 defundef = substr(arg[1], 2)
20932 split(mac1, mac2, "(") #)
20934 prefix = substr(line, 1, index(line, defundef) - 1)
20935 if (D_is_set[macro]) {
20936 # Preserve the white space surrounding the "#".
20937 print prefix "define", macro P[macro] D[macro]
20940 # Replace #undef with comments. This is necessary, for example,
20941 # in the case of _POSIX_SOURCE, which is predefined and required
20942 # on some systems where configure will not decide to define it.
20943 if (defundef == "undef") {
20944 print "/*", prefix defundef, macro, "*/"
20952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20953 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20954 fi # test -n "$CONFIG_HEADERS"
20957 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20962 :[FHLC]) ac_mode=$ac_tag; continue;;
20964 case $ac_mode$ac_tag in
20966 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20967 :[FH]-) ac_tag=-:-;;
20968 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20985 -) ac_f="$ac_tmp/stdin";;
20986 *) # Look for the file first in the build tree, then in the source tree
20987 # (if the path is not absolute). The absolute path cannot be DOS-style,
20988 # because $ac_f cannot contain `:'.
20992 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20994 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20996 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20997 as_fn_append ac_file_inputs " '$ac_f'"
21000 # Let's still pretend it is `configure' which instantiates (i.e., don't
21001 # use $as_me), people would be surprised to read:
21002 # /* config.h. Generated by config.status. */
21003 configure_input='Generated from '`
21004 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21006 if test x"$ac_file" != x-; then
21007 configure_input="$ac_file. $configure_input"
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21009 $as_echo "$as_me: creating $ac_file" >&6;}
21011 # Neutralize special characters interpreted by sed in replacement strings.
21012 case $configure_input in #(
21013 *\&* | *\|* | *\\* )
21014 ac_sed_conf_input=`$as_echo "$configure_input" |
21015 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21016 *) ac_sed_conf_input=$configure_input;;
21020 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21021 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21026 ac_dir=`$as_dirname -- "$ac_file" ||
21027 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21028 X"$ac_file" : 'X\(//\)[^/]' \| \
21029 X"$ac_file" : 'X\(//\)$' \| \
21030 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21031 $as_echo X"$ac_file" |
21032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21036 /^X\(\/\/\)[^/].*/{
21049 as_dir="$ac_dir"; as_fn_mkdir_p
21053 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21055 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21056 # A ".." for each directory in $ac_dir_suffix.
21057 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21058 case $ac_top_builddir_sub in
21059 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21060 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21063 ac_abs_top_builddir=$ac_pwd
21064 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21065 # for backward compatibility:
21066 ac_top_builddir=$ac_top_build_prefix
21069 .) # We are building in place.
21071 ac_top_srcdir=$ac_top_builddir_sub
21072 ac_abs_top_srcdir=$ac_pwd ;;
21073 [\\/]* | ?:[\\/]* ) # Absolute name.
21074 ac_srcdir=$srcdir$ac_dir_suffix;
21075 ac_top_srcdir=$srcdir
21076 ac_abs_top_srcdir=$srcdir ;;
21077 *) # Relative name.
21078 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21079 ac_top_srcdir=$ac_top_build_prefix$srcdir
21080 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21082 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21092 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21093 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21098 # If the template does not know about datarootdir, expand it.
21099 # FIXME: This hack should be removed a few years after 2.60.
21100 ac_datarootdir_hack=; ac_datarootdir_seen=
21111 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21112 *datarootdir*) ac_datarootdir_seen=yes;;
21113 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21115 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21118 ac_datarootdir_hack='
21119 s&@datadir@&$datadir&g
21120 s&@docdir@&$docdir&g
21121 s&@infodir@&$infodir&g
21122 s&@localedir@&$localedir&g
21123 s&@mandir@&$mandir&g
21124 s&\\\${datarootdir}&$datarootdir&g' ;;
21128 # Neutralize VPATH when `$srcdir' = `.'.
21129 # Shell code in configure.ac might set extrasub.
21130 # FIXME: do we really want to maintain this feature?
21131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21132 ac_sed_extra="$ac_vpsub
21135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21137 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21138 s|@configure_input@|$ac_sed_conf_input|;t t
21139 s&@top_builddir@&$ac_top_builddir_sub&;t t
21140 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21141 s&@srcdir@&$ac_srcdir&;t t
21142 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21143 s&@top_srcdir@&$ac_top_srcdir&;t t
21144 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21145 s&@builddir@&$ac_builddir&;t t
21146 s&@abs_builddir@&$ac_abs_builddir&;t t
21147 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21148 s&@INSTALL@&$ac_INSTALL&;t t
21149 $ac_datarootdir_hack
21151 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21152 if $ac_cs_awk_getline; then
21153 $AWK -f "$ac_tmp/subs.awk"
21155 $AWK -f "$ac_tmp/subs.awk" | $SHELL
21157 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21159 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21160 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21161 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21162 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21164 which seems to be undefined. Please make sure it is defined" >&5
21165 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21166 which seems to be undefined. Please make sure it is defined" >&2;}
21168 rm -f "$ac_tmp/stdin"
21170 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21171 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21179 if test x"$ac_file" != x-; then
21181 $as_echo "/* $configure_input */" \
21182 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21183 } >"$ac_tmp/config.h" \
21184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21185 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21187 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21190 mv "$ac_tmp/config.h" "$ac_file" \
21191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21194 $as_echo "/* $configure_input */" \
21195 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21196 || as_fn_error $? "could not create -" "$LINENO" 5
21204 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
21207 # Prefer the file from the source tree if names are identical.
21208 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21209 ac_source=$srcdir/$ac_source
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21213 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21215 if test ! -r "$ac_source"; then
21216 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
21220 # Try a relative symlink, then a hard link, then a copy.
21222 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21223 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21225 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21226 ln "$ac_source" "$ac_file" 2>/dev/null ||
21227 cp -p "$ac_source" "$ac_file" ||
21228 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21231 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21232 $as_echo "$as_me: executing $ac_file commands" >&6;}
21237 case $ac_file$ac_mode in
21238 "config.h":H) echo > stamp-h ;;
21239 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
21240 "nm.h":L) echo > stamp-nmh ;;
21241 "gcore":F) chmod +x gcore ;;
21242 "testsuite/lib/pdtrace":F) chmod +x testsuite/lib/pdtrace ;;
21250 ac_clean_files=$ac_clean_files_save
21252 test $ac_write_fail = 0 ||
21253 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21256 # configure is writing to config.log, and then calls config.status.
21257 # config.status does its own redirection, appending to config.log.
21258 # Unfortunately, on DOS this fails, as config.log is still kept open
21259 # by configure, so config.status won't be able to write to it; its
21260 # output is simply discarded. So we exec the FD to /dev/null,
21261 # effectively closing config.log, so it can be properly (re)opened and
21262 # appended to by config.status. When coming back to configure, we
21263 # need to make the FD available again.
21264 if test "$no_create" != yes; then
21266 ac_config_status_args=
21267 test "$silent" = yes &&
21268 ac_config_status_args="$ac_config_status_args --quiet"
21270 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21272 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21273 # would make configure fail if this is the last instruction.
21274 $ac_cs_success || as_fn_exit 1
21278 # CONFIG_SUBDIRS section.
21280 if test "$no_recursion" != yes; then
21282 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21283 # so they do not pile up.
21284 ac_sub_configure_args=
21286 eval "set x $ac_configure_args"
21290 if test -n "$ac_prev"; then
21295 -cache-file | --cache-file | --cache-fil | --cache-fi \
21296 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21297 ac_prev=cache_file ;;
21298 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21299 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21302 --config-cache | -C)
21304 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21306 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21308 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21310 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21312 --disable-option-checking)
21316 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21318 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21322 # Always prepend --prefix to ensure using the same prefix
21323 # in subdir configurations.
21324 ac_arg="--prefix=$prefix"
21326 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21328 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21331 if test "$silent" = yes; then
21332 ac_sub_configure_args="--silent $ac_sub_configure_args"
21335 # Always prepend --disable-option-checking to silence warnings, since
21336 # different subdirs can have different --enable and --with options.
21337 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21340 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21342 # Do not complain, so a configure script can configure whichever
21343 # parts of a large source tree are present.
21344 test -d "$srcdir/$ac_dir" || continue
21346 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21347 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21348 $as_echo "$ac_msg" >&6
21349 as_dir="$ac_dir"; as_fn_mkdir_p
21353 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21355 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21356 # A ".." for each directory in $ac_dir_suffix.
21357 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21358 case $ac_top_builddir_sub in
21359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21363 ac_abs_top_builddir=$ac_pwd
21364 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21365 # for backward compatibility:
21366 ac_top_builddir=$ac_top_build_prefix
21369 .) # We are building in place.
21371 ac_top_srcdir=$ac_top_builddir_sub
21372 ac_abs_top_srcdir=$ac_pwd ;;
21373 [\\/]* | ?:[\\/]* ) # Absolute name.
21374 ac_srcdir=$srcdir$ac_dir_suffix;
21375 ac_top_srcdir=$srcdir
21376 ac_abs_top_srcdir=$srcdir ;;
21377 *) # Relative name.
21378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21379 ac_top_srcdir=$ac_top_build_prefix$srcdir
21380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21382 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21387 # Check for guested configure; otherwise get Cygnus style configure.
21388 if test -f "$ac_srcdir/configure.gnu"; then
21389 ac_sub_configure=$ac_srcdir/configure.gnu
21390 elif test -f "$ac_srcdir/configure"; then
21391 ac_sub_configure=$ac_srcdir/configure
21392 elif test -f "$ac_srcdir/configure.in"; then
21393 # This should be Cygnus configure.
21394 ac_sub_configure=$ac_aux_dir/configure
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21397 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21401 # The recursion is here.
21402 if test -n "$ac_sub_configure"; then
21403 # Make the cache file name correct relative to the subdirectory.
21404 case $cache_file in
21405 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21406 *) # Relative name.
21407 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21410 { $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
21411 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21412 # The eval makes quoting arguments work.
21413 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21414 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21415 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21421 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21423 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}