2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="main.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 enable_option_checking=no
592 ac_subst_vars='LTLIBOBJS
679 READLINE_TEXI_INCFLAG
698 HAVE_NATIVE_GCORE_TARGET
727 INSTALL_STRIP_PROGRAM
753 MAINTAINER_MODE_FALSE
782 program_transform_name
793 ac_subst_files='host_makefile_frag'
795 enable_option_checking
796 enable_maintainer_mode
799 with_separate_debug_dir
801 with_relocated_sources
803 with_auto_load_safe_path
831 enable_build_warnings
832 enable_gdb_build_warnings
842 with_libbabeltrace_prefix
844 ac_precious_vars='build_alias
858 ac_subdirs_all='testsuite
863 # Initialize some variables set by options.
865 ac_init_version=false
866 ac_unrecognized_opts=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name=s,x,x,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE}'
902 infodir='${datarootdir}/info'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
951 cache_file=config.cache ;;
953 -datadir | --datadir | --datadi | --datad)
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
979 eval enable_$ac_useropt=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036 htmldir=$ac_optarg ;;
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1050 -libdir | --libdir | --libdi | --libd)
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1141 -psdir | --psdir | --psdi | --psd | --ps)
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 sbindir=$ac_optarg ;;
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 sharedstatedir=$ac_optarg ;;
1167 -site | --site | --sit)
1169 -site=* | --site=* | --sit=*)
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1209 eval with_$ac_useropt=\$ac_optarg ;;
1211 -without-* | --without-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error "invalid package name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1225 eval with_$ac_useropt=no ;;
1228 # Obsolete; use --with-x.
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1245 -*) as_fn_error "unrecognized option: \`$ac_option'
1246 Try \`$0 --help' for more information."
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 case $ac_envvar in #(
1253 '' | [0-9]* | *[!_$as_cr_alnum]* )
1254 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 as_fn_error "missing argument to $ac_option"
1275 if test -n "$ac_unrecognized_opts"; then
1276 case $enable_option_checking in
1278 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 # Check all directory arguments for consistency.
1284 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
1289 eval ac_val=\$$ac_var
1290 # Remove trailing slashes.
1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294 eval $ac_var=\$ac_val;;
1296 # Be sure to have absolute directory names.
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1309 target=$target_alias
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325 test "$silent" = yes && exec 6>/dev/null
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error "working directory cannot be determined"
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error "pwd does not report name of working directory"
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 $as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1368 ac_srcdir_defaulted=no
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1402 \`configure' configures this package to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465 --x-includes=DIR X include files are in DIR
1466 --x-libraries=DIR X library files are in DIR
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471 --target=TARGET configure for building compilers for TARGET [HOST]
1475 if test -n "$ac_init_help"; then
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --enable-maintainer-mode enable make rules and dependencies not useful
1484 (and sometimes confusing) to the casual installer
1485 --enable-plugins Enable support for plugins (defaults no)
1486 --disable-largefile omit support for large files
1487 --enable-targets=TARGETS
1488 alternative target configurations
1489 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1490 --disable-gdbcli disable command-line interface (CLI)
1491 --disable-gdbmi disable machine-interface (MI)
1492 --enable-tui enable full-screen terminal user interface (TUI)
1493 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1494 --enable-profiling enable profiling of GDB
1495 --disable-rpath do not hardcode runtime library paths
1496 --enable-libmcheck Try linking with -lmcheck if available
1497 --enable-werror treat compile warnings as errors
1498 --enable-build-warnings enable build-time compiler warnings if gcc is used
1499 --enable-gdb-build-warnings
1500 enable GDB specific build-time compiler warnings if
1502 --enable-sim link gdb with simulator
1503 --enable-multi-ice build the multi-ice-gdb-server
1504 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --with-separate-debug-dir=PATH
1511 look for global separate debug info in this path
1513 --with-gdb-datadir=PATH look for global separate data files in this path
1515 --with-relocated-sources=PATH
1516 automatically relocate this path for source files
1517 --with-auto-load-dir=PATH
1518 directories from which to load auto-loaded scripts
1519 [$debugdir:$datadir/auto-load]
1520 --with-auto-load-safe-path=PATH
1521 directories safe to hold auto-loaded files
1522 [--with-auto-load-dir]
1523 --without-auto-load-safe-path
1524 do not restrict auto-loaded files locations
1525 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1526 --with-curses use the curses library instead of the termcap
1528 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1529 --with-bugurl=URL Direct users to URL to report a bug
1530 --with-zlib include zlib support (auto/yes/no) default=auto
1531 --with-libiconv-prefix=DIR
1532 search for libiconv in DIR/include and DIR/lib
1533 --with-iconv-bin=PATH specify where to find the iconv program
1534 --with-system-readline use installed readline library
1535 --with-jit-reader-dir=PATH
1536 directory to load the JIT readers from
1537 --with-expat include expat support (auto/yes/no)
1538 --with-gnu-ld assume the C compiler uses GNU ld default=no
1539 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1540 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1541 --with-python[=PYTHON] include python support
1542 (auto/yes/no/<python-program>)
1543 --with-guile[=GUILE] include guile support
1544 (auto/yes/no/<guile-version>/<pkg-config-program>)
1545 --without-included-regex
1546 don't use included regex; this is the default on
1547 systems with version 2 of the GNU C library (use
1548 with caution on other system)
1549 --with-sysroot[=DIR] search for usr/lib et al within DIR
1550 --with-system-gdbinit=PATH
1551 automatically load a system-wide gdbinit file
1552 --with-lzma support lzma compression (auto/yes/no)
1553 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1554 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1555 --with-tcl directory containing tcl configuration (tclConfig.sh)
1556 --with-tk directory containing tk configuration (tkConfig.sh)
1557 --with-x use the X Window System
1558 --with-babeltrace include babeltrace support (auto/yes/no)
1559 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1560 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1562 Some influential environment variables:
1563 CC C compiler command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1566 nonstandard directory <lib dir>
1567 LIBS libraries to pass to the linker, e.g. -l<library>
1568 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1569 you have headers in a nonstandard directory <include dir>
1571 MAKEINFO Parent configure detects if it is of sufficient version.
1573 Parameters for MAKEINFO.
1574 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1575 the first program found out of: `bison -y', `byacc', `yacc'.
1576 YFLAGS The list of arguments that will be passed by default to $YACC.
1577 This script will default YFLAGS to the empty string to avoid a
1578 default value of `-d' given by some make applications.
1579 XMKMF Path to xmkmf, Makefile generator for X Window System
1581 Use these variables to override the choices made by `configure' or to help
1582 it to find libraries and programs with nonstandard names/locations.
1584 Report bugs to the package provider.
1589 if test "$ac_init_help" = "recursive"; then
1590 # If there are subdirs, report their specific --help.
1591 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592 test -d "$ac_dir" ||
1593 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601 # A ".." for each directory in $ac_dir_suffix.
1602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608 ac_abs_top_builddir=$ac_pwd
1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir=$ac_top_build_prefix
1614 .) # We are building in place.
1616 ac_top_srcdir=$ac_top_builddir_sub
1617 ac_abs_top_srcdir=$ac_pwd ;;
1618 [\\/]* | ?:[\\/]* ) # Absolute name.
1619 ac_srcdir=$srcdir$ac_dir_suffix;
1620 ac_top_srcdir=$srcdir
1621 ac_abs_top_srcdir=$srcdir ;;
1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1629 cd "$ac_dir" || { ac_status=$?; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1636 $SHELL "$ac_srcdir/configure" --help=recursive
1638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1640 cd "$ac_pwd" || { ac_status=$?; break; }
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1648 generated by GNU Autoconf 2.64
1650 Copyright (C) 2009 Free Software Foundation, Inc.
1651 This configure script is free software; the Free Software Foundation
1652 gives unlimited permission to copy, distribute and modify it.
1657 ## ------------------------ ##
1658 ## Autoconf initialization. ##
1659 ## ------------------------ ##
1661 # ac_fn_c_try_compile LINENO
1662 # --------------------------
1663 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_compile ()
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext
1668 if { { ac_try="$ac_compile"
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697 } # ac_fn_c_try_compile
1699 # ac_fn_c_try_cpp LINENO
1700 # ----------------------
1701 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_cpp conftest.$ac_ext"
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } >/dev/null && {
1721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1739 # the include files in INCLUDES and setting the cache variable VAR
1741 ac_fn_c_check_header_mongrel ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1748 $as_echo_n "(cached) " >&6
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1754 # Is the header compilable?
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1756 $as_echo_n "checking $2 usability... " >&6; }
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763 ac_header_compiler=yes
1765 ac_header_compiler=no
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1769 $as_echo "$ac_header_compiler" >&6; }
1771 # Is the header present?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1773 $as_echo_n "checking $2 presence... " >&6; }
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1778 if ac_fn_c_try_cpp "$LINENO"; then :
1779 ac_header_preproc=yes
1781 ac_header_preproc=no
1783 rm -f conftest.err conftest.$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1785 $as_echo "$ac_header_preproc" >&6; }
1787 # So? What about this header?
1788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1791 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1797 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1799 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1801 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1803 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1805 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811 $as_echo_n "(cached) " >&6
1813 eval "$3=\$ac_header_compiler"
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 } # ac_fn_c_check_header_mongrel
1823 # ac_fn_c_try_run LINENO
1824 # ----------------------
1825 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1826 # that executables *can* be run.
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { { ac_try="$ac_link"
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_link") 2>&5
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1841 { { case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_try") 2>&5
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; }; }; then :
1853 $as_echo "$as_me: program exited with status $ac_status" >&5
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1857 ac_retval=$ac_status
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists and can be compiled using the include files in
1868 # INCLUDES, setting the cache variable VAR accordingly.
1869 ac_fn_c_check_header_compile ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1882 if ac_fn_c_try_compile "$LINENO"; then :
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 } # ac_fn_c_check_header_compile
1896 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1897 # --------------------------------------------
1898 # Tries to find the compile-time value of EXPR in a program that includes
1899 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1901 ac_fn_c_compute_int ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if test "$cross_compiling" = yes; then
1905 # Depending upon the size, compute the lo and hi bounds.
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1912 static int test_array [1 - 2 * !(($2) >= 0)];
1919 if ac_fn_c_try_compile "$LINENO"; then :
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1928 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 ac_hi=$ac_mid; break
1938 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1939 if test $ac_lo -le $ac_mid; then
1943 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1954 static int test_array [1 - 2 * !(($2) < 0)];
1961 if ac_fn_c_try_compile "$LINENO"; then :
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1970 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978 ac_lo=$ac_mid; break
1980 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1981 if test $ac_mid -le $ac_hi; then
1985 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 # Binary search between lo and hi bounds.
1996 while test "x$ac_lo" != "x$ac_hi"; do
1997 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2004 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2011 if ac_fn_c_try_compile "$LINENO"; then :
2014 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2026 static long int longval () { return $2; }
2027 static unsigned long int ulongval () { return $2; }
2034 FILE *f = fopen ("conftest.val", "w");
2039 long int i = longval ();
2042 fprintf (f, "%ld", i);
2046 unsigned long int i = ulongval ();
2049 fprintf (f, "%lu", i);
2051 /* Do not output a trailing newline, as this causes \r\n confusion
2052 on some platforms. */
2053 return ferror (f) || fclose (f) != 0;
2059 if ac_fn_c_try_run "$LINENO"; then :
2060 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2065 conftest.$ac_objext conftest.beam conftest.$ac_ext
2069 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072 } # ac_fn_c_compute_int
2074 # ac_fn_c_try_link LINENO
2075 # -----------------------
2076 # Try to link conftest.$ac_ext, and return whether this succeeded.
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 rm -f conftest.$ac_objext conftest$ac_exeext
2081 if { { ac_try="$ac_link"
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088 (eval "$ac_link") 2>conftest.err
2090 if test -s conftest.err; then
2091 grep -v '^ *+' conftest.err >conftest.er1
2092 cat conftest.er1 >&5
2093 mv -f conftest.er1 conftest.err
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; } && {
2097 test -z "$ac_c_werror_flag" ||
2098 test ! -s conftest.err
2099 } && test -s conftest$ac_exeext && {
2100 test "$cross_compiling" = yes ||
2101 $as_test_x conftest$ac_exeext
2105 $as_echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2110 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2111 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2112 # interfere with the next link command; also delete a directory that is
2113 # left behind by Apple's compiler. We do this before executing the actions.
2114 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2115 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2118 } # ac_fn_c_try_link
2120 # ac_fn_c_check_func LINENO FUNC VAR
2121 # ----------------------------------
2122 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2123 ac_fn_c_check_func ()
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127 $as_echo_n "checking for $2... " >&6; }
2128 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2129 $as_echo_n "(cached) " >&6
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2133 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2135 #define $2 innocuous_$2
2137 /* System header to define __stub macros and hopefully few prototypes,
2138 which can conflict with char $2 (); below.
2139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2140 <limits.h> exists even on freestanding compilers. */
2143 # include <limits.h>
2145 # include <assert.h>
2150 /* Override any GCC internal prototype to avoid an error.
2151 Use char because int might match the return type of a GCC
2152 builtin and then its argument prototype would still apply. */
2157 /* The GNU C library defines this for functions which it implements
2158 to always fail with ENOSYS. Some functions are actually named
2159 something starting with __ and the normal name is an alias. */
2160 #if defined __stub_$2 || defined __stub___$2
2172 if ac_fn_c_try_link "$LINENO"; then :
2177 rm -f core conftest.err conftest.$ac_objext \
2178 conftest$ac_exeext conftest.$ac_ext
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2183 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185 } # ac_fn_c_check_func
2187 # ac_fn_c_check_decl LINENO SYMBOL VAR
2188 # ------------------------------------
2189 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2190 ac_fn_c_check_decl ()
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 as_decl_name=`echo $2|sed 's/ *(.*//'`
2194 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2196 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2197 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2198 $as_echo_n "(cached) " >&6
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2206 #ifndef $as_decl_name
2208 (void) $as_decl_use;
2210 (void) $as_decl_name;
2218 if ac_fn_c_try_compile "$LINENO"; then :
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227 $as_echo "$ac_res" >&6; }
2228 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2230 } # ac_fn_c_check_decl
2232 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2233 # ----------------------------------------------------
2234 # Tries to find if the field MEMBER exists in type AGGR, after including
2235 # INCLUDES, setting cache variable VAR accordingly.
2236 ac_fn_c_check_member ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2240 $as_echo_n "checking for $2.$3... " >&6; }
2241 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2242 $as_echo_n "(cached) " >&6
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2257 if ac_fn_c_try_compile "$LINENO"; then :
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2267 if (sizeof ac_aggr.$3)
2273 if ac_fn_c_try_compile "$LINENO"; then :
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 $as_echo "$ac_res" >&6; }
2285 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2287 } # ac_fn_c_check_member
2289 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2290 # -------------------------------------------
2291 # Tests whether TYPE exists after having included INCLUDES, setting cache
2292 # variable VAR accordingly.
2293 ac_fn_c_check_type ()
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2297 $as_echo_n "checking for $2... " >&6; }
2298 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2299 $as_echo_n "(cached) " >&6
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2327 if ac_fn_c_try_compile "$LINENO"; then :
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 $as_echo "$ac_res" >&6; }
2339 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2341 } # ac_fn_c_check_type
2342 cat >config.log <<_ACEOF
2343 This file contains any messages produced by compilers while
2344 running configure, to aid debugging if configure makes a mistake.
2346 It was created by $as_me, which was
2347 generated by GNU Autoconf 2.64. Invocation command line was
2359 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2360 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2361 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2362 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2363 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2365 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2366 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2368 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2369 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2370 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2371 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2372 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2373 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2374 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 test -z "$as_dir" && as_dir=.
2383 $as_echo "PATH: $as_dir"
2399 # Keep a trace of the command line.
2400 # Strip out --no-create and --no-recursion so they do not pile up.
2401 # Strip out --silent because we don't want to record it for future runs.
2402 # Also quote any args containing shell meta-characters.
2403 # Make two passes to allow for proper duplicate-argument suppression.
2407 ac_must_keep_next=false
2413 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2414 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2415 | -silent | --silent | --silen | --sile | --sil)
2418 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2421 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2423 as_fn_append ac_configure_args1 " '$ac_arg'"
2424 if test $ac_must_keep_next = true; then
2425 ac_must_keep_next=false # Got value, back to normal.
2428 *=* | --config-cache | -C | -disable-* | --disable-* \
2429 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2430 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2431 | -with-* | --with-* | -without-* | --without-* | --x)
2432 case "$ac_configure_args0 " in
2433 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2436 -* ) ac_must_keep_next=true ;;
2439 as_fn_append ac_configure_args " '$ac_arg'"
2444 { ac_configure_args0=; unset ac_configure_args0;}
2445 { ac_configure_args1=; unset ac_configure_args1;}
2447 # When interrupted or exit'd, cleanup temporary files, and complete
2448 # config.log. We remove comments because anyway the quotes in there
2449 # would cause problems or look ugly.
2450 # WARNING: Use '\'' to represent an apostrophe within the trap.
2451 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2452 trap 'exit_status=$?
2453 # Save into config.log some information that might help in debugging.
2458 ## ---------------- ##
2459 ## Cache variables. ##
2460 ## ---------------- ##
2463 # The following way of writing the cache mishandles newlines in values,
2465 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2466 eval ac_val=\$$ac_var
2470 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2471 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2474 _ | IFS | as_nl) ;; #(
2475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2476 *) { eval $ac_var=; unset $ac_var;} ;;
2481 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2482 *${as_nl}ac_space=\ *)
2484 "s/'\''/'\''\\\\'\'''\''/g;
2485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2496 ## ----------------- ##
2497 ## Output variables. ##
2498 ## ----------------- ##
2501 for ac_var in $ac_subst_vars
2503 eval ac_val=\$$ac_var
2505 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507 $as_echo "$ac_var='\''$ac_val'\''"
2511 if test -n "$ac_subst_files"; then
2513 ## ------------------- ##
2514 ## File substitutions. ##
2515 ## ------------------- ##
2518 for ac_var in $ac_subst_files
2520 eval ac_val=\$$ac_var
2522 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2524 $as_echo "$ac_var='\''$ac_val'\''"
2529 if test -s confdefs.h; then
2539 test "$ac_signal" != 0 &&
2540 $as_echo "$as_me: caught signal $ac_signal"
2541 $as_echo "$as_me: exit $exit_status"
2543 rm -f core *.core core.conftest.* &&
2544 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2547 for ac_signal in 1 2 13 15; do
2548 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2552 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2553 rm -f -r conftest* confdefs.h
2555 $as_echo "/* confdefs.h */" > confdefs.h
2557 # Predefined preprocessor variables.
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_NAME "$PACKAGE_NAME"
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_STRING "$PACKAGE_STRING"
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_URL "$PACKAGE_URL"
2584 # Let the site file select an alternate cache file if it wants to.
2585 # Prefer an explicitly selected file to automatically selected ones.
2588 if test -n "$CONFIG_SITE"; then
2589 ac_site_file1=$CONFIG_SITE
2590 elif test "x$prefix" != xNONE; then
2591 ac_site_file1=$prefix/share/config.site
2592 ac_site_file2=$prefix/etc/config.site
2594 ac_site_file1=$ac_default_prefix/share/config.site
2595 ac_site_file2=$ac_default_prefix/etc/config.site
2597 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2599 test "x$ac_site_file" = xNONE && continue
2600 if test -r "$ac_site_file"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2602 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2603 sed 's/^/| /' "$ac_site_file" >&5
2608 if test -r "$cache_file"; then
2609 # Some versions of bash will fail to source /dev/null (special
2610 # files actually), so we avoid doing that.
2611 if test -f "$cache_file"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2613 $as_echo "$as_me: loading cache $cache_file" >&6;}
2615 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2616 *) . "./$cache_file";;
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2621 $as_echo "$as_me: creating cache $cache_file" >&6;}
2625 # Check that the precious variables saved in the cache have kept the same
2627 ac_cache_corrupted=false
2628 for ac_var in $ac_precious_vars; do
2629 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2630 eval ac_new_set=\$ac_env_${ac_var}_set
2631 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2632 eval ac_new_val=\$ac_env_${ac_var}_value
2633 case $ac_old_set,$ac_new_set in
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2636 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2637 ac_cache_corrupted=: ;;
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2640 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2641 ac_cache_corrupted=: ;;
2644 if test "x$ac_old_val" != "x$ac_new_val"; then
2645 # differences in whitespace do not lead to failure.
2646 ac_old_val_w=`echo x $ac_old_val`
2647 ac_new_val_w=`echo x $ac_new_val`
2648 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2650 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2651 ac_cache_corrupted=:
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2654 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2655 eval $ac_var=\$ac_old_val
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2658 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2660 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2663 # Pass precious variables to config.status.
2664 if test "$ac_new_set" = set; then
2666 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2667 *) ac_arg=$ac_var=$ac_new_val ;;
2669 case " $ac_configure_args " in
2670 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2671 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2675 if $ac_cache_corrupted; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2679 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2680 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2682 ## -------------------- ##
2683 ## Main body of script. ##
2684 ## -------------------- ##
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696 ac_config_headers="$ac_config_headers config.h:config.in"
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2700 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2701 # Check whether --enable-maintainer-mode was given.
2702 if test "${enable_maintainer_mode+set}" = set; then :
2703 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2705 USE_MAINTAINER_MODE=no
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2709 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2710 if test $USE_MAINTAINER_MODE = yes; then
2711 MAINTAINER_MODE_TRUE=
2712 MAINTAINER_MODE_FALSE='#'
2714 MAINTAINER_MODE_TRUE='#'
2715 MAINTAINER_MODE_FALSE=
2718 MAINT=$MAINTAINER_MODE_TRUE
2722 # Set the 'development' global.
2723 . $srcdir/../bfd/development.sh
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if test "${ac_cv_prog_CC+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2769 if test -z "$ac_cv_prog_CC"; then
2771 # Extract the first word of "gcc", so it can be a program name with args.
2772 set dummy gcc; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2778 if test -n "$ac_ct_CC"; then
2779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_ac_ct_CC="gcc"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2799 if test -n "$ac_ct_CC"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2801 $as_echo "$ac_ct_CC" >&6; }
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2807 if test "x$ac_ct_CC" = x; then
2810 case $cross_compiling:$ac_tool_warned in
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814 ac_tool_warned=yes ;;
2822 if test -z "$CC"; then
2823 if test -n "$ac_tool_prefix"; then
2824 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2825 set dummy ${ac_tool_prefix}cc; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if test "${ac_cv_prog_CC+set}" = set; then :
2829 $as_echo_n "(cached) " >&6
2831 if test -n "$CC"; then
2832 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_CC="${ac_tool_prefix}cc"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 if test -n "$CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854 $as_echo "$CC" >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2863 if test -z "$CC"; then
2864 # Extract the first word of "cc", so it can be a program name with args.
2865 set dummy cc; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_CC+set}" = set; then :
2869 $as_echo_n "(cached) " >&6
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC="$CC" # Let the user override the test.
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2883 ac_prog_rejected=yes
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 if test $ac_prog_rejected = yes; then
2895 # We found a bogon in the path, so make sure we never use it.
2896 set dummy $ac_cv_prog_CC
2898 if test $# != 0; then
2899 # We chose a different compiler from the bogus one.
2900 # However, it has the same basename, so the bogon will be chosen
2901 # first if we set CC to just the basename; use the full file name.
2903 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2919 if test -z "$CC"; then
2920 if test -n "$ac_tool_prefix"; then
2921 for ac_prog in cl.exe
2923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if test "${ac_cv_prog_CC+set}" = set; then :
2928 $as_echo_n "(cached) " >&6
2930 if test -n "$CC"; then
2931 ac_cv_prog_CC="$CC" # Let the user override the test.
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 if test -n "$CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2960 test -n "$CC" && break
2963 if test -z "$CC"; then
2965 for ac_prog in cl.exe
2967 # Extract the first word of "$ac_prog", so it can be a program name with args.
2968 set dummy $ac_prog; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_ac_ct_CC="$ac_prog"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 $as_echo "$ac_ct_CC" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3004 test -n "$ac_ct_CC" && break
3007 if test "x$ac_ct_CC" = x; then
3010 case $cross_compiling:$ac_tool_warned in
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3023 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 as_fn_error "no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details." "$LINENO" 5; }
3028 # Provide some information about the compiler.
3029 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3032 for ac_option in --version -v -V -qversion; do
3033 { { ac_try="$ac_compiler $ac_option >&5"
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 $as_echo "$ac_try_echo"; } >&5
3040 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3042 if test -s conftest.err; then
3044 ... rest of stderr output deleted ...
3045 10q' conftest.err >conftest.er1
3046 cat conftest.er1 >&5
3047 rm -f conftest.er1 conftest.err
3049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050 test $ac_status = 0; }
3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054 /* end confdefs.h. */
3064 ac_clean_files_save=$ac_clean_files
3065 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3070 $as_echo_n "checking for C compiler default output file name... " >&6; }
3071 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3073 # The possible output files:
3074 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3077 for ac_file in $ac_files
3080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3081 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3086 if { { ac_try="$ac_link_default"
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092 $as_echo "$ac_try_echo"; } >&5
3093 (eval "$ac_link_default") 2>&5
3095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096 test $ac_status = 0; }; then :
3097 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3098 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3099 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3100 # so that the user can short-circuit this test for compilers unknown to
3102 for ac_file in $ac_files ''
3104 test -f "$ac_file" || continue
3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3109 # We found the default executable, but exeext='' is most
3113 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3115 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117 # We set ac_cv_exeext here because the later test for it is not
3118 # safe: cross compilers may not add the suffix if given an `-o'
3119 # argument, so we may need to know it at that point already.
3120 # Even if this section looks crufty: it has the advantage of
3127 test "$ac_cv_exeext" = no && ac_cv_exeext=
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3133 $as_echo "$ac_file" >&6; }
3134 if test -z "$ac_file"; then :
3135 $as_echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140 { as_fn_set_status 77
3141 as_fn_error "C compiler cannot create executables
3142 See \`config.log' for more details." "$LINENO" 5; }; }
3144 ac_exeext=$ac_cv_exeext
3146 # Check that the compiler produces executables we can run. If not, either
3147 # the compiler is broken, or we cross compile.
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3149 $as_echo_n "checking whether the C compiler works... " >&6; }
3150 # If not cross compiling, check that we can run a simple program.
3151 if test "$cross_compiling" != yes; then
3152 if { ac_try='./$ac_file'
3153 { { case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 $as_echo "$ac_try_echo"; } >&5
3159 (eval "$ac_try") 2>&5
3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162 test $ac_status = 0; }; }; then
3165 if test "$cross_compiling" = maybe; then
3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170 as_fn_error "cannot run C compiled programs.
3171 If you meant to cross compile, use \`--host'.
3172 See \`config.log' for more details." "$LINENO" 5; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3177 $as_echo "yes" >&6; }
3179 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3180 ac_clean_files=$ac_clean_files_save
3181 # Check that the compiler produces executables we can run. If not, either
3182 # the compiler is broken, or we cross compile.
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3184 $as_echo_n "checking whether we are cross compiling... " >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3186 $as_echo "$cross_compiling" >&6; }
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3189 $as_echo_n "checking for suffix of executables... " >&6; }
3190 if { { ac_try="$ac_link"
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197 (eval "$ac_link") 2>&5
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }; then :
3201 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3202 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3203 # work properly (i.e., refer to `conftest.exe'), while it won't with
3205 for ac_file in conftest.exe conftest conftest.*; do
3206 test -f "$ac_file" || continue
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3209 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error "cannot compute suffix of executables: cannot compile and link
3218 See \`config.log' for more details." "$LINENO" 5; }
3220 rm -f conftest$ac_cv_exeext
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3222 $as_echo "$ac_cv_exeext" >&6; }
3224 rm -f conftest.$ac_ext
3225 EXEEXT=$ac_cv_exeext
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3228 $as_echo_n "checking for suffix of object files... " >&6; }
3229 if test "${ac_cv_objext+set}" = set; then :
3230 $as_echo_n "(cached) " >&6
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3243 rm -f conftest.o conftest.obj
3244 if { { ac_try="$ac_compile"
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250 $as_echo "$ac_try_echo"; } >&5
3251 (eval "$ac_compile") 2>&5
3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254 test $ac_status = 0; }; then :
3255 for ac_file in conftest.o conftest.obj conftest.*; do
3256 test -f "$ac_file" || continue;
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3259 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3264 $as_echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269 as_fn_error "cannot compute suffix of object files: cannot compile
3270 See \`config.log' for more details." "$LINENO" 5; }
3272 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3275 $as_echo "$ac_cv_objext" >&6; }
3276 OBJEXT=$ac_cv_objext
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3279 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3280 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3281 $as_echo_n "(cached) " >&6
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3297 if ac_fn_c_try_compile "$LINENO"; then :
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3307 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3308 if test $ac_compiler_gnu = yes; then
3313 ac_test_CFLAGS=${CFLAGS+set}
3314 ac_save_CFLAGS=$CFLAGS
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3316 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3317 if test "${ac_cv_prog_cc_g+set}" = set; then :
3318 $as_echo_n "(cached) " >&6
3320 ac_save_c_werror_flag=$ac_c_werror_flag
3321 ac_c_werror_flag=yes
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3335 if ac_fn_c_try_compile "$LINENO"; then :
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3350 if ac_fn_c_try_compile "$LINENO"; then :
3353 ac_c_werror_flag=$ac_save_c_werror_flag
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3366 if ac_fn_c_try_compile "$LINENO"; then :
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 ac_c_werror_flag=$ac_save_c_werror_flag
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3377 $as_echo "$ac_cv_prog_cc_g" >&6; }
3378 if test "$ac_test_CFLAGS" = set; then
3379 CFLAGS=$ac_save_CFLAGS
3380 elif test $ac_cv_prog_cc_g = yes; then
3381 if test "$GCC" = yes; then
3387 if test "$GCC" = yes; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3394 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3395 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3396 $as_echo_n "(cached) " >&6
3398 ac_cv_prog_cc_c89=no
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3404 #include <sys/types.h>
3405 #include <sys/stat.h>
3406 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3407 struct buf { int x; };
3408 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3409 static char *e (p, i)
3415 static char *f (char * (*g) (char **, int), char **p, ...)
3420 s = g (p, va_arg (v,int));
3425 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3426 function prototypes and stuff, but not '\xHH' hex character constants.
3427 These don't provoke an error unfortunately, instead are silently treated
3428 as 'x'. The following induces an error, until -std is added to get
3429 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3430 array size at least. It's necessary to write '\x00'==0 to get something
3431 that's true only with -std. */
3432 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3434 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3435 inside strings and character constants. */
3437 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3439 int test (int i, double x);
3440 struct s1 {int (*f) (int a);};
3441 struct s2 {int (*f) (double a);};
3442 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3448 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3453 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3454 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3456 CC="$ac_save_CC $ac_arg"
3457 if ac_fn_c_try_compile "$LINENO"; then :
3458 ac_cv_prog_cc_c89=$ac_arg
3460 rm -f core conftest.err conftest.$ac_objext
3461 test "x$ac_cv_prog_cc_c89" != "xno" && break
3463 rm -f conftest.$ac_ext
3468 case "x$ac_cv_prog_cc_c89" in
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3471 $as_echo "none needed" >&6; } ;;
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3474 $as_echo "unsupported" >&6; } ;;
3476 CC="$CC $ac_cv_prog_cc_c89"
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3478 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3480 if test "x$ac_cv_prog_cc_c89" != xno; then :
3485 ac_cpp='$CPP $CPPFLAGS'
3486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3497 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3498 # On Suns, sometimes $CPP names a directory.
3499 if test -n "$CPP" && test -d "$CPP"; then
3502 if test -z "$CPP"; then
3503 if test "${ac_cv_prog_CPP+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
3506 # Double quotes because CPP needs to be expanded
3507 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3510 for ac_c_preproc_warn_flag in '' yes
3512 # Use a header file that comes with gcc, so configuring glibc
3513 # with a fresh cross-compiler works.
3514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3515 # <limits.h> exists even on freestanding compilers.
3516 # On the NeXT, cc -E runs the code through the compiler's parser,
3517 # not just through cpp. "Syntax error" is here to catch this case.
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3521 # include <limits.h>
3523 # include <assert.h>
3527 if ac_fn_c_try_cpp "$LINENO"; then :
3530 # Broken: fails on valid input.
3533 rm -f conftest.err conftest.$ac_ext
3535 # OK, works on sane cases. Now check whether nonexistent headers
3536 # can be detected and how.
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3539 #include <ac_nonexistent.h>
3541 if ac_fn_c_try_cpp "$LINENO"; then :
3542 # Broken: success on invalid input.
3545 # Passes both tests.
3549 rm -f conftest.err conftest.$ac_ext
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then :
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3567 $as_echo "$CPP" >&6; }
3569 for ac_c_preproc_warn_flag in '' yes
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3580 # include <limits.h>
3582 # include <assert.h>
3586 if ac_fn_c_try_cpp "$LINENO"; then :
3589 # Broken: fails on valid input.
3592 rm -f conftest.err conftest.$ac_ext
3594 # OK, works on sane cases. Now check whether nonexistent headers
3595 # can be detected and how.
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598 #include <ac_nonexistent.h>
3600 if ac_fn_c_try_cpp "$LINENO"; then :
3601 # Broken: success on invalid input.
3604 # Passes both tests.
3608 rm -f conftest.err conftest.$ac_ext
3611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3612 rm -f conftest.err conftest.$ac_ext
3613 if $ac_preproc_ok; then :
3616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3619 See \`config.log' for more details." "$LINENO" 5; }
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3630 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3631 if test "${ac_cv_path_GREP+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3634 if test -z "$GREP"; then
3635 ac_path_GREP_found=false
3636 # Loop through the user's path and test for each of PROGNAME-LIST
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3641 test -z "$as_dir" && as_dir=.
3642 for ac_prog in grep ggrep; do
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3645 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3646 # Check for GNU ac_path_GREP and select it if it is found.
3647 # Check for GNU $ac_path_GREP
3648 case `"$ac_path_GREP" --version 2>&1` in
3650 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3653 $as_echo_n 0123456789 >"conftest.in"
3656 cat "conftest.in" "conftest.in" >"conftest.tmp"
3657 mv "conftest.tmp" "conftest.in"
3658 cp "conftest.in" "conftest.nl"
3659 $as_echo 'GREP' >> "conftest.nl"
3660 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3662 as_fn_arith $ac_count + 1 && ac_count=$as_val
3663 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3664 # Best one so far, save it but keep looking for a better one
3665 ac_cv_path_GREP="$ac_path_GREP"
3666 ac_path_GREP_max=$ac_count
3668 # 10*(2^10) chars as input seems more than enough
3669 test $ac_count -gt 10 && break
3671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3674 $ac_path_GREP_found && break 3
3679 if test -z "$ac_cv_path_GREP"; then
3680 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3683 ac_cv_path_GREP=$GREP
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3688 $as_echo "$ac_cv_path_GREP" >&6; }
3689 GREP="$ac_cv_path_GREP"
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3693 $as_echo_n "checking for egrep... " >&6; }
3694 if test "${ac_cv_path_EGREP+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3697 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3698 then ac_cv_path_EGREP="$GREP -E"
3700 if test -z "$EGREP"; then
3701 ac_path_EGREP_found=false
3702 # Loop through the user's path and test for each of PROGNAME-LIST
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3707 test -z "$as_dir" && as_dir=.
3708 for ac_prog in egrep; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3712 # Check for GNU ac_path_EGREP and select it if it is found.
3713 # Check for GNU $ac_path_EGREP
3714 case `"$ac_path_EGREP" --version 2>&1` in
3716 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3719 $as_echo_n 0123456789 >"conftest.in"
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
3725 $as_echo 'EGREP' >> "conftest.nl"
3726 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3728 as_fn_arith $ac_count + 1 && ac_count=$as_val
3729 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_EGREP="$ac_path_EGREP"
3732 ac_path_EGREP_max=$ac_count
3734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3740 $ac_path_EGREP_found && break 3
3745 if test -z "$ac_cv_path_EGREP"; then
3746 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3749 ac_cv_path_EGREP=$EGREP
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3755 $as_echo "$ac_cv_path_EGREP" >&6; }
3756 EGREP="$ac_cv_path_EGREP"
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3760 $as_echo_n "checking for ANSI C header files... " >&6; }
3761 if test "${ac_cv_header_stdc+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3779 if ac_fn_c_try_compile "$LINENO"; then :
3780 ac_cv_header_stdc=yes
3782 ac_cv_header_stdc=no
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 if test $ac_cv_header_stdc = yes; then
3787 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3794 $EGREP "memchr" >/dev/null 2>&1; then :
3797 ac_cv_header_stdc=no
3803 if test $ac_cv_header_stdc = yes; then
3804 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3811 $EGREP "free" >/dev/null 2>&1; then :
3814 ac_cv_header_stdc=no
3820 if test $ac_cv_header_stdc = yes; then
3821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3822 if test "$cross_compiling" = yes; then :
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3829 #if ((' ' & 0x0FF) == 0x020)
3830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3833 # define ISLOWER(c) \
3834 (('a' <= (c) && (c) <= 'i') \
3835 || ('j' <= (c) && (c) <= 'r') \
3836 || ('s' <= (c) && (c) <= 'z'))
3837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3845 for (i = 0; i < 256; i++)
3846 if (XOR (islower (i), ISLOWER (i))
3847 || toupper (i) != TOUPPER (i))
3852 if ac_fn_c_try_run "$LINENO"; then :
3855 ac_cv_header_stdc=no
3857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3858 conftest.$ac_objext conftest.beam conftest.$ac_ext
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3864 $as_echo "$ac_cv_header_stdc" >&6; }
3865 if test $ac_cv_header_stdc = yes; then
3867 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3871 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3872 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3873 inttypes.h stdint.h unistd.h
3875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3876 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3878 eval as_val=\$$as_ac_Header
3879 if test "x$as_val" = x""yes; then :
3880 cat >>confdefs.h <<_ACEOF
3881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3890 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3891 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3898 if test "$MINIX" = yes; then
3900 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3903 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3906 $as_echo "#define _MINIX 1" >>confdefs.h
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3912 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3913 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3919 # define __EXTENSIONS__ 1
3920 $ac_includes_default
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930 ac_cv_safe_to_define___extensions__=yes
3932 ac_cv_safe_to_define___extensions__=no
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3937 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3938 test $ac_cv_safe_to_define___extensions__ = yes &&
3939 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3941 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3943 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3945 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3947 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3951 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3952 for ac_t in install-sh install.sh shtool; do
3953 if test -f "$ac_dir/$ac_t"; then
3955 ac_install_sh="$ac_aux_dir/$ac_t -c"
3960 if test -z "$ac_aux_dir"; then
3961 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3964 # These three variables are undocumented and unsupported,
3965 # and are intended to be withdrawn in a future Autoconf release.
3966 # They can cause serious problems if a builder's source tree is in a directory
3967 # whose full name contains unusual characters.
3968 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3969 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3970 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3973 # Make sure we can run config.sub.
3974 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3975 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3978 $as_echo_n "checking build system type... " >&6; }
3979 if test "${ac_cv_build+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3982 ac_build_alias=$build_alias
3983 test "x$ac_build_alias" = x &&
3984 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3985 test "x$ac_build_alias" = x &&
3986 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3987 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3988 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3992 $as_echo "$ac_cv_build" >&6; }
3993 case $ac_cv_build in
3995 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3998 ac_save_IFS=$IFS; IFS='-'
4004 # Remember, the first character of IFS is used to create $*,
4005 # except with old shells:
4008 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4012 $as_echo_n "checking host system type... " >&6; }
4013 if test "${ac_cv_host+set}" = set; then :
4014 $as_echo_n "(cached) " >&6
4016 if test "x$host_alias" = x; then
4017 ac_cv_host=$ac_cv_build
4019 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4020 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4025 $as_echo "$ac_cv_host" >&6; }
4028 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4031 ac_save_IFS=$IFS; IFS='-'
4037 # Remember, the first character of IFS is used to create $*,
4038 # except with old shells:
4041 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4045 $as_echo_n "checking target system type... " >&6; }
4046 if test "${ac_cv_target+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4049 if test "x$target_alias" = x; then
4050 ac_cv_target=$ac_cv_host
4052 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4053 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4058 $as_echo "$ac_cv_target" >&6; }
4059 case $ac_cv_target in
4061 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4063 target=$ac_cv_target
4064 ac_save_IFS=$IFS; IFS='-'
4070 # Remember, the first character of IFS is used to create $*,
4071 # except with old shells:
4074 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4077 # The aliases save the names the user supplied, while $host etc.
4078 # will get canonicalized.
4079 test -n "$target_alias" &&
4080 test "$program_prefix$program_suffix$program_transform_name" = \
4082 program_prefix=${target_alias}-
4084 # The tests for host and target for $enable_largefile require
4089 # As the $enable_largefile decision depends on --enable-plugins we must set it
4090 # even in directories otherwise not depending on the $plugins option.
4093 # Check whether --enable-plugins was given.
4094 if test "${enable_plugins+set}" = set; then :
4095 enableval=$enable_plugins; case "${enableval}" in
4096 yes | "") plugins=yes ;;
4107 sparc-*-solaris*|i[3-7]86-*-solaris*)
4108 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4109 # are mutually exclusive; and without procfs support, the bfd/ elf module
4110 # cannot provide certain routines such as elfcore_write_prpsinfo
4111 # or elfcore_write_prstatus. So unless the user explicitly requested
4112 # large-file support through the --enable-largefile switch, disable
4113 # large-file support in favor of procfs support.
4114 test "${target}" = "${host}" -a "x$plugins" = xno \
4115 && : ${enable_largefile="no"}
4119 # Check whether --enable-largefile was given.
4120 if test "${enable_largefile+set}" = set; then :
4121 enableval=$enable_largefile;
4124 if test "$enable_largefile" != no; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4127 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4128 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
4131 ac_cv_sys_largefile_CC=no
4132 if test "$GCC" != yes; then
4135 # IRIX 6.2 and later do not support large files by default,
4136 # so use the C compiler's -n32 option if that helps.
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139 #include <sys/types.h>
4140 /* Check that off_t can represent 2**63 - 1 correctly.
4141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4142 since some C++ compilers masquerading as C compilers
4143 incorrectly reject 9223372036854775807. */
4144 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4146 && LARGE_OFF_T % 2147483647 == 1)
4156 if ac_fn_c_try_compile "$LINENO"; then :
4159 rm -f core conftest.err conftest.$ac_objext
4161 if ac_fn_c_try_compile "$LINENO"; then :
4162 ac_cv_sys_largefile_CC=' -n32'; break
4164 rm -f core conftest.err conftest.$ac_objext
4168 rm -f conftest.$ac_ext
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4172 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4173 if test "$ac_cv_sys_largefile_CC" != no; then
4174 CC=$CC$ac_cv_sys_largefile_CC
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4178 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4179 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4180 $as_echo_n "(cached) " >&6
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #include <sys/types.h>
4186 /* Check that off_t can represent 2**63 - 1 correctly.
4187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4188 since some C++ compilers masquerading as C compilers
4189 incorrectly reject 9223372036854775807. */
4190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4192 && LARGE_OFF_T % 2147483647 == 1)
4202 if ac_fn_c_try_compile "$LINENO"; then :
4203 ac_cv_sys_file_offset_bits=no; break
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #define _FILE_OFFSET_BITS 64
4209 #include <sys/types.h>
4210 /* Check that off_t can represent 2**63 - 1 correctly.
4211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4212 since some C++ compilers masquerading as C compilers
4213 incorrectly reject 9223372036854775807. */
4214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4216 && LARGE_OFF_T % 2147483647 == 1)
4226 if ac_fn_c_try_compile "$LINENO"; then :
4227 ac_cv_sys_file_offset_bits=64; break
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 ac_cv_sys_file_offset_bits=unknown
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4235 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4236 case $ac_cv_sys_file_offset_bits in #(
4239 cat >>confdefs.h <<_ACEOF
4240 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4245 if test $ac_cv_sys_file_offset_bits = unknown; then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4247 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4248 if test "${ac_cv_sys_large_files+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #include <sys/types.h>
4255 /* Check that off_t can represent 2**63 - 1 correctly.
4256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4257 since some C++ compilers masquerading as C compilers
4258 incorrectly reject 9223372036854775807. */
4259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4261 && LARGE_OFF_T % 2147483647 == 1)
4271 if ac_fn_c_try_compile "$LINENO"; then :
4272 ac_cv_sys_large_files=no; break
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277 #define _LARGE_FILES 1
4278 #include <sys/types.h>
4279 /* Check that off_t can represent 2**63 - 1 correctly.
4280 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4281 since some C++ compilers masquerading as C compilers
4282 incorrectly reject 9223372036854775807. */
4283 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4284 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4285 && LARGE_OFF_T % 2147483647 == 1)
4295 if ac_fn_c_try_compile "$LINENO"; then :
4296 ac_cv_sys_large_files=1; break
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_cv_sys_large_files=unknown
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4304 $as_echo "$ac_cv_sys_large_files" >&6; }
4305 case $ac_cv_sys_large_files in #(
4308 cat >>confdefs.h <<_ACEOF
4309 #define _LARGE_FILES $ac_cv_sys_large_files
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4322 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4323 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4324 $as_echo_n "(cached) " >&6
4326 am_cv_prog_cc_stdc=no
4328 # Don't try gcc -ansi; that turns off useful extensions and
4329 # breaks some systems' header files.
4330 # AIX -qlanglvl=ansi
4331 # Ultrix and OSF/1 -std1
4332 # HP-UX 10.20 and later -Ae
4333 # HP-UX older versions -Aa -D_HPUX_SOURCE
4334 # SVR4 -Xc -D__EXTENSIONS__
4335 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4337 CC="$ac_save_CC $ac_arg"
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4342 #include <sys/types.h>
4343 #include <sys/stat.h>
4344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4345 struct buf { int x; };
4346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4347 static char *e (p, i)
4353 static char *f (char * (*g) (char **, int), char **p, ...)
4358 s = g (p, va_arg (v,int));
4362 int test (int i, double x);
4363 struct s1 {int (*f) (int a);};
4364 struct s2 {int (*f) (double a);};
4365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4379 if ac_fn_c_try_compile "$LINENO"; then :
4380 am_cv_prog_cc_stdc="$ac_arg"; break
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 if test -z "$am_cv_prog_cc_stdc"; then
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4390 $as_echo "none needed" >&6; }
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4393 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4395 case "x$am_cv_prog_cc_stdc" in
4397 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4400 # expand $ac_aux_dir to an absolute path
4401 am_aux_dir=`cd $ac_aux_dir && pwd`
4403 if test x"${install_sh}" != xset; then
4406 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4408 install_sh="\${SHELL} $am_aux_dir/install-sh"
4412 # Installed binaries are usually stripped using `strip' when the user
4413 # run `make install-strip'. However `strip' might not be the right
4414 # tool to use in cross-compilation environments, therefore Automake
4415 # will honor the `STRIP' environment variable to overrule this program.
4416 if test "$cross_compiling" != no; then
4417 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}strip; ac_word=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if test "${ac_cv_prog_STRIP+set}" = set; then :
4423 $as_echo_n "(cached) " >&6
4425 if test -n "$STRIP"; then
4426 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 STRIP=$ac_cv_prog_STRIP
4446 if test -n "$STRIP"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4448 $as_echo "$STRIP" >&6; }
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4456 if test -z "$ac_cv_prog_STRIP"; then
4458 # Extract the first word of "strip", so it can be a program name with args.
4459 set dummy strip; ac_word=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4465 if test -n "$ac_ct_STRIP"; then
4466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_STRIP="strip"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4486 if test -n "$ac_ct_STRIP"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4488 $as_echo "$ac_ct_STRIP" >&6; }
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4494 if test "x$ac_ct_STRIP" = x; then
4497 case $cross_compiling:$ac_tool_warned in
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4501 ac_tool_warned=yes ;;
4506 STRIP="$ac_cv_prog_STRIP"
4510 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4514 for ac_dir in .. "$srcdir"/..; do
4515 for ac_t in install-sh install.sh shtool; do
4516 if test -f "$ac_dir/$ac_t"; then
4518 ac_install_sh="$ac_aux_dir/$ac_t -c"
4523 if test -z "$ac_aux_dir"; then
4524 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4527 # These three variables are undocumented and unsupported,
4528 # and are intended to be withdrawn in a future Autoconf release.
4529 # They can cause serious problems if a builder's source tree is in a directory
4530 # whose full name contains unusual characters.
4531 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4532 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4533 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4537 test "$program_prefix" != NONE &&
4538 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4539 # Use a double $ so make ignores it.
4540 test "$program_suffix" != NONE &&
4541 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4542 # Double any \ or $.
4543 # By default was `s,x,x', remove it if useless.
4544 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4545 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4548 # Dependency checking.
4549 rm -rf .tst 2>/dev/null
4550 mkdir .tst 2>/dev/null
4551 if test -d .tst; then
4556 rmdir .tst 2>/dev/null
4558 DEPDIR="${am__leading_dot}deps"
4560 ac_config_commands="$ac_config_commands depdir"
4563 depcc="$CC" am_compiler_list=
4565 am_depcomp=$ac_aux_dir/depcomp
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4567 $as_echo_n "checking dependency style of $depcc... " >&6; }
4568 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4571 if test -f "$am_depcomp"; then
4572 # We make a subdir and do the tests there. Otherwise we can end up
4573 # making bogus files that we don't know about and never remove. For
4574 # instance it was reported that on HP-UX the gcc test will end up
4575 # making a dummy file named `D' -- because `-MD' means `put the output
4578 # Copy depcomp to subdir because otherwise we won't find it if we're
4579 # using a relative directory.
4580 cp "$am_depcomp" conftest.dir
4582 # We will build objects and dependencies in a subdirectory because
4583 # it helps to detect inapplicable dependency modes. For instance
4584 # both Tru64's cc and ICC support -MD to output dependencies as a
4585 # side effect of compilation, but ICC will put the dependencies in
4586 # the current directory while Tru64 will put them in the object
4590 am_cv_CC_dependencies_compiler_type=none
4591 if test "$am_compiler_list" = ""; then
4592 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4594 for depmode in $am_compiler_list; do
4595 if test $depmode = none; then break; fi
4597 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4598 # Setup a source with many dependencies, because some compilers
4599 # like to wrap large dependency lists on column 80 (with \), and
4600 # we should not choose a depcomp mode which is confused by this.
4602 # We need to recreate these files for each test, as the compiler may
4603 # overwrite some of them when testing with obscure command lines.
4604 # This happens at least with the AIX C compiler.
4606 for i in 1 2 3 4 5 6; do
4607 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4608 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4609 # Solaris 8's {/usr,}/bin/sh.
4610 touch sub/conftst$i.h
4612 echo "include sub/conftest.Po" > confmf
4614 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4615 # mode. It turns out that the SunPro C++ compiler does not properly
4616 # handle `-M -o', and we need to detect this.
4617 depcmd="depmode=$depmode \
4618 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4619 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4620 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4621 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4622 if env $depcmd > conftest.err 2>&1 &&
4623 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4624 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4625 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4626 # icc doesn't choke on unknown options, it will just issue warnings
4627 # or remarks (even with -Werror). So we grep stderr for any message
4628 # that says an option was ignored or not supported.
4629 # When given -MP, icc 7.0 and 7.1 complain thusly:
4630 # icc: Command line warning: ignoring option '-M'; no argument required
4631 # The diagnosis changed in icc 8.0:
4632 # icc: Command line remark: option '-MP' not supported
4633 if (grep 'ignoring option' conftest.err ||
4634 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4635 am_cv_CC_dependencies_compiler_type=$depmode
4636 $as_echo "$as_me:$LINENO: success" >&5
4640 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4641 sed -e 's/^/| /' < conftest.err >&5
4647 am_cv_CC_dependencies_compiler_type=none
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4652 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4653 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4654 then as_fn_error "no usable dependency style found" "$LINENO" 5
4655 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4660 # Check for the 'make' the user wants to use.
4663 # Extract the first word of "$ac_prog", so it can be a program name with args.
4664 set dummy $ac_prog; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if test "${ac_cv_prog_MAKE+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4670 if test -n "$MAKE"; then
4671 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_MAKE="$ac_prog"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 MAKE=$ac_cv_prog_MAKE
4691 if test -n "$MAKE"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4693 $as_echo "$MAKE" >&6; }
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4700 test -n "$MAKE" && break
4704 case "`$MAKE --version 2>&1 | sed 1q`" in
4709 if test "$MAKE_IS_GNU" = yes; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4718 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4720 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4721 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4722 $as_echo_n "(cached) " >&6
4724 cat >conftest.make <<\_ACEOF
4727 @echo '@@@%%%=$(MAKE)=@@@%%%'
4729 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4730 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4732 eval ac_cv_prog_make_${ac_make}_set=yes;;
4734 eval ac_cv_prog_make_${ac_make}_set=no;;
4738 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4740 $as_echo "yes" >&6; }
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4745 SET_MAKE="MAKE=${MAKE-make}"
4749 # Configure gnulib. We need to build gnulib under some other
4750 # directory not "gnulib", to avoid the problem of both GDB and
4751 # GDBserver wanting to build it in the same directory, when building
4752 # in the source dir.
4755 in_build="build-gnulib"
4757 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4758 # so they do not pile up.
4759 ac_sub_configure_args=
4761 eval "set x $ac_configure_args"
4765 if test -n "$ac_prev"; then
4770 -cache-file | --cache-file | --cache-fil | --cache-fi \
4771 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4772 ac_prev=cache_file ;;
4773 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4774 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4777 --config-cache | -C)
4779 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4781 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4783 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4785 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4787 --disable-option-checking)
4791 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4793 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4797 # Always prepend --prefix to ensure using the same prefix
4798 # in subdir configurations.
4799 ac_arg="--prefix=$prefix"
4801 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4803 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4806 if test "$silent" = yes; then
4807 ac_sub_configure_args="--silent $ac_sub_configure_args"
4810 # Always prepend --disable-option-checking to silence warnings, since
4811 # different subdirs can have different --enable and --with options.
4812 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4817 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4818 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4819 $as_echo "$ac_msg" >&6
4820 as_dir="$ac_dir"; as_fn_mkdir_p
4824 ac_srcdir=$srcdir/$in_src ;;
4826 ac_srcdir=../$srcdir/$in_src ;;
4831 ac_sub_configure=$ac_srcdir/configure
4833 # Make the cache file name correct relative to the subdirectory.
4835 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4837 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4840 { $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
4841 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4842 # The eval makes quoting arguments work.
4843 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4844 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4845 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4861 # If we haven't got the data from the intl directory,
4862 # assume NLS is disabled.
4871 if test -f ../intl/config.intl; then
4872 . ../intl/config.intl
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4875 $as_echo_n "checking whether NLS is requested... " >&6; }
4876 if test x"$USE_NLS" != xyes; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4881 $as_echo "yes" >&6; }
4883 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4887 $as_echo_n "checking for catalogs to be installed... " >&6; }
4888 # Look for .po and .gmo files in the source directory.
4891 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4892 # If there aren't any .gmo files the shell will give us the
4893 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4895 case "$cat" in *\**)
4898 # The quadruple backslash is collapsed to a double backslash
4899 # by the backticks, then collapsed again by the double quotes,
4900 # leaving us with one backslash in the sed expression (right
4901 # before the dot that mustn't act as a wildcard).
4902 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4903 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4904 # The user is allowed to set LINGUAS to a list of languages to
4905 # install catalogs for. If it's empty that means "all of them."
4906 if test "x$LINGUAS" = x; then
4907 CATALOGS="$CATALOGS $cat"
4908 XLINGUAS="$XLINGUAS $lang"
4910 case "$LINGUAS" in *$lang*)
4911 CATALOGS="$CATALOGS $cat"
4912 XLINGUAS="$XLINGUAS $lang"
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4919 $as_echo "$LINGUAS" >&6; }
4932 localedir='${datadir}/locale'
4935 if test x"$USE_NLS" = xyes; then
4936 CONFIG_ALL="$CONFIG_ALL all-po"
4937 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4938 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4939 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4942 GNULIB=build-gnulib/import
4944 # For Makefile dependencies.
4946 if test x"$STDINT_H" != x; then
4947 GNULIB_STDINT_H=$GNULIB/$STDINT_H
4953 cat >>confdefs.h <<_ACEOF
4954 #define PACKAGE "$PACKAGE"
4959 # We never need to detect it in this sub-configure.
4960 # But preserve it for config.status --recheck.
4964 MAKEINFO_EXTRA_FLAGS=""
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4966 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4967 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4970 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4971 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4972 gdb_cv_have_makeinfo_click=yes
4974 gdb_cv_have_makeinfo_click=no
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4978 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4979 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
4980 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4986 # Check whether --with-separate-debug-dir was given.
4987 if test "${with_separate_debug_dir+set}" = set; then :
4988 withval=$with_separate_debug_dir;
4991 DEBUGDIR=${libdir}/debug
4995 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4997 ac_define_dir=`eval echo $DEBUGDIR`
4998 ac_define_dir=`eval echo $ac_define_dir`
5000 cat >>confdefs.h <<_ACEOF
5001 #define DEBUGDIR "$ac_define_dir"
5007 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5008 if test "x$prefix" = xNONE; then
5009 test_prefix=/usr/local
5014 test_prefix=$exec_prefix
5017 case ${ac_define_dir} in
5018 "${test_prefix}"|"${test_prefix}/"*|\
5019 '${exec_prefix}'|'${exec_prefix}/'*)
5024 cat >>confdefs.h <<_ACEOF
5025 #define DEBUGDIR_RELOCATABLE $value
5031 # We can't pass paths as command line arguments.
5032 # Mingw32 tries to be clever and will convert the paths for us.
5033 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5034 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5035 # This breaks GDB's relocatable path conversions since paths passed in
5036 # config.h would not get so translated, the path prefixes no longer match.
5038 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5039 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5040 ac_define_dir=`eval echo $bindir`
5041 ac_define_dir=`eval echo $ac_define_dir`
5043 cat >>confdefs.h <<_ACEOF
5044 #define BINDIR "$ac_define_dir"
5049 # GDB's datadir relocation
5053 # Check whether --with-gdb-datadir was given.
5054 if test "${with_gdb_datadir+set}" = set; then :
5055 withval=$with_gdb_datadir;
5056 GDB_DATADIR=$withval
5058 GDB_DATADIR=${datadir}/gdb
5062 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5063 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5064 ac_define_dir=`eval echo $GDB_DATADIR`
5065 ac_define_dir=`eval echo $ac_define_dir`
5067 cat >>confdefs.h <<_ACEOF
5068 #define GDB_DATADIR "$ac_define_dir"
5074 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5075 if test "x$prefix" = xNONE; then
5076 test_prefix=/usr/local
5081 test_prefix=$exec_prefix
5084 case ${ac_define_dir} in
5085 "${test_prefix}"|"${test_prefix}/"*|\
5086 '${exec_prefix}'|'${exec_prefix}/'*)
5091 cat >>confdefs.h <<_ACEOF
5092 #define GDB_DATADIR_RELOCATABLE $value
5099 # Check whether --with-relocated-sources was given.
5100 if test "${with_relocated_sources+set}" = set; then :
5101 withval=$with_relocated_sources; reloc_srcdir="${withval}"
5103 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5104 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5105 ac_define_dir=`eval echo $reloc_srcdir`
5106 ac_define_dir=`eval echo $ac_define_dir`
5108 cat >>confdefs.h <<_ACEOF
5109 #define RELOC_SRCDIR "$ac_define_dir"
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5118 $as_echo_n "checking for default auto-load directory... " >&6; }
5120 # Check whether --with-auto-load-dir was given.
5121 if test "${with_auto_load_dir+set}" = set; then :
5122 withval=$with_auto_load_dir;
5124 with_auto_load_dir='$debugdir:$datadir/auto-load'
5127 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5129 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5130 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5131 ac_define_dir=`eval echo $escape_dir`
5132 ac_define_dir=`eval echo $ac_define_dir`
5134 cat >>confdefs.h <<_ACEOF
5135 #define AUTO_LOAD_DIR "$ac_define_dir"
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5140 $as_echo "$with_auto_load_dir" >&6; }
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5143 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5145 # Check whether --with-auto-load-safe-path was given.
5146 if test "${with_auto_load_safe_path+set}" = set; then :
5147 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5148 with_auto_load_safe_path="/"
5151 with_auto_load_safe_path="$with_auto_load_dir"
5154 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5156 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5157 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5158 ac_define_dir=`eval echo $escape_dir`
5159 ac_define_dir=`eval echo $ac_define_dir`
5161 cat >>confdefs.h <<_ACEOF
5162 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5167 $as_echo "$with_auto_load_safe_path" >&6; }
5171 subdirs="$subdirs testsuite"
5174 # Check whether to support alternative target configurations
5175 # Check whether --enable-targets was given.
5176 if test "${enable_targets+set}" = set; then :
5177 enableval=$enable_targets; case "${enableval}" in
5178 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5180 no) enable_targets= ;;
5181 *) enable_targets=$enableval ;;
5186 # Check whether to enable 64-bit support on 32-bit hosts
5187 # Check whether --enable-64-bit-bfd was given.
5188 if test "${enable_64_bit_bfd+set}" = set; then :
5189 enableval=$enable_64_bit_bfd; case "${enableval}" in
5192 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5198 # Provide defaults for some variables set by the per-host and per-target
5200 gdb_host_obs=posix-hdep.o
5202 if test "${target}" = "${host}"; then
5208 . $srcdir/configure.host
5210 # Accumulate some settings from configure.tgt over all enabled targets
5214 HAVE_NATIVE_GCORE_TARGET=
5216 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5218 if test "$targ_alias" = "all"; then
5221 # Canonicalize the secondary target names.
5222 result=`$ac_config_sub $targ_alias 2>/dev/null`
5223 if test -n "$result"; then
5229 . ${srcdir}/configure.tgt
5231 if test -z "${gdb_target_obs}"; then :
5232 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5235 # Target-specific object files
5236 for i in ${gdb_target_obs}; do
5237 case " $TARGET_OBS " in
5240 TARGET_OBS="$TARGET_OBS ${i}"
5245 # Check whether this target needs 64-bit CORE_ADDR
5246 if test x${want64} = xfalse; then
5247 . ${srcdir}/../bfd/config.bfd
5250 # Check whether this target is native and supports gcore.
5251 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5252 && $gdb_have_gcore; then
5253 HAVE_NATIVE_GCORE_TARGET=1
5258 if test x${all_targets} = xtrue; then
5260 # We want all 64-bit targets if we either:
5261 # - run on a 64-bit host or
5262 # - already require 64-bit support for some other target or
5263 # - the --enable-64-bit-bfd option was supplied
5264 # Otherwise we only support all 32-bit targets.
5266 # NOTE: This test must be in sync with the corresponding
5269 if test x${want64} = xfalse; then
5270 # The cast to long int works around a bug in the HP C Compiler
5271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5273 # This bug is HP SR number 8606223364.
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5275 $as_echo_n "checking size of long... " >&6; }
5276 if test "${ac_cv_sizeof_long+set}" = set; then :
5277 $as_echo_n "(cached) " >&6
5279 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5282 if test "$ac_cv_type_long" = yes; then
5283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5285 { as_fn_set_status 77
5286 as_fn_error "cannot compute sizeof (long)
5287 See \`config.log' for more details." "$LINENO" 5; }; }
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5295 $as_echo "$ac_cv_sizeof_long" >&6; }
5299 cat >>confdefs.h <<_ACEOF
5300 #define SIZEOF_LONG $ac_cv_sizeof_long
5304 if test "x${ac_cv_sizeof_long}" = "x8"; then
5308 if test x${want64} = xtrue; then
5309 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5311 TARGET_OBS='$(ALL_TARGET_OBS)'
5318 # For other settings, only the main target counts.
5322 targ=$target; . ${srcdir}/configure.tgt
5324 # Fetch the default architecture and default target vector from BFD.
5325 targ=$target; . $srcdir/../bfd/config.bfd
5327 # We only want the first architecture, so strip off the others if
5328 # there is more than one.
5329 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5331 if test "x$targ_archs" != x; then
5333 cat >>confdefs.h <<_ACEOF
5334 #define DEFAULT_BFD_ARCH $targ_archs
5338 if test "x$targ_defvec" != x; then
5340 cat >>confdefs.h <<_ACEOF
5341 #define DEFAULT_BFD_VEC $targ_defvec
5346 # The CLI cannot be disabled yet, but may be in the future.
5349 # Check whether --enable-gdbcli was given.
5350 if test "${enable_gdbcli+set}" = set; then :
5351 enableval=$enable_gdbcli; case $enableval in
5355 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5357 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5363 if test x"$enable_gdbcli" = xyes; then
5364 if test -d $srcdir/cli; then
5365 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5366 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5367 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5368 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5373 # Check whether --enable-gdbmi was given.
5374 if test "${enable_gdbmi+set}" = set; then :
5375 enableval=$enable_gdbmi; case $enableval in
5379 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5385 if test x"$enable_gdbmi" = xyes; then
5386 if test -d $srcdir/mi; then
5387 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5388 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5389 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5390 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5395 # Check whether --enable-tui was given.
5396 if test "${enable_tui+set}" = set; then :
5397 enableval=$enable_tui; case $enableval in
5401 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5409 # Check whether --enable-gdbtk was given.
5410 if test "${enable_gdbtk+set}" = set; then :
5411 enableval=$enable_gdbtk; case $enableval in
5415 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5418 if test -d $srcdir/gdbtk; then
5425 # We unconditionally disable gdbtk tests on selected platforms.
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5429 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5433 # Libunwind support for ia64.
5436 # Check whether --with-libunwind-ia64 was given.
5437 if test "${with_libunwind_ia64+set}" = set; then :
5438 withval=$with_libunwind_ia64;
5440 with_libunwind_ia64=auto
5444 # Backward compatibility option.
5445 if test "${with_libunwind+set}" = set; then
5446 if test x"$with_libunwind_ia64" != xauto; then
5447 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5450 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5451 with_libunwind_ia64="$with_libunwind"
5454 case "$with_libunwind_ia64" in
5458 for ac_header in libunwind-ia64.h
5460 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5461 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5462 cat >>confdefs.h <<_ACEOF
5463 #define HAVE_LIBUNWIND_IA64_H 1
5470 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5473 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5477 if test x"$with_libunwind_ia64" = xyes; then
5478 for ac_header in libunwind-ia64.h
5480 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5481 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5482 cat >>confdefs.h <<_ACEOF
5483 #define HAVE_LIBUNWIND_IA64_H 1
5490 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5491 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5493 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5494 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5495 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5500 # Check whether --with-curses was given.
5501 if test "${with_curses+set}" = set; then :
5502 withval=$with_curses; opt_curses=$withval
5507 if test "$opt_curses" = "yes"; then
5511 # Profiling support.
5512 # Check whether --enable-profiling was given.
5513 if test "${enable_profiling+set}" = set; then :
5514 enableval=$enable_profiling; case $enableval in
5518 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5525 for ac_func in monstartup _mcleanup
5527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5529 eval as_val=\$$as_ac_var
5530 if test "x$as_val" = x""yes; then :
5531 cat >>confdefs.h <<_ACEOF
5532 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5539 $as_echo_n "checking for _etext... " >&6; }
5540 if test "${ac_cv_var__etext+set}" = set; then :
5541 $as_echo_n "(cached) " >&6
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5556 if ac_fn_c_try_link "$LINENO"; then :
5557 ac_cv_var__etext=yes
5561 rm -f core conftest.err conftest.$ac_objext \
5562 conftest$ac_exeext conftest.$ac_ext
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5565 $as_echo "$ac_cv_var__etext" >&6; }
5566 if test $ac_cv_var__etext = yes; then
5568 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5572 $as_echo_n "checking for etext... " >&6; }
5573 if test "${ac_cv_var_etext+set}" = set; then :
5574 $as_echo_n "(cached) " >&6
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5589 if ac_fn_c_try_link "$LINENO"; then :
5594 rm -f core conftest.err conftest.$ac_objext \
5595 conftest$ac_exeext conftest.$ac_ext
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5598 $as_echo "$ac_cv_var_etext" >&6; }
5599 if test $ac_cv_var_etext = yes; then
5601 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5604 if test "$enable_profiling" = yes ; then
5605 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5606 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5609 OLD_CFLAGS="$CFLAGS"
5610 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5613 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5614 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5615 $as_echo_n "(cached) " >&6
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629 ac_cv_cc_supports_pg=yes
5631 ac_cv_cc_supports_pg=no
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5636 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5638 if test $ac_cv_cc_supports_pg = no; then
5639 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5642 CFLAGS="$OLD_CFLAGS"
5647 # Check whether --with-pkgversion was given.
5648 if test "${with_pkgversion+set}" = set; then :
5649 withval=$with_pkgversion; case "$withval" in
5650 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5652 *) PKGVERSION="($withval) " ;;
5663 # Check whether --with-bugurl was given.
5664 if test "${with_bugurl+set}" = set; then :
5665 withval=$with_bugurl; case "$withval" in
5666 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5669 *) BUGURL="$withval"
5673 BUGURL="http://www.gnu.org/software/gdb/bugs/"
5683 REPORT_BUGS_TO="<$BUGURL>"
5684 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5691 cat >>confdefs.h <<_ACEOF
5692 #define PKGVERSION "$PKGVERSION"
5696 cat >>confdefs.h <<_ACEOF
5697 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5701 # --------------------- #
5702 # Checks for programs. #
5703 # --------------------- #
5705 for ac_prog in gawk mawk nawk awk
5707 # Extract the first word of "$ac_prog", so it can be a program name with args.
5708 set dummy $ac_prog; ac_word=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if test "${ac_cv_prog_AWK+set}" = set; then :
5712 $as_echo_n "(cached) " >&6
5714 if test -n "$AWK"; then
5715 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_prog_AWK="$ac_prog"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 if test -n "$AWK"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5737 $as_echo "$AWK" >&6; }
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5744 test -n "$AWK" && break
5747 # Find a good install program. We prefer a C program (faster),
5748 # so one script is as good as another. But avoid the broken or
5749 # incompatible versions:
5750 # SysV /etc/install, /usr/sbin/install
5751 # SunOS /usr/etc/install
5752 # IRIX /sbin/install
5754 # AmigaOS /C/install, which installs bootblocks on floppy discs
5755 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5756 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5757 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5758 # OS/2's system install, which has a completely different semantic
5759 # ./install, which can be erroneously created by make from ./install.sh.
5760 # Reject install programs that cannot install multiple files.
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5762 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5763 if test -z "$INSTALL"; then
5764 if test "${ac_cv_path_install+set}" = set; then :
5765 $as_echo_n "(cached) " >&6
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 test -z "$as_dir" && as_dir=.
5772 # Account for people who put trailing slashes in PATH elements.
5773 case $as_dir/ in #((
5774 ./ | .// | /[cC]/* | \
5775 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5776 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5779 # OSF1 and SCO ODT 3.0 have their own names for install.
5780 # Don't use installbsd from OSF since it installs stuff as root
5782 for ac_prog in ginstall scoinst install; do
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5785 if test $ac_prog = install &&
5786 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5787 # AIX install. It has an incompatible calling convention.
5789 elif test $ac_prog = install &&
5790 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5791 # program-specific install script used by HP pwplus--don't use.
5794 rm -rf conftest.one conftest.two conftest.dir
5795 echo one > conftest.one
5796 echo two > conftest.two
5798 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5799 test -s conftest.one && test -s conftest.two &&
5800 test -s conftest.dir/conftest.one &&
5801 test -s conftest.dir/conftest.two
5803 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5816 rm -rf conftest.one conftest.two conftest.dir
5819 if test "${ac_cv_path_install+set}" = set; then
5820 INSTALL=$ac_cv_path_install
5822 # As a last resort, use the slow shell script. Don't cache a
5823 # value for INSTALL within a source directory, because that will
5824 # break other packages using the cache if that directory is
5825 # removed, or if the value is a relative name.
5826 INSTALL=$ac_install_sh
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5830 $as_echo "$INSTALL" >&6; }
5832 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5833 # It thinks the first close brace ends the variable substitution.
5834 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5836 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5838 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5841 $as_echo_n "checking whether ln -s works... " >&6; }
5843 if test "$LN_S" = "ln -s"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5845 $as_echo "yes" >&6; }
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5848 $as_echo "no, using $LN_S" >&6; }
5851 if test -n "$ac_tool_prefix"; then
5852 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5853 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855 $as_echo_n "checking for $ac_word... " >&6; }
5856 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5857 $as_echo_n "(cached) " >&6
5859 if test -n "$RANLIB"; then
5860 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5869 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 RANLIB=$ac_cv_prog_RANLIB
5880 if test -n "$RANLIB"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5882 $as_echo "$RANLIB" >&6; }
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5890 if test -z "$ac_cv_prog_RANLIB"; then
5891 ac_ct_RANLIB=$RANLIB
5892 # Extract the first word of "ranlib", so it can be a program name with args.
5893 set dummy ranlib; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5897 $as_echo_n "(cached) " >&6
5899 if test -n "$ac_ct_RANLIB"; then
5900 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909 ac_cv_prog_ac_ct_RANLIB="ranlib"
5910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5920 if test -n "$ac_ct_RANLIB"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5922 $as_echo "$ac_ct_RANLIB" >&6; }
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5928 if test "x$ac_ct_RANLIB" = x; then
5931 case $cross_compiling:$ac_tool_warned in
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5935 ac_tool_warned=yes ;;
5937 RANLIB=$ac_ct_RANLIB
5940 RANLIB="$ac_cv_prog_RANLIB"
5943 for ac_prog in 'bison -y' byacc
5945 # Extract the first word of "$ac_prog", so it can be a program name with args.
5946 set dummy $ac_prog; ac_word=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if test "${ac_cv_prog_YACC+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5952 if test -n "$YACC"; then
5953 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_YACC="$ac_prog"
5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 YACC=$ac_cv_prog_YACC
5973 if test -n "$YACC"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5975 $as_echo "$YACC" >&6; }
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5982 test -n "$YACC" && break
5984 test -n "$YACC" || YACC="yacc"
5987 if test -n "$ac_tool_prefix"; then
5988 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5989 set dummy ${ac_tool_prefix}ar; ac_word=$2
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991 $as_echo_n "checking for $ac_word... " >&6; }
5992 if test "${ac_cv_prog_AR+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5995 if test -n "$AR"; then
5996 ac_cv_prog_AR="$AR" # Let the user override the test.
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6005 ac_cv_prog_AR="${ac_tool_prefix}ar"
6006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 if test -n "$AR"; then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6018 $as_echo "$AR" >&6; }
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021 $as_echo "no" >&6; }
6026 if test -z "$ac_cv_prog_AR"; then
6028 # Extract the first word of "ar", so it can be a program name with args.
6029 set dummy ar; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6033 $as_echo_n "(cached) " >&6
6035 if test -n "$ac_ct_AR"; then
6036 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_prog_ac_ct_AR="ar"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6056 if test -n "$ac_ct_AR"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6058 $as_echo "$ac_ct_AR" >&6; }
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6064 if test "x$ac_ct_AR" = x; then
6067 case $cross_compiling:$ac_tool_warned in
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6071 ac_tool_warned=yes ;;
6079 if test -n "$ac_tool_prefix"; then
6080 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6081 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083 $as_echo_n "checking for $ac_word... " >&6; }
6084 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6085 $as_echo_n "(cached) " >&6
6087 if test -n "$DLLTOOL"; then
6088 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6097 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 DLLTOOL=$ac_cv_prog_DLLTOOL
6108 if test -n "$DLLTOOL"; then
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6110 $as_echo "$DLLTOOL" >&6; }
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113 $as_echo "no" >&6; }
6118 if test -z "$ac_cv_prog_DLLTOOL"; then
6119 ac_ct_DLLTOOL=$DLLTOOL
6120 # Extract the first word of "dlltool", so it can be a program name with args.
6121 set dummy dlltool; ac_word=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6125 $as_echo_n "(cached) " >&6
6127 if test -n "$ac_ct_DLLTOOL"; then
6128 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6137 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6148 if test -n "$ac_ct_DLLTOOL"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6150 $as_echo "$ac_ct_DLLTOOL" >&6; }
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6156 if test "x$ac_ct_DLLTOOL" = x; then
6159 case $cross_compiling:$ac_tool_warned in
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6163 ac_tool_warned=yes ;;
6165 DLLTOOL=$ac_ct_DLLTOOL
6168 DLLTOOL="$ac_cv_prog_DLLTOOL"
6171 if test -n "$ac_tool_prefix"; then
6172 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6173 set dummy ${ac_tool_prefix}windres; ac_word=$2
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175 $as_echo_n "checking for $ac_word... " >&6; }
6176 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6179 if test -n "$WINDRES"; then
6180 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6189 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 WINDRES=$ac_cv_prog_WINDRES
6200 if test -n "$WINDRES"; then
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6202 $as_echo "$WINDRES" >&6; }
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205 $as_echo "no" >&6; }
6210 if test -z "$ac_cv_prog_WINDRES"; then
6211 ac_ct_WINDRES=$WINDRES
6212 # Extract the first word of "windres", so it can be a program name with args.
6213 set dummy windres; ac_word=$2
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215 $as_echo_n "checking for $ac_word... " >&6; }
6216 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6217 $as_echo_n "(cached) " >&6
6219 if test -n "$ac_ct_WINDRES"; then
6220 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229 ac_cv_prog_ac_ct_WINDRES="windres"
6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6240 if test -n "$ac_ct_WINDRES"; then
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6242 $as_echo "$ac_ct_WINDRES" >&6; }
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245 $as_echo "no" >&6; }
6248 if test "x$ac_ct_WINDRES" = x; then
6251 case $cross_compiling:$ac_tool_warned in
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6255 ac_tool_warned=yes ;;
6257 WINDRES=$ac_ct_WINDRES
6260 WINDRES="$ac_cv_prog_WINDRES"
6266 # Needed for GNU Hurd hosts.
6267 if test -n "$ac_tool_prefix"; then
6268 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6269 set dummy ${ac_tool_prefix}mig; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if test "${ac_cv_prog_MIG+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6275 if test -n "$MIG"; then
6276 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 if test -n "$MIG"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6298 $as_echo "$MIG" >&6; }
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6306 if test -z "$ac_cv_prog_MIG"; then
6308 # Extract the first word of "mig", so it can be a program name with args.
6309 set dummy mig; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
6315 if test -n "$ac_ct_MIG"; then
6316 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325 ac_cv_prog_ac_ct_MIG="mig"
6326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6336 if test -n "$ac_ct_MIG"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6338 $as_echo "$ac_ct_MIG" >&6; }
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6344 if test "x$ac_ct_MIG" = x; then
6347 case $cross_compiling:$ac_tool_warned in
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6351 ac_tool_warned=yes ;;
6356 MIG="$ac_cv_prog_MIG"
6359 if test x"$MIG" = x; then
6360 as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
6365 # ---------------------- #
6366 # Checks for libraries. #
6367 # ---------------------- #
6369 # We might need to link with -lm; most simulators need it.
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6371 $as_echo_n "checking for main in -lm... " >&6; }
6372 if test "${ac_cv_lib_m_main+set}" = set; then :
6373 $as_echo_n "(cached) " >&6
6375 ac_check_lib_save_LIBS=$LIBS
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6389 if ac_fn_c_try_link "$LINENO"; then :
6390 ac_cv_lib_m_main=yes
6394 rm -f core conftest.err conftest.$ac_objext \
6395 conftest$ac_exeext conftest.$ac_ext
6396 LIBS=$ac_check_lib_save_LIBS
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6399 $as_echo "$ac_cv_lib_m_main" >&6; }
6400 if test "x$ac_cv_lib_m_main" = x""yes; then :
6401 cat >>confdefs.h <<_ACEOF
6410 # We need to link with -lw to get `wctype' on Solaris before Solaris
6411 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6412 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6413 # is known to have this problem). Therefore we avoid libw if we can.
6414 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6415 if test "x$ac_cv_func_wctype" = x""yes; then :
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6419 $as_echo_n "checking for wctype in -lw... " >&6; }
6420 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6423 ac_check_lib_save_LIBS=$LIBS
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6428 /* Override any GCC internal prototype to avoid an error.
6429 Use char because int might match the return type of a GCC
6430 builtin and then its argument prototype would still apply. */
6443 if ac_fn_c_try_link "$LINENO"; then :
6444 ac_cv_lib_w_wctype=yes
6446 ac_cv_lib_w_wctype=no
6448 rm -f core conftest.err conftest.$ac_objext \
6449 conftest$ac_exeext conftest.$ac_ext
6450 LIBS=$ac_check_lib_save_LIBS
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6453 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6454 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6455 cat >>confdefs.h <<_ACEOF
6466 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6468 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6469 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6470 $as_echo_n "(cached) " >&6
6472 ac_func_search_save_LIBS=$LIBS
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6476 /* Override any GCC internal prototype to avoid an error.
6477 Use char because int might match the return type of a GCC
6478 builtin and then its argument prototype would still apply. */
6482 char gethostbyname ();
6486 return gethostbyname ();
6491 for ac_lib in '' nsl; do
6492 if test -z "$ac_lib"; then
6493 ac_res="none required"
6496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6498 if ac_fn_c_try_link "$LINENO"; then :
6499 ac_cv_search_gethostbyname=$ac_res
6501 rm -f core conftest.err conftest.$ac_objext \
6503 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6507 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6510 ac_cv_search_gethostbyname=no
6513 LIBS=$ac_func_search_save_LIBS
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6516 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6517 ac_res=$ac_cv_search_gethostbyname
6518 if test "$ac_res" != no; then :
6519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6524 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6526 $as_echo_n "checking for library containing socketpair... " >&6; }
6527 if test "${ac_cv_search_socketpair+set}" = set; then :
6528 $as_echo_n "(cached) " >&6
6530 ac_func_search_save_LIBS=$LIBS
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6534 /* Override any GCC internal prototype to avoid an error.
6535 Use char because int might match the return type of a GCC
6536 builtin and then its argument prototype would still apply. */
6544 return socketpair ();
6549 for ac_lib in '' socket; do
6550 if test -z "$ac_lib"; then
6551 ac_res="none required"
6554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6556 if ac_fn_c_try_link "$LINENO"; then :
6557 ac_cv_search_socketpair=$ac_res
6559 rm -f core conftest.err conftest.$ac_objext \
6561 if test "${ac_cv_search_socketpair+set}" = set; then :
6565 if test "${ac_cv_search_socketpair+set}" = set; then :
6568 ac_cv_search_socketpair=no
6571 LIBS=$ac_func_search_save_LIBS
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6574 $as_echo "$ac_cv_search_socketpair" >&6; }
6575 ac_res=$ac_cv_search_socketpair
6576 if test "$ac_res" != no; then :
6577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6582 # Link in zlib if we can. This allows us to read compressed debug sections.
6584 # See if the user specified whether he wants zlib support or not.
6586 # Check whether --with-zlib was given.
6587 if test "${with_zlib+set}" = set; then :
6594 if test "$with_zlib" != "no"; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6596 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6597 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6598 $as_echo_n "(cached) " >&6
6600 ac_func_search_save_LIBS=$LIBS
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6604 /* Override any GCC internal prototype to avoid an error.
6605 Use char because int might match the return type of a GCC
6606 builtin and then its argument prototype would still apply. */
6610 char zlibVersion ();
6614 return zlibVersion ();
6619 for ac_lib in '' z; do
6620 if test -z "$ac_lib"; then
6621 ac_res="none required"
6624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6626 if ac_fn_c_try_link "$LINENO"; then :
6627 ac_cv_search_zlibVersion=$ac_res
6629 rm -f core conftest.err conftest.$ac_objext \
6631 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6635 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6638 ac_cv_search_zlibVersion=no
6641 LIBS=$ac_func_search_save_LIBS
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6644 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6645 ac_res=$ac_cv_search_zlibVersion
6646 if test "$ac_res" != no; then :
6647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6648 for ac_header in zlib.h
6650 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6651 if test "x$ac_cv_header_zlib_h" = x""yes; then :
6652 cat >>confdefs.h <<_ACEOF
6653 #define HAVE_ZLIB_H 1
6662 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6663 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6668 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6670 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6671 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6672 $as_echo_n "(cached) " >&6
6674 ac_func_search_save_LIBS=$LIBS
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6678 /* Override any GCC internal prototype to avoid an error.
6679 Use char because int might match the return type of a GCC
6680 builtin and then its argument prototype would still apply. */
6684 char dlgetmodinfo ();
6688 return dlgetmodinfo ();
6693 for ac_lib in '' dl xpdl; do
6694 if test -z "$ac_lib"; then
6695 ac_res="none required"
6698 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6700 if ac_fn_c_try_link "$LINENO"; then :
6701 ac_cv_search_dlgetmodinfo=$ac_res
6703 rm -f core conftest.err conftest.$ac_objext \
6705 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6709 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6712 ac_cv_search_dlgetmodinfo=no
6715 LIBS=$ac_func_search_save_LIBS
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6718 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6719 ac_res=$ac_cv_search_dlgetmodinfo
6720 if test "$ac_res" != no; then :
6721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6729 # Check whether --with-libiconv-prefix was given.
6730 if test "${with_libiconv_prefix+set}" = set; then :
6731 withval=$with_libiconv_prefix;
6732 for dir in `echo "$withval" | tr : ' '`; do
6733 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
6734 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
6740 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
6741 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6744 $as_echo_n "checking for iconv... " >&6; }
6745 if test "${am_cv_func_iconv+set}" = set; then :
6746 $as_echo_n "(cached) " >&6
6749 am_cv_func_iconv="no, consider installing GNU libiconv"
6751 am_cv_use_build_libiconv=no
6752 am_cv_build_libiconv_path=
6754 # If libiconv is part of the build tree, then try using it over
6756 if test -d ../libiconv; then
6757 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
6758 am_save_LIBS="$LIBS"
6759 am_save_CPPFLAGS="$CPPFLAGS"
6760 LIBS="$LIBS $lib_dir/libiconv.a"
6761 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6769 iconv_t cd = iconv_open("","");
6770 iconv(cd,NULL,NULL,NULL,NULL);
6776 if ac_fn_c_try_link "$LINENO"; then :
6777 am_cv_use_build_libiconv=yes
6778 am_cv_build_libiconv_path=$lib_dir/libiconv.a
6780 am_cv_func_iconv=yes
6782 rm -f core conftest.err conftest.$ac_objext \
6783 conftest$ac_exeext conftest.$ac_ext
6784 LIBS="$am_save_LIBS"
6785 CPPFLAGS="$am_save_CPPFLAGS"
6786 if test "$am_cv_use_build_libiconv" = "yes"; then
6792 # Next, try to find iconv in libc.
6793 if test "$am_cv_func_iconv" != yes; then
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6801 iconv_t cd = iconv_open("","");
6802 iconv(cd,NULL,NULL,NULL,NULL);
6808 if ac_fn_c_try_link "$LINENO"; then :
6809 am_cv_func_iconv=yes
6811 rm -f core conftest.err conftest.$ac_objext \
6812 conftest$ac_exeext conftest.$ac_ext
6815 # If iconv was not in libc, try -liconv. In this case, arrange to
6816 # look in the libiconv prefix, if it was specified by the user.
6817 if test "$am_cv_func_iconv" != yes; then
6818 am_save_CPPFLAGS="$CPPFLAGS"
6819 am_save_LIBS="$LIBS"
6820 if test -n "$LIBICONV_INCLUDE"; then
6821 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6822 LIBS="$LIBS $LIBICONV_LIBDIR"
6824 LIBS="$LIBS -liconv"
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6832 iconv_t cd = iconv_open("","");
6833 iconv(cd,NULL,NULL,NULL,NULL);
6839 if ac_fn_c_try_link "$LINENO"; then :
6841 am_cv_func_iconv=yes
6843 rm -f core conftest.err conftest.$ac_objext \
6844 conftest$ac_exeext conftest.$ac_ext
6845 LIBS="$am_save_LIBS"
6846 CPPFLAGS="$am_save_CPPFLAGS"
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6851 $as_echo "$am_cv_func_iconv" >&6; }
6853 # Set the various flags based on the cache variables. We can't rely
6854 # on the flags to remain set from the above code, due to caching.
6856 if test "$am_cv_lib_iconv" = yes; then
6862 if test "$am_cv_use_build_libiconv" = yes; then
6863 LIBICONV="$am_cv_build_libiconv_path"
6865 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
6867 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6868 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6870 if test "$am_cv_func_iconv" = yes; then
6872 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6875 $as_echo_n "checking for iconv declaration... " >&6; }
6876 if test "${am_cv_proto_iconv+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6889 #if defined(__STDC__) || defined(__cplusplus)
6890 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6903 if ac_fn_c_try_compile "$LINENO"; then :
6904 am_cv_proto_iconv_arg1=""
6906 am_cv_proto_iconv_arg1="const"
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 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);"
6912 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6914 }$am_cv_proto_iconv" >&5
6916 }$am_cv_proto_iconv" >&6; }
6918 cat >>confdefs.h <<_ACEOF
6919 #define ICONV_CONST $am_cv_proto_iconv_arg1
6925 # GDB may fork/exec the iconv program to get the list of supported character
6926 # sets. Allow the user to specify where to find it.
6927 # There are several factors affecting the choice of option name:
6928 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6929 # the build-time location of libiconv files.
6930 # - The program we need to find is iconv, which comes with glibc. The user
6931 # doesn't necessarily have libiconv installed. Therefore naming this
6932 # --with-libiconv-foo feels wrong.
6933 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6934 # defined to work on directories not files (though it really doesn't know
6936 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6937 # with --with-libiconv-prefix.
6938 # Putting these together is why the option name is --with-iconv-bin.
6941 # Check whether --with-iconv-bin was given.
6942 if test "${with_iconv_bin+set}" = set; then :
6943 withval=$with_iconv_bin; iconv_bin="${withval}"
6945 cat >>confdefs.h <<_ACEOF
6946 #define ICONV_BIN "${iconv_bin}"
6950 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6951 if test "x$prefix" = xNONE; then
6952 test_prefix=/usr/local
6957 test_prefix=$exec_prefix
6960 case ${iconv_bin} in
6961 "${test_prefix}"|"${test_prefix}/"*|\
6962 '${exec_prefix}'|'${exec_prefix}/'*)
6967 cat >>confdefs.h <<_ACEOF
6968 #define ICONV_BIN_RELOCATABLE $value
6976 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6977 # There is a very specific comment in /usr/include/curses.h explaining that
6978 # termcap routines built into libcurses must not be used.
6980 # The symptoms we observed so far is GDB unexpectedly changing
6981 # the terminal settings when tgetent is called - this is particularly
6982 # visible as the output is missing carriage returns, and so rapidly
6983 # becomes very hard to read.
6985 # The readline configure script has already decided that libtermcap
6986 # was enough for its purposes, and so decided to build readline using
6987 # libtermcap. Since the TUI mode requires curses, building GDB with
6988 # TUI enabled results in both libraries to be used at the same time,
6989 # which is not allowed. This basically means that GDB with TUI is
6990 # broken on alpha-osf.
6994 if test x"$enable_tui" = xyes; then
6995 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6997 if test x"$enable_tui" = xauto; then
7003 # For the TUI, we need enhanced curses functionality.
7004 if test x"$enable_tui" != xno; then
7009 if test x"$prefer_curses" = xyes; then
7010 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7011 # curses library because the latter might not provide all the
7012 # functionality we need. However, this leads to problems on systems
7013 # where the linker searches /usr/local/lib, but the compiler doesn't
7014 # search /usr/local/include, if ncurses is installed in /usr/local. A
7015 # default installation of ncurses on alpha*-dec-osf* will lead to such
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7018 $as_echo_n "checking for library containing waddstr... " >&6; }
7019 if test "${ac_cv_search_waddstr+set}" = set; then :
7020 $as_echo_n "(cached) " >&6
7022 ac_func_search_save_LIBS=$LIBS
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7026 /* Override any GCC internal prototype to avoid an error.
7027 Use char because int might match the return type of a GCC
7028 builtin and then its argument prototype would still apply. */
7041 for ac_lib in '' ncurses cursesX curses; do
7042 if test -z "$ac_lib"; then
7043 ac_res="none required"
7046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7048 if ac_fn_c_try_link "$LINENO"; then :
7049 ac_cv_search_waddstr=$ac_res
7051 rm -f core conftest.err conftest.$ac_objext \
7053 if test "${ac_cv_search_waddstr+set}" = set; then :
7057 if test "${ac_cv_search_waddstr+set}" = set; then :
7060 ac_cv_search_waddstr=no
7063 LIBS=$ac_func_search_save_LIBS
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7066 $as_echo "$ac_cv_search_waddstr" >&6; }
7067 ac_res=$ac_cv_search_waddstr
7068 if test "$ac_res" != no; then :
7069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7074 if test "$ac_cv_search_waddstr" != no; then
7079 # Check whether we should enable the TUI, but only do so if we really
7081 if test x"$enable_tui" != xno; then
7082 if test -d $srcdir/tui; then
7083 if test "$curses_found" != no; then
7084 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7085 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7086 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7087 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7089 if test x"$enable_tui" = xyes; then
7090 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7093 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7099 # Since GDB uses Readline, we need termcap functionality. In many
7100 # cases this will be provided by the curses library, but some systems
7101 # have a seperate termcap library, or no curses library at all.
7105 if test -d $srcdir/libtermcap; then
7106 LIBS="../libtermcap/libtermcap.a $LIBS"
7107 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
7110 ac_cv_search_tgetent="none required"
7113 ac_cv_search_tgetent="none required"
7114 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
7118 # These are the libraries checked by Readline.
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7120 $as_echo_n "checking for library containing tgetent... " >&6; }
7121 if test "${ac_cv_search_tgetent+set}" = set; then :
7122 $as_echo_n "(cached) " >&6
7124 ac_func_search_save_LIBS=$LIBS
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7128 /* Override any GCC internal prototype to avoid an error.
7129 Use char because int might match the return type of a GCC
7130 builtin and then its argument prototype would still apply. */
7143 for ac_lib in '' termcap tinfo curses ncurses; do
7144 if test -z "$ac_lib"; then
7145 ac_res="none required"
7148 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7150 if ac_fn_c_try_link "$LINENO"; then :
7151 ac_cv_search_tgetent=$ac_res
7153 rm -f core conftest.err conftest.$ac_objext \
7155 if test "${ac_cv_search_tgetent+set}" = set; then :
7159 if test "${ac_cv_search_tgetent+set}" = set; then :
7162 ac_cv_search_tgetent=no
7165 LIBS=$ac_func_search_save_LIBS
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7168 $as_echo "$ac_cv_search_tgetent" >&6; }
7169 ac_res=$ac_cv_search_tgetent
7170 if test "$ac_res" != no; then :
7171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7176 if test "$ac_cv_search_tgetent" = no; then
7177 as_fn_error "no termcap library found" "$LINENO" 5
7181 # Check whether --with-system-readline was given.
7182 if test "${with_system_readline+set}" = set; then :
7183 withval=$with_system_readline;
7187 if test "$with_system_readline" = yes; then
7191 READLINE_TEXI_INCFLAG=
7193 READLINE='$(READLINE_DIR)/libreadline.a'
7194 READLINE_DEPS='$(READLINE)'
7195 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7196 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
7203 # Generate jit-reader.h
7205 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7208 # The cast to long int works around a bug in the HP C Compiler
7209 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7210 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7211 # This bug is HP SR number 8606223364.
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7213 $as_echo_n "checking size of unsigned long long... " >&6; }
7214 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
7217 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7220 if test "$ac_cv_type_unsigned_long_long" = yes; then
7221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7223 { as_fn_set_status 77
7224 as_fn_error "cannot compute sizeof (unsigned long long)
7225 See \`config.log' for more details." "$LINENO" 5; }; }
7227 ac_cv_sizeof_unsigned_long_long=0
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7233 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7237 cat >>confdefs.h <<_ACEOF
7238 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7242 # The cast to long int works around a bug in the HP C Compiler
7243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7245 # This bug is HP SR number 8606223364.
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7247 $as_echo_n "checking size of unsigned long... " >&6; }
7248 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7249 $as_echo_n "(cached) " >&6
7251 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7254 if test "$ac_cv_type_unsigned_long" = yes; then
7255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7257 { as_fn_set_status 77
7258 as_fn_error "cannot compute sizeof (unsigned long)
7259 See \`config.log' for more details." "$LINENO" 5; }; }
7261 ac_cv_sizeof_unsigned_long=0
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7267 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7271 cat >>confdefs.h <<_ACEOF
7272 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7276 # The cast to long int works around a bug in the HP C Compiler
7277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7279 # This bug is HP SR number 8606223364.
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7281 $as_echo_n "checking size of unsigned __int128... " >&6; }
7282 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
7285 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7288 if test "$ac_cv_type_unsigned___int128" = yes; then
7289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7291 { as_fn_set_status 77
7292 as_fn_error "cannot compute sizeof (unsigned __int128)
7293 See \`config.log' for more details." "$LINENO" 5; }; }
7295 ac_cv_sizeof_unsigned___int128=0
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7301 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7305 cat >>confdefs.h <<_ACEOF
7306 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7311 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7312 TARGET_PTR="unsigned long"
7313 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7314 TARGET_PTR="unsigned long long"
7315 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7316 TARGET_PTR="unsigned __int128"
7318 TARGET_PTR="unsigned long"
7322 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7326 $as_echo_n "checking for library containing dlopen... " >&6; }
7327 if test "${ac_cv_search_dlopen+set}" = set; then :
7328 $as_echo_n "(cached) " >&6
7330 ac_func_search_save_LIBS=$LIBS
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7334 /* Override any GCC internal prototype to avoid an error.
7335 Use char because int might match the return type of a GCC
7336 builtin and then its argument prototype would still apply. */
7349 for ac_lib in '' dl; do
7350 if test -z "$ac_lib"; then
7351 ac_res="none required"
7354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7356 if ac_fn_c_try_link "$LINENO"; then :
7357 ac_cv_search_dlopen=$ac_res
7359 rm -f core conftest.err conftest.$ac_objext \
7361 if test "${ac_cv_search_dlopen+set}" = set; then :
7365 if test "${ac_cv_search_dlopen+set}" = set; then :
7368 ac_cv_search_dlopen=no
7371 LIBS=$ac_func_search_save_LIBS
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7374 $as_echo "$ac_cv_search_dlopen" >&6; }
7375 ac_res=$ac_cv_search_dlopen
7376 if test "$ac_res" != no; then :
7377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7384 # Check whether --with-jit-reader-dir was given.
7385 if test "${with_jit_reader_dir+set}" = set; then :
7386 withval=$with_jit_reader_dir;
7387 JIT_READER_DIR=$withval
7389 JIT_READER_DIR=${libdir}/gdb
7393 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7394 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7395 ac_define_dir=`eval echo $JIT_READER_DIR`
7396 ac_define_dir=`eval echo $ac_define_dir`
7398 cat >>confdefs.h <<_ACEOF
7399 #define JIT_READER_DIR "$ac_define_dir"
7405 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7406 if test "x$prefix" = xNONE; then
7407 test_prefix=/usr/local
7412 test_prefix=$exec_prefix
7415 case ${ac_define_dir} in
7416 "${test_prefix}"|"${test_prefix}/"*|\
7417 '${exec_prefix}'|'${exec_prefix}/'*)
7422 cat >>confdefs.h <<_ACEOF
7423 #define JIT_READER_DIR_RELOCATABLE $value
7430 # Check whether --with-expat was given.
7431 if test "${with_expat+set}" = set; then :
7432 withval=$with_expat;
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7438 $as_echo_n "checking whether to use expat... " >&6; }
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7440 $as_echo "$with_expat" >&6; }
7442 if test "${with_expat}" = no; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7444 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7448 if test "X$prefix" = "XNONE"; then
7449 acl_final_prefix="$ac_default_prefix"
7451 acl_final_prefix="$prefix"
7453 if test "X$exec_prefix" = "XNONE"; then
7454 acl_final_exec_prefix='${prefix}'
7456 acl_final_exec_prefix="$exec_prefix"
7458 acl_save_prefix="$prefix"
7459 prefix="$acl_final_prefix"
7460 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7461 prefix="$acl_save_prefix"
7464 # Check whether --with-gnu-ld was given.
7465 if test "${with_gnu_ld+set}" = set; then :
7466 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7471 # Prepare PATH_SEPARATOR.
7472 # The user is always right.
7473 if test "${PATH_SEPARATOR+set}" != set; then
7474 echo "#! /bin/sh" >conf$$.sh
7475 echo "exit 0" >>conf$$.sh
7477 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7485 if test "$GCC" = yes; then
7486 # Check if gcc -print-prog-name=ld gives a path.
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7488 $as_echo_n "checking for ld used by GCC... " >&6; }
7491 # gcc leaves a trailing carriage return which upsets mingw
7492 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7494 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7497 # Accept absolute paths.
7498 [\\/]* | [A-Za-z]:[\\/]*)
7499 re_direlt='/[^/][^/]*/\.\./'
7500 # Canonicalize the path of ld
7501 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7502 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7503 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7505 test -z "$LD" && LD="$ac_prog"
7508 # If it fails, then pretend we aren't using GCC.
7512 # If it is relative, then search for the first ld in PATH.
7516 elif test "$with_gnu_ld" = yes; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7518 $as_echo_n "checking for GNU ld... " >&6; }
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7521 $as_echo_n "checking for non-GNU ld... " >&6; }
7523 if test "${acl_cv_path_LD+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
7526 if test -z "$LD"; then
7527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7528 for ac_dir in $PATH; do
7529 test -z "$ac_dir" && ac_dir=.
7530 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7531 acl_cv_path_LD="$ac_dir/$ac_prog"
7532 # Check to see if the program is GNU ld. I'd rather use --version,
7533 # but apparently some GNU ld's only accept -v.
7534 # Break only if it was the GNU/non-GNU ld that we prefer.
7535 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7536 test "$with_gnu_ld" != no && break
7538 test "$with_gnu_ld" != yes && break
7544 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7548 LD="$acl_cv_path_LD"
7549 if test -n "$LD"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7551 $as_echo "$LD" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7556 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7558 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7559 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7560 $as_echo_n "(cached) " >&6
7562 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7563 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7564 acl_cv_prog_gnu_ld=yes
7566 acl_cv_prog_gnu_ld=no
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7570 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7571 with_gnu_ld=$acl_cv_prog_gnu_ld
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7576 $as_echo_n "checking for shared library run path origin... " >&6; }
7577 if test "${acl_cv_rpath+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
7581 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7582 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7589 $as_echo "$acl_cv_rpath" >&6; }
7591 libext="$acl_cv_libext"
7592 shlibext="$acl_cv_shlibext"
7593 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7594 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7595 hardcode_direct="$acl_cv_hardcode_direct"
7596 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7597 # Check whether --enable-rpath was given.
7598 if test "${enable_rpath+set}" = set; then :
7599 enableval=$enable_rpath; :
7615 acl_save_prefix="$prefix"
7616 prefix="$acl_final_prefix"
7617 acl_save_exec_prefix="$exec_prefix"
7618 exec_prefix="$acl_final_exec_prefix"
7620 eval additional_includedir=\"$includedir\"
7621 eval additional_libdir=\"$libdir\"
7623 exec_prefix="$acl_save_exec_prefix"
7624 prefix="$acl_save_prefix"
7627 # Check whether --with-libexpat-prefix was given.
7628 if test "${with_libexpat_prefix+set}" = set; then :
7629 withval=$with_libexpat_prefix;
7630 if test "X$withval" = "Xno"; then
7633 if test "X$withval" = "X"; then
7635 acl_save_prefix="$prefix"
7636 prefix="$acl_final_prefix"
7637 acl_save_exec_prefix="$exec_prefix"
7638 exec_prefix="$acl_final_exec_prefix"
7640 eval additional_includedir=\"$includedir\"
7641 eval additional_libdir=\"$libdir\"
7643 exec_prefix="$acl_save_exec_prefix"
7644 prefix="$acl_save_prefix"
7647 additional_includedir="$withval/include"
7648 additional_libdir="$withval/lib"
7659 names_already_handled=
7660 names_next_round='expat '
7661 while test -n "$names_next_round"; do
7662 names_this_round="$names_next_round"
7664 for name in $names_this_round; do
7666 for n in $names_already_handled; do
7667 if test "$n" = "$name"; then
7672 if test -z "$already_handled"; then
7673 names_already_handled="$names_already_handled $name"
7674 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7675 eval value=\"\$HAVE_LIB$uppername\"
7676 if test -n "$value"; then
7677 if test "$value" = yes; then
7678 eval value=\"\$LIB$uppername\"
7679 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
7680 eval value=\"\$LTLIB$uppername\"
7681 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7690 if test $use_additional = yes; then
7691 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7692 found_dir="$additional_libdir"
7693 found_so="$additional_libdir/lib$name.$shlibext"
7694 if test -f "$additional_libdir/lib$name.la"; then
7695 found_la="$additional_libdir/lib$name.la"
7698 if test -f "$additional_libdir/lib$name.$libext"; then
7699 found_dir="$additional_libdir"
7700 found_a="$additional_libdir/lib$name.$libext"
7701 if test -f "$additional_libdir/lib$name.la"; then
7702 found_la="$additional_libdir/lib$name.la"
7707 if test "X$found_dir" = "X"; then
7708 for x in $LDFLAGS $LTLIBEXPAT; do
7710 acl_save_prefix="$prefix"
7711 prefix="$acl_final_prefix"
7712 acl_save_exec_prefix="$exec_prefix"
7713 exec_prefix="$acl_final_exec_prefix"
7715 exec_prefix="$acl_save_exec_prefix"
7716 prefix="$acl_save_prefix"
7720 dir=`echo "X$x" | sed -e 's/^X-L//'`
7721 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7723 found_so="$dir/lib$name.$shlibext"
7724 if test -f "$dir/lib$name.la"; then
7725 found_la="$dir/lib$name.la"
7728 if test -f "$dir/lib$name.$libext"; then
7730 found_a="$dir/lib$name.$libext"
7731 if test -f "$dir/lib$name.la"; then
7732 found_la="$dir/lib$name.la"
7738 if test "X$found_dir" != "X"; then
7743 if test "X$found_dir" != "X"; then
7744 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7745 if test "X$found_so" != "X"; then
7746 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7747 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7750 for x in $ltrpathdirs; do
7751 if test "X$x" = "X$found_dir"; then
7756 if test -z "$haveit"; then
7757 ltrpathdirs="$ltrpathdirs $found_dir"
7759 if test "$hardcode_direct" = yes; then
7760 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7762 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7763 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7765 for x in $rpathdirs; do
7766 if test "X$x" = "X$found_dir"; then
7771 if test -z "$haveit"; then
7772 rpathdirs="$rpathdirs $found_dir"
7776 for x in $LDFLAGS $LIBEXPAT; do
7778 acl_save_prefix="$prefix"
7779 prefix="$acl_final_prefix"
7780 acl_save_exec_prefix="$exec_prefix"
7781 exec_prefix="$acl_final_exec_prefix"
7783 exec_prefix="$acl_save_exec_prefix"
7784 prefix="$acl_save_prefix"
7786 if test "X$x" = "X-L$found_dir"; then
7791 if test -z "$haveit"; then
7792 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7794 if test "$hardcode_minus_L" != no; then
7795 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7797 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7803 if test "X$found_a" != "X"; then
7804 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7806 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7809 additional_includedir=
7810 case "$found_dir" in
7812 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7813 additional_includedir="$basedir/include"
7816 if test "X$additional_includedir" != "X"; then
7817 if test "X$additional_includedir" != "X/usr/include"; then
7819 if test "X$additional_includedir" = "X/usr/local/include"; then
7820 if test -n "$GCC"; then
7822 linux*) haveit=yes;;
7826 if test -z "$haveit"; then
7827 for x in $CPPFLAGS $INCEXPAT; do
7829 acl_save_prefix="$prefix"
7830 prefix="$acl_final_prefix"
7831 acl_save_exec_prefix="$exec_prefix"
7832 exec_prefix="$acl_final_exec_prefix"
7834 exec_prefix="$acl_save_exec_prefix"
7835 prefix="$acl_save_prefix"
7837 if test "X$x" = "X-I$additional_includedir"; then
7842 if test -z "$haveit"; then
7843 if test -d "$additional_includedir"; then
7844 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7850 if test -n "$found_la"; then
7851 save_libdir="$libdir"
7853 */* | *\\*) . "$found_la" ;;
7854 *) . "./$found_la" ;;
7856 libdir="$save_libdir"
7857 for dep in $dependency_libs; do
7860 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7861 if test "X$additional_libdir" != "X/usr/lib"; then
7863 if test "X$additional_libdir" = "X/usr/local/lib"; then
7864 if test -n "$GCC"; then
7866 linux*) haveit=yes;;
7870 if test -z "$haveit"; then
7872 for x in $LDFLAGS $LIBEXPAT; do
7874 acl_save_prefix="$prefix"
7875 prefix="$acl_final_prefix"
7876 acl_save_exec_prefix="$exec_prefix"
7877 exec_prefix="$acl_final_exec_prefix"
7879 exec_prefix="$acl_save_exec_prefix"
7880 prefix="$acl_save_prefix"
7882 if test "X$x" = "X-L$additional_libdir"; then
7887 if test -z "$haveit"; then
7888 if test -d "$additional_libdir"; then
7889 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7893 for x in $LDFLAGS $LTLIBEXPAT; do
7895 acl_save_prefix="$prefix"
7896 prefix="$acl_final_prefix"
7897 acl_save_exec_prefix="$exec_prefix"
7898 exec_prefix="$acl_final_exec_prefix"
7900 exec_prefix="$acl_save_exec_prefix"
7901 prefix="$acl_save_prefix"
7903 if test "X$x" = "X-L$additional_libdir"; then
7908 if test -z "$haveit"; then
7909 if test -d "$additional_libdir"; then
7910 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7917 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7918 if test "$enable_rpath" != no; then
7920 for x in $rpathdirs; do
7921 if test "X$x" = "X$dir"; then
7926 if test -z "$haveit"; then
7927 rpathdirs="$rpathdirs $dir"
7930 for x in $ltrpathdirs; do
7931 if test "X$x" = "X$dir"; then
7936 if test -z "$haveit"; then
7937 ltrpathdirs="$ltrpathdirs $dir"
7942 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7945 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7948 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7949 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7955 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7956 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7962 if test "X$rpathdirs" != "X"; then
7963 if test -n "$hardcode_libdir_separator"; then
7965 for found_dir in $rpathdirs; do
7966 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7968 acl_save_libdir="$libdir"
7970 eval flag=\"$hardcode_libdir_flag_spec\"
7971 libdir="$acl_save_libdir"
7972 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7974 for found_dir in $rpathdirs; do
7975 acl_save_libdir="$libdir"
7977 eval flag=\"$hardcode_libdir_flag_spec\"
7978 libdir="$acl_save_libdir"
7979 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7983 if test "X$ltrpathdirs" != "X"; then
7984 for found_dir in $ltrpathdirs; do
7985 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7990 ac_save_CPPFLAGS="$CPPFLAGS"
7992 for element in $INCEXPAT; do
7994 for x in $CPPFLAGS; do
7996 acl_save_prefix="$prefix"
7997 prefix="$acl_final_prefix"
7998 acl_save_exec_prefix="$exec_prefix"
7999 exec_prefix="$acl_final_exec_prefix"
8001 exec_prefix="$acl_save_exec_prefix"
8002 prefix="$acl_save_prefix"
8004 if test "X$x" = "X$element"; then
8009 if test -z "$haveit"; then
8010 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8016 $as_echo_n "checking for libexpat... " >&6; }
8017 if test "${ac_cv_libexpat+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8021 ac_save_LIBS="$LIBS"
8022 LIBS="$LIBS $LIBEXPAT"
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8029 XML_Parser p = XML_ParserCreate (0);
8034 if ac_fn_c_try_link "$LINENO"; then :
8039 rm -f core conftest.err conftest.$ac_objext \
8040 conftest$ac_exeext conftest.$ac_ext
8041 LIBS="$ac_save_LIBS"
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8045 $as_echo "$ac_cv_libexpat" >&6; }
8046 if test "$ac_cv_libexpat" = yes; then
8049 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8052 $as_echo_n "checking how to link with libexpat... " >&6; }
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8054 $as_echo "$LIBEXPAT" >&6; }
8057 CPPFLAGS="$ac_save_CPPFLAGS"
8067 if test "$HAVE_LIBEXPAT" != yes; then
8068 if test "$with_expat" = yes; then
8069 as_fn_error "expat is missing or unusable" "$LINENO" 5
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8072 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8076 LIBS="$LIBS $LIBEXPAT"
8077 for ac_func in XML_StopParser
8079 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8080 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
8081 cat >>confdefs.h <<_ACEOF
8082 #define HAVE_XML_STOPPARSER 1
8092 # --------------------- #
8093 # Check for libpython. #
8094 # --------------------- #
8101 # Check whether --with-python was given.
8102 if test "${with_python+set}" = set; then :
8103 withval=$with_python;
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8109 $as_echo_n "checking whether to use python... " >&6; }
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8111 $as_echo "$with_python" >&6; }
8113 if test "${with_python}" = no; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8115 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8118 case "${with_python}" in
8120 if test -d ${with_python}; then
8121 # Assume the python binary is ${with_python}/bin/python.
8122 python_prog="${with_python}/bin/python"
8124 # If python does not exit ${with_python}/bin, then try in
8125 # ${with_python}. On Windows/MinGW, this is where the Python
8127 if test ! -x "${python_prog}"; then
8128 python_prog="${with_python}/python"
8131 if test ! -x "${python_prog}"; then
8132 # Fall back to gdb 7.0/7.1 behaviour.
8134 python_prefix=${with_python}
8136 elif test -x "${with_python}"; then
8137 # While we can't run python compiled for $host (unless host == build),
8138 # the user could write a script that provides the needed information,
8139 # so we support that.
8140 python_prog=${with_python}
8143 as_fn_error "invalid value for --with-python" "$LINENO" 5
8147 # Disallow --with-python=foo/bar.
8148 as_fn_error "invalid value for --with-python" "$LINENO" 5
8151 # The user has either specified auto, yes, or the name of the python
8152 # program assumed to be in $PATH.
8154 case "${with_python}" in
8156 if test ${build} = ${host}; then
8157 # Extract the first word of "python", so it can be a program name with args.
8158 set dummy python; ac_word=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
8164 case $python_prog_path in
8166 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8176 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8188 python_prog_path=$ac_cv_path_python_prog_path
8189 if test -n "$python_prog_path"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8191 $as_echo "$python_prog_path" >&6; }
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8198 if test "${python_prog_path}" = missing; then
8201 python_prog=${python_prog_path}
8204 # Not much we can do except assume the cross-compiler will find the
8210 # While we can't run python compiled for $host (unless host == build),
8211 # the user could write a script that provides the needed information,
8212 # so we support that.
8213 python_prog="${with_python}"
8214 # Extract the first word of "${python_prog}", so it can be a program name with args.
8215 set dummy ${python_prog}; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8221 case $python_prog_path in
8223 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8245 python_prog_path=$ac_cv_path_python_prog_path
8246 if test -n "$python_prog_path"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8248 $as_echo "$python_prog_path" >&6; }
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8255 if test "${python_prog_path}" = missing; then
8256 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8262 if test "${python_prog}" != missing; then
8263 # We have a python program to use, but it may be too old.
8264 # Don't flag an error for --with-python=auto (the default).
8265 have_python_config=yes
8266 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8267 if test $? != 0; then
8268 have_python_config=failed
8269 if test "${with_python}" != auto; then
8270 as_fn_error "failure running python-config --includes" "$LINENO" 5
8273 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8274 if test $? != 0; then
8275 have_python_config=failed
8276 if test "${with_python}" != auto; then
8277 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8280 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8281 if test $? != 0; then
8282 have_python_config=failed
8283 if test "${with_python}" != auto; then
8284 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8288 # We do not have a python executable we can use to determine where
8289 # to find the Python headers and libs. We cannot guess the include
8290 # path from the python_prefix either, because that include path
8291 # depends on the Python version. So, there is nothing much we can
8292 # do except assume that the compiler will be able to find those files.
8295 have_python_config=no
8298 # If we have python-config, only try the configuration it provides.
8299 # Otherwise fallback on the old way of trying different versions of
8303 if test "${have_python_config}" = yes; then
8304 # Determine the Python version by extracting "-lpython<version>"
8305 # part of the python_libs. <version> is usually X.Y with X and Y
8306 # being decimal numbers, but can also be XY (seen on Windows).
8308 # The extraction is performed using sed with a regular expression.
8309 # Initially, the regexp used was using the '?' quantifier to make
8310 # the dot in the version number optional. Unfortunately, this
8311 # does not work with non-GNU versions of sed because, because of
8312 # what looks like a limitation (the '?' quantifier does not work
8313 # with back-references). We work around this limitation by using
8314 # the '*' quantifier instead. It means that, in theory, we might
8315 # match unexpected version strings such as "-lpython2..7", but
8316 # this seems unlikely in practice. And even if that happens,
8317 # an error will be triggered later on, when checking that version
8319 python_version=`echo " ${python_libs} " \
8320 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8321 case "${python_version}" in
8324 version=${python_version}
8326 new_CPPFLAGS=${python_includes}
8327 new_LIBS=${python_libs}
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8329 $as_echo_n "checking for ${version}... " >&6; }
8330 save_CPPFLAGS=$CPPFLAGS
8332 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8333 LIBS="$LIBS $new_LIBS"
8334 found_usable_python=no
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8346 if ac_fn_c_try_link "$LINENO"; then :
8347 have_libpython=${version}
8348 found_usable_python=yes
8349 PYTHON_CPPFLAGS=$new_CPPFLAGS
8350 PYTHON_LIBS=$new_LIBS
8352 rm -f core conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext conftest.$ac_ext
8354 CPPFLAGS=$save_CPPFLAGS
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8357 $as_echo "${found_usable_python}" >&6; }
8361 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
8364 elif test "${have_python_config}" != failed; then
8365 if test "${have_libpython}" = no; then
8369 new_CPPFLAGS=${python_includes}
8370 new_LIBS="${python_libs} -lpython2.7"
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8372 $as_echo_n "checking for ${version}... " >&6; }
8373 save_CPPFLAGS=$CPPFLAGS
8375 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8376 LIBS="$LIBS $new_LIBS"
8377 found_usable_python=no
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8389 if ac_fn_c_try_link "$LINENO"; then :
8390 have_libpython=${version}
8391 found_usable_python=yes
8392 PYTHON_CPPFLAGS=$new_CPPFLAGS
8393 PYTHON_LIBS=$new_LIBS
8395 rm -f core conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext conftest.$ac_ext
8397 CPPFLAGS=$save_CPPFLAGS
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8400 $as_echo "${found_usable_python}" >&6; }
8403 if test "${have_libpython}" = no; then
8407 new_CPPFLAGS=${python_includes}
8408 new_LIBS="${python_libs} -lpython2.6"
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8410 $as_echo_n "checking for ${version}... " >&6; }
8411 save_CPPFLAGS=$CPPFLAGS
8413 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8414 LIBS="$LIBS $new_LIBS"
8415 found_usable_python=no
8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8427 if ac_fn_c_try_link "$LINENO"; then :
8428 have_libpython=${version}
8429 found_usable_python=yes
8430 PYTHON_CPPFLAGS=$new_CPPFLAGS
8431 PYTHON_LIBS=$new_LIBS
8433 rm -f core conftest.err conftest.$ac_objext \
8434 conftest$ac_exeext conftest.$ac_ext
8435 CPPFLAGS=$save_CPPFLAGS
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8438 $as_echo "${found_usable_python}" >&6; }
8441 if test ${have_libpython} = no; then
8445 new_CPPFLAGS=${python_includes}
8446 new_LIBS="${python_libs} -lpython2.5"
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8448 $as_echo_n "checking for ${version}... " >&6; }
8449 save_CPPFLAGS=$CPPFLAGS
8451 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8452 LIBS="$LIBS $new_LIBS"
8453 found_usable_python=no
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8465 if ac_fn_c_try_link "$LINENO"; then :
8466 have_libpython=${version}
8467 found_usable_python=yes
8468 PYTHON_CPPFLAGS=$new_CPPFLAGS
8469 PYTHON_LIBS=$new_LIBS
8471 rm -f core conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
8473 CPPFLAGS=$save_CPPFLAGS
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8476 $as_echo "${found_usable_python}" >&6; }
8479 if test ${have_libpython} = no; then
8483 new_CPPFLAGS=${python_includes}
8484 new_LIBS="${python_libs} -lpython2.4"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8486 $as_echo_n "checking for ${version}... " >&6; }
8487 save_CPPFLAGS=$CPPFLAGS
8489 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8490 LIBS="$LIBS $new_LIBS"
8491 found_usable_python=no
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8503 if ac_fn_c_try_link "$LINENO"; then :
8504 have_libpython=${version}
8505 found_usable_python=yes
8506 PYTHON_CPPFLAGS=$new_CPPFLAGS
8507 PYTHON_LIBS=$new_LIBS
8509 rm -f core conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
8511 CPPFLAGS=$save_CPPFLAGS
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8514 $as_echo "${found_usable_python}" >&6; }
8518 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
8520 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8522 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
8524 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8526 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
8528 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8530 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
8532 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8536 if test "${have_libpython}" = no; then
8537 case "${with_python}" in
8539 as_fn_error "python is missing or unusable" "$LINENO" 5
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8543 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8546 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
8550 if test -n "${python_prefix}"; then
8552 cat >>confdefs.h <<_ACEOF
8553 #define WITH_PYTHON_PATH "${python_prefix}"
8557 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8558 if test "x$prefix" = xNONE; then
8559 test_prefix=/usr/local
8564 test_prefix=$exec_prefix
8567 case ${python_prefix} in
8568 "${test_prefix}"|"${test_prefix}/"*|\
8569 '${exec_prefix}'|'${exec_prefix}/'*)
8574 cat >>confdefs.h <<_ACEOF
8575 #define PYTHON_PATH_RELOCATABLE $value
8583 if test "${have_libpython}" != no; then
8585 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8587 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8588 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8589 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8590 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
8591 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8593 # Flags needed to compile Python code (taken from python-config --cflags).
8594 # We cannot call python-config directly because it will output whatever was
8595 # used when compiling the Python interpreter itself, including flags which
8596 # would make the python-related objects be compiled differently from the
8597 # rest of GDB (e.g., -O2 and -fPIC).
8598 if test "${GCC}" = yes; then
8599 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
8602 if test "x${tentative_python_cflags}" != x; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8604 $as_echo_n "checking compiler flags for python code... " >&6; }
8605 for flag in ${tentative_python_cflags}; do
8606 # Check that the compiler accepts it
8607 saved_CFLAGS="$CFLAGS"
8608 CFLAGS="$CFLAGS $flag"
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624 CFLAGS="$saved_CFLAGS"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8627 $as_echo "${PYTHON_CFLAGS}" >&6; }
8630 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8632 # #define siginfo __siginfo
8634 # The problem is that including Python causes some XOPEN macros to be
8635 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8636 # to false. So, we work around this issue by defining siginfo ourself
8637 # though the command-line.
8639 # On x64 Windows, Python's include headers, and pyconfig.h in
8640 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8641 # version of Windows. Unfortunately, MS_WIN64 is only defined if
8642 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
8643 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8644 # The issue was reported to the Python community, but still isn't
8645 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8648 irix*) if test "${GCC}" = yes; then
8649 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
8653 if test "${GCC}" = yes; then
8654 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
8659 # Note that "python -m threading" cannot be used to check for
8660 # threading support due to a bug in Python 2.7.3
8661 # (http://bugs.python.org/issue15567).
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
8663 $as_echo_n "checking whether python supports threads... " >&6; }
8664 saved_CPPFLAGS="${CPPFLAGS}"
8665 CPPFLAGS="${PYTHON_CPPFLAGS}"
8666 # Note that the test is reversed so that python_has_threads=yes on
8667 # unexpected failures.
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8677 if ac_fn_c_try_cpp "$LINENO"; then :
8678 python_has_threads=no
8680 python_has_threads=yes
8682 rm -f conftest.err conftest.$ac_ext
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
8684 $as_echo "${python_has_threads}" >&6; }
8685 CPPFLAGS="${saved_CPPFLAGS}"
8687 # Even if Python support is not compiled in, we need to have this file
8688 # included so that the "python" command, et.al., still exists.
8689 CONFIG_OBS="$CONFIG_OBS python.o"
8690 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
8695 if test "${have_libpython}" != no; then
8697 HAVE_PYTHON_FALSE='#'
8699 HAVE_PYTHON_TRUE='#'
8704 # -------------------- #
8705 # Check for libguile. #
8706 # -------------------- #
8713 # Check whether --with-guile was given.
8714 if test "${with_guile+set}" = set; then :
8715 withval=$with_guile;
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
8721 $as_echo_n "checking whether to use guile... " >&6; }
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
8723 $as_echo "$with_guile" >&6; }
8725 # Extract the first word of "pkg-config", so it can be a program name with args.
8726 set dummy pkg-config; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8732 case $pkg_config_prog_path in
8734 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 test -z "$as_dir" && as_dir=.
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8744 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
8745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
8756 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
8757 if test -n "$pkg_config_prog_path"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
8759 $as_echo "$pkg_config_prog_path" >&6; }
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8767 try_guile_versions="guile-2.2 guile-2.0"
8769 case "${with_guile}" in
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
8772 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
8775 if test "${pkg_config_prog_path}" = "missing"; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
8777 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
8780 pkg_config=${pkg_config_prog_path}
8781 guile_version_list=${try_guile_versions}
8784 found_usable_guile=checking
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8786 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8787 for guile_version in ${guile_version_list}; do
8788 ${pkg_config} --exists ${guile_version} 2>/dev/null
8789 if test $? != 0; then
8792 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
8793 if test $? != 0; then
8794 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8796 new_LIBS=`${pkg_config} --libs ${guile_version}`
8797 if test $? != 0; then
8798 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8800 found_usable_guile=${guile_version}
8803 if test "${found_usable_guile}" = "checking"; then
8804 if test "${flag_errors}" = "yes"; then
8805 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
8807 found_usable_guile=no
8810 if test "${found_usable_guile}" != no; then
8811 save_CPPFLAGS=$CPPFLAGS
8813 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8814 LIBS="$LIBS $new_LIBS"
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8817 #include "libguile.h"
8826 if ac_fn_c_try_link "$LINENO"; then :
8828 GUILE_CPPFLAGS=$new_CPPFLAGS
8829 GUILE_LIBS=$new_LIBS
8831 found_usable_guile=no
8833 rm -f core conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext conftest.$ac_ext
8835 CPPFLAGS=$save_CPPFLAGS
8837 if test "${found_usable_guile}" = no; then
8838 if test "${flag_errors}" = yes; then
8839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8841 as_fn_error "linking guile version ${guile_version} test program failed
8842 See \`config.log' for more details." "$LINENO" 5; }
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
8847 $as_echo "${found_usable_guile}" >&6; }
8852 if test "${pkg_config_prog_path}" = "missing"; then
8853 as_fn_error "pkg-config not found" "$LINENO" 5
8856 pkg_config=${pkg_config_prog_path}
8857 guile_version_list=${try_guile_versions}
8860 found_usable_guile=checking
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8862 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8863 for guile_version in ${guile_version_list}; do
8864 ${pkg_config} --exists ${guile_version} 2>/dev/null
8865 if test $? != 0; then
8868 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
8869 if test $? != 0; then
8870 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8872 new_LIBS=`${pkg_config} --libs ${guile_version}`
8873 if test $? != 0; then
8874 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8876 found_usable_guile=${guile_version}
8879 if test "${found_usable_guile}" = "checking"; then
8880 if test "${flag_errors}" = "yes"; then
8881 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
8883 found_usable_guile=no
8886 if test "${found_usable_guile}" != no; then
8887 save_CPPFLAGS=$CPPFLAGS
8889 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8890 LIBS="$LIBS $new_LIBS"
8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892 /* end confdefs.h. */
8893 #include "libguile.h"
8902 if ac_fn_c_try_link "$LINENO"; then :
8904 GUILE_CPPFLAGS=$new_CPPFLAGS
8905 GUILE_LIBS=$new_LIBS
8907 found_usable_guile=no
8909 rm -f core conftest.err conftest.$ac_objext \
8910 conftest$ac_exeext conftest.$ac_ext
8911 CPPFLAGS=$save_CPPFLAGS
8913 if test "${found_usable_guile}" = no; then
8914 if test "${flag_errors}" = yes; then
8915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8917 as_fn_error "linking guile version ${guile_version} test program failed
8918 See \`config.log' for more details." "$LINENO" 5; }
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
8923 $as_echo "${found_usable_guile}" >&6; }
8927 if test -x "${with_guile}"; then
8929 pkg_config=${with_guile}
8930 guile_version_list=${try_guile_versions}
8933 found_usable_guile=checking
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8935 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8936 for guile_version in ${guile_version_list}; do
8937 ${pkg_config} --exists ${guile_version} 2>/dev/null
8938 if test $? != 0; then
8941 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
8942 if test $? != 0; then
8943 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8945 new_LIBS=`${pkg_config} --libs ${guile_version}`
8946 if test $? != 0; then
8947 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8949 found_usable_guile=${guile_version}
8952 if test "${found_usable_guile}" = "checking"; then
8953 if test "${flag_errors}" = "yes"; then
8954 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
8956 found_usable_guile=no
8959 if test "${found_usable_guile}" != no; then
8960 save_CPPFLAGS=$CPPFLAGS
8962 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8963 LIBS="$LIBS $new_LIBS"
8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8966 #include "libguile.h"
8975 if ac_fn_c_try_link "$LINENO"; then :
8977 GUILE_CPPFLAGS=$new_CPPFLAGS
8978 GUILE_LIBS=$new_LIBS
8980 found_usable_guile=no
8982 rm -f core conftest.err conftest.$ac_objext \
8983 conftest$ac_exeext conftest.$ac_ext
8984 CPPFLAGS=$save_CPPFLAGS
8986 if test "${found_usable_guile}" = no; then
8987 if test "${flag_errors}" = yes; then
8988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8990 as_fn_error "linking guile version ${guile_version} test program failed
8991 See \`config.log' for more details." "$LINENO" 5; }
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
8996 $as_echo "${found_usable_guile}" >&6; }
8999 as_fn_error "Guile config program not executable: ${with_guile}" "$LINENO" 5
9003 # Disallow --with=guile="" and --with-guile=foo/bar.
9004 as_fn_error "invalid value for --with-guile" "$LINENO" 5
9007 # A space separate list of guile versions to try, in order.
9008 if test "${pkg_config_prog_path}" = "missing"; then
9009 as_fn_error "pkg-config not found" "$LINENO" 5
9012 pkg_config=${pkg_config_prog_path}
9013 guile_version_list=${with_guile}
9016 found_usable_guile=checking
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9018 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9019 for guile_version in ${guile_version_list}; do
9020 ${pkg_config} --exists ${guile_version} 2>/dev/null
9021 if test $? != 0; then
9024 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9025 if test $? != 0; then
9026 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9028 new_LIBS=`${pkg_config} --libs ${guile_version}`
9029 if test $? != 0; then
9030 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9032 found_usable_guile=${guile_version}
9035 if test "${found_usable_guile}" = "checking"; then
9036 if test "${flag_errors}" = "yes"; then
9037 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9039 found_usable_guile=no
9042 if test "${found_usable_guile}" != no; then
9043 save_CPPFLAGS=$CPPFLAGS
9045 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9046 LIBS="$LIBS $new_LIBS"
9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9049 #include "libguile.h"
9058 if ac_fn_c_try_link "$LINENO"; then :
9060 GUILE_CPPFLAGS=$new_CPPFLAGS
9061 GUILE_LIBS=$new_LIBS
9063 found_usable_guile=no
9065 rm -f core conftest.err conftest.$ac_objext \
9066 conftest$ac_exeext conftest.$ac_ext
9067 CPPFLAGS=$save_CPPFLAGS
9069 if test "${found_usable_guile}" = no; then
9070 if test "${flag_errors}" = yes; then
9071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9073 as_fn_error "linking guile version ${guile_version} test program failed
9074 See \`config.log' for more details." "$LINENO" 5; }
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9079 $as_echo "${found_usable_guile}" >&6; }
9084 if test "${have_libguile}" != no; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9087 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9088 if test "${ac_cv_guild_program_name+set}" = set; then :
9089 $as_echo_n "(cached) " >&6
9091 ac_cv_guild_program_name="`"${pkg_config_prog_path}" "${guile_version}" --variable guild`"
9093 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9094 # the 'guild' and 'bindir' variables. In that case, try to guess
9095 # what the program name is, at the risk of getting it wrong if
9096 # Guile was configured with '--program-suffix' or similar.
9097 if test "x$ac_cv_guild_program_name" = "x"; then
9098 guile_exec_prefix="`"${pkg_config_prog_path}" "${guile_version}" --variable exec_prefix`"
9099 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9104 $as_echo "$ac_cv_guild_program_name" >&6; }
9106 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9107 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9110 GUILD="$ac_cv_guild_program_name"
9115 if test "$cross_compiling" = no; then
9118 GUILD_TARGET_FLAG="--target=$host"
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9125 $as_echo_n "checking whether guild supports this host... " >&6; }
9126 if test "${ac_cv_guild_ok+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
9129 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9130 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9137 $as_echo "$ac_cv_guild_ok" >&6; }
9139 if test "$ac_cv_guild_ok" = no; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9142 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9146 if test "${have_libguile}" != no; then
9148 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9150 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9151 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9152 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9153 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
9154 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9157 save_CPPFLAGS="$CPPFLAGS"
9159 CPPFLAGS="$GUILE_CPPFLAGS"
9160 for ac_func in scm_new_smob
9162 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9163 if test "x$ac_cv_func_scm_new_smob" = x""yes; then :
9164 cat >>confdefs.h <<_ACEOF
9165 #define HAVE_SCM_NEW_SMOB 1
9172 CPPFLAGS="$save_CPPFLAGS"
9174 # Even if Guile support is not compiled in, we need to have these files
9176 CONFIG_OBS="$CONFIG_OBS guile.o"
9177 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
9181 if test "${have_libguile}" != no; then
9183 HAVE_GUILE_FALSE='#'
9190 # PR 17185, see if we can get the libgc version to see if we need
9191 # to apply the workaround.
9192 for ac_header in gc/gc.h
9194 ac_fn_c_check_header_mongrel "$LINENO" "gc/gc.h" "ac_cv_header_gc_gc_h" "$ac_includes_default"
9195 if test "x$ac_cv_header_gc_gc_h" = x""yes; then :
9196 cat >>confdefs.h <<_ACEOF
9197 #define HAVE_GC_GC_H 1
9204 for ac_func in setenv
9206 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
9207 if test "x$ac_cv_func_setenv" = x""yes; then :
9208 cat >>confdefs.h <<_ACEOF
9209 #define HAVE_SETENV 1
9216 # --------------------- #
9217 # Check for libmcheck. #
9218 # --------------------- #
9220 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9221 # but turn it off if Python is enabled with threads, since -lmcheck is
9222 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9224 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
9225 && $development; then
9226 libmcheck_default=yes
9228 libmcheck_default=no
9231 # Check whether --enable-libmcheck was given.
9232 if test "${enable_libmcheck+set}" = set; then :
9233 enableval=$enable_libmcheck; case "${enableval}" in
9234 yes | y) ENABLE_LIBMCHECK="yes" ;;
9235 no | n) ENABLE_LIBMCHECK="no" ;;
9236 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
9241 if test -z "${ENABLE_LIBMCHECK}"; then
9242 ENABLE_LIBMCHECK=${libmcheck_default}
9245 if test "$ENABLE_LIBMCHECK" = "yes" ; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
9247 $as_echo_n "checking for main in -lmcheck... " >&6; }
9248 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
9249 $as_echo_n "(cached) " >&6
9251 ac_check_lib_save_LIBS=$LIBS
9252 LIBS="-lmcheck $LIBS"
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9265 if ac_fn_c_try_link "$LINENO"; then :
9266 ac_cv_lib_mcheck_main=yes
9268 ac_cv_lib_mcheck_main=no
9270 rm -f core conftest.err conftest.$ac_objext \
9271 conftest$ac_exeext conftest.$ac_ext
9272 LIBS=$ac_check_lib_save_LIBS
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
9275 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
9276 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
9277 cat >>confdefs.h <<_ACEOF
9278 #define HAVE_LIBMCHECK 1
9281 LIBS="-lmcheck $LIBS"
9288 if test "$ENABLE_LIBMCHECK" = "yes" \
9289 -a "${have_libpython}" != "no" \
9290 -a "${python_has_threads}" = "yes" ; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
9292 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
9295 # ------------------------- #
9296 # Checks for header files. #
9297 # ------------------------- #
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9300 $as_echo_n "checking for ANSI C header files... " >&6; }
9301 if test "${ac_cv_header_stdc+set}" = set; then :
9302 $as_echo_n "(cached) " >&6
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9319 if ac_fn_c_try_compile "$LINENO"; then :
9320 ac_cv_header_stdc=yes
9322 ac_cv_header_stdc=no
9324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9326 if test $ac_cv_header_stdc = yes; then
9327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9334 $EGREP "memchr" >/dev/null 2>&1; then :
9337 ac_cv_header_stdc=no
9343 if test $ac_cv_header_stdc = yes; then
9344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h. */
9350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9351 $EGREP "free" >/dev/null 2>&1; then :
9354 ac_cv_header_stdc=no
9360 if test $ac_cv_header_stdc = yes; then
9361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9362 if test "$cross_compiling" = yes; then :
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9369 #if ((' ' & 0x0FF) == 0x020)
9370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9373 # define ISLOWER(c) \
9374 (('a' <= (c) && (c) <= 'i') \
9375 || ('j' <= (c) && (c) <= 'r') \
9376 || ('s' <= (c) && (c) <= 'z'))
9377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9385 for (i = 0; i < 256; i++)
9386 if (XOR (islower (i), ISLOWER (i))
9387 || toupper (i) != TOUPPER (i))
9392 if ac_fn_c_try_run "$LINENO"; then :
9395 ac_cv_header_stdc=no
9397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9398 conftest.$ac_objext conftest.beam conftest.$ac_ext
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9404 $as_echo "$ac_cv_header_stdc" >&6; }
9405 if test $ac_cv_header_stdc = yes; then
9407 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9411 # elf_hp.h is for HP/UX 64-bit shared library support.
9412 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
9415 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
9416 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
9417 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
9418 termios.h termio.h \
9422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9423 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9424 eval as_val=\$$as_ac_Header
9425 if test "x$as_val" = x""yes; then :
9426 cat >>confdefs.h <<_ACEOF
9427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9434 for ac_header in sys/proc.h
9436 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
9437 # include <sys/param.h>
9441 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
9442 cat >>confdefs.h <<_ACEOF
9443 #define HAVE_SYS_PROC_H 1
9450 for ac_header in sys/user.h
9452 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
9453 # include <sys/param.h>
9457 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
9458 cat >>confdefs.h <<_ACEOF
9459 #define HAVE_SYS_USER_H 1
9467 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
9468 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
9469 # think that we don't have <curses.h> if we're using GCC.
9472 if test "$GCC" = yes; then
9474 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
9478 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
9480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9481 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9482 eval as_val=\$$as_ac_Header
9483 if test "x$as_val" = x""yes; then :
9484 cat >>confdefs.h <<_ACEOF
9485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9492 for ac_header in term.h
9494 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9495 # include <curses.h>
9499 if test "x$ac_cv_header_term_h" = x""yes; then :
9500 cat >>confdefs.h <<_ACEOF
9501 #define HAVE_TERM_H 1
9509 # ------------------------- #
9510 # Checks for declarations. #
9511 # ------------------------- #
9513 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
9514 if test "x$ac_cv_have_decl_free" = x""yes; then :
9520 cat >>confdefs.h <<_ACEOF
9521 #define HAVE_DECL_FREE $ac_have_decl
9523 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
9524 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
9530 cat >>confdefs.h <<_ACEOF
9531 #define HAVE_DECL_MALLOC $ac_have_decl
9533 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9534 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
9540 cat >>confdefs.h <<_ACEOF
9541 #define HAVE_DECL_REALLOC $ac_have_decl
9543 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9544 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
9550 cat >>confdefs.h <<_ACEOF
9551 #define HAVE_DECL_SNPRINTF $ac_have_decl
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9556 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9557 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9571 if ac_fn_c_try_link "$LINENO"; then :
9572 am_cv_val_LC_MESSAGES=yes
9574 am_cv_val_LC_MESSAGES=no
9576 rm -f core conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9580 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9581 if test $am_cv_val_LC_MESSAGES = yes; then
9583 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9588 # ----------------------- #
9589 # Checks for structures. #
9590 # ----------------------- #
9592 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9593 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
9595 cat >>confdefs.h <<_ACEOF
9596 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9601 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9602 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
9604 cat >>confdefs.h <<_ACEOF
9605 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9612 # ------------------ #
9613 # Checks for types. #
9614 # ------------------ #
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9617 $as_echo_n "checking return type of signal handlers... " >&6; }
9618 if test "${ac_cv_type_signal+set}" = set; then :
9619 $as_echo_n "(cached) " >&6
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9623 #include <sys/types.h>
9629 return *(signal (0, 0)) (0) == 1;
9634 if ac_fn_c_try_compile "$LINENO"; then :
9635 ac_cv_type_signal=int
9637 ac_cv_type_signal=void
9639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9642 $as_echo "$ac_cv_type_signal" >&6; }
9644 cat >>confdefs.h <<_ACEOF
9645 #define RETSIGTYPE $ac_cv_type_signal
9649 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9650 #include <sys/socket.h>
9653 if test "x$ac_cv_type_socklen_t" = x""yes; then :
9655 cat >>confdefs.h <<_ACEOF
9656 #define HAVE_SOCKLEN_T 1
9663 # ------------------------------------- #
9664 # Checks for compiler characteristics. #
9665 # ------------------------------------- #
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9668 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9669 if test "${ac_cv_c_const+set}" = set; then :
9670 $as_echo_n "(cached) " >&6
9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673 /* end confdefs.h. */
9678 /* FIXME: Include the comments suggested by Paul. */
9680 /* Ultrix mips cc rejects this. */
9681 typedef int charset[2];
9683 /* SunOS 4.1.1 cc rejects this. */
9684 char const *const *pcpcc;
9686 /* NEC SVR4.0.2 mips cc rejects this. */
9687 struct point {int x, y;};
9688 static struct point const zero = {0,0};
9689 /* AIX XL C 1.02.0.0 rejects this.
9690 It does not let you subtract one const X* pointer from another in
9691 an arm of an if-expression whose if-part is not a constant
9693 const char *g = "string";
9694 pcpcc = &g + (g ? g-g : 0);
9695 /* HPUX 7.0 cc rejects these. */
9697 ppc = (char**) pcpcc;
9698 pcpcc = (char const *const *) ppc;
9699 { /* SCO 3.2v4 cc rejects this. */
9701 char const *s = 0 ? (char *) 0 : (char const *) 0;
9706 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9708 const int *foo = &x[0];
9711 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9712 typedef const int *iptr;
9716 { /* AIX XL C 1.02.0.0 rejects this saying
9717 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9718 struct s { int j; const int *ap[3]; };
9719 struct s *b; b->j = 5;
9721 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9725 return !cs[0] && !zero.x;
9732 if ac_fn_c_try_compile "$LINENO"; then :
9737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9740 $as_echo "$ac_cv_c_const" >&6; }
9741 if test $ac_cv_c_const = no; then
9743 $as_echo "#define const /**/" >>confdefs.h
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9748 $as_echo_n "checking for inline... " >&6; }
9749 if test "${ac_cv_c_inline+set}" = set; then :
9750 $as_echo_n "(cached) " >&6
9753 for ac_kw in inline __inline__ __inline; do
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9758 static $ac_kw foo_t static_foo () {return 0; }
9759 $ac_kw foo_t foo () {return 0; }
9763 if ac_fn_c_try_compile "$LINENO"; then :
9764 ac_cv_c_inline=$ac_kw
9766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9767 test "$ac_cv_c_inline" != no && break
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9772 $as_echo "$ac_cv_c_inline" >&6; }
9774 case $ac_cv_c_inline in
9777 case $ac_cv_c_inline in
9779 *) ac_val=$ac_cv_c_inline;;
9781 cat >>confdefs.h <<_ACEOF
9783 #define inline $ac_val
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9790 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9791 if test "${ac_cv_c_bigendian+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9794 ac_cv_c_bigendian=unknown
9795 # See if we're dealing with a universal compiler.
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798 #ifndef __APPLE_CC__
9799 not a universal capable compiler
9804 if ac_fn_c_try_compile "$LINENO"; then :
9806 # Check for potential -arch flags. It is not universal unless
9807 # there are at least two -arch flags with different values.
9810 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9811 if test -n "$ac_prev"; then
9813 i?86 | x86_64 | ppc | ppc64)
9814 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9817 ac_cv_c_bigendian=universal
9823 elif test "x$ac_word" = "x-arch"; then
9828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9829 if test $ac_cv_c_bigendian = unknown; then
9830 # See if sys/param.h defines the BYTE_ORDER macro.
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h. */
9833 #include <sys/types.h>
9834 #include <sys/param.h>
9839 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9840 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9849 if ac_fn_c_try_compile "$LINENO"; then :
9850 # It does; now see whether it defined to BIG_ENDIAN or not.
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853 #include <sys/types.h>
9854 #include <sys/param.h>
9859 #if BYTE_ORDER != BIG_ENDIAN
9867 if ac_fn_c_try_compile "$LINENO"; then :
9868 ac_cv_c_bigendian=yes
9870 ac_cv_c_bigendian=no
9872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9876 if test $ac_cv_c_bigendian = unknown; then
9877 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h. */
9885 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9893 if ac_fn_c_try_compile "$LINENO"; then :
9894 # It does; now see whether it defined to _BIG_ENDIAN or not.
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9910 if ac_fn_c_try_compile "$LINENO"; then :
9911 ac_cv_c_bigendian=yes
9913 ac_cv_c_bigendian=no
9915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919 if test $ac_cv_c_bigendian = unknown; then
9920 # Compile a test program.
9921 if test "$cross_compiling" = yes; then :
9922 # Try to guess by grepping values from an object file.
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9925 short int ascii_mm[] =
9926 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9927 short int ascii_ii[] =
9928 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9929 int use_ascii (int i) {
9930 return ascii_mm[i] + ascii_ii[i];
9932 short int ebcdic_ii[] =
9933 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9934 short int ebcdic_mm[] =
9935 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9936 int use_ebcdic (int i) {
9937 return ebcdic_mm[i] + ebcdic_ii[i];
9944 return use_ascii (foo) == use_ebcdic (foo);
9949 if ac_fn_c_try_compile "$LINENO"; then :
9950 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9951 ac_cv_c_bigendian=yes
9953 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9954 if test "$ac_cv_c_bigendian" = unknown; then
9955 ac_cv_c_bigendian=no
9957 # finding both strings is unlikely to happen, but who knows?
9958 ac_cv_c_bigendian=unknown
9962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9966 $ac_includes_default
9971 /* Are we little or big endian? From Harbison&Steele. */
9975 char c[sizeof (long int)];
9978 return u.c[sizeof (long int) - 1] == 1;
9984 if ac_fn_c_try_run "$LINENO"; then :
9985 ac_cv_c_bigendian=no
9987 ac_cv_c_bigendian=yes
9989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9990 conftest.$ac_objext conftest.beam conftest.$ac_ext
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9996 $as_echo "$ac_cv_c_bigendian" >&6; }
9997 case $ac_cv_c_bigendian in #(
9999 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10005 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10009 as_fn_error "unknown endianness
10010 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10014 # ------------------------------ #
10015 # Checks for library functions. #
10016 # ------------------------------ #
10018 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10019 # for constant arguments. Useless!
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10021 $as_echo_n "checking for working alloca.h... " >&6; }
10022 if test "${ac_cv_working_alloca_h+set}" = set; then :
10023 $as_echo_n "(cached) " >&6
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027 #include <alloca.h>
10031 char *p = (char *) alloca (2 * sizeof (int));
10037 if ac_fn_c_try_link "$LINENO"; then :
10038 ac_cv_working_alloca_h=yes
10040 ac_cv_working_alloca_h=no
10042 rm -f core conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10046 $as_echo "$ac_cv_working_alloca_h" >&6; }
10047 if test $ac_cv_working_alloca_h = yes; then
10049 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10054 $as_echo_n "checking for alloca... " >&6; }
10055 if test "${ac_cv_func_alloca_works+set}" = set; then :
10056 $as_echo_n "(cached) " >&6
10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10061 # define alloca __builtin_alloca
10064 # include <malloc.h>
10065 # define alloca _alloca
10067 # ifdef HAVE_ALLOCA_H
10068 # include <alloca.h>
10073 # ifndef alloca /* predefined by HP cc +Olibcalls */
10084 char *p = (char *) alloca (1);
10090 if ac_fn_c_try_link "$LINENO"; then :
10091 ac_cv_func_alloca_works=yes
10093 ac_cv_func_alloca_works=no
10095 rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10099 $as_echo "$ac_cv_func_alloca_works" >&6; }
10101 if test $ac_cv_func_alloca_works = yes; then
10103 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10106 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10107 # that cause trouble. Some versions do not even contain alloca or
10108 # contain a buggy version. If you still want to use their alloca,
10109 # use ar to extract alloca.o from them instead of compiling alloca.c.
10111 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10113 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10117 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10118 if test "${ac_cv_os_cray+set}" = set; then :
10119 $as_echo_n "(cached) " >&6
10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10123 #if defined CRAY && ! defined CRAY2
10130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10131 $EGREP "webecray" >/dev/null 2>&1; then :
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10140 $as_echo "$ac_cv_os_cray" >&6; }
10141 if test $ac_cv_os_cray = yes; then
10142 for ac_func in _getb67 GETB67 getb67; do
10143 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10144 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10145 eval as_val=\$$as_ac_var
10146 if test "x$as_val" = x""yes; then :
10148 cat >>confdefs.h <<_ACEOF
10149 #define CRAY_STACKSEG_END $ac_func
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10159 $as_echo_n "checking stack direction for C alloca... " >&6; }
10160 if test "${ac_cv_c_stack_direction+set}" = set; then :
10161 $as_echo_n "(cached) " >&6
10163 if test "$cross_compiling" = yes; then :
10164 ac_cv_c_stack_direction=0
10166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167 /* end confdefs.h. */
10168 $ac_includes_default
10170 find_stack_direction ()
10172 static char *addr = 0;
10177 return find_stack_direction ();
10180 return (&dummy > addr) ? 1 : -1;
10186 return find_stack_direction () < 0;
10189 if ac_fn_c_try_run "$LINENO"; then :
10190 ac_cv_c_stack_direction=1
10192 ac_cv_c_stack_direction=-1
10194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10195 conftest.$ac_objext conftest.beam conftest.$ac_ext
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10200 $as_echo "$ac_cv_c_stack_direction" >&6; }
10201 cat >>confdefs.h <<_ACEOF
10202 #define STACK_DIRECTION $ac_cv_c_stack_direction
10208 for ac_header in stdlib.h unistd.h
10210 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10211 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10212 eval as_val=\$$as_ac_Header
10213 if test "x$as_val" = x""yes; then :
10214 cat >>confdefs.h <<_ACEOF
10215 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10222 for ac_func in getpagesize
10224 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10225 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10226 cat >>confdefs.h <<_ACEOF
10227 #define HAVE_GETPAGESIZE 1
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10234 $as_echo_n "checking for working mmap... " >&6; }
10235 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10236 $as_echo_n "(cached) " >&6
10238 if test "$cross_compiling" = yes; then :
10239 ac_cv_func_mmap_fixed_mapped=no
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10243 $ac_includes_default
10244 /* malloc might have been renamed as rpl_malloc. */
10247 /* Thanks to Mike Haertel and Jim Avera for this test.
10248 Here is a matrix of mmap possibilities:
10249 mmap private not fixed
10250 mmap private fixed at somewhere currently unmapped
10251 mmap private fixed at somewhere already mapped
10252 mmap shared not fixed
10253 mmap shared fixed at somewhere currently unmapped
10254 mmap shared fixed at somewhere already mapped
10255 For private mappings, we should verify that changes cannot be read()
10256 back from the file, nor mmap's back from the file at a different
10257 address. (There have been systems where private was not correctly
10258 implemented like the infamous i386 svr4.0, and systems where the
10259 VM page cache was not coherent with the file system buffer cache
10260 like early versions of FreeBSD and possibly contemporary NetBSD.)
10261 For shared mappings, we should conversely verify that changes get
10262 propagated back to all the places they're supposed to be.
10264 Grep wants private fixed already mapped.
10265 The main things grep needs to know about mmap are:
10266 * does it exist and is it safe to write into the mmap'd area
10267 * how to use it (BSD variants) */
10270 #include <sys/mman.h>
10272 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10276 /* This mess was copied from the GNU getpagesize.h. */
10277 #ifndef HAVE_GETPAGESIZE
10278 /* Assume that all systems that can run configure have sys/param.h. */
10279 # ifndef HAVE_SYS_PARAM_H
10280 # define HAVE_SYS_PARAM_H 1
10283 # ifdef _SC_PAGESIZE
10284 # define getpagesize() sysconf(_SC_PAGESIZE)
10285 # else /* no _SC_PAGESIZE */
10286 # ifdef HAVE_SYS_PARAM_H
10287 # include <sys/param.h>
10288 # ifdef EXEC_PAGESIZE
10289 # define getpagesize() EXEC_PAGESIZE
10290 # else /* no EXEC_PAGESIZE */
10292 # define getpagesize() NBPG * CLSIZE
10295 # endif /* no CLSIZE */
10296 # else /* no NBPG */
10298 # define getpagesize() NBPC
10299 # else /* no NBPC */
10301 # define getpagesize() PAGESIZE
10302 # endif /* PAGESIZE */
10303 # endif /* no NBPC */
10304 # endif /* no NBPG */
10305 # endif /* no EXEC_PAGESIZE */
10306 # else /* no HAVE_SYS_PARAM_H */
10307 # define getpagesize() 8192 /* punt totally */
10308 # endif /* no HAVE_SYS_PARAM_H */
10309 # endif /* no _SC_PAGESIZE */
10311 #endif /* no HAVE_GETPAGESIZE */
10316 char *data, *data2, *data3;
10320 pagesize = getpagesize ();
10322 /* First, make a file with some known garbage in it. */
10323 data = (char *) malloc (pagesize);
10326 for (i = 0; i < pagesize; ++i)
10327 *(data + i) = rand ();
10329 fd = creat ("conftest.mmap", 0600);
10332 if (write (fd, data, pagesize) != pagesize)
10336 /* Next, try to mmap the file at a fixed address which already has
10337 something else allocated at it. If we can, also make sure that
10338 we see the same garbage. */
10339 fd = open ("conftest.mmap", O_RDWR);
10342 data2 = (char *) malloc (2 * pagesize);
10345 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10346 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10347 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10349 for (i = 0; i < pagesize; ++i)
10350 if (*(data + i) != *(data2 + i))
10353 /* Finally, make sure that changes to the mapped area do not
10354 percolate back to the file as seen by read(). (This is a bug on
10355 some variants of i386 svr4.0.) */
10356 for (i = 0; i < pagesize; ++i)
10357 *(data2 + i) = *(data2 + i) + 1;
10358 data3 = (char *) malloc (pagesize);
10361 if (read (fd, data3, pagesize) != pagesize)
10363 for (i = 0; i < pagesize; ++i)
10364 if (*(data + i) != *(data3 + i))
10370 if ac_fn_c_try_run "$LINENO"; then :
10371 ac_cv_func_mmap_fixed_mapped=yes
10373 ac_cv_func_mmap_fixed_mapped=no
10375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10376 conftest.$ac_objext conftest.beam conftest.$ac_ext
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10381 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10382 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10384 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10387 rm -f conftest.mmap
10389 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10390 if test "x$ac_cv_type_pid_t" = x""yes; then :
10394 cat >>confdefs.h <<_ACEOF
10400 for ac_header in vfork.h
10402 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10403 if test "x$ac_cv_header_vfork_h" = x""yes; then :
10404 cat >>confdefs.h <<_ACEOF
10405 #define HAVE_VFORK_H 1
10412 for ac_func in fork vfork
10414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10416 eval as_val=\$$as_ac_var
10417 if test "x$as_val" = x""yes; then :
10418 cat >>confdefs.h <<_ACEOF
10419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10425 if test "x$ac_cv_func_fork" = xyes; then
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10427 $as_echo_n "checking for working fork... " >&6; }
10428 if test "${ac_cv_func_fork_works+set}" = set; then :
10429 $as_echo_n "(cached) " >&6
10431 if test "$cross_compiling" = yes; then :
10432 ac_cv_func_fork_works=cross
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10436 $ac_includes_default
10441 /* By Ruediger Kuhlmann. */
10442 return fork () < 0;
10448 if ac_fn_c_try_run "$LINENO"; then :
10449 ac_cv_func_fork_works=yes
10451 ac_cv_func_fork_works=no
10453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10454 conftest.$ac_objext conftest.beam conftest.$ac_ext
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10459 $as_echo "$ac_cv_func_fork_works" >&6; }
10462 ac_cv_func_fork_works=$ac_cv_func_fork
10464 if test "x$ac_cv_func_fork_works" = xcross; then
10466 *-*-amigaos* | *-*-msdosdjgpp*)
10467 # Override, as these systems have only a dummy fork() stub
10468 ac_cv_func_fork_works=no
10471 ac_cv_func_fork_works=yes
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10475 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10477 ac_cv_func_vfork_works=$ac_cv_func_vfork
10478 if test "x$ac_cv_func_vfork" = xyes; then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10480 $as_echo_n "checking for working vfork... " >&6; }
10481 if test "${ac_cv_func_vfork_works+set}" = set; then :
10482 $as_echo_n "(cached) " >&6
10484 if test "$cross_compiling" = yes; then :
10485 ac_cv_func_vfork_works=cross
10487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488 /* end confdefs.h. */
10489 /* Thanks to Paul Eggert for this test. */
10490 $ac_includes_default
10491 #include <sys/wait.h>
10492 #ifdef HAVE_VFORK_H
10493 # include <vfork.h>
10495 /* On some sparc systems, changes by the child to local and incoming
10496 argument registers are propagated back to the parent. The compiler
10497 is told about this with #include <vfork.h>, but some compilers
10498 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10499 static variable whose address is put into a register that is
10500 clobbered by the vfork. */
10503 sparc_address_test (int arg)
10505 sparc_address_test (arg) int arg;
10508 static pid_t child;
10526 pid_t parent = getpid ();
10529 sparc_address_test (0);
10534 /* Here is another test for sparc vfork register problems. This
10535 test uses lots of local variables, at least as many local
10536 variables as main has allocated so far including compiler
10537 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10538 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10539 reuse the register of parent for one of the local variables,
10540 since it will think that parent can't possibly be used any more
10541 in this routine. Assigning to the local variable will thus
10542 munge parent in the parent process. */
10544 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10545 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10546 /* Convince the compiler that p..p7 are live; otherwise, it might
10547 use the same hardware register for all 8 local variables. */
10548 if (p != p1 || p != p2 || p != p3 || p != p4
10549 || p != p5 || p != p6 || p != p7)
10552 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10553 from child file descriptors. If the child closes a descriptor
10554 before it execs or exits, this munges the parent's descriptor
10555 as well. Test for this by closing stdout in the child. */
10556 _exit(close(fileno(stdout)) != 0);
10561 while (wait(&status) != child)
10564 /* Was there some problem with vforking? */
10567 /* Did the child fail? (This shouldn't happen.) */
10570 /* Did the vfork/compiler bug occur? */
10571 || parent != getpid()
10573 /* Did the file descriptor bug occur? */
10574 || fstat(fileno(stdout), &st) != 0
10579 if ac_fn_c_try_run "$LINENO"; then :
10580 ac_cv_func_vfork_works=yes
10582 ac_cv_func_vfork_works=no
10584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10585 conftest.$ac_objext conftest.beam conftest.$ac_ext
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10590 $as_echo "$ac_cv_func_vfork_works" >&6; }
10593 if test "x$ac_cv_func_fork_works" = xcross; then
10594 ac_cv_func_vfork_works=$ac_cv_func_vfork
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10596 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10599 if test "x$ac_cv_func_vfork_works" = xyes; then
10601 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10605 $as_echo "#define vfork fork" >>confdefs.h
10608 if test "x$ac_cv_func_fork_works" = xyes; then
10610 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10614 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
10615 pipe poll pread pread64 pwrite readlink resize_term \
10616 sbrk setpgid setpgrp setsid \
10617 sigaction sigprocmask sigsetmask socketpair \
10618 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10619 setrlimit getrlimit posix_madvise waitpid lstat \
10620 ptrace64 sigaltstack
10622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10623 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10624 eval as_val=\$$as_ac_var
10625 if test "x$as_val" = x""yes; then :
10626 cat >>confdefs.h <<_ACEOF
10627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10635 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10636 if test "${am_cv_langinfo_codeset+set}" = set; then :
10637 $as_echo_n "(cached) " >&6
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10641 #include <langinfo.h>
10645 char* cs = nl_langinfo(CODESET);
10650 if ac_fn_c_try_link "$LINENO"; then :
10651 am_cv_langinfo_codeset=yes
10653 am_cv_langinfo_codeset=no
10655 rm -f core conftest.err conftest.$ac_objext \
10656 conftest$ac_exeext conftest.$ac_ext
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10660 $as_echo "$am_cv_langinfo_codeset" >&6; }
10661 if test $am_cv_langinfo_codeset = yes; then
10663 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10669 $as_echo_n "checking for ANSI C header files... " >&6; }
10670 if test "${ac_cv_header_stdc+set}" = set; then :
10671 $as_echo_n "(cached) " >&6
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10675 #include <stdlib.h>
10676 #include <stdarg.h>
10677 #include <string.h>
10688 if ac_fn_c_try_compile "$LINENO"; then :
10689 ac_cv_header_stdc=yes
10691 ac_cv_header_stdc=no
10693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10695 if test $ac_cv_header_stdc = yes; then
10696 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10699 #include <string.h>
10702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10703 $EGREP "memchr" >/dev/null 2>&1; then :
10706 ac_cv_header_stdc=no
10712 if test $ac_cv_header_stdc = yes; then
10713 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h. */
10716 #include <stdlib.h>
10719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10720 $EGREP "free" >/dev/null 2>&1; then :
10723 ac_cv_header_stdc=no
10729 if test $ac_cv_header_stdc = yes; then
10730 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10731 if test "$cross_compiling" = yes; then :
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10737 #include <stdlib.h>
10738 #if ((' ' & 0x0FF) == 0x020)
10739 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10740 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10742 # define ISLOWER(c) \
10743 (('a' <= (c) && (c) <= 'i') \
10744 || ('j' <= (c) && (c) <= 'r') \
10745 || ('s' <= (c) && (c) <= 'z'))
10746 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10749 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10754 for (i = 0; i < 256; i++)
10755 if (XOR (islower (i), ISLOWER (i))
10756 || toupper (i) != TOUPPER (i))
10761 if ac_fn_c_try_run "$LINENO"; then :
10764 ac_cv_header_stdc=no
10766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10767 conftest.$ac_objext conftest.beam conftest.$ac_ext
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10773 $as_echo "$ac_cv_header_stdc" >&6; }
10774 if test $ac_cv_header_stdc = yes; then
10776 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10780 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10781 # for constant arguments. Useless!
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10783 $as_echo_n "checking for working alloca.h... " >&6; }
10784 if test "${ac_cv_working_alloca_h+set}" = set; then :
10785 $as_echo_n "(cached) " >&6
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10789 #include <alloca.h>
10793 char *p = (char *) alloca (2 * sizeof (int));
10799 if ac_fn_c_try_link "$LINENO"; then :
10800 ac_cv_working_alloca_h=yes
10802 ac_cv_working_alloca_h=no
10804 rm -f core conftest.err conftest.$ac_objext \
10805 conftest$ac_exeext conftest.$ac_ext
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10808 $as_echo "$ac_cv_working_alloca_h" >&6; }
10809 if test $ac_cv_working_alloca_h = yes; then
10811 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10816 $as_echo_n "checking for alloca... " >&6; }
10817 if test "${ac_cv_func_alloca_works+set}" = set; then :
10818 $as_echo_n "(cached) " >&6
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10823 # define alloca __builtin_alloca
10826 # include <malloc.h>
10827 # define alloca _alloca
10829 # ifdef HAVE_ALLOCA_H
10830 # include <alloca.h>
10835 # ifndef alloca /* predefined by HP cc +Olibcalls */
10846 char *p = (char *) alloca (1);
10852 if ac_fn_c_try_link "$LINENO"; then :
10853 ac_cv_func_alloca_works=yes
10855 ac_cv_func_alloca_works=no
10857 rm -f core conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10861 $as_echo "$ac_cv_func_alloca_works" >&6; }
10863 if test $ac_cv_func_alloca_works = yes; then
10865 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10868 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10869 # that cause trouble. Some versions do not even contain alloca or
10870 # contain a buggy version. If you still want to use their alloca,
10871 # use ar to extract alloca.o from them instead of compiling alloca.c.
10873 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10875 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10879 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10880 if test "${ac_cv_os_cray+set}" = set; then :
10881 $as_echo_n "(cached) " >&6
10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h. */
10885 #if defined CRAY && ! defined CRAY2
10892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10893 $EGREP "webecray" >/dev/null 2>&1; then :
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10902 $as_echo "$ac_cv_os_cray" >&6; }
10903 if test $ac_cv_os_cray = yes; then
10904 for ac_func in _getb67 GETB67 getb67; do
10905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10906 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10907 eval as_val=\$$as_ac_var
10908 if test "x$as_val" = x""yes; then :
10910 cat >>confdefs.h <<_ACEOF
10911 #define CRAY_STACKSEG_END $ac_func
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10921 $as_echo_n "checking stack direction for C alloca... " >&6; }
10922 if test "${ac_cv_c_stack_direction+set}" = set; then :
10923 $as_echo_n "(cached) " >&6
10925 if test "$cross_compiling" = yes; then :
10926 ac_cv_c_stack_direction=0
10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h. */
10930 $ac_includes_default
10932 find_stack_direction ()
10934 static char *addr = 0;
10939 return find_stack_direction ();
10942 return (&dummy > addr) ? 1 : -1;
10948 return find_stack_direction () < 0;
10951 if ac_fn_c_try_run "$LINENO"; then :
10952 ac_cv_c_stack_direction=1
10954 ac_cv_c_stack_direction=-1
10956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10957 conftest.$ac_objext conftest.beam conftest.$ac_ext
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10962 $as_echo "$ac_cv_c_stack_direction" >&6; }
10963 cat >>confdefs.h <<_ACEOF
10964 #define STACK_DIRECTION $ac_cv_c_stack_direction
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10973 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10974 if test "${am_cv_langinfo_codeset+set}" = set; then :
10975 $as_echo_n "(cached) " >&6
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10979 #include <langinfo.h>
10983 char* cs = nl_langinfo(CODESET);
10988 if ac_fn_c_try_link "$LINENO"; then :
10989 am_cv_langinfo_codeset=yes
10991 am_cv_langinfo_codeset=no
10993 rm -f core conftest.err conftest.$ac_objext \
10994 conftest$ac_exeext conftest.$ac_ext
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10998 $as_echo "$am_cv_langinfo_codeset" >&6; }
10999 if test $am_cv_langinfo_codeset = yes; then
11001 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11006 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h
11008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11009 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11010 eval as_val=\$$as_ac_Header
11011 if test "x$as_val" = x""yes; then :
11012 cat >>confdefs.h <<_ACEOF
11013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11021 for ac_func in fdwalk getrlimit pipe pipe2 socketpair
11023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11024 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11025 eval as_val=\$$as_ac_var
11026 if test "x$as_val" = x""yes; then :
11027 cat >>confdefs.h <<_ACEOF
11028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11035 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11036 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11042 cat >>confdefs.h <<_ACEOF
11043 #define HAVE_DECL_STRERROR $ac_have_decl
11045 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11046 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11052 cat >>confdefs.h <<_ACEOF
11053 #define HAVE_DECL_STRSTR $ac_have_decl
11058 # Check the return and argument types of ptrace. No canned test for
11059 # this, so roll our own.
11060 gdb_ptrace_headers='
11061 #include <sys/types.h>
11062 #if HAVE_SYS_PTRACE_H
11063 # include <sys/ptrace.h>
11066 # include <unistd.h>
11069 # There is no point in checking if we don't have a prototype.
11070 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
11072 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
11078 cat >>confdefs.h <<_ACEOF
11079 #define HAVE_DECL_PTRACE $ac_have_decl
11081 if test $ac_have_decl = 1; then :
11085 : ${gdb_cv_func_ptrace_ret='int'}
11086 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11090 # Check return type. Varargs (used on GNU/Linux) conflict with the
11091 # empty argument list, so check for that explicitly.
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11093 $as_echo_n "checking return type of ptrace... " >&6; }
11094 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11099 $gdb_ptrace_headers
11103 extern long ptrace (enum __ptrace_request, ...);
11108 if ac_fn_c_try_compile "$LINENO"; then :
11109 gdb_cv_func_ptrace_ret='long'
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11113 $gdb_ptrace_headers
11117 extern int ptrace ();
11122 if ac_fn_c_try_compile "$LINENO"; then :
11123 gdb_cv_func_ptrace_ret='int'
11125 gdb_cv_func_ptrace_ret='long'
11127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11132 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11134 cat >>confdefs.h <<_ACEOF
11135 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11138 # Check argument types.
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11140 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11141 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11142 $as_echo_n "(cached) " >&6
11145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h. */
11147 $gdb_ptrace_headers
11151 extern long ptrace (enum __ptrace_request, ...);
11156 if ac_fn_c_try_compile "$LINENO"; then :
11157 gdb_cv_func_ptrace_args='int,int,long,long'
11160 for gdb_arg1 in 'int' 'long'; do
11161 for gdb_arg2 in 'pid_t' 'int' 'long'; do
11162 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11163 for gdb_arg4 in 'int' 'long' 'void *'; do
11164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h. */
11166 $gdb_ptrace_headers
11171 extern $gdb_cv_func_ptrace_ret
11172 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11178 if ac_fn_c_try_compile "$LINENO"; then :
11179 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183 for gdb_arg5 in 'int *' 'int' 'long'; do
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11186 $gdb_ptrace_headers
11191 extern $gdb_cv_func_ptrace_ret
11192 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11198 if ac_fn_c_try_compile "$LINENO"; then :
11200 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11209 # Provide a safe default value.
11210 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11216 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11217 ac_save_IFS=$IFS; IFS=','
11218 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11222 cat >>confdefs.h <<_ACEOF
11223 #define PTRACE_TYPE_ARG3 $3
11227 cat >>confdefs.h <<_ACEOF
11228 #define PTRACE_TYPE_ARG4 $4
11231 if test -n "$5"; then
11233 cat >>confdefs.h <<_ACEOF
11234 #define PTRACE_TYPE_ARG5 $5
11239 if test "$cross_compiling" = no; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11241 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11242 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11243 $as_echo_n "(cached) " >&6
11245 if test "$cross_compiling" = yes; then :
11246 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11250 $ac_includes_default
11254 /* If this system has a BSD-style setpgrp which takes arguments,
11255 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11256 exit successfully. */
11257 return setpgrp (1,1) != -1;
11262 if ac_fn_c_try_run "$LINENO"; then :
11263 ac_cv_func_setpgrp_void=no
11265 ac_cv_func_setpgrp_void=yes
11267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11268 conftest.$ac_objext conftest.beam conftest.$ac_ext
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11273 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11274 if test $ac_cv_func_setpgrp_void = yes; then
11276 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11282 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11283 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11284 $as_echo_n "(cached) " >&6
11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11289 #include <unistd.h>
11295 if (setpgrp(1,1) == -1)
11304 if ac_fn_c_try_compile "$LINENO"; then :
11305 ac_cv_func_setpgrp_void=no
11307 ac_cv_func_setpgrp_void=yes
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11312 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11313 if test $ac_cv_func_setpgrp_void = yes; then
11314 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11319 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
11320 # since sigsetjmp might only be defined as a macro.
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11322 $as_echo_n "checking for sigsetjmp... " >&6; }
11323 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11329 #include <setjmp.h>
11334 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11339 if ac_fn_c_try_compile "$LINENO"; then :
11340 gdb_cv_func_sigsetjmp=yes
11342 gdb_cv_func_sigsetjmp=no
11344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11347 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11348 if test $gdb_cv_func_sigsetjmp = yes; then
11350 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11354 # Assume we'll default to using the included libiberty regex.
11355 gdb_use_included_regex=yes
11357 # However, if the system regex is GNU regex, then default to *not*
11358 # using the included regex.
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11360 $as_echo_n "checking for GNU regex... " >&6; }
11361 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11362 $as_echo_n "(cached) " >&6
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11366 #include <gnu-versions.h>
11370 #define REGEX_INTERFACE_VERSION 1
11371 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11372 # error "Version mismatch"
11378 if ac_fn_c_try_compile "$LINENO"; then :
11379 gdb_cv_have_gnu_regex=yes
11381 gdb_cv_have_gnu_regex=no
11383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11386 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11387 if test $gdb_cv_have_gnu_regex = yes; then
11388 gdb_use_included_regex=no
11392 # Check whether --with-included-regex was given.
11393 if test "${with_included_regex+set}" = set; then :
11394 withval=$with_included_regex; gdb_with_regex=$withval
11396 gdb_with_regex=$gdb_use_included_regex
11399 if test "$gdb_with_regex" = yes; then
11401 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11405 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11406 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11407 #include <sys/proc.h>
11410 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
11412 cat >>confdefs.h <<_ACEOF
11413 #define HAVE_STRUCT_THREAD_TD_PCB 1
11420 # See if <sys/lwp.h> defines `struct lwp`.
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11422 $as_echo_n "checking for struct lwp... " >&6; }
11423 if test "${gdb_cv_struct_lwp+set}" = set; then :
11424 $as_echo_n "(cached) " >&6
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11428 #include <sys/param.h>
11429 #include <sys/lwp.h>
11438 if ac_fn_c_try_compile "$LINENO"; then :
11439 gdb_cv_struct_lwp=yes
11441 gdb_cv_struct_lwp=no
11443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11446 $as_echo "$gdb_cv_struct_lwp" >&6; }
11447 if test $gdb_cv_struct_lwp = yes; then
11449 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11453 # See if <machine/reg.h> degines `struct reg'.
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11455 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11456 if test "${gdb_cv_struct_reg+set}" = set; then :
11457 $as_echo_n "(cached) " >&6
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11461 #include <sys/types.h>
11462 #include <machine/reg.h>
11471 if ac_fn_c_try_compile "$LINENO"; then :
11472 gdb_cv_struct_reg=yes
11474 gdb_cv_struct_reg=no
11476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11479 $as_echo "$gdb_cv_struct_reg" >&6; }
11480 if test $gdb_cv_struct_reg = yes; then
11482 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11486 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11487 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11488 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11490 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
11492 cat >>confdefs.h <<_ACEOF
11493 #define HAVE_STRUCT_REG_R_FS 1
11498 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11500 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
11502 cat >>confdefs.h <<_ACEOF
11503 #define HAVE_STRUCT_REG_R_GS 1
11510 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
11511 # Older amd64 Linux's don't have the fs_base and gs_base members of
11512 # `struct user_regs_struct'.
11513 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/user.h>
11515 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
11517 cat >>confdefs.h <<_ACEOF
11518 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
11523 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/user.h>
11525 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
11527 cat >>confdefs.h <<_ACEOF
11528 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
11535 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11537 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11538 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11539 $as_echo_n "(cached) " >&6
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543 #include <sys/ptrace.h>
11552 if ac_fn_c_try_compile "$LINENO"; then :
11553 gdb_cv_have_ptrace_getregs=yes
11555 gdb_cv_have_ptrace_getregs=no
11557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11561 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11562 if test $gdb_cv_have_ptrace_getregs = yes; then
11564 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11568 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11570 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11571 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11572 $as_echo_n "(cached) " >&6
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11576 #include <sys/ptrace.h>
11585 if ac_fn_c_try_compile "$LINENO"; then :
11586 gdb_cv_have_ptrace_getfpxregs=yes
11588 gdb_cv_have_ptrace_getfpxregs=no
11590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11594 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11595 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11597 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11601 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11603 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11604 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11609 #include <sys/types.h>
11610 #include <sys/ptrace.h>
11619 if ac_fn_c_try_compile "$LINENO"; then :
11620 gdb_cv_have_pt_getdbregs=yes
11622 gdb_cv_have_pt_getdbregs=no
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11628 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11629 if test $gdb_cv_have_pt_getdbregs = yes; then
11631 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11635 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11637 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11638 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11639 $as_echo_n "(cached) " >&6
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11643 #include <sys/types.h>
11644 #include <sys/ptrace.h>
11653 if ac_fn_c_try_compile "$LINENO"; then :
11654 gdb_cv_have_pt_getxmmregs=yes
11656 gdb_cv_have_pt_getxmmregs=no
11658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11662 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11663 if test $gdb_cv_have_pt_getxmmregs = yes; then
11665 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11669 # Detect which type of /proc is in use, such as for Solaris.
11671 if test "${target}" = "${host}"; then
11673 *-*-sysv4.2* | *-*-sysv5* )
11675 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11678 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
11680 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11684 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
11686 $as_echo "#define _KMEMUSER 1" >>confdefs.h
11692 if test "$ac_cv_header_sys_procfs_h" = yes; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11694 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11695 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11696 $as_echo_n "(cached) " >&6
11698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h. */
11702 /* Needed for new procfs interface on sparc-solaris. */
11703 #define _STRUCTURED_PROC 1
11704 #include <sys/procfs.h>
11713 if ac_fn_c_try_compile "$LINENO"; then :
11714 bfd_cv_have_sys_procfs_type_gregset_t=yes
11716 bfd_cv_have_sys_procfs_type_gregset_t=no
11719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
11724 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
11728 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
11731 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
11732 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
11733 $as_echo_n "(cached) " >&6
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11739 /* Needed for new procfs interface on sparc-solaris. */
11740 #define _STRUCTURED_PROC 1
11741 #include <sys/procfs.h>
11750 if ac_fn_c_try_compile "$LINENO"; then :
11751 bfd_cv_have_sys_procfs_type_fpregset_t=yes
11753 bfd_cv_have_sys_procfs_type_fpregset_t=no
11756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11759 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
11761 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11765 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11768 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11769 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11770 $as_echo_n "(cached) " >&6
11772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h. */
11776 /* Needed for new procfs interface on sparc-solaris. */
11777 #define _STRUCTURED_PROC 1
11778 #include <sys/procfs.h>
11787 if ac_fn_c_try_compile "$LINENO"; then :
11788 bfd_cv_have_sys_procfs_type_prgregset_t=yes
11790 bfd_cv_have_sys_procfs_type_prgregset_t=no
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11798 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11802 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11805 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11806 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11813 /* Needed for new procfs interface on sparc-solaris. */
11814 #define _STRUCTURED_PROC 1
11815 #include <sys/procfs.h>
11824 if ac_fn_c_try_compile "$LINENO"; then :
11825 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
11827 bfd_cv_have_sys_procfs_type_prfpregset_t=no
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11835 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11839 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11842 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11843 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11850 /* Needed for new procfs interface on sparc-solaris. */
11851 #define _STRUCTURED_PROC 1
11852 #include <sys/procfs.h>
11861 if ac_fn_c_try_compile "$LINENO"; then :
11862 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
11864 bfd_cv_have_sys_procfs_type_prgregset32_t=no
11867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11872 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11876 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11879 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11880 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11881 $as_echo_n "(cached) " >&6
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11887 /* Needed for new procfs interface on sparc-solaris. */
11888 #define _STRUCTURED_PROC 1
11889 #include <sys/procfs.h>
11898 if ac_fn_c_try_compile "$LINENO"; then :
11899 bfd_cv_have_sys_procfs_type_lwpid_t=yes
11901 bfd_cv_have_sys_procfs_type_lwpid_t=no
11904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11907 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11909 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11913 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11916 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11917 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11918 $as_echo_n "(cached) " >&6
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11924 /* Needed for new procfs interface on sparc-solaris. */
11925 #define _STRUCTURED_PROC 1
11926 #include <sys/procfs.h>
11935 if ac_fn_c_try_compile "$LINENO"; then :
11936 bfd_cv_have_sys_procfs_type_psaddr_t=yes
11938 bfd_cv_have_sys_procfs_type_psaddr_t=no
11941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11946 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11950 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11953 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11954 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958 /* end confdefs.h. */
11961 /* Needed for new procfs interface on sparc-solaris. */
11962 #define _STRUCTURED_PROC 1
11963 #include <sys/procfs.h>
11972 if ac_fn_c_try_compile "$LINENO"; then :
11973 bfd_cv_have_sys_procfs_type_prsysent_t=yes
11975 bfd_cv_have_sys_procfs_type_prsysent_t=no
11978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11981 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11983 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11987 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11990 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11991 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11992 $as_echo_n "(cached) " >&6
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11998 /* Needed for new procfs interface on sparc-solaris. */
11999 #define _STRUCTURED_PROC 1
12000 #include <sys/procfs.h>
12009 if ac_fn_c_try_compile "$LINENO"; then :
12010 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
12012 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
12015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12018 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
12020 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
12024 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
12027 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
12028 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12029 $as_echo_n "(cached) " >&6
12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h. */
12035 /* Needed for new procfs interface on sparc-solaris. */
12036 #define _STRUCTURED_PROC 1
12037 #include <sys/procfs.h>
12041 pr_sigaction64_t avar
12046 if ac_fn_c_try_compile "$LINENO"; then :
12047 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
12049 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
12052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12057 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12061 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12064 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12065 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12066 $as_echo_n "(cached) " >&6
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12072 /* Needed for new procfs interface on sparc-solaris. */
12073 #define _STRUCTURED_PROC 1
12074 #include <sys/procfs.h>
12078 pr_siginfo64_t avar
12083 if ac_fn_c_try_compile "$LINENO"; then :
12084 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
12086 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
12089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12094 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12098 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12104 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12106 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12107 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12108 $as_echo_n "(cached) " >&6
12110 if test "$cross_compiling" = yes; then :
12111 gdb_cv_prfpregset_t_broken=yes
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12115 #include <sys/procfs.h>
12118 if (sizeof (prfpregset_t) == sizeof (void *))
12123 if ac_fn_c_try_run "$LINENO"; then :
12124 gdb_cv_prfpregset_t_broken=no
12126 gdb_cv_prfpregset_t_broken=yes
12128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12129 conftest.$ac_objext conftest.beam conftest.$ac_ext
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12135 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12136 if test $gdb_cv_prfpregset_t_broken = yes; then
12138 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12144 # Check if the compiler supports the `long long' type.
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12147 $as_echo_n "checking for long long support in compiler... " >&6; }
12148 if test "${gdb_cv_c_long_long+set}" = set; then :
12149 $as_echo_n "(cached) " >&6
12151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152 /* end confdefs.h. */
12153 extern long long foo;
12157 switch (foo & 2) { case 0: return 1; }
12162 if ac_fn_c_try_compile "$LINENO"; then :
12163 gdb_cv_c_long_long=yes
12165 gdb_cv_c_long_long=no
12167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12170 $as_echo "$gdb_cv_c_long_long" >&6; }
12171 if test $gdb_cv_c_long_long != yes; then
12172 # libdecnumber requires long long.
12173 as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
12176 # Check if the compiler and runtime support printing long longs.
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12179 $as_echo_n "checking for long long support in printf... " >&6; }
12180 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12183 if test "$cross_compiling" = yes; then :
12184 gdb_cv_printf_has_long_long=no
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12188 $ac_includes_default
12194 l = (l << 16) + 0x0123;
12195 l = (l << 16) + 0x4567;
12196 l = (l << 16) + 0x89ab;
12197 l = (l << 16) + 0xcdef;
12198 sprintf (buf, "0x%016llx", l);
12199 return (strcmp ("0x0123456789abcdef", buf));
12204 if ac_fn_c_try_run "$LINENO"; then :
12205 gdb_cv_printf_has_long_long=yes
12207 gdb_cv_printf_has_long_long=no
12209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12210 conftest.$ac_objext conftest.beam conftest.$ac_ext
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12215 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12216 if test $gdb_cv_printf_has_long_long = yes; then
12218 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12222 # Check if the compiler and runtime support printing decfloats.
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12225 $as_echo_n "checking for decfloat support in printf... " >&6; }
12226 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12227 $as_echo_n "(cached) " >&6
12229 if test "$cross_compiling" = yes; then :
12230 gdb_cv_printf_has_decfloat=no
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12234 $ac_includes_default
12239 _Decimal32 d32 = 1.2345df;
12240 _Decimal64 d64 = 1.2345dd;
12241 _Decimal128 d128 = 1.2345dl;
12242 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12243 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12248 if ac_fn_c_try_run "$LINENO"; then :
12249 gdb_cv_printf_has_decfloat=yes
12251 gdb_cv_printf_has_decfloat=no
12253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12254 conftest.$ac_objext conftest.beam conftest.$ac_ext
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12259 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12260 if test $gdb_cv_printf_has_decfloat = yes; then
12262 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12266 # Check if the compiler supports the `long double' type. We can't use
12267 # AC_C_LONG_DOUBLE because that one does additional checks on the
12268 # constants defined in <float.h> that fail on some systems,
12269 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12272 $as_echo_n "checking for long double support in compiler... " >&6; }
12273 if test "${gdb_cv_c_long_double+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12280 if ac_fn_c_try_compile "$LINENO"; then :
12281 gdb_cv_c_long_double=yes
12283 gdb_cv_c_long_double=no
12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12288 $as_echo "$gdb_cv_c_long_double" >&6; }
12289 if test $gdb_cv_c_long_double = yes; then
12291 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12295 # Check if the compiler and runtime support printing long doubles.
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12298 $as_echo_n "checking for long double support in printf... " >&6; }
12299 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12300 $as_echo_n "(cached) " >&6
12302 if test "$cross_compiling" = yes; then :
12303 gdb_cv_printf_has_long_double=no
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h. */
12307 $ac_includes_default
12312 long double f = 3.141592653;
12313 sprintf (buf, "%Lg", f);
12314 return (strncmp ("3.14159", buf, 7));
12319 if ac_fn_c_try_run "$LINENO"; then :
12320 gdb_cv_printf_has_long_double=yes
12322 gdb_cv_printf_has_long_double=no
12324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12325 conftest.$ac_objext conftest.beam conftest.$ac_ext
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12330 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12331 if test $gdb_cv_printf_has_long_double = yes; then
12333 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12337 # Check if the compiler and runtime support scanning long doubles.
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12340 $as_echo_n "checking for long double support in scanf... " >&6; }
12341 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12342 $as_echo_n "(cached) " >&6
12344 if test "$cross_compiling" = yes; then :
12345 gdb_cv_scanf_has_long_double=no
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12353 char *buf = "3.141592653";
12355 sscanf (buf, "%Lg", &f);
12356 return !(f > 3.14159 && f < 3.14160);
12361 if ac_fn_c_try_run "$LINENO"; then :
12362 gdb_cv_scanf_has_long_double=yes
12364 gdb_cv_scanf_has_long_double=no
12366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12367 conftest.$ac_objext conftest.beam conftest.$ac_ext
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12372 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12373 if test $gdb_cv_scanf_has_long_double = yes; then
12375 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12382 $as_echo_n "checking for -bbigtoc option... " >&6; }
12383 if test "${gdb_cv_bigtoc+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12387 SAVE_LDFLAGS=$LDFLAGS
12390 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
12391 *) gdb_cv_bigtoc=-bbigtoc ;;
12394 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12406 if ac_fn_c_try_link "$LINENO"; then :
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 LDFLAGS="${SAVE_LDFLAGS}"
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12417 $as_echo "$gdb_cv_bigtoc" >&6; }
12418 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
12423 $as_echo_n "checking for the dynamic export flag... " >&6; }
12425 if test "${gdb_native}" = yes; then
12426 # The dynamically loaded libthread_db needs access to symbols in the gdb
12427 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
12428 # may not be supported there.
12429 old_LDFLAGS="$LDFLAGS"
12430 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
12431 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
12432 LDFLAGS="$LDFLAGS $RDYNAMIC"
12433 if test "${have_libpython}" = no; then
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12445 if ac_fn_c_try_link "$LINENO"; then :
12448 rm -f core conftest.err conftest.$ac_objext \
12449 conftest$ac_exeext conftest.$ac_ext
12451 # Workaround http://bugs.python.org/issue4434 where static
12452 # libpythonX.Y.a would get its symbols required for
12453 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
12454 # Problem does not happen for the recommended libpythonX.Y.so linkage.
12455 old_CFLAGS="$CFLAGS"
12456 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
12458 LIBS="$LIBS $PYTHON_LIBS"
12459 if test "$cross_compiling" = yes; then :
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h. */
12464 #include "${have_libpython}/Python.h"
12470 err = PyRun_SimpleString ("import itertools\n");
12472 return err == 0 ? 0 : 1;
12477 if ac_fn_c_try_run "$LINENO"; then :
12480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12481 conftest.$ac_objext conftest.beam conftest.$ac_ext
12485 CFLAGS="$old_CFLAGS"
12487 LDFLAGS="$old_LDFLAGS"
12489 if $dynamic_list; then
12490 found="-Wl,--dynamic-list"
12491 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
12494 RDYNAMIC="-rdynamic"
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12498 $as_echo "$found" >&6; }
12501 if test ${build} = ${host} -a ${host} = ${target} ; then
12504 # See if thread_db library is around for Solaris thread debugging.
12505 # Note that we must explicitly test for version 1 of the library
12506 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12509 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12510 if test -f /usr/lib/libthread_db.so.1 ; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12512 $as_echo "yes" >&6; }
12514 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12516 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
12517 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12519 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12520 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12521 $as_echo_n "(cached) " >&6
12523 ac_check_lib_save_LIBS=$LIBS
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12528 /* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12543 if ac_fn_c_try_link "$LINENO"; then :
12544 ac_cv_lib_dl_dlopen=yes
12546 ac_cv_lib_dl_dlopen=no
12548 rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12550 LIBS=$ac_check_lib_save_LIBS
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12553 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12554 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12555 cat >>confdefs.h <<_ACEOF
12556 #define HAVE_LIBDL 1
12563 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
12564 # Sun randomly tweaked the prototypes in <proc_service.h>
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12567 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12568 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h. */
12575 #include <proc_service.h>
12576 ps_err_e ps_pdwrite
12577 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12587 if ac_fn_c_try_compile "$LINENO"; then :
12588 gdb_cv_proc_service_is_old=no
12590 gdb_cv_proc_service_is_old=yes
12592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12597 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12598 if test $gdb_cv_proc_service_is_old = yes; then
12600 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12610 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12611 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12612 $as_echo_n "(cached) " >&6
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12616 #include <sys/pthdebug.h>
12620 #ifndef PTHDB_VERSION_3
12627 if ac_fn_c_try_compile "$LINENO"; then :
12628 gdb_cv_have_aix_thread_debug=yes
12630 gdb_cv_have_aix_thread_debug=no
12632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12636 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12637 if test $gdb_cv_have_aix_thread_debug = yes; then
12638 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
12639 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
12640 LIBS="$LIBS -lpthdebug"
12642 # Older versions of AIX do not provide the declaration for
12643 # the getthrds function (it appears that it was introduced
12645 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12647 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
12653 cat >>confdefs.h <<_ACEOF
12654 #define HAVE_DECL_GETTHRDS $ac_have_decl
12663 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12665 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12666 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12667 $as_echo_n "(cached) " >&6
12669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12670 /* end confdefs.h. */
12671 #include <thread_db.h>
12675 int i = TD_NOTALLOC;
12680 if ac_fn_c_try_compile "$LINENO"; then :
12681 gdb_cv_thread_db_h_has_td_notalloc=yes
12683 gdb_cv_thread_db_h_has_td_notalloc=no
12686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12690 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12692 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12693 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12694 $as_echo_n "(cached) " >&6
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12698 #include <thread_db.h>
12702 int i = TD_VERSION;
12707 if ac_fn_c_try_compile "$LINENO"; then :
12708 gdb_cv_thread_db_h_has_td_version=yes
12710 gdb_cv_thread_db_h_has_td_version=no
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12717 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12719 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12720 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12725 #include <thread_db.h>
12734 if ac_fn_c_try_compile "$LINENO"; then :
12735 gdb_cv_thread_db_h_has_td_notls=yes
12737 gdb_cv_thread_db_h_has_td_notls=no
12740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12744 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12746 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12748 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12751 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12753 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12756 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12758 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12762 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12764 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12765 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12766 $as_echo_n "(cached) " >&6
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12770 #include <sys/syscall.h>
12774 int i = __NR_tkill;
12779 if ac_fn_c_try_compile "$LINENO"; then :
12780 gdb_cv_sys_syscall_h_has_tkill=yes
12782 gdb_cv_sys_syscall_h_has_tkill=no
12785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12789 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12791 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
12792 ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
12793 if test "x$ac_cv_func_syscall" = x""yes; then :
12795 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12802 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12804 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
12810 cat >>confdefs.h <<_ACEOF
12811 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12815 if test "$cross_compiling" = yes; then :
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818 #include <sys/personality.h>
12823 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12824 # define ADDR_NO_RANDOMIZE 0x0040000
12826 /* Test the flag could be set and stays set. */
12827 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12828 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12834 if ac_fn_c_try_link "$LINENO"; then :
12835 have_personality=true
12837 have_personality=false
12839 rm -f core conftest.err conftest.$ac_objext \
12840 conftest$ac_exeext conftest.$ac_ext
12842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12843 /* end confdefs.h. */
12844 #include <sys/personality.h>
12849 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12850 # define ADDR_NO_RANDOMIZE 0x0040000
12852 /* Test the flag could be set and stays set. */
12853 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12854 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12860 if ac_fn_c_try_run "$LINENO"; then :
12861 have_personality=true
12863 have_personality=false
12865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12866 conftest.$ac_objext conftest.beam conftest.$ac_ext
12869 if $have_personality
12872 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12885 cat >>confdefs.h <<_ACEOF
12886 #define GDBINIT "$gdbinit"
12891 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12892 # except that the argument to --with-sysroot is optional.
12893 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12894 if test "x$with_sysroot" = xyes; then
12895 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
12898 # Check whether --with-sysroot was given.
12899 if test "${with_sysroot+set}" = set; then :
12900 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
12902 TARGET_SYSTEM_ROOT=
12906 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12907 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12908 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
12909 ac_define_dir=`eval echo $ac_define_dir`
12911 cat >>confdefs.h <<_ACEOF
12912 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12918 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12919 if test "x$prefix" = xNONE; then
12920 test_prefix=/usr/local
12922 test_prefix=$prefix
12925 test_prefix=$exec_prefix
12928 case ${ac_define_dir} in
12929 "${test_prefix}"|"${test_prefix}/"*|\
12930 '${exec_prefix}'|'${exec_prefix}/'*)
12935 cat >>confdefs.h <<_ACEOF
12936 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12943 # Check whether --with-system-gdbinit was given.
12944 if test "${with_system_gdbinit+set}" = set; then :
12945 withval=$with_system_gdbinit;
12946 SYSTEM_GDBINIT=$withval
12952 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12953 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12954 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
12955 ac_define_dir=`eval echo $ac_define_dir`
12957 cat >>confdefs.h <<_ACEOF
12958 #define SYSTEM_GDBINIT "$ac_define_dir"
12964 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12965 if test "x$prefix" = xNONE; then
12966 test_prefix=/usr/local
12968 test_prefix=$prefix
12971 test_prefix=$exec_prefix
12974 case ${ac_define_dir} in
12975 "${test_prefix}"|"${test_prefix}/"*|\
12976 '${exec_prefix}'|'${exec_prefix}/'*)
12981 cat >>confdefs.h <<_ACEOF
12982 #define SYSTEM_GDBINIT_RELOCATABLE $value
12988 # Check whether --enable-werror was given.
12989 if test "${enable_werror+set}" = set; then :
12990 enableval=$enable_werror; case "${enableval}" in
12991 yes | y) ERROR_ON_WARNING="yes" ;;
12992 no | n) ERROR_ON_WARNING="no" ;;
12993 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12998 # Enable -Werror by default when using gcc. Turn it off for releases.
12999 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
13000 ERROR_ON_WARNING=yes
13004 if test "${ERROR_ON_WARNING}" = yes ; then
13005 WERROR_CFLAGS="-Werror"
13008 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13010 -Wno-unused -Wunused-value -Wunused-function \
13011 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
13012 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
13013 -Wold-style-declaration -Wold-style-definition"
13015 # Enable -Wno-format by default when using gcc on mingw since many
13016 # GCC versions complain about %I64.
13018 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
13019 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
13022 # Check whether --enable-build-warnings was given.
13023 if test "${enable_build_warnings+set}" = set; then :
13024 enableval=$enable_build_warnings; case "${enableval}" in
13026 no) build_warnings="-w";;
13027 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13028 build_warnings="${build_warnings} ${t}";;
13029 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13030 build_warnings="${t} ${build_warnings}";;
13031 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13033 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13034 echo "Setting compiler warning flags = $build_warnings" 6>&1
13037 # Check whether --enable-gdb-build-warnings was given.
13038 if test "${enable_gdb_build_warnings+set}" = set; then :
13039 enableval=$enable_gdb_build_warnings; case "${enableval}" in
13041 no) build_warnings="-w";;
13042 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13043 build_warnings="${build_warnings} ${t}";;
13044 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13045 build_warnings="${t} ${build_warnings}";;
13046 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13048 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13049 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13053 if test "x${build_warnings}" != x -a "x$GCC" = xyes
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13056 $as_echo_n "checking compiler warning flags... " >&6; }
13057 # Separate out the -Werror flag as some files just cannot be
13058 # compiled with it enabled.
13059 for w in ${build_warnings}; do
13061 -Werr*) WERROR_CFLAGS=-Werror ;;
13062 *) # Check that GCC accepts it
13063 saved_CFLAGS="$CFLAGS"
13064 CFLAGS="$CFLAGS $w"
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13076 if ac_fn_c_try_compile "$LINENO"; then :
13077 WARN_CFLAGS="${WARN_CFLAGS} $w"
13079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080 CFLAGS="$saved_CFLAGS"
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13084 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13089 # In the Cygwin environment, we need some additional flags.
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13091 $as_echo_n "checking for cygwin... " >&6; }
13092 if test "${gdb_cv_os_cygwin+set}" = set; then :
13093 $as_echo_n "(cached) " >&6
13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h. */
13098 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13103 $EGREP "^lose$" >/dev/null 2>&1; then :
13104 gdb_cv_os_cygwin=yes
13106 gdb_cv_os_cygwin=no
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
13112 $as_echo "$gdb_cv_os_cygwin" >&6; }
13115 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
13117 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13118 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13119 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
13123 # libreadline needs libuser32.a in a cygwin environment
13125 if test x$gdb_cv_os_cygwin = xyes; then
13126 WIN32LIBS="-luser32"
13127 case "${target}" in
13128 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13133 # The ser-tcp.c module requires sockets.
13137 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13139 WIN32LIBS="$WIN32LIBS -lws2_32"
13144 # Add ELF support to GDB, but only if BFD includes ELF support.
13147 OLD_LDFLAGS=$LDFLAGS
13149 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13150 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13151 # always want our bfd.
13152 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13153 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
13154 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13155 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13156 if test "$plugins" = "yes"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13158 $as_echo_n "checking for library containing dlopen... " >&6; }
13159 if test "${ac_cv_search_dlopen+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13162 ac_func_search_save_LIBS=$LIBS
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13166 /* Override any GCC internal prototype to avoid an error.
13167 Use char because int might match the return type of a GCC
13168 builtin and then its argument prototype would still apply. */
13181 for ac_lib in '' dl; do
13182 if test -z "$ac_lib"; then
13183 ac_res="none required"
13186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13188 if ac_fn_c_try_link "$LINENO"; then :
13189 ac_cv_search_dlopen=$ac_res
13191 rm -f core conftest.err conftest.$ac_objext \
13193 if test "${ac_cv_search_dlopen+set}" = set; then :
13197 if test "${ac_cv_search_dlopen+set}" = set; then :
13200 ac_cv_search_dlopen=no
13202 rm conftest.$ac_ext
13203 LIBS=$ac_func_search_save_LIBS
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13206 $as_echo "$ac_cv_search_dlopen" >&6; }
13207 ac_res=$ac_cv_search_dlopen
13208 if test "$ac_res" != no; then :
13209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13214 LIBS="-lbfd -liberty $intl $LIBS"
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13216 $as_echo_n "checking for ELF support in BFD... " >&6; }
13217 if test "${gdb_cv_var_elf+set}" = set; then :
13218 $as_echo_n "(cached) " >&6
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13222 #include <stdlib.h>
13224 #include "elf-bfd.h"
13229 return bfd_get_elf_phdr_upper_bound (NULL);
13234 if ac_fn_c_try_link "$LINENO"; then :
13239 rm -f core conftest.err conftest.$ac_objext \
13240 conftest$ac_exeext conftest.$ac_ext
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13243 $as_echo "$gdb_cv_var_elf" >&6; }
13245 LDFLAGS=$OLD_LDFLAGS
13247 if test $gdb_cv_var_elf = yes; then
13248 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o"
13250 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13252 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13253 if test "$plugins" = "yes"; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13255 $as_echo_n "checking for library containing dlopen... " >&6; }
13256 if test "${ac_cv_search_dlopen+set}" = set; then :
13257 $as_echo_n "(cached) " >&6
13259 ac_func_search_save_LIBS=$LIBS
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13263 /* Override any GCC internal prototype to avoid an error.
13264 Use char because int might match the return type of a GCC
13265 builtin and then its argument prototype would still apply. */
13278 for ac_lib in '' dl; do
13279 if test -z "$ac_lib"; then
13280 ac_res="none required"
13283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13285 if ac_fn_c_try_link "$LINENO"; then :
13286 ac_cv_search_dlopen=$ac_res
13288 rm -f core conftest.err conftest.$ac_objext \
13290 if test "${ac_cv_search_dlopen+set}" = set; then :
13294 if test "${ac_cv_search_dlopen+set}" = set; then :
13297 ac_cv_search_dlopen=no
13299 rm conftest.$ac_ext
13300 LIBS=$ac_func_search_save_LIBS
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13303 $as_echo "$ac_cv_search_dlopen" >&6; }
13304 ac_res=$ac_cv_search_dlopen
13305 if test "$ac_res" != no; then :
13306 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13313 # Add macho support to GDB, but only if BFD includes it.
13316 OLD_LDFLAGS=$LDFLAGS
13318 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13319 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13320 # always want our bfd.
13321 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13322 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
13323 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13324 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13325 if test "$plugins" = "yes"; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13327 $as_echo_n "checking for library containing dlopen... " >&6; }
13328 if test "${ac_cv_search_dlopen+set}" = set; then :
13329 $as_echo_n "(cached) " >&6
13331 ac_func_search_save_LIBS=$LIBS
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13335 /* Override any GCC internal prototype to avoid an error.
13336 Use char because int might match the return type of a GCC
13337 builtin and then its argument prototype would still apply. */
13350 for ac_lib in '' dl; do
13351 if test -z "$ac_lib"; then
13352 ac_res="none required"
13355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13357 if ac_fn_c_try_link "$LINENO"; then :
13358 ac_cv_search_dlopen=$ac_res
13360 rm -f core conftest.err conftest.$ac_objext \
13362 if test "${ac_cv_search_dlopen+set}" = set; then :
13366 if test "${ac_cv_search_dlopen+set}" = set; then :
13369 ac_cv_search_dlopen=no
13371 rm conftest.$ac_ext
13372 LIBS=$ac_func_search_save_LIBS
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13375 $as_echo "$ac_cv_search_dlopen" >&6; }
13376 ac_res=$ac_cv_search_dlopen
13377 if test "$ac_res" != no; then :
13378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13383 LIBS="-lbfd -liberty $intl $LIBS"
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
13385 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
13386 if test "${gdb_cv_var_macho+set}" = set; then :
13387 $as_echo_n "(cached) " >&6
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13391 #include <stdlib.h>
13393 #include "mach-o.h"
13398 return bfd_mach_o_lookup_command (NULL, 0, NULL);
13403 if ac_fn_c_try_link "$LINENO"; then :
13404 gdb_cv_var_macho=yes
13406 gdb_cv_var_macho=no
13408 rm -f core conftest.err conftest.$ac_objext \
13409 conftest$ac_exeext conftest.$ac_ext
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
13412 $as_echo "$gdb_cv_var_macho" >&6; }
13414 LDFLAGS=$OLD_LDFLAGS
13416 if test $gdb_cv_var_macho = yes; then
13417 CONFIG_OBS="$CONFIG_OBS machoread.o"
13420 # Add SOM support to GDB, but only if BFD includes it.
13423 OLD_LDFLAGS=$LDFLAGS
13425 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13426 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13427 # always want our bfd.
13428 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13429 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
13430 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13431 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13432 if test "$plugins" = "yes"; then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13434 $as_echo_n "checking for library containing dlopen... " >&6; }
13435 if test "${ac_cv_search_dlopen+set}" = set; then :
13436 $as_echo_n "(cached) " >&6
13438 ac_func_search_save_LIBS=$LIBS
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13442 /* Override any GCC internal prototype to avoid an error.
13443 Use char because int might match the return type of a GCC
13444 builtin and then its argument prototype would still apply. */
13457 for ac_lib in '' dl; do
13458 if test -z "$ac_lib"; then
13459 ac_res="none required"
13462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13464 if ac_fn_c_try_link "$LINENO"; then :
13465 ac_cv_search_dlopen=$ac_res
13467 rm -f core conftest.err conftest.$ac_objext \
13469 if test "${ac_cv_search_dlopen+set}" = set; then :
13473 if test "${ac_cv_search_dlopen+set}" = set; then :
13476 ac_cv_search_dlopen=no
13478 rm conftest.$ac_ext
13479 LIBS=$ac_func_search_save_LIBS
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13482 $as_echo "$ac_cv_search_dlopen" >&6; }
13483 ac_res=$ac_cv_search_dlopen
13484 if test "$ac_res" != no; then :
13485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13490 LIBS="-lbfd -liberty $intl $LIBS"
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOM support in BFD" >&5
13492 $as_echo_n "checking for SOM support in BFD... " >&6; }
13493 if test "${gdb_cv_var_som+set}" = set; then :
13494 $as_echo_n "(cached) " >&6
13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13498 #include <stdlib.h>
13505 return bfd_som_attach_aux_hdr (NULL, 0, NULL);
13510 if ac_fn_c_try_link "$LINENO"; then :
13515 rm -f core conftest.err conftest.$ac_objext \
13516 conftest$ac_exeext conftest.$ac_ext
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_som" >&5
13519 $as_echo "$gdb_cv_var_som" >&6; }
13521 LDFLAGS=$OLD_LDFLAGS
13523 if test $gdb_cv_var_som = yes; then
13524 CONFIG_OBS="$CONFIG_OBS somread.o"
13527 # Add any host-specific objects to GDB.
13528 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
13530 # If building on ELF, look for lzma support for embedded compressed debug info.
13531 if test $gdb_cv_var_elf = yes; then
13533 # Check whether --with-lzma was given.
13534 if test "${with_lzma+set}" = set; then :
13535 withval=$with_lzma;
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
13541 $as_echo_n "checking whether to use lzma... " >&6; }
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
13543 $as_echo "$with_lzma" >&6; }
13545 if test "${with_lzma}" != no; then
13556 acl_save_prefix="$prefix"
13557 prefix="$acl_final_prefix"
13558 acl_save_exec_prefix="$exec_prefix"
13559 exec_prefix="$acl_final_exec_prefix"
13561 eval additional_includedir=\"$includedir\"
13562 eval additional_libdir=\"$libdir\"
13564 exec_prefix="$acl_save_exec_prefix"
13565 prefix="$acl_save_prefix"
13568 # Check whether --with-liblzma-prefix was given.
13569 if test "${with_liblzma_prefix+set}" = set; then :
13570 withval=$with_liblzma_prefix;
13571 if test "X$withval" = "Xno"; then
13574 if test "X$withval" = "X"; then
13576 acl_save_prefix="$prefix"
13577 prefix="$acl_final_prefix"
13578 acl_save_exec_prefix="$exec_prefix"
13579 exec_prefix="$acl_final_exec_prefix"
13581 eval additional_includedir=\"$includedir\"
13582 eval additional_libdir=\"$libdir\"
13584 exec_prefix="$acl_save_exec_prefix"
13585 prefix="$acl_save_prefix"
13588 additional_includedir="$withval/include"
13589 additional_libdir="$withval/lib"
13600 names_already_handled=
13601 names_next_round='lzma '
13602 while test -n "$names_next_round"; do
13603 names_this_round="$names_next_round"
13605 for name in $names_this_round; do
13607 for n in $names_already_handled; do
13608 if test "$n" = "$name"; then
13609 already_handled=yes
13613 if test -z "$already_handled"; then
13614 names_already_handled="$names_already_handled $name"
13615 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13616 eval value=\"\$HAVE_LIB$uppername\"
13617 if test -n "$value"; then
13618 if test "$value" = yes; then
13619 eval value=\"\$LIB$uppername\"
13620 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
13621 eval value=\"\$LTLIB$uppername\"
13622 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
13631 if test $use_additional = yes; then
13632 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13633 found_dir="$additional_libdir"
13634 found_so="$additional_libdir/lib$name.$shlibext"
13635 if test -f "$additional_libdir/lib$name.la"; then
13636 found_la="$additional_libdir/lib$name.la"
13639 if test -f "$additional_libdir/lib$name.$libext"; then
13640 found_dir="$additional_libdir"
13641 found_a="$additional_libdir/lib$name.$libext"
13642 if test -f "$additional_libdir/lib$name.la"; then
13643 found_la="$additional_libdir/lib$name.la"
13648 if test "X$found_dir" = "X"; then
13649 for x in $LDFLAGS $LTLIBLZMA; do
13651 acl_save_prefix="$prefix"
13652 prefix="$acl_final_prefix"
13653 acl_save_exec_prefix="$exec_prefix"
13654 exec_prefix="$acl_final_exec_prefix"
13656 exec_prefix="$acl_save_exec_prefix"
13657 prefix="$acl_save_prefix"
13661 dir=`echo "X$x" | sed -e 's/^X-L//'`
13662 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13664 found_so="$dir/lib$name.$shlibext"
13665 if test -f "$dir/lib$name.la"; then
13666 found_la="$dir/lib$name.la"
13669 if test -f "$dir/lib$name.$libext"; then
13671 found_a="$dir/lib$name.$libext"
13672 if test -f "$dir/lib$name.la"; then
13673 found_la="$dir/lib$name.la"
13679 if test "X$found_dir" != "X"; then
13684 if test "X$found_dir" != "X"; then
13685 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
13686 if test "X$found_so" != "X"; then
13687 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13688 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13691 for x in $ltrpathdirs; do
13692 if test "X$x" = "X$found_dir"; then
13697 if test -z "$haveit"; then
13698 ltrpathdirs="$ltrpathdirs $found_dir"
13700 if test "$hardcode_direct" = yes; then
13701 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13703 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13704 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13706 for x in $rpathdirs; do
13707 if test "X$x" = "X$found_dir"; then
13712 if test -z "$haveit"; then
13713 rpathdirs="$rpathdirs $found_dir"
13717 for x in $LDFLAGS $LIBLZMA; do
13719 acl_save_prefix="$prefix"
13720 prefix="$acl_final_prefix"
13721 acl_save_exec_prefix="$exec_prefix"
13722 exec_prefix="$acl_final_exec_prefix"
13724 exec_prefix="$acl_save_exec_prefix"
13725 prefix="$acl_save_prefix"
13727 if test "X$x" = "X-L$found_dir"; then
13732 if test -z "$haveit"; then
13733 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
13735 if test "$hardcode_minus_L" != no; then
13736 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13738 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
13744 if test "X$found_a" != "X"; then
13745 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
13747 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
13750 additional_includedir=
13751 case "$found_dir" in
13753 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13754 additional_includedir="$basedir/include"
13757 if test "X$additional_includedir" != "X"; then
13758 if test "X$additional_includedir" != "X/usr/include"; then
13760 if test "X$additional_includedir" = "X/usr/local/include"; then
13761 if test -n "$GCC"; then
13763 linux*) haveit=yes;;
13767 if test -z "$haveit"; then
13768 for x in $CPPFLAGS $INCLZMA; do
13770 acl_save_prefix="$prefix"
13771 prefix="$acl_final_prefix"
13772 acl_save_exec_prefix="$exec_prefix"
13773 exec_prefix="$acl_final_exec_prefix"
13775 exec_prefix="$acl_save_exec_prefix"
13776 prefix="$acl_save_prefix"
13778 if test "X$x" = "X-I$additional_includedir"; then
13783 if test -z "$haveit"; then
13784 if test -d "$additional_includedir"; then
13785 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
13791 if test -n "$found_la"; then
13792 save_libdir="$libdir"
13793 case "$found_la" in
13794 */* | *\\*) . "$found_la" ;;
13795 *) . "./$found_la" ;;
13797 libdir="$save_libdir"
13798 for dep in $dependency_libs; do
13801 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13802 if test "X$additional_libdir" != "X/usr/lib"; then
13804 if test "X$additional_libdir" = "X/usr/local/lib"; then
13805 if test -n "$GCC"; then
13807 linux*) haveit=yes;;
13811 if test -z "$haveit"; then
13813 for x in $LDFLAGS $LIBLZMA; do
13815 acl_save_prefix="$prefix"
13816 prefix="$acl_final_prefix"
13817 acl_save_exec_prefix="$exec_prefix"
13818 exec_prefix="$acl_final_exec_prefix"
13820 exec_prefix="$acl_save_exec_prefix"
13821 prefix="$acl_save_prefix"
13823 if test "X$x" = "X-L$additional_libdir"; then
13828 if test -z "$haveit"; then
13829 if test -d "$additional_libdir"; then
13830 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
13834 for x in $LDFLAGS $LTLIBLZMA; do
13836 acl_save_prefix="$prefix"
13837 prefix="$acl_final_prefix"
13838 acl_save_exec_prefix="$exec_prefix"
13839 exec_prefix="$acl_final_exec_prefix"
13841 exec_prefix="$acl_save_exec_prefix"
13842 prefix="$acl_save_prefix"
13844 if test "X$x" = "X-L$additional_libdir"; then
13849 if test -z "$haveit"; then
13850 if test -d "$additional_libdir"; then
13851 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
13858 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13859 if test "$enable_rpath" != no; then
13861 for x in $rpathdirs; do
13862 if test "X$x" = "X$dir"; then
13867 if test -z "$haveit"; then
13868 rpathdirs="$rpathdirs $dir"
13871 for x in $ltrpathdirs; do
13872 if test "X$x" = "X$dir"; then
13877 if test -z "$haveit"; then
13878 ltrpathdirs="$ltrpathdirs $dir"
13883 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13886 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13889 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
13890 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
13896 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
13897 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
13903 if test "X$rpathdirs" != "X"; then
13904 if test -n "$hardcode_libdir_separator"; then
13906 for found_dir in $rpathdirs; do
13907 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13909 acl_save_libdir="$libdir"
13911 eval flag=\"$hardcode_libdir_flag_spec\"
13912 libdir="$acl_save_libdir"
13913 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
13915 for found_dir in $rpathdirs; do
13916 acl_save_libdir="$libdir"
13917 libdir="$found_dir"
13918 eval flag=\"$hardcode_libdir_flag_spec\"
13919 libdir="$acl_save_libdir"
13920 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
13924 if test "X$ltrpathdirs" != "X"; then
13925 for found_dir in $ltrpathdirs; do
13926 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
13931 ac_save_CPPFLAGS="$CPPFLAGS"
13933 for element in $INCLZMA; do
13935 for x in $CPPFLAGS; do
13937 acl_save_prefix="$prefix"
13938 prefix="$acl_final_prefix"
13939 acl_save_exec_prefix="$exec_prefix"
13940 exec_prefix="$acl_final_exec_prefix"
13942 exec_prefix="$acl_save_exec_prefix"
13943 prefix="$acl_save_prefix"
13945 if test "X$x" = "X$element"; then
13950 if test -z "$haveit"; then
13951 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
13957 $as_echo_n "checking for liblzma... " >&6; }
13958 if test "${ac_cv_liblzma+set}" = set; then :
13959 $as_echo_n "(cached) " >&6
13962 ac_save_LIBS="$LIBS"
13963 LIBS="$LIBS $LIBLZMA"
13964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965 /* end confdefs.h. */
13970 lzma_index_iter iter;
13971 lzma_index_iter_init (&iter, 0);
13972 lzma_mf_is_supported (LZMA_MF_HC3);
13977 if ac_fn_c_try_link "$LINENO"; then :
13982 rm -f core conftest.err conftest.$ac_objext \
13983 conftest$ac_exeext conftest.$ac_ext
13984 LIBS="$ac_save_LIBS"
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
13988 $as_echo "$ac_cv_liblzma" >&6; }
13989 if test "$ac_cv_liblzma" = yes; then
13992 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
13995 $as_echo_n "checking how to link with liblzma... " >&6; }
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
13997 $as_echo "$LIBLZMA" >&6; }
14000 CPPFLAGS="$ac_save_CPPFLAGS"
14010 if test "$HAVE_LIBLZMA" != yes; then
14011 if test "$with_lzma" = yes; then
14012 as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
14018 LIBGUI="../libgui/src/libgui.a"
14019 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
14028 *-*-cygwin* | *-*-mingw* )
14037 if test "${enable_gdbtk}" = "yes"; then
14039 # Gdbtk must have an absolute path to srcdir in order to run
14040 # properly when not installed.
14043 GDBTK_SRC_DIR=`pwd`
14048 # Ok, lets find the tcl configuration
14049 # First, look for one uninstalled.
14050 # the alternative search directory is invoked by --with-tcl
14053 if test x"${no_tcl}" = x ; then
14054 # we reset no_tcl in case something fails here
14057 # Check whether --with-tcl was given.
14058 if test "${with_tcl+set}" = set; then :
14059 withval=$with_tcl; with_tclconfig=${withval}
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14063 $as_echo_n "checking for Tcl configuration... " >&6; }
14064 if test "${ac_cv_c_tclconfig+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14069 # First check to see if --with-tcl was specified.
14071 *-*-cygwin*) platDir="win" ;;
14072 *) platDir="unix" ;;
14074 if test x"${with_tclconfig}" != x ; then
14075 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14076 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
14078 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14082 # then check for a private Tcl installation
14083 if test x"${ac_cv_c_tclconfig}" = x ; then
14086 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14087 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14088 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14090 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14091 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14092 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14094 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14095 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14096 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14097 if test -f "$i/$platDir/tclConfig.sh" ; then
14098 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14104 # on Darwin, check in Framework installation locations
14105 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
14106 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14107 `ls -d /Library/Frameworks 2>/dev/null` \
14108 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14109 `ls -d /System/Library/Frameworks 2>/dev/null` \
14111 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14112 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
14118 # check in a few common install locations
14119 if test x"${ac_cv_c_tclconfig}" = x ; then
14120 for i in `ls -d ${libdir} 2>/dev/null` \
14121 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14122 `ls -d ${prefix}/lib 2>/dev/null` \
14123 `ls -d /usr/local/lib 2>/dev/null` \
14124 `ls -d /usr/contrib/lib 2>/dev/null` \
14125 `ls -d /usr/lib 2>/dev/null` \
14127 if test -f "$i/tclConfig.sh" ; then
14128 ac_cv_c_tclconfig=`(cd $i; pwd)`
14134 # check in a few other private locations
14135 if test x"${ac_cv_c_tclconfig}" = x ; then
14138 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14139 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14140 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14141 if test -f "$i/$platDir/tclConfig.sh" ; then
14142 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14151 if test x"${ac_cv_c_tclconfig}" = x ; then
14152 TCL_BIN_DIR="# no Tcl configs found"
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14154 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14157 TCL_BIN_DIR=${ac_cv_c_tclconfig}
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14159 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14164 # If $no_tk is nonempty, then we can't do Tk, and there is no
14165 # point to doing Tcl.
14168 # Ok, lets find the tk configuration
14169 # First, look for one uninstalled.
14170 # the alternative search directory is invoked by --with-tk
14173 if test x"${no_tk}" = x ; then
14174 # we reset no_tk in case something fails here
14177 # Check whether --with-tk was given.
14178 if test "${with_tk+set}" = set; then :
14179 withval=$with_tk; with_tkconfig=${withval}
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14183 $as_echo_n "checking for Tk configuration... " >&6; }
14184 if test "${ac_cv_c_tkconfig+set}" = set; then :
14185 $as_echo_n "(cached) " >&6
14189 # First check to see if --with-tkconfig was specified.
14190 if test x"${with_tkconfig}" != x ; then
14191 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14192 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
14194 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14198 # then check for a private Tk library
14200 *-*-cygwin*) platDir="win" ;;
14201 *) platDir="unix" ;;
14203 if test x"${ac_cv_c_tkconfig}" = x ; then
14206 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14207 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14208 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14210 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14211 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14212 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14214 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14215 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14216 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14217 if test -f "$i/$platDir/tkConfig.sh" ; then
14218 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14224 # on Darwin, check in Framework installation locations
14225 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
14226 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14227 `ls -d /Library/Frameworks 2>/dev/null` \
14228 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14229 `ls -d /System/Library/Frameworks 2>/dev/null` \
14231 if test -f "$i/Tk.framework/tkConfig.sh" ; then
14232 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
14238 # check in a few common install locations
14239 if test x"${ac_cv_c_tkconfig}" = x ; then
14240 for i in `ls -d ${libdir} 2>/dev/null` \
14241 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14242 `ls -d ${prefix}/lib 2>/dev/null` \
14243 `ls -d /usr/local/lib 2>/dev/null` \
14244 `ls -d /usr/contrib/lib 2>/dev/null` \
14245 `ls -d /usr/lib 2>/dev/null` \
14247 if test -f "$i/tkConfig.sh" ; then
14248 ac_cv_c_tkconfig=`(cd $i; pwd)`
14253 # check in a few other private locations
14254 if test x"${ac_cv_c_tkconfig}" = x ; then
14257 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14258 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14259 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14260 if test -f "$i/$platDir/tkConfig.sh" ; then
14261 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14270 if test x"${ac_cv_c_tkconfig}" = x ; then
14271 TK_BIN_DIR="# no Tk configs found"
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
14273 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
14276 TK_BIN_DIR=${ac_cv_c_tkconfig}
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
14278 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14283 if test -z "${no_tcl}" -a -z "${no_tk}"; then
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
14286 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
14288 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14290 $as_echo "loading" >&6; }
14291 . ${TCL_BIN_DIR}/tclConfig.sh
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
14294 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14297 # eval is required to do the TCL_DBGX substitution
14298 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
14299 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
14301 # If the TCL_BIN_DIR is the build directory (not the install directory),
14302 # then set the common variable name to the value of the build variables.
14303 # For example, the variable TCL_LIB_SPEC will be set to the value
14304 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
14305 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
14306 # installed and uninstalled version of Tcl.
14307 if test -f "${TCL_BIN_DIR}/Makefile" ; then
14308 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
14309 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
14310 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
14311 elif test "`uname -s`" = "Darwin"; then
14312 # If Tcl was built as a framework, attempt to use the libraries
14313 # from the framework at the given location so that linking works
14314 # against Tcl.framework installed in an arbitrary location.
14315 case ${TCL_DEFS} in
14317 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
14318 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
14319 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
14320 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
14321 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
14326 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
14327 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
14328 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
14334 # eval is required to do the TCL_DBGX substitution
14335 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
14336 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
14337 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
14338 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
14354 # Check for in-tree tcl
14361 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
14365 # Find Tcl private headers
14366 if test x"${intree}" = xno; then
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
14369 $as_echo_n "checking for Tcl private headers... " >&6; }
14371 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
14372 if test -f ${dir}/tclInt.h ; then
14376 if test x"${private_dir}" = x; then
14377 as_fn_error "could not find private Tcl headers" "$LINENO" 5
14379 TCL_PRIVATE_INCLUDE="-I${private_dir}"
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14381 $as_echo "${private_dir}" >&6; }
14384 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
14385 TCL_LIBRARY="${TCL_LIB_SPEC}"
14388 # If building tcl in the same src tree, private headers
14389 # are not needed, but we need to be sure to use the right
14391 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
14392 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
14393 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
14401 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
14403 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14405 $as_echo "loading" >&6; }
14406 . ${TK_BIN_DIR}/tkConfig.sh
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
14409 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14412 # eval is required to do the TK_DBGX substitution
14413 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
14414 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
14416 # If the TK_BIN_DIR is the build directory (not the install directory),
14417 # then set the common variable name to the value of the build variables.
14418 # For example, the variable TK_LIB_SPEC will be set to the value
14419 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
14420 # instead of TK_BUILD_LIB_SPEC since it will work with both an
14421 # installed and uninstalled version of Tcl.
14422 if test -f "${TK_BIN_DIR}/Makefile" ; then
14423 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
14424 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
14425 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
14426 elif test "`uname -s`" = "Darwin"; then
14427 # If Tk was built as a framework, attempt to use the libraries
14428 # from the framework at the given location so that linking works
14429 # against Tk.framework installed in an arbitrary location.
14432 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
14433 for i in "`cd ${TK_BIN_DIR}; pwd`" \
14434 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
14435 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
14436 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
14441 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
14442 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
14443 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
14449 # eval is required to do the TK_DBGX substitution
14450 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
14451 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
14452 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
14453 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
14468 # Check for in-tree Tk
14470 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
14474 # Find Tk private headers
14475 if test x"${intree}" = xno; then
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
14478 $as_echo_n "checking for Tk private headers... " >&6; }
14480 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
14481 if test -f ${dir}/tkInt.h; then
14485 if test x"${private_dir}" = x; then
14486 as_fn_error "could not find Tk private headers" "$LINENO" 5
14488 TK_PRIVATE_INCLUDE="-I${private_dir}"
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14490 $as_echo "${private_dir}" >&6; }
14493 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14494 TK_LIBRARY=${TK_LIB_SPEC}
14497 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
14498 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
14499 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
14506 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14508 # Include some libraries that Tcl and Tk want.
14509 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14510 # Yes, the ordering seems wrong here. But it isn't.
14511 # TK_LIBS is the list of libraries that need to be linked
14512 # after Tcl/Tk. Note that this isn't put into LIBS. If it
14513 # were in LIBS then any link tests after this point would
14514 # try to include things like `$(LIBGUI)', which wouldn't work.
14515 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
14517 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14518 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14519 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14520 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
14521 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
14522 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
14523 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
14525 if test x$gdb_cv_os_cygwin = xyes; then
14526 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14527 WIN32LDAPP="-Wl,--subsystem,console"
14528 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
14531 subdirs="$subdirs gdbtk"
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14544 $as_echo_n "checking for X... " >&6; }
14547 # Check whether --with-x was given.
14548 if test "${with_x+set}" = set; then :
14552 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14553 if test "x$with_x" = xno; then
14554 # The user explicitly disabled X.
14557 case $x_includes,$x_libraries in #(
14558 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
14559 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
14560 $as_echo_n "(cached) " >&6
14562 # One or both of the vars are not set, and there is no cached value.
14563 ac_x_includes=no ac_x_libraries=no
14564 rm -f -r conftest.dir
14565 if mkdir conftest.dir; then
14567 cat >Imakefile <<'_ACEOF'
14569 @echo incroot='${INCROOT}'
14571 @echo usrlibdir='${USRLIBDIR}'
14573 @echo libdir='${LIBDIR}'
14575 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14576 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14577 for ac_var in incroot usrlibdir libdir; do
14578 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14580 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14581 for ac_extension in a so sl dylib la dll; do
14582 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14583 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14584 ac_im_usrlibdir=$ac_im_libdir; break
14587 # Screen out bogus values from the imake configuration. They are
14588 # bogus both because they are the default anyway, and because
14589 # using them would break gcc on systems where it needs fixed includes.
14590 case $ac_im_incroot in
14591 /usr/include) ac_x_includes= ;;
14592 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14594 case $ac_im_usrlibdir in
14595 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14596 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14600 rm -f -r conftest.dir
14603 # Standard set of common directories for X headers.
14604 # Check X11 before X11Rn because it is often a symlink to the current release.
14618 /usr/local/X11/include
14619 /usr/local/X11R7/include
14620 /usr/local/X11R6/include
14621 /usr/local/X11R5/include
14622 /usr/local/X11R4/include
14624 /usr/local/include/X11
14625 /usr/local/include/X11R7
14626 /usr/local/include/X11R6
14627 /usr/local/include/X11R5
14628 /usr/local/include/X11R4
14632 /usr/XFree86/include/X11
14636 /usr/unsupported/include
14637 /usr/athena/include
14638 /usr/local/x11r5/include
14639 /usr/lpp/Xamples/include
14641 /usr/openwin/include
14642 /usr/openwin/share/include'
14644 if test "$ac_x_includes" = no; then
14645 # Guess where to find include files, by looking for Xlib.h.
14646 # First, try using that file with no special directory specified.
14647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14648 /* end confdefs.h. */
14649 #include <X11/Xlib.h>
14651 if ac_fn_c_try_cpp "$LINENO"; then :
14652 # We can compile using X headers with no special include directory.
14655 for ac_dir in $ac_x_header_dirs; do
14656 if test -r "$ac_dir/X11/Xlib.h"; then
14657 ac_x_includes=$ac_dir
14662 rm -f conftest.err conftest.$ac_ext
14663 fi # $ac_x_includes = no
14665 if test "$ac_x_libraries" = no; then
14666 # Check for the libraries.
14667 # See if we find them without any special options.
14668 # Don't add to $LIBS permanently.
14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14672 /* end confdefs.h. */
14673 #include <X11/Xlib.h>
14682 if ac_fn_c_try_link "$LINENO"; then :
14684 # We can link X programs with no special library path.
14688 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14690 # Don't even attempt the hair of trying to link an X program!
14691 for ac_extension in a so sl dylib la dll; do
14692 if test -r "$ac_dir/libX11.$ac_extension"; then
14693 ac_x_libraries=$ac_dir
14699 rm -f core conftest.err conftest.$ac_objext \
14700 conftest$ac_exeext conftest.$ac_ext
14701 fi # $ac_x_libraries = no
14703 case $ac_x_includes,$ac_x_libraries in #(
14704 no,* | *,no | *\'*)
14705 # Didn't find X, or a directory has "'" in its name.
14706 ac_cv_have_x="have_x=no";; #(
14708 # Record where we found X for the cache.
14709 ac_cv_have_x="have_x=yes\
14710 ac_x_includes='$ac_x_includes'\
14711 ac_x_libraries='$ac_x_libraries'"
14717 eval "$ac_cv_have_x"
14720 if test "$have_x" != yes; then
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14722 $as_echo "$have_x" >&6; }
14725 # If each of the values was on the command line, it overrides each guess.
14726 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14727 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14728 # Update the cache value to reflect the command line values.
14729 ac_cv_have_x="have_x=yes\
14730 ac_x_includes='$x_includes'\
14731 ac_x_libraries='$x_libraries'"
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14733 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14737 # Unlike the sim directory, whether a simulator is linked is controlled by
14738 # presence of a gdb_sim definition in the target configure.tgt entry.
14739 # This code just checks for a few cases where we'd like to ignore those
14740 # definitions, even when they're present in the '.mt' file. These cases
14741 # are when --disable-sim is specified, or if the simulator directory is
14742 # not part of the source tree.
14744 # Check whether --enable-sim was given.
14745 if test "${enable_sim+set}" = set; then :
14746 enableval=$enable_sim; echo "enable_sim = $enable_sim";
14747 echo "enableval = ${enableval}";
14748 case "${enableval}" in
14749 yes) ignore_sim=false ;;
14750 no) ignore_sim=true ;;
14751 *) ignore_sim=false ;;
14758 if test ! -d "${srcdir}/../sim"; then
14764 if test "${ignore_sim}" = "false"; then
14765 if test x"${gdb_sim}" != x ; then
14767 SIM_OBS="remote-sim.o"
14769 $as_echo "#define WITH_SIM 1" >>confdefs.h
14787 # List of host floatformats.
14789 cat >>confdefs.h <<_ACEOF
14790 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14794 cat >>confdefs.h <<_ACEOF
14795 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14799 cat >>confdefs.h <<_ACEOF
14800 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14804 # target_subdir is used by the testsuite to find the target libraries.
14806 if test "${host}" != "${target}"; then
14807 target_subdir="${target_alias}/"
14812 if test "${gdb_native}" = "yes"; then
14813 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14814 if test ! -f ${host_makefile_frag}; then
14815 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14817 frags="$frags $host_makefile_frag"
14819 host_makefile_frag=/dev/null
14825 if test "${gdb_native}" = "yes"; then
14826 # We pick this up from the host configuration file (.mh) because we
14827 # do not have a native configuration Makefile fragment.
14828 nativefile=`sed -n '
14829 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
14830 ' ${host_makefile_frag}`
14834 if test x"${gdb_osabi}" != x ; then
14836 cat >>confdefs.h <<_ACEOF
14837 #define GDB_OSABI_DEFAULT $gdb_osabi
14842 # Enable multi-ice-gdb-server.
14843 # Check whether --enable-multi-ice was given.
14844 if test "${enable_multi_ice+set}" = set; then :
14845 enableval=$enable_multi_ice; case $enableval in
14848 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14852 if test "x$enable_multi_ice" = xyes; then
14853 subdirs="$subdirs multi-ice"
14857 # Check whether --enable-gdbserver was given.
14858 if test "${enable_gdbserver+set}" = set; then :
14859 enableval=$enable_gdbserver; case "${enableval}" in
14861 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
14864 enable_gdbserver=auto
14868 # We only build gdbserver automatically in a native configuration, and
14869 # only if the user did not explicitly disable its build.
14870 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14872 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14873 if test "x$build_gdbserver" = xyes; then
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14875 $as_echo "yes" >&6; }
14876 subdirs="$subdirs gdbserver"
14878 gdbserver_build_enabled=yes
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14881 $as_echo "no" >&6; }
14885 # If the user explicitly request the gdbserver to be built, verify that
14886 # we were in fact able to enable it.
14887 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
14888 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
14891 # Check for babeltrace and babeltrace-ctf
14893 # Check whether --with-babeltrace was given.
14894 if test "${with_babeltrace+set}" = set; then :
14895 withval=$with_babeltrace;
14897 with_babeltrace=auto
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
14901 $as_echo_n "checking whether to use babeltrace... " >&6; }
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
14903 $as_echo "$with_babeltrace" >&6; }
14905 if test "x$with_babeltrace" = "xno"; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
14907 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
14909 # Append -Werror to CFLAGS so that configure can catch the warning
14910 # "assignment from incompatible pointer type", which is related to
14911 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
14912 # in GDB, while babeltrace 1.0.3 is broken.
14913 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
14914 # safe to save and restore CFLAGS here.
14915 saved_CFLAGS=$CFLAGS
14916 CFLAGS="$CFLAGS -Werror"
14927 acl_save_prefix="$prefix"
14928 prefix="$acl_final_prefix"
14929 acl_save_exec_prefix="$exec_prefix"
14930 exec_prefix="$acl_final_exec_prefix"
14932 eval additional_includedir=\"$includedir\"
14933 eval additional_libdir=\"$libdir\"
14935 exec_prefix="$acl_save_exec_prefix"
14936 prefix="$acl_save_prefix"
14939 # Check whether --with-libbabeltrace-prefix was given.
14940 if test "${with_libbabeltrace_prefix+set}" = set; then :
14941 withval=$with_libbabeltrace_prefix;
14942 if test "X$withval" = "Xno"; then
14945 if test "X$withval" = "X"; then
14947 acl_save_prefix="$prefix"
14948 prefix="$acl_final_prefix"
14949 acl_save_exec_prefix="$exec_prefix"
14950 exec_prefix="$acl_final_exec_prefix"
14952 eval additional_includedir=\"$includedir\"
14953 eval additional_libdir=\"$libdir\"
14955 exec_prefix="$acl_save_exec_prefix"
14956 prefix="$acl_save_prefix"
14959 additional_includedir="$withval/include"
14960 additional_libdir="$withval/lib"
14971 names_already_handled=
14972 names_next_round='babeltrace babeltrace-ctf'
14973 while test -n "$names_next_round"; do
14974 names_this_round="$names_next_round"
14976 for name in $names_this_round; do
14978 for n in $names_already_handled; do
14979 if test "$n" = "$name"; then
14980 already_handled=yes
14984 if test -z "$already_handled"; then
14985 names_already_handled="$names_already_handled $name"
14986 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14987 eval value=\"\$HAVE_LIB$uppername\"
14988 if test -n "$value"; then
14989 if test "$value" = yes; then
14990 eval value=\"\$LIB$uppername\"
14991 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
14992 eval value=\"\$LTLIB$uppername\"
14993 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
15002 if test $use_additional = yes; then
15003 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15004 found_dir="$additional_libdir"
15005 found_so="$additional_libdir/lib$name.$shlibext"
15006 if test -f "$additional_libdir/lib$name.la"; then
15007 found_la="$additional_libdir/lib$name.la"
15010 if test -f "$additional_libdir/lib$name.$libext"; then
15011 found_dir="$additional_libdir"
15012 found_a="$additional_libdir/lib$name.$libext"
15013 if test -f "$additional_libdir/lib$name.la"; then
15014 found_la="$additional_libdir/lib$name.la"
15019 if test "X$found_dir" = "X"; then
15020 for x in $LDFLAGS $LTLIBBABELTRACE; do
15022 acl_save_prefix="$prefix"
15023 prefix="$acl_final_prefix"
15024 acl_save_exec_prefix="$exec_prefix"
15025 exec_prefix="$acl_final_exec_prefix"
15027 exec_prefix="$acl_save_exec_prefix"
15028 prefix="$acl_save_prefix"
15032 dir=`echo "X$x" | sed -e 's/^X-L//'`
15033 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15035 found_so="$dir/lib$name.$shlibext"
15036 if test -f "$dir/lib$name.la"; then
15037 found_la="$dir/lib$name.la"
15040 if test -f "$dir/lib$name.$libext"; then
15042 found_a="$dir/lib$name.$libext"
15043 if test -f "$dir/lib$name.la"; then
15044 found_la="$dir/lib$name.la"
15050 if test "X$found_dir" != "X"; then
15055 if test "X$found_dir" != "X"; then
15056 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
15057 if test "X$found_so" != "X"; then
15058 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15059 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15062 for x in $ltrpathdirs; do
15063 if test "X$x" = "X$found_dir"; then
15068 if test -z "$haveit"; then
15069 ltrpathdirs="$ltrpathdirs $found_dir"
15071 if test "$hardcode_direct" = yes; then
15072 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15074 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15075 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15077 for x in $rpathdirs; do
15078 if test "X$x" = "X$found_dir"; then
15083 if test -z "$haveit"; then
15084 rpathdirs="$rpathdirs $found_dir"
15088 for x in $LDFLAGS $LIBBABELTRACE; do
15090 acl_save_prefix="$prefix"
15091 prefix="$acl_final_prefix"
15092 acl_save_exec_prefix="$exec_prefix"
15093 exec_prefix="$acl_final_exec_prefix"
15095 exec_prefix="$acl_save_exec_prefix"
15096 prefix="$acl_save_prefix"
15098 if test "X$x" = "X-L$found_dir"; then
15103 if test -z "$haveit"; then
15104 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
15106 if test "$hardcode_minus_L" != no; then
15107 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15109 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15115 if test "X$found_a" != "X"; then
15116 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
15118 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
15121 additional_includedir=
15122 case "$found_dir" in
15124 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15125 additional_includedir="$basedir/include"
15128 if test "X$additional_includedir" != "X"; then
15129 if test "X$additional_includedir" != "X/usr/include"; then
15131 if test "X$additional_includedir" = "X/usr/local/include"; then
15132 if test -n "$GCC"; then
15134 linux*) haveit=yes;;
15138 if test -z "$haveit"; then
15139 for x in $CPPFLAGS $INCBABELTRACE; do
15141 acl_save_prefix="$prefix"
15142 prefix="$acl_final_prefix"
15143 acl_save_exec_prefix="$exec_prefix"
15144 exec_prefix="$acl_final_exec_prefix"
15146 exec_prefix="$acl_save_exec_prefix"
15147 prefix="$acl_save_prefix"
15149 if test "X$x" = "X-I$additional_includedir"; then
15154 if test -z "$haveit"; then
15155 if test -d "$additional_includedir"; then
15156 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
15162 if test -n "$found_la"; then
15163 save_libdir="$libdir"
15164 case "$found_la" in
15165 */* | *\\*) . "$found_la" ;;
15166 *) . "./$found_la" ;;
15168 libdir="$save_libdir"
15169 for dep in $dependency_libs; do
15172 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15173 if test "X$additional_libdir" != "X/usr/lib"; then
15175 if test "X$additional_libdir" = "X/usr/local/lib"; then
15176 if test -n "$GCC"; then
15178 linux*) haveit=yes;;
15182 if test -z "$haveit"; then
15184 for x in $LDFLAGS $LIBBABELTRACE; do
15186 acl_save_prefix="$prefix"
15187 prefix="$acl_final_prefix"
15188 acl_save_exec_prefix="$exec_prefix"
15189 exec_prefix="$acl_final_exec_prefix"
15191 exec_prefix="$acl_save_exec_prefix"
15192 prefix="$acl_save_prefix"
15194 if test "X$x" = "X-L$additional_libdir"; then
15199 if test -z "$haveit"; then
15200 if test -d "$additional_libdir"; then
15201 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
15205 for x in $LDFLAGS $LTLIBBABELTRACE; do
15207 acl_save_prefix="$prefix"
15208 prefix="$acl_final_prefix"
15209 acl_save_exec_prefix="$exec_prefix"
15210 exec_prefix="$acl_final_exec_prefix"
15212 exec_prefix="$acl_save_exec_prefix"
15213 prefix="$acl_save_prefix"
15215 if test "X$x" = "X-L$additional_libdir"; then
15220 if test -z "$haveit"; then
15221 if test -d "$additional_libdir"; then
15222 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
15229 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15230 if test "$enable_rpath" != no; then
15232 for x in $rpathdirs; do
15233 if test "X$x" = "X$dir"; then
15238 if test -z "$haveit"; then
15239 rpathdirs="$rpathdirs $dir"
15242 for x in $ltrpathdirs; do
15243 if test "X$x" = "X$dir"; then
15248 if test -z "$haveit"; then
15249 ltrpathdirs="$ltrpathdirs $dir"
15254 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15257 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15260 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
15261 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
15267 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15268 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
15274 if test "X$rpathdirs" != "X"; then
15275 if test -n "$hardcode_libdir_separator"; then
15277 for found_dir in $rpathdirs; do
15278 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15280 acl_save_libdir="$libdir"
15282 eval flag=\"$hardcode_libdir_flag_spec\"
15283 libdir="$acl_save_libdir"
15284 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15286 for found_dir in $rpathdirs; do
15287 acl_save_libdir="$libdir"
15288 libdir="$found_dir"
15289 eval flag=\"$hardcode_libdir_flag_spec\"
15290 libdir="$acl_save_libdir"
15291 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15295 if test "X$ltrpathdirs" != "X"; then
15296 for found_dir in $ltrpathdirs; do
15297 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
15302 ac_save_CPPFLAGS="$CPPFLAGS"
15304 for element in $INCBABELTRACE; do
15306 for x in $CPPFLAGS; do
15308 acl_save_prefix="$prefix"
15309 prefix="$acl_final_prefix"
15310 acl_save_exec_prefix="$exec_prefix"
15311 exec_prefix="$acl_final_exec_prefix"
15313 exec_prefix="$acl_save_exec_prefix"
15314 prefix="$acl_save_prefix"
15316 if test "X$x" = "X$element"; then
15321 if test -z "$haveit"; then
15322 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
15328 $as_echo_n "checking for libbabeltrace... " >&6; }
15329 if test "${ac_cv_libbabeltrace+set}" = set; then :
15330 $as_echo_n "(cached) " >&6
15333 ac_save_LIBS="$LIBS"
15334 LIBS="$LIBS $LIBBABELTRACE"
15335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336 /* end confdefs.h. */
15337 #include <babeltrace/babeltrace.h>
15338 #include <babeltrace/ctf/events.h>
15339 #include <babeltrace/ctf/iterator.h>
15343 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
15344 struct bt_ctf_event *event = NULL;
15345 const struct bt_definition *scope;
15347 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
15348 scope = bt_ctf_get_top_level_scope (event,
15349 BT_STREAM_EVENT_HEADER);
15350 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
15356 if ac_fn_c_try_link "$LINENO"; then :
15357 ac_cv_libbabeltrace=yes
15359 ac_cv_libbabeltrace=no
15361 rm -f core conftest.err conftest.$ac_objext \
15362 conftest$ac_exeext conftest.$ac_ext
15363 LIBS="$ac_save_LIBS"
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
15367 $as_echo "$ac_cv_libbabeltrace" >&6; }
15368 if test "$ac_cv_libbabeltrace" = yes; then
15369 HAVE_LIBBABELTRACE=yes
15371 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
15374 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
15376 $as_echo "$LIBBABELTRACE" >&6; }
15378 HAVE_LIBBABELTRACE=no
15379 CPPFLAGS="$ac_save_CPPFLAGS"
15389 CFLAGS=$saved_CFLAGS
15391 if test "$HAVE_LIBBABELTRACE" != yes; then
15392 if test "$with_babeltrace" = yes; then
15393 as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
15396 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
15401 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15402 # to an empty version.
15408 if test "${nativefile}" != ""; then
15409 case "${nativefile}" in
15410 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15411 * ) GDB_NM_FILE="${nativefile}"
15413 files="${files} ${GDB_NM_FILE}"
15414 links="${links} nm.h"
15416 cat >>confdefs.h <<_ACEOF
15417 #define GDB_NM_FILE "${GDB_NM_FILE}"
15423 ac_sources="$files"
15425 while test -n "$ac_sources"; do
15426 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15427 set $ac_sources; ac_source=$1; shift; ac_sources=$*
15428 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15430 ac_config_links="$ac_config_links $ac_config_links_1"
15436 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15439 # Undo the $ec_script escaping suitable for Makefile.
15440 transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
15441 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$transform"`
15442 if test "x$GDB_TRANSFORM_NAME" = x; then
15443 GDB_TRANSFORM_NAME=gdb
15446 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$transform"`
15447 if test "x$GCORE_TRANSFORM_NAME" = x; then
15448 GCORE_TRANSFORM_NAME=gcore
15451 ac_config_files="$ac_config_files gcore"
15454 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
15456 ac_config_commands="$ac_config_commands default"
15458 cat >confcache <<\_ACEOF
15459 # This file is a shell script that caches the results of configure
15460 # tests run on this system so they can be shared between configure
15461 # scripts and configure runs, see configure's option --config-cache.
15462 # It is not useful on other systems. If it contains results you don't
15463 # want to keep, you may remove or edit it.
15465 # config.status only pays attention to the cache file if you give it
15466 # the --recheck option to rerun configure.
15468 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15470 # following values.
15474 # The following way of writing the cache mishandles newlines in values,
15475 # but we know of no workaround that is simple, portable, and efficient.
15476 # So, we kill variables containing newlines.
15477 # Ultrix sh set writes to stderr and can't be redirected directly,
15478 # and sets the high bit in the cache file unless we assign to the vars.
15480 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15481 eval ac_val=\$$ac_var
15485 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15486 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15489 _ | IFS | as_nl) ;; #(
15490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15491 *) { eval $ac_var=; unset $ac_var;} ;;
15497 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15498 *${as_nl}ac_space=\ *)
15499 # `set' does not quote correctly, so add quotes: double-quote
15500 # substitution turns \\\\ into \\, and sed turns \\ into \.
15503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15506 # `set' quotes correctly as required by POSIX, so do not add quotes.
15507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15521 if test -w "$cache_file"; then
15522 test "x$cache_file" != "x/dev/null" &&
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15524 $as_echo "$as_me: updating cache $cache_file" >&6;}
15525 cat confcache >$cache_file
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15528 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15534 # Let make expand exec_prefix.
15535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15537 DEFS=-DHAVE_CONFIG_H
15541 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15542 # 1. Remove the extension, and $U if already installed.
15543 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15544 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15545 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15546 # will be set to the directory where LIBOBJS objects are built.
15547 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15548 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15550 LIBOBJS=$ac_libobjs
15552 LTLIBOBJS=$ac_ltlibobjs
15555 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15556 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15560 as_fn_error "conditional \"GMAKE\" was never defined.
15561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15563 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15564 as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
15565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15567 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
15568 as_fn_error "conditional \"HAVE_GUILE\" was never defined.
15569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15573 : ${CONFIG_STATUS=./config.status}
15575 ac_clean_files_save=$ac_clean_files
15576 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15578 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15580 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15582 # Generated by $as_me.
15583 # Run this file to recreate the current configuration.
15584 # Compiler output produced by configure, useful for debugging
15585 # configure, is in config.log if it exists.
15588 ac_cs_recheck=false
15591 SHELL=\${CONFIG_SHELL-$SHELL}
15594 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15595 ## -------------------- ##
15596 ## M4sh Initialization. ##
15597 ## -------------------- ##
15599 # Be more Bourne compatible
15600 DUALCASE=1; export DUALCASE # for MKS sh
15601 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15604 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15605 # is contrary to our usage. Disable this feature.
15606 alias -g '${1+"$@"}'='"$@"'
15607 setopt NO_GLOB_SUBST
15609 case `(set -o) 2>/dev/null` in #(
15621 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15622 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15623 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15624 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15625 # Prefer a ksh shell builtin over an external printf program on Solaris,
15626 # but without wasting forks for bash or zsh.
15627 if test -z "$BASH_VERSION$ZSH_VERSION" \
15628 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15629 as_echo='print -r --'
15630 as_echo_n='print -rn --'
15631 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15632 as_echo='printf %s\n'
15633 as_echo_n='printf %s'
15635 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15636 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15637 as_echo_n='/usr/ucb/echo -n'
15639 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15640 as_echo_n_body='eval
15644 expr "X$arg" : "X\\(.*\\)$as_nl";
15645 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15647 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15649 export as_echo_n_body
15650 as_echo_n='sh -c $as_echo_n_body as_echo'
15652 export as_echo_body
15653 as_echo='sh -c $as_echo_body as_echo'
15656 # The user is always right.
15657 if test "${PATH_SEPARATOR+set}" != set; then
15659 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15660 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15667 # We need space, tab and new line, in precisely that order. Quoting is
15668 # there to prevent editors from complaining about space-tab.
15669 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15670 # splitting by setting IFS to empty value.)
15673 # Find who we are. Look in the path if we contain no directory separator.
15675 *[\\/]* ) as_myself=$0 ;;
15676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15677 for as_dir in $PATH
15680 test -z "$as_dir" && as_dir=.
15681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15687 # We did not find ourselves, most probably we were run as `sh COMMAND'
15688 # in which case we are not to be found in the path.
15689 if test "x$as_myself" = x; then
15692 if test ! -f "$as_myself"; then
15693 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15697 # Unset variables that we do not need and which cause bugs (e.g. in
15698 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15699 # suppresses any "Segmentation fault" message there. '((' could
15700 # trigger a bug in pdksh 5.2.14.
15701 for as_var in BASH_ENV ENV MAIL MAILPATH
15702 do eval test x\${$as_var+set} = xset \
15703 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15716 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15719 # as_fn_error ERROR [LINENO LOG_FD]
15720 # ---------------------------------
15721 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15722 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15723 # script with status $?, using 1 if that was 0.
15726 as_status=$?; test $as_status -eq 0 && as_status=1
15728 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15729 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15731 $as_echo "$as_me: error: $1" >&2
15732 as_fn_exit $as_status
15736 # as_fn_set_status STATUS
15737 # -----------------------
15738 # Set $? to STATUS, without forking.
15739 as_fn_set_status ()
15742 } # as_fn_set_status
15744 # as_fn_exit STATUS
15745 # -----------------
15746 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15750 as_fn_set_status $1
15756 # Portably unset VAR.
15759 { eval $1=; unset $1;}
15761 as_unset=as_fn_unset
15762 # as_fn_append VAR VALUE
15763 # ----------------------
15764 # Append the text in VALUE to the end of the definition contained in VAR. Take
15765 # advantage of any shell optimizations that allow amortized linear growth over
15766 # repeated appends, instead of the typical quadratic growth present in naive
15768 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15769 eval 'as_fn_append ()
15780 # as_fn_arith ARG...
15781 # ------------------
15782 # Perform arithmetic evaluation on the ARGs, and store the result in the
15783 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15784 # must be portable across $(()) and expr.
15785 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15786 eval 'as_fn_arith ()
15793 as_val=`expr "$@" || test $? -eq 1`
15798 if expr a : '\(a\)' >/dev/null 2>&1 &&
15799 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15805 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15806 as_basename=basename
15811 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15817 as_me=`$as_basename -- "$0" ||
15818 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15819 X"$0" : 'X\(//\)$' \| \
15820 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15822 sed '/^.*\/\([^/][^/]*\)\/*$/{
15836 # Avoid depending upon Character Ranges.
15837 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15838 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15839 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15840 as_cr_digits='0123456789'
15841 as_cr_alnum=$as_cr_Letters$as_cr_digits
15843 ECHO_C= ECHO_N= ECHO_T=
15844 case `echo -n x` in #(((((
15846 case `echo 'xy\c'` in
15847 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15849 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15856 rm -f conf$$ conf$$.exe conf$$.file
15857 if test -d conf$$.dir; then
15858 rm -f conf$$.dir/conf$$.file
15861 mkdir conf$$.dir 2>/dev/null
15863 if (echo >conf$$.file) 2>/dev/null; then
15864 if ln -s conf$$.file conf$$ 2>/dev/null; then
15866 # ... but there are two gotchas:
15867 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15868 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15869 # In both cases, we have to default to `cp -p'.
15870 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15872 elif ln conf$$.file conf$$ 2>/dev/null; then
15880 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15881 rmdir conf$$.dir 2>/dev/null
15886 # Create "$as_dir" as a directory, including parents if necessary.
15891 -*) as_dir=./$as_dir;;
15893 test -d "$as_dir" || eval $as_mkdir_p || {
15897 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15898 *) as_qdir=$as_dir;;
15900 as_dirs="'$as_qdir' $as_dirs"
15901 as_dir=`$as_dirname -- "$as_dir" ||
15902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15903 X"$as_dir" : 'X\(//\)[^/]' \| \
15904 X"$as_dir" : 'X\(//\)$' \| \
15905 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15906 $as_echo X"$as_dir" |
15907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15911 /^X\(\/\/\)[^/].*/{
15924 test -d "$as_dir" && break
15926 test -z "$as_dirs" || eval "mkdir $as_dirs"
15927 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15931 if mkdir -p . 2>/dev/null; then
15932 as_mkdir_p='mkdir -p "$as_dir"'
15934 test -d ./-p && rmdir ./-p
15938 if test -x / >/dev/null 2>&1; then
15939 as_test_x='test -x'
15941 if ls -dL / >/dev/null 2>&1; then
15948 if test -d "$1"; then
15954 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15955 ???[sx]*):;;*)false;;esac;fi
15959 as_executable_p=$as_test_x
15961 # Sed expression to map a string onto a valid CPP name.
15962 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15964 # Sed expression to map a string onto a valid variable name.
15965 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15969 ## ----------------------------------- ##
15970 ## Main body of $CONFIG_STATUS script. ##
15971 ## ----------------------------------- ##
15973 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15976 # Save the log message, to keep $0 and so on meaningful, and to
15977 # report actual input values of CONFIG_FILES etc. instead of their
15978 # values after options handling.
15980 This file was extended by $as_me, which was
15981 generated by GNU Autoconf 2.64. Invocation command line was
15983 CONFIG_FILES = $CONFIG_FILES
15984 CONFIG_HEADERS = $CONFIG_HEADERS
15985 CONFIG_LINKS = $CONFIG_LINKS
15986 CONFIG_COMMANDS = $CONFIG_COMMANDS
15989 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15994 case $ac_config_files in *"
15995 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15998 case $ac_config_headers in *"
15999 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16004 # Files that config.status was made for.
16005 config_files="$ac_config_files"
16006 config_headers="$ac_config_headers"
16007 config_links="$ac_config_links"
16008 config_commands="$ac_config_commands"
16012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16014 \`$as_me' instantiates files and other configuration actions
16015 from templates according to the current configuration. Unless the files
16016 and actions are specified as TAGs, all are instantiated by default.
16018 Usage: $0 [OPTION]... [TAG]...
16020 -h, --help print this help, then exit
16021 -V, --version print version number and configuration settings, then exit
16022 -q, --quiet, --silent
16023 do not print progress messages
16024 -d, --debug don't remove temporary files
16025 --recheck update $as_me by reconfiguring in the same conditions
16026 --file=FILE[:TEMPLATE]
16027 instantiate the configuration file FILE
16028 --header=FILE[:TEMPLATE]
16029 instantiate the configuration header FILE
16031 Configuration files:
16034 Configuration headers:
16037 Configuration links:
16040 Configuration commands:
16043 Report bugs to the package provider."
16046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16049 configured by $0, generated by GNU Autoconf 2.64,
16050 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16052 Copyright (C) 2009 Free Software Foundation, Inc.
16053 This config.status script is free software; the Free Software Foundation
16054 gives unlimited permission to copy, distribute and modify it."
16060 test -n "\$AWK" || AWK=awk
16063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16064 # The default lists apply if the user does not specify any file.
16070 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16071 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16082 # Handling of the options.
16083 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16085 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16086 $as_echo "$ac_cs_version"; exit ;;
16087 --debug | --debu | --deb | --de | --d | -d )
16089 --file | --fil | --fi | --f )
16092 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16094 as_fn_append CONFIG_FILES " '$ac_optarg'"
16095 ac_need_defaults=false;;
16096 --header | --heade | --head | --hea )
16099 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16101 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16102 ac_need_defaults=false;;
16104 # Conflict between --help and --header
16105 as_fn_error "ambiguous option: \`$1'
16106 Try \`$0 --help' for more information.";;
16107 --help | --hel | -h )
16108 $as_echo "$ac_cs_usage"; exit ;;
16109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16110 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16113 # This is an error.
16114 -*) as_fn_error "unrecognized option: \`$1'
16115 Try \`$0 --help' for more information." ;;
16117 *) as_fn_append ac_config_targets " $1"
16118 ac_need_defaults=false ;;
16124 ac_configure_extra_args=
16126 if $ac_cs_silent; then
16128 ac_configure_extra_args="$ac_configure_extra_args --silent"
16132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16133 if \$ac_cs_recheck; then
16134 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16136 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16137 CONFIG_SHELL='$SHELL'
16138 export CONFIG_SHELL
16143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16147 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16148 ## Running $as_me. ##
16154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16158 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16164 # Handling of arguments.
16165 for ac_config_target in $ac_config_targets
16167 case $ac_config_target in
16168 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16169 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16170 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16171 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16172 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
16173 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16174 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
16175 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16176 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
16177 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16179 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16184 # If the user did not use the arguments to specify the items to instantiate,
16185 # then the envvar interface is used. Set only those that are not.
16186 # We use the long form for the default assignment because of an extremely
16187 # bizarre bug on SunOS 4.1.3.
16188 if $ac_need_defaults; then
16189 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16190 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16191 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16192 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16195 # Have a temporary directory for convenience. Make it in the build tree
16196 # simply because there is no reason against having it here, and in addition,
16197 # creating and moving files from /tmp can sometimes cause problems.
16198 # Hook for its removal unless debugging.
16199 # Note that there is a small window in which the directory will not be cleaned:
16200 # after its creation but before its name has been assigned to `$tmp'.
16204 trap 'exit_status=$?
16205 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16207 trap 'as_fn_exit 1' 1 2 13 15
16209 # Create a (secure) tmp directory for tmp files.
16212 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16213 test -n "$tmp" && test -d "$tmp"
16216 tmp=./conf$$-$RANDOM
16217 (umask 077 && mkdir "$tmp")
16218 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16220 # Set up the scripts for CONFIG_FILES section.
16221 # No need to generate them if there are no CONFIG_FILES.
16222 # This happens for instance with `./config.status config.h'.
16223 if test -n "$CONFIG_FILES"; then
16225 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16226 ac_cs_awk_getline=:
16227 ac_cs_awk_pipe_init=
16228 ac_cs_awk_read_file='
16229 while ((getline aline < (F[key])) > 0)
16232 ac_cs_awk_pipe_fini=
16234 ac_cs_awk_getline=false
16235 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16236 ac_cs_awk_read_file='
16238 print "cat " F[key] " &&"
16239 '$ac_cs_awk_pipe_init
16240 # The final `:' finishes the AND list.
16241 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16243 ac_cr=`echo X | tr X '\015'`
16244 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16245 # But we know of no other shell where ac_cr would be empty at this
16246 # point, so we can use a bashism as a fallback.
16247 if test "x$ac_cr" = x; then
16248 eval ac_cr=\$\'\\r\'
16250 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16251 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16254 ac_cs_awk_cr=$ac_cr
16257 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16260 # Create commands to substitute file output variables.
16262 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16263 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16264 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16267 } >conf$$files.sh &&
16268 . ./conf$$files.sh ||
16269 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16270 rm -f conf$$files.sh
16273 echo "cat >conf$$subs.awk <<_ACEOF" &&
16274 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16276 } >conf$$subs.sh ||
16277 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16278 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16280 for ac_last_try in false false false false false :; do
16281 . ./conf$$subs.sh ||
16282 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16284 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16285 if test $ac_delim_n = $ac_delim_num; then
16287 elif $ac_last_try; then
16288 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16293 rm -f conf$$subs.sh
16295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16296 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16300 s/^/S["/; s/!.*/"]=/
16310 s/\(.\{148\}\).*/\1/
16312 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16317 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16324 s/\(.\{148\}\).*/\1/
16326 s/["\\]/\\&/g; s/^/"/; s/$/"/
16330 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16335 ' <conf$$subs.awk | sed '
16340 ' >>$CONFIG_STATUS || ac_write_fail=1
16341 rm -f conf$$subs.awk
16342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16345 for (key in S) S_is_set[key] = 1
16347 \$ac_cs_awk_pipe_init
16351 nfields = split(line, field, "@")
16353 len = length(field[1])
16354 for (i = 2; i < nfields; i++) {
16356 keylen = length(key)
16357 if (S_is_set[key]) {
16359 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16360 len += length(value) + length(field[++i])
16365 if (nfields == 3 && !substed) {
16367 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16368 \$ac_cs_awk_read_file
16374 \$ac_cs_awk_pipe_fini
16377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16378 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16379 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16382 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16383 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16386 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16387 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16388 # trailing colons and then remove the whole line if VPATH becomes empty
16389 # (actually we leave an empty line to preserve line numbers).
16390 if test "x$srcdir" = x.; then
16391 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16392 s/:*\$(srcdir):*/:/
16393 s/:*\${srcdir}:*/:/
16395 s/^\([^=]*=[ ]*\):*/\1/
16401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16402 fi # test -n "$CONFIG_FILES"
16404 # Set up the scripts for CONFIG_HEADERS section.
16405 # No need to generate them if there are no CONFIG_HEADERS.
16406 # This happens for instance with `./config.status Makefile'.
16407 if test -n "$CONFIG_HEADERS"; then
16408 cat >"$tmp/defines.awk" <<\_ACAWK ||
16412 # Transform confdefs.h into an awk script `defines.awk', embedded as
16413 # here-document in config.status, that substitutes the proper values into
16414 # config.h.in to produce config.h.
16416 # Create a delimiter string that does not exist in confdefs.h, to ease
16417 # handling of long lines.
16419 for ac_last_try in false false :; do
16420 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16421 if test -z "$ac_t"; then
16423 elif $ac_last_try; then
16424 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16430 # For the awk script, D is an array of macro values keyed by name,
16431 # likewise P contains macro parameters if any. Preserve backslash
16432 # newline sequences.
16434 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16436 s/.\{148\}/&'"$ac_delim"'/g
16439 s/^[ ]*#[ ]*define[ ][ ]*/ /
16446 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16448 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16452 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16453 D["\1"]=" \3\\\\\\n"\\/p
16455 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16460 s/.\{148\}/&'"$ac_delim"'/g
16465 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16468 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16470 ' <confdefs.h | sed '
16471 s/'"$ac_delim"'/"\\\
16472 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16475 for (key in D) D_is_set[key] = 1
16478 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16480 split(line, arg, " ")
16481 if (arg[1] == "#") {
16485 defundef = substr(arg[1], 2)
16488 split(mac1, mac2, "(") #)
16490 prefix = substr(line, 1, index(line, defundef) - 1)
16491 if (D_is_set[macro]) {
16492 # Preserve the white space surrounding the "#".
16493 print prefix "define", macro P[macro] D[macro]
16496 # Replace #undef with comments. This is necessary, for example,
16497 # in the case of _POSIX_SOURCE, which is predefined and required
16498 # on some systems where configure will not decide to define it.
16499 if (defundef == "undef") {
16500 print "/*", prefix defundef, macro, "*/"
16508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16509 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16510 fi # test -n "$CONFIG_HEADERS"
16513 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16518 :[FHLC]) ac_mode=$ac_tag; continue;;
16520 case $ac_mode$ac_tag in
16522 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16523 :[FH]-) ac_tag=-:-;;
16524 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16541 -) ac_f="$tmp/stdin";;
16542 *) # Look for the file first in the build tree, then in the source tree
16543 # (if the path is not absolute). The absolute path cannot be DOS-style,
16544 # because $ac_f cannot contain `:'.
16548 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16550 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16552 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16553 as_fn_append ac_file_inputs " '$ac_f'"
16556 # Let's still pretend it is `configure' which instantiates (i.e., don't
16557 # use $as_me), people would be surprised to read:
16558 # /* config.h. Generated by config.status. */
16559 configure_input='Generated from '`
16560 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16562 if test x"$ac_file" != x-; then
16563 configure_input="$ac_file. $configure_input"
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16565 $as_echo "$as_me: creating $ac_file" >&6;}
16567 # Neutralize special characters interpreted by sed in replacement strings.
16568 case $configure_input in #(
16569 *\&* | *\|* | *\\* )
16570 ac_sed_conf_input=`$as_echo "$configure_input" |
16571 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16572 *) ac_sed_conf_input=$configure_input;;
16576 *:-:* | *:-) cat >"$tmp/stdin" \
16577 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16582 ac_dir=`$as_dirname -- "$ac_file" ||
16583 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16584 X"$ac_file" : 'X\(//\)[^/]' \| \
16585 X"$ac_file" : 'X\(//\)$' \| \
16586 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16587 $as_echo X"$ac_file" |
16588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16592 /^X\(\/\/\)[^/].*/{
16605 as_dir="$ac_dir"; as_fn_mkdir_p
16609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16612 # A ".." for each directory in $ac_dir_suffix.
16613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16614 case $ac_top_builddir_sub in
16615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16619 ac_abs_top_builddir=$ac_pwd
16620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16621 # for backward compatibility:
16622 ac_top_builddir=$ac_top_build_prefix
16625 .) # We are building in place.
16627 ac_top_srcdir=$ac_top_builddir_sub
16628 ac_abs_top_srcdir=$ac_pwd ;;
16629 [\\/]* | ?:[\\/]* ) # Absolute name.
16630 ac_srcdir=$srcdir$ac_dir_suffix;
16631 ac_top_srcdir=$srcdir
16632 ac_abs_top_srcdir=$srcdir ;;
16633 *) # Relative name.
16634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16635 ac_top_srcdir=$ac_top_build_prefix$srcdir
16636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16648 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16649 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16654 # If the template does not know about datarootdir, expand it.
16655 # FIXME: This hack should be removed a few years after 2.60.
16656 ac_datarootdir_hack=; ac_datarootdir_seen=
16667 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16668 *datarootdir*) ac_datarootdir_seen=yes;;
16669 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16671 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16674 ac_datarootdir_hack='
16675 s&@datadir@&$datadir&g
16676 s&@docdir@&$docdir&g
16677 s&@infodir@&$infodir&g
16678 s&@localedir@&$localedir&g
16679 s&@mandir@&$mandir&g
16680 s&\\\${datarootdir}&$datarootdir&g' ;;
16684 # Neutralize VPATH when `$srcdir' = `.'.
16685 # Shell code in configure.ac might set extrasub.
16686 # FIXME: do we really want to maintain this feature?
16687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16688 ac_sed_extra="$ac_vpsub
16691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16693 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16694 s|@configure_input@|$ac_sed_conf_input|;t t
16695 s&@top_builddir@&$ac_top_builddir_sub&;t t
16696 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16697 s&@srcdir@&$ac_srcdir&;t t
16698 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16699 s&@top_srcdir@&$ac_top_srcdir&;t t
16700 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16701 s&@builddir@&$ac_builddir&;t t
16702 s&@abs_builddir@&$ac_abs_builddir&;t t
16703 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16704 s&@INSTALL@&$ac_INSTALL&;t t
16705 $ac_datarootdir_hack
16707 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16708 if $ac_cs_awk_getline; then
16709 $AWK -f "$tmp/subs.awk"
16711 $AWK -f "$tmp/subs.awk" | $SHELL
16713 || as_fn_error "could not create $ac_file" "$LINENO" 5
16715 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16716 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16717 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16719 which seems to be undefined. Please make sure it is defined." >&5
16720 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16721 which seems to be undefined. Please make sure it is defined." >&2;}
16725 -) cat "$tmp/out" && rm -f "$tmp/out";;
16726 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16728 || as_fn_error "could not create $ac_file" "$LINENO" 5
16734 if test x"$ac_file" != x-; then
16736 $as_echo "/* $configure_input */" \
16737 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16738 } >"$tmp/config.h" \
16739 || as_fn_error "could not create $ac_file" "$LINENO" 5
16740 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16742 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16745 mv "$tmp/config.h" "$ac_file" \
16746 || as_fn_error "could not create $ac_file" "$LINENO" 5
16749 $as_echo "/* $configure_input */" \
16750 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16751 || as_fn_error "could not create -" "$LINENO" 5
16759 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16762 # Prefer the file from the source tree if names are identical.
16763 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16764 ac_source=$srcdir/$ac_source
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16768 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16770 if test ! -r "$ac_source"; then
16771 as_fn_error "$ac_source: file not found" "$LINENO" 5
16775 # Try a relative symlink, then a hard link, then a copy.
16777 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16778 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16780 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16781 ln "$ac_source" "$ac_file" 2>/dev/null ||
16782 cp -p "$ac_source" "$ac_file" ||
16783 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16786 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16787 $as_echo "$as_me: executing $ac_file commands" >&6;}
16792 case $ac_file$ac_mode in
16793 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16794 "gcore":F) chmod +x gcore ;;
16796 case x$CONFIG_HEADERS in
16797 xconfig.h:config.in)
16808 ac_clean_files=$ac_clean_files_save
16810 test $ac_write_fail = 0 ||
16811 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16814 # configure is writing to config.log, and then calls config.status.
16815 # config.status does its own redirection, appending to config.log.
16816 # Unfortunately, on DOS this fails, as config.log is still kept open
16817 # by configure, so config.status won't be able to write to it; its
16818 # output is simply discarded. So we exec the FD to /dev/null,
16819 # effectively closing config.log, so it can be properly (re)opened and
16820 # appended to by config.status. When coming back to configure, we
16821 # need to make the FD available again.
16822 if test "$no_create" != yes; then
16824 ac_config_status_args=
16825 test "$silent" = yes &&
16826 ac_config_status_args="$ac_config_status_args --quiet"
16828 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16830 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16831 # would make configure fail if this is the last instruction.
16832 $ac_cs_success || as_fn_exit $?
16836 # CONFIG_SUBDIRS section.
16838 if test "$no_recursion" != yes; then
16840 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16841 # so they do not pile up.
16842 ac_sub_configure_args=
16844 eval "set x $ac_configure_args"
16848 if test -n "$ac_prev"; then
16853 -cache-file | --cache-file | --cache-fil | --cache-fi \
16854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16855 ac_prev=cache_file ;;
16856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16860 --config-cache | -C)
16862 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16864 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16866 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16868 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16870 --disable-option-checking)
16874 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16876 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16880 # Always prepend --prefix to ensure using the same prefix
16881 # in subdir configurations.
16882 ac_arg="--prefix=$prefix"
16884 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16886 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16889 if test "$silent" = yes; then
16890 ac_sub_configure_args="--silent $ac_sub_configure_args"
16893 # Always prepend --disable-option-checking to silence warnings, since
16894 # different subdirs can have different --enable and --with options.
16895 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16898 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16900 # Do not complain, so a configure script can configure whichever
16901 # parts of a large source tree are present.
16902 test -d "$srcdir/$ac_dir" || continue
16904 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16905 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16906 $as_echo "$ac_msg" >&6
16907 as_dir="$ac_dir"; as_fn_mkdir_p
16911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16914 # A ".." for each directory in $ac_dir_suffix.
16915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16916 case $ac_top_builddir_sub in
16917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16921 ac_abs_top_builddir=$ac_pwd
16922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16923 # for backward compatibility:
16924 ac_top_builddir=$ac_top_build_prefix
16927 .) # We are building in place.
16929 ac_top_srcdir=$ac_top_builddir_sub
16930 ac_abs_top_srcdir=$ac_pwd ;;
16931 [\\/]* | ?:[\\/]* ) # Absolute name.
16932 ac_srcdir=$srcdir$ac_dir_suffix;
16933 ac_top_srcdir=$srcdir
16934 ac_abs_top_srcdir=$srcdir ;;
16935 *) # Relative name.
16936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16937 ac_top_srcdir=$ac_top_build_prefix$srcdir
16938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16945 # Check for guested configure; otherwise get Cygnus style configure.
16946 if test -f "$ac_srcdir/configure.gnu"; then
16947 ac_sub_configure=$ac_srcdir/configure.gnu
16948 elif test -f "$ac_srcdir/configure"; then
16949 ac_sub_configure=$ac_srcdir/configure
16950 elif test -f "$ac_srcdir/configure.in"; then
16951 # This should be Cygnus configure.
16952 ac_sub_configure=$ac_aux_dir/configure
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16955 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16959 # The recursion is here.
16960 if test -n "$ac_sub_configure"; then
16961 # Make the cache file name correct relative to the subdirectory.
16962 case $cache_file in
16963 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16964 *) # Relative name.
16965 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16968 { $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
16969 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16970 # The eval makes quoting arguments work.
16971 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16972 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16973 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16979 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16981 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}