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>
592 enable_option_checking
=no
593 ac_subst_vars
='am__EXEEXT_FALSE
656 TARGET_SYSTEM_ROOT_DEFINE
694 INSTALL_STRIP_PROGRAM
727 HAVE_SIGNED_SIG_ATOMIC_T
731 BITSIZEOF_SIG_ATOMIC_T
740 HAVE_UNSIGNED_LONG_LONG_INT
793 GL_COND_LIBTOOL_FALSE
838 MAINTAINER_MODE_FALSE
867 program_transform_name
878 ac_subst_files
='host_makefile_frag'
880 enable_option_checking
881 enable_maintainer_mode
882 enable_dependency_tracking
883 with_separate_debug_dir
885 with_relocated_sources
908 enable_build_warnings
909 enable_gdb_build_warnings
916 ac_precious_vars
='build_alias
928 ac_subdirs_all
='doc testsuite
933 # Initialize some variables set by options.
935 ac_init_version
=false
936 ac_unrecognized_opts
=
938 # The variables have the same names as the options, with
939 # dashes changed to underlines.
947 program_transform_name
=s
,x
,x
,
955 # Installation directory options.
956 # These are left unexpanded so users can "make install exec_prefix=/foo"
957 # and all the variables that are supposed to be based on exec_prefix
958 # by default will actually change.
959 # Use braces instead of parens because sh, perl, etc. also accept them.
960 # (The list follows the same order as the GNU Coding Standards.)
961 bindir
='${exec_prefix}/bin'
962 sbindir
='${exec_prefix}/sbin'
963 libexecdir
='${exec_prefix}/libexec'
964 datarootdir
='${prefix}/share'
965 datadir
='${datarootdir}'
966 sysconfdir
='${prefix}/etc'
967 sharedstatedir
='${prefix}/com'
968 localstatedir
='${prefix}/var'
969 includedir
='${prefix}/include'
970 oldincludedir
='/usr/include'
971 docdir
='${datarootdir}/doc/${PACKAGE}'
972 infodir
='${datarootdir}/info'
977 libdir
='${exec_prefix}/lib'
978 localedir
='${datarootdir}/locale'
979 mandir
='${datarootdir}/man'
985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
987 eval $ac_prev=\
$ac_option
993 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 # Accept the important Cygnus configure options, so we can diagnose typos.
999 case $ac_dashdash$ac_option in
1003 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1005 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1006 bindir
=$ac_optarg ;;
1008 -build |
--build |
--buil |
--bui |
--bu)
1009 ac_prev
=build_alias
;;
1010 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1011 build_alias
=$ac_optarg ;;
1013 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1014 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1015 ac_prev
=cache_file
;;
1016 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1017 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1018 cache_file
=$ac_optarg ;;
1020 --config-cache |
-C)
1021 cache_file
=config.cache
;;
1023 -datadir |
--datadir |
--datadi |
--datad)
1025 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1026 datadir
=$ac_optarg ;;
1028 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1029 |
--dataroo |
--dataro |
--datar)
1030 ac_prev
=datarootdir
;;
1031 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1032 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1033 datarootdir
=$ac_optarg ;;
1035 -disable-* |
--disable-*)
1036 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1039 as_fn_error
"invalid feature name: $ac_useropt"
1040 ac_useropt_orig
=$ac_useropt
1041 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1044 "enable_
$ac_useropt"
1046 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1047 ac_unrecognized_sep
=', ';;
1049 eval enable_
$ac_useropt=no
;;
1051 -docdir |
--docdir |
--docdi |
--doc |
--do)
1053 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1054 docdir
=$ac_optarg ;;
1056 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1058 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1059 dvidir
=$ac_optarg ;;
1061 -enable-* |
--enable-*)
1062 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1065 as_fn_error
"invalid feature name: $ac_useropt"
1066 ac_useropt_orig
=$ac_useropt
1067 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1070 "enable_
$ac_useropt"
1072 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1073 ac_unrecognized_sep
=', ';;
1075 eval enable_
$ac_useropt=\
$ac_optarg ;;
1077 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1078 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1079 |
--exec |
--exe |
--ex)
1080 ac_prev
=exec_prefix
;;
1081 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1082 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1083 |
--exec=* |
--exe=* |
--ex=*)
1084 exec_prefix
=$ac_optarg ;;
1086 -gas |
--gas |
--ga |
--g)
1087 # Obsolete; use --with-gas.
1090 -help |
--help |
--hel |
--he |
-h)
1091 ac_init_help
=long
;;
1092 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1093 ac_init_help
=recursive
;;
1094 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1095 ac_init_help
=short
;;
1097 -host |
--host |
--hos |
--ho)
1098 ac_prev
=host_alias
;;
1099 -host=* |
--host=* |
--hos=* |
--ho=*)
1100 host_alias
=$ac_optarg ;;
1102 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1104 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1106 htmldir
=$ac_optarg ;;
1108 -includedir |
--includedir |
--includedi |
--included |
--include \
1109 |
--includ |
--inclu |
--incl |
--inc)
1110 ac_prev
=includedir
;;
1111 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1112 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1113 includedir
=$ac_optarg ;;
1115 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1117 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1118 infodir
=$ac_optarg ;;
1120 -libdir |
--libdir |
--libdi |
--libd)
1122 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1123 libdir
=$ac_optarg ;;
1125 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1126 |
--libexe |
--libex |
--libe)
1127 ac_prev
=libexecdir
;;
1128 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1129 |
--libexe=* |
--libex=* |
--libe=*)
1130 libexecdir
=$ac_optarg ;;
1132 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1133 ac_prev
=localedir
;;
1134 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1135 localedir
=$ac_optarg ;;
1137 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1138 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1139 ac_prev
=localstatedir
;;
1140 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1141 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1142 localstatedir
=$ac_optarg ;;
1144 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1146 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1147 mandir
=$ac_optarg ;;
1149 -nfp |
--nfp |
--nf)
1150 # Obsolete; use --without-fp.
1153 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1154 |
--no-cr |
--no-c |
-n)
1157 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1158 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1161 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1162 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1163 |
--oldin |
--oldi |
--old |
--ol |
--o)
1164 ac_prev
=oldincludedir
;;
1165 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1166 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1167 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1168 oldincludedir
=$ac_optarg ;;
1170 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1172 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1173 prefix
=$ac_optarg ;;
1175 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1176 |
--program-pre |
--program-pr |
--program-p)
1177 ac_prev
=program_prefix
;;
1178 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1179 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1180 program_prefix
=$ac_optarg ;;
1182 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1183 |
--program-suf |
--program-su |
--program-s)
1184 ac_prev
=program_suffix
;;
1185 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1186 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1187 program_suffix
=$ac_optarg ;;
1189 -program-transform-name |
--program-transform-name \
1190 |
--program-transform-nam |
--program-transform-na \
1191 |
--program-transform-n |
--program-transform- \
1192 |
--program-transform |
--program-transfor \
1193 |
--program-transfo |
--program-transf \
1194 |
--program-trans |
--program-tran \
1195 |
--progr-tra |
--program-tr |
--program-t)
1196 ac_prev
=program_transform_name
;;
1197 -program-transform-name=* |
--program-transform-name=* \
1198 |
--program-transform-nam=* |
--program-transform-na=* \
1199 |
--program-transform-n=* |
--program-transform-=* \
1200 |
--program-transform=* |
--program-transfor=* \
1201 |
--program-transfo=* |
--program-transf=* \
1202 |
--program-trans=* |
--program-tran=* \
1203 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1204 program_transform_name
=$ac_optarg ;;
1206 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1208 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1209 pdfdir
=$ac_optarg ;;
1211 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1213 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1216 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1217 |
-silent |
--silent |
--silen |
--sile |
--sil)
1220 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1222 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1224 sbindir
=$ac_optarg ;;
1226 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1227 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1228 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1230 ac_prev
=sharedstatedir
;;
1231 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1232 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1233 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1235 sharedstatedir
=$ac_optarg ;;
1237 -site |
--site |
--sit)
1239 -site=* |
--site=* |
--sit=*)
1242 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1244 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1245 srcdir
=$ac_optarg ;;
1247 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1248 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1249 ac_prev
=sysconfdir
;;
1250 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1251 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1252 sysconfdir
=$ac_optarg ;;
1254 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1255 ac_prev
=target_alias
;;
1256 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1257 target_alias
=$ac_optarg ;;
1259 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1262 -version |
--version |
--versio |
--versi |
--vers |
-V)
1263 ac_init_version
=: ;;
1266 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1269 as_fn_error
"invalid package name: $ac_useropt"
1270 ac_useropt_orig
=$ac_useropt
1271 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1276 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1277 ac_unrecognized_sep
=', ';;
1279 eval with_
$ac_useropt=\
$ac_optarg ;;
1281 -without-* |
--without-*)
1282 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1285 as_fn_error
"invalid package name: $ac_useropt"
1286 ac_useropt_orig
=$ac_useropt
1287 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1292 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1293 ac_unrecognized_sep
=', ';;
1295 eval with_
$ac_useropt=no
;;
1298 # Obsolete; use --with-x.
1301 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1302 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1303 ac_prev
=x_includes
;;
1304 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1305 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1306 x_includes
=$ac_optarg ;;
1308 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1309 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1310 ac_prev
=x_libraries
;;
1311 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1312 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1313 x_libraries
=$ac_optarg ;;
1315 -*) as_fn_error
"unrecognized option: \`$ac_option'
1316 Try \`$0 --help' for more information."
1320 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 case $ac_envvar in #(
1323 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1324 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1326 eval $ac_envvar=\
$ac_optarg
1327 export $ac_envvar ;;
1330 # FIXME: should be removed in autoconf 3.0.
1331 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1333 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1340 if test -n "$ac_prev"; then
1341 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1342 as_fn_error
"missing argument to $ac_option"
1345 if test -n "$ac_unrecognized_opts"; then
1346 case $enable_option_checking in
1348 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1349 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1353 # Check all directory arguments for consistency.
1354 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1355 datadir sysconfdir sharedstatedir localstatedir includedir \
1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1357 libdir localedir mandir
1359 eval ac_val
=\$
$ac_var
1360 # Remove trailing slashes.
1363 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1364 eval $ac_var=\
$ac_val;;
1366 # Be sure to have absolute directory names.
1368 [\\/$
]* | ?
:[\\/]* ) continue;;
1369 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1371 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1379 target
=$target_alias
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x
; then
1383 if test "x$build_alias" = x
; then
1384 cross_compiling
=maybe
1385 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1393 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1395 test "$silent" = yes && exec 6>/dev
/null
1398 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di
=`ls -di .` &&
1400 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1401 as_fn_error
"working directory cannot be determined"
1402 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403 as_fn_error
"pwd does not report name of working directory"
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408 ac_srcdir_defaulted
=yes
1409 # Try the directory containing this script, then the parent directory.
1410 ac_confdir
=`$as_dirname -- "$as_myself" ||
1411 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412 X"$as_myself" : 'X\(//\)[^/]' \| \
1413 X"$as_myself" : 'X\(//\)$' \| \
1414 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1415 $as_echo X"$as_myself" |
1416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1438 ac_srcdir_defaulted
=no
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1442 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1444 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1456 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 for ac_var
in $ac_precious_vars; do
1459 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1461 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1466 # Report the --help message.
1468 if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1472 \`configure' configures this package to adapt to many kinds of systems.
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE. See below for descriptions of some of the useful variables.
1479 Defaults for the options are specified in brackets.
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492 Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1503 For better control, use the options below.
1505 Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
1530 --program-prefix=PREFIX prepend PREFIX to installed program names
1531 --program-suffix=SUFFIX append SUFFIX to installed program names
1532 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1535 --x-includes=DIR X include files are
in DIR
1536 --x-libraries=DIR X library files are
in DIR
1539 --build=BUILD configure
for building on BUILD
[guessed
]
1540 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1541 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1545 if test -n "$ac_init_help"; then
1550 --disable-option-checking ignore unrecognized
--enable/--with options
1551 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1552 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1553 --enable-maintainer-mode enable make rules and dependencies not useful
1554 (and sometimes confusing
) to the casual installer
1555 --disable-dependency-tracking speeds up one-time build
1556 --enable-dependency-tracking do not reject slow dependency extractors
1557 --enable-targets=TARGETS
1558 alternative target configurations
1559 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1560 --disable-gdbcli disable command-line interface
(CLI
)
1561 --disable-gdbmi disable machine-interface
(MI
)
1562 --enable-tui enable full-screen terminal user interface
(TUI
)
1563 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1564 --enable-profiling enable profiling of GDB
1565 --disable-rpath do not hardcode runtime library paths
1566 --enable-werror treat compile warnings as errors
1567 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1568 --enable-gdb-build-warnings
1569 enable GDB specific build-time compiler warnings
if
1571 --enable-sim link gdb with simulator
1572 --enable-multi-ice build the multi-ice-gdb-server
1575 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1576 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1577 --with-separate-debug-dir=PATH
1578 look for global separate debug info
in this path
1580 --with-gdb-datadir=PATH
look for global separate data files
in this path
1582 --with-relocated-sources=PATH
1583 automatically relocate this path
for source files
1584 --with-libunwind use libunwind frame unwinding support
1585 --with-curses use the curses library instead of the termcap
1587 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1588 --with-bugurl=URL Direct users to URL to report a bug
1589 --with-libiconv-prefix=DIR
1590 search
for libiconv
in DIR
/include and DIR
/lib
1591 --with-system-readline use installed readline library
1592 --with-expat include expat support
(auto
/yes
/no
)
1593 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1594 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1595 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1596 --with-python include python support (auto/yes/no/<path>)
1597 --without-included-regex
1598 don't use included regex
; this is the default on
1599 systems with version
2 of the GNU C library
(use
1600 with caution on other system
)
1601 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1602 --with-system-gdbinit=PATH
1603 automatically load a system-wide gdbinit
file
1604 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1605 --with-tk directory containing tk configuration
(tkConfig.sh
)
1606 --with-x use the X Window System
1608 Some influential environment variables
:
1609 CC C compiler
command
1610 CFLAGS C compiler flags
1611 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1612 nonstandard directory
<lib dir
>
1613 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1614 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1615 you have headers
in a nonstandard directory
<include dir
>
1617 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1618 the first program found out of: `bison
-y', `byacc', `yacc'.
1619 YFLAGS The list of arguments that will be passed by default to $YACC.
1620 This script will default YFLAGS to the empty string to avoid a
1621 default value of `-d' given by some make applications.
1622 XMKMF Path to xmkmf, Makefile generator for X Window System
1624 Use these variables to override the choices made by `configure' or to
help
1625 it to
find libraries and programs with nonstandard names
/locations.
1627 Report bugs to the package provider.
1632 if test "$ac_init_help" = "recursive"; then
1633 # If there are subdirs, report their specific --help.
1634 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1635 test -d "$ac_dir" ||
1636 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1641 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1643 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1648 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1651 ac_abs_top_builddir
=$ac_pwd
1652 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir
=$ac_top_build_prefix
1657 .
) # We are building in place.
1659 ac_top_srcdir
=$ac_top_builddir_sub
1660 ac_abs_top_srcdir
=$ac_pwd ;;
1661 [\\/]* | ?
:[\\/]* ) # Absolute name.
1662 ac_srcdir
=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir
=$srcdir
1664 ac_abs_top_srcdir
=$srcdir ;;
1666 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1670 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1672 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1681 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1691 generated by GNU Autoconf
2.64
1693 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1694 This configure
script is free software
; the Free Software Foundation
1695 gives unlimited permission to copy
, distribute and modify it.
1700 ## ------------------------ ##
1701 ## Autoconf initialization. ##
1702 ## ------------------------ ##
1704 # ac_fn_c_try_compile LINENO
1705 # --------------------------
1706 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_compile
()
1709 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1710 rm -f conftest.
$ac_objext
1711 if { { ac_try
="$ac_compile"
1713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_compile") 2>conftest.err
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && {
1727 test -z "$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 } && test -s conftest.$ac_objext; then :
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 } # ac_fn_c_try_compile
1742 # ac_fn_c_try_cpp LINENO
1743 # ----------------------
1744 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_cpp conftest.$ac_ext"
1750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1751 *) ac_try_echo
=$ac_try;;
1753 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1757 if test -s conftest.err
; then
1758 grep -v '^ *+' conftest.err
>conftest.er1
1759 cat conftest.er1
>&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } >/dev
/null
&& {
1764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.
$ac_ext >&5
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1779 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782 # the include files in INCLUDES and setting the cache variable VAR
1784 ac_fn_c_check_header_mongrel
()
1786 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1787 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791 $as_echo_n "(cached) " >&6
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1797 # Is the header compilable?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799 $as_echo_n "checking $2 usability... " >&6; }
1800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1805 if ac_fn_c_try_compile
"$LINENO"; then :
1806 ac_header_compiler
=yes
1808 ac_header_compiler
=no
1810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812 $as_echo "$ac_header_compiler" >&6; }
1814 # Is the header present?
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816 $as_echo_n "checking $2 presence... " >&6; }
1817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1821 if ac_fn_c_try_cpp
"$LINENO"; then :
1822 ac_header_preproc
=yes
1824 ac_header_preproc
=no
1826 rm -f conftest.err conftest.
$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828 $as_echo "$ac_header_preproc" >&6; }
1830 # So? What about this header?
1831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1842 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1846 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854 $as_echo_n "(cached) " >&6
1856 eval "$3=\$ac_header_compiler"
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1864 } # ac_fn_c_check_header_mongrel
1866 # ac_fn_c_try_run LINENO
1867 # ----------------------
1868 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1869 # that executables *can* be run.
1872 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1873 if { { ac_try
="$ac_link"
1875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_link") 2>&5
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1884 { { case "(($ac_try" in
1885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1886 *) ac_try_echo
=$ac_try;;
1888 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_try") 2>&5
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; }; }; then :
1896 $as_echo "$as_me: program exited with status $ac_status" >&5
1897 $as_echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.
$ac_ext >&5
1900 ac_retval
=$ac_status
1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1908 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists and can be compiled using the include files in
1911 # INCLUDES, setting the cache variable VAR accordingly.
1912 ac_fn_c_check_header_compile
()
1914 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1925 if ac_fn_c_try_compile
"$LINENO"; then :
1930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1937 } # ac_fn_c_check_header_compile
1939 # ac_fn_c_try_link LINENO
1940 # -----------------------
1941 # Try to link conftest.$ac_ext, and return whether this succeeded.
1944 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1945 rm -f conftest.
$ac_objext conftest
$ac_exeext
1946 if { { ac_try
="$ac_link"
1948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_link") 2>conftest.err
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } && {
1962 test -z "$ac_c_werror_flag" ||
1963 test ! -s conftest.err
1964 } && test -s conftest$ac_exeext && {
1965 test "$cross_compiling" = yes ||
1966 $as_test_x conftest$ac_exeext
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1975 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1976 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1977 # interfere with the next link command; also delete a directory that is
1978 # left behind by Apple's compiler. We do this before executing the actions.
1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1983 } # ac_fn_c_try_link
1985 # ac_fn_c_check_func LINENO FUNC VAR
1986 # ----------------------------------
1987 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1988 ac_fn_c_check_func ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1998 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2000 #define $2 innocuous_$2
2002 /* System header to define __stub macros and hopefully few prototypes,
2003 which can conflict with char $2 (); below.
2004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2005 <limits.h> exists even on freestanding compilers. */
2008 # include <limits.h>
2010 # include <assert.h>
2015 /* Override any GCC internal prototype to avoid an error.
2016 Use char because int might match the return type of a GCC
2017 builtin and then its argument prototype would still apply. */
2022 /* The GNU C library defines this for functions which it implements
2023 to always fail with ENOSYS. Some functions are actually named
2024 something starting with __ and the normal name is an alias. */
2025 #if defined __stub_$2 || defined __stub___$2
2037 if ac_fn_c_try_link "$LINENO"; then :
2042 rm -f core conftest.err conftest.$ac_objext \
2043 conftest$ac_exeext conftest.$ac_ext
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050 } # ac_fn_c_check_func
2052 # ac_fn_c_check_decl LINENO SYMBOL VAR
2053 # ------------------------------------
2054 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2055 ac_fn_c_check_decl ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2059 $as_echo_n "checking whether $2 is declared... " >&6; }
2060 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2061 $as_echo_n "(cached) " >&6
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2077 if ac_fn_c_try_compile "$LINENO"; then :
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086 $as_echo "$ac_res" >&6; }
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2089 } # ac_fn_c_check_decl
2091 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2092 # --------------------------------------------
2093 # Tries to find the compile-time value of EXPR in a program that includes
2094 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2096 ac_fn_c_compute_int ()
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 if test "$cross_compiling" = yes; then
2100 # Depending upon the size, compute the lo and hi bounds.
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2107 static int test_array [1 - 2 * !(($2) >= 0)];
2114 if ac_fn_c_try_compile "$LINENO"; then :
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2123 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 ac_hi=$ac_mid; break
2133 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2134 if test $ac_lo -le $ac_mid; then
2138 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2149 static int test_array [1 - 2 * !(($2) < 0)];
2156 if ac_fn_c_try_compile "$LINENO"; then :
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2165 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 ac_lo=$ac_mid; break
2175 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2176 if test $ac_mid -le $ac_hi; then
2180 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 # Binary search between lo and hi bounds.
2191 while test "x$ac_lo" != "x$ac_hi"; do
2192 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2199 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206 if ac_fn_c_try_compile "$LINENO"; then :
2209 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2221 static long int longval () { return $2; }
2222 static unsigned long int ulongval () { return $2; }
2229 FILE *f = fopen ("conftest.val", "w");
2234 long int i = longval ();
2237 fprintf (f, "%ld", i);
2241 unsigned long int i = ulongval ();
2244 fprintf (f, "%lu", i);
2246 /* Do not output a trailing newline, as this causes \r\n confusion
2247 on some platforms. */
2248 return ferror (f) || fclose (f) != 0;
2254 if ac_fn_c_try_run "$LINENO"; then :
2255 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2260 conftest.$ac_objext conftest.beam conftest.$ac_ext
2264 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2267 } # ac_fn_c_compute_int
2269 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2270 # ----------------------------------------------------
2271 # Tries to find if the field MEMBER exists in type AGGR, after including
2272 # INCLUDES, setting cache variable VAR accordingly.
2273 ac_fn_c_check_member ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2277 $as_echo_n "checking for $2.$3... " >&6; }
2278 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2279 $as_echo_n "(cached) " >&6
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2294 if ac_fn_c_try_compile "$LINENO"; then :
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2304 if (sizeof ac_aggr.$3)
2310 if ac_fn_c_try_compile "$LINENO"; then :
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 $as_echo "$ac_res" >&6; }
2322 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2324 } # ac_fn_c_check_member
2326 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2327 # -------------------------------------------
2328 # Tests whether TYPE exists after having included INCLUDES, setting cache
2329 # variable VAR accordingly.
2330 ac_fn_c_check_type ()
2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2334 $as_echo_n "checking for $2... " >&6; }
2335 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2336 $as_echo_n "(cached) " >&6
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2351 if ac_fn_c_try_compile "$LINENO"; then :
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2364 if ac_fn_c_try_compile "$LINENO"; then :
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2375 $as_echo "$ac_res" >&6; }
2376 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2378 } # ac_fn_c_check_type
2379 cat >config.log <<_ACEOF
2380 This file contains any messages produced by compilers while
2381 running configure, to aid debugging if configure makes a mistake.
2383 It was created by $as_me, which was
2384 generated by GNU Autoconf 2.64. Invocation command line was
2396 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2397 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2398 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2399 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2400 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2402 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2403 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2405 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2406 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2407 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2408 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2409 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2410 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2411 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 test -z "$as_dir" && as_dir=.
2420 $as_echo "PATH: $as_dir"
2436 # Keep a trace of the command line.
2437 # Strip out --no-create and --no-recursion so they do not pile up.
2438 # Strip out --silent because we don't want to record it for future runs.
2439 # Also quote any args containing shell meta-characters.
2440 # Make two passes to allow for proper duplicate-argument suppression.
2444 ac_must_keep_next=false
2450 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2451 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2452 | -silent | --silent | --silen | --sile | --sil)
2455 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2458 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2460 as_fn_append ac_configure_args1 " '$ac_arg'"
2461 if test $ac_must_keep_next = true; then
2462 ac_must_keep_next=false # Got value, back to normal.
2465 *=* | --config-cache | -C | -disable-* | --disable-* \
2466 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2467 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2468 | -with-* | --with-* | -without-* | --without-* | --x)
2469 case "$ac_configure_args0 " in
2470 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2473 -* ) ac_must_keep_next=true ;;
2476 as_fn_append ac_configure_args " '$ac_arg'"
2481 { ac_configure_args0=; unset ac_configure_args0;}
2482 { ac_configure_args1=; unset ac_configure_args1;}
2484 # When interrupted or exit'd, cleanup temporary files, and complete
2485 # config.log. We remove comments because anyway the quotes in there
2486 # would cause problems or look ugly.
2487 # WARNING: Use '\'' to represent an apostrophe within the trap.
2488 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2489 trap 'exit_status=$?
2490 # Save into config.log some information that might help in debugging.
2495 ## ---------------- ##
2496 ## Cache variables. ##
2497 ## ---------------- ##
2500 # The following way of writing the cache mishandles newlines in values,
2502 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2503 eval ac_val=\$$ac_var
2507 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2508 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2511 _ | IFS | as_nl) ;; #(
2512 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2513 *) { eval $ac_var=; unset $ac_var;} ;;
2518 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2519 *${as_nl}ac_space=\ *)
2521 "s/'\''/'\''\\\\'\'''\''/g;
2522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2525 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2533 ## ----------------- ##
2534 ## Output variables. ##
2535 ## ----------------- ##
2538 for ac_var in $ac_subst_vars
2540 eval ac_val=\$$ac_var
2542 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2544 $as_echo "$ac_var='\''$ac_val'\''"
2548 if test -n "$ac_subst_files"; then
2550 ## ------------------- ##
2551 ## File substitutions. ##
2552 ## ------------------- ##
2555 for ac_var in $ac_subst_files
2557 eval ac_val=\$$ac_var
2559 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2561 $as_echo "$ac_var='\''$ac_val'\''"
2566 if test -s confdefs.h; then
2576 test "$ac_signal" != 0 &&
2577 $as_echo "$as_me: caught signal $ac_signal"
2578 $as_echo "$as_me: exit $exit_status"
2580 rm -f core *.core core.conftest.* &&
2581 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2584 for ac_signal in 1 2 13 15; do
2585 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2589 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2590 rm -f -r conftest* confdefs.h
2592 $as_echo "/* confdefs.h */" > confdefs.h
2594 # Predefined preprocessor variables.
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_NAME "$PACKAGE_NAME"
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_STRING "$PACKAGE_STRING"
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_URL "$PACKAGE_URL"
2621 # Let the site file select an alternate cache file if it wants to.
2622 # Prefer an explicitly selected file to automatically selected ones.
2625 if test -n "$CONFIG_SITE"; then
2626 ac_site_file1=$CONFIG_SITE
2627 elif test "x$prefix" != xNONE; then
2628 ac_site_file1=$prefix/share/config.site
2629 ac_site_file2=$prefix/etc/config.site
2631 ac_site_file1=$ac_default_prefix/share/config.site
2632 ac_site_file2=$ac_default_prefix/etc/config.site
2634 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2636 test "x$ac_site_file" = xNONE && continue
2637 if test -r "$ac_site_file"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2639 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2640 sed 's/^/| /' "$ac_site_file" >&5
2645 if test -r "$cache_file"; then
2646 # Some versions of bash will fail to source /dev/null (special
2647 # files actually), so we avoid doing that.
2648 if test -f "$cache_file"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2650 $as_echo "$as_me: loading cache $cache_file" >&6;}
2652 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2653 *) . "./$cache_file";;
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2658 $as_echo "$as_me: creating cache $cache_file" >&6;}
2662 gl_header_list="$gl_header_list stdint.h"
2663 gl_header_list="$gl_header_list wchar.h"
2664 gl_header_list="$gl_header_list string.h"
2665 # Check that the precious variables saved in the cache have kept the same
2667 ac_cache_corrupted=false
2668 for ac_var in $ac_precious_vars; do
2669 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2670 eval ac_new_set=\$ac_env_${ac_var}_set
2671 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2672 eval ac_new_val=\$ac_env_${ac_var}_value
2673 case $ac_old_set,$ac_new_set in
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2676 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2677 ac_cache_corrupted=: ;;
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2680 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2681 ac_cache_corrupted=: ;;
2684 if test "x$ac_old_val" != "x$ac_new_val"; then
2685 # differences in whitespace do not lead to failure.
2686 ac_old_val_w=`echo x
$ac_old_val`
2687 ac_new_val_w=`echo x
$ac_new_val`
2688 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2690 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2691 ac_cache_corrupted=:
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2694 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2695 eval $ac_var=\$ac_old_val
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2698 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2700 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2703 # Pass precious variables to config.status.
2704 if test "$ac_new_set" = set; then
2706 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2707 *) ac_arg=$ac_var=$ac_new_val ;;
2709 case " $ac_configure_args " in
2710 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2711 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2715 if $ac_cache_corrupted; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2719 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2720 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2722 ## -------------------- ##
2723 ## Main body of script. ##
2724 ## -------------------- ##
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736 ac_config_headers="$ac_config_headers config.h:config.in"
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2740 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2741 # Check whether --enable-maintainer-mode was given.
2742 if test "${enable_maintainer_mode+set}" = set; then :
2743 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2745 USE_MAINTAINER_MODE=no
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2749 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2750 if test $USE_MAINTAINER_MODE = yes; then
2751 MAINTAINER_MODE_TRUE=
2752 MAINTAINER_MODE_FALSE='#'
2754 MAINTAINER_MODE_TRUE='#'
2755 MAINTAINER_MODE_FALSE=
2758 MAINT=$MAINTAINER_MODE_TRUE
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 if test -n "$ac_tool_prefix"; then
2768 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2769 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if test "${ac_cv_prog_CC+set}" = set; then :
2773 $as_echo_n "(cached) " >&6
2775 if test -n "$CC"; then
2776 ac_cv_prog_CC="$CC" # Let the user override the test.
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 if test -n "$CC"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2798 $as_echo "$CC" >&6; }
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2806 if test -z "$ac_cv_prog_CC"; then
2808 # Extract the first word of "gcc", so it can be a program name with args.
2809 set dummy gcc; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
2815 if test -n "$ac_ct_CC"; then
2816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_ac_ct_CC="gcc"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2838 $as_echo "$ac_ct_CC" >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2844 if test "x$ac_ct_CC" = x; then
2847 case $cross_compiling:$ac_tool_warned in
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2851 ac_tool_warned=yes ;;
2859 if test -z "$CC"; then
2860 if test -n "$ac_tool_prefix"; then
2861 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2862 set dummy ${ac_tool_prefix}cc; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if test "${ac_cv_prog_CC+set}" = set; then :
2866 $as_echo_n "(cached) " >&6
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_CC="${ac_tool_prefix}cc"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 if test -n "$CC"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2891 $as_echo "$CC" >&6; }
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2900 if test -z "$CC"; then
2901 # Extract the first word of "cc", so it can be a program name with args.
2902 set dummy cc; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if test "${ac_cv_prog_CC+set}" = set; then :
2906 $as_echo_n "(cached) " >&6
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2920 ac_prog_rejected=yes
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 if test $ac_prog_rejected = yes; then
2932 # We found a bogon in the path, so make sure we never use it.
2933 set dummy $ac_cv_prog_CC
2935 if test $# != 0; then
2936 # We chose a different compiler from the bogus one.
2937 # However, it has the same basename, so the bogon will be chosen
2938 # first if we set CC to just the basename; use the full file name.
2940 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2946 if test -n "$CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948 $as_echo "$CC" >&6; }
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2956 if test -z "$CC"; then
2957 if test -n "$ac_tool_prefix"; then
2958 for ac_prog in cl.exe
2960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if test "${ac_cv_prog_CC+set}" = set; then :
2965 $as_echo_n "(cached) " >&6
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC="$CC" # Let the user override the test.
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 if test -n "$CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990 $as_echo "$CC" >&6; }
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2997 test -n "$CC" && break
3000 if test -z "$CC"; then
3002 for ac_prog in cl.exe
3004 # Extract the first word of "$ac_prog", so it can be a program name with args.
3005 set dummy $ac_prog; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3011 if test -n "$ac_ct_CC"; then
3012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_ac_ct_CC="$ac_prog"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3032 if test -n "$ac_ct_CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3034 $as_echo "$ac_ct_CC" >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3041 test -n "$ac_ct_CC" && break
3044 if test "x$ac_ct_CC" = x; then
3047 case $cross_compiling:$ac_tool_warned in
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3051 ac_tool_warned=yes ;;
3060 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 as_fn_error "no acceptable C compiler found
in \
$PATH
3063 See \
`config.log' for more details." "$LINENO" 5; }
3065 # Provide some information about the compiler.
3066 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3069 for ac_option in --version -v -V -qversion; do
3070 { { ac_try="$ac_compiler $ac_option >&5"
3072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3073 *) ac_try_echo
=$ac_try;;
3075 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3079 if test -s conftest.err
; then
3081 ... rest of stderr output deleted ...
3082 10q' conftest.err
>conftest.er1
3083 cat conftest.er1
>&5
3084 rm -f conftest.er1 conftest.err
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }
3090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3091 /* end confdefs.h. */
3101 ac_clean_files_save
=$ac_clean_files
3102 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3103 # Try to create an executable without -o first, disregard a.out.
3104 # It will help us diagnose broken compilers, and finding out an intuition
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3107 $as_echo_n "checking for C compiler default output file name... " >&6; }
3108 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3110 # The possible output files:
3111 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3114 for ac_file
in $ac_files
3117 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3118 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3123 if { { ac_try
="$ac_link_default"
3125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129 $as_echo "$ac_try_echo"; } >&5
3130 (eval "$ac_link_default") 2>&5
3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133 test $ac_status = 0; }; then :
3134 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3135 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3136 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3137 # so that the user can short-circuit this test for compilers unknown to
3139 for ac_file in $ac_files ''
3141 test -f "$ac_file" || continue
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3146 # We found the default executable, but exeext='' is most
3150 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3152 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154 # We set ac_cv_exeext here because the later test for it is not
3155 # safe: cross compilers may not add the suffix if given an `-o'
3156 # argument, so we may need to know it at that point already.
3157 # Even if this section looks crufty: it has the advantage of
3164 test "$ac_cv_exeext" = no && ac_cv_exeext=
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3170 $as_echo "$ac_file" >&6; }
3171 if test -z "$ac_file"; then :
3172 $as_echo "$as_me: failed program was:" >&5
3173 sed 's
/^
/|
/' conftest.$ac_ext >&5
3175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3177 { as_fn_set_status 77
3178 as_fn_error "C compiler cannot create executables
3179 See \`config.log
' for more details." "$LINENO" 5; }; }
3181 ac_exeext=$ac_cv_exeext
3183 # Check that the compiler produces executables we can run. If not, either
3184 # the compiler is broken, or we cross compile.
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3186 $as_echo_n "checking whether the C compiler works... " >&6; }
3187 # If not cross compiling, check that we can run a simple program.
3188 if test "$cross_compiling" != yes; then
3189 if { ac_try='.
/$ac_file'
3190 { { case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_try") 2>&5
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; }; then
3202 if test "$cross_compiling" = maybe; then
3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3207 as_fn_error "cannot run C compiled programs.
3208 If you meant to cross compile, use \`--host'.
3209 See \`config.log' for more details.
" "$LINENO" 5; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3214 $as_echo "yes" >&6; }
3216 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3217 ac_clean_files=$ac_clean_files_save
3218 # Check that the compiler produces executables we can run. If not, either
3219 # the compiler is broken, or we cross compile.
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3221 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3223 $as_echo "$cross_compiling" >&6; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3226 $as_echo_n "checking
for suffix of executables...
" >&6; }
3227 if { { ac_try="$ac_link"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_link") 2>&5
3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3237 test $ac_status = 0; }; then :
3238 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3239 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3240 # work properly (i.e., refer to `conftest.exe'), while it won't with
3242 for ac_file in conftest.exe conftest conftest.*; do
3243 test -f "$ac_file" || continue
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3246 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error "cannot compute suffix of executables: cannot compile and link
3255 See \`config.log' for more details.
" "$LINENO" 5; }
3257 rm -f conftest$ac_cv_exeext
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3259 $as_echo "$ac_cv_exeext" >&6; }
3261 rm -f conftest.$ac_ext
3262 EXEEXT=$ac_cv_exeext
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3265 $as_echo_n "checking
for suffix of object files...
" >&6; }
3266 if test "${ac_cv_objext+set}" = set; then :
3267 $as_echo_n "(cached
) " >&6
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3280 rm -f conftest.o conftest.obj
3281 if { { ac_try="$ac_compile"
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 $as_echo "$ac_try_echo"; } >&5
3288 (eval "$ac_compile") 2>&5
3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3291 test $ac_status = 0; }; then :
3292 for ac_file in conftest.o conftest.obj conftest.*; do
3293 test -f "$ac_file" || continue;
3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3296 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3301 $as_echo "$as_me: failed program was
:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error "cannot compute suffix of object files: cannot compile
3307 See \`config.log' for more details.
" "$LINENO" 5; }
3309 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3312 $as_echo "$ac_cv_objext" >&6; }
3313 OBJEXT=$ac_cv_objext
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3316 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3317 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3318 $as_echo_n "(cached
) " >&6
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3334 if ac_fn_c_try_compile "$LINENO"; then :
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3344 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3345 if test $ac_compiler_gnu = yes; then
3350 ac_test_CFLAGS=${CFLAGS+set}
3351 ac_save_CFLAGS=$CFLAGS
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3353 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3354 if test "${ac_cv_prog_cc_g+set}" = set; then :
3355 $as_echo_n "(cached
) " >&6
3357 ac_save_c_werror_flag=$ac_c_werror_flag
3358 ac_c_werror_flag=yes
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3372 if ac_fn_c_try_compile "$LINENO"; then :
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3387 if ac_fn_c_try_compile "$LINENO"; then :
3390 ac_c_werror_flag=$ac_save_c_werror_flag
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3403 if ac_fn_c_try_compile "$LINENO"; then :
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 ac_c_werror_flag=$ac_save_c_werror_flag
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3414 $as_echo "$ac_cv_prog_cc_g" >&6; }
3415 if test "$ac_test_CFLAGS" = set; then
3416 CFLAGS=$ac_save_CFLAGS
3417 elif test $ac_cv_prog_cc_g = yes; then
3418 if test "$GCC" = yes; then
3424 if test "$GCC" = yes; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3431 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3432 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3433 $as_echo_n "(cached
) " >&6
3435 ac_cv_prog_cc_c89=no
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3441 #include <sys/types.h>
3442 #include <sys/stat.h>
3443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3444 struct buf { int x; };
3445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3446 static char *e (p, i)
3452 static char *f (char * (*g) (char **, int), char **p, ...)
3457 s = g (p, va_arg (v,int));
3462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3463 function prototypes and stuff, but not '\xHH' hex character constants.
3464 These don't provoke an error unfortunately, instead are silently treated
3465 as 'x'. The following induces an error, until -std is added to get
3466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3467 array size at least. It's necessary to write '\x00'==0 to get something
3468 that's true only with -std. */
3469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3471 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3472 inside strings and character constants. */
3474 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3476 int test (int i, double x);
3477 struct s1 {int (*f) (int a);};
3478 struct s2 {int (*f) (double a);};
3479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3490 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3491 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3493 CC="$ac_save_CC $ac_arg"
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_cv_prog_cc_c89=$ac_arg
3497 rm -f core conftest.err conftest.$ac_objext
3498 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3500 rm -f conftest.$ac_ext
3505 case "x
$ac_cv_prog_cc_c89" in
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3508 $as_echo "none needed
" >&6; } ;;
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3511 $as_echo "unsupported
" >&6; } ;;
3513 CC="$CC $ac_cv_prog_cc_c89"
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3515 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3517 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3534 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3535 # On Suns, sometimes $CPP names a directory.
3536 if test -n "$CPP" && test -d "$CPP"; then
3539 if test -z "$CPP"; then
3540 if test "${ac_cv_prog_CPP+set}" = set; then :
3541 $as_echo_n "(cached
) " >&6
3543 # Double quotes because CPP needs to be expanded
3544 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3547 for ac_c_preproc_warn_flag in '' yes
3549 # Use a header file that comes with gcc, so configuring glibc
3550 # with a fresh cross-compiler works.
3551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3552 # <limits.h> exists even on freestanding compilers.
3553 # On the NeXT, cc -E runs the code through the compiler's parser,
3554 # not just through cpp. "Syntax error
" is here to catch this case.
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3558 # include <limits.h>
3560 # include <assert.h>
3564 if ac_fn_c_try_cpp "$LINENO"; then :
3567 # Broken: fails on valid input.
3570 rm -f conftest.err conftest.$ac_ext
3572 # OK, works on sane cases. Now check whether nonexistent headers
3573 # can be detected and how.
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576 #include <ac_nonexistent.h>
3578 if ac_fn_c_try_cpp "$LINENO"; then :
3579 # Broken: success on invalid input.
3582 # Passes both tests.
3586 rm -f conftest.err conftest.$ac_ext
3589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3590 rm -f conftest.err conftest.$ac_ext
3591 if $ac_preproc_ok; then :
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3604 $as_echo "$CPP" >&6; }
3606 for ac_c_preproc_warn_flag in '' yes
3608 # Use a header file that comes with gcc, so configuring glibc
3609 # with a fresh cross-compiler works.
3610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3611 # <limits.h> exists even on freestanding compilers.
3612 # On the NeXT, cc -E runs the code through the compiler's parser,
3613 # not just through cpp. "Syntax error
" is here to catch this case.
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3617 # include <limits.h>
3619 # include <assert.h>
3623 if ac_fn_c_try_cpp "$LINENO"; then :
3626 # Broken: fails on valid input.
3629 rm -f conftest.err conftest.$ac_ext
3631 # OK, works on sane cases. Now check whether nonexistent headers
3632 # can be detected and how.
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3635 #include <ac_nonexistent.h>
3637 if ac_fn_c_try_cpp "$LINENO"; then :
3638 # Broken: success on invalid input.
3641 # Passes both tests.
3645 rm -f conftest.err conftest.$ac_ext
3648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3649 rm -f conftest.err conftest.$ac_ext
3650 if $ac_preproc_ok; then :
3653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3655 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3656 See \`config.log' for more details.
" "$LINENO" 5; }
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3667 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3668 if test "${ac_cv_path_GREP+set}" = set; then :
3669 $as_echo_n "(cached
) " >&6
3671 if test -z "$GREP"; then
3672 ac_path_GREP_found=false
3673 # Loop through the user's path and test for each of PROGNAME-LIST
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3678 test -z "$as_dir" && as_dir=.
3679 for ac_prog in grep ggrep; do
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3682 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3683 # Check for GNU ac_path_GREP and select it if it is found.
3684 # Check for GNU $ac_path_GREP
3685 case `"$ac_path_GREP" --version 2>&1` in
3687 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3690 $as_echo_n 0123456789 >"conftest.
in"
3693 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3694 mv "conftest.tmp
" "conftest.
in"
3695 cp "conftest.
in" "conftest.
nl"
3696 $as_echo 'GREP' >> "conftest.
nl"
3697 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3698 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3699 as_fn_arith $ac_count + 1 && ac_count=$as_val
3700 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3701 # Best one so far, save it but keep looking for a better one
3702 ac_cv_path_GREP="$ac_path_GREP"
3703 ac_path_GREP_max=$ac_count
3705 # 10*(2^10) chars as input seems more than enough
3706 test $ac_count -gt 10 && break
3708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711 $ac_path_GREP_found && break 3
3716 if test -z "$ac_cv_path_GREP"; then
3717 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3720 ac_cv_path_GREP=$GREP
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3725 $as_echo "$ac_cv_path_GREP" >&6; }
3726 GREP="$ac_cv_path_GREP"
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3730 $as_echo_n "checking
for egrep...
" >&6; }
3731 if test "${ac_cv_path_EGREP+set}" = set; then :
3732 $as_echo_n "(cached
) " >&6
3734 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3735 then ac_cv_path_EGREP="$GREP -E"
3737 if test -z "$EGREP"; then
3738 ac_path_EGREP_found=false
3739 # Loop through the user's path and test for each of PROGNAME-LIST
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3744 test -z "$as_dir" && as_dir=.
3745 for ac_prog in egrep; do
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3748 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3749 # Check for GNU ac_path_EGREP and select it if it is found.
3750 # Check for GNU $ac_path_EGREP
3751 case `"$ac_path_EGREP" --version 2>&1` in
3753 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3756 $as_echo_n 0123456789 >"conftest.
in"
3759 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3760 mv "conftest.tmp
" "conftest.
in"
3761 cp "conftest.
in" "conftest.
nl"
3762 $as_echo 'EGREP' >> "conftest.
nl"
3763 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3764 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3765 as_fn_arith $ac_count + 1 && ac_count=$as_val
3766 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3767 # Best one so far, save it but keep looking for a better one
3768 ac_cv_path_EGREP="$ac_path_EGREP"
3769 ac_path_EGREP_max=$ac_count
3771 # 10*(2^10) chars as input seems more than enough
3772 test $ac_count -gt 10 && break
3774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3777 $ac_path_EGREP_found && break 3
3782 if test -z "$ac_cv_path_EGREP"; then
3783 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3786 ac_cv_path_EGREP=$EGREP
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3792 $as_echo "$ac_cv_path_EGREP" >&6; }
3793 EGREP="$ac_cv_path_EGREP"
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3797 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3798 if test "${ac_cv_header_stdc+set}" = set; then :
3799 $as_echo_n "(cached
) " >&6
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3816 if ac_fn_c_try_compile "$LINENO"; then :
3817 ac_cv_header_stdc=yes
3819 ac_cv_header_stdc=no
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 if test $ac_cv_header_stdc = yes; then
3824 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3830 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3831 $EGREP "memchr
" >/dev/null 2>&1; then :
3834 ac_cv_header_stdc=no
3840 if test $ac_cv_header_stdc = yes; then
3841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3847 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3848 $EGREP "free
" >/dev/null 2>&1; then :
3851 ac_cv_header_stdc=no
3857 if test $ac_cv_header_stdc = yes; then
3858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3859 if test "$cross_compiling" = yes; then :
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3866 #if ((' ' & 0x0FF) == 0x020)
3867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3870 # define ISLOWER(c) \
3871 (('a' <= (c) && (c) <= 'i') \
3872 || ('j' <= (c) && (c) <= 'r') \
3873 || ('s' <= (c) && (c) <= 'z'))
3874 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3877 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3882 for (i = 0; i < 256; i++)
3883 if (XOR (islower (i), ISLOWER (i))
3884 || toupper (i) != TOUPPER (i))
3889 if ac_fn_c_try_run "$LINENO"; then :
3892 ac_cv_header_stdc=no
3894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3895 conftest.$ac_objext conftest.beam conftest.$ac_ext
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3901 $as_echo "$ac_cv_header_stdc" >&6; }
3902 if test $ac_cv_header_stdc = yes; then
3904 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3908 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3909 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3910 inttypes.h stdint.h unistd.h
3912 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3913 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3915 eval as_val
=\$
$as_ac_Header
3916 if test "x$as_val" = x
""yes; then :
3917 cat >>confdefs.h
<<_ACEOF
3918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3927 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3928 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3935 if test "$MINIX" = yes; then
3937 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3940 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3943 $as_echo "#define _MINIX 1" >>confdefs.h
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3949 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3950 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3956 # define __EXTENSIONS__ 1
3957 $ac_includes_default
3966 if ac_fn_c_try_compile
"$LINENO"; then :
3967 ac_cv_safe_to_define___extensions__
=yes
3969 ac_cv_safe_to_define___extensions__
=no
3971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3974 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3975 test $ac_cv_safe_to_define___extensions__ = yes &&
3976 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3978 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3980 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3982 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3984 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3987 if test -n "$ac_tool_prefix"; then
3988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3989 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3995 if test -n "$RANLIB"; then
3996 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4002 test -z "$as_dir" && as_dir
=.
4003 for ac_exec_ext
in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 RANLIB
=$ac_cv_prog_RANLIB
4016 if test -n "$RANLIB"; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4018 $as_echo "$RANLIB" >&6; }
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4026 if test -z "$ac_cv_prog_RANLIB"; then
4027 ac_ct_RANLIB
=$RANLIB
4028 # Extract the first word of "ranlib", so it can be a program name with args.
4029 set dummy ranlib
; ac_word
=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
4035 if test -n "$ac_ct_RANLIB"; then
4036 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4042 test -z "$as_dir" && as_dir
=.
4043 for ac_exec_ext
in '' $ac_executable_extensions; do
4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4045 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4056 if test -n "$ac_ct_RANLIB"; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4058 $as_echo "$ac_ct_RANLIB" >&6; }
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4064 if test "x$ac_ct_RANLIB" = x
; then
4067 case $cross_compiling:$ac_tool_warned in
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4071 ac_tool_warned
=yes ;;
4073 RANLIB
=$ac_ct_RANLIB
4076 RANLIB
="$ac_cv_prog_RANLIB"
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4088 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4089 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4092 am_cv_prog_cc_stdc
=no
4094 # Don't try gcc -ansi; that turns off useful extensions and
4095 # breaks some systems' header files.
4096 # AIX -qlanglvl=ansi
4097 # Ultrix and OSF/1 -std1
4098 # HP-UX 10.20 and later -Ae
4099 # HP-UX older versions -Aa -D_HPUX_SOURCE
4100 # SVR4 -Xc -D__EXTENSIONS__
4101 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4103 CC
="$ac_save_CC $ac_arg"
4104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4108 #include <sys/types.h>
4109 #include <sys/stat.h>
4110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4111 struct buf { int x; };
4112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4113 static char *e (p, i)
4119 static char *f (char * (*g) (char **, int), char **p, ...)
4124 s = g (p, va_arg (v,int));
4128 int test (int i, double x);
4129 struct s1 {int (*f) (int a);};
4130 struct s2 {int (*f) (double a);};
4131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4139 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4145 if ac_fn_c_try_compile
"$LINENO"; then :
4146 am_cv_prog_cc_stdc
="$ac_arg"; break
4148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4154 if test -z "$am_cv_prog_cc_stdc"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4156 $as_echo "none needed" >&6; }
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4159 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4161 case "x$am_cv_prog_cc_stdc" in
4163 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4168 for ac_dir
in ..
"$srcdir"/..
; do
4169 for ac_t
in install-sh
install.sh shtool
; do
4170 if test -f "$ac_dir/$ac_t"; then
4172 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4177 if test -z "$ac_aux_dir"; then
4178 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4181 # These three variables are undocumented and unsupported,
4182 # and are intended to be withdrawn in a future Autoconf release.
4183 # They can cause serious problems if a builder's source tree is in a directory
4184 # whose full name contains unusual characters.
4185 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4186 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4187 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4190 # Make sure we can run config.sub.
4191 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4192 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4195 $as_echo_n "checking build system type... " >&6; }
4196 if test "${ac_cv_build+set}" = set; then :
4197 $as_echo_n "(cached) " >&6
4199 ac_build_alias
=$build_alias
4200 test "x$ac_build_alias" = x
&&
4201 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4202 test "x$ac_build_alias" = x
&&
4203 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4204 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4205 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4209 $as_echo "$ac_cv_build" >&6; }
4210 case $ac_cv_build in
4212 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4215 ac_save_IFS
=$IFS; IFS
='-'
4221 # Remember, the first character of IFS is used to create $*,
4222 # except with old shells:
4225 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4229 $as_echo_n "checking host system type... " >&6; }
4230 if test "${ac_cv_host+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
4233 if test "x$host_alias" = x
; then
4234 ac_cv_host
=$ac_cv_build
4236 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4237 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4242 $as_echo "$ac_cv_host" >&6; }
4245 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4248 ac_save_IFS
=$IFS; IFS
='-'
4254 # Remember, the first character of IFS is used to create $*,
4255 # except with old shells:
4258 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4262 $as_echo_n "checking target system type... " >&6; }
4263 if test "${ac_cv_target+set}" = set; then :
4264 $as_echo_n "(cached) " >&6
4266 if test "x$target_alias" = x
; then
4267 ac_cv_target
=$ac_cv_host
4269 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4270 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4275 $as_echo "$ac_cv_target" >&6; }
4276 case $ac_cv_target in
4278 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4280 target
=$ac_cv_target
4281 ac_save_IFS
=$IFS; IFS
='-'
4287 # Remember, the first character of IFS is used to create $*,
4288 # except with old shells:
4291 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4294 # The aliases save the names the user supplied, while $host etc.
4295 # will get canonicalized.
4296 test -n "$target_alias" &&
4297 test "$program_prefix$program_suffix$program_transform_name" = \
4299 program_prefix
=${target_alias}-
4302 # Dependency checking.
4303 rm -rf .tst
2>/dev
/null
4304 mkdir .tst
2>/dev
/null
4305 if test -d .tst
; then
4310 rmdir .tst
2>/dev
/null
4312 DEPDIR
="${am__leading_dot}deps"
4314 ac_config_commands
="$ac_config_commands depdir"
4317 depcc
="$CC" am_compiler_list
=
4319 am_depcomp
=$ac_aux_dir/depcomp
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4321 $as_echo_n "checking dependency style of $depcc... " >&6; }
4322 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4325 if test -f "$am_depcomp"; then
4326 # We make a subdir and do the tests there. Otherwise we can end up
4327 # making bogus files that we don't know about and never remove. For
4328 # instance it was reported that on HP-UX the gcc test will end up
4329 # making a dummy file named `D' -- because `-MD' means `put the output
4332 # Copy depcomp to subdir because otherwise we won't find it if we're
4333 # using a relative directory.
4334 cp "$am_depcomp" conftest.dir
4336 # We will build objects and dependencies in a subdirectory because
4337 # it helps to detect inapplicable dependency modes. For instance
4338 # both Tru64's cc and ICC support -MD to output dependencies as a
4339 # side effect of compilation, but ICC will put the dependencies in
4340 # the current directory while Tru64 will put them in the object
4344 am_cv_CC_dependencies_compiler_type
=none
4345 if test "$am_compiler_list" = ""; then
4346 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4348 for depmode
in $am_compiler_list; do
4349 if test $depmode = none
; then break; fi
4351 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4352 # Setup a source with many dependencies, because some compilers
4353 # like to wrap large dependency lists on column 80 (with \), and
4354 # we should not choose a depcomp mode which is confused by this.
4356 # We need to recreate these files for each test, as the compiler may
4357 # overwrite some of them when testing with obscure command lines.
4358 # This happens at least with the AIX C compiler.
4360 for i
in 1 2 3 4 5 6; do
4361 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4362 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4363 # Solaris 8's {/usr,}/bin/sh.
4364 touch sub
/conftst
$i.h
4366 echo "include sub/conftest.Po" > confmf
4368 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4369 # mode. It turns out that the SunPro C++ compiler does not properly
4370 # handle `-M -o', and we need to detect this.
4371 depcmd
="depmode=$depmode \
4372 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4373 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4374 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4375 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4376 if env
$depcmd > conftest.err
2>&1 &&
4377 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4378 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4379 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4380 # icc doesn't choke on unknown options, it will just issue warnings
4381 # or remarks (even with -Werror). So we grep stderr for any message
4382 # that says an option was ignored or not supported.
4383 # When given -MP, icc 7.0 and 7.1 complain thusly:
4384 # icc: Command line warning: ignoring option '-M'; no argument required
4385 # The diagnosis changed in icc 8.0:
4386 # icc: Command line remark: option '-MP' not supported
4387 if (grep 'ignoring option' conftest.err ||
4388 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4389 am_cv_CC_dependencies_compiler_type
=$depmode
4390 $as_echo "$as_me:$LINENO: success" >&5
4394 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4395 sed -e 's/^/| /' < conftest.err
>&5
4401 am_cv_CC_dependencies_compiler_type
=none
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4406 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4407 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4408 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4409 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4414 # Check for the 'make' the user wants to use.
4417 # Extract the first word of "$ac_prog", so it can be a program name with args.
4418 set dummy
$ac_prog; ac_word
=$2
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4420 $as_echo_n "checking for $ac_word... " >&6; }
4421 if test "${ac_cv_prog_MAKE+set}" = set; then :
4422 $as_echo_n "(cached) " >&6
4424 if test -n "$MAKE"; then
4425 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4431 test -z "$as_dir" && as_dir
=.
4432 for ac_exec_ext
in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_prog_MAKE
="$ac_prog"
4435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 MAKE
=$ac_cv_prog_MAKE
4445 if test -n "$MAKE"; then
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4447 $as_echo "$MAKE" >&6; }
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 $as_echo "no" >&6; }
4454 test -n "$MAKE" && break
4458 case "`$MAKE --version 2>&1 | sed 1q`" in
4463 if test "$MAKE_IS_GNU" = yes; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4472 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4474 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4475 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4476 $as_echo_n "(cached) " >&6
4478 cat >conftest.
make <<\_ACEOF
4481 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4483 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4484 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4486 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4488 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4492 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4494 $as_echo "yes" >&6; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4499 SET_MAKE
="MAKE=${MAKE-make}"
4514 # If we haven't got the data from the intl directory,
4515 # assume NLS is disabled.
4524 if test -f ..
/intl
/config.intl
; then
4525 . ..
/intl
/config.intl
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4528 $as_echo_n "checking whether NLS is requested... " >&6; }
4529 if test x
"$USE_NLS" != xyes
; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4534 $as_echo "yes" >&6; }
4536 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4540 $as_echo_n "checking for catalogs to be installed... " >&6; }
4541 # Look for .po and .gmo files in the source directory.
4544 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4545 # If there aren't any .gmo files the shell will give us the
4546 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4548 case "$cat" in *\
**)
4551 # The quadruple backslash is collapsed to a double backslash
4552 # by the backticks, then collapsed again by the double quotes,
4553 # leaving us with one backslash in the sed expression (right
4554 # before the dot that mustn't act as a wildcard).
4555 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4556 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4557 # The user is allowed to set LINGUAS to a list of languages to
4558 # install catalogs for. If it's empty that means "all of them."
4559 if test "x$LINGUAS" = x
; then
4560 CATALOGS
="$CATALOGS $cat"
4561 XLINGUAS
="$XLINGUAS $lang"
4563 case "$LINGUAS" in *$lang*)
4564 CATALOGS
="$CATALOGS $cat"
4565 XLINGUAS
="$XLINGUAS $lang"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4572 $as_echo "$LINGUAS" >&6; }
4585 localedir
='${datadir}/locale'
4588 if test x
"$USE_NLS" = xyes
; then
4589 CONFIG_ALL
="$CONFIG_ALL all-po"
4590 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4591 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4592 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4608 GNULIB_STRCASESTR
=0;
4615 GNULIB_MBSCASECMP
=0;
4616 GNULIB_MBSNCASECMP
=0;
4617 GNULIB_MBSPCASECMP
=0;
4618 GNULIB_MBSCASESTR
=0;
4628 HAVE_DECL_MEMRCHR
=1;
4634 HAVE_DECL_STRNDUP
=1;
4635 HAVE_DECL_STRNLEN
=1;
4639 HAVE_DECL_STRTOK_R
=1;
4640 HAVE_DECL_STRERROR
=1;
4641 HAVE_DECL_STRSIGNAL
=1;
4643 REPLACE_STRSIGNAL
=0;
4645 REPLACE_STRCASESTR
=0;
4649 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
4650 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
4656 cat >>confdefs.h
<<_ACEOF
4657 #define HAVE_DECL_MEMMEM $ac_have_decl
4672 for ac_func
in memmem
4674 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
4675 if test "x$ac_cv_func_memmem" = x
""yes; then :
4676 cat >>confdefs.h
<<_ACEOF
4677 #define HAVE_MEMMEM 1
4682 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
4695 if test $ac_cv_have_decl_memmem = no
; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4702 $as_echo_n "checking for long long int... " >&6; }
4703 if test "${ac_cv_type_long_long_int+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4709 /* For now, do not test the preprocessor; as of 2007 there are too many
4710 implementations with broken preprocessors. Perhaps this can
4711 be revisited in 2012. In the meantime, code should not expect
4712 #if to work with literals wider than 32 bits. */
4713 /* Test literals. */
4714 long long int ll = 9223372036854775807ll;
4715 long long int nll = -9223372036854775807LL;
4716 unsigned long long int ull = 18446744073709551615ULL;
4717 /* Test constant expressions. */
4718 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4720 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4726 /* Test availability of runtime routines for shift and division. */
4727 long long int llmax = 9223372036854775807ll;
4728 unsigned long long int ullmax = 18446744073709551615ull;
4729 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4730 | (llmax / ll) | (llmax % ll)
4731 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4732 | (ullmax / ull) | (ullmax % ull));
4738 if ac_fn_c_try_link
"$LINENO"; then :
4739 if test "$cross_compiling" = yes; then :
4740 ac_cv_type_long_long_int
=yes
4742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4747 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4748 # define LLONG_MAX (HALF - 1 + HALF)
4753 long long int n = 1;
4757 long long int m = n << i;
4760 if (LLONG_MAX / 2 < m)
4768 if ac_fn_c_try_run
"$LINENO"; then :
4769 ac_cv_type_long_long_int
=yes
4771 ac_cv_type_long_long_int
=no
4773 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4774 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4778 ac_cv_type_long_long_int
=no
4780 rm -f core conftest.err conftest.
$ac_objext \
4781 conftest
$ac_exeext conftest.
$ac_ext
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
4784 $as_echo "$ac_cv_type_long_long_int" >&6; }
4785 if test $ac_cv_type_long_long_int = yes; then
4787 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4793 $as_echo_n "checking for unsigned long long int... " >&6; }
4794 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4800 /* For now, do not test the preprocessor; as of 2007 there are too many
4801 implementations with broken preprocessors. Perhaps this can
4802 be revisited in 2012. In the meantime, code should not expect
4803 #if to work with literals wider than 32 bits. */
4804 /* Test literals. */
4805 long long int ll = 9223372036854775807ll;
4806 long long int nll = -9223372036854775807LL;
4807 unsigned long long int ull = 18446744073709551615ULL;
4808 /* Test constant expressions. */
4809 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4811 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4817 /* Test availability of runtime routines for shift and division. */
4818 long long int llmax = 9223372036854775807ll;
4819 unsigned long long int ullmax = 18446744073709551615ull;
4820 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4821 | (llmax / ll) | (llmax % ll)
4822 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4823 | (ullmax / ull) | (ullmax % ull));
4829 if ac_fn_c_try_link
"$LINENO"; then :
4830 ac_cv_type_unsigned_long_long_int
=yes
4832 ac_cv_type_unsigned_long_long_int
=no
4834 rm -f core conftest.err conftest.
$ac_objext \
4835 conftest
$ac_exeext conftest.
$ac_ext
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4838 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4839 if test $ac_cv_type_unsigned_long_long_int = yes; then
4841 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
4848 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
4849 if test "${gl_cv_have_include_next+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4852 rm -rf conftestd1 conftestd2
4853 mkdir conftestd1 conftestd2
4854 cat <<EOF > conftestd1/conftest.h
4855 #define DEFINED_IN_CONFTESTD1
4856 #include_next <conftest.h>
4857 #ifdef DEFINED_IN_CONFTESTD2
4860 #error "include_next doesn't work"
4863 cat <<EOF > conftestd2/conftest.h
4864 #ifndef DEFINED_IN_CONFTESTD1
4865 #error "include_next test doesn't work"
4867 #define DEFINED_IN_CONFTESTD2
4869 save_CPPFLAGS
="$CPPFLAGS"
4870 CPPFLAGS
="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 #include <conftest.h>
4875 if ac_fn_c_try_compile
"$LINENO"; then :
4876 gl_cv_have_include_next
=yes
4878 gl_cv_have_include_next
=no
4880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4881 CPPFLAGS
="$save_CPPFLAGS"
4882 rm -rf conftestd1 conftestd2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
4886 $as_echo "$gl_cv_have_include_next" >&6; }
4887 if test $gl_cv_have_include_next = yes; then
4890 $as_echo "#define HAVE_INCLUDE_NEXT 1" >>confdefs.h
4893 INCLUDE_NEXT
=include_next
4895 INCLUDE_NEXT
=include
4903 for ac_header
in $gl_header_list
4905 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4906 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4907 eval as_val
=\$
$as_ac_Header
4908 if test "x$as_val" = x
""yes; then :
4909 cat >>confdefs.h
<<_ACEOF
4910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4927 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4928 if test "${ac_cv_c_restrict+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4932 # The order here caters to the fact that C++ does not require restrict.
4933 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
4934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4936 typedef int * int_ptr;
4937 int foo (int_ptr $ac_kw ip) {
4951 if ac_fn_c_try_compile
"$LINENO"; then :
4952 ac_cv_c_restrict
=$ac_kw
4954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4955 test "$ac_cv_c_restrict" != no
&& break
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4960 $as_echo "$ac_cv_c_restrict" >&6; }
4962 case $ac_cv_c_restrict in
4964 no
) $as_echo "#define restrict /**/" >>confdefs.h
4966 *) cat >>confdefs.h
<<_ACEOF
4967 #define restrict $ac_cv_c_restrict
4991 if test $gl_cv_have_include_next = yes; then
4992 gl_cv_next_string_h
='<'string.h
'>'
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
4995 $as_echo_n "checking absolute name of <string.h>... " >&6; }
4996 if test "${gl_cv_next_string_h+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
5000 if test $ac_cv_header_string_h = yes; then
5001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5006 gl_cv_next_string_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5007 sed -n '\#/string.h#{
5008 s#.*"\(.*/string.h\)".*#\1#
5014 gl_cv_next_string_h
='<'string.h
'>'
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5019 $as_echo "$gl_cv_next_string_h" >&6; }
5021 NEXT_STRING_H
=$gl_cv_next_string_h
5028 HAVE_DECL_WCWIDTH
=1;
5035 GL_COND_LIBTOOL_TRUE
=
5036 GL_COND_LIBTOOL_FALSE
='#'
5038 GL_COND_LIBTOOL_TRUE
='#'
5039 GL_COND_LIBTOOL_FALSE
=
5042 gl_cond_libtool
=false
5048 gl_source_base
='gnulib'
5057 for ac_func
in memchr
5059 ac_fn_c_check_func
"$LINENO" "memchr" "ac_cv_func_memchr"
5060 if test "x$ac_cv_func_memchr" = x
""yes; then :
5061 cat >>confdefs.h
<<_ACEOF
5062 #define HAVE_MEMCHR 1
5067 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5073 if test $ac_cv_func_memchr = no
; then
5075 for ac_header
in bp-sym.h
5077 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5078 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
5079 cat >>confdefs.h
<<_ACEOF
5080 #define HAVE_BP_SYM_H 1
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5092 $as_echo_n "checking for working memcmp... " >&6; }
5093 if test "${ac_cv_func_memcmp_working+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5096 if test "$cross_compiling" = yes; then :
5097 ac_cv_func_memcmp_working
=no
5099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5101 $ac_includes_default
5106 /* Some versions of memcmp are not 8-bit clean. */
5107 char c0 = '\100', c1 = '\200', c2 = '\201';
5108 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5111 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5112 or more and with at least one buffer not starting on a 4-byte boundary.
5113 William Lewis provided this test program. */
5118 for (i = 0; i < 4; i++)
5122 strcpy (a, "--------01111111");
5123 strcpy (b, "--------10000000");
5124 if (memcmp (a, b, 16) >= 0)
5134 if ac_fn_c_try_run
"$LINENO"; then :
5135 ac_cv_func_memcmp_working
=yes
5137 ac_cv_func_memcmp_working
=no
5139 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5140 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5145 $as_echo "$ac_cv_func_memcmp_working" >&6; }
5146 test $ac_cv_func_memcmp_working = no
&&
5153 gl_LIBOBJS
="$gl_LIBOBJS memcmp.$ac_objext"
5156 if test $ac_cv_func_memcmp_working = no
; then
5158 $as_echo "#define memcmp rpl_memcmp" >>confdefs.h
5165 if test $ac_cv_have_decl_memmem = yes; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
5167 $as_echo_n "checking whether memmem works in linear time... " >&6; }
5168 if test "${gl_cv_func_memmem_works+set}" = set; then :
5169 $as_echo_n "(cached) " >&6
5171 if test "$cross_compiling" = yes; then :
5172 gl_cv_func_memmem_works
="guessing no"
5174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5177 #include <string.h> /* for memmem */
5178 #include <stdlib.h> /* for malloc */
5179 #include <unistd.h> /* for alarm */
5185 char *haystack = (char *) malloc (2 * m + 1);
5186 char *needle = (char *) malloc (m + 1);
5188 /* Failure to compile this test due to missing alarm is okay,
5189 since all such platforms (mingw) also lack memmem. */
5191 /* Check for quadratic performance. */
5192 if (haystack && needle)
5194 memset (haystack, 'A', 2 * m);
5195 haystack[2 * m] = 'B';
5196 memset (needle, 'A', m);
5198 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5200 /* Check for empty needle behavior. */
5201 return !result || !memmem ("a", 1, 0, 0);
5206 if ac_fn_c_try_run
"$LINENO"; then :
5207 gl_cv_func_memmem_works
=yes
5209 gl_cv_func_memmem_works
=no
5211 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5212 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
5217 $as_echo "$gl_cv_func_memmem_works" >&6; }
5218 if test "$gl_cv_func_memmem_works" != yes; then
5227 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
5243 for ac_func
in memmem
5245 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
5246 if test "x$ac_cv_func_memmem" = x
""yes; then :
5247 cat >>confdefs.h
<<_ACEOF
5248 #define HAVE_MEMMEM 1
5253 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5266 if test $ac_cv_have_decl_memmem = no
; then
5278 if test $ac_cv_type_long_long_int = yes; then
5279 HAVE_LONG_LONG_INT
=1
5281 HAVE_LONG_LONG_INT
=0
5285 if test $ac_cv_type_unsigned_long_long_int = yes; then
5286 HAVE_UNSIGNED_LONG_LONG_INT
=1
5288 HAVE_UNSIGNED_LONG_LONG_INT
=0
5292 if test $ac_cv_header_inttypes_h = yes; then
5299 if test $ac_cv_header_sys_types_h = yes; then
5317 if test $gl_cv_have_include_next = yes; then
5318 gl_cv_next_stdint_h
='<'stdint.h
'>'
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5321 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5322 if test "${gl_cv_next_stdint_h+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5326 if test $ac_cv_header_stdint_h = yes; then
5327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5332 gl_cv_next_stdint_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5333 sed -n '\#/stdint.h#{
5334 s#.*"\(.*/stdint.h\)".*#\1#
5340 gl_cv_next_stdint_h
='<'stdint.h
'>'
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5345 $as_echo "$gl_cv_next_stdint_h" >&6; }
5347 NEXT_STDINT_H
=$gl_cv_next_stdint_h
5351 if test $ac_cv_header_stdint_h = yes; then
5358 if test $ac_cv_header_stdint_h = yes; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5360 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5361 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5362 $as_echo_n "(cached) " >&6
5364 gl_cv_header_working_stdint_h
=no
5365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5369 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5370 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5371 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5373 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5374 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5375 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5379 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5380 included before <wchar.h>. */
5391 int8_t a1 = INT8_MAX;
5392 int8_t a1min = INT8_MIN;
5395 int16_t a2 = INT16_MAX;
5396 int16_t a2min = INT16_MIN;
5399 int32_t a3 = INT32_MAX;
5400 int32_t a3min = INT32_MIN;
5403 int64_t a4 = INT64_MAX;
5404 int64_t a4min = INT64_MIN;
5407 uint8_t b1 = UINT8_MAX;
5409 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5412 uint16_t b2 = UINT16_MAX;
5415 uint32_t b3 = UINT32_MAX;
5418 uint64_t b4 = UINT64_MAX;
5420 int_least8_t c1 = INT8_C (0x7f);
5421 int_least8_t c1max = INT_LEAST8_MAX;
5422 int_least8_t c1min = INT_LEAST8_MIN;
5423 int_least16_t c2 = INT16_C (0x7fff);
5424 int_least16_t c2max = INT_LEAST16_MAX;
5425 int_least16_t c2min = INT_LEAST16_MIN;
5426 int_least32_t c3 = INT32_C (0x7fffffff);
5427 int_least32_t c3max = INT_LEAST32_MAX;
5428 int_least32_t c3min = INT_LEAST32_MIN;
5429 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5430 int_least64_t c4max = INT_LEAST64_MAX;
5431 int_least64_t c4min = INT_LEAST64_MIN;
5432 uint_least8_t d1 = UINT8_C (0xff);
5433 uint_least8_t d1max = UINT_LEAST8_MAX;
5434 uint_least16_t d2 = UINT16_C (0xffff);
5435 uint_least16_t d2max = UINT_LEAST16_MAX;
5436 uint_least32_t d3 = UINT32_C (0xffffffff);
5437 uint_least32_t d3max = UINT_LEAST32_MAX;
5438 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5439 uint_least64_t d4max = UINT_LEAST64_MAX;
5440 int_fast8_t e1 = INT_FAST8_MAX;
5441 int_fast8_t e1min = INT_FAST8_MIN;
5442 int_fast16_t e2 = INT_FAST16_MAX;
5443 int_fast16_t e2min = INT_FAST16_MIN;
5444 int_fast32_t e3 = INT_FAST32_MAX;
5445 int_fast32_t e3min = INT_FAST32_MIN;
5446 int_fast64_t e4 = INT_FAST64_MAX;
5447 int_fast64_t e4min = INT_FAST64_MIN;
5448 uint_fast8_t f1 = UINT_FAST8_MAX;
5449 uint_fast16_t f2 = UINT_FAST16_MAX;
5450 uint_fast32_t f3 = UINT_FAST32_MAX;
5451 uint_fast64_t f4 = UINT_FAST64_MAX;
5453 intptr_t g = INTPTR_MAX;
5454 intptr_t gmin = INTPTR_MIN;
5457 uintptr_t h = UINTPTR_MAX;
5459 intmax_t i = INTMAX_MAX;
5460 uintmax_t j = UINTMAX_MAX;
5462 #include <limits.h> /* for CHAR_BIT */
5463 #define TYPE_MINIMUM(t) \
5464 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5465 #define TYPE_MAXIMUM(t) \
5466 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5469 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5470 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5472 /* Detect bug in FreeBSD 6.0 / ia64. */
5473 int check_SIG_ATOMIC:
5474 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5475 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5477 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5479 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5480 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5482 /* Detect bug in mingw. */
5484 WINT_MIN == TYPE_MINIMUM (wint_t)
5485 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5488 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5490 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5492 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5494 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5496 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5499 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5502 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5505 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5507 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5508 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5509 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5510 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5511 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5512 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5513 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5514 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5515 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5516 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5517 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5528 if ac_fn_c_try_compile
"$LINENO"; then :
5529 gl_cv_header_working_stdint_h
=yes
5531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5534 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5536 if test "$gl_cv_header_working_stdint_h" = yes; then
5539 for ac_header
in sys
/inttypes.h sys
/bitypes.h
5541 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5542 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5543 eval as_val
=\$
$as_ac_Header
5544 if test "x$as_val" = x
""yes; then :
5545 cat >>confdefs.h
<<_ACEOF
5546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5553 if test $ac_cv_header_sys_inttypes_h = yes; then
5554 HAVE_SYS_INTTYPES_H
=1
5556 HAVE_SYS_INTTYPES_H
=0
5559 if test $ac_cv_header_sys_bitypes_h = yes; then
5560 HAVE_SYS_BITYPES_H
=1
5562 HAVE_SYS_BITYPES_H
=0
5577 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5579 $as_echo_n "checking for bit size of $gltype... " >&6; }
5580 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5581 $as_echo_n "(cached) " >&6
5583 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5584 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5585 included before <wchar.h>. */
5594 #include <limits.h>"; then :
5600 eval gl_cv_bitsizeof_
${gltype}=\
$result
5603 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5605 $as_echo "$ac_res" >&6; }
5606 eval result
=\
$gl_cv_bitsizeof_${gltype}
5607 if test $result = unknown
; then
5610 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5611 cat >>confdefs.h
<<_ACEOF
5612 #define BITSIZEOF_${GLTYPE} $result
5615 eval BITSIZEOF_
${GLTYPE}=\
$result
5621 for gltype
in sig_atomic_t wchar_t wint_t
; do
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5623 $as_echo_n "checking whether $gltype is signed... " >&6; }
5624 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5625 $as_echo_n "(cached) " >&6
5627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5630 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5631 included before <wchar.h>. */
5640 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5649 if ac_fn_c_try_compile
"$LINENO"; then :
5654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5655 eval gl_cv_type_
${gltype}_signed
=\
$result
5658 eval ac_res
=\
$gl_cv_type_${gltype}_signed
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5660 $as_echo "$ac_res" >&6; }
5661 eval result
=\
$gl_cv_type_${gltype}_signed
5662 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5663 if test "$result" = yes; then
5664 cat >>confdefs.h
<<_ACEOF
5665 #define HAVE_SIGNED_${GLTYPE} 1
5668 eval HAVE_SIGNED_
${GLTYPE}=1
5670 eval HAVE_SIGNED_
${GLTYPE}=0
5675 gl_cv_type_ptrdiff_t_signed
=yes
5676 gl_cv_type_size_t_signed
=no
5679 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5681 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5682 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5683 $as_echo_n "(cached) " >&6
5685 eval gl_cv_type_
${gltype}_suffix
=no
5686 eval result
=\
$gl_cv_type_${gltype}_signed
5687 if test "$result" = yes; then
5692 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
5695 l
) gltype1
='long int';;
5696 ll
) gltype1
='long long int';;
5697 i64
) gltype1
='__int64';;
5698 u
) gltype1
='unsigned int';;
5699 ul
) gltype1
='unsigned long int';;
5700 ull
) gltype1
='unsigned long long int';;
5701 ui64
)gltype1
='unsigned __int64';;
5703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5706 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5707 included before <wchar.h>. */
5717 extern $gltype1 foo;
5726 if ac_fn_c_try_compile
"$LINENO"; then :
5727 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
5729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5730 eval result
=\
$gl_cv_type_${gltype}_suffix
5731 test "$result" != no
&& break
5734 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5736 $as_echo "$ac_res" >&6; }
5737 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5738 eval result
=\
$gl_cv_type_${gltype}_suffix
5739 test "$result" = no
&& result
=
5740 eval ${GLTYPE}_SUFFIX
=\
$result
5741 cat >>confdefs.h
<<_ACEOF
5742 #define ${GLTYPE}_SUFFIX $result
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
5759 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
5760 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5768 if ac_fn_c_try_compile
"$LINENO"; then :
5769 gl_cv_header_wchar_h_standalone
=yes
5771 gl_cv_header_wchar_h_standalone
=no
5773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
5776 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
5777 if test $gl_cv_header_wchar_h_standalone != yes; then
5788 if test $ac_cv_header_wchar_h = yes; then
5805 if test $gl_cv_have_include_next = yes; then
5806 gl_cv_next_wchar_h
='<'wchar.h
'>'
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
5809 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
5810 if test "${gl_cv_next_wchar_h+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5814 if test $ac_cv_header_wchar_h = yes; then
5815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5820 gl_cv_next_wchar_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5821 sed -n '\#/wchar.h#{
5822 s#.*"\(.*/wchar.h\)".*#\1#
5828 gl_cv_next_wchar_h
='<'wchar.h
'>'
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
5833 $as_echo "$gl_cv_next_wchar_h" >&6; }
5835 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
5849 gl_source_base
='tests'
5854 LIBGNU_LIBDEPS
="$gl_libdeps"
5856 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
5860 # For Makefile dependencies.
5862 if test x
"$STDINT_H" != x
; then
5863 GNULIB_STDINT_H
=gnulib
/$STDINT_H
5869 cat >>confdefs.h
<<_ACEOF
5870 #define PACKAGE "$PACKAGE"
5875 # GDB does not use automake, but gnulib does. This line lets us
5876 # generate its Makefile.in.
5877 am__api_version
='1.11'
5879 # Find a good install program. We prefer a C program (faster),
5880 # so one script is as good as another. But avoid the broken or
5881 # incompatible versions:
5882 # SysV /etc/install, /usr/sbin/install
5883 # SunOS /usr/etc/install
5884 # IRIX /sbin/install
5886 # AmigaOS /C/install, which installs bootblocks on floppy discs
5887 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5888 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5889 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5890 # OS/2's system install, which has a completely different semantic
5891 # ./install, which can be erroneously created by make from ./install.sh.
5892 # Reject install programs that cannot install multiple files.
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5894 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5895 if test -z "$INSTALL"; then
5896 if test "${ac_cv_path_install+set}" = set; then :
5897 $as_echo_n "(cached) " >&6
5899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir
=.
5904 # Account for people who put trailing slashes in PATH elements.
5905 case $as_dir/ in #((
5906 .
/ | .
// |
/[cC
]/* | \
5907 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5908 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5911 # OSF1 and SCO ODT 3.0 have their own names for install.
5912 # Don't use installbsd from OSF since it installs stuff as root
5914 for ac_prog
in ginstall scoinst
install; do
5915 for ac_exec_ext
in '' $ac_executable_extensions; do
5916 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5917 if test $ac_prog = install &&
5918 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5919 # AIX install. It has an incompatible calling convention.
5921 elif test $ac_prog = install &&
5922 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5923 # program-specific install script used by HP pwplus--don't use.
5926 rm -rf conftest.one conftest.two conftest.dir
5927 echo one
> conftest.one
5928 echo two
> conftest.two
5930 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5931 test -s conftest.one
&& test -s conftest.two
&&
5932 test -s conftest.dir
/conftest.one
&&
5933 test -s conftest.dir
/conftest.two
5935 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5948 rm -rf conftest.one conftest.two conftest.dir
5951 if test "${ac_cv_path_install+set}" = set; then
5952 INSTALL
=$ac_cv_path_install
5954 # As a last resort, use the slow shell script. Don't cache a
5955 # value for INSTALL within a source directory, because that will
5956 # break other packages using the cache if that directory is
5957 # removed, or if the value is a relative name.
5958 INSTALL
=$ac_install_sh
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5962 $as_echo "$INSTALL" >&6; }
5964 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5965 # It thinks the first close brace ends the variable substitution.
5966 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5968 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5970 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5973 $as_echo_n "checking whether build environment is sane... " >&6; }
5976 echo timestamp
> conftest.
file
5977 # Reject unsafe characters in $srcdir or the absolute working directory
5978 # name. Accept space and tab only in the latter.
5982 *[\\\"\
#\$\&\'\`$am_lf]*)
5983 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
5986 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
5987 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5990 # Do `set' in a subshell so we don't clobber the current shell's
5991 # arguments. Must try -L first in case configure is actually a
5992 # symlink; some systems play weird games with the mod time of symlinks
5993 # (eg FreeBSD returns the mod time of the symlink's containing
5996 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5997 if test "$*" = "X"; then
5999 set X
`ls -t "$srcdir/configure" conftest.file`
6002 if test "$*" != "X $srcdir/configure conftest.file" \
6003 && test "$*" != "X conftest.file $srcdir/configure"; then
6005 # If neither matched, then we have a broken ls. This can happen
6006 # if, for instance, CONFIG_SHELL is bash and it inherits a
6007 # broken ls alias from the environment. This has actually
6008 # happened. Such a system could not be considered "sane".
6009 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
6010 alias in your environment" "$LINENO" 5
6013 test "$2" = conftest.
file
6019 as_fn_error
"newly created file is older than distributed files!
6020 Check your system clock" "$LINENO" 5
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6023 $as_echo "yes" >&6; }
6024 test "$program_prefix" != NONE
&&
6025 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
6026 # Use a double $ so make ignores it.
6027 test "$program_suffix" != NONE
&&
6028 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
6029 # Double any \ or $.
6030 # By default was `s,x,x', remove it if useless.
6031 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
6032 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
6034 # expand $ac_aux_dir to an absolute path
6035 am_aux_dir
=`cd $ac_aux_dir && pwd`
6037 if test x
"${MISSING+set}" != xset
; then
6040 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
6042 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
6045 # Use eval to expand $SHELL
6046 if eval "$MISSING --run true"; then
6047 am_missing_run
="$MISSING --run "
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
6051 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6054 if test x
"${install_sh}" != xset
; then
6057 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
6059 install_sh
="\${SHELL} $am_aux_dir/install-sh"
6063 # Installed binaries are usually stripped using `strip' when the user
6064 # run `make install-strip'. However `strip' might not be the right
6065 # tool to use in cross-compilation environments, therefore Automake
6066 # will honor the `STRIP' environment variable to overrule this program.
6067 if test "$cross_compiling" != no
; then
6068 if test -n "$ac_tool_prefix"; then
6069 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6070 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if test "${ac_cv_prog_STRIP+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6076 if test -n "$STRIP"; then
6077 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6083 test -z "$as_dir" && as_dir
=.
6084 for ac_exec_ext
in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 STRIP
=$ac_cv_prog_STRIP
6097 if test -n "$STRIP"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6099 $as_echo "$STRIP" >&6; }
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6107 if test -z "$ac_cv_prog_STRIP"; then
6109 # Extract the first word of "strip", so it can be a program name with args.
6110 set dummy strip
; ac_word
=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6114 $as_echo_n "(cached) " >&6
6116 if test -n "$ac_ct_STRIP"; then
6117 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6123 test -z "$as_dir" && as_dir
=.
6124 for ac_exec_ext
in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_prog_ac_ct_STRIP
="strip"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6137 if test -n "$ac_ct_STRIP"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6139 $as_echo "$ac_ct_STRIP" >&6; }
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6145 if test "x$ac_ct_STRIP" = x
; then
6148 case $cross_compiling:$ac_tool_warned in
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6152 ac_tool_warned
=yes ;;
6157 STRIP
="$ac_cv_prog_STRIP"
6161 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6164 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6165 if test -z "$MKDIR_P"; then
6166 if test "${ac_cv_path_mkdir+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6170 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
6173 test -z "$as_dir" && as_dir
=.
6174 for ac_prog
in mkdir gmkdir
; do
6175 for ac_exec_ext
in '' $ac_executable_extensions; do
6176 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
6177 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6178 'mkdir (GNU coreutils) '* | \
6179 'mkdir (coreutils) '* | \
6180 'mkdir (fileutils) '4.1*)
6181 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
6191 if test "${ac_cv_path_mkdir+set}" = set; then
6192 MKDIR_P
="$ac_cv_path_mkdir -p"
6194 # As a last resort, use the slow shell script. Don't cache a
6195 # value for MKDIR_P within a source directory, because that will
6196 # break other packages using the cache if that directory is
6197 # removed, or if the value is a relative name.
6198 test -d .
/--version && rmdir .
/--version
6199 MKDIR_P
="$ac_install_sh -d"
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6203 $as_echo "$MKDIR_P" >&6; }
6207 [\\/$
]* | ?
:[\\/]*) ;;
6208 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
6211 for ac_prog
in gawk mawk nawk
awk
6213 # Extract the first word of "$ac_prog", so it can be a program name with args.
6214 set dummy
$ac_prog; ac_word
=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if test "${ac_cv_prog_AWK+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6220 if test -n "$AWK"; then
6221 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6227 test -z "$as_dir" && as_dir
=.
6228 for ac_exec_ext
in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_AWK
="$ac_prog"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 if test -n "$AWK"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6243 $as_echo "$AWK" >&6; }
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6250 test -n "$AWK" && break
6253 ac_config_commands
="$ac_config_commands depfiles"
6256 am_make
=${MAKE-make}
6257 cat > confinc
<< 'END'
6259 @
echo this is the am__doit target
6262 # If we don't find an include directive, just comment out the code.
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6264 $as_echo_n "checking for style of include used by $am_make... " >&6; }
6268 # First try GNU make style include.
6269 echo "include confinc" > confmf
6270 # Ignore all kinds of additional output from `make'.
6271 case `$am_make -s -f confmf 2> /dev/null` in #(
6272 *the\ am__doit\ target
*)
6278 # Now try BSD make style include.
6279 if test "$am__include" = "#"; then
6280 echo '.include "confinc"' > confmf
6281 case `$am_make -s -f confmf 2> /dev/null` in #(
6282 *the\ am__doit\ target
*)
6283 am__include
=.include
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6292 $as_echo "$_am_result" >&6; }
6293 rm -f confinc confmf
6295 # Check whether --enable-dependency-tracking was given.
6296 if test "${enable_dependency_tracking+set}" = set; then :
6297 enableval
=$enable_dependency_tracking;
6300 if test "x$enable_dependency_tracking" != xno
; then
6301 am_depcomp
="$ac_aux_dir/depcomp"
6304 if test "x$enable_dependency_tracking" != xno; then
6313 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6314 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6315 # is not polluted with repeated "-I."
6316 am__isrc
=' -I$(srcdir)'
6317 # test to see if srcdir already configured
6318 if test -f $srcdir/config.status
; then
6319 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6323 # test whether we have cygpath
6324 if test -z "$CYGPATH_W"; then
6325 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
6326 CYGPATH_W
='cygpath -w'
6333 # Define the identity of the package.
6335 VERSION
=UNUSED-VERSION
6338 # Some tools Automake needs.
6340 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6343 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
6346 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6349 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
6352 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
6354 # We need awk for the "check" target. The system "awk" is bad on
6356 # Always define AMTAR for backward compatibility.
6358 AMTAR
=${AMTAR-"${am_missing_run}tar"}
6360 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
6365 depcc
="$CC" am_compiler_list
=
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6368 $as_echo_n "checking dependency style of $depcc... " >&6; }
6369 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6372 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6373 # We make a subdir and do the tests there. Otherwise we can end up
6374 # making bogus files that we don't know about and never remove. For
6375 # instance it was reported that on HP-UX the gcc test will end up
6376 # making a dummy file named `D' -- because `-MD' means `put the output
6379 # Copy depcomp to subdir because otherwise we won't find it if we're
6380 # using a relative directory.
6381 cp "$am_depcomp" conftest.dir
6383 # We will build objects and dependencies in a subdirectory because
6384 # it helps to detect inapplicable dependency modes. For instance
6385 # both Tru64's cc and ICC support -MD to output dependencies as a
6386 # side effect of compilation, but ICC will put the dependencies in
6387 # the current directory while Tru64 will put them in the object
6391 am_cv_CC_dependencies_compiler_type
=none
6392 if test "$am_compiler_list" = ""; then
6393 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6396 case " $depcc " in #(
6397 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
6400 for depmode
in $am_compiler_list; do
6401 # Setup a source with many dependencies, because some compilers
6402 # like to wrap large dependency lists on column 80 (with \), and
6403 # we should not choose a depcomp mode which is confused by this.
6405 # We need to recreate these files for each test, as the compiler may
6406 # overwrite some of them when testing with obscure command lines.
6407 # This happens at least with the AIX C compiler.
6409 for i
in 1 2 3 4 5 6; do
6410 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6411 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6412 # Solaris 8's {/usr,}/bin/sh.
6413 touch sub
/conftst
$i.h
6415 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6417 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6418 # mode. It turns out that the SunPro C++ compiler does not properly
6419 # handle `-M -o', and we need to detect this. Also, some Intel
6420 # versions had trouble with output in subdirs
6421 am__obj
=sub
/conftest.
${OBJEXT-o}
6422 am__minus_obj
="-o $am__obj"
6425 # This depmode causes a compiler race in universal mode.
6426 test "$am__universal" = false ||
continue
6429 # after this tag, mechanisms are not by side-effect, so they'll
6430 # only be used when explicitly requested
6431 if test "x$enable_dependency_tracking" = xyes
; then
6437 msvisualcpp | msvcmsys
)
6438 # This compiler won't grok `-c -o', but also, the minuso test has
6439 # not run yet. These depmodes are late enough in the game, and
6440 # so weak that their functioning should not be impacted.
6441 am__obj
=conftest.
${OBJEXT-o}
6446 if depmode
=$depmode \
6447 source=sub
/conftest.c object
=$am__obj \
6448 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6449 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
6450 >/dev
/null
2>conftest.err
&&
6451 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6452 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6453 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
6454 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6455 # icc doesn't choke on unknown options, it will just issue warnings
6456 # or remarks (even with -Werror). So we grep stderr for any message
6457 # that says an option was ignored or not supported.
6458 # When given -MP, icc 7.0 and 7.1 complain thusly:
6459 # icc: Command line warning: ignoring option '-M'; no argument required
6460 # The diagnosis changed in icc 8.0:
6461 # icc: Command line remark: option '-MP' not supported
6462 if (grep 'ignoring option' conftest.err ||
6463 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6464 am_cv_CC_dependencies_compiler_type
=$depmode
6473 am_cv_CC_dependencies_compiler_type
=none
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6478 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6479 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6482 test "x$enable_dependency_tracking" != xno \
6483 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
6485 am__fastdepCC_FALSE
='#'
6487 am__fastdepCC_TRUE
='#'
6488 am__fastdepCC_FALSE
=
6496 # Check whether --with-separate-debug-dir was given.
6497 if test "${with_separate_debug_dir+set}" = set; then :
6498 withval
=$with_separate_debug_dir;
6501 DEBUGDIR
=${libdir}/debug
6505 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6506 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6507 ac_define_dir
=`eval echo $DEBUGDIR`
6508 ac_define_dir
=`eval echo $ac_define_dir`
6510 cat >>confdefs.h
<<_ACEOF
6511 #define DEBUGDIR "$ac_define_dir"
6516 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6517 if test "x$prefix" = xNONE
; then
6518 test_prefix
=/usr
/local
6523 test_prefix
=$exec_prefix
6526 case ${ac_define_dir} in
6527 "${test_prefix}"|
"${test_prefix}/"*|\
6528 '${exec_prefix}'|
'${exec_prefix}/'*)
6533 cat >>confdefs.h
<<_ACEOF
6534 #define DEBUGDIR_RELOCATABLE $value
6539 # GDB's datadir relocation
6543 # Check whether --with-gdb-datadir was given.
6544 if test "${with_gdb_datadir+set}" = set; then :
6545 withval
=$with_gdb_datadir;
6546 GDB_DATADIR
=$withval
6548 GDB_DATADIR
=${datadir}/gdb
6552 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6553 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6554 ac_define_dir
=`eval echo $GDB_DATADIR`
6555 ac_define_dir
=`eval echo $ac_define_dir`
6557 cat >>confdefs.h
<<_ACEOF
6558 #define GDB_DATADIR "$ac_define_dir"
6563 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6564 if test "x$prefix" = xNONE
; then
6565 test_prefix
=/usr
/local
6570 test_prefix
=$exec_prefix
6573 case ${ac_define_dir} in
6574 "${test_prefix}"|
"${test_prefix}/"*|\
6575 '${exec_prefix}'|
'${exec_prefix}/'*)
6580 cat >>confdefs.h
<<_ACEOF
6581 #define GDB_DATADIR_RELOCATABLE $value
6587 # Check whether --with-relocated-sources was given.
6588 if test "${with_relocated_sources+set}" = set; then :
6589 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6591 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6592 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6593 ac_define_dir
=`eval echo $reloc_srcdir`
6594 ac_define_dir
=`eval echo $ac_define_dir`
6596 cat >>confdefs.h
<<_ACEOF
6597 #define RELOC_SRCDIR "$ac_define_dir"
6607 subdirs
="$subdirs doc testsuite"
6610 # Check whether to support alternative target configurations
6611 # Check whether --enable-targets was given.
6612 if test "${enable_targets+set}" = set; then :
6613 enableval
=$enable_targets; case "${enableval}" in
6614 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6616 no
) enable_targets
= ;;
6617 *) enable_targets
=$enableval ;;
6622 # Check whether to enable 64-bit support on 32-bit hosts
6623 # Check whether --enable-64-bit-bfd was given.
6624 if test "${enable_64_bit_bfd+set}" = set; then :
6625 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6628 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6634 # Provide defaults for some variables set by the per-host and per-target
6636 gdb_host_obs
=posix-hdep.o
6638 if test "${target}" = "${host}"; then
6644 .
$srcdir/configure.
host
6646 # Accumulate some settings from configure.tgt over all enabled targets
6651 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6653 if test "$targ_alias" = "all"; then
6656 # Canonicalize the secondary target names.
6657 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6658 if test -n "$result"; then
6664 .
${srcdir}/configure.tgt
6666 # Target-specific object files
6667 for i
in ${gdb_target_obs}; do
6668 case " $TARGET_OBS " in
6671 TARGET_OBS
="$TARGET_OBS ${i}"
6676 # Check whether this target needs 64-bit CORE_ADDR
6677 if test x
${want64} = xfalse
; then
6678 .
${srcdir}/..
/bfd
/config.bfd
6683 if test x
${all_targets} = xtrue
; then
6685 # We want all 64-bit targets if we either:
6686 # - run on a 64-bit host or
6687 # - already require 64-bit support for some other target or
6688 # - the --enable-64-bit-bfd option was supplied
6689 # Otherwise we only support all 32-bit targets.
6691 # NOTE: This test must be in sync with the corresponding
6694 if test x
${want64} = xfalse
; then
6695 # The cast to long int works around a bug in the HP C Compiler
6696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6698 # This bug is HP SR number 8606223364.
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6700 $as_echo_n "checking size of long... " >&6; }
6701 if test "${ac_cv_sizeof_long+set}" = set; then :
6702 $as_echo_n "(cached) " >&6
6704 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6707 if test "$ac_cv_type_long" = yes; then
6708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6710 { as_fn_set_status
77
6711 as_fn_error
"cannot compute sizeof (long)
6712 See \`config.log' for more details." "$LINENO" 5; }; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6720 $as_echo "$ac_cv_sizeof_long" >&6; }
6724 cat >>confdefs.h
<<_ACEOF
6725 #define SIZEOF_LONG $ac_cv_sizeof_long
6729 if test "x${ac_cv_sizeof_long}" = "x8"; then
6733 if test x
${want64} = xtrue
; then
6734 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6736 TARGET_OBS
='$(ALL_TARGET_OBS)'
6742 # For other settings, only the main target counts.
6746 targ
=$target; .
${srcdir}/configure.tgt
6748 # Fetch the default architecture and default target vector from BFD.
6749 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6751 # We only want the first architecture, so strip off the others if
6752 # there is more than one.
6753 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6755 if test "x$targ_archs" != x
; then
6757 cat >>confdefs.h
<<_ACEOF
6758 #define DEFAULT_BFD_ARCH $targ_archs
6762 if test "x$targ_defvec" != x
; then
6764 cat >>confdefs.h
<<_ACEOF
6765 #define DEFAULT_BFD_VEC $targ_defvec
6770 # The CLI cannot be disabled yet, but may be in the future.
6773 # Check whether --enable-gdbcli was given.
6774 if test "${enable_gdbcli+set}" = set; then :
6775 enableval
=$enable_gdbcli; case $enableval in
6779 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
6781 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
6787 if test x
"$enable_gdbcli" = xyes
; then
6788 if test -d $srcdir/cli
; then
6789 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6790 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6791 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6792 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6797 # Check whether --enable-gdbmi was given.
6798 if test "${enable_gdbmi+set}" = set; then :
6799 enableval
=$enable_gdbmi; case $enableval in
6803 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6809 if test x
"$enable_gdbmi" = xyes
; then
6810 if test -d $srcdir/mi
; then
6811 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6812 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6813 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6814 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6819 # Check whether --enable-tui was given.
6820 if test "${enable_tui+set}" = set; then :
6821 enableval
=$enable_tui; case $enableval in
6825 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6833 # Check whether --enable-gdbtk was given.
6834 if test "${enable_gdbtk+set}" = set; then :
6835 enableval
=$enable_gdbtk; case $enableval in
6839 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6842 if test -d $srcdir/gdbtk
; then
6849 # We unconditionally disable gdbtk tests on selected platforms.
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6853 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6857 # Libunwind support.
6859 # Check whether --with-libunwind was given.
6860 if test "${with_libunwind+set}" = set; then :
6861 withval
=$with_libunwind; case "${withval}" in
6862 yes) enable_libunwind
=yes ;;
6863 no
) enable_libunwind
=no
;;
6864 *) as_fn_error
"bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
6868 for ac_header
in libunwind.h libunwind-ia64.h
6870 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6871 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6872 eval as_val
=\$
$as_ac_Header
6873 if test "x$as_val" = x
""yes; then :
6874 cat >>confdefs.h
<<_ACEOF
6875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6882 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
6883 enable_libunwind
=yes;
6889 if test x
"$enable_libunwind" = xyes
; then
6890 for ac_header
in libunwind.h libunwind-ia64.h
6892 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6893 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6894 eval as_val
=\$
$as_ac_Header
6895 if test "x$as_val" = x
""yes; then :
6896 cat >>confdefs.h
<<_ACEOF
6897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6905 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
6907 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
6908 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
6909 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
6914 # Check whether --with-curses was given.
6915 if test "${with_curses+set}" = set; then :
6916 withval
=$with_curses; opt_curses
=$withval
6921 if test "$opt_curses" = "yes"; then
6925 # Profiling support.
6926 # Check whether --enable-profiling was given.
6927 if test "${enable_profiling+set}" = set; then :
6928 enableval
=$enable_profiling; case $enableval in
6932 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6939 for ac_func
in monstartup _mcleanup
6941 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6942 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6943 eval as_val
=\$
$as_ac_var
6944 if test "x$as_val" = x
""yes; then :
6945 cat >>confdefs.h
<<_ACEOF
6946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6953 $as_echo_n "checking for _etext... " >&6; }
6954 if test "${ac_cv_var__etext+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
6957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h. */
6970 if ac_fn_c_try_link
"$LINENO"; then :
6971 ac_cv_var__etext
=yes
6975 rm -f core conftest.err conftest.
$ac_objext \
6976 conftest
$ac_exeext conftest.
$ac_ext
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6979 $as_echo "$ac_cv_var__etext" >&6; }
6980 if test $ac_cv_var__etext = yes; then
6982 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6986 $as_echo_n "checking for etext... " >&6; }
6987 if test "${ac_cv_var_etext+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
7003 if ac_fn_c_try_link
"$LINENO"; then :
7008 rm -f core conftest.err conftest.
$ac_objext \
7009 conftest
$ac_exeext conftest.
$ac_ext
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7012 $as_echo "$ac_cv_var_etext" >&6; }
7013 if test $ac_cv_var_etext = yes; then
7015 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7018 if test "$enable_profiling" = yes ; then
7019 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
7020 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7023 OLD_CFLAGS
="$CFLAGS"
7024 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7027 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7028 if test "${ac_cv_cc_supports_pg+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7042 if ac_fn_c_try_compile
"$LINENO"; then :
7043 ac_cv_cc_supports_pg
=yes
7045 ac_cv_cc_supports_pg
=no
7047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7050 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7052 if test $ac_cv_cc_supports_pg = no
; then
7053 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7056 CFLAGS
="$OLD_CFLAGS"
7061 # Check whether --with-pkgversion was given.
7062 if test "${with_pkgversion+set}" = set; then :
7063 withval
=$with_pkgversion; case "$withval" in
7064 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7066 *) PKGVERSION
="($withval) " ;;
7077 # Check whether --with-bugurl was given.
7078 if test "${with_bugurl+set}" = set; then :
7079 withval
=$with_bugurl; case "$withval" in
7080 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7083 *) BUGURL
="$withval"
7087 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7097 REPORT_BUGS_TO
="<$BUGURL>"
7098 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7105 cat >>confdefs.h
<<_ACEOF
7106 #define PKGVERSION "$PKGVERSION"
7110 cat >>confdefs.h
<<_ACEOF
7111 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7115 # --------------------- #
7116 # Checks for programs. #
7117 # --------------------- #
7119 for ac_prog
in gawk mawk nawk
awk
7121 # Extract the first word of "$ac_prog", so it can be a program name with args.
7122 set dummy
$ac_prog; ac_word
=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if test "${ac_cv_prog_AWK+set}" = set; then :
7126 $as_echo_n "(cached) " >&6
7128 if test -n "$AWK"; then
7129 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir
=.
7136 for ac_exec_ext
in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_prog_AWK
="$ac_prog"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 if test -n "$AWK"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7151 $as_echo "$AWK" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7158 test -n "$AWK" && break
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7163 $as_echo_n "checking whether ln -s works... " >&6; }
7165 if test "$LN_S" = "ln -s"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7167 $as_echo "yes" >&6; }
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7170 $as_echo "no, using $LN_S" >&6; }
7173 if test -n "$ac_tool_prefix"; then
7174 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7175 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7179 $as_echo_n "(cached) " >&6
7181 if test -n "$RANLIB"; then
7182 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir
=.
7189 for ac_exec_ext
in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 RANLIB
=$ac_cv_prog_RANLIB
7202 if test -n "$RANLIB"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7204 $as_echo "$RANLIB" >&6; }
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7212 if test -z "$ac_cv_prog_RANLIB"; then
7213 ac_ct_RANLIB
=$RANLIB
7214 # Extract the first word of "ranlib", so it can be a program name with args.
7215 set dummy ranlib
; ac_word
=$2
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7219 $as_echo_n "(cached) " >&6
7221 if test -n "$ac_ct_RANLIB"; then
7222 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir
=.
7229 for ac_exec_ext
in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7242 if test -n "$ac_ct_RANLIB"; then
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7244 $as_echo "$ac_ct_RANLIB" >&6; }
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247 $as_echo "no" >&6; }
7250 if test "x$ac_ct_RANLIB" = x
; then
7253 case $cross_compiling:$ac_tool_warned in
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7257 ac_tool_warned
=yes ;;
7259 RANLIB
=$ac_ct_RANLIB
7262 RANLIB
="$ac_cv_prog_RANLIB"
7265 for ac_prog
in 'bison -y' byacc
7267 # Extract the first word of "$ac_prog", so it can be a program name with args.
7268 set dummy
$ac_prog; ac_word
=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if test "${ac_cv_prog_YACC+set}" = set; then :
7272 $as_echo_n "(cached) " >&6
7274 if test -n "$YACC"; then
7275 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir
=.
7282 for ac_exec_ext
in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_prog_YACC
="$ac_prog"
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 YACC
=$ac_cv_prog_YACC
7295 if test -n "$YACC"; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7297 $as_echo "$YACC" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7304 test -n "$YACC" && break
7306 test -n "$YACC" || YACC
="yacc"
7309 if test -n "$ac_tool_prefix"; then
7310 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7311 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if test "${ac_cv_prog_AR+set}" = set; then :
7315 $as_echo_n "(cached) " >&6
7317 if test -n "$AR"; then
7318 ac_cv_prog_AR
="$AR" # Let the user override the test.
7320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7324 test -z "$as_dir" && as_dir
=.
7325 for ac_exec_ext
in '' $ac_executable_extensions; do
7326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7327 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 if test -n "$AR"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7340 $as_echo "$AR" >&6; }
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7348 if test -z "$ac_cv_prog_AR"; then
7350 # Extract the first word of "ar", so it can be a program name with args.
7351 set dummy
ar; ac_word
=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
7357 if test -n "$ac_ct_AR"; then
7358 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir
=.
7365 for ac_exec_ext
in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_prog_ac_ct_AR
="ar"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7378 if test -n "$ac_ct_AR"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7380 $as_echo "$ac_ct_AR" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7386 if test "x$ac_ct_AR" = x
; then
7389 case $cross_compiling:$ac_tool_warned in
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393 ac_tool_warned
=yes ;;
7401 if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7403 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7407 $as_echo_n "(cached) " >&6
7409 if test -n "$DLLTOOL"; then
7410 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7416 test -z "$as_dir" && as_dir
=.
7417 for ac_exec_ext
in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 DLLTOOL
=$ac_cv_prog_DLLTOOL
7430 if test -n "$DLLTOOL"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7432 $as_echo "$DLLTOOL" >&6; }
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7440 if test -z "$ac_cv_prog_DLLTOOL"; then
7441 ac_ct_DLLTOOL
=$DLLTOOL
7442 # Extract the first word of "dlltool", so it can be a program name with args.
7443 set dummy dlltool
; ac_word
=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7449 if test -n "$ac_ct_DLLTOOL"; then
7450 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir
=.
7457 for ac_exec_ext
in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7470 if test -n "$ac_ct_DLLTOOL"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7472 $as_echo "$ac_ct_DLLTOOL" >&6; }
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7478 if test "x$ac_ct_DLLTOOL" = x
; then
7481 case $cross_compiling:$ac_tool_warned in
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned
=yes ;;
7487 DLLTOOL
=$ac_ct_DLLTOOL
7490 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7493 if test -n "$ac_tool_prefix"; then
7494 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7495 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if test "${ac_cv_prog_WINDRES+set}" = set; then :
7499 $as_echo_n "(cached) " >&6
7501 if test -n "$WINDRES"; then
7502 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7508 test -z "$as_dir" && as_dir
=.
7509 for ac_exec_ext
in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 WINDRES
=$ac_cv_prog_WINDRES
7522 if test -n "$WINDRES"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7524 $as_echo "$WINDRES" >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7532 if test -z "$ac_cv_prog_WINDRES"; then
7533 ac_ct_WINDRES
=$WINDRES
7534 # Extract the first word of "windres", so it can be a program name with args.
7535 set dummy windres
; ac_word
=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7541 if test -n "$ac_ct_WINDRES"; then
7542 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir
=.
7549 for ac_exec_ext
in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551 ac_cv_prog_ac_ct_WINDRES
="windres"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7562 if test -n "$ac_ct_WINDRES"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7564 $as_echo "$ac_ct_WINDRES" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7570 if test "x$ac_ct_WINDRES" = x
; then
7573 case $cross_compiling:$ac_tool_warned in
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577 ac_tool_warned
=yes ;;
7579 WINDRES
=$ac_ct_WINDRES
7582 WINDRES
="$ac_cv_prog_WINDRES"
7586 # Needed for GNU/Hurd.
7587 if test -n "$ac_tool_prefix"; then
7588 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7589 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if test "${ac_cv_prog_MIG+set}" = set; then :
7593 $as_echo_n "(cached) " >&6
7595 if test -n "$MIG"; then
7596 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir
=.
7603 for ac_exec_ext
in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 if test -n "$MIG"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7618 $as_echo "$MIG" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7626 if test -z "$ac_cv_prog_MIG"; then
7628 # Extract the first word of "mig", so it can be a program name with args.
7629 set dummy mig
; ac_word
=$2
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631 $as_echo_n "checking for $ac_word... " >&6; }
7632 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
7633 $as_echo_n "(cached) " >&6
7635 if test -n "$ac_ct_MIG"; then
7636 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7642 test -z "$as_dir" && as_dir
=.
7643 for ac_exec_ext
in '' $ac_executable_extensions; do
7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7645 ac_cv_prog_ac_ct_MIG
="mig"
7646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7656 if test -n "$ac_ct_MIG"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7658 $as_echo "$ac_ct_MIG" >&6; }
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7664 if test "x$ac_ct_MIG" = x
; then
7667 case $cross_compiling:$ac_tool_warned in
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671 ac_tool_warned
=yes ;;
7676 MIG
="$ac_cv_prog_MIG"
7680 # ---------------------- #
7681 # Checks for libraries. #
7682 # ---------------------- #
7684 # We might need to link with -lm; most simulators need it.
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7686 $as_echo_n "checking for main in -lm... " >&6; }
7687 if test "${ac_cv_lib_m_main+set}" = set; then :
7688 $as_echo_n "(cached) " >&6
7690 ac_check_lib_save_LIBS
=$LIBS
7692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7704 if ac_fn_c_try_link
"$LINENO"; then :
7705 ac_cv_lib_m_main
=yes
7709 rm -f core conftest.err conftest.
$ac_objext \
7710 conftest
$ac_exeext conftest.
$ac_ext
7711 LIBS
=$ac_check_lib_save_LIBS
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7714 $as_echo "$ac_cv_lib_m_main" >&6; }
7715 if test "x$ac_cv_lib_m_main" = x
""yes; then :
7716 cat >>confdefs.h
<<_ACEOF
7725 # We need to link with -lw to get `wctype' on Solaris before Solaris
7726 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7727 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7728 # is known to have this problem). Therefore we avoid libw if we can.
7729 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
7730 if test "x$ac_cv_func_wctype" = x
""yes; then :
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
7734 $as_echo_n "checking for wctype in -lw... " >&6; }
7735 if test "${ac_cv_lib_w_wctype+set}" = set; then :
7736 $as_echo_n "(cached) " >&6
7738 ac_check_lib_save_LIBS
=$LIBS
7740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h. */
7743 /* Override any GCC internal prototype to avoid an error.
7744 Use char because int might match the return type of a GCC
7745 builtin and then its argument prototype would still apply. */
7758 if ac_fn_c_try_link
"$LINENO"; then :
7759 ac_cv_lib_w_wctype
=yes
7761 ac_cv_lib_w_wctype
=no
7763 rm -f core conftest.err conftest.
$ac_objext \
7764 conftest
$ac_exeext conftest.
$ac_ext
7765 LIBS
=$ac_check_lib_save_LIBS
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
7768 $as_echo "$ac_cv_lib_w_wctype" >&6; }
7769 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
7770 cat >>confdefs.h
<<_ACEOF
7781 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7783 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7784 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
7787 ac_func_search_save_LIBS
=$LIBS
7788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7791 /* Override any GCC internal prototype to avoid an error.
7792 Use char because int might match the return type of a GCC
7793 builtin and then its argument prototype would still apply. */
7797 char gethostbyname ();
7801 return gethostbyname ();
7806 for ac_lib
in '' nsl
; do
7807 if test -z "$ac_lib"; then
7808 ac_res
="none required"
7811 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7813 if ac_fn_c_try_link
"$LINENO"; then :
7814 ac_cv_search_gethostbyname
=$ac_res
7816 rm -f core conftest.err conftest.
$ac_objext \
7818 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7822 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7825 ac_cv_search_gethostbyname
=no
7828 LIBS
=$ac_func_search_save_LIBS
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7831 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7832 ac_res
=$ac_cv_search_gethostbyname
7833 if test "$ac_res" != no
; then :
7834 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7839 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7841 $as_echo_n "checking for library containing socketpair... " >&6; }
7842 if test "${ac_cv_search_socketpair+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7845 ac_func_search_save_LIBS
=$LIBS
7846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7849 /* Override any GCC internal prototype to avoid an error.
7850 Use char because int might match the return type of a GCC
7851 builtin and then its argument prototype would still apply. */
7859 return socketpair ();
7864 for ac_lib
in '' socket
; do
7865 if test -z "$ac_lib"; then
7866 ac_res
="none required"
7869 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7871 if ac_fn_c_try_link
"$LINENO"; then :
7872 ac_cv_search_socketpair
=$ac_res
7874 rm -f core conftest.err conftest.
$ac_objext \
7876 if test "${ac_cv_search_socketpair+set}" = set; then :
7880 if test "${ac_cv_search_socketpair+set}" = set; then :
7883 ac_cv_search_socketpair
=no
7886 LIBS
=$ac_func_search_save_LIBS
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7889 $as_echo "$ac_cv_search_socketpair" >&6; }
7890 ac_res
=$ac_cv_search_socketpair
7891 if test "$ac_res" != no
; then :
7892 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7897 # Link in zlib if we can. This allows us to read compressed debug sections.
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
7899 $as_echo_n "checking for library containing zlibVersion... " >&6; }
7900 if test "${ac_cv_search_zlibVersion+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
7903 ac_func_search_save_LIBS
=$LIBS
7904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7907 /* Override any GCC internal prototype to avoid an error.
7908 Use char because int might match the return type of a GCC
7909 builtin and then its argument prototype would still apply. */
7913 char zlibVersion ();
7917 return zlibVersion ();
7922 for ac_lib
in '' z
; do
7923 if test -z "$ac_lib"; then
7924 ac_res
="none required"
7927 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7929 if ac_fn_c_try_link
"$LINENO"; then :
7930 ac_cv_search_zlibVersion
=$ac_res
7932 rm -f core conftest.err conftest.
$ac_objext \
7934 if test "${ac_cv_search_zlibVersion+set}" = set; then :
7938 if test "${ac_cv_search_zlibVersion+set}" = set; then :
7941 ac_cv_search_zlibVersion
=no
7944 LIBS
=$ac_func_search_save_LIBS
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
7947 $as_echo "$ac_cv_search_zlibVersion" >&6; }
7948 ac_res
=$ac_cv_search_zlibVersion
7949 if test "$ac_res" != no
; then :
7950 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7951 for ac_header
in zlib.h
7953 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7954 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
7955 cat >>confdefs.h
<<_ACEOF
7956 #define HAVE_ZLIB_H 1
7966 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
7968 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
7969 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
7970 $as_echo_n "(cached) " >&6
7972 ac_func_search_save_LIBS
=$LIBS
7973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7976 /* Override any GCC internal prototype to avoid an error.
7977 Use char because int might match the return type of a GCC
7978 builtin and then its argument prototype would still apply. */
7982 char dlgetmodinfo ();
7986 return dlgetmodinfo ();
7991 for ac_lib
in '' dl xpdl
; do
7992 if test -z "$ac_lib"; then
7993 ac_res
="none required"
7996 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7998 if ac_fn_c_try_link
"$LINENO"; then :
7999 ac_cv_search_dlgetmodinfo
=$ac_res
8001 rm -f core conftest.err conftest.
$ac_objext \
8003 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8007 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8010 ac_cv_search_dlgetmodinfo
=no
8013 LIBS
=$ac_func_search_save_LIBS
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
8016 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
8017 ac_res
=$ac_cv_search_dlgetmodinfo
8018 if test "$ac_res" != no
; then :
8019 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8027 # Check whether --with-libiconv-prefix was given.
8028 if test "${with_libiconv_prefix+set}" = set; then :
8029 withval
=$with_libiconv_prefix;
8030 for dir
in `echo "$withval" | tr : ' '`; do
8031 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
8032 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
8038 BUILD_LIBICONV_LIBDIR
="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
8039 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8042 $as_echo_n "checking for iconv... " >&6; }
8043 if test "${am_cv_func_iconv+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8047 am_cv_func_iconv
="no, consider installing GNU libiconv"
8049 am_cv_use_build_libiconv
=no
8051 # If libiconv is part of the build tree, then try using it over
8053 if test -d ..
/libiconv
; then
8054 am_save_LIBS
="$LIBS"
8055 am_save_CPPFLAGS
="$CPPFLAGS"
8056 LIBS
="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
8057 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
8058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8065 iconv_t cd = iconv_open("","");
8066 iconv(cd,NULL,NULL,NULL,NULL);
8072 if ac_fn_c_try_link
"$LINENO"; then :
8073 am_cv_use_build_libiconv
=yes
8075 am_cv_func_iconv
=yes
8077 rm -f core conftest.err conftest.
$ac_objext \
8078 conftest
$ac_exeext conftest.
$ac_ext
8079 LIBS
="$am_save_LIBS"
8080 CPPFLAGS
="$am_save_CPPFLAGS"
8083 # Next, try to find iconv in libc.
8084 if test "$am_cv_func_iconv" != yes; then
8085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8092 iconv_t cd = iconv_open("","");
8093 iconv(cd,NULL,NULL,NULL,NULL);
8099 if ac_fn_c_try_link
"$LINENO"; then :
8100 am_cv_func_iconv
=yes
8102 rm -f core conftest.err conftest.
$ac_objext \
8103 conftest
$ac_exeext conftest.
$ac_ext
8106 # If iconv was not in libc, try -liconv. In this case, arrange to
8107 # look in the libiconv prefix, if it was specified by the user.
8108 if test "$am_cv_func_iconv" != yes; then
8109 am_save_CPPFLAGS
="$CPPFLAGS"
8110 am_save_LIBS
="$LIBS"
8111 if test -n "$LIBICONV_INCLUDE"; then
8112 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
8113 LIBS
="$LIBS $LIBICONV_LIBDIR"
8115 LIBS
="$LIBS -liconv"
8116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8123 iconv_t cd = iconv_open("","");
8124 iconv(cd,NULL,NULL,NULL,NULL);
8130 if ac_fn_c_try_link
"$LINENO"; then :
8132 am_cv_func_iconv
=yes
8134 rm -f core conftest.err conftest.
$ac_objext \
8135 conftest
$ac_exeext conftest.
$ac_ext
8136 LIBS
="$am_save_LIBS"
8137 CPPFLAGS
="$am_save_CPPFLAGS"
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8142 $as_echo "$am_cv_func_iconv" >&6; }
8144 # Set the various flags based on the cache variables. We can't rely
8145 # on the flags to remain set from the above code, due to caching.
8147 if test "$am_cv_lib_iconv" = yes; then
8153 if test "$am_cv_use_build_libiconv" = yes; then
8154 LIBICONV_LIBDIR
="$BUILD_LIBICONV_LIBDIR"
8155 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
8157 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
8158 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
8160 if test "$am_cv_func_iconv" = yes; then
8162 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8165 $as_echo_n "checking for iconv declaration... " >&6; }
8166 if test "${am_cv_proto_iconv+set}" = set; then :
8167 $as_echo_n "(cached) " >&6
8170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8171 /* end confdefs.h. */
8179 #if defined(__STDC__) || defined(__cplusplus)
8180 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8193 if ac_fn_c_try_compile
"$LINENO"; then :
8194 am_cv_proto_iconv_arg1
=""
8196 am_cv_proto_iconv_arg1
="const"
8198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8199 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);"
8202 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8204 }$am_cv_proto_iconv" >&5
8206 }$am_cv_proto_iconv" >&6; }
8208 cat >>confdefs.h
<<_ACEOF
8209 #define ICONV_CONST $am_cv_proto_iconv_arg1
8215 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
8216 # There is a very specific comment in /usr/include/curses.h explaining that
8217 # termcap routines built into libcurses must not be used.
8219 # The symptoms we observed so far is GDB unexpectedly changing
8220 # the terminal settings when tgetent is called - this is particularly
8221 # visible as the output is missing carriage returns, and so rapidly
8222 # becomes very hard to read.
8224 # The readline configure script has already decided that libtermcap
8225 # was enough for its purposes, and so decided to build readline using
8226 # libtermcap. Since the TUI mode requires curses, building GDB with
8227 # TUI enabled results in both libraries to be used at the same time,
8228 # which is not allowed. This basically means that GDB with TUI is
8229 # broken on alpha-osf.
8233 if "$enable_tui" = "yes"; then
8234 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
8236 if "$enable_tui" = "auto"; then
8242 # For the TUI, we need enhanced curses functionality.
8243 if test x
"$enable_tui" != xno
; then
8248 if test x
"$prefer_curses" = xyes
; then
8249 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8250 # curses library because the latter might not provide all the
8251 # functionality we need. However, this leads to problems on systems
8252 # where the linker searches /usr/local/lib, but the compiler doesn't
8253 # search /usr/local/include, if ncurses is installed in /usr/local. A
8254 # default installation of ncurses on alpha*-dec-osf* will lead to such
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8257 $as_echo_n "checking for library containing waddstr... " >&6; }
8258 if test "${ac_cv_search_waddstr+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8261 ac_func_search_save_LIBS
=$LIBS
8262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8265 /* Override any GCC internal prototype to avoid an error.
8266 Use char because int might match the return type of a GCC
8267 builtin and then its argument prototype would still apply. */
8280 for ac_lib
in '' ncurses cursesX curses
; do
8281 if test -z "$ac_lib"; then
8282 ac_res
="none required"
8285 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8287 if ac_fn_c_try_link
"$LINENO"; then :
8288 ac_cv_search_waddstr
=$ac_res
8290 rm -f core conftest.err conftest.
$ac_objext \
8292 if test "${ac_cv_search_waddstr+set}" = set; then :
8296 if test "${ac_cv_search_waddstr+set}" = set; then :
8299 ac_cv_search_waddstr
=no
8302 LIBS
=$ac_func_search_save_LIBS
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8305 $as_echo "$ac_cv_search_waddstr" >&6; }
8306 ac_res
=$ac_cv_search_waddstr
8307 if test "$ac_res" != no
; then :
8308 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8313 if test "$ac_cv_search_waddstr" != no
; then
8318 # Check whether we should enable the TUI, but only do so if we really
8320 if test x
"$enable_tui" != xno
; then
8321 if test -d $srcdir/tui
; then
8322 if test "$curses_found" != no
; then
8323 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8324 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8325 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8326 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8327 CONFIG_ALL
="${CONFIG_ALL} all-tui"
8328 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
8329 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
8330 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
8332 if test x
"$enable_tui" = xyes
; then
8333 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8336 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8342 # Since GDB uses Readline, we need termcap functionality. In many
8343 # cases this will be provided by the curses library, but some systems
8344 # have a seperate termcap library, or no curses library at all.
8348 if test -d $srcdir/libtermcap
; then
8349 LIBS
="../libtermcap/libtermcap.a $LIBS"
8350 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8353 ac_cv_search_tgetent
="none required"
8356 ac_cv_search_tgetent
="none required"
8357 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
8361 # These are the libraries checked by Readline.
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8363 $as_echo_n "checking for library containing tgetent... " >&6; }
8364 if test "${ac_cv_search_tgetent+set}" = set; then :
8365 $as_echo_n "(cached) " >&6
8367 ac_func_search_save_LIBS
=$LIBS
8368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8371 /* Override any GCC internal prototype to avoid an error.
8372 Use char because int might match the return type of a GCC
8373 builtin and then its argument prototype would still apply. */
8386 for ac_lib
in '' termcap tinfo curses ncurses
; do
8387 if test -z "$ac_lib"; then
8388 ac_res
="none required"
8391 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8393 if ac_fn_c_try_link
"$LINENO"; then :
8394 ac_cv_search_tgetent
=$ac_res
8396 rm -f core conftest.err conftest.
$ac_objext \
8398 if test "${ac_cv_search_tgetent+set}" = set; then :
8402 if test "${ac_cv_search_tgetent+set}" = set; then :
8405 ac_cv_search_tgetent
=no
8408 LIBS
=$ac_func_search_save_LIBS
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8411 $as_echo "$ac_cv_search_tgetent" >&6; }
8412 ac_res
=$ac_cv_search_tgetent
8413 if test "$ac_res" != no
; then :
8414 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8419 if test "$ac_cv_search_tgetent" = no
; then
8420 as_fn_error
"no termcap library found" "$LINENO" 5
8424 # Check whether --with-system-readline was given.
8425 if test "${with_system_readline+set}" = set; then :
8426 withval
=$with_system_readline;
8430 if test "$with_system_readline" = yes; then
8435 READLINE
='$(READLINE_DIR)/libreadline.a'
8436 READLINE_DEPS
='$(READLINE)'
8437 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
8444 # Check whether --with-expat was given.
8445 if test "${with_expat+set}" = set; then :
8446 withval
=$with_expat;
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8452 $as_echo_n "checking whether to use expat... " >&6; }
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8454 $as_echo "$with_expat" >&6; }
8456 if test "${with_expat}" = no
; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8458 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8462 if test "X$prefix" = "XNONE"; then
8463 acl_final_prefix
="$ac_default_prefix"
8465 acl_final_prefix
="$prefix"
8467 if test "X$exec_prefix" = "XNONE"; then
8468 acl_final_exec_prefix
='${prefix}'
8470 acl_final_exec_prefix
="$exec_prefix"
8472 acl_save_prefix
="$prefix"
8473 prefix
="$acl_final_prefix"
8474 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8475 prefix
="$acl_save_prefix"
8478 # Check whether --with-gnu-ld was given.
8479 if test "${with_gnu_ld+set}" = set; then :
8480 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8485 # Prepare PATH_SEPARATOR.
8486 # The user is always right.
8487 if test "${PATH_SEPARATOR+set}" != set; then
8488 echo "#! /bin/sh" >conf$$.sh
8489 echo "exit 0" >>conf$$.sh
8491 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8499 if test "$GCC" = yes; then
8500 # Check if gcc -print-prog-name=ld gives a path.
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8502 $as_echo_n "checking for ld used by GCC... " >&6; }
8505 # gcc leaves a trailing carriage return which upsets mingw
8506 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8508 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8511 # Accept absolute paths.
8512 [\\/]* |
[A-Za-z
]:[\\/]*)
8513 re_direlt
='/[^/][^/]*/\.\./'
8514 # Canonicalize the path of ld
8515 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8516 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8517 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8519 test -z "$LD" && LD
="$ac_prog"
8522 # If it fails, then pretend we aren't using GCC.
8526 # If it is relative, then search for the first ld in PATH.
8530 elif test "$with_gnu_ld" = yes; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8532 $as_echo_n "checking for GNU ld... " >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8535 $as_echo_n "checking for non-GNU ld... " >&6; }
8537 if test "${acl_cv_path_LD+set}" = set; then :
8538 $as_echo_n "(cached) " >&6
8540 if test -z "$LD"; then
8541 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8542 for ac_dir
in $PATH; do
8543 test -z "$ac_dir" && ac_dir
=.
8544 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8545 acl_cv_path_LD
="$ac_dir/$ac_prog"
8546 # Check to see if the program is GNU ld. I'd rather use --version,
8547 # but apparently some GNU ld's only accept -v.
8548 # Break only if it was the GNU/non-GNU ld that we prefer.
8549 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8550 test "$with_gnu_ld" != no
&& break
8552 test "$with_gnu_ld" != yes && break
8558 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8562 LD
="$acl_cv_path_LD"
8563 if test -n "$LD"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8565 $as_echo "$LD" >&6; }
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8570 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8572 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8573 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8574 $as_echo_n "(cached) " >&6
8576 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8577 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8578 acl_cv_prog_gnu_ld
=yes
8580 acl_cv_prog_gnu_ld
=no
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8584 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8585 with_gnu_ld
=$acl_cv_prog_gnu_ld
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8590 $as_echo_n "checking for shared library run path origin... " >&6; }
8591 if test "${acl_cv_rpath+set}" = set; then :
8592 $as_echo_n "(cached) " >&6
8595 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8596 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8603 $as_echo "$acl_cv_rpath" >&6; }
8605 libext
="$acl_cv_libext"
8606 shlibext
="$acl_cv_shlibext"
8607 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8608 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8609 hardcode_direct
="$acl_cv_hardcode_direct"
8610 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8611 # Check whether --enable-rpath was given.
8612 if test "${enable_rpath+set}" = set; then :
8613 enableval
=$enable_rpath; :
8629 acl_save_prefix
="$prefix"
8630 prefix
="$acl_final_prefix"
8631 acl_save_exec_prefix
="$exec_prefix"
8632 exec_prefix
="$acl_final_exec_prefix"
8634 eval additional_includedir
=\"$includedir\"
8635 eval additional_libdir
=\"$libdir\"
8637 exec_prefix
="$acl_save_exec_prefix"
8638 prefix
="$acl_save_prefix"
8641 # Check whether --with-libexpat-prefix was given.
8642 if test "${with_libexpat_prefix+set}" = set; then :
8643 withval
=$with_libexpat_prefix;
8644 if test "X$withval" = "Xno"; then
8647 if test "X$withval" = "X"; then
8649 acl_save_prefix
="$prefix"
8650 prefix
="$acl_final_prefix"
8651 acl_save_exec_prefix
="$exec_prefix"
8652 exec_prefix
="$acl_final_exec_prefix"
8654 eval additional_includedir
=\"$includedir\"
8655 eval additional_libdir
=\"$libdir\"
8657 exec_prefix
="$acl_save_exec_prefix"
8658 prefix
="$acl_save_prefix"
8661 additional_includedir
="$withval/include"
8662 additional_libdir
="$withval/lib"
8673 names_already_handled
=
8674 names_next_round
='expat '
8675 while test -n "$names_next_round"; do
8676 names_this_round
="$names_next_round"
8678 for name
in $names_this_round; do
8680 for n
in $names_already_handled; do
8681 if test "$n" = "$name"; then
8686 if test -z "$already_handled"; then
8687 names_already_handled
="$names_already_handled $name"
8688 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8689 eval value
=\"\
$HAVE_LIB$uppername\"
8690 if test -n "$value"; then
8691 if test "$value" = yes; then
8692 eval value
=\"\
$LIB$uppername\"
8693 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
8694 eval value
=\"\
$LTLIB$uppername\"
8695 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8704 if test $use_additional = yes; then
8705 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8706 found_dir
="$additional_libdir"
8707 found_so
="$additional_libdir/lib$name.$shlibext"
8708 if test -f "$additional_libdir/lib$name.la"; then
8709 found_la
="$additional_libdir/lib$name.la"
8712 if test -f "$additional_libdir/lib$name.$libext"; then
8713 found_dir
="$additional_libdir"
8714 found_a
="$additional_libdir/lib$name.$libext"
8715 if test -f "$additional_libdir/lib$name.la"; then
8716 found_la
="$additional_libdir/lib$name.la"
8721 if test "X$found_dir" = "X"; then
8722 for x
in $LDFLAGS $LTLIBEXPAT; do
8724 acl_save_prefix
="$prefix"
8725 prefix
="$acl_final_prefix"
8726 acl_save_exec_prefix
="$exec_prefix"
8727 exec_prefix
="$acl_final_exec_prefix"
8729 exec_prefix
="$acl_save_exec_prefix"
8730 prefix
="$acl_save_prefix"
8734 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8735 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8737 found_so
="$dir/lib$name.$shlibext"
8738 if test -f "$dir/lib$name.la"; then
8739 found_la
="$dir/lib$name.la"
8742 if test -f "$dir/lib$name.$libext"; then
8744 found_a
="$dir/lib$name.$libext"
8745 if test -f "$dir/lib$name.la"; then
8746 found_la
="$dir/lib$name.la"
8752 if test "X$found_dir" != "X"; then
8757 if test "X$found_dir" != "X"; then
8758 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8759 if test "X$found_so" != "X"; then
8760 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8761 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8764 for x
in $ltrpathdirs; do
8765 if test "X$x" = "X$found_dir"; then
8770 if test -z "$haveit"; then
8771 ltrpathdirs
="$ltrpathdirs $found_dir"
8773 if test "$hardcode_direct" = yes; then
8774 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8776 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8777 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8779 for x
in $rpathdirs; do
8780 if test "X$x" = "X$found_dir"; then
8785 if test -z "$haveit"; then
8786 rpathdirs
="$rpathdirs $found_dir"
8790 for x
in $LDFLAGS $LIBEXPAT; do
8792 acl_save_prefix
="$prefix"
8793 prefix
="$acl_final_prefix"
8794 acl_save_exec_prefix
="$exec_prefix"
8795 exec_prefix
="$acl_final_exec_prefix"
8797 exec_prefix
="$acl_save_exec_prefix"
8798 prefix
="$acl_save_prefix"
8800 if test "X$x" = "X-L$found_dir"; then
8805 if test -z "$haveit"; then
8806 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8808 if test "$hardcode_minus_L" != no
; then
8809 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8811 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8817 if test "X$found_a" != "X"; then
8818 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8820 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8823 additional_includedir
=
8824 case "$found_dir" in
8826 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8827 additional_includedir
="$basedir/include"
8830 if test "X$additional_includedir" != "X"; then
8831 if test "X$additional_includedir" != "X/usr/include"; then
8833 if test "X$additional_includedir" = "X/usr/local/include"; then
8834 if test -n "$GCC"; then
8836 linux
*) haveit
=yes;;
8840 if test -z "$haveit"; then
8841 for x
in $CPPFLAGS $INCEXPAT; do
8843 acl_save_prefix
="$prefix"
8844 prefix
="$acl_final_prefix"
8845 acl_save_exec_prefix
="$exec_prefix"
8846 exec_prefix
="$acl_final_exec_prefix"
8848 exec_prefix
="$acl_save_exec_prefix"
8849 prefix
="$acl_save_prefix"
8851 if test "X$x" = "X-I$additional_includedir"; then
8856 if test -z "$haveit"; then
8857 if test -d "$additional_includedir"; then
8858 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8864 if test -n "$found_la"; then
8865 save_libdir
="$libdir"
8867 */* |
*\\*) .
"$found_la" ;;
8868 *) .
"./$found_la" ;;
8870 libdir
="$save_libdir"
8871 for dep
in $dependency_libs; do
8874 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8875 if test "X$additional_libdir" != "X/usr/lib"; then
8877 if test "X$additional_libdir" = "X/usr/local/lib"; then
8878 if test -n "$GCC"; then
8880 linux
*) haveit
=yes;;
8884 if test -z "$haveit"; then
8886 for x
in $LDFLAGS $LIBEXPAT; do
8888 acl_save_prefix
="$prefix"
8889 prefix
="$acl_final_prefix"
8890 acl_save_exec_prefix
="$exec_prefix"
8891 exec_prefix
="$acl_final_exec_prefix"
8893 exec_prefix
="$acl_save_exec_prefix"
8894 prefix
="$acl_save_prefix"
8896 if test "X$x" = "X-L$additional_libdir"; then
8901 if test -z "$haveit"; then
8902 if test -d "$additional_libdir"; then
8903 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8907 for x
in $LDFLAGS $LTLIBEXPAT; do
8909 acl_save_prefix
="$prefix"
8910 prefix
="$acl_final_prefix"
8911 acl_save_exec_prefix
="$exec_prefix"
8912 exec_prefix
="$acl_final_exec_prefix"
8914 exec_prefix
="$acl_save_exec_prefix"
8915 prefix
="$acl_save_prefix"
8917 if test "X$x" = "X-L$additional_libdir"; then
8922 if test -z "$haveit"; then
8923 if test -d "$additional_libdir"; then
8924 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8931 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8932 if test "$enable_rpath" != no
; then
8934 for x
in $rpathdirs; do
8935 if test "X$x" = "X$dir"; then
8940 if test -z "$haveit"; then
8941 rpathdirs
="$rpathdirs $dir"
8944 for x
in $ltrpathdirs; do
8945 if test "X$x" = "X$dir"; then
8950 if test -z "$haveit"; then
8951 ltrpathdirs
="$ltrpathdirs $dir"
8956 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8959 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8962 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8963 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8969 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8970 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8976 if test "X$rpathdirs" != "X"; then
8977 if test -n "$hardcode_libdir_separator"; then
8979 for found_dir
in $rpathdirs; do
8980 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8982 acl_save_libdir
="$libdir"
8984 eval flag
=\"$hardcode_libdir_flag_spec\"
8985 libdir
="$acl_save_libdir"
8986 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8988 for found_dir
in $rpathdirs; do
8989 acl_save_libdir
="$libdir"
8991 eval flag
=\"$hardcode_libdir_flag_spec\"
8992 libdir
="$acl_save_libdir"
8993 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8997 if test "X$ltrpathdirs" != "X"; then
8998 for found_dir
in $ltrpathdirs; do
8999 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9004 ac_save_CPPFLAGS
="$CPPFLAGS"
9006 for element
in $INCEXPAT; do
9008 for x
in $CPPFLAGS; do
9010 acl_save_prefix
="$prefix"
9011 prefix
="$acl_final_prefix"
9012 acl_save_exec_prefix
="$exec_prefix"
9013 exec_prefix
="$acl_final_exec_prefix"
9015 exec_prefix
="$acl_save_exec_prefix"
9016 prefix
="$acl_save_prefix"
9018 if test "X$x" = "X$element"; then
9023 if test -z "$haveit"; then
9024 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9030 $as_echo_n "checking for libexpat... " >&6; }
9031 if test "${ac_cv_libexpat+set}" = set; then :
9032 $as_echo_n "(cached) " >&6
9035 ac_save_LIBS
="$LIBS"
9036 LIBS
="$LIBS $LIBEXPAT"
9037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9043 XML_Parser p = XML_ParserCreate (0);
9048 if ac_fn_c_try_link
"$LINENO"; then :
9053 rm -f core conftest.err conftest.
$ac_objext \
9054 conftest
$ac_exeext conftest.
$ac_ext
9055 LIBS
="$ac_save_LIBS"
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9059 $as_echo "$ac_cv_libexpat" >&6; }
9060 if test "$ac_cv_libexpat" = yes; then
9063 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9066 $as_echo_n "checking how to link with libexpat... " >&6; }
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9068 $as_echo "$LIBEXPAT" >&6; }
9071 CPPFLAGS
="$ac_save_CPPFLAGS"
9081 if test "$HAVE_LIBEXPAT" != yes; then
9082 if test "$with_expat" = yes; then
9083 as_fn_error
"expat is missing or unusable" "$LINENO" 5
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9086 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9090 LIBS
="$LIBS $LIBEXPAT"
9091 for ac_func
in XML_StopParser
9093 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9094 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
9095 cat >>confdefs.h
<<_ACEOF
9096 #define HAVE_XML_STOPPARSER 1
9109 # Check whether --with-python was given.
9110 if test "${with_python+set}" = set; then :
9111 withval
=$with_python;
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
9117 $as_echo_n "checking whether to use python... " >&6; }
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
9119 $as_echo "$with_python" >&6; }
9121 if test "${with_python}" = no
; then
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
9123 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
9126 case "${with_python}" in
9128 # Leave as empty, use defaults.
9133 python_includes
="-I${with_python}/include"
9134 python_libs
="-L${with_python}/lib"
9137 as_fn_error
"invalid value for --with-python" "$LINENO" 5
9141 save_CPPFLAGS
=$CPPFLAGS
9142 CPPFLAGS
="$CPPFLAGS ${python_includes}"
9144 LIBS
="$LIBS ${python_libs}"
9146 if test "${have_libpython}" = no
; then
9151 HAVE_LIBPYTHON2_6
=no
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9153 $as_echo_n "checking for ${version}... " >&6; }
9155 LIBS
="$LIBS -l${version}"
9156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 #include "${version}/Python.h"
9167 if ac_fn_c_try_link
"$LINENO"; then :
9168 HAVE_LIBPYTHON2_6
=yes
9173 rm -f core conftest.err conftest.
$ac_objext \
9174 conftest
$ac_exeext conftest.
$ac_ext
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_6" >&5
9176 $as_echo "$HAVE_LIBPYTHON2_6" >&6; }
9178 if test "${HAVE_LIBPYTHON2_6}" = yes; then
9180 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9184 if test ${have_libpython} = no
; then
9189 HAVE_LIBPYTHON2_5
=no
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9191 $as_echo_n "checking for ${version}... " >&6; }
9193 LIBS
="$LIBS -l${version}"
9194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9196 #include "${version}/Python.h"
9205 if ac_fn_c_try_link
"$LINENO"; then :
9206 HAVE_LIBPYTHON2_5
=yes
9211 rm -f core conftest.err conftest.
$ac_objext \
9212 conftest
$ac_exeext conftest.
$ac_ext
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_5" >&5
9214 $as_echo "$HAVE_LIBPYTHON2_5" >&6; }
9216 if test "${HAVE_LIBPYTHON2_5}" = yes; then
9218 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9222 if test ${have_libpython} = no
; then
9227 HAVE_LIBPYTHON2_4
=no
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9229 $as_echo_n "checking for ${version}... " >&6; }
9231 LIBS
="$LIBS -l${version}"
9232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9234 #include "${version}/Python.h"
9243 if ac_fn_c_try_link
"$LINENO"; then :
9244 HAVE_LIBPYTHON2_4
=yes
9249 rm -f core conftest.err conftest.
$ac_objext \
9250 conftest
$ac_exeext conftest.
$ac_ext
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_4" >&5
9252 $as_echo "$HAVE_LIBPYTHON2_4" >&6; }
9254 if test "${HAVE_LIBPYTHON2_4}" = yes; then
9256 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9260 if test ${have_libpython} = no
; then
9261 case "${with_python}" in
9263 as_fn_error
"python is missing or unusable" "$LINENO" 5
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9267 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9270 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
9273 CPPFLAGS
=$save_CPPFLAGS
9278 if test "${have_libpython}" = yes; then
9280 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9282 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9283 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9284 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9285 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9287 # Flags needed to compile Python code (taken from python-config --cflags).
9288 # We cannot call python-config directly because it will output whatever was
9289 # used when compiling the Python interpreter itself, including flags which
9290 # would make the python-related objects be compiled differently from the
9291 # rest of GDB (e.g., -O2 and -fPIC).
9292 if test "${GCC}" = yes; then
9293 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
9296 if test "x${tentative_python_cflags}" != x
; then
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9298 $as_echo_n "checking compiler flags for python code... " >&6; }
9299 for flag
in ${tentative_python_cflags}; do
9300 # Check that the compiler accepts it
9301 saved_CFLAGS
="$CFLAGS"
9302 CFLAGS
="$CFLAGS $flag"
9303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9314 if ac_fn_c_try_compile
"$LINENO"; then :
9315 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
9317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9318 CFLAGS
="$saved_CFLAGS"
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9321 $as_echo "${PYTHON_CFLAGS}" >&6; }
9324 # Even if Python support is not compiled in, we need to have these files
9325 # included in order to recognize the GDB command "python".
9326 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o"
9327 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c python/py-prettyprint.c"
9331 # ------------------------- #
9332 # Checks for header files. #
9333 # ------------------------- #
9336 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9337 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9339 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9340 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9341 $as_echo_n "(cached) " >&6
9343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345 #include <sys/types.h>
9357 if ac_fn_c_try_compile
"$LINENO"; then :
9358 eval "$as_ac_Header=yes"
9360 eval "$as_ac_Header=no"
9362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9364 eval ac_res
=\$
$as_ac_Header
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9366 $as_echo "$ac_res" >&6; }
9367 eval as_val
=\$
$as_ac_Header
9368 if test "x$as_val" = x
""yes; then :
9369 cat >>confdefs.h
<<_ACEOF
9370 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9373 ac_header_dirent
=$ac_hdr; break
9377 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9378 if test $ac_header_dirent = dirent.h
; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9380 $as_echo_n "checking for library containing opendir... " >&6; }
9381 if test "${ac_cv_search_opendir+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
9384 ac_func_search_save_LIBS
=$LIBS
9385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9388 /* Override any GCC internal prototype to avoid an error.
9389 Use char because int might match the return type of a GCC
9390 builtin and then its argument prototype would still apply. */
9403 for ac_lib
in '' dir
; do
9404 if test -z "$ac_lib"; then
9405 ac_res
="none required"
9408 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9410 if ac_fn_c_try_link
"$LINENO"; then :
9411 ac_cv_search_opendir
=$ac_res
9413 rm -f core conftest.err conftest.
$ac_objext \
9415 if test "${ac_cv_search_opendir+set}" = set; then :
9419 if test "${ac_cv_search_opendir+set}" = set; then :
9422 ac_cv_search_opendir
=no
9425 LIBS
=$ac_func_search_save_LIBS
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9428 $as_echo "$ac_cv_search_opendir" >&6; }
9429 ac_res
=$ac_cv_search_opendir
9430 if test "$ac_res" != no
; then :
9431 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9437 $as_echo_n "checking for library containing opendir... " >&6; }
9438 if test "${ac_cv_search_opendir+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
9441 ac_func_search_save_LIBS
=$LIBS
9442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9445 /* Override any GCC internal prototype to avoid an error.
9446 Use char because int might match the return type of a GCC
9447 builtin and then its argument prototype would still apply. */
9460 for ac_lib
in '' x
; do
9461 if test -z "$ac_lib"; then
9462 ac_res
="none required"
9465 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9467 if ac_fn_c_try_link
"$LINENO"; then :
9468 ac_cv_search_opendir
=$ac_res
9470 rm -f core conftest.err conftest.
$ac_objext \
9472 if test "${ac_cv_search_opendir+set}" = set; then :
9476 if test "${ac_cv_search_opendir+set}" = set; then :
9479 ac_cv_search_opendir
=no
9482 LIBS
=$ac_func_search_save_LIBS
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9485 $as_echo "$ac_cv_search_opendir" >&6; }
9486 ac_res
=$ac_cv_search_opendir
9487 if test "$ac_res" != no
; then :
9488 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9495 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9496 if test "${ac_cv_header_stat_broken+set}" = set; then :
9497 $as_echo_n "(cached) " >&6
9499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501 #include <sys/types.h>
9502 #include <sys/stat.h>
9504 #if defined S_ISBLK && defined S_IFDIR
9505 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9508 #if defined S_ISBLK && defined S_IFCHR
9509 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9512 #if defined S_ISLNK && defined S_IFREG
9513 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9516 #if defined S_ISSOCK && defined S_IFREG
9517 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9521 if ac_fn_c_try_compile
"$LINENO"; then :
9522 ac_cv_header_stat_broken
=no
9524 ac_cv_header_stat_broken
=yes
9526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9529 $as_echo "$ac_cv_header_stat_broken" >&6; }
9530 if test $ac_cv_header_stat_broken = yes; then
9532 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9537 $as_echo_n "checking for ANSI C header files... " >&6; }
9538 if test "${ac_cv_header_stdc+set}" = set; then :
9539 $as_echo_n "(cached) " >&6
9541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9556 if ac_fn_c_try_compile
"$LINENO"; then :
9557 ac_cv_header_stdc
=yes
9559 ac_cv_header_stdc
=no
9561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9563 if test $ac_cv_header_stdc = yes; then
9564 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9571 $EGREP "memchr" >/dev
/null
2>&1; then :
9574 ac_cv_header_stdc
=no
9580 if test $ac_cv_header_stdc = yes; then
9581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9588 $EGREP "free" >/dev
/null
2>&1; then :
9591 ac_cv_header_stdc
=no
9597 if test $ac_cv_header_stdc = yes; then
9598 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9599 if test "$cross_compiling" = yes; then :
9602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9606 #if ((' ' & 0x0FF) == 0x020)
9607 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9608 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9610 # define ISLOWER(c) \
9611 (('a' <= (c) && (c) <= 'i') \
9612 || ('j' <= (c) && (c) <= 'r') \
9613 || ('s' <= (c) && (c) <= 'z'))
9614 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9617 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9622 for (i = 0; i < 256; i++)
9623 if (XOR (islower (i), ISLOWER (i))
9624 || toupper (i) != TOUPPER (i))
9629 if ac_fn_c_try_run
"$LINENO"; then :
9632 ac_cv_header_stdc
=no
9634 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9635 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9641 $as_echo "$ac_cv_header_stdc" >&6; }
9642 if test $ac_cv_header_stdc = yes; then
9644 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9648 # elf_hp.h is for HP/UX 64-bit shared library support.
9649 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
9650 # unconditionally, so what's the point in checking these?
9651 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
9652 thread_db.h gnu
/libc-version.h signal.h stddef.h \
9653 stdlib.h string.h memory.h
strings.h sys
/fault.h \
9654 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
9655 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
9656 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
9657 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
9658 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
9660 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9661 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9662 eval as_val
=\$
$as_ac_Header
9663 if test "x$as_val" = x
""yes; then :
9664 cat >>confdefs.h
<<_ACEOF
9665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9672 for ac_header
in link.h
9674 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
9675 # include <sys/types.h>
9682 if test "x$ac_cv_header_link_h" = x
""yes; then :
9683 cat >>confdefs.h
<<_ACEOF
9684 #define HAVE_LINK_H 1
9691 for ac_header
in sys
/proc.h
9693 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
9694 # include <sys/param.h>
9698 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
9699 cat >>confdefs.h
<<_ACEOF
9700 #define HAVE_SYS_PROC_H 1
9707 for ac_header
in sys
/user.h
9709 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
9710 # include <sys/param.h>
9714 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
9715 cat >>confdefs.h
<<_ACEOF
9716 #define HAVE_SYS_USER_H 1
9724 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
9725 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
9726 # think that we don't have <curses.h> if we're using GCC.
9729 if test "$GCC" = yes; then
9731 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
9735 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
9737 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9738 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9739 eval as_val
=\$
$as_ac_Header
9740 if test "x$as_val" = x
""yes; then :
9741 cat >>confdefs.h
<<_ACEOF
9742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9749 for ac_header
in term.h
9751 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9752 # include <curses.h>
9756 if test "x$ac_cv_header_term_h" = x
""yes; then :
9757 cat >>confdefs.h
<<_ACEOF
9758 #define HAVE_TERM_H 1
9766 # ------------------------- #
9767 # Checks for declarations. #
9768 # ------------------------- #
9770 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
9771 if test "x$ac_cv_have_decl_free" = x
""yes; then :
9777 cat >>confdefs.h
<<_ACEOF
9778 #define HAVE_DECL_FREE $ac_have_decl
9780 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
9781 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
9787 cat >>confdefs.h
<<_ACEOF
9788 #define HAVE_DECL_MALLOC $ac_have_decl
9790 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9791 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
9797 cat >>confdefs.h
<<_ACEOF
9798 #define HAVE_DECL_REALLOC $ac_have_decl
9800 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
9801 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
9807 cat >>confdefs.h
<<_ACEOF
9808 #define HAVE_DECL_STRERROR $ac_have_decl
9810 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
9811 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
9817 cat >>confdefs.h
<<_ACEOF
9818 #define HAVE_DECL_STRSTR $ac_have_decl
9820 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
9821 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
9827 cat >>confdefs.h
<<_ACEOF
9828 #define HAVE_DECL_GETOPT $ac_have_decl
9830 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9831 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
9837 cat >>confdefs.h
<<_ACEOF
9838 #define HAVE_DECL_SNPRINTF $ac_have_decl
9840 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9841 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
9847 cat >>confdefs.h
<<_ACEOF
9848 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9853 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9854 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9855 $as_echo_n "(cached) " >&6
9857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h. */
9868 if ac_fn_c_try_link
"$LINENO"; then :
9869 am_cv_val_LC_MESSAGES
=yes
9871 am_cv_val_LC_MESSAGES
=no
9873 rm -f core conftest.err conftest.
$ac_objext \
9874 conftest
$ac_exeext conftest.
$ac_ext
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9877 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9878 if test $am_cv_val_LC_MESSAGES = yes; then
9880 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9885 # ----------------------- #
9886 # Checks for structures. #
9887 # ----------------------- #
9889 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9890 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
9892 cat >>confdefs.h
<<_ACEOF
9893 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9898 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9899 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
9901 cat >>confdefs.h
<<_ACEOF
9902 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9909 # ------------------ #
9910 # Checks for types. #
9911 # ------------------ #
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9914 $as_echo_n "checking return type of signal handlers... " >&6; }
9915 if test "${ac_cv_type_signal+set}" = set; then :
9916 $as_echo_n "(cached) " >&6
9918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9920 #include <sys/types.h>
9926 return *(signal (0, 0)) (0) == 1;
9931 if ac_fn_c_try_compile
"$LINENO"; then :
9932 ac_cv_type_signal
=int
9934 ac_cv_type_signal
=void
9936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9939 $as_echo "$ac_cv_type_signal" >&6; }
9941 cat >>confdefs.h
<<_ACEOF
9942 #define RETSIGTYPE $ac_cv_type_signal
9946 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9947 #include <sys/socket.h>
9950 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
9952 cat >>confdefs.h
<<_ACEOF
9953 #define HAVE_SOCKLEN_T 1
9960 # ------------------------------------- #
9961 # Checks for compiler characteristics. #
9962 # ------------------------------------- #
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9965 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9966 if test "${ac_cv_c_const+set}" = set; then :
9967 $as_echo_n "(cached) " >&6
9969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9970 /* end confdefs.h. */
9975 /* FIXME: Include the comments suggested by Paul. */
9977 /* Ultrix mips cc rejects this. */
9978 typedef int charset[2];
9980 /* SunOS 4.1.1 cc rejects this. */
9981 char const *const *pcpcc;
9983 /* NEC SVR4.0.2 mips cc rejects this. */
9984 struct point {int x, y;};
9985 static struct point const zero = {0,0};
9986 /* AIX XL C 1.02.0.0 rejects this.
9987 It does not let you subtract one const X* pointer from another in
9988 an arm of an if-expression whose if-part is not a constant
9990 const char *g = "string";
9991 pcpcc = &g + (g ? g-g : 0);
9992 /* HPUX 7.0 cc rejects these. */
9994 ppc = (char**) pcpcc;
9995 pcpcc = (char const *const *) ppc;
9996 { /* SCO 3.2v4 cc rejects this. */
9998 char const *s = 0 ? (char *) 0 : (char const *) 0;
10003 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10004 int x[] = {25, 17};
10005 const int *foo = &x[0];
10008 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10009 typedef const int *iptr;
10013 { /* AIX XL C 1.02.0.0 rejects this saying
10014 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10015 struct s { int j; const int *ap[3]; };
10016 struct s *b; b->j = 5;
10018 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10019 const int foo = 10;
10020 if (!foo) return 0;
10022 return !cs[0] && !zero.x;
10029 if ac_fn_c_try_compile
"$LINENO"; then :
10034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10037 $as_echo "$ac_cv_c_const" >&6; }
10038 if test $ac_cv_c_const = no
; then
10040 $as_echo "#define const /**/" >>confdefs.h
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10045 $as_echo_n "checking for inline... " >&6; }
10046 if test "${ac_cv_c_inline+set}" = set; then :
10047 $as_echo_n "(cached) " >&6
10050 for ac_kw
in inline __inline__ __inline
; do
10051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10053 #ifndef __cplusplus
10055 static $ac_kw foo_t static_foo () {return 0; }
10056 $ac_kw foo_t foo () {return 0; }
10060 if ac_fn_c_try_compile
"$LINENO"; then :
10061 ac_cv_c_inline
=$ac_kw
10063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10064 test "$ac_cv_c_inline" != no
&& break
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10069 $as_echo "$ac_cv_c_inline" >&6; }
10071 case $ac_cv_c_inline in
10074 case $ac_cv_c_inline in
10076 *) ac_val
=$ac_cv_c_inline;;
10078 cat >>confdefs.h
<<_ACEOF
10079 #ifndef __cplusplus
10080 #define inline $ac_val
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10087 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10088 if test "${ac_cv_c_bigendian+set}" = set; then :
10089 $as_echo_n "(cached) " >&6
10091 ac_cv_c_bigendian
=unknown
10092 # See if we're dealing with a universal compiler.
10093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10095 #ifndef __APPLE_CC__
10096 not a universal capable compiler
10101 if ac_fn_c_try_compile
"$LINENO"; then :
10103 # Check for potential -arch flags. It is not universal unless
10104 # there are at least two -arch flags with different values.
10107 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10108 if test -n "$ac_prev"; then
10110 i?
86 | x86_64 | ppc | ppc64
)
10111 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10114 ac_cv_c_bigendian
=universal
10120 elif test "x$ac_word" = "x-arch"; then
10125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10126 if test $ac_cv_c_bigendian = unknown
; then
10127 # See if sys/param.h defines the BYTE_ORDER macro.
10128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10130 #include <sys/types.h>
10131 #include <sys/param.h>
10136 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10137 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10139 bogus endian macros
10146 if ac_fn_c_try_compile
"$LINENO"; then :
10147 # It does; now see whether it defined to BIG_ENDIAN or not.
10148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h. */
10150 #include <sys/types.h>
10151 #include <sys/param.h>
10156 #if BYTE_ORDER != BIG_ENDIAN
10164 if ac_fn_c_try_compile
"$LINENO"; then :
10165 ac_cv_c_bigendian
=yes
10167 ac_cv_c_bigendian
=no
10169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10173 if test $ac_cv_c_bigendian = unknown
; then
10174 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10177 #include <limits.h>
10182 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10183 bogus endian macros
10190 if ac_fn_c_try_compile
"$LINENO"; then :
10191 # It does; now see whether it defined to _BIG_ENDIAN or not.
10192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h. */
10194 #include <limits.h>
10199 #ifndef _BIG_ENDIAN
10207 if ac_fn_c_try_compile
"$LINENO"; then :
10208 ac_cv_c_bigendian
=yes
10210 ac_cv_c_bigendian
=no
10212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10216 if test $ac_cv_c_bigendian = unknown
; then
10217 # Compile a test program.
10218 if test "$cross_compiling" = yes; then :
10219 # Try to guess by grepping values from an object file.
10220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10222 short int ascii_mm[] =
10223 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10224 short int ascii_ii[] =
10225 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10226 int use_ascii (int i) {
10227 return ascii_mm[i] + ascii_ii[i];
10229 short int ebcdic_ii[] =
10230 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10231 short int ebcdic_mm[] =
10232 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10233 int use_ebcdic (int i) {
10234 return ebcdic_mm[i] + ebcdic_ii[i];
10241 return use_ascii (foo) == use_ebcdic (foo);
10246 if ac_fn_c_try_compile
"$LINENO"; then :
10247 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10248 ac_cv_c_bigendian
=yes
10250 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10251 if test "$ac_cv_c_bigendian" = unknown
; then
10252 ac_cv_c_bigendian
=no
10254 # finding both strings is unlikely to happen, but who knows?
10255 ac_cv_c_bigendian
=unknown
10259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10262 /* end confdefs.h. */
10263 $ac_includes_default
10268 /* Are we little or big endian? From Harbison&Steele. */
10272 char c[sizeof (long int)];
10275 return u.c[sizeof (long int) - 1] == 1;
10281 if ac_fn_c_try_run
"$LINENO"; then :
10282 ac_cv_c_bigendian
=no
10284 ac_cv_c_bigendian
=yes
10286 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10287 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10293 $as_echo "$ac_cv_c_bigendian" >&6; }
10294 case $ac_cv_c_bigendian in #(
10296 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10302 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10306 as_fn_error
"unknown endianness
10307 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10311 # ------------------------------ #
10312 # Checks for library functions. #
10313 # ------------------------------ #
10315 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10316 # for constant arguments. Useless!
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10318 $as_echo_n "checking for working alloca.h... " >&6; }
10319 if test "${ac_cv_working_alloca_h+set}" = set; then :
10320 $as_echo_n "(cached) " >&6
10322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10324 #include <alloca.h>
10328 char *p = (char *) alloca (2 * sizeof (int));
10334 if ac_fn_c_try_link
"$LINENO"; then :
10335 ac_cv_working_alloca_h
=yes
10337 ac_cv_working_alloca_h
=no
10339 rm -f core conftest.err conftest.
$ac_objext \
10340 conftest
$ac_exeext conftest.
$ac_ext
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10343 $as_echo "$ac_cv_working_alloca_h" >&6; }
10344 if test $ac_cv_working_alloca_h = yes; then
10346 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10351 $as_echo_n "checking for alloca... " >&6; }
10352 if test "${ac_cv_func_alloca_works+set}" = set; then :
10353 $as_echo_n "(cached) " >&6
10355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10358 # define alloca __builtin_alloca
10361 # include <malloc.h>
10362 # define alloca _alloca
10364 # ifdef HAVE_ALLOCA_H
10365 # include <alloca.h>
10370 # ifndef alloca /* predefined by HP cc +Olibcalls */
10381 char *p = (char *) alloca (1);
10387 if ac_fn_c_try_link
"$LINENO"; then :
10388 ac_cv_func_alloca_works
=yes
10390 ac_cv_func_alloca_works
=no
10392 rm -f core conftest.err conftest.
$ac_objext \
10393 conftest
$ac_exeext conftest.
$ac_ext
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10396 $as_echo "$ac_cv_func_alloca_works" >&6; }
10398 if test $ac_cv_func_alloca_works = yes; then
10400 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10403 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10404 # that cause trouble. Some versions do not even contain alloca or
10405 # contain a buggy version. If you still want to use their alloca,
10406 # use ar to extract alloca.o from them instead of compiling alloca.c.
10408 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10410 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10414 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10415 if test "${ac_cv_os_cray+set}" = set; then :
10416 $as_echo_n "(cached) " >&6
10418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h. */
10420 #if defined CRAY && ! defined CRAY2
10427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10428 $EGREP "webecray" >/dev
/null
2>&1; then :
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10437 $as_echo "$ac_cv_os_cray" >&6; }
10438 if test $ac_cv_os_cray = yes; then
10439 for ac_func
in _getb67 GETB67 getb67
; do
10440 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10441 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10442 eval as_val
=\$
$as_ac_var
10443 if test "x$as_val" = x
""yes; then :
10445 cat >>confdefs.h
<<_ACEOF
10446 #define CRAY_STACKSEG_END $ac_func
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10456 $as_echo_n "checking stack direction for C alloca... " >&6; }
10457 if test "${ac_cv_c_stack_direction+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
10460 if test "$cross_compiling" = yes; then :
10461 ac_cv_c_stack_direction
=0
10463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h. */
10465 $ac_includes_default
10467 find_stack_direction ()
10469 static char *addr = 0;
10474 return find_stack_direction ();
10477 return (&dummy > addr) ? 1 : -1;
10483 return find_stack_direction () < 0;
10486 if ac_fn_c_try_run
"$LINENO"; then :
10487 ac_cv_c_stack_direction
=1
10489 ac_cv_c_stack_direction
=-1
10491 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10492 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10497 $as_echo "$ac_cv_c_stack_direction" >&6; }
10498 cat >>confdefs.h
<<_ACEOF
10499 #define STACK_DIRECTION $ac_cv_c_stack_direction
10505 for ac_header
in stdlib.h unistd.h
10507 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10508 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10509 eval as_val
=\$
$as_ac_Header
10510 if test "x$as_val" = x
""yes; then :
10511 cat >>confdefs.h
<<_ACEOF
10512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10519 for ac_func
in getpagesize
10521 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10522 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10523 cat >>confdefs.h
<<_ACEOF
10524 #define HAVE_GETPAGESIZE 1
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10531 $as_echo_n "checking for working mmap... " >&6; }
10532 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10533 $as_echo_n "(cached) " >&6
10535 if test "$cross_compiling" = yes; then :
10536 ac_cv_func_mmap_fixed_mapped
=no
10538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540 $ac_includes_default
10541 /* malloc might have been renamed as rpl_malloc. */
10544 /* Thanks to Mike Haertel and Jim Avera for this test.
10545 Here is a matrix of mmap possibilities:
10546 mmap private not fixed
10547 mmap private fixed at somewhere currently unmapped
10548 mmap private fixed at somewhere already mapped
10549 mmap shared not fixed
10550 mmap shared fixed at somewhere currently unmapped
10551 mmap shared fixed at somewhere already mapped
10552 For private mappings, we should verify that changes cannot be read()
10553 back from the file, nor mmap's back from the file at a different
10554 address. (There have been systems where private was not correctly
10555 implemented like the infamous i386 svr4.0, and systems where the
10556 VM page cache was not coherent with the file system buffer cache
10557 like early versions of FreeBSD and possibly contemporary NetBSD.)
10558 For shared mappings, we should conversely verify that changes get
10559 propagated back to all the places they're supposed to be.
10561 Grep wants private fixed already mapped.
10562 The main things grep needs to know about mmap are:
10563 * does it exist and is it safe to write into the mmap'd area
10564 * how to use it (BSD variants) */
10567 #include <sys/mman.h>
10569 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10573 /* This mess was copied from the GNU getpagesize.h. */
10574 #ifndef HAVE_GETPAGESIZE
10575 /* Assume that all systems that can run configure have sys/param.h. */
10576 # ifndef HAVE_SYS_PARAM_H
10577 # define HAVE_SYS_PARAM_H 1
10580 # ifdef _SC_PAGESIZE
10581 # define getpagesize() sysconf(_SC_PAGESIZE)
10582 # else /* no _SC_PAGESIZE */
10583 # ifdef HAVE_SYS_PARAM_H
10584 # include <sys/param.h>
10585 # ifdef EXEC_PAGESIZE
10586 # define getpagesize() EXEC_PAGESIZE
10587 # else /* no EXEC_PAGESIZE */
10589 # define getpagesize() NBPG * CLSIZE
10592 # endif /* no CLSIZE */
10593 # else /* no NBPG */
10595 # define getpagesize() NBPC
10596 # else /* no NBPC */
10598 # define getpagesize() PAGESIZE
10599 # endif /* PAGESIZE */
10600 # endif /* no NBPC */
10601 # endif /* no NBPG */
10602 # endif /* no EXEC_PAGESIZE */
10603 # else /* no HAVE_SYS_PARAM_H */
10604 # define getpagesize() 8192 /* punt totally */
10605 # endif /* no HAVE_SYS_PARAM_H */
10606 # endif /* no _SC_PAGESIZE */
10608 #endif /* no HAVE_GETPAGESIZE */
10613 char *data, *data2, *data3;
10617 pagesize = getpagesize ();
10619 /* First, make a file with some known garbage in it. */
10620 data = (char *) malloc (pagesize);
10623 for (i = 0; i < pagesize; ++i)
10624 *(data + i) = rand ();
10626 fd = creat ("conftest.mmap", 0600);
10629 if (write (fd, data, pagesize) != pagesize)
10633 /* Next, try to mmap the file at a fixed address which already has
10634 something else allocated at it. If we can, also make sure that
10635 we see the same garbage. */
10636 fd = open ("conftest.mmap", O_RDWR);
10639 data2 = (char *) malloc (2 * pagesize);
10642 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10643 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10644 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10646 for (i = 0; i < pagesize; ++i)
10647 if (*(data + i) != *(data2 + i))
10650 /* Finally, make sure that changes to the mapped area do not
10651 percolate back to the file as seen by read(). (This is a bug on
10652 some variants of i386 svr4.0.) */
10653 for (i = 0; i < pagesize; ++i)
10654 *(data2 + i) = *(data2 + i) + 1;
10655 data3 = (char *) malloc (pagesize);
10658 if (read (fd, data3, pagesize) != pagesize)
10660 for (i = 0; i < pagesize; ++i)
10661 if (*(data + i) != *(data3 + i))
10667 if ac_fn_c_try_run
"$LINENO"; then :
10668 ac_cv_func_mmap_fixed_mapped
=yes
10670 ac_cv_func_mmap_fixed_mapped
=no
10672 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10673 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10678 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10679 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10681 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10684 rm -f conftest.mmap
10686 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10687 if test "x$ac_cv_type_pid_t" = x
""yes; then :
10691 cat >>confdefs.h
<<_ACEOF
10697 for ac_header
in vfork.h
10699 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10700 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
10701 cat >>confdefs.h
<<_ACEOF
10702 #define HAVE_VFORK_H 1
10709 for ac_func
in fork vfork
10711 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10712 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10713 eval as_val
=\$
$as_ac_var
10714 if test "x$as_val" = x
""yes; then :
10715 cat >>confdefs.h
<<_ACEOF
10716 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10722 if test "x$ac_cv_func_fork" = xyes
; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10724 $as_echo_n "checking for working fork... " >&6; }
10725 if test "${ac_cv_func_fork_works+set}" = set; then :
10726 $as_echo_n "(cached) " >&6
10728 if test "$cross_compiling" = yes; then :
10729 ac_cv_func_fork_works
=cross
10731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 $ac_includes_default
10738 /* By Ruediger Kuhlmann. */
10739 return fork () < 0;
10745 if ac_fn_c_try_run
"$LINENO"; then :
10746 ac_cv_func_fork_works
=yes
10748 ac_cv_func_fork_works
=no
10750 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10751 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10756 $as_echo "$ac_cv_func_fork_works" >&6; }
10759 ac_cv_func_fork_works
=$ac_cv_func_fork
10761 if test "x$ac_cv_func_fork_works" = xcross
; then
10763 *-*-amigaos* |
*-*-msdosdjgpp*)
10764 # Override, as these systems have only a dummy fork() stub
10765 ac_cv_func_fork_works
=no
10768 ac_cv_func_fork_works
=yes
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10772 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10774 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10775 if test "x$ac_cv_func_vfork" = xyes
; then
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10777 $as_echo_n "checking for working vfork... " >&6; }
10778 if test "${ac_cv_func_vfork_works+set}" = set; then :
10779 $as_echo_n "(cached) " >&6
10781 if test "$cross_compiling" = yes; then :
10782 ac_cv_func_vfork_works
=cross
10784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h. */
10786 /* Thanks to Paul Eggert for this test. */
10787 $ac_includes_default
10788 #include <sys/wait.h>
10789 #ifdef HAVE_VFORK_H
10790 # include <vfork.h>
10792 /* On some sparc systems, changes by the child to local and incoming
10793 argument registers are propagated back to the parent. The compiler
10794 is told about this with #include <vfork.h>, but some compilers
10795 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10796 static variable whose address is put into a register that is
10797 clobbered by the vfork. */
10800 sparc_address_test (int arg)
10802 sparc_address_test (arg) int arg;
10805 static pid_t child;
10823 pid_t parent = getpid ();
10826 sparc_address_test (0);
10831 /* Here is another test for sparc vfork register problems. This
10832 test uses lots of local variables, at least as many local
10833 variables as main has allocated so far including compiler
10834 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10835 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10836 reuse the register of parent for one of the local variables,
10837 since it will think that parent can't possibly be used any more
10838 in this routine. Assigning to the local variable will thus
10839 munge parent in the parent process. */
10841 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10842 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10843 /* Convince the compiler that p..p7 are live; otherwise, it might
10844 use the same hardware register for all 8 local variables. */
10845 if (p != p1 || p != p2 || p != p3 || p != p4
10846 || p != p5 || p != p6 || p != p7)
10849 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10850 from child file descriptors. If the child closes a descriptor
10851 before it execs or exits, this munges the parent's descriptor
10852 as well. Test for this by closing stdout in the child. */
10853 _exit(close(fileno(stdout)) != 0);
10858 while (wait(&status) != child)
10861 /* Was there some problem with vforking? */
10864 /* Did the child fail? (This shouldn't happen.) */
10867 /* Did the vfork/compiler bug occur? */
10868 || parent != getpid()
10870 /* Did the file descriptor bug occur? */
10871 || fstat(fileno(stdout), &st) != 0
10876 if ac_fn_c_try_run
"$LINENO"; then :
10877 ac_cv_func_vfork_works
=yes
10879 ac_cv_func_vfork_works
=no
10881 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10882 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10887 $as_echo "$ac_cv_func_vfork_works" >&6; }
10890 if test "x$ac_cv_func_fork_works" = xcross
; then
10891 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10893 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10896 if test "x$ac_cv_func_vfork_works" = xyes
; then
10898 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10902 $as_echo "#define vfork fork" >>confdefs.h
10905 if test "x$ac_cv_func_fork_works" = xyes
; then
10907 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10911 for ac_func
in canonicalize_file_name realpath getrusage getuid \
10912 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
10913 sigaction sigprocmask sigsetmask socketpair syscall \
10914 ttrace wborder setlocale iconvlist libiconvlist btowc
10916 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10917 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10918 eval as_val
=\$
$as_ac_var
10919 if test "x$as_val" = x
""yes; then :
10920 cat >>confdefs.h
<<_ACEOF
10921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10929 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10930 if test "${am_cv_langinfo_codeset+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h. */
10935 #include <langinfo.h>
10939 char* cs = nl_langinfo(CODESET);
10944 if ac_fn_c_try_link
"$LINENO"; then :
10945 am_cv_langinfo_codeset
=yes
10947 am_cv_langinfo_codeset
=no
10949 rm -f core conftest.err conftest.
$ac_objext \
10950 conftest
$ac_exeext conftest.
$ac_ext
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10954 $as_echo "$am_cv_langinfo_codeset" >&6; }
10955 if test $am_cv_langinfo_codeset = yes; then
10957 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10962 # Check the return and argument types of ptrace. No canned test for
10963 # this, so roll our own.
10964 gdb_ptrace_headers
='
10965 #if HAVE_SYS_TYPES_H
10966 # include <sys/types.h>
10968 #if HAVE_SYS_PTRACE_H
10969 # include <sys/ptrace.h>
10972 # include <unistd.h>
10975 # There is no point in checking if we don't have a prototype.
10976 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10978 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
10984 cat >>confdefs.h
<<_ACEOF
10985 #define HAVE_DECL_PTRACE $ac_have_decl
10987 if test $ac_have_decl = 1; then :
10991 : ${gdb_cv_func_ptrace_ret='int'}
10992 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10996 # Check return type. Varargs (used on GNU/Linux) conflict with the
10997 # empty argument list, so check for that explicitly.
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10999 $as_echo_n "checking return type of ptrace... " >&6; }
11000 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11001 $as_echo_n "(cached) " >&6
11003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005 $gdb_ptrace_headers
11009 extern long ptrace (enum __ptrace_request, ...);
11014 if ac_fn_c_try_compile
"$LINENO"; then :
11015 gdb_cv_func_ptrace_ret
='long'
11017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11019 $gdb_ptrace_headers
11023 extern int ptrace ();
11028 if ac_fn_c_try_compile
"$LINENO"; then :
11029 gdb_cv_func_ptrace_ret
='int'
11031 gdb_cv_func_ptrace_ret
='long'
11033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11038 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11040 cat >>confdefs.h
<<_ACEOF
11041 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11044 # Check argument types.
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11046 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11047 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11048 $as_echo_n "(cached) " >&6
11051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11053 $gdb_ptrace_headers
11057 extern long ptrace (enum __ptrace_request, ...);
11062 if ac_fn_c_try_compile
"$LINENO"; then :
11063 gdb_cv_func_ptrace_args
='int,int,long,long'
11066 for gdb_arg1
in 'int' 'long'; do
11067 for gdb_arg2
in 'pid_t' 'int' 'long'; do
11068 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11069 for gdb_arg4
in 'int' 'long'; do
11070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11072 $gdb_ptrace_headers
11077 extern $gdb_cv_func_ptrace_ret
11078 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11084 if ac_fn_c_try_compile
"$LINENO"; then :
11085 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11089 for gdb_arg5
in 'int *' 'int' 'long'; do
11090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11092 $gdb_ptrace_headers
11097 extern $gdb_cv_func_ptrace_ret
11098 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11104 if ac_fn_c_try_compile
"$LINENO"; then :
11106 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11115 # Provide a safe default value.
11116 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11122 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11123 ac_save_IFS
=$IFS; IFS
=','
11124 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11128 cat >>confdefs.h
<<_ACEOF
11129 #define PTRACE_TYPE_ARG3 $3
11132 if test -n "$5"; then
11134 cat >>confdefs.h
<<_ACEOF
11135 #define PTRACE_TYPE_ARG5 $5
11140 if test "$cross_compiling" = no
; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11142 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11143 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11144 $as_echo_n "(cached) " >&6
11146 if test "$cross_compiling" = yes; then :
11147 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
11149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11151 $ac_includes_default
11155 /* If this system has a BSD-style setpgrp which takes arguments,
11156 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11157 exit successfully. */
11158 return setpgrp (1,1) != -1;
11163 if ac_fn_c_try_run
"$LINENO"; then :
11164 ac_cv_func_setpgrp_void
=no
11166 ac_cv_func_setpgrp_void
=yes
11168 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11169 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11174 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11175 if test $ac_cv_func_setpgrp_void = yes; then
11177 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11183 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11184 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
11187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11190 #include <unistd.h>
11196 if (setpgrp(1,1) == -1)
11205 if ac_fn_c_try_compile
"$LINENO"; then :
11206 ac_cv_func_setpgrp_void
=no
11208 ac_cv_func_setpgrp_void
=yes
11210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11213 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11214 if test $ac_cv_func_setpgrp_void = yes; then
11215 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11220 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
11221 # since sigsetjmp might only be defined as a macro.
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11223 $as_echo_n "checking for sigsetjmp... " >&6; }
11224 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11225 $as_echo_n "(cached) " >&6
11227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11230 #include <setjmp.h>
11235 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11240 if ac_fn_c_try_compile
"$LINENO"; then :
11241 gdb_cv_func_sigsetjmp
=yes
11243 gdb_cv_func_sigsetjmp
=no
11245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11248 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11249 if test $gdb_cv_func_sigsetjmp = yes; then
11251 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11255 # Assume we'll default to using the included libiberty regex.
11256 gdb_use_included_regex
=yes
11258 # However, if the system regex is GNU regex, then default to *not*
11259 # using the included regex.
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11261 $as_echo_n "checking for GNU regex... " >&6; }
11262 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11263 $as_echo_n "(cached) " >&6
11265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h. */
11267 #include <gnu-versions.h>
11271 #define REGEX_INTERFACE_VERSION 1
11272 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11273 # error "Version mismatch"
11279 if ac_fn_c_try_compile
"$LINENO"; then :
11280 gdb_cv_have_gnu_regex
=yes
11282 gdb_cv_have_gnu_regex
=no
11284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11287 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11288 if test $gdb_cv_have_gnu_regex = yes; then
11289 gdb_use_included_regex
=no
11293 # Check whether --with-included-regex was given.
11294 if test "${with_included_regex+set}" = set; then :
11295 withval
=$with_included_regex; gdb_with_regex
=$withval
11297 gdb_with_regex
=$gdb_use_included_regex
11300 if test "$gdb_with_regex" = yes; then
11302 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11306 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11307 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11308 #include <sys/proc.h>
11311 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
11313 cat >>confdefs.h
<<_ACEOF
11314 #define HAVE_STRUCT_THREAD_TD_PCB 1
11321 # See if <sys/lwp.h> defines `struct lwp`.
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11323 $as_echo_n "checking for struct lwp... " >&6; }
11324 if test "${gdb_cv_struct_lwp+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
11327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11329 #include <sys/param.h>
11330 #include <sys/lwp.h>
11339 if ac_fn_c_try_compile
"$LINENO"; then :
11340 gdb_cv_struct_lwp
=yes
11342 gdb_cv_struct_lwp
=no
11344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11347 $as_echo "$gdb_cv_struct_lwp" >&6; }
11348 if test $gdb_cv_struct_lwp = yes; then
11350 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11354 # See if <machine/reg.h> degines `struct reg'.
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11356 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11357 if test "${gdb_cv_struct_reg+set}" = set; then :
11358 $as_echo_n "(cached) " >&6
11360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11362 #include <sys/types.h>
11363 #include <machine/reg.h>
11372 if ac_fn_c_try_compile
"$LINENO"; then :
11373 gdb_cv_struct_reg
=yes
11375 gdb_cv_struct_reg
=no
11377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11380 $as_echo "$gdb_cv_struct_reg" >&6; }
11381 if test $gdb_cv_struct_reg = yes; then
11383 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11387 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11388 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11389 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11391 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
11393 cat >>confdefs.h
<<_ACEOF
11394 #define HAVE_STRUCT_REG_R_FS 1
11399 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11401 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
11403 cat >>confdefs.h
<<_ACEOF
11404 #define HAVE_STRUCT_REG_R_GS 1
11411 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11413 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11414 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
11417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11419 #include <sys/ptrace.h>
11428 if ac_fn_c_try_compile
"$LINENO"; then :
11429 gdb_cv_have_ptrace_getregs
=yes
11431 gdb_cv_have_ptrace_getregs
=no
11433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11437 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11438 if test $gdb_cv_have_ptrace_getregs = yes; then
11440 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11444 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11446 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11447 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11448 $as_echo_n "(cached) " >&6
11450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11451 /* end confdefs.h. */
11452 #include <sys/ptrace.h>
11461 if ac_fn_c_try_compile
"$LINENO"; then :
11462 gdb_cv_have_ptrace_getfpxregs
=yes
11464 gdb_cv_have_ptrace_getfpxregs
=no
11466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11470 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11471 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11473 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11477 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11479 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11480 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11481 $as_echo_n "(cached) " >&6
11483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h. */
11485 #include <sys/types.h>
11486 #include <sys/ptrace.h>
11495 if ac_fn_c_try_compile
"$LINENO"; then :
11496 gdb_cv_have_pt_getdbregs
=yes
11498 gdb_cv_have_pt_getdbregs
=no
11500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11504 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11505 if test $gdb_cv_have_pt_getdbregs = yes; then
11507 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11511 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11513 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11514 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519 #include <sys/types.h>
11520 #include <sys/ptrace.h>
11529 if ac_fn_c_try_compile
"$LINENO"; then :
11530 gdb_cv_have_pt_getxmmregs
=yes
11532 gdb_cv_have_pt_getxmmregs
=no
11534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11538 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11539 if test $gdb_cv_have_pt_getxmmregs = yes; then
11541 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11545 # Detect which type of /proc is in use, such as for Unixware or Solaris.
11547 if test "${target}" = "${host}"; then
11549 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
11551 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11554 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
11556 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11560 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
11562 $as_echo "#define _KMEMUSER 1" >>confdefs.h
11568 if test "$ac_cv_header_sys_procfs_h" = yes; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
11570 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
11571 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
11572 $as_echo_n "(cached) " >&6
11574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11578 #include <sys/procfs.h>
11587 if ac_fn_c_try_compile
"$LINENO"; then :
11588 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
11590 bfd_cv_have_sys_procfs_type_pstatus_t
=no
11593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11596 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
11598 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
11602 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
11605 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
11606 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
11607 $as_echo_n "(cached) " >&6
11609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h. */
11613 #include <sys/procfs.h>
11622 if ac_fn_c_try_compile
"$LINENO"; then :
11623 bfd_cv_have_sys_procfs_type_prrun_t
=yes
11625 bfd_cv_have_sys_procfs_type_prrun_t
=no
11628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11631 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
11633 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
11637 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11640 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11641 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11642 $as_echo_n "(cached) " >&6
11644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11648 #include <sys/procfs.h>
11657 if ac_fn_c_try_compile
"$LINENO"; then :
11658 bfd_cv_have_sys_procfs_type_gregset_t
=yes
11660 bfd_cv_have_sys_procfs_type_gregset_t
=no
11663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11666 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
11668 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
11672 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
11675 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
11676 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
11677 $as_echo_n "(cached) " >&6
11679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h. */
11683 #include <sys/procfs.h>
11692 if ac_fn_c_try_compile
"$LINENO"; then :
11693 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
11695 bfd_cv_have_sys_procfs_type_fpregset_t
=no
11698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11701 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
11703 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11707 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11710 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11711 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11712 $as_echo_n "(cached) " >&6
11714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11718 #include <sys/procfs.h>
11727 if ac_fn_c_try_compile
"$LINENO"; then :
11728 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
11730 bfd_cv_have_sys_procfs_type_prgregset_t
=no
11733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11736 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11738 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11742 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11745 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11746 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11753 #include <sys/procfs.h>
11762 if ac_fn_c_try_compile
"$LINENO"; then :
11763 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
11765 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
11768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11771 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11773 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11777 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11780 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11781 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11782 $as_echo_n "(cached) " >&6
11784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11788 #include <sys/procfs.h>
11797 if ac_fn_c_try_compile
"$LINENO"; then :
11798 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
11800 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
11803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11806 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11808 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11812 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
11815 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
11816 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11823 #include <sys/procfs.h>
11827 prfpregset32_t avar
11832 if ac_fn_c_try_compile
"$LINENO"; then :
11833 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
11835 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
11838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11841 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
11843 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
11847 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11850 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11851 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11852 $as_echo_n "(cached) " >&6
11854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11858 #include <sys/procfs.h>
11867 if ac_fn_c_try_compile
"$LINENO"; then :
11868 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
11870 bfd_cv_have_sys_procfs_type_lwpid_t
=no
11873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11876 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11878 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11882 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11885 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11886 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
11889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11893 #include <sys/procfs.h>
11902 if ac_fn_c_try_compile
"$LINENO"; then :
11903 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
11905 bfd_cv_have_sys_procfs_type_psaddr_t
=no
11908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11911 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11913 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11917 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11920 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11921 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11922 $as_echo_n "(cached) " >&6
11924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11928 #include <sys/procfs.h>
11937 if ac_fn_c_try_compile
"$LINENO"; then :
11938 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
11940 bfd_cv_have_sys_procfs_type_prsysent_t
=no
11943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11946 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11948 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11952 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11955 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11956 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11957 $as_echo_n "(cached) " >&6
11959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11963 #include <sys/procfs.h>
11972 if ac_fn_c_try_compile
"$LINENO"; then :
11973 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
11975 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
11978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11981 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11983 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11987 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11990 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11991 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11992 $as_echo_n "(cached) " >&6
11994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11998 #include <sys/procfs.h>
12002 pr_sigaction64_t avar
12007 if ac_fn_c_try_compile
"$LINENO"; then :
12008 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
12010 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
12013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12016 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12018 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12022 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12025 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12026 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12027 $as_echo_n "(cached) " >&6
12029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12033 #include <sys/procfs.h>
12037 pr_siginfo64_t avar
12042 if ac_fn_c_try_compile
"$LINENO"; then :
12043 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
12045 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
12048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12051 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12053 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12057 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12063 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12065 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12066 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12069 if test "$cross_compiling" = yes; then :
12070 gdb_cv_prfpregset_t_broken
=yes
12072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 #include <sys/procfs.h>
12077 if (sizeof (prfpregset_t) == sizeof (void *))
12082 if ac_fn_c_try_run
"$LINENO"; then :
12083 gdb_cv_prfpregset_t_broken
=no
12085 gdb_cv_prfpregset_t_broken
=yes
12087 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12088 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12094 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12095 if test $gdb_cv_prfpregset_t_broken = yes; then
12097 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
12104 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
12105 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
12106 $as_echo_n "(cached) " >&6
12108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110 #include <unistd.h>
12111 #include <sys/types.h>
12112 #include <sys/procfs.h>
12119 dummy = ioctl(0, PIOCSET, &dummy);
12125 if ac_fn_c_try_compile
"$LINENO"; then :
12126 gdb_cv_have_procfs_piocset
=yes
12128 gdb_cv_have_procfs_piocset
=no
12130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
12134 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
12135 if test $gdb_cv_have_procfs_piocset = yes; then
12137 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
12142 if test ${host} = ${target} ; then
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
12145 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
12146 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
12147 $as_echo_n "(cached) " >&6
12149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12155 struct link_map lm; (void) lm.l_addr;
12160 if ac_fn_c_try_compile
"$LINENO"; then :
12161 gdb_cv_have_struct_link_map_with_l_members
=yes
12163 gdb_cv_have_struct_link_map_with_l_members
=no
12165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
12169 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
12170 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
12172 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
12178 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
12179 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
12180 $as_echo_n "(cached) " >&6
12182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12184 #include <sys/types.h>
12189 struct link_map lm; (void) lm.lm_addr;
12194 if ac_fn_c_try_compile
"$LINENO"; then :
12195 gdb_cv_have_struct_link_map_with_lm_members
=yes
12197 gdb_cv_have_struct_link_map_with_lm_members
=no
12199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
12203 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
12204 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
12206 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
12212 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
12213 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
12214 $as_echo_n "(cached) " >&6
12216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12218 #include <sys/types.h>
12219 #ifdef HAVE_NLIST_H
12226 struct so_map lm; (void) lm.som_addr;
12231 if ac_fn_c_try_compile
"$LINENO"; then :
12232 gdb_cv_have_struct_so_map_with_som_members
=yes
12234 gdb_cv_have_struct_so_map_with_som_members
=no
12236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
12240 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
12241 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
12243 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
12249 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
12250 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
12251 $as_echo_n "(cached) " >&6
12253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12256 #include <sys/link.h>
12260 struct link_map32 l;
12265 if ac_fn_c_try_compile
"$LINENO"; then :
12266 gdb_cv_have_struct_link_map32
=yes
12268 gdb_cv_have_struct_link_map32
=no
12270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
12274 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
12275 if test $gdb_cv_have_struct_link_map32 = yes; then
12277 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
12280 $as_echo "#define _SYSCALL32 1" >>confdefs.h
12285 # Check if the compiler supports the `long long' type.
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12288 $as_echo_n "checking for long long support in compiler... " >&6; }
12289 if test "${gdb_cv_c_long_long+set}" = set; then :
12290 $as_echo_n "(cached) " >&6
12292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12294 extern long long foo;
12298 switch (foo & 2) { case 0: return 1; }
12303 if ac_fn_c_try_compile
"$LINENO"; then :
12304 gdb_cv_c_long_long
=yes
12306 gdb_cv_c_long_long
=no
12308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12311 $as_echo "$gdb_cv_c_long_long" >&6; }
12312 if test $gdb_cv_c_long_long = yes; then
12314 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12318 # Check if the compiler and runtime support printing long longs.
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12321 $as_echo_n "checking for long long support in printf... " >&6; }
12322 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12325 if test "$cross_compiling" = yes; then :
12326 gdb_cv_printf_has_long_long
=no
12328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12330 $ac_includes_default
12336 l = (l << 16) + 0x0123;
12337 l = (l << 16) + 0x4567;
12338 l = (l << 16) + 0x89ab;
12339 l = (l << 16) + 0xcdef;
12340 sprintf (buf, "0x%016llx", l);
12341 return (strcmp ("0x0123456789abcdef", buf));
12346 if ac_fn_c_try_run
"$LINENO"; then :
12347 gdb_cv_printf_has_long_long
=yes
12349 gdb_cv_printf_has_long_long
=no
12351 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12352 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12357 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12358 if test $gdb_cv_printf_has_long_long = yes; then
12360 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12364 # Check if the compiler and runtime support printing decfloats.
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12367 $as_echo_n "checking for decfloat support in printf... " >&6; }
12368 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12369 $as_echo_n "(cached) " >&6
12371 if test "$cross_compiling" = yes; then :
12372 gdb_cv_printf_has_decfloat
=no
12374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12376 $ac_includes_default
12381 _Decimal32 d32 = 1.2345df;
12382 _Decimal64 d64 = 1.2345dd;
12383 _Decimal128 d128 = 1.2345dl;
12384 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12385 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12390 if ac_fn_c_try_run
"$LINENO"; then :
12391 gdb_cv_printf_has_decfloat
=yes
12393 gdb_cv_printf_has_decfloat
=no
12395 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12396 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12401 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12402 if test $gdb_cv_printf_has_decfloat = yes; then
12404 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12408 # Check if the compiler supports the `long double' type. We can't use
12409 # AC_C_LONG_DOUBLE because that one does additional checks on the
12410 # constants defined in <float.h> that fail on some systems,
12411 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12414 $as_echo_n "checking for long double support in compiler... " >&6; }
12415 if test "${gdb_cv_c_long_double+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12419 /* end confdefs.h. */
12422 if ac_fn_c_try_compile
"$LINENO"; then :
12423 gdb_cv_c_long_double
=yes
12425 gdb_cv_c_long_double
=no
12427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12430 $as_echo "$gdb_cv_c_long_double" >&6; }
12431 if test $gdb_cv_c_long_double = yes; then
12433 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12437 # Check if the compiler and runtime support printing long doubles.
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12440 $as_echo_n "checking for long double support in printf... " >&6; }
12441 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12442 $as_echo_n "(cached) " >&6
12444 if test "$cross_compiling" = yes; then :
12445 gdb_cv_printf_has_long_double
=no
12447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12449 $ac_includes_default
12454 long double f = 3.141592653;
12455 sprintf (buf, "%Lg", f);
12456 return (strncmp ("3.14159", buf, 7));
12461 if ac_fn_c_try_run
"$LINENO"; then :
12462 gdb_cv_printf_has_long_double
=yes
12464 gdb_cv_printf_has_long_double
=no
12466 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12467 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12472 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12473 if test $gdb_cv_printf_has_long_double = yes; then
12475 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12479 # Check if the compiler and runtime support scanning long doubles.
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12482 $as_echo_n "checking for long double support in scanf... " >&6; }
12483 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
12486 if test "$cross_compiling" = yes; then :
12487 gdb_cv_scanf_has_long_double
=no
12489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h. */
12495 char *buf = "3.141592653";
12497 sscanf (buf, "%Lg", &f);
12498 return !(f > 3.14159 && f < 3.14160);
12503 if ac_fn_c_try_run
"$LINENO"; then :
12504 gdb_cv_scanf_has_long_double
=yes
12506 gdb_cv_scanf_has_long_double
=no
12508 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12509 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12514 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12515 if test $gdb_cv_scanf_has_long_double = yes; then
12517 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12524 $as_echo_n "checking for -bbigtoc option... " >&6; }
12525 if test "${gdb_cv_bigtoc+set}" = set; then :
12526 $as_echo_n "(cached) " >&6
12529 SAVE_LDFLAGS
=$LDFLAGS
12532 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
12533 *) gdb_cv_bigtoc
=-bbigtoc ;;
12536 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
12537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12548 if ac_fn_c_try_link
"$LINENO"; then :
12553 rm -f core conftest.err conftest.
$ac_objext \
12554 conftest
$ac_exeext conftest.
$ac_ext
12555 LDFLAGS
="${SAVE_LDFLAGS}"
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12559 $as_echo "$gdb_cv_bigtoc" >&6; }
12560 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12566 if test ${build} = ${host} -a ${host} = ${target} ; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
12570 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
12571 if test -f /usr
/include
/dce
/cma_config.h
; then
12572 if test "$GCC" = "yes" ; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12574 $as_echo "yes" >&6; }
12576 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
12578 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
12579 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
12582 $as_echo "no (suppressed because you are not using GCC)" >&6; }
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586 $as_echo "no" >&6; }
12590 # See if thread_db library is around for Solaris thread debugging.
12591 # Note that we must explicitly test for version 1 of the library
12592 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12595 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12596 if test -f /usr
/lib
/libthread_db.so
.1 ; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12598 $as_echo "yes" >&6; }
12600 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12602 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
12603 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12605 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12606 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
12609 ac_check_lib_save_LIBS
=$LIBS
12611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12614 /* Override any GCC internal prototype to avoid an error.
12615 Use char because int might match the return type of a GCC
12616 builtin and then its argument prototype would still apply. */
12629 if ac_fn_c_try_link
"$LINENO"; then :
12630 ac_cv_lib_dl_dlopen
=yes
12632 ac_cv_lib_dl_dlopen
=no
12634 rm -f core conftest.err conftest.
$ac_objext \
12635 conftest
$ac_exeext conftest.
$ac_ext
12636 LIBS
=$ac_check_lib_save_LIBS
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12639 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12640 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
12641 cat >>confdefs.h
<<_ACEOF
12642 #define HAVE_LIBDL 1
12649 if test "$GCC" = "yes" ; then
12650 # The GNU linker requires the -export-dynamic option to make
12651 # all symbols visible in the dynamic symbol table.
12652 hold_ldflags
=$LDFLAGS
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
12654 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
12655 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
12656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12667 if ac_fn_c_try_link
"$LINENO"; then :
12672 rm -f core conftest.err conftest.
$ac_objext \
12673 conftest
$ac_exeext conftest.
$ac_ext
12674 LDFLAGS
=$hold_ldflags
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12676 $as_echo "$found" >&6; }
12677 if test $found = yes; then
12678 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
12681 # Sun randomly tweaked the prototypes in <proc_service.h>
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12684 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12685 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12686 $as_echo_n "(cached) " >&6
12689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12692 #include <proc_service.h>
12693 ps_err_e ps_pdwrite
12694 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12704 if ac_fn_c_try_compile
"$LINENO"; then :
12705 gdb_cv_proc_service_is_old
=no
12707 gdb_cv_proc_service_is_old
=yes
12709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12714 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12715 if test $gdb_cv_proc_service_is_old = yes; then
12717 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12727 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12728 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
12731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12733 #include <sys/pthdebug.h>
12737 #ifndef PTHDB_VERSION_3
12744 if ac_fn_c_try_compile
"$LINENO"; then :
12745 gdb_cv_have_aix_thread_debug
=yes
12747 gdb_cv_have_aix_thread_debug
=no
12749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12753 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12754 if test $gdb_cv_have_aix_thread_debug = yes; then
12755 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
12756 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
12757 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
12764 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12766 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12767 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12768 $as_echo_n "(cached) " >&6
12770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12772 #include <thread_db.h>
12776 int i = TD_NOTALLOC;
12781 if ac_fn_c_try_compile
"$LINENO"; then :
12782 gdb_cv_thread_db_h_has_td_notalloc
=yes
12784 gdb_cv_thread_db_h_has_td_notalloc
=no
12787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12791 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12793 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12794 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12795 $as_echo_n "(cached) " >&6
12797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12799 #include <thread_db.h>
12803 int i = TD_VERSION;
12808 if ac_fn_c_try_compile
"$LINENO"; then :
12809 gdb_cv_thread_db_h_has_td_version
=yes
12811 gdb_cv_thread_db_h_has_td_version
=no
12814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12818 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12820 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12821 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12822 $as_echo_n "(cached) " >&6
12824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h. */
12826 #include <thread_db.h>
12835 if ac_fn_c_try_compile
"$LINENO"; then :
12836 gdb_cv_thread_db_h_has_td_notls
=yes
12838 gdb_cv_thread_db_h_has_td_notls
=no
12841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12845 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12847 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12849 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12852 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12854 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12857 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12859 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12863 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12865 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12866 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871 #include <sys/syscall.h>
12875 int i = __NR_tkill;
12880 if ac_fn_c_try_compile
"$LINENO"; then :
12881 gdb_cv_sys_syscall_h_has_tkill
=yes
12883 gdb_cv_sys_syscall_h_has_tkill
=no
12886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12890 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12892 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12894 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12898 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12900 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
12906 cat >>confdefs.h
<<_ACEOF
12907 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12911 if test "$cross_compiling" = yes; then :
12912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12914 #include <sys/personality.h>
12919 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12920 # define ADDR_NO_RANDOMIZE 0x0040000
12922 /* Test the flag could be set and stays set. */
12923 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12924 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12930 if ac_fn_c_try_link
"$LINENO"; then :
12931 have_personality
=true
12933 have_personality
=false
12935 rm -f core conftest.err conftest.
$ac_objext \
12936 conftest
$ac_exeext conftest.
$ac_ext
12938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12940 #include <sys/personality.h>
12945 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12946 # define ADDR_NO_RANDOMIZE 0x0040000
12948 /* Test the flag could be set and stays set. */
12949 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12950 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12956 if ac_fn_c_try_run
"$LINENO"; then :
12957 have_personality
=true
12959 have_personality
=false
12961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12965 if $have_personality
12968 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12973 target_sysroot_reloc
=0
12975 # Check whether --with-sysroot was given.
12976 if test "${with_sysroot+set}" = set; then :
12977 withval
=$with_sysroot;
12978 case ${with_sysroot} in
12979 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
12980 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
12983 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
12985 if test "x$prefix" = xNONE
; then
12986 test_prefix
=/usr
/local
12988 test_prefix
=$prefix
12990 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12991 test_exec_prefix
=$test_prefix
12993 test_exec_prefix
=$exec_prefix
12995 case ${TARGET_SYSTEM_ROOT} in
12996 "${test_prefix}"|
"${test_prefix}/"*|\
12997 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
12998 '${prefix}'|
'${prefix}/'*|\
12999 '${exec_prefix}'|
'${exec_prefix}/'*)
13000 target_sysroot_reloc
=1
13006 TARGET_SYSTEM_ROOT
=
13007 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
13011 TARGET_SYSTEM_ROOT_DEFINE
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
13017 # Check whether --with-system-gdbinit was given.
13018 if test "${with_system_gdbinit+set}" = set; then :
13019 withval
=$with_system_gdbinit;
13020 SYSTEM_GDBINIT
=$withval
13026 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
13027 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13028 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
13029 ac_define_dir
=`eval echo $ac_define_dir`
13031 cat >>confdefs.h
<<_ACEOF
13032 #define SYSTEM_GDBINIT "$ac_define_dir"
13037 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13038 if test "x$prefix" = xNONE
; then
13039 test_prefix
=/usr
/local
13041 test_prefix
=$prefix
13044 test_prefix
=$exec_prefix
13047 case ${ac_define_dir} in
13048 "${test_prefix}"|
"${test_prefix}/"*|\
13049 '${exec_prefix}'|
'${exec_prefix}/'*)
13054 cat >>confdefs.h
<<_ACEOF
13055 #define SYSTEM_GDBINIT_RELOCATABLE $value
13060 # Check whether --enable-werror was given.
13061 if test "${enable_werror+set}" = set; then :
13062 enableval
=$enable_werror; case "${enableval}" in
13063 yes | y
) ERROR_ON_WARNING
="yes" ;;
13064 no | n
) ERROR_ON_WARNING
="no" ;;
13065 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13070 # Enable -Werror by default when using gcc
13071 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13072 ERROR_ON_WARNING
=yes
13076 if test "${ERROR_ON_WARNING}" = yes ; then
13077 WERROR_CFLAGS
="-Werror"
13080 # The entries after -Wno-pointer-sign are disabled warnings which may
13081 # be enabled in the future, which can not currently be used to build
13083 # NOTE: If you change this list, remember to update
13084 # gdb/doc/gdbint.texinfo.
13085 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13086 -Wformat-nonliteral -Wno-pointer-sign \
13087 -Wno-unused -Wno-switch -Wno-char-subscripts"
13089 # Enable -Wno-format by default when using gcc on mingw since many
13090 # GCC versions complain about %I64.
13092 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
13095 # Check whether --enable-build-warnings was given.
13096 if test "${enable_build_warnings+set}" = set; then :
13097 enableval
=$enable_build_warnings; case "${enableval}" in
13099 no
) build_warnings
="-w";;
13100 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13101 build_warnings
="${build_warnings} ${t}";;
13102 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13103 build_warnings
="${t} ${build_warnings}";;
13104 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13106 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13107 echo "Setting compiler warning flags = $build_warnings" 6>&1
13110 # Check whether --enable-gdb-build-warnings was given.
13111 if test "${enable_gdb_build_warnings+set}" = set; then :
13112 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
13114 no
) build_warnings
="-w";;
13115 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13116 build_warnings
="${build_warnings} ${t}";;
13117 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13118 build_warnings
="${t} ${build_warnings}";;
13119 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13121 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13122 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13126 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13129 $as_echo_n "checking compiler warning flags... " >&6; }
13130 # Separate out the -Werror flag as some files just cannot be
13131 # compiled with it enabled.
13132 for w
in ${build_warnings}; do
13134 -Werr*) WERROR_CFLAGS
=-Werror ;;
13135 *) # Check that GCC accepts it
13136 saved_CFLAGS
="$CFLAGS"
13137 CFLAGS
="$CFLAGS $w"
13138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h. */
13149 if ac_fn_c_try_compile
"$LINENO"; then :
13150 WARN_CFLAGS
="${WARN_CFLAGS} $w"
13152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13153 CFLAGS
="$saved_CFLAGS"
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13157 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13162 # In the Cygwin environment, we need some additional flags.
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
13164 $as_echo_n "checking
for cygwin...
" >&6; }
13165 if test "${gdb_cv_os_cygwin+set}" = set; then :
13166 $as_echo_n "(cached
) " >&6
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13171 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13175 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13176 $EGREP "lose
" >/dev/null 2>&1; then :
13177 gdb_cv_os_cygwin=yes
13179 gdb_cv_os_cygwin=no
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
13185 $as_echo "$gdb_cv_os_cygwin" >&6; }
13188 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
13190 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13191 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13192 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
13196 # libreadline needs libuser32.a in a cygwin environment
13198 if test x$gdb_cv_os_cygwin = xyes; then
13199 WIN32LIBS="-luser32"
13200 case "${target}" in
13201 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13206 # The ser-tcp.c module requires sockets.
13210 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13212 WIN32LIBS
="$WIN32LIBS -lws2_32"
13217 # Add ELF support to GDB, but only if BFD includes ELF support.
13219 OLD_LDFLAGS
=$LDFLAGS
13221 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
13222 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
13223 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13224 LIBS
="-lbfd -liberty $intl $LIBS"
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13226 $as_echo_n "checking for ELF support in BFD... " >&6; }
13227 if test "${gdb_cv_var_elf+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h. */
13232 #include <stdlib.h>
13234 #include "elf-bfd.h"
13239 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
13244 if ac_fn_c_try_link
"$LINENO"; then :
13249 rm -f core conftest.err conftest.
$ac_objext \
13250 conftest
$ac_exeext conftest.
$ac_ext
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13253 $as_echo "$gdb_cv_var_elf" >&6; }
13254 if test $gdb_cv_var_elf = yes; then
13255 CONFIG_OBS
="$CONFIG_OBS elfread.o"
13257 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13261 LDFLAGS
=$OLD_LDFLAGS
13264 # Add any host-specific objects to GDB.
13265 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
13267 LIBGUI
="../libgui/src/libgui.a"
13268 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
13277 *-*-cygwin* |
*-*-mingw* )
13286 if test "${enable_gdbtk}" = "yes"; then
13288 # Gdbtk must have an absolute path to srcdir in order to run
13289 # properly when not installed.
13292 GDBTK_SRC_DIR
=`pwd`
13297 # Ok, lets find the tcl configuration
13298 # First, look for one uninstalled.
13299 # the alternative search directory is invoked by --with-tcl
13302 if test x
"${no_tcl}" = x
; then
13303 # we reset no_tcl in case something fails here
13306 # Check whether --with-tcl was given.
13307 if test "${with_tcl+set}" = set; then :
13308 withval
=$with_tcl; with_tclconfig
=${withval}
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13312 $as_echo_n "checking for Tcl configuration... " >&6; }
13313 if test "${ac_cv_c_tclconfig+set}" = set; then :
13314 $as_echo_n "(cached) " >&6
13318 # First check to see if --with-tcl was specified.
13320 *-*-cygwin*) platDir
="win" ;;
13321 *) platDir
="unix" ;;
13323 if test x
"${with_tclconfig}" != x
; then
13324 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13325 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
13327 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13331 # then check for a private Tcl installation
13332 if test x
"${ac_cv_c_tclconfig}" = x
; then
13335 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13336 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13337 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13339 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13340 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13341 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13343 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13344 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13345 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
13346 if test -f "$i/$platDir/tclConfig.sh" ; then
13347 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
13353 # on Darwin, check in Framework installation locations
13354 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
13355 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
13356 `ls -d /Library/Frameworks 2>/dev/null` \
13357 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13358 `ls -d /System/Library/Frameworks 2>/dev/null` \
13360 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13361 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
13367 # check in a few common install locations
13368 if test x
"${ac_cv_c_tclconfig}" = x
; then
13369 for i
in `ls -d ${libdir} 2>/dev/null` \
13370 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13371 `ls -d ${prefix}/lib 2>/dev/null` \
13372 `ls -d /usr/local/lib 2>/dev/null` \
13373 `ls -d /usr/contrib/lib 2>/dev/null` \
13374 `ls -d /usr/lib 2>/dev/null` \
13376 if test -f "$i/tclConfig.sh" ; then
13377 ac_cv_c_tclconfig
=`(cd $i; pwd)`
13383 # check in a few other private locations
13384 if test x
"${ac_cv_c_tclconfig}" = x
; then
13387 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13388 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13389 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
13390 if test -f "$i/$platDir/tclConfig.sh" ; then
13391 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
13400 if test x
"${ac_cv_c_tclconfig}" = x
; then
13401 TCL_BIN_DIR
="# no Tcl configs found"
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13403 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13406 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
13408 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13413 # If $no_tk is nonempty, then we can't do Tk, and there is no
13414 # point to doing Tcl.
13417 # Ok, lets find the tk configuration
13418 # First, look for one uninstalled.
13419 # the alternative search directory is invoked by --with-tk
13422 if test x
"${no_tk}" = x
; then
13423 # we reset no_tk in case something fails here
13426 # Check whether --with-tk was given.
13427 if test "${with_tk+set}" = set; then :
13428 withval
=$with_tk; with_tkconfig
=${withval}
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
13432 $as_echo_n "checking for Tk configuration... " >&6; }
13433 if test "${ac_cv_c_tkconfig+set}" = set; then :
13434 $as_echo_n "(cached) " >&6
13438 # First check to see if --with-tkconfig was specified.
13439 if test x
"${with_tkconfig}" != x
; then
13440 if test -f "${with_tkconfig}/tkConfig.sh" ; then
13441 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
13443 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
13447 # then check for a private Tk library
13449 *-*-cygwin*) platDir
="win" ;;
13450 *) platDir
="unix" ;;
13452 if test x
"${ac_cv_c_tkconfig}" = x
; then
13455 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13456 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
13457 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
13459 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13460 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
13461 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
13463 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13464 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
13465 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
13466 if test -f "$i/$platDir/tkConfig.sh" ; then
13467 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
13473 # on Darwin, check in Framework installation locations
13474 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
13475 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
13476 `ls -d /Library/Frameworks 2>/dev/null` \
13477 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13478 `ls -d /System/Library/Frameworks 2>/dev/null` \
13480 if test -f "$i/Tk.framework/tkConfig.sh" ; then
13481 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
13487 # check in a few common install locations
13488 if test x
"${ac_cv_c_tkconfig}" = x
; then
13489 for i
in `ls -d ${libdir} 2>/dev/null` \
13490 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13491 `ls -d ${prefix}/lib 2>/dev/null` \
13492 `ls -d /usr/local/lib 2>/dev/null` \
13493 `ls -d /usr/contrib/lib 2>/dev/null` \
13494 `ls -d /usr/lib 2>/dev/null` \
13496 if test -f "$i/tkConfig.sh" ; then
13497 ac_cv_c_tkconfig
=`(cd $i; pwd)`
13502 # check in a few other private locations
13503 if test x
"${ac_cv_c_tkconfig}" = x
; then
13506 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13507 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
13508 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
13509 if test -f "$i/$platDir/tkConfig.sh" ; then
13510 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
13519 if test x
"${ac_cv_c_tkconfig}" = x
; then
13520 TK_BIN_DIR
="# no Tk configs found"
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
13522 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
13525 TK_BIN_DIR
=${ac_cv_c_tkconfig}
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
13527 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13532 if test -z "${no_tcl}" -a -z "${no_tk}"; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
13535 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
13537 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13539 $as_echo "loading" >&6; }
13540 .
${TCL_BIN_DIR}/tclConfig.sh
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
13543 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13546 # eval is required to do the TCL_DBGX substitution
13547 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13548 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13550 # If the TCL_BIN_DIR is the build directory (not the install directory),
13551 # then set the common variable name to the value of the build variables.
13552 # For example, the variable TCL_LIB_SPEC will be set to the value
13553 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13554 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13555 # installed and uninstalled version of Tcl.
13556 if test -f "${TCL_BIN_DIR}/Makefile" ; then
13557 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
13558 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
13559 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
13560 elif test "`uname -s`" = "Darwin"; then
13561 # If Tcl was built as a framework, attempt to use the libraries
13562 # from the framework at the given location so that linking works
13563 # against Tcl.framework installed in an arbitary location.
13564 case ${TCL_DEFS} in
13566 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
13567 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
13568 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
13569 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
13570 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
13575 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
13576 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
13577 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
13583 # eval is required to do the TCL_DBGX substitution
13584 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13585 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13586 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13587 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13603 # Check for in-tree tcl
13610 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
13614 # Find Tcl private headers
13615 if test x
"${intree}" = xno
; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
13618 $as_echo_n "checking for Tcl private headers... " >&6; }
13620 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
13621 if test -f ${dir}/tclInt.h
; then
13625 if test x
"${private_dir}" = x
; then
13626 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
13628 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13630 $as_echo "${private_dir}" >&6; }
13633 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
13634 TCL_LIBRARY
="${TCL_LIB_SPEC}"
13637 # If building tcl in the same src tree, private headers
13638 # are not needed, but we need to be sure to use the right
13640 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
13641 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
13642 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
13650 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
13652 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13654 $as_echo "loading" >&6; }
13655 .
${TK_BIN_DIR}/tkConfig.sh
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
13658 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13661 # eval is required to do the TK_DBGX substitution
13662 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
13663 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
13665 # If the TK_BIN_DIR is the build directory (not the install directory),
13666 # then set the common variable name to the value of the build variables.
13667 # For example, the variable TK_LIB_SPEC will be set to the value
13668 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
13669 # instead of TK_BUILD_LIB_SPEC since it will work with both an
13670 # installed and uninstalled version of Tcl.
13671 if test -f "${TK_BIN_DIR}/Makefile" ; then
13672 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
13673 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
13674 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
13675 elif test "`uname -s`" = "Darwin"; then
13676 # If Tk was built as a framework, attempt to use the libraries
13677 # from the framework at the given location so that linking works
13678 # against Tk.framework installed in an arbitary location.
13681 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
13682 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
13683 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
13684 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
13685 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
13690 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
13691 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
13692 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
13698 # eval is required to do the TK_DBGX substitution
13699 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
13700 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
13701 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
13702 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
13717 # Check for in-tree Tk
13719 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
13723 # Find Tk private headers
13724 if test x
"${intree}" = xno
; then
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
13727 $as_echo_n "checking for Tk private headers... " >&6; }
13729 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
13730 if test -f ${dir}/tkInt.h
; then
13734 if test x
"${private_dir}" = x
; then
13735 as_fn_error
"could not find Tk private headers" "$LINENO" 5
13737 TK_PRIVATE_INCLUDE
="-I${private_dir}"
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13739 $as_echo "${private_dir}" >&6; }
13742 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
13743 TK_LIBRARY
=${TK_LIB_SPEC}
13746 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
13747 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
13748 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
13755 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
13757 # Include some libraries that Tcl and Tk want.
13758 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
13759 # Yes, the ordering seems wrong here. But it isn't.
13760 # TK_LIBS is the list of libraries that need to be linked
13761 # after Tcl/Tk. Note that this isn't put into LIBS. If it
13762 # were in LIBS then any link tests after this point would
13763 # try to include things like `$(LIBGUI)', which wouldn't work.
13764 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
13766 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
13767 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
13768 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
13769 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
13770 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
13771 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
13772 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
13774 if test x
$gdb_cv_os_cygwin = xyes
; then
13775 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
13776 WIN32LDAPP
="-Wl,--subsystem,console"
13777 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
13780 subdirs
="$subdirs gdbtk"
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13793 $as_echo_n "checking for X... " >&6; }
13796 # Check whether --with-x was given.
13797 if test "${with_x+set}" = set; then :
13801 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13802 if test "x$with_x" = xno
; then
13803 # The user explicitly disabled X.
13806 case $x_includes,$x_libraries in #(
13807 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
13808 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
13809 $as_echo_n "(cached) " >&6
13811 # One or both of the vars are not set, and there is no cached value.
13812 ac_x_includes
=no ac_x_libraries
=no
13813 rm -f -r conftest.dir
13814 if mkdir conftest.dir
; then
13816 cat >Imakefile
<<'_ACEOF'
13818 @echo incroot='${INCROOT}'
13820 @echo usrlibdir='${USRLIBDIR}'
13822 @echo libdir='${LIBDIR}'
13824 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
13825 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13826 for ac_var
in incroot usrlibdir libdir
; do
13827 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13829 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13830 for ac_extension
in a so sl dylib la dll
; do
13831 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13832 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13833 ac_im_usrlibdir
=$ac_im_libdir; break
13836 # Screen out bogus values from the imake configuration. They are
13837 # bogus both because they are the default anyway, and because
13838 # using them would break gcc on systems where it needs fixed includes.
13839 case $ac_im_incroot in
13840 /usr
/include
) ac_x_includes
= ;;
13841 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
13843 case $ac_im_usrlibdir in
13844 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
13845 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
13849 rm -f -r conftest.dir
13852 # Standard set of common directories for X headers.
13853 # Check X11 before X11Rn because it is often a symlink to the current release.
13867 /usr/local/X11/include
13868 /usr/local/X11R7/include
13869 /usr/local/X11R6/include
13870 /usr/local/X11R5/include
13871 /usr/local/X11R4/include
13873 /usr/local/include/X11
13874 /usr/local/include/X11R7
13875 /usr/local/include/X11R6
13876 /usr/local/include/X11R5
13877 /usr/local/include/X11R4
13881 /usr/XFree86/include/X11
13885 /usr/unsupported/include
13886 /usr/athena/include
13887 /usr/local/x11r5/include
13888 /usr/lpp/Xamples/include
13890 /usr/openwin/include
13891 /usr/openwin/share/include'
13893 if test "$ac_x_includes" = no
; then
13894 # Guess where to find include files, by looking for Xlib.h.
13895 # First, try using that file with no special directory specified.
13896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13897 /* end confdefs.h. */
13898 #include <X11/Xlib.h>
13900 if ac_fn_c_try_cpp
"$LINENO"; then :
13901 # We can compile using X headers with no special include directory.
13904 for ac_dir
in $ac_x_header_dirs; do
13905 if test -r "$ac_dir/X11/Xlib.h"; then
13906 ac_x_includes
=$ac_dir
13911 rm -f conftest.err conftest.
$ac_ext
13912 fi # $ac_x_includes = no
13914 if test "$ac_x_libraries" = no
; then
13915 # Check for the libraries.
13916 # See if we find them without any special options.
13917 # Don't add to $LIBS permanently.
13920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13922 #include <X11/Xlib.h>
13931 if ac_fn_c_try_link
"$LINENO"; then :
13933 # We can link X programs with no special library path.
13937 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13939 # Don't even attempt the hair of trying to link an X program!
13940 for ac_extension
in a so sl dylib la dll
; do
13941 if test -r "$ac_dir/libX11.$ac_extension"; then
13942 ac_x_libraries
=$ac_dir
13948 rm -f core conftest.err conftest.
$ac_objext \
13949 conftest
$ac_exeext conftest.
$ac_ext
13950 fi # $ac_x_libraries = no
13952 case $ac_x_includes,$ac_x_libraries in #(
13953 no
,* |
*,no |
*\'*)
13954 # Didn't find X, or a directory has "'" in its name.
13955 ac_cv_have_x
="have_x=no";; #(
13957 # Record where we found X for the cache.
13958 ac_cv_have_x
="have_x=yes\
13959 ac_x_includes='$ac_x_includes'\
13960 ac_x_libraries='$ac_x_libraries'"
13966 eval "$ac_cv_have_x"
13969 if test "$have_x" != yes; then
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13971 $as_echo "$have_x" >&6; }
13974 # If each of the values was on the command line, it overrides each guess.
13975 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
13976 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
13977 # Update the cache value to reflect the command line values.
13978 ac_cv_have_x
="have_x=yes\
13979 ac_x_includes='$x_includes'\
13980 ac_x_libraries='$x_libraries'"
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13982 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13986 # Unlike the sim directory, whether a simulator is linked is controlled by
13987 # presence of a gdb_sim definition in the target configure.tgt entry.
13988 # This code just checks for a few cases where we'd like to ignore those
13989 # definitions, even when they're present in the '.mt' file. These cases
13990 # are when --disable-sim is specified, or if the simulator directory is
13991 # not part of the source tree.
13993 # Check whether --enable-sim was given.
13994 if test "${enable_sim+set}" = set; then :
13995 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
13996 echo "enableval = ${enableval}";
13997 case "${enableval}" in
13998 yes) ignore_sim
=false
;;
13999 no
) ignore_sim
=true
;;
14000 *) ignore_sim
=false
;;
14007 if test ! -d "${srcdir}/../sim"; then
14013 if test "${ignore_sim}" = "false"; then
14014 if test x
"${gdb_sim}" != x
; then
14016 SIM_OBS
="remote-sim.o"
14018 $as_echo "#define WITH_SIM 1" >>confdefs.h
14036 # List of host floatformats.
14038 cat >>confdefs.h
<<_ACEOF
14039 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14043 cat >>confdefs.h
<<_ACEOF
14044 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14048 cat >>confdefs.h
<<_ACEOF
14049 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14053 # target_subdir is used by the testsuite to find the target libraries.
14055 if test "${host}" != "${target}"; then
14056 target_subdir
="${target_alias}/"
14061 if test "${gdb_native}" = "yes"; then
14062 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14063 if test ! -f ${host_makefile_frag}; then
14064 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14066 frags
="$frags $host_makefile_frag"
14068 host_makefile_frag
=/dev
/null
14074 if test "${gdb_native}" = "yes"; then
14075 # We pick this up from the host configuration file (.mh) because we
14076 # do not have a native configuration Makefile fragment.
14077 nativefile
=`sed -n '
14078 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
14079 ' ${host_makefile_frag}`
14083 if test x
"${gdb_osabi}" != x
; then
14085 cat >>confdefs.h
<<_ACEOF
14086 #define GDB_OSABI_DEFAULT $gdb_osabi
14091 # Enable multi-ice-gdb-server.
14092 # Check whether --enable-multi-ice was given.
14093 if test "${enable_multi_ice+set}" = set; then :
14094 enableval
=$enable_multi_ice; case $enableval in
14097 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14101 if test "x$enable_multi_ice" = xyes
; then
14102 subdirs
="$subdirs multi-ice"
14106 # We only build gdbserver automatically in a native configuration.
14107 if test "$gdb_native" = "yes"; then
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14109 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14110 if test "x$build_gdbserver" = xyes
; then
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14112 $as_echo "yes" >&6; }
14113 subdirs
="$subdirs gdbserver"
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14117 $as_echo "no" >&6; }
14121 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
14122 # to an empty version.
14128 if test "${nativefile}" != ""; then
14129 case "${nativefile}" in
14130 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
14131 * ) GDB_NM_FILE
="${nativefile}"
14133 files
="${files} ${GDB_NM_FILE}"
14134 links
="${links} nm.h"
14136 cat >>confdefs.h
<<_ACEOF
14137 #define GDB_NM_FILE "${GDB_NM_FILE}"
14143 ac_sources
="$files"
14145 while test -n "$ac_sources"; do
14146 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
14147 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
14148 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
14150 ac_config_links
="$ac_config_links $ac_config_links_1"
14156 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
14159 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
14161 ac_config_commands
="$ac_config_commands default"
14163 cat >confcache
<<\_ACEOF
14164 # This file is a shell script that caches the results of configure
14165 # tests run on this system so they can be shared between configure
14166 # scripts and configure runs, see configure's option --config-cache.
14167 # It is not useful on other systems. If it contains results you don't
14168 # want to keep, you may remove or edit it.
14170 # config.status only pays attention to the cache file if you give it
14171 # the --recheck option to rerun configure.
14173 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14174 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14175 # following values.
14179 # The following way of writing the cache mishandles newlines in values,
14180 # but we know of no workaround that is simple, portable, and efficient.
14181 # So, we kill variables containing newlines.
14182 # Ultrix sh set writes to stderr and can't be redirected directly,
14183 # and sets the high bit in the cache file unless we assign to the vars.
14185 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14186 eval ac_val
=\$
$ac_var
14190 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14191 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14194 _ | IFS | as_nl
) ;; #(
14195 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14196 *) { eval $ac_var=; unset $ac_var;} ;;
14202 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14203 *${as_nl}ac_space
=\
*)
14204 # `set' does not quote correctly, so add quotes: double-quote
14205 # substitution turns \\\\ into \\, and sed turns \\ into \.
14208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14211 # `set' quotes correctly as required by POSIX, so do not add quotes.
14212 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14221 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14223 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14225 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14226 if test -w "$cache_file"; then
14227 test "x$cache_file" != "x/dev/null" &&
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14229 $as_echo "$as_me: updating cache $cache_file" >&6;}
14230 cat confcache
>$cache_file
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14233 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14238 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14239 # Let make expand exec_prefix.
14240 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14242 DEFS
=-DHAVE_CONFIG_H
14246 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14247 # 1. Remove the extension, and $U if already installed.
14248 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14249 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14250 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14251 # will be set to the directory where LIBOBJS objects are built.
14252 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14253 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14255 LIBOBJS
=$ac_libobjs
14257 LTLIBOBJS
=$ac_ltlibobjs
14260 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14261 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
14262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14264 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
14265 as_fn_error
"conditional \"GMAKE\" was never defined.
14266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14268 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14269 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
14270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14275 if test -n "$gl_LIBOBJS"; then
14276 # Remove the extension.
14277 sed_drop_objext
='s/\.o$//;s/\.obj$//'
14278 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14279 gl_libobjs
="$gl_libobjs $i.$ac_objext"
14280 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
14283 gl_LIBOBJS
=$gl_libobjs
14285 gl_LTLIBOBJS
=$gl_ltlibobjs
14291 if test -n "$gltests_LIBOBJS"; then
14292 # Remove the extension.
14293 sed_drop_objext
='s/\.o$//;s/\.obj$//'
14294 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14295 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
14296 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
14299 gltests_LIBOBJS
=$gltests_libobjs
14301 gltests_LTLIBOBJS
=$gltests_ltlibobjs
14304 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14305 as_fn_error
"conditional \"AMDEP\" was never defined.
14306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14308 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14309 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
14310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14312 if test -n "$EXEEXT"; then
14314 am__EXEEXT_FALSE
='#'
14316 am__EXEEXT_TRUE
='#'
14322 : ${CONFIG_STATUS=./config.status}
14324 ac_clean_files_save
=$ac_clean_files
14325 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14327 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14329 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14331 # Generated by $as_me.
14332 # Run this file to recreate the current configuration.
14333 # Compiler output produced by configure, useful for debugging
14334 # configure, is in config.log if it exists.
14337 ac_cs_recheck=false
14340 SHELL=\${CONFIG_SHELL-$SHELL}
14343 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14344 ## -------------------- ##
14345 ## M4sh Initialization. ##
14346 ## -------------------- ##
14348 # Be more Bourne compatible
14349 DUALCASE
=1; export DUALCASE
# for MKS sh
14350 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14353 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14354 # is contrary to our usage. Disable this feature.
14355 alias -g '${1+"$@"}'='"$@"'
14356 setopt NO_GLOB_SUBST
14358 case `(set -o) 2>/dev/null` in #(
14370 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14371 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14372 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14373 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14374 # Prefer a ksh shell builtin over an external printf program on Solaris,
14375 # but without wasting forks for bash or zsh.
14376 if test -z "$BASH_VERSION$ZSH_VERSION" \
14377 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14378 as_echo='print
-r --'
14379 as_echo_n='print
-rn --'
14380 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14381 as_echo='printf %s
\n'
14382 as_echo_n='printf %s
'
14384 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14385 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14386 as_echo_n='/usr
/ucb
/echo -n'
14388 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14389 as_echo_n_body='eval
14393 expr "X$arg" : "X\\(.*\\)$as_nl";
14394 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14396 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14398 export as_echo_n_body
14399 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14401 export as_echo_body
14402 as_echo='sh
-c $as_echo_body as_echo
'
14405 # The user is always right.
14406 if test "${PATH_SEPARATOR+set}" != set; then
14408 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14409 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14416 # We need space, tab and new line, in precisely that order. Quoting is
14417 # there to prevent editors from complaining about space-tab.
14418 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14419 # splitting by setting IFS to empty value.)
14422 # Find who we are. Look in the path if we contain no directory separator.
14424 *[\\/]* ) as_myself=$0 ;;
14425 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14426 for as_dir in $PATH
14429 test -z "$as_dir" && as_dir=.
14430 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14436 # We did not find ourselves, most probably we were run as `sh COMMAND'
14437 # in which case we are not to be found in the path.
14438 if test "x$as_myself" = x
; then
14441 if test ! -f "$as_myself"; then
14442 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14446 # Unset variables that we do not need and which cause bugs (e.g. in
14447 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14448 # suppresses any "Segmentation fault" message there. '((' could
14449 # trigger a bug in pdksh 5.2.14.
14450 for as_var
in BASH_ENV ENV MAIL MAILPATH
14451 do eval test x\
${$as_var+set} = xset \
14452 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14465 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14468 # as_fn_error ERROR [LINENO LOG_FD]
14469 # ---------------------------------
14470 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14471 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14472 # script with status $?, using 1 if that was 0.
14475 as_status
=$?
; test $as_status -eq 0 && as_status
=1
14477 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14478 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14480 $as_echo "$as_me: error: $1" >&2
14481 as_fn_exit
$as_status
14485 # as_fn_set_status STATUS
14486 # -----------------------
14487 # Set $? to STATUS, without forking.
14488 as_fn_set_status
()
14491 } # as_fn_set_status
14493 # as_fn_exit STATUS
14494 # -----------------
14495 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14499 as_fn_set_status
$1
14505 # Portably unset VAR.
14508 { eval $1=; unset $1;}
14510 as_unset
=as_fn_unset
14511 # as_fn_append VAR VALUE
14512 # ----------------------
14513 # Append the text in VALUE to the end of the definition contained in VAR. Take
14514 # advantage of any shell optimizations that allow amortized linear growth over
14515 # repeated appends, instead of the typical quadratic growth present in naive
14517 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14518 eval 'as_fn_append ()
14529 # as_fn_arith ARG...
14530 # ------------------
14531 # Perform arithmetic evaluation on the ARGs, and store the result in the
14532 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14533 # must be portable across $(()) and expr.
14534 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14535 eval 'as_fn_arith ()
14542 as_val
=`expr "$@" || test $? -eq 1`
14547 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14548 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14554 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14555 as_basename
=basename
14560 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14566 as_me
=`$as_basename -- "$0" ||
14567 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14568 X"$0" : 'X\(//\)$' \| \
14569 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14571 sed '/^.*\/\([^/][^/]*\)\/*$/{
14585 # Avoid depending upon Character Ranges.
14586 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14587 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14588 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14589 as_cr_digits
='0123456789'
14590 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14592 ECHO_C
= ECHO_N
= ECHO_T
=
14593 case `echo -n x` in #(((((
14595 case `echo 'xy\c'` in
14596 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14598 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14605 rm -f conf$$ conf$$.exe conf$$.
file
14606 if test -d conf$$.dir
; then
14607 rm -f conf$$.dir
/conf$$.
file
14610 mkdir conf$$.dir
2>/dev
/null
14612 if (echo >conf$$.
file) 2>/dev
/null
; then
14613 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14615 # ... but there are two gotchas:
14616 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14617 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14618 # In both cases, we have to default to `cp -p'.
14619 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14621 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14629 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14630 rmdir conf$$.dir
2>/dev
/null
14635 # Create "$as_dir" as a directory, including parents if necessary.
14640 -*) as_dir
=.
/$as_dir;;
14642 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14646 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14647 *) as_qdir
=$as_dir;;
14649 as_dirs
="'$as_qdir' $as_dirs"
14650 as_dir
=`$as_dirname -- "$as_dir" ||
14651 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14652 X"$as_dir" : 'X\(//\)[^/]' \| \
14653 X"$as_dir" : 'X\(//\)$' \| \
14654 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14655 $as_echo X"$as_dir" |
14656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14660 /^X\(\/\/\)[^/].*/{
14673 test -d "$as_dir" && break
14675 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14676 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
14680 if mkdir
-p .
2>/dev
/null
; then
14681 as_mkdir_p
='mkdir -p "$as_dir"'
14683 test -d .
/-p && rmdir .
/-p
14687 if test -x / >/dev
/null
2>&1; then
14688 as_test_x
='test -x'
14690 if ls -dL / >/dev
/null
2>&1; then
14697 if test -d "$1"; then
14703 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14704 ???[sx]*):;;*)false;;esac;fi
14708 as_executable_p
=$as_test_x
14710 # Sed expression to map a string onto a valid CPP name.
14711 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14713 # Sed expression to map a string onto a valid variable name.
14714 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14718 ## ----------------------------------- ##
14719 ## Main body of $CONFIG_STATUS script. ##
14720 ## ----------------------------------- ##
14722 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14725 # Save the log message, to keep $0 and so on meaningful, and to
14726 # report actual input values of CONFIG_FILES etc. instead of their
14727 # values after options handling.
14729 This file was extended by $as_me, which was
14730 generated by GNU Autoconf 2.64. Invocation command line was
14732 CONFIG_FILES = $CONFIG_FILES
14733 CONFIG_HEADERS = $CONFIG_HEADERS
14734 CONFIG_LINKS = $CONFIG_LINKS
14735 CONFIG_COMMANDS = $CONFIG_COMMANDS
14738 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14743 case $ac_config_files in *"
14744 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14747 case $ac_config_headers in *"
14748 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14753 # Files that config.status was made for.
14754 config_files="$ac_config_files"
14755 config_headers="$ac_config_headers"
14756 config_links="$ac_config_links"
14757 config_commands="$ac_config_commands"
14761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14763 \`$as_me' instantiates files and other configuration actions
14764 from templates according to the current configuration. Unless the files
14765 and actions are specified as TAGs, all are instantiated by default.
14767 Usage: $0 [OPTION]... [TAG]...
14769 -h, --help print this help, then exit
14770 -V, --version print version number and configuration settings, then exit
14771 -q, --quiet, --silent
14772 do not print progress messages
14773 -d, --debug don't remove temporary files
14774 --recheck update $as_me by reconfiguring in the same conditions
14775 --file=FILE[:TEMPLATE]
14776 instantiate the configuration file FILE
14777 --header=FILE[:TEMPLATE]
14778 instantiate the configuration header FILE
14780 Configuration files:
14783 Configuration headers:
14786 Configuration links:
14789 Configuration commands:
14792 Report bugs to the package provider."
14795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14798 configured by $0, generated by GNU Autoconf 2.64,
14799 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14801 Copyright (C) 2009 Free Software Foundation, Inc.
14802 This config.status script is free software; the Free Software Foundation
14803 gives unlimited permission to copy, distribute and modify it."
14810 test -n "\$AWK" || AWK=awk
14813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14814 # The default lists apply if the user does not specify any file.
14820 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14821 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14832 # Handling of the options.
14833 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14835 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14836 $as_echo "$ac_cs_version"; exit ;;
14837 --debug |
--debu |
--deb |
--de |
--d |
-d )
14839 --file |
--fil |
--fi |
--f )
14842 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14844 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14845 ac_need_defaults
=false
;;
14846 --header |
--heade |
--head |
--hea )
14849 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14851 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14852 ac_need_defaults
=false
;;
14854 # Conflict between --help and --header
14855 as_fn_error
"ambiguous option: \`$1'
14856 Try \`$0 --help' for more information.";;
14857 --help |
--hel |
-h )
14858 $as_echo "$ac_cs_usage"; exit ;;
14859 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14860 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14863 # This is an error.
14864 -*) as_fn_error
"unrecognized option: \`$1'
14865 Try \`$0 --help' for more information." ;;
14867 *) as_fn_append ac_config_targets
" $1"
14868 ac_need_defaults
=false
;;
14874 ac_configure_extra_args
=
14876 if $ac_cs_silent; then
14878 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14883 if \$ac_cs_recheck; then
14884 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14886 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14887 CONFIG_SHELL='$SHELL'
14888 export CONFIG_SHELL
14893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14898 ## Running $as_me. ##
14904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14908 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14909 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14915 # Handling of arguments.
14916 for ac_config_target
in $ac_config_targets
14918 case $ac_config_target in
14919 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
14920 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
14921 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
14922 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
14923 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14924 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14925 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
14926 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14928 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14933 # If the user did not use the arguments to specify the items to instantiate,
14934 # then the envvar interface is used. Set only those that are not.
14935 # We use the long form for the default assignment because of an extremely
14936 # bizarre bug on SunOS 4.1.3.
14937 if $ac_need_defaults; then
14938 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14939 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14940 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
14941 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14944 # Have a temporary directory for convenience. Make it in the build tree
14945 # simply because there is no reason against having it here, and in addition,
14946 # creating and moving files from /tmp can sometimes cause problems.
14947 # Hook for its removal unless debugging.
14948 # Note that there is a small window in which the directory will not be cleaned:
14949 # after its creation but before its name has been assigned to `$tmp'.
14953 trap 'exit_status=$?
14954 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14956 trap 'as_fn_exit 1' 1 2 13 15
14958 # Create a (secure) tmp directory for tmp files.
14961 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14962 test -n "$tmp" && test -d "$tmp"
14965 tmp
=.
/conf$$
-$RANDOM
14966 (umask 077 && mkdir
"$tmp")
14967 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
14969 # Set up the scripts for CONFIG_FILES section.
14970 # No need to generate them if there are no CONFIG_FILES.
14971 # This happens for instance with `./config.status config.h'.
14972 if test -n "$CONFIG_FILES"; then
14974 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
14975 ac_cs_awk_getline
=:
14976 ac_cs_awk_pipe_init
=
14977 ac_cs_awk_read_file
='
14978 while ((getline aline < (F[key])) > 0)
14981 ac_cs_awk_pipe_fini
=
14983 ac_cs_awk_getline
=false
14984 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
14985 ac_cs_awk_read_file
='
14987 print "cat " F[key] " &&"
14988 '$ac_cs_awk_pipe_init
14989 # The final `:' finishes the AND list.
14990 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
14992 ac_cr
=`echo X | tr X '\015'`
14993 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14994 # But we know of no other shell where ac_cr would be empty at this
14995 # point, so we can use a bashism as a fallback.
14996 if test "x$ac_cr" = x
; then
14997 eval ac_cr
=\$
\'\\r
\'
14999 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15000 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15003 ac_cs_awk_cr
=$ac_cr
15006 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15009 # Create commands to substitute file output variables.
15011 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15012 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15013 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15016 } >conf$
$files.sh
&&
15017 . .
/conf$
$files.sh ||
15018 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
15019 rm -f conf$
$files.sh
15022 echo "cat >conf$$subs.awk <<_ACEOF" &&
15023 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15025 } >conf$$subs.sh ||
15026 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15027 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15029 for ac_last_try in false false false false false :; do
15030 . ./conf$$subs.sh ||
15031 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15033 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15034 if test $ac_delim_n = $ac_delim_num; then
15036 elif $ac_last_try; then
15037 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15039 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15042 rm -f conf$$subs.sh
15044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15045 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15049 s/^/S["/; s
/!.
*/"]=/
15059 s/\(.\{148\}\).*/\1/
15061 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15066 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15073 s/\(.\{148\}\).*/\1/
15075 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15079 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15084 ' <conf$$subs.awk | sed '
15089 ' >>$CONFIG_STATUS || ac_write_fail=1
15090 rm -f conf$$subs.awk
15091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15093 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15094 for (key in S) S_is_set[key] = 1
15096 \$ac_cs_awk_pipe_init
15100 nfields = split(line, field, "@
")
15102 len = length(field[1])
15103 for (i = 2; i < nfields; i++) {
15105 keylen = length(key)
15106 if (S_is_set[key]) {
15108 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15109 len += length(value) + length(field[++i])
15114 if (nfields == 3 && !substed) {
15116 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15117 \$ac_cs_awk_read_file
15123 \$ac_cs_awk_pipe_fini
15126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15127 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15128 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15131 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15132 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15135 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15136 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15137 # trailing colons and then remove the whole line if VPATH becomes empty
15138 # (actually we leave an empty line to preserve line numbers).
15139 if test "x
$srcdir" = x.; then
15140 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15141 s/:*\$(srcdir):*/:/
15142 s/:*\${srcdir}:*/:/
15144 s/^\([^=]*=[ ]*\):*/\1/
15150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15151 fi # test -n "$CONFIG_FILES"
15153 # Set up the scripts for CONFIG_HEADERS section.
15154 # No need to generate them if there are no CONFIG_HEADERS.
15155 # This happens for instance with `./config.status Makefile'.
15156 if test -n "$CONFIG_HEADERS"; then
15157 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15161 # Transform confdefs.h into an awk script `defines.awk', embedded as
15162 # here-document in config.status, that substitutes the proper values into
15163 # config.h.in to produce config.h.
15165 # Create a delimiter string that does not exist in confdefs.h, to ease
15166 # handling of long lines.
15168 for ac_last_try in false false :; do
15169 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15170 if test -z "$ac_t"; then
15172 elif $ac_last_try; then
15173 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15175 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15179 # For the awk script, D is an array of macro values keyed by name,
15180 # likewise P contains macro parameters if any. Preserve backslash
15181 # newline sequences.
15183 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15185 s/.\{148\}/&'"$ac_delim"'/g
15188 s/^[ ]*#[ ]*define[ ][ ]*/ /
15195 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15197 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15201 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15202 D["\
1"]=" \
3\\\\\\n
"\\/p
15204 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15209 s/.\{148\}/&'"$ac_delim"'/g
15214 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15217 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15219 ' <confdefs.h | sed '
15220 s/'"$ac_delim"'/"\\\
15221 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15224 for (key in D) D_is_set[key] = 1
15227 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15229 split(line, arg, " ")
15230 if (arg[1] == "#") {
15234 defundef
= substr
(arg
[1], 2)
15237 split(mac1
, mac2
, "(") #)
15239 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15240 if (D_is_set
[macro
]) {
15241 # Preserve the white space surrounding the "#".
15242 print prefix
"define", macro P
[macro
] D
[macro
]
15245 # Replace #undef with comments. This is necessary, for example,
15246 # in the case of _POSIX_SOURCE, which is predefined and required
15247 # on some systems where configure will not decide to define it.
15248 if (defundef
== "undef") {
15249 print
"/*", prefix defundef
, macro
, "*/"
15257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15258 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
15259 fi # test -n "$CONFIG_HEADERS"
15262 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15267 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15269 case $ac_mode$ac_tag in
15271 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15272 :[FH
]-) ac_tag
=-:-;;
15273 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15290 -) ac_f
="$tmp/stdin";;
15291 *) # Look for the file first in the build tree, then in the source tree
15292 # (if the path is not absolute). The absolute path cannot be DOS-style,
15293 # because $ac_f cannot contain `:'.
15297 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15299 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
15301 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15302 as_fn_append ac_file_inputs
" '$ac_f'"
15305 # Let's still pretend it is `configure' which instantiates (i.e., don't
15306 # use $as_me), people would be surprised to read:
15307 # /* config.h. Generated by config.status. */
15308 configure_input
='Generated from '`
15309 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15311 if test x
"$ac_file" != x-
; then
15312 configure_input
="$ac_file. $configure_input"
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15314 $as_echo "$as_me: creating $ac_file" >&6;}
15316 # Neutralize special characters interpreted by sed in replacement strings.
15317 case $configure_input in #(
15318 *\
&* |
*\|
* |
*\\* )
15319 ac_sed_conf_input
=`$as_echo "$configure_input" |
15320 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15321 *) ac_sed_conf_input
=$configure_input;;
15325 *:-:* |
*:-) cat >"$tmp/stdin" \
15326 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
15331 ac_dir
=`$as_dirname -- "$ac_file" ||
15332 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15333 X"$ac_file" : 'X\(//\)[^/]' \| \
15334 X"$ac_file" : 'X\(//\)$' \| \
15335 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15336 $as_echo X"$ac_file" |
15337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15341 /^X\(\/\/\)[^/].*/{
15354 as_dir
="$ac_dir"; as_fn_mkdir_p
15358 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15360 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15361 # A ".." for each directory in $ac_dir_suffix.
15362 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15363 case $ac_top_builddir_sub in
15364 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15365 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15368 ac_abs_top_builddir
=$ac_pwd
15369 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15370 # for backward compatibility:
15371 ac_top_builddir
=$ac_top_build_prefix
15374 .
) # We are building in place.
15376 ac_top_srcdir
=$ac_top_builddir_sub
15377 ac_abs_top_srcdir
=$ac_pwd ;;
15378 [\\/]* | ?
:[\\/]* ) # Absolute name.
15379 ac_srcdir
=$srcdir$ac_dir_suffix;
15380 ac_top_srcdir
=$srcdir
15381 ac_abs_top_srcdir
=$srcdir ;;
15382 *) # Relative name.
15383 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15384 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15385 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15387 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15397 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15398 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15400 ac_MKDIR_P
=$MKDIR_P
15402 [\\/$
]* | ?
:[\\/]* ) ;;
15403 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
15407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15408 # If the template does not know about datarootdir, expand it.
15409 # FIXME: This hack should be removed a few years after 2.60.
15410 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15421 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15422 *datarootdir
*) ac_datarootdir_seen
=yes;;
15423 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15425 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15428 ac_datarootdir_hack='
15429 s&@datadir@&$datadir&g
15430 s&@docdir@&$docdir&g
15431 s&@infodir@&$infodir&g
15432 s&@localedir@&$localedir&g
15433 s&@mandir@&$mandir&g
15434 s&\\\${datarootdir}&$datarootdir&g' ;;
15438 # Neutralize VPATH when `$srcdir' = `.'.
15439 # Shell code in configure.ac might set extrasub.
15440 # FIXME: do we really want to maintain this feature?
15441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15442 ac_sed_extra="$ac_vpsub
15445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15447 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15448 s|@configure_input@|
$ac_sed_conf_input|
;t t
15449 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15450 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15451 s
&@srcdir@
&$ac_srcdir&;t t
15452 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15453 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15454 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15455 s
&@builddir@
&$ac_builddir&;t t
15456 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15457 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15458 s
&@INSTALL@
&$ac_INSTALL&;t t
15459 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
15460 $ac_datarootdir_hack
15462 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15463 if $ac_cs_awk_getline; then
15464 $AWK -f "$tmp/subs.
awk"
15466 $AWK -f "$tmp/subs.
awk" | $SHELL
15468 || as_fn_error "could not create
$ac_file" "$LINENO" 5
15470 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15471 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15474 which seems to be undefined. Please make sure it is defined." >&5
15475 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15476 which seems to be undefined. Please make sure it is defined." >&2;}
15480 -) cat "$tmp/out" && rm -f "$tmp/out";;
15481 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15483 || as_fn_error "could not create $ac_file" "$LINENO" 5
15489 if test x"$ac_file" != x-; then
15491 $as_echo "/* $configure_input */" \
15492 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15493 } >"$tmp/config.h" \
15494 || as_fn_error "could not create $ac_file" "$LINENO" 5
15495 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15497 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15500 mv "$tmp/config.h" "$ac_file" \
15501 || as_fn_error "could not create $ac_file" "$LINENO" 5
15504 $as_echo "/* $configure_input */" \
15505 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15506 || as_fn_error "could not create -" "$LINENO" 5
15508 # Compute "$ac_file"'s index
in $config_headers.
15511 for _am_header
in $config_headers :; do
15512 case $_am_header in
15513 $_am_arg |
$_am_arg:* )
15516 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
15519 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15520 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15521 X"$_am_arg" : 'X\(//\)[^/]' \| \
15522 X"$_am_arg" : 'X\(//\)$' \| \
15523 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15524 $as_echo X"$_am_arg" |
15525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15529 /^X\(\/\/\)[^/].*/{
15541 s/.*/./; q'`/stamp-h
$_am_stamp_count
15548 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15551 # Prefer the file from the source tree if names are identical.
15552 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
15553 ac_source
=$srcdir/$ac_source
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15557 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15559 if test ! -r "$ac_source"; then
15560 as_fn_error
"$ac_source: file not found" "$LINENO" 5
15564 # Try a relative symlink, then a hard link, then a copy.
15566 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
15567 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
15569 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
15570 ln "$ac_source" "$ac_file" 2>/dev
/null ||
15571 cp -p "$ac_source" "$ac_file" ||
15572 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15575 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15576 $as_echo "$as_me: executing $ac_file commands" >&6;}
15581 case $ac_file$ac_mode in
15582 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
15583 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
15584 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15585 # are listed without --file. Let's play safe and only enable the eval
15586 # if we detect the quoting.
15587 case $CONFIG_FILES in
15588 *\'*) eval set x
"$CONFIG_FILES" ;;
15589 *) set x
$CONFIG_FILES ;;
15594 # Strip MF so we end up with the name of the file.
15595 mf
=`echo "$mf" | sed -e 's/:.*$//'`
15596 # Check whether this is an Automake generated Makefile or not.
15597 # We used to match only the files named `Makefile.in', but
15598 # some people rename them; so instead we look at the file content.
15599 # Grep'ing the first line is not enough: some people post-process
15600 # each Makefile.in and add a new line on top of each file to say so.
15601 # Grep'ing the whole file is not good either: AIX grep has a line
15602 # limit of 2048, but all sed's we know have understand at least 4000.
15603 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
15604 dirpart
=`$as_dirname -- "$mf" ||
15605 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15606 X"$mf" : 'X\(//\)[^/]' \| \
15607 X"$mf" : 'X\(//\)$' \| \
15608 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15614 /^X\(\/\/\)[^/].*/{
15630 # Extract the definition of DEPDIR, am__include, and am__quote
15631 # from the Makefile without running `make'.
15632 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
15633 test -z "$DEPDIR" && continue
15634 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
15635 test -z "am__include" && continue
15636 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
15637 # When using ansi2knr, U may be empty or an underscore; expand it
15638 U
=`sed -n 's/^U = //p' < "$mf"`
15639 # Find all dependency output files, they are included files with
15640 # $(DEPDIR) in their names. We invoke sed twice because it is the
15641 # simplest approach to changing $(DEPDIR) to its actual value in the
15643 for file in `sed -n "
15644 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15645 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15646 # Make sure the directory exists.
15647 test -f "$dirpart/$file" && continue
15648 fdir
=`$as_dirname -- "$file" ||
15649 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15650 X"$file" : 'X\(//\)[^/]' \| \
15651 X"$file" : 'X\(//\)$' \| \
15652 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15653 $as_echo X"$file" |
15654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15658 /^X\(\/\/\)[^/].*/{
15671 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
15672 # echo "creating $dirpart/$file"
15673 echo '# dummy' > "$dirpart/$file"
15679 case x
$CONFIG_HEADERS in
15680 xconfig.h
:config.
in)
15691 ac_clean_files
=$ac_clean_files_save
15693 test $ac_write_fail = 0 ||
15694 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15697 # configure is writing to config.log, and then calls config.status.
15698 # config.status does its own redirection, appending to config.log.
15699 # Unfortunately, on DOS this fails, as config.log is still kept open
15700 # by configure, so config.status won't be able to write to it; its
15701 # output is simply discarded. So we exec the FD to /dev/null,
15702 # effectively closing config.log, so it can be properly (re)opened and
15703 # appended to by config.status. When coming back to configure, we
15704 # need to make the FD available again.
15705 if test "$no_create" != yes; then
15707 ac_config_status_args
=
15708 test "$silent" = yes &&
15709 ac_config_status_args
="$ac_config_status_args --quiet"
15711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15714 # would make configure fail if this is the last instruction.
15715 $ac_cs_success || as_fn_exit $?
15719 # CONFIG_SUBDIRS section.
15721 if test "$no_recursion" != yes; then
15723 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15724 # so they do not pile up.
15725 ac_sub_configure_args
=
15727 eval "set x $ac_configure_args"
15731 if test -n "$ac_prev"; then
15736 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
15737 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
15738 ac_prev
=cache_file
;;
15739 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
15740 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
15743 --config-cache |
-C)
15745 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
15747 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
15749 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
15751 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
15753 --disable-option-checking)
15757 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15759 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
15763 # Always prepend --prefix to ensure using the same prefix
15764 # in subdir configurations.
15765 ac_arg
="--prefix=$prefix"
15767 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15769 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
15772 if test "$silent" = yes; then
15773 ac_sub_configure_args
="--silent $ac_sub_configure_args"
15776 # Always prepend --disable-option-checking to silence warnings, since
15777 # different subdirs can have different --enable and --with options.
15778 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
15781 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
15783 # Do not complain, so a configure script can configure whichever
15784 # parts of a large source tree are present.
15785 test -d "$srcdir/$ac_dir" ||
continue
15787 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15788 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15789 $as_echo "$ac_msg" >&6
15790 as_dir
="$ac_dir"; as_fn_mkdir_p
15794 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15796 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15797 # A ".." for each directory in $ac_dir_suffix.
15798 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15799 case $ac_top_builddir_sub in
15800 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15801 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15804 ac_abs_top_builddir
=$ac_pwd
15805 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15806 # for backward compatibility:
15807 ac_top_builddir
=$ac_top_build_prefix
15810 .
) # We are building in place.
15812 ac_top_srcdir
=$ac_top_builddir_sub
15813 ac_abs_top_srcdir
=$ac_pwd ;;
15814 [\\/]* | ?
:[\\/]* ) # Absolute name.
15815 ac_srcdir
=$srcdir$ac_dir_suffix;
15816 ac_top_srcdir
=$srcdir
15817 ac_abs_top_srcdir
=$srcdir ;;
15818 *) # Relative name.
15819 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15820 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15821 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15823 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15828 # Check for guested configure; otherwise get Cygnus style configure.
15829 if test -f "$ac_srcdir/configure.gnu"; then
15830 ac_sub_configure
=$ac_srcdir/configure.gnu
15831 elif test -f "$ac_srcdir/configure"; then
15832 ac_sub_configure
=$ac_srcdir/configure
15833 elif test -f "$ac_srcdir/configure.in"; then
15834 # This should be Cygnus configure.
15835 ac_sub_configure
=$ac_aux_dir/configure
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15838 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15842 # The recursion is here.
15843 if test -n "$ac_sub_configure"; then
15844 # Make the cache file name correct relative to the subdirectory.
15845 case $cache_file in
15846 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
15847 *) # Relative name.
15848 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
15851 { $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
15852 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15853 # The eval makes quoting arguments work.
15854 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15855 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15856 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15862 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15864 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}