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
884 enable_dependency_tracking
885 with_separate_debug_dir
887 with_relocated_sources
910 enable_build_warnings
911 enable_gdb_build_warnings
918 ac_precious_vars
='build_alias
930 ac_subdirs_all
='doc testsuite
935 # Initialize some variables set by options.
937 ac_init_version
=false
938 ac_unrecognized_opts
=
940 # The variables have the same names as the options, with
941 # dashes changed to underlines.
949 program_transform_name
=s
,x
,x
,
957 # Installation directory options.
958 # These are left unexpanded so users can "make install exec_prefix=/foo"
959 # and all the variables that are supposed to be based on exec_prefix
960 # by default will actually change.
961 # Use braces instead of parens because sh, perl, etc. also accept them.
962 # (The list follows the same order as the GNU Coding Standards.)
963 bindir
='${exec_prefix}/bin'
964 sbindir
='${exec_prefix}/sbin'
965 libexecdir
='${exec_prefix}/libexec'
966 datarootdir
='${prefix}/share'
967 datadir
='${datarootdir}'
968 sysconfdir
='${prefix}/etc'
969 sharedstatedir
='${prefix}/com'
970 localstatedir
='${prefix}/var'
971 includedir
='${prefix}/include'
972 oldincludedir
='/usr/include'
973 docdir
='${datarootdir}/doc/${PACKAGE}'
974 infodir
='${datarootdir}/info'
979 libdir
='${exec_prefix}/lib'
980 localedir
='${datarootdir}/locale'
981 mandir
='${datarootdir}/man'
987 # If the previous option needs an argument, assign it.
988 if test -n "$ac_prev"; then
989 eval $ac_prev=\
$ac_option
995 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999 # Accept the important Cygnus configure options, so we can diagnose typos.
1001 case $ac_dashdash$ac_option in
1005 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1007 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1008 bindir
=$ac_optarg ;;
1010 -build |
--build |
--buil |
--bui |
--bu)
1011 ac_prev
=build_alias
;;
1012 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1013 build_alias
=$ac_optarg ;;
1015 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1016 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1017 ac_prev
=cache_file
;;
1018 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1019 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1020 cache_file
=$ac_optarg ;;
1022 --config-cache |
-C)
1023 cache_file
=config.cache
;;
1025 -datadir |
--datadir |
--datadi |
--datad)
1027 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1028 datadir
=$ac_optarg ;;
1030 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1031 |
--dataroo |
--dataro |
--datar)
1032 ac_prev
=datarootdir
;;
1033 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1034 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1035 datarootdir
=$ac_optarg ;;
1037 -disable-* |
--disable-*)
1038 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1041 as_fn_error
"invalid feature name: $ac_useropt"
1042 ac_useropt_orig
=$ac_useropt
1043 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_
$ac_useropt"
1048 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1049 ac_unrecognized_sep
=', ';;
1051 eval enable_
$ac_useropt=no
;;
1053 -docdir |
--docdir |
--docdi |
--doc |
--do)
1055 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1056 docdir
=$ac_optarg ;;
1058 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1060 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1061 dvidir
=$ac_optarg ;;
1063 -enable-* |
--enable-*)
1064 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1067 as_fn_error
"invalid feature name: $ac_useropt"
1068 ac_useropt_orig
=$ac_useropt
1069 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1072 "enable_
$ac_useropt"
1074 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1075 ac_unrecognized_sep
=', ';;
1077 eval enable_
$ac_useropt=\
$ac_optarg ;;
1079 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1080 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1081 |
--exec |
--exe |
--ex)
1082 ac_prev
=exec_prefix
;;
1083 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1084 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1085 |
--exec=* |
--exe=* |
--ex=*)
1086 exec_prefix
=$ac_optarg ;;
1088 -gas |
--gas |
--ga |
--g)
1089 # Obsolete; use --with-gas.
1092 -help |
--help |
--hel |
--he |
-h)
1093 ac_init_help
=long
;;
1094 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1095 ac_init_help
=recursive
;;
1096 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1097 ac_init_help
=short
;;
1099 -host |
--host |
--hos |
--ho)
1100 ac_prev
=host_alias
;;
1101 -host=* |
--host=* |
--hos=* |
--ho=*)
1102 host_alias
=$ac_optarg ;;
1104 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1106 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1108 htmldir
=$ac_optarg ;;
1110 -includedir |
--includedir |
--includedi |
--included |
--include \
1111 |
--includ |
--inclu |
--incl |
--inc)
1112 ac_prev
=includedir
;;
1113 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1114 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1115 includedir
=$ac_optarg ;;
1117 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1119 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1120 infodir
=$ac_optarg ;;
1122 -libdir |
--libdir |
--libdi |
--libd)
1124 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1125 libdir
=$ac_optarg ;;
1127 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1128 |
--libexe |
--libex |
--libe)
1129 ac_prev
=libexecdir
;;
1130 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1131 |
--libexe=* |
--libex=* |
--libe=*)
1132 libexecdir
=$ac_optarg ;;
1134 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1135 ac_prev
=localedir
;;
1136 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1137 localedir
=$ac_optarg ;;
1139 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1140 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1141 ac_prev
=localstatedir
;;
1142 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1143 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1144 localstatedir
=$ac_optarg ;;
1146 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1148 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1149 mandir
=$ac_optarg ;;
1151 -nfp |
--nfp |
--nf)
1152 # Obsolete; use --without-fp.
1155 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1156 |
--no-cr |
--no-c |
-n)
1159 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1160 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1163 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1164 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1165 |
--oldin |
--oldi |
--old |
--ol |
--o)
1166 ac_prev
=oldincludedir
;;
1167 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1168 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1169 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1170 oldincludedir
=$ac_optarg ;;
1172 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1174 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1175 prefix
=$ac_optarg ;;
1177 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1178 |
--program-pre |
--program-pr |
--program-p)
1179 ac_prev
=program_prefix
;;
1180 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1181 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1182 program_prefix
=$ac_optarg ;;
1184 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1185 |
--program-suf |
--program-su |
--program-s)
1186 ac_prev
=program_suffix
;;
1187 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1188 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1189 program_suffix
=$ac_optarg ;;
1191 -program-transform-name |
--program-transform-name \
1192 |
--program-transform-nam |
--program-transform-na \
1193 |
--program-transform-n |
--program-transform- \
1194 |
--program-transform |
--program-transfor \
1195 |
--program-transfo |
--program-transf \
1196 |
--program-trans |
--program-tran \
1197 |
--progr-tra |
--program-tr |
--program-t)
1198 ac_prev
=program_transform_name
;;
1199 -program-transform-name=* |
--program-transform-name=* \
1200 |
--program-transform-nam=* |
--program-transform-na=* \
1201 |
--program-transform-n=* |
--program-transform-=* \
1202 |
--program-transform=* |
--program-transfor=* \
1203 |
--program-transfo=* |
--program-transf=* \
1204 |
--program-trans=* |
--program-tran=* \
1205 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1206 program_transform_name
=$ac_optarg ;;
1208 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1210 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1211 pdfdir
=$ac_optarg ;;
1213 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1215 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1218 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1219 |
-silent |
--silent |
--silen |
--sile |
--sil)
1222 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1224 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1226 sbindir
=$ac_optarg ;;
1228 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1229 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1230 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1232 ac_prev
=sharedstatedir
;;
1233 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1234 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1235 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1237 sharedstatedir
=$ac_optarg ;;
1239 -site |
--site |
--sit)
1241 -site=* |
--site=* |
--sit=*)
1244 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1246 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1247 srcdir
=$ac_optarg ;;
1249 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1250 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1251 ac_prev
=sysconfdir
;;
1252 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1253 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1254 sysconfdir
=$ac_optarg ;;
1256 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1257 ac_prev
=target_alias
;;
1258 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1259 target_alias
=$ac_optarg ;;
1261 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1264 -version |
--version |
--versio |
--versi |
--vers |
-V)
1265 ac_init_version
=: ;;
1268 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1271 as_fn_error
"invalid package name: $ac_useropt"
1272 ac_useropt_orig
=$ac_useropt
1273 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1278 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1279 ac_unrecognized_sep
=', ';;
1281 eval with_
$ac_useropt=\
$ac_optarg ;;
1283 -without-* |
--without-*)
1284 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1287 as_fn_error
"invalid package name: $ac_useropt"
1288 ac_useropt_orig
=$ac_useropt
1289 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1294 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1295 ac_unrecognized_sep
=', ';;
1297 eval with_
$ac_useropt=no
;;
1300 # Obsolete; use --with-x.
1303 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1304 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1305 ac_prev
=x_includes
;;
1306 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1307 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1308 x_includes
=$ac_optarg ;;
1310 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1311 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1312 ac_prev
=x_libraries
;;
1313 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1314 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1315 x_libraries
=$ac_optarg ;;
1317 -*) as_fn_error
"unrecognized option: \`$ac_option'
1318 Try \`$0 --help' for more information."
1322 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1323 # Reject names that are not valid shell variable names.
1324 case $ac_envvar in #(
1325 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1326 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1328 eval $ac_envvar=\
$ac_optarg
1329 export $ac_envvar ;;
1332 # FIXME: should be removed in autoconf 3.0.
1333 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1335 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342 if test -n "$ac_prev"; then
1343 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1344 as_fn_error
"missing argument to $ac_option"
1347 if test -n "$ac_unrecognized_opts"; then
1348 case $enable_option_checking in
1350 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1351 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1355 # Check all directory arguments for consistency.
1356 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir
1361 eval ac_val
=\$
$ac_var
1362 # Remove trailing slashes.
1365 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1366 eval $ac_var=\
$ac_val;;
1368 # Be sure to have absolute directory names.
1370 [\\/$
]* | ?
:[\\/]* ) continue;;
1371 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1373 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1376 # There might be people who depend on the old broken behavior: `$host'
1377 # used to hold the argument of --host etc.
1378 # FIXME: To remove some day.
1381 target
=$target_alias
1383 # FIXME: To remove some day.
1384 if test "x$host_alias" != x
; then
1385 if test "x$build_alias" = x
; then
1386 cross_compiling
=maybe
1387 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1388 If a cross compiler is detected then cross compile mode will be used." >&2
1389 elif test "x$build_alias" != "x$host_alias"; then
1395 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1397 test "$silent" = yes && exec 6>/dev
/null
1400 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1401 ac_ls_di
=`ls -di .` &&
1402 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1403 as_fn_error
"working directory cannot be determined"
1404 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405 as_fn_error
"pwd does not report name of working directory"
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410 ac_srcdir_defaulted
=yes
1411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir
=`$as_dirname -- "$as_myself" ||
1413 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$as_myself" : 'X\(//\)[^/]' \| \
1415 X"$as_myself" : 'X\(//\)$' \| \
1416 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1417 $as_echo X"$as_myself" |
1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1440 ac_srcdir_defaulted
=no
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1444 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1446 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1458 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 for ac_var
in $ac_precious_vars; do
1461 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1462 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1463 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1464 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1468 # Report the --help message.
1470 if test "$ac_init_help" = "long"; then
1471 # Omit some internal or obsolete options to make the list less imposing.
1472 # This message is too long to be a string in the A/UX 3.1 sh.
1474 \`configure' configures this package to adapt to many kinds of systems.
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE. See below for descriptions of some of the useful variables.
1481 Defaults for the options are specified in brackets.
1484 -h, --help display this help and exit
1485 --help=short display options specific to this package
1486 --help=recursive display the short help of all the included packages
1487 -V, --version display version information and exit
1488 -q, --quiet, --silent do not print \`checking...' messages
1489 --cache-file=FILE cache test results in FILE [disabled]
1490 -C, --config-cache alias for \`--cache-file=config.cache'
1491 -n, --no-create do not create output files
1492 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494 Installation directories:
1495 --prefix=PREFIX install architecture-independent files in PREFIX
1496 [$ac_default_prefix]
1497 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1505 For better control, use the options below.
1507 Fine tuning of the installation directories:
1508 --bindir=DIR user executables [EPREFIX/bin]
1509 --sbindir=DIR system admin executables [EPREFIX/sbin]
1510 --libexecdir=DIR program executables [EPREFIX/libexec]
1511 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1512 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1513 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1514 --libdir=DIR object code libraries [EPREFIX/lib]
1515 --includedir=DIR C header files [PREFIX/include]
1516 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1517 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1518 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1519 --infodir=DIR info documentation [DATAROOTDIR/info]
1520 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1521 --mandir=DIR man documentation [DATAROOTDIR/man]
1522 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1523 --htmldir=DIR html documentation [DOCDIR]
1524 --dvidir=DIR dvi documentation [DOCDIR]
1525 --pdfdir=DIR pdf documentation [DOCDIR]
1526 --psdir=DIR ps documentation [DOCDIR]
1532 --program-prefix=PREFIX prepend PREFIX to installed program names
1533 --program-suffix=SUFFIX append SUFFIX to installed program names
1534 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1537 --x-includes=DIR X include files are
in DIR
1538 --x-libraries=DIR X library files are
in DIR
1541 --build=BUILD configure
for building on BUILD
[guessed
]
1542 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1543 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1547 if test -n "$ac_init_help"; then
1552 --disable-option-checking ignore unrecognized
--enable/--with options
1553 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1554 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1555 --enable-maintainer-mode enable make rules and dependencies not useful
1556 (and sometimes confusing
) to the casual installer
1557 --enable-plugins Enable support
for plugins
(defaults no
)
1558 --disable-largefile omit support
for large files
1559 --disable-dependency-tracking speeds up one-time build
1560 --enable-dependency-tracking do not reject slow dependency extractors
1561 --enable-targets=TARGETS
1562 alternative target configurations
1563 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1564 --disable-gdbcli disable command-line interface
(CLI
)
1565 --disable-gdbmi disable machine-interface
(MI
)
1566 --enable-tui enable full-screen terminal user interface
(TUI
)
1567 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1568 --enable-profiling enable profiling of GDB
1569 --disable-rpath do not hardcode runtime library paths
1570 --enable-werror treat compile warnings as errors
1571 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1572 --enable-gdb-build-warnings
1573 enable GDB specific build-time compiler warnings
if
1575 --enable-sim link gdb with simulator
1576 --enable-multi-ice build the multi-ice-gdb-server
1579 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1580 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1581 --with-separate-debug-dir=PATH
1582 look for global separate debug info
in this path
1584 --with-gdb-datadir=PATH
look for global separate data files
in this path
1586 --with-relocated-sources=PATH
1587 automatically relocate this path
for source files
1588 --with-libunwind use libunwind frame unwinding support
1589 --with-curses use the curses library instead of the termcap
1591 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1592 --with-bugurl=URL Direct users to URL to report a bug
1593 --with-libiconv-prefix=DIR
1594 search
for libiconv
in DIR
/include and DIR
/lib
1595 --with-system-readline use installed readline library
1596 --with-expat include expat support
(auto
/yes
/no
)
1597 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1598 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1599 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1600 --with-python include python support (auto/yes/no/<path>)
1601 --without-included-regex
1602 don't use included regex
; this is the default on
1603 systems with version
2 of the GNU C library
(use
1604 with caution on other system
)
1605 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1606 --with-system-gdbinit=PATH
1607 automatically load a system-wide gdbinit
file
1608 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1609 --with-tk directory containing tk configuration
(tkConfig.sh
)
1610 --with-x use the X Window System
1612 Some influential environment variables
:
1613 CC C compiler
command
1614 CFLAGS C compiler flags
1615 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1616 nonstandard directory
<lib dir
>
1617 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1618 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1619 you have headers
in a nonstandard directory
<include dir
>
1621 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1622 the first program found out of: `bison
-y', `byacc', `yacc'.
1623 YFLAGS The list of arguments that will be passed by default to $YACC.
1624 This script will default YFLAGS to the empty string to avoid a
1625 default value of `-d' given by some make applications.
1626 XMKMF Path to xmkmf, Makefile generator for X Window System
1628 Use these variables to override the choices made by `configure' or to
help
1629 it to
find libraries and programs with nonstandard names
/locations.
1631 Report bugs to the package provider.
1636 if test "$ac_init_help" = "recursive"; then
1637 # If there are subdirs, report their specific --help.
1638 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1639 test -d "$ac_dir" ||
1640 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1645 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1647 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1648 # A ".." for each directory in $ac_dir_suffix.
1649 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1650 case $ac_top_builddir_sub in
1651 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1652 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1655 ac_abs_top_builddir
=$ac_pwd
1656 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1657 # for backward compatibility:
1658 ac_top_builddir
=$ac_top_build_prefix
1661 .
) # We are building in place.
1663 ac_top_srcdir
=$ac_top_builddir_sub
1664 ac_abs_top_srcdir
=$ac_pwd ;;
1665 [\\/]* | ?
:[\\/]* ) # Absolute name.
1666 ac_srcdir
=$srcdir$ac_dir_suffix;
1667 ac_top_srcdir
=$srcdir
1668 ac_abs_top_srcdir
=$srcdir ;;
1670 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1671 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1672 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1674 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1676 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1677 # Check for guested configure.
1678 if test -f "$ac_srcdir/configure.gnu"; then
1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1681 elif test -f "$ac_srcdir/configure"; then
1683 $SHELL "$ac_srcdir/configure" --help=recursive
1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1691 test -n "$ac_init_help" && exit $ac_status
1692 if $ac_init_version; then
1695 generated by GNU Autoconf
2.64
1697 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1698 This configure
script is free software
; the Free Software Foundation
1699 gives unlimited permission to copy
, distribute and modify it.
1704 ## ------------------------ ##
1705 ## Autoconf initialization. ##
1706 ## ------------------------ ##
1708 # ac_fn_c_try_compile LINENO
1709 # --------------------------
1710 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_compile
()
1713 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1714 rm -f conftest.
$ac_objext
1715 if { { ac_try
="$ac_compile"
1717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_compile") 2>conftest.err
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest.$ac_objext; then :
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 } # ac_fn_c_try_compile
1746 # ac_fn_c_try_cpp LINENO
1747 # ----------------------
1748 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_cpp conftest.$ac_ext"
1754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1755 *) ac_try_echo
=$ac_try;;
1757 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761 if test -s conftest.err
; then
1762 grep -v '^ *+' conftest.err
>conftest.er1
1763 cat conftest.er1
>&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } >/dev
/null
&& {
1768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.
$ac_ext >&5
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1783 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1786 # the include files in INCLUDES and setting the cache variable VAR
1788 ac_fn_c_check_header_mongrel
()
1790 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1791 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1795 $as_echo_n "(cached) " >&6
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1801 # Is the header compilable?
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1803 $as_echo_n "checking $2 usability... " >&6; }
1804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1809 if ac_fn_c_try_compile
"$LINENO"; then :
1810 ac_header_compiler
=yes
1812 ac_header_compiler
=no
1814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1816 $as_echo "$ac_header_compiler" >&6; }
1818 # Is the header present?
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1820 $as_echo_n "checking $2 presence... " >&6; }
1821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1825 if ac_fn_c_try_cpp
"$LINENO"; then :
1826 ac_header_preproc
=yes
1828 ac_header_preproc
=no
1830 rm -f conftest.err conftest.
$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1832 $as_echo "$ac_header_preproc" >&6; }
1834 # So? What about this header?
1835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1838 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1840 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1844 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1846 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1848 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1850 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858 $as_echo_n "(cached) " >&6
1860 eval "$3=\$ac_header_compiler"
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1868 } # ac_fn_c_check_header_mongrel
1870 # ac_fn_c_try_run LINENO
1871 # ----------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1873 # that executables *can* be run.
1876 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1877 if { { ac_try
="$ac_link"
1879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>&5
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1888 { { case "(($ac_try" in
1889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1890 *) ac_try_echo
=$ac_try;;
1892 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_try") 2>&5
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; }; }; then :
1900 $as_echo "$as_me: program exited with status $ac_status" >&5
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.
$ac_ext >&5
1904 ac_retval
=$ac_status
1906 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1912 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1913 # -------------------------------------------------------
1914 # Tests whether HEADER exists and can be compiled using the include files in
1915 # INCLUDES, setting the cache variable VAR accordingly.
1916 ac_fn_c_check_header_compile
()
1918 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1922 $as_echo_n "(cached) " >&6
1924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1929 if ac_fn_c_try_compile
"$LINENO"; then :
1934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1941 } # ac_fn_c_check_header_compile
1943 # ac_fn_c_try_link LINENO
1944 # -----------------------
1945 # Try to link conftest.$ac_ext, and return whether this succeeded.
1948 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1949 rm -f conftest.
$ac_objext conftest
$ac_exeext
1950 if { { ac_try
="$ac_link"
1952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_link") 2>conftest.err
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } && {
1966 test -z "$ac_c_werror_flag" ||
1967 test ! -s conftest.err
1968 } && test -s conftest$ac_exeext && {
1969 test "$cross_compiling" = yes ||
1970 $as_test_x conftest$ac_exeext
1974 $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1979 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1980 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1981 # interfere with the next link command; also delete a directory that is
1982 # left behind by Apple's compiler. We do this before executing the actions.
1983 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987 } # ac_fn_c_try_link
1989 # ac_fn_c_check_func LINENO FUNC VAR
1990 # ----------------------------------
1991 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1992 ac_fn_c_check_func ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1998 $as_echo_n "(cached) " >&6
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2004 #define $2 innocuous_$2
2006 /* System header to define __stub macros and hopefully few prototypes,
2007 which can conflict with char $2 (); below.
2008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2009 <limits.h> exists even on freestanding compilers. */
2012 # include <limits.h>
2014 # include <assert.h>
2019 /* Override any GCC internal prototype to avoid an error.
2020 Use char because int might match the return type of a GCC
2021 builtin and then its argument prototype would still apply. */
2026 /* The GNU C library defines this for functions which it implements
2027 to always fail with ENOSYS. Some functions are actually named
2028 something starting with __ and the normal name is an alias. */
2029 #if defined __stub_$2 || defined __stub___$2
2041 if ac_fn_c_try_link "$LINENO"; then :
2046 rm -f core conftest.err conftest.$ac_objext \
2047 conftest$ac_exeext conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 } # ac_fn_c_check_func
2056 # ac_fn_c_check_decl LINENO SYMBOL VAR
2057 # ------------------------------------
2058 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2059 ac_fn_c_check_decl ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2063 $as_echo_n "checking whether $2 is declared... " >&6; }
2064 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2065 $as_echo_n "(cached) " >&6
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2081 if ac_fn_c_try_compile "$LINENO"; then :
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093 } # ac_fn_c_check_decl
2095 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2096 # --------------------------------------------
2097 # Tries to find the compile-time value of EXPR in a program that includes
2098 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2100 ac_fn_c_compute_int ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 if test "$cross_compiling" = yes; then
2104 # Depending upon the size, compute the lo and hi bounds.
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2111 static int test_array [1 - 2 * !(($2) >= 0)];
2118 if ac_fn_c_try_compile "$LINENO"; then :
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2127 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135 ac_hi=$ac_mid; break
2137 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2138 if test $ac_lo -le $ac_mid; then
2142 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 static int test_array [1 - 2 * !(($2) < 0)];
2160 if ac_fn_c_try_compile "$LINENO"; then :
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2169 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 ac_lo=$ac_mid; break
2179 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2180 if test $ac_mid -le $ac_hi; then
2184 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 # Binary search between lo and hi bounds.
2195 while test "x$ac_lo" != "x$ac_hi"; do
2196 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2203 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2210 if ac_fn_c_try_compile "$LINENO"; then :
2213 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2225 static long int longval () { return $2; }
2226 static unsigned long int ulongval () { return $2; }
2233 FILE *f = fopen ("conftest.val", "w");
2238 long int i = longval ();
2241 fprintf (f, "%ld", i);
2245 unsigned long int i = ulongval ();
2248 fprintf (f, "%lu", i);
2250 /* Do not output a trailing newline, as this causes \r\n confusion
2251 on some platforms. */
2252 return ferror (f) || fclose (f) != 0;
2258 if ac_fn_c_try_run "$LINENO"; then :
2259 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2264 conftest.$ac_objext conftest.beam conftest.$ac_ext
2268 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2271 } # ac_fn_c_compute_int
2273 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2274 # ----------------------------------------------------
2275 # Tries to find if the field MEMBER exists in type AGGR, after including
2276 # INCLUDES, setting cache variable VAR accordingly.
2277 ac_fn_c_check_member ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2281 $as_echo_n "checking for $2.$3... " >&6; }
2282 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2283 $as_echo_n "(cached) " >&6
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2298 if ac_fn_c_try_compile "$LINENO"; then :
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2308 if (sizeof ac_aggr.$3)
2314 if ac_fn_c_try_compile "$LINENO"; then :
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325 $as_echo "$ac_res" >&6; }
2326 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2328 } # ac_fn_c_check_member
2330 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2331 # -------------------------------------------
2332 # Tests whether TYPE exists after having included INCLUDES, setting cache
2333 # variable VAR accordingly.
2334 ac_fn_c_check_type ()
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2338 $as_echo_n "checking for $2... " >&6; }
2339 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2340 $as_echo_n "(cached) " >&6
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2355 if ac_fn_c_try_compile "$LINENO"; then :
2356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357 /* end confdefs.h. */
2368 if ac_fn_c_try_compile "$LINENO"; then :
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2379 $as_echo "$ac_res" >&6; }
2380 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2382 } # ac_fn_c_check_type
2383 cat >config.log <<_ACEOF
2384 This file contains any messages produced by compilers while
2385 running configure, to aid debugging if configure makes a mistake.
2387 It was created by $as_me, which was
2388 generated by GNU Autoconf 2.64. Invocation command line was
2400 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2401 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2402 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2403 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2404 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2406 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2407 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2409 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2410 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2411 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2412 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2413 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2414 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2415 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir=.
2424 $as_echo "PATH: $as_dir"
2440 # Keep a trace of the command line.
2441 # Strip out --no-create and --no-recursion so they do not pile up.
2442 # Strip out --silent because we don't want to record it for future runs.
2443 # Also quote any args containing shell meta-characters.
2444 # Make two passes to allow for proper duplicate-argument suppression.
2448 ac_must_keep_next=false
2454 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2455 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2456 | -silent | --silent | --silen | --sile | --sil)
2459 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2462 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2464 as_fn_append ac_configure_args1 " '$ac_arg'"
2465 if test $ac_must_keep_next = true; then
2466 ac_must_keep_next=false # Got value, back to normal.
2469 *=* | --config-cache | -C | -disable-* | --disable-* \
2470 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2471 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2472 | -with-* | --with-* | -without-* | --without-* | --x)
2473 case "$ac_configure_args0 " in
2474 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2477 -* ) ac_must_keep_next=true ;;
2480 as_fn_append ac_configure_args " '$ac_arg'"
2485 { ac_configure_args0=; unset ac_configure_args0;}
2486 { ac_configure_args1=; unset ac_configure_args1;}
2488 # When interrupted or exit'd, cleanup temporary files, and complete
2489 # config.log. We remove comments because anyway the quotes in there
2490 # would cause problems or look ugly.
2491 # WARNING: Use '\'' to represent an apostrophe within the trap.
2492 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2493 trap 'exit_status=$?
2494 # Save into config.log some information that might help in debugging.
2499 ## ---------------- ##
2500 ## Cache variables. ##
2501 ## ---------------- ##
2504 # The following way of writing the cache mishandles newlines in values,
2506 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2507 eval ac_val=\$$ac_var
2511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2512 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2515 _ | IFS | as_nl) ;; #(
2516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2517 *) { eval $ac_var=; unset $ac_var;} ;;
2522 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2523 *${as_nl}ac_space=\ *)
2525 "s/'\''/'\''\\\\'\'''\''/g;
2526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2529 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2537 ## ----------------- ##
2538 ## Output variables. ##
2539 ## ----------------- ##
2542 for ac_var in $ac_subst_vars
2544 eval ac_val=\$$ac_var
2546 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2548 $as_echo "$ac_var='\''$ac_val'\''"
2552 if test -n "$ac_subst_files"; then
2554 ## ------------------- ##
2555 ## File substitutions. ##
2556 ## ------------------- ##
2559 for ac_var in $ac_subst_files
2561 eval ac_val=\$$ac_var
2563 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2565 $as_echo "$ac_var='\''$ac_val'\''"
2570 if test -s confdefs.h; then
2580 test "$ac_signal" != 0 &&
2581 $as_echo "$as_me: caught signal $ac_signal"
2582 $as_echo "$as_me: exit $exit_status"
2584 rm -f core *.core core.conftest.* &&
2585 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2588 for ac_signal in 1 2 13 15; do
2589 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2593 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2594 rm -f -r conftest* confdefs.h
2596 $as_echo "/* confdefs.h */" > confdefs.h
2598 # Predefined preprocessor variables.
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_NAME "$PACKAGE_NAME"
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_STRING "$PACKAGE_STRING"
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE_URL "$PACKAGE_URL"
2625 # Let the site file select an alternate cache file if it wants to.
2626 # Prefer an explicitly selected file to automatically selected ones.
2629 if test -n "$CONFIG_SITE"; then
2630 ac_site_file1=$CONFIG_SITE
2631 elif test "x$prefix" != xNONE; then
2632 ac_site_file1=$prefix/share/config.site
2633 ac_site_file2=$prefix/etc/config.site
2635 ac_site_file1=$ac_default_prefix/share/config.site
2636 ac_site_file2=$ac_default_prefix/etc/config.site
2638 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2640 test "x$ac_site_file" = xNONE && continue
2641 if test -r "$ac_site_file"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2643 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2644 sed 's/^/| /' "$ac_site_file" >&5
2649 if test -r "$cache_file"; then
2650 # Some versions of bash will fail to source /dev/null (special
2651 # files actually), so we avoid doing that.
2652 if test -f "$cache_file"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2654 $as_echo "$as_me: loading cache $cache_file" >&6;}
2656 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2657 *) . "./$cache_file";;
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2662 $as_echo "$as_me: creating cache $cache_file" >&6;}
2666 gl_header_list="$gl_header_list stdint.h"
2667 gl_header_list="$gl_header_list wchar.h"
2668 gl_header_list="$gl_header_list string.h"
2669 # Check that the precious variables saved in the cache have kept the same
2671 ac_cache_corrupted=false
2672 for ac_var in $ac_precious_vars; do
2673 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2674 eval ac_new_set=\$ac_env_${ac_var}_set
2675 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2676 eval ac_new_val=\$ac_env_${ac_var}_value
2677 case $ac_old_set,$ac_new_set in
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2680 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2681 ac_cache_corrupted=: ;;
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2684 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2685 ac_cache_corrupted=: ;;
2688 if test "x$ac_old_val" != "x$ac_new_val"; then
2689 # differences in whitespace do not lead to failure.
2690 ac_old_val_w=`echo x
$ac_old_val`
2691 ac_new_val_w=`echo x
$ac_new_val`
2692 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2694 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2695 ac_cache_corrupted=:
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2698 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2699 eval $ac_var=\$ac_old_val
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2702 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2704 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2707 # Pass precious variables to config.status.
2708 if test "$ac_new_set" = set; then
2710 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2711 *) ac_arg=$ac_var=$ac_new_val ;;
2713 case " $ac_configure_args " in
2714 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2715 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2719 if $ac_cache_corrupted; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2723 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2724 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2726 ## -------------------- ##
2727 ## Main body of script. ##
2728 ## -------------------- ##
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740 ac_config_headers="$ac_config_headers config.h:config.in"
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2744 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2745 # Check whether --enable-maintainer-mode was given.
2746 if test "${enable_maintainer_mode+set}" = set; then :
2747 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2749 USE_MAINTAINER_MODE=no
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2753 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2754 if test $USE_MAINTAINER_MODE = yes; then
2755 MAINTAINER_MODE_TRUE=
2756 MAINTAINER_MODE_FALSE='#'
2758 MAINTAINER_MODE_TRUE='#'
2759 MAINTAINER_MODE_FALSE=
2762 MAINT=$MAINTAINER_MODE_TRUE
2767 ac_cpp='$CPP $CPPFLAGS'
2768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771 if test -n "$ac_tool_prefix"; then
2772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2773 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if test "${ac_cv_prog_CC+set}" = set; then :
2777 $as_echo_n "(cached) " >&6
2779 if test -n "$CC"; then
2780 ac_cv_prog_CC="$CC" # Let the user override the test.
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 if test -n "$CC"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2802 $as_echo "$CC" >&6; }
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2810 if test -z "$ac_cv_prog_CC"; then
2812 # Extract the first word of "gcc", so it can be a program name with args.
2813 set dummy gcc; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2817 $as_echo_n "(cached) " >&6
2819 if test -n "$ac_ct_CC"; then
2820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 ac_cv_prog_ac_ct_CC="gcc"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2840 if test -n "$ac_ct_CC"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2842 $as_echo "$ac_ct_CC" >&6; }
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2848 if test "x$ac_ct_CC" = x; then
2851 case $cross_compiling:$ac_tool_warned in
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2855 ac_tool_warned=yes ;;
2863 if test -z "$CC"; then
2864 if test -n "$ac_tool_prefix"; then
2865 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2866 set dummy ${ac_tool_prefix}cc; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if test "${ac_cv_prog_CC+set}" = set; then :
2870 $as_echo_n "(cached) " >&6
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC="$CC" # Let the user override the test.
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_CC="${ac_tool_prefix}cc"
2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 if test -n "$CC"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2895 $as_echo "$CC" >&6; }
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2904 if test -z "$CC"; then
2905 # Extract the first word of "cc", so it can be a program name with args.
2906 set dummy cc; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if test "${ac_cv_prog_CC+set}" = set; then :
2910 $as_echo_n "(cached) " >&6
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2924 ac_prog_rejected=yes
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 if test $ac_prog_rejected = yes; then
2936 # We found a bogon in the path, so make sure we never use it.
2937 set dummy $ac_cv_prog_CC
2939 if test $# != 0; then
2940 # We chose a different compiler from the bogus one.
2941 # However, it has the same basename, so the bogon will be chosen
2942 # first if we set CC to just the basename; use the full file name.
2944 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2950 if test -n "$CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2952 $as_echo "$CC" >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 for ac_prog in cl.exe
2964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if test "${ac_cv_prog_CC+set}" = set; then :
2969 $as_echo_n "(cached) " >&6
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 if test -n "$CC"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2994 $as_echo "$CC" >&6; }
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
3001 test -n "$CC" && break
3004 if test -z "$CC"; then
3006 for ac_prog in cl.exe
3008 # Extract the first word of "$ac_prog", so it can be a program name with args.
3009 set dummy $ac_prog; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3013 $as_echo_n "(cached) " >&6
3015 if test -n "$ac_ct_CC"; then
3016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_ac_ct_CC="$ac_prog"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036 if test -n "$ac_ct_CC"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3038 $as_echo "$ac_ct_CC" >&6; }
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3045 test -n "$ac_ct_CC" && break
3048 if test "x$ac_ct_CC" = x; then
3051 case $cross_compiling:$ac_tool_warned in
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3055 ac_tool_warned=yes ;;
3064 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066 as_fn_error "no acceptable C compiler found
in \
$PATH
3067 See \
`config.log' for more details." "$LINENO" 5; }
3069 # Provide some information about the compiler.
3070 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3073 for ac_option in --version -v -V -qversion; do
3074 { { ac_try="$ac_compiler $ac_option >&5"
3076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3077 *) ac_try_echo
=$ac_try;;
3079 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080 $as_echo "$ac_try_echo"; } >&5
3081 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3083 if test -s conftest.err
; then
3085 ... rest of stderr output deleted ...
3086 10q' conftest.err
>conftest.er1
3087 cat conftest.er1
>&5
3088 rm -f conftest.er1 conftest.err
3090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3091 test $ac_status = 0; }
3094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3095 /* end confdefs.h. */
3105 ac_clean_files_save
=$ac_clean_files
3106 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3107 # Try to create an executable without -o first, disregard a.out.
3108 # It will help us diagnose broken compilers, and finding out an intuition
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3111 $as_echo_n "checking for C compiler default output file name... " >&6; }
3112 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3114 # The possible output files:
3115 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3118 for ac_file
in $ac_files
3121 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3122 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3127 if { { ac_try
="$ac_link_default"
3129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133 $as_echo "$ac_try_echo"; } >&5
3134 (eval "$ac_link_default") 2>&5
3136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137 test $ac_status = 0; }; then :
3138 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3139 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3140 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3141 # so that the user can short-circuit this test for compilers unknown to
3143 for ac_file in $ac_files ''
3145 test -f "$ac_file" || continue
3147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3150 # We found the default executable, but exeext='' is most
3154 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3158 # We set ac_cv_exeext here because the later test for it is not
3159 # safe: cross compilers may not add the suffix if given an `-o'
3160 # argument, so we may need to know it at that point already.
3161 # Even if this section looks crufty: it has the advantage of
3168 test "$ac_cv_exeext" = no && ac_cv_exeext=
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3174 $as_echo "$ac_file" >&6; }
3175 if test -z "$ac_file"; then :
3176 $as_echo "$as_me: failed program was:" >&5
3177 sed 's
/^
/|
/' conftest.$ac_ext >&5
3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3181 { as_fn_set_status 77
3182 as_fn_error "C compiler cannot create executables
3183 See \`config.log
' for more details." "$LINENO" 5; }; }
3185 ac_exeext=$ac_cv_exeext
3187 # Check that the compiler produces executables we can run. If not, either
3188 # the compiler is broken, or we cross compile.
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3190 $as_echo_n "checking whether the C compiler works... " >&6; }
3191 # If not cross compiling, check that we can run a simple program.
3192 if test "$cross_compiling" != yes; then
3193 if { ac_try='.
/$ac_file'
3194 { { case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_try") 2>&5
3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }; }; then
3206 if test "$cross_compiling" = maybe; then
3209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3211 as_fn_error "cannot run C compiled programs.
3212 If you meant to cross compile, use \`--host'.
3213 See \`config.log' for more details.
" "$LINENO" 5; }
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3218 $as_echo "yes" >&6; }
3220 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3221 ac_clean_files=$ac_clean_files_save
3222 # Check that the compiler produces executables we can run. If not, either
3223 # the compiler is broken, or we cross compile.
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3225 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3227 $as_echo "$cross_compiling" >&6; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3230 $as_echo_n "checking
for suffix of executables...
" >&6; }
3231 if { { ac_try="$ac_link"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_link") 2>&5
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3241 test $ac_status = 0; }; then :
3242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3243 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3244 # work properly (i.e., refer to `conftest.exe'), while it won't with
3246 for ac_file in conftest.exe conftest conftest.*; do
3247 test -f "$ac_file" || continue
3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error "cannot compute suffix of executables: cannot compile and link
3259 See \`config.log' for more details.
" "$LINENO" 5; }
3261 rm -f conftest$ac_cv_exeext
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3263 $as_echo "$ac_cv_exeext" >&6; }
3265 rm -f conftest.$ac_ext
3266 EXEEXT=$ac_cv_exeext
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3269 $as_echo_n "checking
for suffix of object files...
" >&6; }
3270 if test "${ac_cv_objext+set}" = set; then :
3271 $as_echo_n "(cached
) " >&6
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3284 rm -f conftest.o conftest.obj
3285 if { { ac_try="$ac_compile"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 $as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_compile") 2>&5
3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3295 test $ac_status = 0; }; then :
3296 for ac_file in conftest.o conftest.obj conftest.*; do
3297 test -f "$ac_file" || continue;
3299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3300 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3305 $as_echo "$as_me: failed program was
:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error "cannot compute suffix of object files: cannot compile
3311 See \`config.log' for more details.
" "$LINENO" 5; }
3313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3316 $as_echo "$ac_cv_objext" >&6; }
3317 OBJEXT=$ac_cv_objext
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3320 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3321 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3322 $as_echo_n "(cached
) " >&6
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3338 if ac_fn_c_try_compile "$LINENO"; then :
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3348 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3349 if test $ac_compiler_gnu = yes; then
3354 ac_test_CFLAGS=${CFLAGS+set}
3355 ac_save_CFLAGS=$CFLAGS
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3357 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3358 if test "${ac_cv_prog_cc_g+set}" = set; then :
3359 $as_echo_n "(cached
) " >&6
3361 ac_save_c_werror_flag=$ac_c_werror_flag
3362 ac_c_werror_flag=yes
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3376 if ac_fn_c_try_compile "$LINENO"; then :
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3391 if ac_fn_c_try_compile "$LINENO"; then :
3394 ac_c_werror_flag=$ac_save_c_werror_flag
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3407 if ac_fn_c_try_compile "$LINENO"; then :
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 ac_c_werror_flag=$ac_save_c_werror_flag
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3418 $as_echo "$ac_cv_prog_cc_g" >&6; }
3419 if test "$ac_test_CFLAGS" = set; then
3420 CFLAGS=$ac_save_CFLAGS
3421 elif test $ac_cv_prog_cc_g = yes; then
3422 if test "$GCC" = yes; then
3428 if test "$GCC" = yes; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3435 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3436 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3437 $as_echo_n "(cached
) " >&6
3439 ac_cv_prog_cc_c89=no
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3445 #include <sys/types.h>
3446 #include <sys/stat.h>
3447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3448 struct buf { int x; };
3449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3450 static char *e (p, i)
3456 static char *f (char * (*g) (char **, int), char **p, ...)
3461 s = g (p, va_arg (v,int));
3466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3467 function prototypes and stuff, but not '\xHH' hex character constants.
3468 These don't provoke an error unfortunately, instead are silently treated
3469 as 'x'. The following induces an error, until -std is added to get
3470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3471 array size at least. It's necessary to write '\x00'==0 to get something
3472 that's true only with -std. */
3473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3475 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3476 inside strings and character constants. */
3478 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3480 int test (int i, double x);
3481 struct s1 {int (*f) (int a);};
3482 struct s2 {int (*f) (double a);};
3483 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3489 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3494 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3495 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3497 CC="$ac_save_CC $ac_arg"
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_cv_prog_cc_c89=$ac_arg
3501 rm -f core conftest.err conftest.$ac_objext
3502 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3504 rm -f conftest.$ac_ext
3509 case "x
$ac_cv_prog_cc_c89" in
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3512 $as_echo "none needed
" >&6; } ;;
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3515 $as_echo "unsupported
" >&6; } ;;
3517 CC="$CC $ac_cv_prog_cc_c89"
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3519 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3521 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3538 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3539 # On Suns, sometimes $CPP names a directory.
3540 if test -n "$CPP" && test -d "$CPP"; then
3543 if test -z "$CPP"; then
3544 if test "${ac_cv_prog_CPP+set}" = set; then :
3545 $as_echo_n "(cached
) " >&6
3547 # Double quotes because CPP needs to be expanded
3548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3551 for ac_c_preproc_warn_flag in '' yes
3553 # Use a header file that comes with gcc, so configuring glibc
3554 # with a fresh cross-compiler works.
3555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3556 # <limits.h> exists even on freestanding compilers.
3557 # On the NeXT, cc -E runs the code through the compiler's parser,
3558 # not just through cpp. "Syntax error
" is here to catch this case.
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3562 # include <limits.h>
3564 # include <assert.h>
3568 if ac_fn_c_try_cpp "$LINENO"; then :
3571 # Broken: fails on valid input.
3574 rm -f conftest.err conftest.$ac_ext
3576 # OK, works on sane cases. Now check whether nonexistent headers
3577 # can be detected and how.
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580 #include <ac_nonexistent.h>
3582 if ac_fn_c_try_cpp "$LINENO"; then :
3583 # Broken: success on invalid input.
3586 # Passes both tests.
3590 rm -f conftest.err conftest.$ac_ext
3593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3594 rm -f conftest.err conftest.$ac_ext
3595 if $ac_preproc_ok; then :
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3608 $as_echo "$CPP" >&6; }
3610 for ac_c_preproc_warn_flag in '' yes
3612 # Use a header file that comes with gcc, so configuring glibc
3613 # with a fresh cross-compiler works.
3614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3615 # <limits.h> exists even on freestanding compilers.
3616 # On the NeXT, cc -E runs the code through the compiler's parser,
3617 # not just through cpp. "Syntax error
" is here to catch this case.
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3621 # include <limits.h>
3623 # include <assert.h>
3627 if ac_fn_c_try_cpp "$LINENO"; then :
3630 # Broken: fails on valid input.
3633 rm -f conftest.err conftest.$ac_ext
3635 # OK, works on sane cases. Now check whether nonexistent headers
3636 # can be detected and how.
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639 #include <ac_nonexistent.h>
3641 if ac_fn_c_try_cpp "$LINENO"; then :
3642 # Broken: success on invalid input.
3645 # Passes both tests.
3649 rm -f conftest.err conftest.$ac_ext
3652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3653 rm -f conftest.err conftest.$ac_ext
3654 if $ac_preproc_ok; then :
3657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3660 See \`config.log' for more details.
" "$LINENO" 5; }
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3671 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3672 if test "${ac_cv_path_GREP+set}" = set; then :
3673 $as_echo_n "(cached
) " >&6
3675 if test -z "$GREP"; then
3676 ac_path_GREP_found=false
3677 # Loop through the user's path and test for each of PROGNAME-LIST
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3682 test -z "$as_dir" && as_dir=.
3683 for ac_prog in grep ggrep; do
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3686 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3687 # Check for GNU ac_path_GREP and select it if it is found.
3688 # Check for GNU $ac_path_GREP
3689 case `"$ac_path_GREP" --version 2>&1` in
3691 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3694 $as_echo_n 0123456789 >"conftest.
in"
3697 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3698 mv "conftest.tmp
" "conftest.
in"
3699 cp "conftest.
in" "conftest.
nl"
3700 $as_echo 'GREP' >> "conftest.
nl"
3701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3702 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3703 as_fn_arith $ac_count + 1 && ac_count=$as_val
3704 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3705 # Best one so far, save it but keep looking for a better one
3706 ac_cv_path_GREP="$ac_path_GREP"
3707 ac_path_GREP_max=$ac_count
3709 # 10*(2^10) chars as input seems more than enough
3710 test $ac_count -gt 10 && break
3712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3715 $ac_path_GREP_found && break 3
3720 if test -z "$ac_cv_path_GREP"; then
3721 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3724 ac_cv_path_GREP=$GREP
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3729 $as_echo "$ac_cv_path_GREP" >&6; }
3730 GREP="$ac_cv_path_GREP"
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3734 $as_echo_n "checking
for egrep...
" >&6; }
3735 if test "${ac_cv_path_EGREP+set}" = set; then :
3736 $as_echo_n "(cached
) " >&6
3738 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3739 then ac_cv_path_EGREP="$GREP -E"
3741 if test -z "$EGREP"; then
3742 ac_path_EGREP_found=false
3743 # Loop through the user's path and test for each of PROGNAME-LIST
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748 test -z "$as_dir" && as_dir=.
3749 for ac_prog in egrep; do
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3752 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3753 # Check for GNU ac_path_EGREP and select it if it is found.
3754 # Check for GNU $ac_path_EGREP
3755 case `"$ac_path_EGREP" --version 2>&1` in
3757 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3760 $as_echo_n 0123456789 >"conftest.
in"
3763 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3764 mv "conftest.tmp
" "conftest.
in"
3765 cp "conftest.
in" "conftest.
nl"
3766 $as_echo 'EGREP' >> "conftest.
nl"
3767 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3768 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3769 as_fn_arith $ac_count + 1 && ac_count=$as_val
3770 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3771 # Best one so far, save it but keep looking for a better one
3772 ac_cv_path_EGREP="$ac_path_EGREP"
3773 ac_path_EGREP_max=$ac_count
3775 # 10*(2^10) chars as input seems more than enough
3776 test $ac_count -gt 10 && break
3778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781 $ac_path_EGREP_found && break 3
3786 if test -z "$ac_cv_path_EGREP"; then
3787 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3790 ac_cv_path_EGREP=$EGREP
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3796 $as_echo "$ac_cv_path_EGREP" >&6; }
3797 EGREP="$ac_cv_path_EGREP"
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3801 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3802 if test "${ac_cv_header_stdc+set}" = set; then :
3803 $as_echo_n "(cached
) " >&6
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_cv_header_stdc=yes
3823 ac_cv_header_stdc=no
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 if test $ac_cv_header_stdc = yes; then
3828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3834 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3835 $EGREP "memchr
" >/dev/null 2>&1; then :
3838 ac_cv_header_stdc=no
3844 if test $ac_cv_header_stdc = yes; then
3845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3851 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3852 $EGREP "free
" >/dev/null 2>&1; then :
3855 ac_cv_header_stdc=no
3861 if test $ac_cv_header_stdc = yes; then
3862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3863 if test "$cross_compiling" = yes; then :
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3870 #if ((' ' & 0x0FF) == 0x020)
3871 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3872 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3874 # define ISLOWER(c) \
3875 (('a' <= (c) && (c) <= 'i') \
3876 || ('j' <= (c) && (c) <= 'r') \
3877 || ('s' <= (c) && (c) <= 'z'))
3878 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3881 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3886 for (i = 0; i < 256; i++)
3887 if (XOR (islower (i), ISLOWER (i))
3888 || toupper (i) != TOUPPER (i))
3893 if ac_fn_c_try_run "$LINENO"; then :
3896 ac_cv_header_stdc=no
3898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3899 conftest.$ac_objext conftest.beam conftest.$ac_ext
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3905 $as_echo "$ac_cv_header_stdc" >&6; }
3906 if test $ac_cv_header_stdc = yes; then
3908 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3912 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3913 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3914 inttypes.h stdint.h unistd.h
3916 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3917 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3919 eval as_val
=\$
$as_ac_Header
3920 if test "x$as_val" = x
""yes; then :
3921 cat >>confdefs.h
<<_ACEOF
3922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3931 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3932 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3939 if test "$MINIX" = yes; then
3941 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3944 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3947 $as_echo "#define _MINIX 1" >>confdefs.h
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3953 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3954 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3955 $as_echo_n "(cached) " >&6
3957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3960 # define __EXTENSIONS__ 1
3961 $ac_includes_default
3970 if ac_fn_c_try_compile
"$LINENO"; then :
3971 ac_cv_safe_to_define___extensions__
=yes
3973 ac_cv_safe_to_define___extensions__
=no
3975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3978 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3979 test $ac_cv_safe_to_define___extensions__ = yes &&
3980 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3982 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3984 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3986 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3988 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3991 if test -n "$ac_tool_prefix"; then
3992 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3993 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995 $as_echo_n "checking for $ac_word... " >&6; }
3996 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3999 if test -n "$RANLIB"; then
4000 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4006 test -z "$as_dir" && as_dir
=.
4007 for ac_exec_ext
in '' $ac_executable_extensions; do
4008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 RANLIB
=$ac_cv_prog_RANLIB
4020 if test -n "$RANLIB"; then
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4022 $as_echo "$RANLIB" >&6; }
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 $as_echo "no" >&6; }
4030 if test -z "$ac_cv_prog_RANLIB"; then
4031 ac_ct_RANLIB
=$RANLIB
4032 # Extract the first word of "ranlib", so it can be a program name with args.
4033 set dummy ranlib
; ac_word
=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4039 if test -n "$ac_ct_RANLIB"; then
4040 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir
=.
4047 for ac_exec_ext
in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4060 if test -n "$ac_ct_RANLIB"; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4062 $as_echo "$ac_ct_RANLIB" >&6; }
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4068 if test "x$ac_ct_RANLIB" = x
; then
4071 case $cross_compiling:$ac_tool_warned in
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4075 ac_tool_warned
=yes ;;
4077 RANLIB
=$ac_ct_RANLIB
4080 RANLIB
="$ac_cv_prog_RANLIB"
4089 # As the $enable_largefile decision depends on --enable-plugins we must set it
4090 # even in directories otherwise not depending on the $plugins option.
4093 # Check whether --enable-plugins was given.
4094 if test "${enable_plugins+set}" = set; then :
4095 enableval
=$enable_plugins; case "${enableval}" in
4096 yes |
"") plugins
=yes ;;
4107 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4108 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4109 # are mutually exclusive; and without procfs support, the bfd/ elf module
4110 # cannot provide certain routines such as elfcore_write_prpsinfo
4111 # or elfcore_write_prstatus. So unless the user explicitly requested
4112 # large-file support through the --enable-largefile switch, disable
4113 # large-file support in favor of procfs support.
4114 test "${target}" = "${host}" -a "x$plugins" = xno \
4115 && : ${enable_largefile="no"}
4119 # Check whether --enable-largefile was given.
4120 if test "${enable_largefile+set}" = set; then :
4121 enableval
=$enable_largefile;
4124 if test "$enable_largefile" != no
; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4127 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4128 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
4131 ac_cv_sys_largefile_CC
=no
4132 if test "$GCC" != yes; then
4135 # IRIX 6.2 and later do not support large files by default,
4136 # so use the C compiler's -n32 option if that helps.
4137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139 #include <sys/types.h>
4140 /* Check that off_t can represent 2**63 - 1 correctly.
4141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4142 since some C++ compilers masquerading as C compilers
4143 incorrectly reject 9223372036854775807. */
4144 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4146 && LARGE_OFF_T % 2147483647 == 1)
4156 if ac_fn_c_try_compile
"$LINENO"; then :
4159 rm -f core conftest.err conftest.
$ac_objext
4161 if ac_fn_c_try_compile
"$LINENO"; then :
4162 ac_cv_sys_largefile_CC
=' -n32'; break
4164 rm -f core conftest.err conftest.
$ac_objext
4168 rm -f conftest.
$ac_ext
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4172 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4173 if test "$ac_cv_sys_largefile_CC" != no
; then
4174 CC
=$CC$ac_cv_sys_largefile_CC
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4178 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4179 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4180 $as_echo_n "(cached) " >&6
4183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #include <sys/types.h>
4186 /* Check that off_t can represent 2**63 - 1 correctly.
4187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4188 since some C++ compilers masquerading as C compilers
4189 incorrectly reject 9223372036854775807. */
4190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4192 && LARGE_OFF_T % 2147483647 == 1)
4202 if ac_fn_c_try_compile
"$LINENO"; then :
4203 ac_cv_sys_file_offset_bits
=no
; break
4205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #define _FILE_OFFSET_BITS 64
4209 #include <sys/types.h>
4210 /* Check that off_t can represent 2**63 - 1 correctly.
4211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4212 since some C++ compilers masquerading as C compilers
4213 incorrectly reject 9223372036854775807. */
4214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4216 && LARGE_OFF_T % 2147483647 == 1)
4226 if ac_fn_c_try_compile
"$LINENO"; then :
4227 ac_cv_sys_file_offset_bits
=64; break
4229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4230 ac_cv_sys_file_offset_bits
=unknown
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4235 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4236 case $ac_cv_sys_file_offset_bits in #(
4239 cat >>confdefs.h
<<_ACEOF
4240 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4245 if test $ac_cv_sys_file_offset_bits = unknown
; then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4247 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4248 if test "${ac_cv_sys_large_files+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #include <sys/types.h>
4255 /* Check that off_t can represent 2**63 - 1 correctly.
4256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4257 since some C++ compilers masquerading as C compilers
4258 incorrectly reject 9223372036854775807. */
4259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4261 && LARGE_OFF_T % 2147483647 == 1)
4271 if ac_fn_c_try_compile
"$LINENO"; then :
4272 ac_cv_sys_large_files
=no
; break
4274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277 #define _LARGE_FILES 1
4278 #include <sys/types.h>
4279 /* Check that off_t can represent 2**63 - 1 correctly.
4280 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4281 since some C++ compilers masquerading as C compilers
4282 incorrectly reject 9223372036854775807. */
4283 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4284 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4285 && LARGE_OFF_T % 2147483647 == 1)
4295 if ac_fn_c_try_compile
"$LINENO"; then :
4296 ac_cv_sys_large_files
=1; break
4298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4299 ac_cv_sys_large_files
=unknown
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4304 $as_echo "$ac_cv_sys_large_files" >&6; }
4305 case $ac_cv_sys_large_files in #(
4308 cat >>confdefs.h
<<_ACEOF
4309 #define _LARGE_FILES $ac_cv_sys_large_files
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4322 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4323 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4324 $as_echo_n "(cached) " >&6
4326 am_cv_prog_cc_stdc
=no
4328 # Don't try gcc -ansi; that turns off useful extensions and
4329 # breaks some systems' header files.
4330 # AIX -qlanglvl=ansi
4331 # Ultrix and OSF/1 -std1
4332 # HP-UX 10.20 and later -Ae
4333 # HP-UX older versions -Aa -D_HPUX_SOURCE
4334 # SVR4 -Xc -D__EXTENSIONS__
4335 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4337 CC
="$ac_save_CC $ac_arg"
4338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4342 #include <sys/types.h>
4343 #include <sys/stat.h>
4344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4345 struct buf { int x; };
4346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4347 static char *e (p, i)
4353 static char *f (char * (*g) (char **, int), char **p, ...)
4358 s = g (p, va_arg (v,int));
4362 int test (int i, double x);
4363 struct s1 {int (*f) (int a);};
4364 struct s2 {int (*f) (double a);};
4365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4379 if ac_fn_c_try_compile
"$LINENO"; then :
4380 am_cv_prog_cc_stdc
="$ac_arg"; break
4382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4388 if test -z "$am_cv_prog_cc_stdc"; then
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4390 $as_echo "none needed" >&6; }
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4393 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4395 case "x$am_cv_prog_cc_stdc" in
4397 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4402 for ac_dir
in ..
"$srcdir"/..
; do
4403 for ac_t
in install-sh
install.sh shtool
; do
4404 if test -f "$ac_dir/$ac_t"; then
4406 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4411 if test -z "$ac_aux_dir"; then
4412 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4415 # These three variables are undocumented and unsupported,
4416 # and are intended to be withdrawn in a future Autoconf release.
4417 # They can cause serious problems if a builder's source tree is in a directory
4418 # whose full name contains unusual characters.
4419 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4420 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4421 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4424 # Make sure we can run config.sub.
4425 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4426 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4429 $as_echo_n "checking build system type... " >&6; }
4430 if test "${ac_cv_build+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4433 ac_build_alias
=$build_alias
4434 test "x$ac_build_alias" = x
&&
4435 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4436 test "x$ac_build_alias" = x
&&
4437 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4438 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4439 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4443 $as_echo "$ac_cv_build" >&6; }
4444 case $ac_cv_build in
4446 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4449 ac_save_IFS
=$IFS; IFS
='-'
4455 # Remember, the first character of IFS is used to create $*,
4456 # except with old shells:
4459 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4463 $as_echo_n "checking host system type... " >&6; }
4464 if test "${ac_cv_host+set}" = set; then :
4465 $as_echo_n "(cached) " >&6
4467 if test "x$host_alias" = x
; then
4468 ac_cv_host
=$ac_cv_build
4470 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4471 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4476 $as_echo "$ac_cv_host" >&6; }
4479 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4482 ac_save_IFS
=$IFS; IFS
='-'
4488 # Remember, the first character of IFS is used to create $*,
4489 # except with old shells:
4492 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4496 $as_echo_n "checking target system type... " >&6; }
4497 if test "${ac_cv_target+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
4500 if test "x$target_alias" = x
; then
4501 ac_cv_target
=$ac_cv_host
4503 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4504 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4509 $as_echo "$ac_cv_target" >&6; }
4510 case $ac_cv_target in
4512 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4514 target
=$ac_cv_target
4515 ac_save_IFS
=$IFS; IFS
='-'
4521 # Remember, the first character of IFS is used to create $*,
4522 # except with old shells:
4525 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4528 # The aliases save the names the user supplied, while $host etc.
4529 # will get canonicalized.
4530 test -n "$target_alias" &&
4531 test "$program_prefix$program_suffix$program_transform_name" = \
4533 program_prefix
=${target_alias}-
4536 # Dependency checking.
4537 rm -rf .tst
2>/dev
/null
4538 mkdir .tst
2>/dev
/null
4539 if test -d .tst
; then
4544 rmdir .tst
2>/dev
/null
4546 DEPDIR
="${am__leading_dot}deps"
4548 ac_config_commands
="$ac_config_commands depdir"
4551 depcc
="$CC" am_compiler_list
=
4553 am_depcomp
=$ac_aux_dir/depcomp
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4555 $as_echo_n "checking dependency style of $depcc... " >&6; }
4556 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4559 if test -f "$am_depcomp"; then
4560 # We make a subdir and do the tests there. Otherwise we can end up
4561 # making bogus files that we don't know about and never remove. For
4562 # instance it was reported that on HP-UX the gcc test will end up
4563 # making a dummy file named `D' -- because `-MD' means `put the output
4566 # Copy depcomp to subdir because otherwise we won't find it if we're
4567 # using a relative directory.
4568 cp "$am_depcomp" conftest.dir
4570 # We will build objects and dependencies in a subdirectory because
4571 # it helps to detect inapplicable dependency modes. For instance
4572 # both Tru64's cc and ICC support -MD to output dependencies as a
4573 # side effect of compilation, but ICC will put the dependencies in
4574 # the current directory while Tru64 will put them in the object
4578 am_cv_CC_dependencies_compiler_type
=none
4579 if test "$am_compiler_list" = ""; then
4580 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4582 for depmode
in $am_compiler_list; do
4583 if test $depmode = none
; then break; fi
4585 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4586 # Setup a source with many dependencies, because some compilers
4587 # like to wrap large dependency lists on column 80 (with \), and
4588 # we should not choose a depcomp mode which is confused by this.
4590 # We need to recreate these files for each test, as the compiler may
4591 # overwrite some of them when testing with obscure command lines.
4592 # This happens at least with the AIX C compiler.
4594 for i
in 1 2 3 4 5 6; do
4595 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4596 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4597 # Solaris 8's {/usr,}/bin/sh.
4598 touch sub
/conftst
$i.h
4600 echo "include sub/conftest.Po" > confmf
4602 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4603 # mode. It turns out that the SunPro C++ compiler does not properly
4604 # handle `-M -o', and we need to detect this.
4605 depcmd
="depmode=$depmode \
4606 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4608 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4609 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4610 if env
$depcmd > conftest.err
2>&1 &&
4611 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4612 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4613 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4614 # icc doesn't choke on unknown options, it will just issue warnings
4615 # or remarks (even with -Werror). So we grep stderr for any message
4616 # that says an option was ignored or not supported.
4617 # When given -MP, icc 7.0 and 7.1 complain thusly:
4618 # icc: Command line warning: ignoring option '-M'; no argument required
4619 # The diagnosis changed in icc 8.0:
4620 # icc: Command line remark: option '-MP' not supported
4621 if (grep 'ignoring option' conftest.err ||
4622 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4623 am_cv_CC_dependencies_compiler_type
=$depmode
4624 $as_echo "$as_me:$LINENO: success" >&5
4628 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4629 sed -e 's/^/| /' < conftest.err
>&5
4635 am_cv_CC_dependencies_compiler_type
=none
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4640 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4641 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4642 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4643 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4648 # Check for the 'make' the user wants to use.
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy
$ac_prog; ac_word
=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_MAKE+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4658 if test -n "$MAKE"; then
4659 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir
=.
4666 for ac_exec_ext
in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_MAKE
="$ac_prog"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 MAKE
=$ac_cv_prog_MAKE
4679 if test -n "$MAKE"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4681 $as_echo "$MAKE" >&6; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4688 test -n "$MAKE" && break
4692 case "`$MAKE --version 2>&1 | sed 1q`" in
4697 if test "$MAKE_IS_GNU" = yes; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4706 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4708 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4709 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4710 $as_echo_n "(cached) " >&6
4712 cat >conftest.
make <<\_ACEOF
4715 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4717 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4718 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4720 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4722 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4726 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4728 $as_echo "yes" >&6; }
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4733 SET_MAKE
="MAKE=${MAKE-make}"
4748 # If we haven't got the data from the intl directory,
4749 # assume NLS is disabled.
4758 if test -f ..
/intl
/config.intl
; then
4759 . ..
/intl
/config.intl
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4762 $as_echo_n "checking whether NLS is requested... " >&6; }
4763 if test x
"$USE_NLS" != xyes
; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4768 $as_echo "yes" >&6; }
4770 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4774 $as_echo_n "checking for catalogs to be installed... " >&6; }
4775 # Look for .po and .gmo files in the source directory.
4778 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4779 # If there aren't any .gmo files the shell will give us the
4780 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4782 case "$cat" in *\
**)
4785 # The quadruple backslash is collapsed to a double backslash
4786 # by the backticks, then collapsed again by the double quotes,
4787 # leaving us with one backslash in the sed expression (right
4788 # before the dot that mustn't act as a wildcard).
4789 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4790 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4791 # The user is allowed to set LINGUAS to a list of languages to
4792 # install catalogs for. If it's empty that means "all of them."
4793 if test "x$LINGUAS" = x
; then
4794 CATALOGS
="$CATALOGS $cat"
4795 XLINGUAS
="$XLINGUAS $lang"
4797 case "$LINGUAS" in *$lang*)
4798 CATALOGS
="$CATALOGS $cat"
4799 XLINGUAS
="$XLINGUAS $lang"
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4806 $as_echo "$LINGUAS" >&6; }
4819 localedir
='${datadir}/locale'
4822 if test x
"$USE_NLS" = xyes
; then
4823 CONFIG_ALL
="$CONFIG_ALL all-po"
4824 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4825 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4826 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4842 GNULIB_STRCASESTR
=0;
4849 GNULIB_MBSCASECMP
=0;
4850 GNULIB_MBSNCASECMP
=0;
4851 GNULIB_MBSPCASECMP
=0;
4852 GNULIB_MBSCASESTR
=0;
4862 HAVE_DECL_MEMRCHR
=1;
4868 HAVE_DECL_STRNDUP
=1;
4869 HAVE_DECL_STRNLEN
=1;
4873 HAVE_DECL_STRTOK_R
=1;
4874 HAVE_DECL_STRERROR
=1;
4875 HAVE_DECL_STRSIGNAL
=1;
4877 REPLACE_STRSIGNAL
=0;
4879 REPLACE_STRCASESTR
=0;
4883 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
4884 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
4890 cat >>confdefs.h
<<_ACEOF
4891 #define HAVE_DECL_MEMMEM $ac_have_decl
4906 for ac_func
in memmem
4908 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
4909 if test "x$ac_cv_func_memmem" = x
""yes; then :
4910 cat >>confdefs.h
<<_ACEOF
4911 #define HAVE_MEMMEM 1
4916 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
4929 if test $ac_cv_have_decl_memmem = no
; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4936 $as_echo_n "checking for long long int... " >&6; }
4937 if test "${ac_cv_type_long_long_int+set}" = set; then :
4938 $as_echo_n "(cached) " >&6
4940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4943 /* For now, do not test the preprocessor; as of 2007 there are too many
4944 implementations with broken preprocessors. Perhaps this can
4945 be revisited in 2012. In the meantime, code should not expect
4946 #if to work with literals wider than 32 bits. */
4947 /* Test literals. */
4948 long long int ll = 9223372036854775807ll;
4949 long long int nll = -9223372036854775807LL;
4950 unsigned long long int ull = 18446744073709551615ULL;
4951 /* Test constant expressions. */
4952 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4954 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4960 /* Test availability of runtime routines for shift and division. */
4961 long long int llmax = 9223372036854775807ll;
4962 unsigned long long int ullmax = 18446744073709551615ull;
4963 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4964 | (llmax / ll) | (llmax % ll)
4965 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4966 | (ullmax / ull) | (ullmax % ull));
4972 if ac_fn_c_try_link
"$LINENO"; then :
4973 if test "$cross_compiling" = yes; then :
4974 ac_cv_type_long_long_int
=yes
4976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4981 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4982 # define LLONG_MAX (HALF - 1 + HALF)
4987 long long int n = 1;
4991 long long int m = n << i;
4994 if (LLONG_MAX / 2 < m)
5002 if ac_fn_c_try_run
"$LINENO"; then :
5003 ac_cv_type_long_long_int
=yes
5005 ac_cv_type_long_long_int
=no
5007 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5008 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5012 ac_cv_type_long_long_int
=no
5014 rm -f core conftest.err conftest.
$ac_objext \
5015 conftest
$ac_exeext conftest.
$ac_ext
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5018 $as_echo "$ac_cv_type_long_long_int" >&6; }
5019 if test $ac_cv_type_long_long_int = yes; then
5021 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5027 $as_echo_n "checking for unsigned long long int... " >&6; }
5028 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
5031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5034 /* For now, do not test the preprocessor; as of 2007 there are too many
5035 implementations with broken preprocessors. Perhaps this can
5036 be revisited in 2012. In the meantime, code should not expect
5037 #if to work with literals wider than 32 bits. */
5038 /* Test literals. */
5039 long long int ll = 9223372036854775807ll;
5040 long long int nll = -9223372036854775807LL;
5041 unsigned long long int ull = 18446744073709551615ULL;
5042 /* Test constant expressions. */
5043 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5045 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5051 /* Test availability of runtime routines for shift and division. */
5052 long long int llmax = 9223372036854775807ll;
5053 unsigned long long int ullmax = 18446744073709551615ull;
5054 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5055 | (llmax / ll) | (llmax % ll)
5056 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5057 | (ullmax / ull) | (ullmax % ull));
5063 if ac_fn_c_try_link
"$LINENO"; then :
5064 ac_cv_type_unsigned_long_long_int
=yes
5066 ac_cv_type_unsigned_long_long_int
=no
5068 rm -f core conftest.err conftest.
$ac_objext \
5069 conftest
$ac_exeext conftest.
$ac_ext
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5072 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5073 if test $ac_cv_type_unsigned_long_long_int = yes; then
5075 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5082 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5083 if test "${gl_cv_have_include_next+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5086 rm -rf conftestd1 conftestd2
5087 mkdir conftestd1 conftestd2
5088 cat <<EOF > conftestd1/conftest.h
5089 #define DEFINED_IN_CONFTESTD1
5090 #include_next <conftest.h>
5091 #ifdef DEFINED_IN_CONFTESTD2
5094 #error "include_next doesn't work"
5097 cat <<EOF > conftestd2/conftest.h
5098 #ifndef DEFINED_IN_CONFTESTD1
5099 #error "include_next test doesn't work"
5101 #define DEFINED_IN_CONFTESTD2
5103 save_CPPFLAGS
="$CPPFLAGS"
5104 CPPFLAGS
="$CPPFLAGS -Iconftestd1 -Iconftestd2"
5105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107 #include <conftest.h>
5109 if ac_fn_c_try_compile
"$LINENO"; then :
5110 gl_cv_have_include_next
=yes
5112 gl_cv_have_include_next
=no
5114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5115 CPPFLAGS
="$save_CPPFLAGS"
5116 rm -rf conftestd1 conftestd2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5120 $as_echo "$gl_cv_have_include_next" >&6; }
5121 if test $gl_cv_have_include_next = yes; then
5124 $as_echo "#define HAVE_INCLUDE_NEXT 1" >>confdefs.h
5127 INCLUDE_NEXT
=include_next
5129 INCLUDE_NEXT
=include
5137 for ac_header
in $gl_header_list
5139 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5140 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5141 eval as_val
=\$
$as_ac_Header
5142 if test "x$as_val" = x
""yes; then :
5143 cat >>confdefs.h
<<_ACEOF
5144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5161 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5162 if test "${ac_cv_c_restrict+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5166 # The order here caters to the fact that C++ does not require restrict.
5167 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
5168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170 typedef int * int_ptr;
5171 int foo (int_ptr $ac_kw ip) {
5185 if ac_fn_c_try_compile
"$LINENO"; then :
5186 ac_cv_c_restrict
=$ac_kw
5188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5189 test "$ac_cv_c_restrict" != no
&& break
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5194 $as_echo "$ac_cv_c_restrict" >&6; }
5196 case $ac_cv_c_restrict in
5198 no
) $as_echo "#define restrict /**/" >>confdefs.h
5200 *) cat >>confdefs.h
<<_ACEOF
5201 #define restrict $ac_cv_c_restrict
5225 if test $gl_cv_have_include_next = yes; then
5226 gl_cv_next_string_h
='<'string.h
'>'
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5229 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5230 if test "${gl_cv_next_string_h+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5234 if test $ac_cv_header_string_h = yes; then
5235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5240 gl_cv_next_string_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5241 sed -n '\#/string.h#{
5242 s#.*"\(.*/string.h\)".*#\1#
5248 gl_cv_next_string_h
='<'string.h
'>'
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5253 $as_echo "$gl_cv_next_string_h" >&6; }
5255 NEXT_STRING_H
=$gl_cv_next_string_h
5262 HAVE_DECL_WCWIDTH
=1;
5269 GL_COND_LIBTOOL_TRUE
=
5270 GL_COND_LIBTOOL_FALSE
='#'
5272 GL_COND_LIBTOOL_TRUE
='#'
5273 GL_COND_LIBTOOL_FALSE
=
5276 gl_cond_libtool
=false
5282 gl_source_base
='gnulib'
5291 for ac_func
in memchr
5293 ac_fn_c_check_func
"$LINENO" "memchr" "ac_cv_func_memchr"
5294 if test "x$ac_cv_func_memchr" = x
""yes; then :
5295 cat >>confdefs.h
<<_ACEOF
5296 #define HAVE_MEMCHR 1
5301 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5307 if test $ac_cv_func_memchr = no
; then
5309 for ac_header
in bp-sym.h
5311 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5312 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
5313 cat >>confdefs.h
<<_ACEOF
5314 #define HAVE_BP_SYM_H 1
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5326 $as_echo_n "checking for working memcmp... " >&6; }
5327 if test "${ac_cv_func_memcmp_working+set}" = set; then :
5328 $as_echo_n "(cached) " >&6
5330 if test "$cross_compiling" = yes; then :
5331 ac_cv_func_memcmp_working
=no
5333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 $ac_includes_default
5340 /* Some versions of memcmp are not 8-bit clean. */
5341 char c0 = '\100', c1 = '\200', c2 = '\201';
5342 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5345 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5346 or more and with at least one buffer not starting on a 4-byte boundary.
5347 William Lewis provided this test program. */
5352 for (i = 0; i < 4; i++)
5356 strcpy (a, "--------01111111");
5357 strcpy (b, "--------10000000");
5358 if (memcmp (a, b, 16) >= 0)
5368 if ac_fn_c_try_run
"$LINENO"; then :
5369 ac_cv_func_memcmp_working
=yes
5371 ac_cv_func_memcmp_working
=no
5373 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5374 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5379 $as_echo "$ac_cv_func_memcmp_working" >&6; }
5380 test $ac_cv_func_memcmp_working = no
&&
5387 gl_LIBOBJS
="$gl_LIBOBJS memcmp.$ac_objext"
5390 if test $ac_cv_func_memcmp_working = no
; then
5392 $as_echo "#define memcmp rpl_memcmp" >>confdefs.h
5399 if test $ac_cv_have_decl_memmem = yes; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
5401 $as_echo_n "checking whether memmem works in linear time... " >&6; }
5402 if test "${gl_cv_func_memmem_works+set}" = set; then :
5403 $as_echo_n "(cached) " >&6
5405 if test "$cross_compiling" = yes; then :
5406 gl_cv_func_memmem_works
="guessing no"
5408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5411 #include <string.h> /* for memmem */
5412 #include <stdlib.h> /* for malloc */
5413 #include <unistd.h> /* for alarm */
5419 char *haystack = (char *) malloc (2 * m + 1);
5420 char *needle = (char *) malloc (m + 1);
5422 /* Failure to compile this test due to missing alarm is okay,
5423 since all such platforms (mingw) also lack memmem. */
5425 /* Check for quadratic performance. */
5426 if (haystack && needle)
5428 memset (haystack, 'A', 2 * m);
5429 haystack[2 * m] = 'B';
5430 memset (needle, 'A', m);
5432 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5434 /* Check for empty needle behavior. */
5435 return !result || !memmem ("a", 1, 0, 0);
5440 if ac_fn_c_try_run
"$LINENO"; then :
5441 gl_cv_func_memmem_works
=yes
5443 gl_cv_func_memmem_works
=no
5445 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5446 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
5451 $as_echo "$gl_cv_func_memmem_works" >&6; }
5452 if test "$gl_cv_func_memmem_works" != yes; then
5461 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
5477 for ac_func
in memmem
5479 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
5480 if test "x$ac_cv_func_memmem" = x
""yes; then :
5481 cat >>confdefs.h
<<_ACEOF
5482 #define HAVE_MEMMEM 1
5487 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5500 if test $ac_cv_have_decl_memmem = no
; then
5512 if test $ac_cv_type_long_long_int = yes; then
5513 HAVE_LONG_LONG_INT
=1
5515 HAVE_LONG_LONG_INT
=0
5519 if test $ac_cv_type_unsigned_long_long_int = yes; then
5520 HAVE_UNSIGNED_LONG_LONG_INT
=1
5522 HAVE_UNSIGNED_LONG_LONG_INT
=0
5526 if test $ac_cv_header_inttypes_h = yes; then
5533 if test $ac_cv_header_sys_types_h = yes; then
5551 if test $gl_cv_have_include_next = yes; then
5552 gl_cv_next_stdint_h
='<'stdint.h
'>'
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5555 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5556 if test "${gl_cv_next_stdint_h+set}" = set; then :
5557 $as_echo_n "(cached) " >&6
5560 if test $ac_cv_header_stdint_h = yes; then
5561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5566 gl_cv_next_stdint_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5567 sed -n '\#/stdint.h#{
5568 s#.*"\(.*/stdint.h\)".*#\1#
5574 gl_cv_next_stdint_h
='<'stdint.h
'>'
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5579 $as_echo "$gl_cv_next_stdint_h" >&6; }
5581 NEXT_STDINT_H
=$gl_cv_next_stdint_h
5585 if test $ac_cv_header_stdint_h = yes; then
5592 if test $ac_cv_header_stdint_h = yes; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5594 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5595 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5598 gl_cv_header_working_stdint_h
=no
5599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5603 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5604 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5605 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5607 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5608 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5609 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5613 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5614 included before <wchar.h>. */
5625 int8_t a1 = INT8_MAX;
5626 int8_t a1min = INT8_MIN;
5629 int16_t a2 = INT16_MAX;
5630 int16_t a2min = INT16_MIN;
5633 int32_t a3 = INT32_MAX;
5634 int32_t a3min = INT32_MIN;
5637 int64_t a4 = INT64_MAX;
5638 int64_t a4min = INT64_MIN;
5641 uint8_t b1 = UINT8_MAX;
5643 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5646 uint16_t b2 = UINT16_MAX;
5649 uint32_t b3 = UINT32_MAX;
5652 uint64_t b4 = UINT64_MAX;
5654 int_least8_t c1 = INT8_C (0x7f);
5655 int_least8_t c1max = INT_LEAST8_MAX;
5656 int_least8_t c1min = INT_LEAST8_MIN;
5657 int_least16_t c2 = INT16_C (0x7fff);
5658 int_least16_t c2max = INT_LEAST16_MAX;
5659 int_least16_t c2min = INT_LEAST16_MIN;
5660 int_least32_t c3 = INT32_C (0x7fffffff);
5661 int_least32_t c3max = INT_LEAST32_MAX;
5662 int_least32_t c3min = INT_LEAST32_MIN;
5663 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5664 int_least64_t c4max = INT_LEAST64_MAX;
5665 int_least64_t c4min = INT_LEAST64_MIN;
5666 uint_least8_t d1 = UINT8_C (0xff);
5667 uint_least8_t d1max = UINT_LEAST8_MAX;
5668 uint_least16_t d2 = UINT16_C (0xffff);
5669 uint_least16_t d2max = UINT_LEAST16_MAX;
5670 uint_least32_t d3 = UINT32_C (0xffffffff);
5671 uint_least32_t d3max = UINT_LEAST32_MAX;
5672 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5673 uint_least64_t d4max = UINT_LEAST64_MAX;
5674 int_fast8_t e1 = INT_FAST8_MAX;
5675 int_fast8_t e1min = INT_FAST8_MIN;
5676 int_fast16_t e2 = INT_FAST16_MAX;
5677 int_fast16_t e2min = INT_FAST16_MIN;
5678 int_fast32_t e3 = INT_FAST32_MAX;
5679 int_fast32_t e3min = INT_FAST32_MIN;
5680 int_fast64_t e4 = INT_FAST64_MAX;
5681 int_fast64_t e4min = INT_FAST64_MIN;
5682 uint_fast8_t f1 = UINT_FAST8_MAX;
5683 uint_fast16_t f2 = UINT_FAST16_MAX;
5684 uint_fast32_t f3 = UINT_FAST32_MAX;
5685 uint_fast64_t f4 = UINT_FAST64_MAX;
5687 intptr_t g = INTPTR_MAX;
5688 intptr_t gmin = INTPTR_MIN;
5691 uintptr_t h = UINTPTR_MAX;
5693 intmax_t i = INTMAX_MAX;
5694 uintmax_t j = UINTMAX_MAX;
5696 #include <limits.h> /* for CHAR_BIT */
5697 #define TYPE_MINIMUM(t) \
5698 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5699 #define TYPE_MAXIMUM(t) \
5700 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5703 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5704 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5706 /* Detect bug in FreeBSD 6.0 / ia64. */
5707 int check_SIG_ATOMIC:
5708 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5709 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5711 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5713 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5714 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5716 /* Detect bug in mingw. */
5718 WINT_MIN == TYPE_MINIMUM (wint_t)
5719 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5722 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5724 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5726 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5728 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5730 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5733 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5736 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5739 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5741 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5742 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5743 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5744 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5745 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5746 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5747 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5748 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5749 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5750 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5751 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5762 if ac_fn_c_try_compile
"$LINENO"; then :
5763 gl_cv_header_working_stdint_h
=yes
5765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5768 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5770 if test "$gl_cv_header_working_stdint_h" = yes; then
5773 for ac_header
in sys
/inttypes.h sys
/bitypes.h
5775 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5776 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5777 eval as_val
=\$
$as_ac_Header
5778 if test "x$as_val" = x
""yes; then :
5779 cat >>confdefs.h
<<_ACEOF
5780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5787 if test $ac_cv_header_sys_inttypes_h = yes; then
5788 HAVE_SYS_INTTYPES_H
=1
5790 HAVE_SYS_INTTYPES_H
=0
5793 if test $ac_cv_header_sys_bitypes_h = yes; then
5794 HAVE_SYS_BITYPES_H
=1
5796 HAVE_SYS_BITYPES_H
=0
5811 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5813 $as_echo_n "checking for bit size of $gltype... " >&6; }
5814 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5815 $as_echo_n "(cached) " >&6
5817 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5818 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5819 included before <wchar.h>. */
5828 #include <limits.h>"; then :
5834 eval gl_cv_bitsizeof_
${gltype}=\
$result
5837 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5839 $as_echo "$ac_res" >&6; }
5840 eval result
=\
$gl_cv_bitsizeof_${gltype}
5841 if test $result = unknown
; then
5844 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5845 cat >>confdefs.h
<<_ACEOF
5846 #define BITSIZEOF_${GLTYPE} $result
5849 eval BITSIZEOF_
${GLTYPE}=\
$result
5855 for gltype
in sig_atomic_t wchar_t wint_t
; do
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5857 $as_echo_n "checking whether $gltype is signed... " >&6; }
5858 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5859 $as_echo_n "(cached) " >&6
5861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5864 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5865 included before <wchar.h>. */
5874 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5883 if ac_fn_c_try_compile
"$LINENO"; then :
5888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5889 eval gl_cv_type_
${gltype}_signed
=\
$result
5892 eval ac_res
=\
$gl_cv_type_${gltype}_signed
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5894 $as_echo "$ac_res" >&6; }
5895 eval result
=\
$gl_cv_type_${gltype}_signed
5896 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5897 if test "$result" = yes; then
5898 cat >>confdefs.h
<<_ACEOF
5899 #define HAVE_SIGNED_${GLTYPE} 1
5902 eval HAVE_SIGNED_
${GLTYPE}=1
5904 eval HAVE_SIGNED_
${GLTYPE}=0
5909 gl_cv_type_ptrdiff_t_signed
=yes
5910 gl_cv_type_size_t_signed
=no
5913 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5915 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5916 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5917 $as_echo_n "(cached) " >&6
5919 eval gl_cv_type_
${gltype}_suffix
=no
5920 eval result
=\
$gl_cv_type_${gltype}_signed
5921 if test "$result" = yes; then
5926 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
5929 l
) gltype1
='long int';;
5930 ll
) gltype1
='long long int';;
5931 i64
) gltype1
='__int64';;
5932 u
) gltype1
='unsigned int';;
5933 ul
) gltype1
='unsigned long int';;
5934 ull
) gltype1
='unsigned long long int';;
5935 ui64
)gltype1
='unsigned __int64';;
5937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5940 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5941 included before <wchar.h>. */
5951 extern $gltype1 foo;
5960 if ac_fn_c_try_compile
"$LINENO"; then :
5961 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
5963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5964 eval result
=\
$gl_cv_type_${gltype}_suffix
5965 test "$result" != no
&& break
5968 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5970 $as_echo "$ac_res" >&6; }
5971 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5972 eval result
=\
$gl_cv_type_${gltype}_suffix
5973 test "$result" = no
&& result
=
5974 eval ${GLTYPE}_SUFFIX
=\
$result
5975 cat >>confdefs.h
<<_ACEOF
5976 #define ${GLTYPE}_SUFFIX $result
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
5993 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
5994 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6002 if ac_fn_c_try_compile
"$LINENO"; then :
6003 gl_cv_header_wchar_h_standalone
=yes
6005 gl_cv_header_wchar_h_standalone
=no
6007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
6010 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
6011 if test $gl_cv_header_wchar_h_standalone != yes; then
6022 if test $ac_cv_header_wchar_h = yes; then
6039 if test $gl_cv_have_include_next = yes; then
6040 gl_cv_next_wchar_h
='<'wchar.h
'>'
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6043 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6044 if test "${gl_cv_next_wchar_h+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
6048 if test $ac_cv_header_wchar_h = yes; then
6049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6054 gl_cv_next_wchar_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6055 sed -n '\#/wchar.h#{
6056 s#.*"\(.*/wchar.h\)".*#\1#
6062 gl_cv_next_wchar_h
='<'wchar.h
'>'
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
6067 $as_echo "$gl_cv_next_wchar_h" >&6; }
6069 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
6083 gl_source_base
='tests'
6088 LIBGNU_LIBDEPS
="$gl_libdeps"
6090 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
6094 # For Makefile dependencies.
6096 if test x
"$STDINT_H" != x
; then
6097 GNULIB_STDINT_H
=gnulib
/$STDINT_H
6103 cat >>confdefs.h
<<_ACEOF
6104 #define PACKAGE "$PACKAGE"
6109 # GDB does not use automake, but gnulib does. This line lets us
6110 # generate its Makefile.in.
6111 am__api_version
='1.11'
6113 # Find a good install program. We prefer a C program (faster),
6114 # so one script is as good as another. But avoid the broken or
6115 # incompatible versions:
6116 # SysV /etc/install, /usr/sbin/install
6117 # SunOS /usr/etc/install
6118 # IRIX /sbin/install
6120 # AmigaOS /C/install, which installs bootblocks on floppy discs
6121 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6122 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6123 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6124 # OS/2's system install, which has a completely different semantic
6125 # ./install, which can be erroneously created by make from ./install.sh.
6126 # Reject install programs that cannot install multiple files.
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6128 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6129 if test -z "$INSTALL"; then
6130 if test "${ac_cv_path_install+set}" = set; then :
6131 $as_echo_n "(cached) " >&6
6133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6137 test -z "$as_dir" && as_dir
=.
6138 # Account for people who put trailing slashes in PATH elements.
6139 case $as_dir/ in #((
6140 .
/ | .
// |
/[cC
]/* | \
6141 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6142 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
6145 # OSF1 and SCO ODT 3.0 have their own names for install.
6146 # Don't use installbsd from OSF since it installs stuff as root
6148 for ac_prog
in ginstall scoinst
install; do
6149 for ac_exec_ext
in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6151 if test $ac_prog = install &&
6152 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6153 # AIX install. It has an incompatible calling convention.
6155 elif test $ac_prog = install &&
6156 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6157 # program-specific install script used by HP pwplus--don't use.
6160 rm -rf conftest.one conftest.two conftest.dir
6161 echo one
> conftest.one
6162 echo two
> conftest.two
6164 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6165 test -s conftest.one
&& test -s conftest.two
&&
6166 test -s conftest.dir
/conftest.one
&&
6167 test -s conftest.dir
/conftest.two
6169 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6182 rm -rf conftest.one conftest.two conftest.dir
6185 if test "${ac_cv_path_install+set}" = set; then
6186 INSTALL
=$ac_cv_path_install
6188 # As a last resort, use the slow shell script. Don't cache a
6189 # value for INSTALL within a source directory, because that will
6190 # break other packages using the cache if that directory is
6191 # removed, or if the value is a relative name.
6192 INSTALL
=$ac_install_sh
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6196 $as_echo "$INSTALL" >&6; }
6198 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6199 # It thinks the first close brace ends the variable substitution.
6200 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6202 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6204 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6207 $as_echo_n "checking whether build environment is sane... " >&6; }
6210 echo timestamp
> conftest.
file
6211 # Reject unsafe characters in $srcdir or the absolute working directory
6212 # name. Accept space and tab only in the latter.
6216 *[\\\"\
#\$\&\'\`$am_lf]*)
6217 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
6220 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
6221 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
6224 # Do `set' in a subshell so we don't clobber the current shell's
6225 # arguments. Must try -L first in case configure is actually a
6226 # symlink; some systems play weird games with the mod time of symlinks
6227 # (eg FreeBSD returns the mod time of the symlink's containing
6230 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6231 if test "$*" = "X"; then
6233 set X
`ls -t "$srcdir/configure" conftest.file`
6236 if test "$*" != "X $srcdir/configure conftest.file" \
6237 && test "$*" != "X conftest.file $srcdir/configure"; then
6239 # If neither matched, then we have a broken ls. This can happen
6240 # if, for instance, CONFIG_SHELL is bash and it inherits a
6241 # broken ls alias from the environment. This has actually
6242 # happened. Such a system could not be considered "sane".
6243 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
6244 alias in your environment" "$LINENO" 5
6247 test "$2" = conftest.
file
6253 as_fn_error
"newly created file is older than distributed files!
6254 Check your system clock" "$LINENO" 5
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6257 $as_echo "yes" >&6; }
6258 test "$program_prefix" != NONE
&&
6259 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
6260 # Use a double $ so make ignores it.
6261 test "$program_suffix" != NONE
&&
6262 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
6263 # Double any \ or $.
6264 # By default was `s,x,x', remove it if useless.
6265 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
6266 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
6268 # expand $ac_aux_dir to an absolute path
6269 am_aux_dir
=`cd $ac_aux_dir && pwd`
6271 if test x
"${MISSING+set}" != xset
; then
6274 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
6276 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
6279 # Use eval to expand $SHELL
6280 if eval "$MISSING --run true"; then
6281 am_missing_run
="$MISSING --run "
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
6285 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6288 if test x
"${install_sh}" != xset
; then
6291 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
6293 install_sh
="\${SHELL} $am_aux_dir/install-sh"
6297 # Installed binaries are usually stripped using `strip' when the user
6298 # run `make install-strip'. However `strip' might not be the right
6299 # tool to use in cross-compilation environments, therefore Automake
6300 # will honor the `STRIP' environment variable to overrule this program.
6301 if test "$cross_compiling" != no
; then
6302 if test -n "$ac_tool_prefix"; then
6303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6304 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 $as_echo_n "checking for $ac_word... " >&6; }
6307 if test "${ac_cv_prog_STRIP+set}" = set; then :
6308 $as_echo_n "(cached) " >&6
6310 if test -n "$STRIP"; then
6311 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6317 test -z "$as_dir" && as_dir
=.
6318 for ac_exec_ext
in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 STRIP
=$ac_cv_prog_STRIP
6331 if test -n "$STRIP"; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6333 $as_echo "$STRIP" >&6; }
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6341 if test -z "$ac_cv_prog_STRIP"; then
6343 # Extract the first word of "strip", so it can be a program name with args.
6344 set dummy strip
; ac_word
=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6348 $as_echo_n "(cached) " >&6
6350 if test -n "$ac_ct_STRIP"; then
6351 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir
=.
6358 for ac_exec_ext
in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6360 ac_cv_prog_ac_ct_STRIP
="strip"
6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6371 if test -n "$ac_ct_STRIP"; then
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6373 $as_echo "$ac_ct_STRIP" >&6; }
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376 $as_echo "no" >&6; }
6379 if test "x$ac_ct_STRIP" = x
; then
6382 case $cross_compiling:$ac_tool_warned in
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6386 ac_tool_warned
=yes ;;
6391 STRIP
="$ac_cv_prog_STRIP"
6395 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6398 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6399 if test -z "$MKDIR_P"; then
6400 if test "${ac_cv_path_mkdir+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6404 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
6407 test -z "$as_dir" && as_dir
=.
6408 for ac_prog
in mkdir gmkdir
; do
6409 for ac_exec_ext
in '' $ac_executable_extensions; do
6410 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
6411 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6412 'mkdir (GNU coreutils) '* | \
6413 'mkdir (coreutils) '* | \
6414 'mkdir (fileutils) '4.1*)
6415 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
6425 if test "${ac_cv_path_mkdir+set}" = set; then
6426 MKDIR_P
="$ac_cv_path_mkdir -p"
6428 # As a last resort, use the slow shell script. Don't cache a
6429 # value for MKDIR_P within a source directory, because that will
6430 # break other packages using the cache if that directory is
6431 # removed, or if the value is a relative name.
6432 test -d .
/--version && rmdir .
/--version
6433 MKDIR_P
="$ac_install_sh -d"
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6437 $as_echo "$MKDIR_P" >&6; }
6441 [\\/$
]* | ?
:[\\/]*) ;;
6442 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
6445 for ac_prog
in gawk mawk nawk
awk
6447 # Extract the first word of "$ac_prog", so it can be a program name with args.
6448 set dummy
$ac_prog; ac_word
=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if test "${ac_cv_prog_AWK+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6454 if test -n "$AWK"; then
6455 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir
=.
6462 for ac_exec_ext
in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_AWK
="$ac_prog"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 if test -n "$AWK"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6477 $as_echo "$AWK" >&6; }
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6484 test -n "$AWK" && break
6487 ac_config_commands
="$ac_config_commands depfiles"
6490 am_make
=${MAKE-make}
6491 cat > confinc
<< 'END'
6493 @
echo this is the am__doit target
6496 # If we don't find an include directive, just comment out the code.
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6498 $as_echo_n "checking for style of include used by $am_make... " >&6; }
6502 # First try GNU make style include.
6503 echo "include confinc" > confmf
6504 # Ignore all kinds of additional output from `make'.
6505 case `$am_make -s -f confmf 2> /dev/null` in #(
6506 *the\ am__doit\ target
*)
6512 # Now try BSD make style include.
6513 if test "$am__include" = "#"; then
6514 echo '.include "confinc"' > confmf
6515 case `$am_make -s -f confmf 2> /dev/null` in #(
6516 *the\ am__doit\ target
*)
6517 am__include
=.include
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6526 $as_echo "$_am_result" >&6; }
6527 rm -f confinc confmf
6529 # Check whether --enable-dependency-tracking was given.
6530 if test "${enable_dependency_tracking+set}" = set; then :
6531 enableval
=$enable_dependency_tracking;
6534 if test "x$enable_dependency_tracking" != xno
; then
6535 am_depcomp
="$ac_aux_dir/depcomp"
6538 if test "x$enable_dependency_tracking" != xno; then
6547 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6548 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6549 # is not polluted with repeated "-I."
6550 am__isrc
=' -I$(srcdir)'
6551 # test to see if srcdir already configured
6552 if test -f $srcdir/config.status
; then
6553 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6557 # test whether we have cygpath
6558 if test -z "$CYGPATH_W"; then
6559 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
6560 CYGPATH_W
='cygpath -w'
6567 # Define the identity of the package.
6569 VERSION
=UNUSED-VERSION
6572 # Some tools Automake needs.
6574 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6577 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
6580 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6583 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
6586 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
6588 # We need awk for the "check" target. The system "awk" is bad on
6590 # Always define AMTAR for backward compatibility.
6592 AMTAR
=${AMTAR-"${am_missing_run}tar"}
6594 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
6599 depcc
="$CC" am_compiler_list
=
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6602 $as_echo_n "checking dependency style of $depcc... " >&6; }
6603 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6604 $as_echo_n "(cached) " >&6
6606 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6607 # We make a subdir and do the tests there. Otherwise we can end up
6608 # making bogus files that we don't know about and never remove. For
6609 # instance it was reported that on HP-UX the gcc test will end up
6610 # making a dummy file named `D' -- because `-MD' means `put the output
6613 # Copy depcomp to subdir because otherwise we won't find it if we're
6614 # using a relative directory.
6615 cp "$am_depcomp" conftest.dir
6617 # We will build objects and dependencies in a subdirectory because
6618 # it helps to detect inapplicable dependency modes. For instance
6619 # both Tru64's cc and ICC support -MD to output dependencies as a
6620 # side effect of compilation, but ICC will put the dependencies in
6621 # the current directory while Tru64 will put them in the object
6625 am_cv_CC_dependencies_compiler_type
=none
6626 if test "$am_compiler_list" = ""; then
6627 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6630 case " $depcc " in #(
6631 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
6634 for depmode
in $am_compiler_list; do
6635 # Setup a source with many dependencies, because some compilers
6636 # like to wrap large dependency lists on column 80 (with \), and
6637 # we should not choose a depcomp mode which is confused by this.
6639 # We need to recreate these files for each test, as the compiler may
6640 # overwrite some of them when testing with obscure command lines.
6641 # This happens at least with the AIX C compiler.
6643 for i
in 1 2 3 4 5 6; do
6644 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6645 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6646 # Solaris 8's {/usr,}/bin/sh.
6647 touch sub
/conftst
$i.h
6649 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6651 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6652 # mode. It turns out that the SunPro C++ compiler does not properly
6653 # handle `-M -o', and we need to detect this. Also, some Intel
6654 # versions had trouble with output in subdirs
6655 am__obj
=sub
/conftest.
${OBJEXT-o}
6656 am__minus_obj
="-o $am__obj"
6659 # This depmode causes a compiler race in universal mode.
6660 test "$am__universal" = false ||
continue
6663 # after this tag, mechanisms are not by side-effect, so they'll
6664 # only be used when explicitly requested
6665 if test "x$enable_dependency_tracking" = xyes
; then
6671 msvisualcpp | msvcmsys
)
6672 # This compiler won't grok `-c -o', but also, the minuso test has
6673 # not run yet. These depmodes are late enough in the game, and
6674 # so weak that their functioning should not be impacted.
6675 am__obj
=conftest.
${OBJEXT-o}
6680 if depmode
=$depmode \
6681 source=sub
/conftest.c object
=$am__obj \
6682 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6683 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
6684 >/dev
/null
2>conftest.err
&&
6685 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6686 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6687 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
6688 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6689 # icc doesn't choke on unknown options, it will just issue warnings
6690 # or remarks (even with -Werror). So we grep stderr for any message
6691 # that says an option was ignored or not supported.
6692 # When given -MP, icc 7.0 and 7.1 complain thusly:
6693 # icc: Command line warning: ignoring option '-M'; no argument required
6694 # The diagnosis changed in icc 8.0:
6695 # icc: Command line remark: option '-MP' not supported
6696 if (grep 'ignoring option' conftest.err ||
6697 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6698 am_cv_CC_dependencies_compiler_type
=$depmode
6707 am_cv_CC_dependencies_compiler_type
=none
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6712 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6713 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6716 test "x$enable_dependency_tracking" != xno \
6717 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
6719 am__fastdepCC_FALSE
='#'
6721 am__fastdepCC_TRUE
='#'
6722 am__fastdepCC_FALSE
=
6730 # Check whether --with-separate-debug-dir was given.
6731 if test "${with_separate_debug_dir+set}" = set; then :
6732 withval
=$with_separate_debug_dir;
6735 DEBUGDIR
=${libdir}/debug
6739 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6740 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6741 ac_define_dir
=`eval echo $DEBUGDIR`
6742 ac_define_dir
=`eval echo $ac_define_dir`
6744 cat >>confdefs.h
<<_ACEOF
6745 #define DEBUGDIR "$ac_define_dir"
6750 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6751 if test "x$prefix" = xNONE
; then
6752 test_prefix
=/usr
/local
6757 test_prefix
=$exec_prefix
6760 case ${ac_define_dir} in
6761 "${test_prefix}"|
"${test_prefix}/"*|\
6762 '${exec_prefix}'|
'${exec_prefix}/'*)
6767 cat >>confdefs.h
<<_ACEOF
6768 #define DEBUGDIR_RELOCATABLE $value
6773 # GDB's datadir relocation
6777 # Check whether --with-gdb-datadir was given.
6778 if test "${with_gdb_datadir+set}" = set; then :
6779 withval
=$with_gdb_datadir;
6780 GDB_DATADIR
=$withval
6782 GDB_DATADIR
=${datadir}/gdb
6786 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6787 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6788 ac_define_dir
=`eval echo $GDB_DATADIR`
6789 ac_define_dir
=`eval echo $ac_define_dir`
6791 cat >>confdefs.h
<<_ACEOF
6792 #define GDB_DATADIR "$ac_define_dir"
6797 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6798 if test "x$prefix" = xNONE
; then
6799 test_prefix
=/usr
/local
6804 test_prefix
=$exec_prefix
6807 case ${ac_define_dir} in
6808 "${test_prefix}"|
"${test_prefix}/"*|\
6809 '${exec_prefix}'|
'${exec_prefix}/'*)
6814 cat >>confdefs.h
<<_ACEOF
6815 #define GDB_DATADIR_RELOCATABLE $value
6821 # Check whether --with-relocated-sources was given.
6822 if test "${with_relocated_sources+set}" = set; then :
6823 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6825 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6826 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6827 ac_define_dir
=`eval echo $reloc_srcdir`
6828 ac_define_dir
=`eval echo $ac_define_dir`
6830 cat >>confdefs.h
<<_ACEOF
6831 #define RELOC_SRCDIR "$ac_define_dir"
6841 subdirs
="$subdirs doc testsuite"
6844 # Check whether to support alternative target configurations
6845 # Check whether --enable-targets was given.
6846 if test "${enable_targets+set}" = set; then :
6847 enableval
=$enable_targets; case "${enableval}" in
6848 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6850 no
) enable_targets
= ;;
6851 *) enable_targets
=$enableval ;;
6856 # Check whether to enable 64-bit support on 32-bit hosts
6857 # Check whether --enable-64-bit-bfd was given.
6858 if test "${enable_64_bit_bfd+set}" = set; then :
6859 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6862 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6868 # Provide defaults for some variables set by the per-host and per-target
6870 gdb_host_obs
=posix-hdep.o
6872 if test "${target}" = "${host}"; then
6878 .
$srcdir/configure.
host
6880 # Accumulate some settings from configure.tgt over all enabled targets
6885 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6887 if test "$targ_alias" = "all"; then
6890 # Canonicalize the secondary target names.
6891 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6892 if test -n "$result"; then
6898 .
${srcdir}/configure.tgt
6900 # Target-specific object files
6901 for i
in ${gdb_target_obs}; do
6902 case " $TARGET_OBS " in
6905 TARGET_OBS
="$TARGET_OBS ${i}"
6910 # Check whether this target needs 64-bit CORE_ADDR
6911 if test x
${want64} = xfalse
; then
6912 .
${srcdir}/..
/bfd
/config.bfd
6917 if test x
${all_targets} = xtrue
; then
6919 # We want all 64-bit targets if we either:
6920 # - run on a 64-bit host or
6921 # - already require 64-bit support for some other target or
6922 # - the --enable-64-bit-bfd option was supplied
6923 # Otherwise we only support all 32-bit targets.
6925 # NOTE: This test must be in sync with the corresponding
6928 if test x
${want64} = xfalse
; then
6929 # The cast to long int works around a bug in the HP C Compiler
6930 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6931 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6932 # This bug is HP SR number 8606223364.
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6934 $as_echo_n "checking size of long... " >&6; }
6935 if test "${ac_cv_sizeof_long+set}" = set; then :
6936 $as_echo_n "(cached) " >&6
6938 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6941 if test "$ac_cv_type_long" = yes; then
6942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6944 { as_fn_set_status
77
6945 as_fn_error
"cannot compute sizeof (long)
6946 See \`config.log' for more details." "$LINENO" 5; }; }
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6954 $as_echo "$ac_cv_sizeof_long" >&6; }
6958 cat >>confdefs.h
<<_ACEOF
6959 #define SIZEOF_LONG $ac_cv_sizeof_long
6963 if test "x${ac_cv_sizeof_long}" = "x8"; then
6967 if test x
${want64} = xtrue
; then
6968 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6970 TARGET_OBS
='$(ALL_TARGET_OBS)'
6976 # For other settings, only the main target counts.
6980 targ
=$target; .
${srcdir}/configure.tgt
6982 # Fetch the default architecture and default target vector from BFD.
6983 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6985 # We only want the first architecture, so strip off the others if
6986 # there is more than one.
6987 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6989 if test "x$targ_archs" != x
; then
6991 cat >>confdefs.h
<<_ACEOF
6992 #define DEFAULT_BFD_ARCH $targ_archs
6996 if test "x$targ_defvec" != x
; then
6998 cat >>confdefs.h
<<_ACEOF
6999 #define DEFAULT_BFD_VEC $targ_defvec
7004 # The CLI cannot be disabled yet, but may be in the future.
7007 # Check whether --enable-gdbcli was given.
7008 if test "${enable_gdbcli+set}" = set; then :
7009 enableval
=$enable_gdbcli; case $enableval in
7013 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
7015 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
7021 if test x
"$enable_gdbcli" = xyes
; then
7022 if test -d $srcdir/cli
; then
7023 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7024 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7025 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7026 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7031 # Check whether --enable-gdbmi was given.
7032 if test "${enable_gdbmi+set}" = set; then :
7033 enableval
=$enable_gdbmi; case $enableval in
7037 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
7043 if test x
"$enable_gdbmi" = xyes
; then
7044 if test -d $srcdir/mi
; then
7045 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7046 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7047 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7048 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7053 # Check whether --enable-tui was given.
7054 if test "${enable_tui+set}" = set; then :
7055 enableval
=$enable_tui; case $enableval in
7059 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
7067 # Check whether --enable-gdbtk was given.
7068 if test "${enable_gdbtk+set}" = set; then :
7069 enableval
=$enable_gdbtk; case $enableval in
7073 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
7076 if test -d $srcdir/gdbtk
; then
7083 # We unconditionally disable gdbtk tests on selected platforms.
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
7087 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7091 # Libunwind support.
7093 # Check whether --with-libunwind was given.
7094 if test "${with_libunwind+set}" = set; then :
7095 withval
=$with_libunwind; case "${withval}" in
7096 yes) enable_libunwind
=yes ;;
7097 no
) enable_libunwind
=no
;;
7098 *) as_fn_error
"bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
7102 for ac_header
in libunwind.h libunwind-ia64.h
7104 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7105 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7106 eval as_val
=\$
$as_ac_Header
7107 if test "x$as_val" = x
""yes; then :
7108 cat >>confdefs.h
<<_ACEOF
7109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7116 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
7117 enable_libunwind
=yes;
7123 if test x
"$enable_libunwind" = xyes
; then
7124 for ac_header
in libunwind.h libunwind-ia64.h
7126 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7127 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7128 eval as_val
=\$
$as_ac_Header
7129 if test "x$as_val" = x
""yes; then :
7130 cat >>confdefs.h
<<_ACEOF
7131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7139 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
7141 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
7142 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
7143 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
7148 # Check whether --with-curses was given.
7149 if test "${with_curses+set}" = set; then :
7150 withval
=$with_curses; opt_curses
=$withval
7155 if test "$opt_curses" = "yes"; then
7159 # Profiling support.
7160 # Check whether --enable-profiling was given.
7161 if test "${enable_profiling+set}" = set; then :
7162 enableval
=$enable_profiling; case $enableval in
7166 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7173 for ac_func
in monstartup _mcleanup
7175 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7176 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7177 eval as_val
=\$
$as_ac_var
7178 if test "x$as_val" = x
""yes; then :
7179 cat >>confdefs.h
<<_ACEOF
7180 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7187 $as_echo_n "checking for _etext... " >&6; }
7188 if test "${ac_cv_var__etext+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7204 if ac_fn_c_try_link
"$LINENO"; then :
7205 ac_cv_var__etext
=yes
7209 rm -f core conftest.err conftest.
$ac_objext \
7210 conftest
$ac_exeext conftest.
$ac_ext
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7213 $as_echo "$ac_cv_var__etext" >&6; }
7214 if test $ac_cv_var__etext = yes; then
7216 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7220 $as_echo_n "checking for etext... " >&6; }
7221 if test "${ac_cv_var_etext+set}" = set; then :
7222 $as_echo_n "(cached) " >&6
7224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7237 if ac_fn_c_try_link
"$LINENO"; then :
7242 rm -f core conftest.err conftest.
$ac_objext \
7243 conftest
$ac_exeext conftest.
$ac_ext
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7246 $as_echo "$ac_cv_var_etext" >&6; }
7247 if test $ac_cv_var_etext = yes; then
7249 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7252 if test "$enable_profiling" = yes ; then
7253 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
7254 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7257 OLD_CFLAGS
="$CFLAGS"
7258 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7261 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7262 if test "${ac_cv_cc_supports_pg+set}" = set; then :
7263 $as_echo_n "(cached) " >&6
7265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7276 if ac_fn_c_try_compile
"$LINENO"; then :
7277 ac_cv_cc_supports_pg
=yes
7279 ac_cv_cc_supports_pg
=no
7281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7284 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7286 if test $ac_cv_cc_supports_pg = no
; then
7287 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7290 CFLAGS
="$OLD_CFLAGS"
7295 # Check whether --with-pkgversion was given.
7296 if test "${with_pkgversion+set}" = set; then :
7297 withval
=$with_pkgversion; case "$withval" in
7298 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7300 *) PKGVERSION
="($withval) " ;;
7311 # Check whether --with-bugurl was given.
7312 if test "${with_bugurl+set}" = set; then :
7313 withval
=$with_bugurl; case "$withval" in
7314 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7317 *) BUGURL
="$withval"
7321 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7331 REPORT_BUGS_TO
="<$BUGURL>"
7332 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7339 cat >>confdefs.h
<<_ACEOF
7340 #define PKGVERSION "$PKGVERSION"
7344 cat >>confdefs.h
<<_ACEOF
7345 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7349 # --------------------- #
7350 # Checks for programs. #
7351 # --------------------- #
7353 for ac_prog
in gawk mawk nawk
awk
7355 # Extract the first word of "$ac_prog", so it can be a program name with args.
7356 set dummy
$ac_prog; ac_word
=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if test "${ac_cv_prog_AWK+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7362 if test -n "$AWK"; then
7363 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7369 test -z "$as_dir" && as_dir
=.
7370 for ac_exec_ext
in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_prog_AWK
="$ac_prog"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 if test -n "$AWK"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7385 $as_echo "$AWK" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7392 test -n "$AWK" && break
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7397 $as_echo_n "checking whether ln -s works... " >&6; }
7399 if test "$LN_S" = "ln -s"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7401 $as_echo "yes" >&6; }
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7404 $as_echo "no, using $LN_S" >&6; }
7407 if test -n "$ac_tool_prefix"; then
7408 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7409 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7413 $as_echo_n "(cached) " >&6
7415 if test -n "$RANLIB"; then
7416 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir
=.
7423 for ac_exec_ext
in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 RANLIB
=$ac_cv_prog_RANLIB
7436 if test -n "$RANLIB"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7438 $as_echo "$RANLIB" >&6; }
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7446 if test -z "$ac_cv_prog_RANLIB"; then
7447 ac_ct_RANLIB
=$RANLIB
7448 # Extract the first word of "ranlib", so it can be a program name with args.
7449 set dummy ranlib
; ac_word
=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7453 $as_echo_n "(cached) " >&6
7455 if test -n "$ac_ct_RANLIB"; then
7456 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir
=.
7463 for ac_exec_ext
in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7476 if test -n "$ac_ct_RANLIB"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7478 $as_echo "$ac_ct_RANLIB" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7484 if test "x$ac_ct_RANLIB" = x
; then
7487 case $cross_compiling:$ac_tool_warned in
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7491 ac_tool_warned
=yes ;;
7493 RANLIB
=$ac_ct_RANLIB
7496 RANLIB
="$ac_cv_prog_RANLIB"
7499 for ac_prog
in 'bison -y' byacc
7501 # Extract the first word of "$ac_prog", so it can be a program name with args.
7502 set dummy
$ac_prog; ac_word
=$2
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if test "${ac_cv_prog_YACC+set}" = set; then :
7506 $as_echo_n "(cached) " >&6
7508 if test -n "$YACC"; then
7509 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir
=.
7516 for ac_exec_ext
in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_prog_YACC
="$ac_prog"
7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 YACC
=$ac_cv_prog_YACC
7529 if test -n "$YACC"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7531 $as_echo "$YACC" >&6; }
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7538 test -n "$YACC" && break
7540 test -n "$YACC" || YACC
="yacc"
7543 if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7545 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if test "${ac_cv_prog_AR+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7551 if test -n "$AR"; then
7552 ac_cv_prog_AR
="$AR" # Let the user override the test.
7554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir
=.
7559 for ac_exec_ext
in '' $ac_executable_extensions; do
7560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7561 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 if test -n "$AR"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7574 $as_echo "$AR" >&6; }
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7582 if test -z "$ac_cv_prog_AR"; then
7584 # Extract the first word of "ar", so it can be a program name with args.
7585 set dummy
ar; ac_word
=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
7591 if test -n "$ac_ct_AR"; then
7592 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir
=.
7599 for ac_exec_ext
in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_prog_ac_ct_AR
="ar"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7612 if test -n "$ac_ct_AR"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7614 $as_echo "$ac_ct_AR" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7620 if test "x$ac_ct_AR" = x
; then
7623 case $cross_compiling:$ac_tool_warned in
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7627 ac_tool_warned
=yes ;;
7635 if test -n "$ac_tool_prefix"; then
7636 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7637 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7641 $as_echo_n "(cached) " >&6
7643 if test -n "$DLLTOOL"; then
7644 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir
=.
7651 for ac_exec_ext
in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 DLLTOOL
=$ac_cv_prog_DLLTOOL
7664 if test -n "$DLLTOOL"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7666 $as_echo "$DLLTOOL" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7674 if test -z "$ac_cv_prog_DLLTOOL"; then
7675 ac_ct_DLLTOOL
=$DLLTOOL
7676 # Extract the first word of "dlltool", so it can be a program name with args.
7677 set dummy dlltool
; ac_word
=$2
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679 $as_echo_n "checking for $ac_word... " >&6; }
7680 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7681 $as_echo_n "(cached) " >&6
7683 if test -n "$ac_ct_DLLTOOL"; then
7684 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir
=.
7691 for ac_exec_ext
in '' $ac_executable_extensions; do
7692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7693 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7704 if test -n "$ac_ct_DLLTOOL"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7706 $as_echo "$ac_ct_DLLTOOL" >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7712 if test "x$ac_ct_DLLTOOL" = x
; then
7715 case $cross_compiling:$ac_tool_warned in
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719 ac_tool_warned
=yes ;;
7721 DLLTOOL
=$ac_ct_DLLTOOL
7724 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7727 if test -n "$ac_tool_prefix"; then
7728 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7729 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if test "${ac_cv_prog_WINDRES+set}" = set; then :
7733 $as_echo_n "(cached) " >&6
7735 if test -n "$WINDRES"; then
7736 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7742 test -z "$as_dir" && as_dir
=.
7743 for ac_exec_ext
in '' $ac_executable_extensions; do
7744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7745 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 WINDRES
=$ac_cv_prog_WINDRES
7756 if test -n "$WINDRES"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7758 $as_echo "$WINDRES" >&6; }
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7766 if test -z "$ac_cv_prog_WINDRES"; then
7767 ac_ct_WINDRES
=$WINDRES
7768 # Extract the first word of "windres", so it can be a program name with args.
7769 set dummy windres
; ac_word
=$2
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
7775 if test -n "$ac_ct_WINDRES"; then
7776 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7782 test -z "$as_dir" && as_dir
=.
7783 for ac_exec_ext
in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7785 ac_cv_prog_ac_ct_WINDRES
="windres"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7796 if test -n "$ac_ct_WINDRES"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7798 $as_echo "$ac_ct_WINDRES" >&6; }
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7804 if test "x$ac_ct_WINDRES" = x
; then
7807 case $cross_compiling:$ac_tool_warned in
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811 ac_tool_warned
=yes ;;
7813 WINDRES
=$ac_ct_WINDRES
7816 WINDRES
="$ac_cv_prog_WINDRES"
7820 # Needed for GNU/Hurd.
7821 if test -n "$ac_tool_prefix"; then
7822 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7823 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825 $as_echo_n "checking for $ac_word... " >&6; }
7826 if test "${ac_cv_prog_MIG+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7829 if test -n "$MIG"; then
7830 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7836 test -z "$as_dir" && as_dir
=.
7837 for ac_exec_ext
in '' $ac_executable_extensions; do
7838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7839 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 if test -n "$MIG"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7852 $as_echo "$MIG" >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7860 if test -z "$ac_cv_prog_MIG"; then
7862 # Extract the first word of "mig", so it can be a program name with args.
7863 set dummy mig
; ac_word
=$2
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865 $as_echo_n "checking for $ac_word... " >&6; }
7866 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
7867 $as_echo_n "(cached) " >&6
7869 if test -n "$ac_ct_MIG"; then
7870 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7876 test -z "$as_dir" && as_dir
=.
7877 for ac_exec_ext
in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879 ac_cv_prog_ac_ct_MIG
="mig"
7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7890 if test -n "$ac_ct_MIG"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7892 $as_echo "$ac_ct_MIG" >&6; }
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7898 if test "x$ac_ct_MIG" = x
; then
7901 case $cross_compiling:$ac_tool_warned in
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7905 ac_tool_warned
=yes ;;
7910 MIG
="$ac_cv_prog_MIG"
7914 # ---------------------- #
7915 # Checks for libraries. #
7916 # ---------------------- #
7918 # We might need to link with -lm; most simulators need it.
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7920 $as_echo_n "checking for main in -lm... " >&6; }
7921 if test "${ac_cv_lib_m_main+set}" = set; then :
7922 $as_echo_n "(cached) " >&6
7924 ac_check_lib_save_LIBS
=$LIBS
7926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7938 if ac_fn_c_try_link
"$LINENO"; then :
7939 ac_cv_lib_m_main
=yes
7943 rm -f core conftest.err conftest.
$ac_objext \
7944 conftest
$ac_exeext conftest.
$ac_ext
7945 LIBS
=$ac_check_lib_save_LIBS
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7948 $as_echo "$ac_cv_lib_m_main" >&6; }
7949 if test "x$ac_cv_lib_m_main" = x
""yes; then :
7950 cat >>confdefs.h
<<_ACEOF
7959 # We need to link with -lw to get `wctype' on Solaris before Solaris
7960 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7961 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7962 # is known to have this problem). Therefore we avoid libw if we can.
7963 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
7964 if test "x$ac_cv_func_wctype" = x
""yes; then :
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
7968 $as_echo_n "checking for wctype in -lw... " >&6; }
7969 if test "${ac_cv_lib_w_wctype+set}" = set; then :
7970 $as_echo_n "(cached) " >&6
7972 ac_check_lib_save_LIBS
=$LIBS
7974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7977 /* Override any GCC internal prototype to avoid an error.
7978 Use char because int might match the return type of a GCC
7979 builtin and then its argument prototype would still apply. */
7992 if ac_fn_c_try_link
"$LINENO"; then :
7993 ac_cv_lib_w_wctype
=yes
7995 ac_cv_lib_w_wctype
=no
7997 rm -f core conftest.err conftest.
$ac_objext \
7998 conftest
$ac_exeext conftest.
$ac_ext
7999 LIBS
=$ac_check_lib_save_LIBS
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
8002 $as_echo "$ac_cv_lib_w_wctype" >&6; }
8003 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
8004 cat >>confdefs.h
<<_ACEOF
8015 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8017 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8018 if test "${ac_cv_search_gethostbyname+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8021 ac_func_search_save_LIBS
=$LIBS
8022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8025 /* Override any GCC internal prototype to avoid an error.
8026 Use char because int might match the return type of a GCC
8027 builtin and then its argument prototype would still apply. */
8031 char gethostbyname ();
8035 return gethostbyname ();
8040 for ac_lib
in '' nsl
; do
8041 if test -z "$ac_lib"; then
8042 ac_res
="none required"
8045 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8047 if ac_fn_c_try_link
"$LINENO"; then :
8048 ac_cv_search_gethostbyname
=$ac_res
8050 rm -f core conftest.err conftest.
$ac_objext \
8052 if test "${ac_cv_search_gethostbyname+set}" = set; then :
8056 if test "${ac_cv_search_gethostbyname+set}" = set; then :
8059 ac_cv_search_gethostbyname
=no
8062 LIBS
=$ac_func_search_save_LIBS
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8065 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8066 ac_res
=$ac_cv_search_gethostbyname
8067 if test "$ac_res" != no
; then :
8068 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8073 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8075 $as_echo_n "checking for library containing socketpair... " >&6; }
8076 if test "${ac_cv_search_socketpair+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
8079 ac_func_search_save_LIBS
=$LIBS
8080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8083 /* Override any GCC internal prototype to avoid an error.
8084 Use char because int might match the return type of a GCC
8085 builtin and then its argument prototype would still apply. */
8093 return socketpair ();
8098 for ac_lib
in '' socket
; do
8099 if test -z "$ac_lib"; then
8100 ac_res
="none required"
8103 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8105 if ac_fn_c_try_link
"$LINENO"; then :
8106 ac_cv_search_socketpair
=$ac_res
8108 rm -f core conftest.err conftest.
$ac_objext \
8110 if test "${ac_cv_search_socketpair+set}" = set; then :
8114 if test "${ac_cv_search_socketpair+set}" = set; then :
8117 ac_cv_search_socketpair
=no
8120 LIBS
=$ac_func_search_save_LIBS
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8123 $as_echo "$ac_cv_search_socketpair" >&6; }
8124 ac_res
=$ac_cv_search_socketpair
8125 if test "$ac_res" != no
; then :
8126 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8131 # Link in zlib if we can. This allows us to read compressed debug sections.
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
8133 $as_echo_n "checking for library containing zlibVersion... " >&6; }
8134 if test "${ac_cv_search_zlibVersion+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8137 ac_func_search_save_LIBS
=$LIBS
8138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8141 /* Override any GCC internal prototype to avoid an error.
8142 Use char because int might match the return type of a GCC
8143 builtin and then its argument prototype would still apply. */
8147 char zlibVersion ();
8151 return zlibVersion ();
8156 for ac_lib
in '' z
; do
8157 if test -z "$ac_lib"; then
8158 ac_res
="none required"
8161 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8163 if ac_fn_c_try_link
"$LINENO"; then :
8164 ac_cv_search_zlibVersion
=$ac_res
8166 rm -f core conftest.err conftest.
$ac_objext \
8168 if test "${ac_cv_search_zlibVersion+set}" = set; then :
8172 if test "${ac_cv_search_zlibVersion+set}" = set; then :
8175 ac_cv_search_zlibVersion
=no
8178 LIBS
=$ac_func_search_save_LIBS
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
8181 $as_echo "$ac_cv_search_zlibVersion" >&6; }
8182 ac_res
=$ac_cv_search_zlibVersion
8183 if test "$ac_res" != no
; then :
8184 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8185 for ac_header
in zlib.h
8187 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8188 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
8189 cat >>confdefs.h
<<_ACEOF
8190 #define HAVE_ZLIB_H 1
8200 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
8202 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
8203 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8206 ac_func_search_save_LIBS
=$LIBS
8207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8210 /* Override any GCC internal prototype to avoid an error.
8211 Use char because int might match the return type of a GCC
8212 builtin and then its argument prototype would still apply. */
8216 char dlgetmodinfo ();
8220 return dlgetmodinfo ();
8225 for ac_lib
in '' dl xpdl
; do
8226 if test -z "$ac_lib"; then
8227 ac_res
="none required"
8230 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8232 if ac_fn_c_try_link
"$LINENO"; then :
8233 ac_cv_search_dlgetmodinfo
=$ac_res
8235 rm -f core conftest.err conftest.
$ac_objext \
8237 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8241 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8244 ac_cv_search_dlgetmodinfo
=no
8247 LIBS
=$ac_func_search_save_LIBS
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
8250 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
8251 ac_res
=$ac_cv_search_dlgetmodinfo
8252 if test "$ac_res" != no
; then :
8253 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8261 # Check whether --with-libiconv-prefix was given.
8262 if test "${with_libiconv_prefix+set}" = set; then :
8263 withval
=$with_libiconv_prefix;
8264 for dir
in `echo "$withval" | tr : ' '`; do
8265 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
8266 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
8272 BUILD_LIBICONV_LIBDIR
="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
8273 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8276 $as_echo_n "checking for iconv... " >&6; }
8277 if test "${am_cv_func_iconv+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8281 am_cv_func_iconv
="no, consider installing GNU libiconv"
8283 am_cv_use_build_libiconv
=no
8285 # If libiconv is part of the build tree, then try using it over
8287 if test -d ..
/libiconv
; then
8288 am_save_LIBS
="$LIBS"
8289 am_save_CPPFLAGS
="$CPPFLAGS"
8290 LIBS
="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
8291 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
8292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8299 iconv_t cd = iconv_open("","");
8300 iconv(cd,NULL,NULL,NULL,NULL);
8306 if ac_fn_c_try_link
"$LINENO"; then :
8307 am_cv_use_build_libiconv
=yes
8309 am_cv_func_iconv
=yes
8311 rm -f core conftest.err conftest.
$ac_objext \
8312 conftest
$ac_exeext conftest.
$ac_ext
8313 LIBS
="$am_save_LIBS"
8314 CPPFLAGS
="$am_save_CPPFLAGS"
8317 # Next, try to find iconv in libc.
8318 if test "$am_cv_func_iconv" != yes; then
8319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8326 iconv_t cd = iconv_open("","");
8327 iconv(cd,NULL,NULL,NULL,NULL);
8333 if ac_fn_c_try_link
"$LINENO"; then :
8334 am_cv_func_iconv
=yes
8336 rm -f core conftest.err conftest.
$ac_objext \
8337 conftest
$ac_exeext conftest.
$ac_ext
8340 # If iconv was not in libc, try -liconv. In this case, arrange to
8341 # look in the libiconv prefix, if it was specified by the user.
8342 if test "$am_cv_func_iconv" != yes; then
8343 am_save_CPPFLAGS
="$CPPFLAGS"
8344 am_save_LIBS
="$LIBS"
8345 if test -n "$LIBICONV_INCLUDE"; then
8346 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
8347 LIBS
="$LIBS $LIBICONV_LIBDIR"
8349 LIBS
="$LIBS -liconv"
8350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8357 iconv_t cd = iconv_open("","");
8358 iconv(cd,NULL,NULL,NULL,NULL);
8364 if ac_fn_c_try_link
"$LINENO"; then :
8366 am_cv_func_iconv
=yes
8368 rm -f core conftest.err conftest.
$ac_objext \
8369 conftest
$ac_exeext conftest.
$ac_ext
8370 LIBS
="$am_save_LIBS"
8371 CPPFLAGS
="$am_save_CPPFLAGS"
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8376 $as_echo "$am_cv_func_iconv" >&6; }
8378 # Set the various flags based on the cache variables. We can't rely
8379 # on the flags to remain set from the above code, due to caching.
8381 if test "$am_cv_lib_iconv" = yes; then
8387 if test "$am_cv_use_build_libiconv" = yes; then
8388 LIBICONV_LIBDIR
="$BUILD_LIBICONV_LIBDIR"
8389 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
8391 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
8392 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
8394 if test "$am_cv_func_iconv" = yes; then
8396 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8399 $as_echo_n "checking for iconv declaration... " >&6; }
8400 if test "${am_cv_proto_iconv+set}" = set; then :
8401 $as_echo_n "(cached) " >&6
8404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8413 #if defined(__STDC__) || defined(__cplusplus)
8414 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8427 if ac_fn_c_try_compile
"$LINENO"; then :
8428 am_cv_proto_iconv_arg1
=""
8430 am_cv_proto_iconv_arg1
="const"
8432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8433 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);"
8436 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8438 }$am_cv_proto_iconv" >&5
8440 }$am_cv_proto_iconv" >&6; }
8442 cat >>confdefs.h
<<_ACEOF
8443 #define ICONV_CONST $am_cv_proto_iconv_arg1
8449 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
8450 # There is a very specific comment in /usr/include/curses.h explaining that
8451 # termcap routines built into libcurses must not be used.
8453 # The symptoms we observed so far is GDB unexpectedly changing
8454 # the terminal settings when tgetent is called - this is particularly
8455 # visible as the output is missing carriage returns, and so rapidly
8456 # becomes very hard to read.
8458 # The readline configure script has already decided that libtermcap
8459 # was enough for its purposes, and so decided to build readline using
8460 # libtermcap. Since the TUI mode requires curses, building GDB with
8461 # TUI enabled results in both libraries to be used at the same time,
8462 # which is not allowed. This basically means that GDB with TUI is
8463 # broken on alpha-osf.
8467 if "$enable_tui" = "yes"; then
8468 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
8470 if "$enable_tui" = "auto"; then
8476 # For the TUI, we need enhanced curses functionality.
8477 if test x
"$enable_tui" != xno
; then
8482 if test x
"$prefer_curses" = xyes
; then
8483 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8484 # curses library because the latter might not provide all the
8485 # functionality we need. However, this leads to problems on systems
8486 # where the linker searches /usr/local/lib, but the compiler doesn't
8487 # search /usr/local/include, if ncurses is installed in /usr/local. A
8488 # default installation of ncurses on alpha*-dec-osf* will lead to such
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8491 $as_echo_n "checking for library containing waddstr... " >&6; }
8492 if test "${ac_cv_search_waddstr+set}" = set; then :
8493 $as_echo_n "(cached) " >&6
8495 ac_func_search_save_LIBS
=$LIBS
8496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8499 /* Override any GCC internal prototype to avoid an error.
8500 Use char because int might match the return type of a GCC
8501 builtin and then its argument prototype would still apply. */
8514 for ac_lib
in '' ncurses cursesX curses
; do
8515 if test -z "$ac_lib"; then
8516 ac_res
="none required"
8519 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8521 if ac_fn_c_try_link
"$LINENO"; then :
8522 ac_cv_search_waddstr
=$ac_res
8524 rm -f core conftest.err conftest.
$ac_objext \
8526 if test "${ac_cv_search_waddstr+set}" = set; then :
8530 if test "${ac_cv_search_waddstr+set}" = set; then :
8533 ac_cv_search_waddstr
=no
8536 LIBS
=$ac_func_search_save_LIBS
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8539 $as_echo "$ac_cv_search_waddstr" >&6; }
8540 ac_res
=$ac_cv_search_waddstr
8541 if test "$ac_res" != no
; then :
8542 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8547 if test "$ac_cv_search_waddstr" != no
; then
8552 # Check whether we should enable the TUI, but only do so if we really
8554 if test x
"$enable_tui" != xno
; then
8555 if test -d $srcdir/tui
; then
8556 if test "$curses_found" != no
; then
8557 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8558 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8559 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8560 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8561 CONFIG_ALL
="${CONFIG_ALL} all-tui"
8562 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
8563 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
8564 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
8566 if test x
"$enable_tui" = xyes
; then
8567 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8570 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8576 # Since GDB uses Readline, we need termcap functionality. In many
8577 # cases this will be provided by the curses library, but some systems
8578 # have a seperate termcap library, or no curses library at all.
8582 if test -d $srcdir/libtermcap
; then
8583 LIBS
="../libtermcap/libtermcap.a $LIBS"
8584 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8587 ac_cv_search_tgetent
="none required"
8590 ac_cv_search_tgetent
="none required"
8591 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
8595 # These are the libraries checked by Readline.
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8597 $as_echo_n "checking for library containing tgetent... " >&6; }
8598 if test "${ac_cv_search_tgetent+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8601 ac_func_search_save_LIBS
=$LIBS
8602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8605 /* Override any GCC internal prototype to avoid an error.
8606 Use char because int might match the return type of a GCC
8607 builtin and then its argument prototype would still apply. */
8620 for ac_lib
in '' termcap tinfo curses ncurses
; do
8621 if test -z "$ac_lib"; then
8622 ac_res
="none required"
8625 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8627 if ac_fn_c_try_link
"$LINENO"; then :
8628 ac_cv_search_tgetent
=$ac_res
8630 rm -f core conftest.err conftest.
$ac_objext \
8632 if test "${ac_cv_search_tgetent+set}" = set; then :
8636 if test "${ac_cv_search_tgetent+set}" = set; then :
8639 ac_cv_search_tgetent
=no
8642 LIBS
=$ac_func_search_save_LIBS
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8645 $as_echo "$ac_cv_search_tgetent" >&6; }
8646 ac_res
=$ac_cv_search_tgetent
8647 if test "$ac_res" != no
; then :
8648 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8653 if test "$ac_cv_search_tgetent" = no
; then
8654 as_fn_error
"no termcap library found" "$LINENO" 5
8658 # Check whether --with-system-readline was given.
8659 if test "${with_system_readline+set}" = set; then :
8660 withval
=$with_system_readline;
8664 if test "$with_system_readline" = yes; then
8669 # readline-6.0 started to use the name `_rl_echoing_p'.
8670 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
8673 $as_echo_n "checking for readline_echoing_p... " >&6; }
8675 LIBS
="$LIBS $READLINE"
8676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8682 extern int readline_echoing_p;
8683 return readline_echoing_p;
8688 if ac_fn_c_try_link
"$LINENO"; then :
8689 READLINE_ECHOING_P
=yes
8691 READLINE_ECHOING_P
=no
8693 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
8696 rm -f core conftest.err conftest.
$ac_objext \
8697 conftest
$ac_exeext conftest.
$ac_ext
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
8700 $as_echo "$READLINE_ECHOING_P" >&6; }
8702 READLINE
='$(READLINE_DIR)/libreadline.a'
8703 READLINE_DEPS
='$(READLINE)'
8704 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
8711 # Check whether --with-expat was given.
8712 if test "${with_expat+set}" = set; then :
8713 withval
=$with_expat;
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8719 $as_echo_n "checking whether to use expat... " >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8721 $as_echo "$with_expat" >&6; }
8723 if test "${with_expat}" = no
; then
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8725 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8729 if test "X$prefix" = "XNONE"; then
8730 acl_final_prefix
="$ac_default_prefix"
8732 acl_final_prefix
="$prefix"
8734 if test "X$exec_prefix" = "XNONE"; then
8735 acl_final_exec_prefix
='${prefix}'
8737 acl_final_exec_prefix
="$exec_prefix"
8739 acl_save_prefix
="$prefix"
8740 prefix
="$acl_final_prefix"
8741 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8742 prefix
="$acl_save_prefix"
8745 # Check whether --with-gnu-ld was given.
8746 if test "${with_gnu_ld+set}" = set; then :
8747 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8752 # Prepare PATH_SEPARATOR.
8753 # The user is always right.
8754 if test "${PATH_SEPARATOR+set}" != set; then
8755 echo "#! /bin/sh" >conf$$.sh
8756 echo "exit 0" >>conf$$.sh
8758 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8766 if test "$GCC" = yes; then
8767 # Check if gcc -print-prog-name=ld gives a path.
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8769 $as_echo_n "checking for ld used by GCC... " >&6; }
8772 # gcc leaves a trailing carriage return which upsets mingw
8773 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8775 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8778 # Accept absolute paths.
8779 [\\/]* |
[A-Za-z
]:[\\/]*)
8780 re_direlt
='/[^/][^/]*/\.\./'
8781 # Canonicalize the path of ld
8782 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8783 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8784 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8786 test -z "$LD" && LD
="$ac_prog"
8789 # If it fails, then pretend we aren't using GCC.
8793 # If it is relative, then search for the first ld in PATH.
8797 elif test "$with_gnu_ld" = yes; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8799 $as_echo_n "checking for GNU ld... " >&6; }
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8802 $as_echo_n "checking for non-GNU ld... " >&6; }
8804 if test "${acl_cv_path_LD+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8807 if test -z "$LD"; then
8808 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8809 for ac_dir
in $PATH; do
8810 test -z "$ac_dir" && ac_dir
=.
8811 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8812 acl_cv_path_LD
="$ac_dir/$ac_prog"
8813 # Check to see if the program is GNU ld. I'd rather use --version,
8814 # but apparently some GNU ld's only accept -v.
8815 # Break only if it was the GNU/non-GNU ld that we prefer.
8816 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8817 test "$with_gnu_ld" != no
&& break
8819 test "$with_gnu_ld" != yes && break
8825 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8829 LD
="$acl_cv_path_LD"
8830 if test -n "$LD"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8832 $as_echo "$LD" >&6; }
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8837 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8839 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8840 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8841 $as_echo_n "(cached) " >&6
8843 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8844 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8845 acl_cv_prog_gnu_ld
=yes
8847 acl_cv_prog_gnu_ld
=no
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8851 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8852 with_gnu_ld
=$acl_cv_prog_gnu_ld
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8857 $as_echo_n "checking for shared library run path origin... " >&6; }
8858 if test "${acl_cv_rpath+set}" = set; then :
8859 $as_echo_n "(cached) " >&6
8862 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8863 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8870 $as_echo "$acl_cv_rpath" >&6; }
8872 libext
="$acl_cv_libext"
8873 shlibext
="$acl_cv_shlibext"
8874 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8875 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8876 hardcode_direct
="$acl_cv_hardcode_direct"
8877 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8878 # Check whether --enable-rpath was given.
8879 if test "${enable_rpath+set}" = set; then :
8880 enableval
=$enable_rpath; :
8896 acl_save_prefix
="$prefix"
8897 prefix
="$acl_final_prefix"
8898 acl_save_exec_prefix
="$exec_prefix"
8899 exec_prefix
="$acl_final_exec_prefix"
8901 eval additional_includedir
=\"$includedir\"
8902 eval additional_libdir
=\"$libdir\"
8904 exec_prefix
="$acl_save_exec_prefix"
8905 prefix
="$acl_save_prefix"
8908 # Check whether --with-libexpat-prefix was given.
8909 if test "${with_libexpat_prefix+set}" = set; then :
8910 withval
=$with_libexpat_prefix;
8911 if test "X$withval" = "Xno"; then
8914 if test "X$withval" = "X"; then
8916 acl_save_prefix
="$prefix"
8917 prefix
="$acl_final_prefix"
8918 acl_save_exec_prefix
="$exec_prefix"
8919 exec_prefix
="$acl_final_exec_prefix"
8921 eval additional_includedir
=\"$includedir\"
8922 eval additional_libdir
=\"$libdir\"
8924 exec_prefix
="$acl_save_exec_prefix"
8925 prefix
="$acl_save_prefix"
8928 additional_includedir
="$withval/include"
8929 additional_libdir
="$withval/lib"
8940 names_already_handled
=
8941 names_next_round
='expat '
8942 while test -n "$names_next_round"; do
8943 names_this_round
="$names_next_round"
8945 for name
in $names_this_round; do
8947 for n
in $names_already_handled; do
8948 if test "$n" = "$name"; then
8953 if test -z "$already_handled"; then
8954 names_already_handled
="$names_already_handled $name"
8955 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8956 eval value
=\"\
$HAVE_LIB$uppername\"
8957 if test -n "$value"; then
8958 if test "$value" = yes; then
8959 eval value
=\"\
$LIB$uppername\"
8960 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
8961 eval value
=\"\
$LTLIB$uppername\"
8962 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8971 if test $use_additional = yes; then
8972 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8973 found_dir
="$additional_libdir"
8974 found_so
="$additional_libdir/lib$name.$shlibext"
8975 if test -f "$additional_libdir/lib$name.la"; then
8976 found_la
="$additional_libdir/lib$name.la"
8979 if test -f "$additional_libdir/lib$name.$libext"; then
8980 found_dir
="$additional_libdir"
8981 found_a
="$additional_libdir/lib$name.$libext"
8982 if test -f "$additional_libdir/lib$name.la"; then
8983 found_la
="$additional_libdir/lib$name.la"
8988 if test "X$found_dir" = "X"; then
8989 for x
in $LDFLAGS $LTLIBEXPAT; do
8991 acl_save_prefix
="$prefix"
8992 prefix
="$acl_final_prefix"
8993 acl_save_exec_prefix
="$exec_prefix"
8994 exec_prefix
="$acl_final_exec_prefix"
8996 exec_prefix
="$acl_save_exec_prefix"
8997 prefix
="$acl_save_prefix"
9001 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9002 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9004 found_so
="$dir/lib$name.$shlibext"
9005 if test -f "$dir/lib$name.la"; then
9006 found_la
="$dir/lib$name.la"
9009 if test -f "$dir/lib$name.$libext"; then
9011 found_a
="$dir/lib$name.$libext"
9012 if test -f "$dir/lib$name.la"; then
9013 found_la
="$dir/lib$name.la"
9019 if test "X$found_dir" != "X"; then
9024 if test "X$found_dir" != "X"; then
9025 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9026 if test "X$found_so" != "X"; then
9027 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9028 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9031 for x
in $ltrpathdirs; do
9032 if test "X$x" = "X$found_dir"; then
9037 if test -z "$haveit"; then
9038 ltrpathdirs
="$ltrpathdirs $found_dir"
9040 if test "$hardcode_direct" = yes; then
9041 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9043 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9044 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9046 for x
in $rpathdirs; do
9047 if test "X$x" = "X$found_dir"; then
9052 if test -z "$haveit"; then
9053 rpathdirs
="$rpathdirs $found_dir"
9057 for x
in $LDFLAGS $LIBEXPAT; do
9059 acl_save_prefix
="$prefix"
9060 prefix
="$acl_final_prefix"
9061 acl_save_exec_prefix
="$exec_prefix"
9062 exec_prefix
="$acl_final_exec_prefix"
9064 exec_prefix
="$acl_save_exec_prefix"
9065 prefix
="$acl_save_prefix"
9067 if test "X$x" = "X-L$found_dir"; then
9072 if test -z "$haveit"; then
9073 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9075 if test "$hardcode_minus_L" != no
; then
9076 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9078 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9084 if test "X$found_a" != "X"; then
9085 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9087 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9090 additional_includedir
=
9091 case "$found_dir" in
9093 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9094 additional_includedir
="$basedir/include"
9097 if test "X$additional_includedir" != "X"; then
9098 if test "X$additional_includedir" != "X/usr/include"; then
9100 if test "X$additional_includedir" = "X/usr/local/include"; then
9101 if test -n "$GCC"; then
9103 linux
*) haveit
=yes;;
9107 if test -z "$haveit"; then
9108 for x
in $CPPFLAGS $INCEXPAT; do
9110 acl_save_prefix
="$prefix"
9111 prefix
="$acl_final_prefix"
9112 acl_save_exec_prefix
="$exec_prefix"
9113 exec_prefix
="$acl_final_exec_prefix"
9115 exec_prefix
="$acl_save_exec_prefix"
9116 prefix
="$acl_save_prefix"
9118 if test "X$x" = "X-I$additional_includedir"; then
9123 if test -z "$haveit"; then
9124 if test -d "$additional_includedir"; then
9125 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9131 if test -n "$found_la"; then
9132 save_libdir
="$libdir"
9134 */* |
*\\*) .
"$found_la" ;;
9135 *) .
"./$found_la" ;;
9137 libdir
="$save_libdir"
9138 for dep
in $dependency_libs; do
9141 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9142 if test "X$additional_libdir" != "X/usr/lib"; then
9144 if test "X$additional_libdir" = "X/usr/local/lib"; then
9145 if test -n "$GCC"; then
9147 linux
*) haveit
=yes;;
9151 if test -z "$haveit"; then
9153 for x
in $LDFLAGS $LIBEXPAT; do
9155 acl_save_prefix
="$prefix"
9156 prefix
="$acl_final_prefix"
9157 acl_save_exec_prefix
="$exec_prefix"
9158 exec_prefix
="$acl_final_exec_prefix"
9160 exec_prefix
="$acl_save_exec_prefix"
9161 prefix
="$acl_save_prefix"
9163 if test "X$x" = "X-L$additional_libdir"; then
9168 if test -z "$haveit"; then
9169 if test -d "$additional_libdir"; then
9170 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9174 for x
in $LDFLAGS $LTLIBEXPAT; do
9176 acl_save_prefix
="$prefix"
9177 prefix
="$acl_final_prefix"
9178 acl_save_exec_prefix
="$exec_prefix"
9179 exec_prefix
="$acl_final_exec_prefix"
9181 exec_prefix
="$acl_save_exec_prefix"
9182 prefix
="$acl_save_prefix"
9184 if test "X$x" = "X-L$additional_libdir"; then
9189 if test -z "$haveit"; then
9190 if test -d "$additional_libdir"; then
9191 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9198 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9199 if test "$enable_rpath" != no
; then
9201 for x
in $rpathdirs; do
9202 if test "X$x" = "X$dir"; then
9207 if test -z "$haveit"; then
9208 rpathdirs
="$rpathdirs $dir"
9211 for x
in $ltrpathdirs; do
9212 if test "X$x" = "X$dir"; then
9217 if test -z "$haveit"; then
9218 ltrpathdirs
="$ltrpathdirs $dir"
9223 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9226 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9229 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9230 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9236 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9237 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9243 if test "X$rpathdirs" != "X"; then
9244 if test -n "$hardcode_libdir_separator"; then
9246 for found_dir
in $rpathdirs; do
9247 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9249 acl_save_libdir
="$libdir"
9251 eval flag
=\"$hardcode_libdir_flag_spec\"
9252 libdir
="$acl_save_libdir"
9253 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9255 for found_dir
in $rpathdirs; do
9256 acl_save_libdir
="$libdir"
9258 eval flag
=\"$hardcode_libdir_flag_spec\"
9259 libdir
="$acl_save_libdir"
9260 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9264 if test "X$ltrpathdirs" != "X"; then
9265 for found_dir
in $ltrpathdirs; do
9266 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9271 ac_save_CPPFLAGS
="$CPPFLAGS"
9273 for element
in $INCEXPAT; do
9275 for x
in $CPPFLAGS; do
9277 acl_save_prefix
="$prefix"
9278 prefix
="$acl_final_prefix"
9279 acl_save_exec_prefix
="$exec_prefix"
9280 exec_prefix
="$acl_final_exec_prefix"
9282 exec_prefix
="$acl_save_exec_prefix"
9283 prefix
="$acl_save_prefix"
9285 if test "X$x" = "X$element"; then
9290 if test -z "$haveit"; then
9291 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9297 $as_echo_n "checking for libexpat... " >&6; }
9298 if test "${ac_cv_libexpat+set}" = set; then :
9299 $as_echo_n "(cached) " >&6
9302 ac_save_LIBS
="$LIBS"
9303 LIBS
="$LIBS $LIBEXPAT"
9304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9310 XML_Parser p = XML_ParserCreate (0);
9315 if ac_fn_c_try_link
"$LINENO"; then :
9320 rm -f core conftest.err conftest.
$ac_objext \
9321 conftest
$ac_exeext conftest.
$ac_ext
9322 LIBS
="$ac_save_LIBS"
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9326 $as_echo "$ac_cv_libexpat" >&6; }
9327 if test "$ac_cv_libexpat" = yes; then
9330 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9333 $as_echo_n "checking how to link with libexpat... " >&6; }
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9335 $as_echo "$LIBEXPAT" >&6; }
9338 CPPFLAGS
="$ac_save_CPPFLAGS"
9348 if test "$HAVE_LIBEXPAT" != yes; then
9349 if test "$with_expat" = yes; then
9350 as_fn_error
"expat is missing or unusable" "$LINENO" 5
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9353 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9357 LIBS
="$LIBS $LIBEXPAT"
9358 for ac_func
in XML_StopParser
9360 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9361 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
9362 cat >>confdefs.h
<<_ACEOF
9363 #define HAVE_XML_STOPPARSER 1
9376 # Check whether --with-python was given.
9377 if test "${with_python+set}" = set; then :
9378 withval
=$with_python;
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
9384 $as_echo_n "checking whether to use python... " >&6; }
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
9386 $as_echo "$with_python" >&6; }
9388 if test "${with_python}" = no
; then
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
9390 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
9393 case "${with_python}" in
9395 # Leave as empty, use defaults.
9400 python_includes
="-I${with_python}/include"
9401 python_libs
="-L${with_python}/lib"
9404 as_fn_error
"invalid value for --with-python" "$LINENO" 5
9408 save_CPPFLAGS
=$CPPFLAGS
9409 CPPFLAGS
="$CPPFLAGS ${python_includes}"
9411 LIBS
="$LIBS ${python_libs}"
9413 if test "${have_libpython}" = no
; then
9418 HAVE_LIBPYTHON2_6
=no
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9420 $as_echo_n "checking for ${version}... " >&6; }
9422 LIBS
="$LIBS -l${version}"
9423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425 #include "${version}/Python.h"
9434 if ac_fn_c_try_link
"$LINENO"; then :
9435 HAVE_LIBPYTHON2_6
=yes
9440 rm -f core conftest.err conftest.
$ac_objext \
9441 conftest
$ac_exeext conftest.
$ac_ext
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_6" >&5
9443 $as_echo "$HAVE_LIBPYTHON2_6" >&6; }
9445 if test "${HAVE_LIBPYTHON2_6}" = yes; then
9447 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9451 if test ${have_libpython} = no
; then
9456 HAVE_LIBPYTHON2_5
=no
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9458 $as_echo_n "checking for ${version}... " >&6; }
9460 LIBS
="$LIBS -l${version}"
9461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 #include "${version}/Python.h"
9472 if ac_fn_c_try_link
"$LINENO"; then :
9473 HAVE_LIBPYTHON2_5
=yes
9478 rm -f core conftest.err conftest.
$ac_objext \
9479 conftest
$ac_exeext conftest.
$ac_ext
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_5" >&5
9481 $as_echo "$HAVE_LIBPYTHON2_5" >&6; }
9483 if test "${HAVE_LIBPYTHON2_5}" = yes; then
9485 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9489 if test ${have_libpython} = no
; then
9494 HAVE_LIBPYTHON2_4
=no
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9496 $as_echo_n "checking for ${version}... " >&6; }
9498 LIBS
="$LIBS -l${version}"
9499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501 #include "${version}/Python.h"
9510 if ac_fn_c_try_link
"$LINENO"; then :
9511 HAVE_LIBPYTHON2_4
=yes
9516 rm -f core conftest.err conftest.
$ac_objext \
9517 conftest
$ac_exeext conftest.
$ac_ext
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_4" >&5
9519 $as_echo "$HAVE_LIBPYTHON2_4" >&6; }
9521 if test "${HAVE_LIBPYTHON2_4}" = yes; then
9523 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9527 if test ${have_libpython} = no
; then
9528 case "${with_python}" in
9530 as_fn_error
"python is missing or unusable" "$LINENO" 5
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9534 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9537 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
9540 CPPFLAGS
=$save_CPPFLAGS
9545 if test "${have_libpython}" = yes; then
9547 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9549 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9550 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9551 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9552 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9554 # Flags needed to compile Python code (taken from python-config --cflags).
9555 # We cannot call python-config directly because it will output whatever was
9556 # used when compiling the Python interpreter itself, including flags which
9557 # would make the python-related objects be compiled differently from the
9558 # rest of GDB (e.g., -O2 and -fPIC).
9559 if test "${GCC}" = yes; then
9560 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
9563 if test "x${tentative_python_cflags}" != x
; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9565 $as_echo_n "checking compiler flags for python code... " >&6; }
9566 for flag
in ${tentative_python_cflags}; do
9567 # Check that the compiler accepts it
9568 saved_CFLAGS
="$CFLAGS"
9569 CFLAGS
="$CFLAGS $flag"
9570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9581 if ac_fn_c_try_compile
"$LINENO"; then :
9582 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
9584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9585 CFLAGS
="$saved_CFLAGS"
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9588 $as_echo "${PYTHON_CFLAGS}" >&6; }
9591 # Even if Python support is not compiled in, we need to have these files
9592 # included in order to recognize the GDB command "python".
9593 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o"
9594 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c python/py-prettyprint.c"
9598 # ------------------------- #
9599 # Checks for header files. #
9600 # ------------------------- #
9603 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9604 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9606 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9607 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9608 $as_echo_n "(cached) " >&6
9610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9612 #include <sys/types.h>
9624 if ac_fn_c_try_compile
"$LINENO"; then :
9625 eval "$as_ac_Header=yes"
9627 eval "$as_ac_Header=no"
9629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9631 eval ac_res
=\$
$as_ac_Header
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9633 $as_echo "$ac_res" >&6; }
9634 eval as_val
=\$
$as_ac_Header
9635 if test "x$as_val" = x
""yes; then :
9636 cat >>confdefs.h
<<_ACEOF
9637 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9640 ac_header_dirent
=$ac_hdr; break
9644 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9645 if test $ac_header_dirent = dirent.h
; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9647 $as_echo_n "checking for library containing opendir... " >&6; }
9648 if test "${ac_cv_search_opendir+set}" = set; then :
9649 $as_echo_n "(cached) " >&6
9651 ac_func_search_save_LIBS
=$LIBS
9652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9655 /* Override any GCC internal prototype to avoid an error.
9656 Use char because int might match the return type of a GCC
9657 builtin and then its argument prototype would still apply. */
9670 for ac_lib
in '' dir
; do
9671 if test -z "$ac_lib"; then
9672 ac_res
="none required"
9675 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9677 if ac_fn_c_try_link
"$LINENO"; then :
9678 ac_cv_search_opendir
=$ac_res
9680 rm -f core conftest.err conftest.
$ac_objext \
9682 if test "${ac_cv_search_opendir+set}" = set; then :
9686 if test "${ac_cv_search_opendir+set}" = set; then :
9689 ac_cv_search_opendir
=no
9692 LIBS
=$ac_func_search_save_LIBS
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9695 $as_echo "$ac_cv_search_opendir" >&6; }
9696 ac_res
=$ac_cv_search_opendir
9697 if test "$ac_res" != no
; then :
9698 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9704 $as_echo_n "checking for library containing opendir... " >&6; }
9705 if test "${ac_cv_search_opendir+set}" = set; then :
9706 $as_echo_n "(cached) " >&6
9708 ac_func_search_save_LIBS
=$LIBS
9709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h. */
9712 /* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
9727 for ac_lib
in '' x
; do
9728 if test -z "$ac_lib"; then
9729 ac_res
="none required"
9732 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9734 if ac_fn_c_try_link
"$LINENO"; then :
9735 ac_cv_search_opendir
=$ac_res
9737 rm -f core conftest.err conftest.
$ac_objext \
9739 if test "${ac_cv_search_opendir+set}" = set; then :
9743 if test "${ac_cv_search_opendir+set}" = set; then :
9746 ac_cv_search_opendir
=no
9749 LIBS
=$ac_func_search_save_LIBS
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9752 $as_echo "$ac_cv_search_opendir" >&6; }
9753 ac_res
=$ac_cv_search_opendir
9754 if test "$ac_res" != no
; then :
9755 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9762 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9763 if test "${ac_cv_header_stat_broken+set}" = set; then :
9764 $as_echo_n "(cached) " >&6
9766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9768 #include <sys/types.h>
9769 #include <sys/stat.h>
9771 #if defined S_ISBLK && defined S_IFDIR
9772 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9775 #if defined S_ISBLK && defined S_IFCHR
9776 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9779 #if defined S_ISLNK && defined S_IFREG
9780 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9783 #if defined S_ISSOCK && defined S_IFREG
9784 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9788 if ac_fn_c_try_compile
"$LINENO"; then :
9789 ac_cv_header_stat_broken
=no
9791 ac_cv_header_stat_broken
=yes
9793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9796 $as_echo "$ac_cv_header_stat_broken" >&6; }
9797 if test $ac_cv_header_stat_broken = yes; then
9799 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9804 $as_echo_n "checking for ANSI C header files... " >&6; }
9805 if test "${ac_cv_header_stdc+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9823 if ac_fn_c_try_compile
"$LINENO"; then :
9824 ac_cv_header_stdc
=yes
9826 ac_cv_header_stdc
=no
9828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9830 if test $ac_cv_header_stdc = yes; then
9831 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9838 $EGREP "memchr" >/dev
/null
2>&1; then :
9841 ac_cv_header_stdc
=no
9847 if test $ac_cv_header_stdc = yes; then
9848 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h. */
9854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9855 $EGREP "free" >/dev
/null
2>&1; then :
9858 ac_cv_header_stdc
=no
9864 if test $ac_cv_header_stdc = yes; then
9865 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9866 if test "$cross_compiling" = yes; then :
9869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9873 #if ((' ' & 0x0FF) == 0x020)
9874 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9875 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9877 # define ISLOWER(c) \
9878 (('a' <= (c) && (c) <= 'i') \
9879 || ('j' <= (c) && (c) <= 'r') \
9880 || ('s' <= (c) && (c) <= 'z'))
9881 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9884 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9889 for (i = 0; i < 256; i++)
9890 if (XOR (islower (i), ISLOWER (i))
9891 || toupper (i) != TOUPPER (i))
9896 if ac_fn_c_try_run
"$LINENO"; then :
9899 ac_cv_header_stdc
=no
9901 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9902 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9908 $as_echo "$ac_cv_header_stdc" >&6; }
9909 if test $ac_cv_header_stdc = yes; then
9911 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9915 # elf_hp.h is for HP/UX 64-bit shared library support.
9916 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
9917 # unconditionally, so what's the point in checking these?
9918 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
9919 thread_db.h gnu
/libc-version.h signal.h stddef.h \
9920 stdlib.h string.h memory.h
strings.h sys
/fault.h \
9921 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
9922 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
9923 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
9924 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
9925 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
9927 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9928 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9929 eval as_val
=\$
$as_ac_Header
9930 if test "x$as_val" = x
""yes; then :
9931 cat >>confdefs.h
<<_ACEOF
9932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9939 for ac_header
in link.h
9941 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
9942 # include <sys/types.h>
9949 if test "x$ac_cv_header_link_h" = x
""yes; then :
9950 cat >>confdefs.h
<<_ACEOF
9951 #define HAVE_LINK_H 1
9958 for ac_header
in sys
/proc.h
9960 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
9961 # include <sys/param.h>
9965 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
9966 cat >>confdefs.h
<<_ACEOF
9967 #define HAVE_SYS_PROC_H 1
9974 for ac_header
in sys
/user.h
9976 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
9977 # include <sys/param.h>
9981 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
9982 cat >>confdefs.h
<<_ACEOF
9983 #define HAVE_SYS_USER_H 1
9991 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
9992 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
9993 # think that we don't have <curses.h> if we're using GCC.
9996 if test "$GCC" = yes; then
9998 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
10002 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
10004 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10005 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10006 eval as_val
=\$
$as_ac_Header
10007 if test "x$as_val" = x
""yes; then :
10008 cat >>confdefs.h
<<_ACEOF
10009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10016 for ac_header
in term.h
10018 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10019 # include <curses.h>
10023 if test "x$ac_cv_header_term_h" = x
""yes; then :
10024 cat >>confdefs.h
<<_ACEOF
10025 #define HAVE_TERM_H 1
10033 # ------------------------- #
10034 # Checks for declarations. #
10035 # ------------------------- #
10037 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10038 if test "x$ac_cv_have_decl_free" = x
""yes; then :
10044 cat >>confdefs.h
<<_ACEOF
10045 #define HAVE_DECL_FREE $ac_have_decl
10047 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10048 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
10054 cat >>confdefs.h
<<_ACEOF
10055 #define HAVE_DECL_MALLOC $ac_have_decl
10057 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10058 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
10064 cat >>confdefs.h
<<_ACEOF
10065 #define HAVE_DECL_REALLOC $ac_have_decl
10067 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
10068 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
10074 cat >>confdefs.h
<<_ACEOF
10075 #define HAVE_DECL_STRERROR $ac_have_decl
10077 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
10078 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
10084 cat >>confdefs.h
<<_ACEOF
10085 #define HAVE_DECL_STRSTR $ac_have_decl
10087 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
10088 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
10094 cat >>confdefs.h
<<_ACEOF
10095 #define HAVE_DECL_GETOPT $ac_have_decl
10097 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10098 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
10104 cat >>confdefs.h
<<_ACEOF
10105 #define HAVE_DECL_SNPRINTF $ac_have_decl
10107 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10108 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
10114 cat >>confdefs.h
<<_ACEOF
10115 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10120 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10121 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10122 $as_echo_n "(cached) " >&6
10124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10126 #include <locale.h>
10135 if ac_fn_c_try_link
"$LINENO"; then :
10136 am_cv_val_LC_MESSAGES
=yes
10138 am_cv_val_LC_MESSAGES
=no
10140 rm -f core conftest.err conftest.
$ac_objext \
10141 conftest
$ac_exeext conftest.
$ac_ext
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10144 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10145 if test $am_cv_val_LC_MESSAGES = yes; then
10147 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10152 # ----------------------- #
10153 # Checks for structures. #
10154 # ----------------------- #
10156 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
10157 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
10159 cat >>confdefs.h
<<_ACEOF
10160 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10165 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10166 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
10168 cat >>confdefs.h
<<_ACEOF
10169 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10176 # ------------------ #
10177 # Checks for types. #
10178 # ------------------ #
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10181 $as_echo_n "checking return type of signal handlers... " >&6; }
10182 if test "${ac_cv_type_signal+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
10185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187 #include <sys/types.h>
10188 #include <signal.h>
10193 return *(signal (0, 0)) (0) == 1;
10198 if ac_fn_c_try_compile
"$LINENO"; then :
10199 ac_cv_type_signal
=int
10201 ac_cv_type_signal
=void
10203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10206 $as_echo "$ac_cv_type_signal" >&6; }
10208 cat >>confdefs.h
<<_ACEOF
10209 #define RETSIGTYPE $ac_cv_type_signal
10213 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
10214 #include <sys/socket.h>
10217 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
10219 cat >>confdefs.h
<<_ACEOF
10220 #define HAVE_SOCKLEN_T 1
10227 # ------------------------------------- #
10228 # Checks for compiler characteristics. #
10229 # ------------------------------------- #
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10232 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10233 if test "${ac_cv_c_const+set}" = set; then :
10234 $as_echo_n "(cached) " >&6
10236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10237 /* end confdefs.h. */
10242 /* FIXME: Include the comments suggested by Paul. */
10243 #ifndef __cplusplus
10244 /* Ultrix mips cc rejects this. */
10245 typedef int charset[2];
10247 /* SunOS 4.1.1 cc rejects this. */
10248 char const *const *pcpcc;
10250 /* NEC SVR4.0.2 mips cc rejects this. */
10251 struct point {int x, y;};
10252 static struct point const zero = {0,0};
10253 /* AIX XL C 1.02.0.0 rejects this.
10254 It does not let you subtract one const X* pointer from another in
10255 an arm of an if-expression whose if-part is not a constant
10257 const char *g = "string";
10258 pcpcc = &g + (g ? g-g : 0);
10259 /* HPUX 7.0 cc rejects these. */
10261 ppc = (char**) pcpcc;
10262 pcpcc = (char const *const *) ppc;
10263 { /* SCO 3.2v4 cc rejects this. */
10265 char const *s = 0 ? (char *) 0 : (char const *) 0;
10270 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10271 int x[] = {25, 17};
10272 const int *foo = &x[0];
10275 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10276 typedef const int *iptr;
10280 { /* AIX XL C 1.02.0.0 rejects this saying
10281 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10282 struct s { int j; const int *ap[3]; };
10283 struct s *b; b->j = 5;
10285 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10286 const int foo = 10;
10287 if (!foo) return 0;
10289 return !cs[0] && !zero.x;
10296 if ac_fn_c_try_compile
"$LINENO"; then :
10301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10304 $as_echo "$ac_cv_c_const" >&6; }
10305 if test $ac_cv_c_const = no
; then
10307 $as_echo "#define const /**/" >>confdefs.h
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10312 $as_echo_n "checking for inline... " >&6; }
10313 if test "${ac_cv_c_inline+set}" = set; then :
10314 $as_echo_n "(cached) " >&6
10317 for ac_kw
in inline __inline__ __inline
; do
10318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10320 #ifndef __cplusplus
10322 static $ac_kw foo_t static_foo () {return 0; }
10323 $ac_kw foo_t foo () {return 0; }
10327 if ac_fn_c_try_compile
"$LINENO"; then :
10328 ac_cv_c_inline
=$ac_kw
10330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10331 test "$ac_cv_c_inline" != no
&& break
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10336 $as_echo "$ac_cv_c_inline" >&6; }
10338 case $ac_cv_c_inline in
10341 case $ac_cv_c_inline in
10343 *) ac_val
=$ac_cv_c_inline;;
10345 cat >>confdefs.h
<<_ACEOF
10346 #ifndef __cplusplus
10347 #define inline $ac_val
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10354 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10355 if test "${ac_cv_c_bigendian+set}" = set; then :
10356 $as_echo_n "(cached) " >&6
10358 ac_cv_c_bigendian
=unknown
10359 # See if we're dealing with a universal compiler.
10360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10362 #ifndef __APPLE_CC__
10363 not a universal capable compiler
10368 if ac_fn_c_try_compile
"$LINENO"; then :
10370 # Check for potential -arch flags. It is not universal unless
10371 # there are at least two -arch flags with different values.
10374 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10375 if test -n "$ac_prev"; then
10377 i?
86 | x86_64 | ppc | ppc64
)
10378 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10381 ac_cv_c_bigendian
=universal
10387 elif test "x$ac_word" = "x-arch"; then
10392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10393 if test $ac_cv_c_bigendian = unknown
; then
10394 # See if sys/param.h defines the BYTE_ORDER macro.
10395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10396 /* end confdefs.h. */
10397 #include <sys/types.h>
10398 #include <sys/param.h>
10403 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10404 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10406 bogus endian macros
10413 if ac_fn_c_try_compile
"$LINENO"; then :
10414 # It does; now see whether it defined to BIG_ENDIAN or not.
10415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10417 #include <sys/types.h>
10418 #include <sys/param.h>
10423 #if BYTE_ORDER != BIG_ENDIAN
10431 if ac_fn_c_try_compile
"$LINENO"; then :
10432 ac_cv_c_bigendian
=yes
10434 ac_cv_c_bigendian
=no
10436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10440 if test $ac_cv_c_bigendian = unknown
; then
10441 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10443 /* end confdefs.h. */
10444 #include <limits.h>
10449 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10450 bogus endian macros
10457 if ac_fn_c_try_compile
"$LINENO"; then :
10458 # It does; now see whether it defined to _BIG_ENDIAN or not.
10459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10461 #include <limits.h>
10466 #ifndef _BIG_ENDIAN
10474 if ac_fn_c_try_compile
"$LINENO"; then :
10475 ac_cv_c_bigendian
=yes
10477 ac_cv_c_bigendian
=no
10479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10483 if test $ac_cv_c_bigendian = unknown
; then
10484 # Compile a test program.
10485 if test "$cross_compiling" = yes; then :
10486 # Try to guess by grepping values from an object file.
10487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10488 /* end confdefs.h. */
10489 short int ascii_mm[] =
10490 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10491 short int ascii_ii[] =
10492 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10493 int use_ascii (int i) {
10494 return ascii_mm[i] + ascii_ii[i];
10496 short int ebcdic_ii[] =
10497 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10498 short int ebcdic_mm[] =
10499 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10500 int use_ebcdic (int i) {
10501 return ebcdic_mm[i] + ebcdic_ii[i];
10508 return use_ascii (foo) == use_ebcdic (foo);
10513 if ac_fn_c_try_compile
"$LINENO"; then :
10514 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10515 ac_cv_c_bigendian
=yes
10517 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10518 if test "$ac_cv_c_bigendian" = unknown
; then
10519 ac_cv_c_bigendian
=no
10521 # finding both strings is unlikely to happen, but who knows?
10522 ac_cv_c_bigendian
=unknown
10526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530 $ac_includes_default
10535 /* Are we little or big endian? From Harbison&Steele. */
10539 char c[sizeof (long int)];
10542 return u.c[sizeof (long int) - 1] == 1;
10548 if ac_fn_c_try_run
"$LINENO"; then :
10549 ac_cv_c_bigendian
=no
10551 ac_cv_c_bigendian
=yes
10553 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10554 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10560 $as_echo "$ac_cv_c_bigendian" >&6; }
10561 case $ac_cv_c_bigendian in #(
10563 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10569 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10573 as_fn_error
"unknown endianness
10574 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10578 # ------------------------------ #
10579 # Checks for library functions. #
10580 # ------------------------------ #
10582 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10583 # for constant arguments. Useless!
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10585 $as_echo_n "checking for working alloca.h... " >&6; }
10586 if test "${ac_cv_working_alloca_h+set}" = set; then :
10587 $as_echo_n "(cached) " >&6
10589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591 #include <alloca.h>
10595 char *p = (char *) alloca (2 * sizeof (int));
10601 if ac_fn_c_try_link
"$LINENO"; then :
10602 ac_cv_working_alloca_h
=yes
10604 ac_cv_working_alloca_h
=no
10606 rm -f core conftest.err conftest.
$ac_objext \
10607 conftest
$ac_exeext conftest.
$ac_ext
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10610 $as_echo "$ac_cv_working_alloca_h" >&6; }
10611 if test $ac_cv_working_alloca_h = yes; then
10613 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10618 $as_echo_n "checking for alloca... " >&6; }
10619 if test "${ac_cv_func_alloca_works+set}" = set; then :
10620 $as_echo_n "(cached) " >&6
10622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10625 # define alloca __builtin_alloca
10628 # include <malloc.h>
10629 # define alloca _alloca
10631 # ifdef HAVE_ALLOCA_H
10632 # include <alloca.h>
10637 # ifndef alloca /* predefined by HP cc +Olibcalls */
10648 char *p = (char *) alloca (1);
10654 if ac_fn_c_try_link
"$LINENO"; then :
10655 ac_cv_func_alloca_works
=yes
10657 ac_cv_func_alloca_works
=no
10659 rm -f core conftest.err conftest.
$ac_objext \
10660 conftest
$ac_exeext conftest.
$ac_ext
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10663 $as_echo "$ac_cv_func_alloca_works" >&6; }
10665 if test $ac_cv_func_alloca_works = yes; then
10667 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10670 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10671 # that cause trouble. Some versions do not even contain alloca or
10672 # contain a buggy version. If you still want to use their alloca,
10673 # use ar to extract alloca.o from them instead of compiling alloca.c.
10675 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10677 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10681 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10682 if test "${ac_cv_os_cray+set}" = set; then :
10683 $as_echo_n "(cached) " >&6
10685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10687 #if defined CRAY && ! defined CRAY2
10694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10695 $EGREP "webecray" >/dev
/null
2>&1; then :
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10704 $as_echo "$ac_cv_os_cray" >&6; }
10705 if test $ac_cv_os_cray = yes; then
10706 for ac_func
in _getb67 GETB67 getb67
; do
10707 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10708 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10709 eval as_val
=\$
$as_ac_var
10710 if test "x$as_val" = x
""yes; then :
10712 cat >>confdefs.h
<<_ACEOF
10713 #define CRAY_STACKSEG_END $ac_func
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10723 $as_echo_n "checking stack direction for C alloca... " >&6; }
10724 if test "${ac_cv_c_stack_direction+set}" = set; then :
10725 $as_echo_n "(cached) " >&6
10727 if test "$cross_compiling" = yes; then :
10728 ac_cv_c_stack_direction
=0
10730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732 $ac_includes_default
10734 find_stack_direction ()
10736 static char *addr = 0;
10741 return find_stack_direction ();
10744 return (&dummy > addr) ? 1 : -1;
10750 return find_stack_direction () < 0;
10753 if ac_fn_c_try_run
"$LINENO"; then :
10754 ac_cv_c_stack_direction
=1
10756 ac_cv_c_stack_direction
=-1
10758 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10759 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10764 $as_echo "$ac_cv_c_stack_direction" >&6; }
10765 cat >>confdefs.h
<<_ACEOF
10766 #define STACK_DIRECTION $ac_cv_c_stack_direction
10772 for ac_header
in stdlib.h unistd.h
10774 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10775 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10776 eval as_val
=\$
$as_ac_Header
10777 if test "x$as_val" = x
""yes; then :
10778 cat >>confdefs.h
<<_ACEOF
10779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10786 for ac_func
in getpagesize
10788 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10789 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10790 cat >>confdefs.h
<<_ACEOF
10791 #define HAVE_GETPAGESIZE 1
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10798 $as_echo_n "checking for working mmap... " >&6; }
10799 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10800 $as_echo_n "(cached) " >&6
10802 if test "$cross_compiling" = yes; then :
10803 ac_cv_func_mmap_fixed_mapped
=no
10805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10807 $ac_includes_default
10808 /* malloc might have been renamed as rpl_malloc. */
10811 /* Thanks to Mike Haertel and Jim Avera for this test.
10812 Here is a matrix of mmap possibilities:
10813 mmap private not fixed
10814 mmap private fixed at somewhere currently unmapped
10815 mmap private fixed at somewhere already mapped
10816 mmap shared not fixed
10817 mmap shared fixed at somewhere currently unmapped
10818 mmap shared fixed at somewhere already mapped
10819 For private mappings, we should verify that changes cannot be read()
10820 back from the file, nor mmap's back from the file at a different
10821 address. (There have been systems where private was not correctly
10822 implemented like the infamous i386 svr4.0, and systems where the
10823 VM page cache was not coherent with the file system buffer cache
10824 like early versions of FreeBSD and possibly contemporary NetBSD.)
10825 For shared mappings, we should conversely verify that changes get
10826 propagated back to all the places they're supposed to be.
10828 Grep wants private fixed already mapped.
10829 The main things grep needs to know about mmap are:
10830 * does it exist and is it safe to write into the mmap'd area
10831 * how to use it (BSD variants) */
10834 #include <sys/mman.h>
10836 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10840 /* This mess was copied from the GNU getpagesize.h. */
10841 #ifndef HAVE_GETPAGESIZE
10842 /* Assume that all systems that can run configure have sys/param.h. */
10843 # ifndef HAVE_SYS_PARAM_H
10844 # define HAVE_SYS_PARAM_H 1
10847 # ifdef _SC_PAGESIZE
10848 # define getpagesize() sysconf(_SC_PAGESIZE)
10849 # else /* no _SC_PAGESIZE */
10850 # ifdef HAVE_SYS_PARAM_H
10851 # include <sys/param.h>
10852 # ifdef EXEC_PAGESIZE
10853 # define getpagesize() EXEC_PAGESIZE
10854 # else /* no EXEC_PAGESIZE */
10856 # define getpagesize() NBPG * CLSIZE
10859 # endif /* no CLSIZE */
10860 # else /* no NBPG */
10862 # define getpagesize() NBPC
10863 # else /* no NBPC */
10865 # define getpagesize() PAGESIZE
10866 # endif /* PAGESIZE */
10867 # endif /* no NBPC */
10868 # endif /* no NBPG */
10869 # endif /* no EXEC_PAGESIZE */
10870 # else /* no HAVE_SYS_PARAM_H */
10871 # define getpagesize() 8192 /* punt totally */
10872 # endif /* no HAVE_SYS_PARAM_H */
10873 # endif /* no _SC_PAGESIZE */
10875 #endif /* no HAVE_GETPAGESIZE */
10880 char *data, *data2, *data3;
10884 pagesize = getpagesize ();
10886 /* First, make a file with some known garbage in it. */
10887 data = (char *) malloc (pagesize);
10890 for (i = 0; i < pagesize; ++i)
10891 *(data + i) = rand ();
10893 fd = creat ("conftest.mmap", 0600);
10896 if (write (fd, data, pagesize) != pagesize)
10900 /* Next, try to mmap the file at a fixed address which already has
10901 something else allocated at it. If we can, also make sure that
10902 we see the same garbage. */
10903 fd = open ("conftest.mmap", O_RDWR);
10906 data2 = (char *) malloc (2 * pagesize);
10909 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10910 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10911 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10913 for (i = 0; i < pagesize; ++i)
10914 if (*(data + i) != *(data2 + i))
10917 /* Finally, make sure that changes to the mapped area do not
10918 percolate back to the file as seen by read(). (This is a bug on
10919 some variants of i386 svr4.0.) */
10920 for (i = 0; i < pagesize; ++i)
10921 *(data2 + i) = *(data2 + i) + 1;
10922 data3 = (char *) malloc (pagesize);
10925 if (read (fd, data3, pagesize) != pagesize)
10927 for (i = 0; i < pagesize; ++i)
10928 if (*(data + i) != *(data3 + i))
10934 if ac_fn_c_try_run
"$LINENO"; then :
10935 ac_cv_func_mmap_fixed_mapped
=yes
10937 ac_cv_func_mmap_fixed_mapped
=no
10939 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10940 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10945 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10946 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10948 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10951 rm -f conftest.mmap
10953 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10954 if test "x$ac_cv_type_pid_t" = x
""yes; then :
10958 cat >>confdefs.h
<<_ACEOF
10964 for ac_header
in vfork.h
10966 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10967 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
10968 cat >>confdefs.h
<<_ACEOF
10969 #define HAVE_VFORK_H 1
10976 for ac_func
in fork vfork
10978 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10979 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10980 eval as_val
=\$
$as_ac_var
10981 if test "x$as_val" = x
""yes; then :
10982 cat >>confdefs.h
<<_ACEOF
10983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10989 if test "x$ac_cv_func_fork" = xyes
; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10991 $as_echo_n "checking for working fork... " >&6; }
10992 if test "${ac_cv_func_fork_works+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
10995 if test "$cross_compiling" = yes; then :
10996 ac_cv_func_fork_works
=cross
10998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11000 $ac_includes_default
11005 /* By Ruediger Kuhlmann. */
11006 return fork () < 0;
11012 if ac_fn_c_try_run
"$LINENO"; then :
11013 ac_cv_func_fork_works
=yes
11015 ac_cv_func_fork_works
=no
11017 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11018 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11023 $as_echo "$ac_cv_func_fork_works" >&6; }
11026 ac_cv_func_fork_works
=$ac_cv_func_fork
11028 if test "x$ac_cv_func_fork_works" = xcross
; then
11030 *-*-amigaos* |
*-*-msdosdjgpp*)
11031 # Override, as these systems have only a dummy fork() stub
11032 ac_cv_func_fork_works
=no
11035 ac_cv_func_fork_works
=yes
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11039 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11041 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11042 if test "x$ac_cv_func_vfork" = xyes
; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11044 $as_echo_n "checking for working vfork... " >&6; }
11045 if test "${ac_cv_func_vfork_works+set}" = set; then :
11046 $as_echo_n "(cached) " >&6
11048 if test "$cross_compiling" = yes; then :
11049 ac_cv_func_vfork_works
=cross
11051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11053 /* Thanks to Paul Eggert for this test. */
11054 $ac_includes_default
11055 #include <sys/wait.h>
11056 #ifdef HAVE_VFORK_H
11057 # include <vfork.h>
11059 /* On some sparc systems, changes by the child to local and incoming
11060 argument registers are propagated back to the parent. The compiler
11061 is told about this with #include <vfork.h>, but some compilers
11062 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11063 static variable whose address is put into a register that is
11064 clobbered by the vfork. */
11067 sparc_address_test (int arg)
11069 sparc_address_test (arg) int arg;
11072 static pid_t child;
11090 pid_t parent = getpid ();
11093 sparc_address_test (0);
11098 /* Here is another test for sparc vfork register problems. This
11099 test uses lots of local variables, at least as many local
11100 variables as main has allocated so far including compiler
11101 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11102 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11103 reuse the register of parent for one of the local variables,
11104 since it will think that parent can't possibly be used any more
11105 in this routine. Assigning to the local variable will thus
11106 munge parent in the parent process. */
11108 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11109 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11110 /* Convince the compiler that p..p7 are live; otherwise, it might
11111 use the same hardware register for all 8 local variables. */
11112 if (p != p1 || p != p2 || p != p3 || p != p4
11113 || p != p5 || p != p6 || p != p7)
11116 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11117 from child file descriptors. If the child closes a descriptor
11118 before it execs or exits, this munges the parent's descriptor
11119 as well. Test for this by closing stdout in the child. */
11120 _exit(close(fileno(stdout)) != 0);
11125 while (wait(&status) != child)
11128 /* Was there some problem with vforking? */
11131 /* Did the child fail? (This shouldn't happen.) */
11134 /* Did the vfork/compiler bug occur? */
11135 || parent != getpid()
11137 /* Did the file descriptor bug occur? */
11138 || fstat(fileno(stdout), &st) != 0
11143 if ac_fn_c_try_run
"$LINENO"; then :
11144 ac_cv_func_vfork_works
=yes
11146 ac_cv_func_vfork_works
=no
11148 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11149 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11154 $as_echo "$ac_cv_func_vfork_works" >&6; }
11157 if test "x$ac_cv_func_fork_works" = xcross
; then
11158 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11160 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11163 if test "x$ac_cv_func_vfork_works" = xyes
; then
11165 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11169 $as_echo "#define vfork fork" >>confdefs.h
11172 if test "x$ac_cv_func_fork_works" = xyes
; then
11174 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11178 for ac_func
in canonicalize_file_name realpath getrusage getuid \
11179 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
11180 sigaction sigprocmask sigsetmask socketpair syscall \
11181 ttrace wborder setlocale iconvlist libiconvlist btowc
11183 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11184 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11185 eval as_val
=\$
$as_ac_var
11186 if test "x$as_val" = x
""yes; then :
11187 cat >>confdefs.h
<<_ACEOF
11188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11196 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11197 if test "${am_cv_langinfo_codeset+set}" = set; then :
11198 $as_echo_n "(cached) " >&6
11200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11202 #include <langinfo.h>
11206 char* cs = nl_langinfo(CODESET);
11211 if ac_fn_c_try_link
"$LINENO"; then :
11212 am_cv_langinfo_codeset
=yes
11214 am_cv_langinfo_codeset
=no
11216 rm -f core conftest.err conftest.
$ac_objext \
11217 conftest
$ac_exeext conftest.
$ac_ext
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11221 $as_echo "$am_cv_langinfo_codeset" >&6; }
11222 if test $am_cv_langinfo_codeset = yes; then
11224 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11229 # Check the return and argument types of ptrace. No canned test for
11230 # this, so roll our own.
11231 gdb_ptrace_headers
='
11232 #if HAVE_SYS_TYPES_H
11233 # include <sys/types.h>
11235 #if HAVE_SYS_PTRACE_H
11236 # include <sys/ptrace.h>
11239 # include <unistd.h>
11242 # There is no point in checking if we don't have a prototype.
11243 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
11245 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
11251 cat >>confdefs.h
<<_ACEOF
11252 #define HAVE_DECL_PTRACE $ac_have_decl
11254 if test $ac_have_decl = 1; then :
11258 : ${gdb_cv_func_ptrace_ret='int'}
11259 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11263 # Check return type. Varargs (used on GNU/Linux) conflict with the
11264 # empty argument list, so check for that explicitly.
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11266 $as_echo_n "checking return type of ptrace... " >&6; }
11267 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11268 $as_echo_n "(cached) " >&6
11270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11272 $gdb_ptrace_headers
11276 extern long ptrace (enum __ptrace_request, ...);
11281 if ac_fn_c_try_compile
"$LINENO"; then :
11282 gdb_cv_func_ptrace_ret
='long'
11284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11286 $gdb_ptrace_headers
11290 extern int ptrace ();
11295 if ac_fn_c_try_compile
"$LINENO"; then :
11296 gdb_cv_func_ptrace_ret
='int'
11298 gdb_cv_func_ptrace_ret
='long'
11300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11305 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11307 cat >>confdefs.h
<<_ACEOF
11308 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11311 # Check argument types.
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11313 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11314 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11320 $gdb_ptrace_headers
11324 extern long ptrace (enum __ptrace_request, ...);
11329 if ac_fn_c_try_compile
"$LINENO"; then :
11330 gdb_cv_func_ptrace_args
='int,int,long,long'
11333 for gdb_arg1
in 'int' 'long'; do
11334 for gdb_arg2
in 'pid_t' 'int' 'long'; do
11335 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11336 for gdb_arg4
in 'int' 'long'; do
11337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h. */
11339 $gdb_ptrace_headers
11344 extern $gdb_cv_func_ptrace_ret
11345 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11351 if ac_fn_c_try_compile
"$LINENO"; then :
11352 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11356 for gdb_arg5
in 'int *' 'int' 'long'; do
11357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h. */
11359 $gdb_ptrace_headers
11364 extern $gdb_cv_func_ptrace_ret
11365 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11371 if ac_fn_c_try_compile
"$LINENO"; then :
11373 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11382 # Provide a safe default value.
11383 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11389 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11390 ac_save_IFS
=$IFS; IFS
=','
11391 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11395 cat >>confdefs.h
<<_ACEOF
11396 #define PTRACE_TYPE_ARG3 $3
11399 if test -n "$5"; then
11401 cat >>confdefs.h
<<_ACEOF
11402 #define PTRACE_TYPE_ARG5 $5
11407 if test "$cross_compiling" = no
; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11409 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11410 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11411 $as_echo_n "(cached) " >&6
11413 if test "$cross_compiling" = yes; then :
11414 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
11416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11418 $ac_includes_default
11422 /* If this system has a BSD-style setpgrp which takes arguments,
11423 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11424 exit successfully. */
11425 return setpgrp (1,1) != -1;
11430 if ac_fn_c_try_run
"$LINENO"; then :
11431 ac_cv_func_setpgrp_void
=no
11433 ac_cv_func_setpgrp_void
=yes
11435 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11436 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11441 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11442 if test $ac_cv_func_setpgrp_void = yes; then
11444 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11450 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11451 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11452 $as_echo_n "(cached) " >&6
11454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11457 #include <unistd.h>
11463 if (setpgrp(1,1) == -1)
11472 if ac_fn_c_try_compile
"$LINENO"; then :
11473 ac_cv_func_setpgrp_void
=no
11475 ac_cv_func_setpgrp_void
=yes
11477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11480 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11481 if test $ac_cv_func_setpgrp_void = yes; then
11482 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11487 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
11488 # since sigsetjmp might only be defined as a macro.
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11490 $as_echo_n "checking for sigsetjmp... " >&6; }
11491 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11492 $as_echo_n "(cached) " >&6
11494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h. */
11497 #include <setjmp.h>
11502 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11507 if ac_fn_c_try_compile
"$LINENO"; then :
11508 gdb_cv_func_sigsetjmp
=yes
11510 gdb_cv_func_sigsetjmp
=no
11512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11515 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11516 if test $gdb_cv_func_sigsetjmp = yes; then
11518 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11522 # Assume we'll default to using the included libiberty regex.
11523 gdb_use_included_regex
=yes
11525 # However, if the system regex is GNU regex, then default to *not*
11526 # using the included regex.
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11528 $as_echo_n "checking for GNU regex... " >&6; }
11529 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11530 $as_echo_n "(cached) " >&6
11532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11534 #include <gnu-versions.h>
11538 #define REGEX_INTERFACE_VERSION 1
11539 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11540 # error "Version mismatch"
11546 if ac_fn_c_try_compile
"$LINENO"; then :
11547 gdb_cv_have_gnu_regex
=yes
11549 gdb_cv_have_gnu_regex
=no
11551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11554 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11555 if test $gdb_cv_have_gnu_regex = yes; then
11556 gdb_use_included_regex
=no
11560 # Check whether --with-included-regex was given.
11561 if test "${with_included_regex+set}" = set; then :
11562 withval
=$with_included_regex; gdb_with_regex
=$withval
11564 gdb_with_regex
=$gdb_use_included_regex
11567 if test "$gdb_with_regex" = yes; then
11569 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11573 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11574 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11575 #include <sys/proc.h>
11578 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
11580 cat >>confdefs.h
<<_ACEOF
11581 #define HAVE_STRUCT_THREAD_TD_PCB 1
11588 # See if <sys/lwp.h> defines `struct lwp`.
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11590 $as_echo_n "checking for struct lwp... " >&6; }
11591 if test "${gdb_cv_struct_lwp+set}" = set; then :
11592 $as_echo_n "(cached) " >&6
11594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11596 #include <sys/param.h>
11597 #include <sys/lwp.h>
11606 if ac_fn_c_try_compile
"$LINENO"; then :
11607 gdb_cv_struct_lwp
=yes
11609 gdb_cv_struct_lwp
=no
11611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11614 $as_echo "$gdb_cv_struct_lwp" >&6; }
11615 if test $gdb_cv_struct_lwp = yes; then
11617 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11621 # See if <machine/reg.h> degines `struct reg'.
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11623 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11624 if test "${gdb_cv_struct_reg+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11628 /* end confdefs.h. */
11629 #include <sys/types.h>
11630 #include <machine/reg.h>
11639 if ac_fn_c_try_compile
"$LINENO"; then :
11640 gdb_cv_struct_reg
=yes
11642 gdb_cv_struct_reg
=no
11644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11647 $as_echo "$gdb_cv_struct_reg" >&6; }
11648 if test $gdb_cv_struct_reg = yes; then
11650 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11654 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11655 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11656 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11658 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
11660 cat >>confdefs.h
<<_ACEOF
11661 #define HAVE_STRUCT_REG_R_FS 1
11666 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11668 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
11670 cat >>confdefs.h
<<_ACEOF
11671 #define HAVE_STRUCT_REG_R_GS 1
11678 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11680 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11681 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
11684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11685 /* end confdefs.h. */
11686 #include <sys/ptrace.h>
11695 if ac_fn_c_try_compile
"$LINENO"; then :
11696 gdb_cv_have_ptrace_getregs
=yes
11698 gdb_cv_have_ptrace_getregs
=no
11700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11704 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11705 if test $gdb_cv_have_ptrace_getregs = yes; then
11707 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11711 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11713 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11714 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
11717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11718 /* end confdefs.h. */
11719 #include <sys/ptrace.h>
11728 if ac_fn_c_try_compile
"$LINENO"; then :
11729 gdb_cv_have_ptrace_getfpxregs
=yes
11731 gdb_cv_have_ptrace_getfpxregs
=no
11733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11737 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11738 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11740 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11744 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11746 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11747 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11748 $as_echo_n "(cached) " >&6
11750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752 #include <sys/types.h>
11753 #include <sys/ptrace.h>
11762 if ac_fn_c_try_compile
"$LINENO"; then :
11763 gdb_cv_have_pt_getdbregs
=yes
11765 gdb_cv_have_pt_getdbregs
=no
11767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11771 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11772 if test $gdb_cv_have_pt_getdbregs = yes; then
11774 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11778 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11780 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11781 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11782 $as_echo_n "(cached) " >&6
11784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11786 #include <sys/types.h>
11787 #include <sys/ptrace.h>
11796 if ac_fn_c_try_compile
"$LINENO"; then :
11797 gdb_cv_have_pt_getxmmregs
=yes
11799 gdb_cv_have_pt_getxmmregs
=no
11801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11805 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11806 if test $gdb_cv_have_pt_getxmmregs = yes; then
11808 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11812 # Detect which type of /proc is in use, such as for Unixware or Solaris.
11814 if test "${target}" = "${host}"; then
11816 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
11818 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11821 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
11823 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11827 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
11829 $as_echo "#define _KMEMUSER 1" >>confdefs.h
11835 if test "$ac_cv_header_sys_procfs_h" = yes; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
11837 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
11838 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
11839 $as_echo_n "(cached) " >&6
11841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11845 #include <sys/procfs.h>
11854 if ac_fn_c_try_compile
"$LINENO"; then :
11855 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
11857 bfd_cv_have_sys_procfs_type_pstatus_t
=no
11860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11863 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
11865 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
11869 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
11872 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
11873 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
11874 $as_echo_n "(cached) " >&6
11876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11880 #include <sys/procfs.h>
11889 if ac_fn_c_try_compile
"$LINENO"; then :
11890 bfd_cv_have_sys_procfs_type_prrun_t
=yes
11892 bfd_cv_have_sys_procfs_type_prrun_t
=no
11895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11898 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
11900 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
11904 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11907 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11908 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11909 $as_echo_n "(cached) " >&6
11911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11912 /* end confdefs.h. */
11915 #include <sys/procfs.h>
11924 if ac_fn_c_try_compile
"$LINENO"; then :
11925 bfd_cv_have_sys_procfs_type_gregset_t
=yes
11927 bfd_cv_have_sys_procfs_type_gregset_t
=no
11930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11933 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
11935 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
11939 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
11942 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
11943 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
11946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11950 #include <sys/procfs.h>
11959 if ac_fn_c_try_compile
"$LINENO"; then :
11960 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
11962 bfd_cv_have_sys_procfs_type_fpregset_t
=no
11965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11968 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
11970 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11974 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11977 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11978 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11979 $as_echo_n "(cached) " >&6
11981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11985 #include <sys/procfs.h>
11994 if ac_fn_c_try_compile
"$LINENO"; then :
11995 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
11997 bfd_cv_have_sys_procfs_type_prgregset_t
=no
12000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12003 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
12005 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
12009 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
12012 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
12013 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12020 #include <sys/procfs.h>
12029 if ac_fn_c_try_compile
"$LINENO"; then :
12030 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
12032 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
12035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12038 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12040 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
12044 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
12047 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
12048 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
12049 $as_echo_n "(cached) " >&6
12051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12055 #include <sys/procfs.h>
12064 if ac_fn_c_try_compile
"$LINENO"; then :
12065 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
12067 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
12070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12073 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
12075 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
12079 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
12082 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
12083 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
12084 $as_echo_n "(cached) " >&6
12086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12090 #include <sys/procfs.h>
12094 prfpregset32_t avar
12099 if ac_fn_c_try_compile
"$LINENO"; then :
12100 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
12102 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
12105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12108 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
12110 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
12114 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
12117 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
12118 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
12121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12125 #include <sys/procfs.h>
12134 if ac_fn_c_try_compile
"$LINENO"; then :
12135 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
12137 bfd_cv_have_sys_procfs_type_lwpid_t
=no
12140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12143 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
12145 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
12149 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
12152 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
12153 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
12156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12160 #include <sys/procfs.h>
12169 if ac_fn_c_try_compile
"$LINENO"; then :
12170 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
12172 bfd_cv_have_sys_procfs_type_psaddr_t
=no
12175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12178 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
12180 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
12184 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
12187 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
12188 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
12189 $as_echo_n "(cached) " >&6
12191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h. */
12195 #include <sys/procfs.h>
12204 if ac_fn_c_try_compile
"$LINENO"; then :
12205 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
12207 bfd_cv_have_sys_procfs_type_prsysent_t
=no
12210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12213 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
12215 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
12219 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
12222 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
12223 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12230 #include <sys/procfs.h>
12239 if ac_fn_c_try_compile
"$LINENO"; then :
12240 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
12242 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
12245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12248 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
12250 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
12254 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
12257 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
12258 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12259 $as_echo_n "(cached) " >&6
12261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12265 #include <sys/procfs.h>
12269 pr_sigaction64_t avar
12274 if ac_fn_c_try_compile
"$LINENO"; then :
12275 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
12277 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
12280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12283 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12285 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12289 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12292 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12293 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
12296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h. */
12300 #include <sys/procfs.h>
12304 pr_siginfo64_t avar
12309 if ac_fn_c_try_compile
"$LINENO"; then :
12310 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
12312 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
12315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12318 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12320 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12324 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12330 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12332 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12333 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12334 $as_echo_n "(cached) " >&6
12336 if test "$cross_compiling" = yes; then :
12337 gdb_cv_prfpregset_t_broken
=yes
12339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12341 #include <sys/procfs.h>
12344 if (sizeof (prfpregset_t) == sizeof (void *))
12349 if ac_fn_c_try_run
"$LINENO"; then :
12350 gdb_cv_prfpregset_t_broken
=no
12352 gdb_cv_prfpregset_t_broken
=yes
12354 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12355 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12361 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12362 if test $gdb_cv_prfpregset_t_broken = yes; then
12364 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
12371 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
12372 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
12373 $as_echo_n "(cached) " >&6
12375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12377 #include <unistd.h>
12378 #include <sys/types.h>
12379 #include <sys/procfs.h>
12386 dummy = ioctl(0, PIOCSET, &dummy);
12392 if ac_fn_c_try_compile
"$LINENO"; then :
12393 gdb_cv_have_procfs_piocset
=yes
12395 gdb_cv_have_procfs_piocset
=no
12397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
12401 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
12402 if test $gdb_cv_have_procfs_piocset = yes; then
12404 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
12409 if test ${host} = ${target} ; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
12412 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
12413 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
12414 $as_echo_n "(cached) " >&6
12416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12422 struct link_map lm; (void) lm.l_addr;
12427 if ac_fn_c_try_compile
"$LINENO"; then :
12428 gdb_cv_have_struct_link_map_with_l_members
=yes
12430 gdb_cv_have_struct_link_map_with_l_members
=no
12432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
12436 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
12437 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
12439 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
12445 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
12446 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
12447 $as_echo_n "(cached) " >&6
12449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12451 #include <sys/types.h>
12456 struct link_map lm; (void) lm.lm_addr;
12461 if ac_fn_c_try_compile
"$LINENO"; then :
12462 gdb_cv_have_struct_link_map_with_lm_members
=yes
12464 gdb_cv_have_struct_link_map_with_lm_members
=no
12466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
12470 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
12471 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
12473 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
12479 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
12480 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
12481 $as_echo_n "(cached) " >&6
12483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12485 #include <sys/types.h>
12486 #ifdef HAVE_NLIST_H
12493 struct so_map lm; (void) lm.som_addr;
12498 if ac_fn_c_try_compile
"$LINENO"; then :
12499 gdb_cv_have_struct_so_map_with_som_members
=yes
12501 gdb_cv_have_struct_so_map_with_som_members
=no
12503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
12507 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
12508 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
12510 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
12516 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
12517 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
12520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12523 #include <sys/link.h>
12527 struct link_map32 l;
12532 if ac_fn_c_try_compile
"$LINENO"; then :
12533 gdb_cv_have_struct_link_map32
=yes
12535 gdb_cv_have_struct_link_map32
=no
12537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
12541 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
12542 if test $gdb_cv_have_struct_link_map32 = yes; then
12544 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
12547 $as_echo "#define _SYSCALL32 1" >>confdefs.h
12552 # Check if the compiler supports the `long long' type.
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12555 $as_echo_n "checking for long long support in compiler... " >&6; }
12556 if test "${gdb_cv_c_long_long+set}" = set; then :
12557 $as_echo_n "(cached) " >&6
12559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12561 extern long long foo;
12565 switch (foo & 2) { case 0: return 1; }
12570 if ac_fn_c_try_compile
"$LINENO"; then :
12571 gdb_cv_c_long_long
=yes
12573 gdb_cv_c_long_long
=no
12575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12578 $as_echo "$gdb_cv_c_long_long" >&6; }
12579 if test $gdb_cv_c_long_long = yes; then
12581 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12585 # Check if the compiler and runtime support printing long longs.
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12588 $as_echo_n "checking for long long support in printf... " >&6; }
12589 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12590 $as_echo_n "(cached) " >&6
12592 if test "$cross_compiling" = yes; then :
12593 gdb_cv_printf_has_long_long
=no
12595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597 $ac_includes_default
12603 l = (l << 16) + 0x0123;
12604 l = (l << 16) + 0x4567;
12605 l = (l << 16) + 0x89ab;
12606 l = (l << 16) + 0xcdef;
12607 sprintf (buf, "0x%016llx", l);
12608 return (strcmp ("0x0123456789abcdef", buf));
12613 if ac_fn_c_try_run
"$LINENO"; then :
12614 gdb_cv_printf_has_long_long
=yes
12616 gdb_cv_printf_has_long_long
=no
12618 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12619 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12624 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12625 if test $gdb_cv_printf_has_long_long = yes; then
12627 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12631 # Check if the compiler and runtime support printing decfloats.
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12634 $as_echo_n "checking for decfloat support in printf... " >&6; }
12635 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12636 $as_echo_n "(cached) " >&6
12638 if test "$cross_compiling" = yes; then :
12639 gdb_cv_printf_has_decfloat
=no
12641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 $ac_includes_default
12648 _Decimal32 d32 = 1.2345df;
12649 _Decimal64 d64 = 1.2345dd;
12650 _Decimal128 d128 = 1.2345dl;
12651 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12652 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12657 if ac_fn_c_try_run
"$LINENO"; then :
12658 gdb_cv_printf_has_decfloat
=yes
12660 gdb_cv_printf_has_decfloat
=no
12662 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12663 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12668 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12669 if test $gdb_cv_printf_has_decfloat = yes; then
12671 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12675 # Check if the compiler supports the `long double' type. We can't use
12676 # AC_C_LONG_DOUBLE because that one does additional checks on the
12677 # constants defined in <float.h> that fail on some systems,
12678 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12681 $as_echo_n "checking for long double support in compiler... " >&6; }
12682 if test "${gdb_cv_c_long_double+set}" = set; then :
12683 $as_echo_n "(cached) " >&6
12685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12689 if ac_fn_c_try_compile
"$LINENO"; then :
12690 gdb_cv_c_long_double
=yes
12692 gdb_cv_c_long_double
=no
12694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12697 $as_echo "$gdb_cv_c_long_double" >&6; }
12698 if test $gdb_cv_c_long_double = yes; then
12700 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12704 # Check if the compiler and runtime support printing long doubles.
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12707 $as_echo_n "checking for long double support in printf... " >&6; }
12708 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
12711 if test "$cross_compiling" = yes; then :
12712 gdb_cv_printf_has_long_double
=no
12714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h. */
12716 $ac_includes_default
12721 long double f = 3.141592653;
12722 sprintf (buf, "%Lg", f);
12723 return (strncmp ("3.14159", buf, 7));
12728 if ac_fn_c_try_run
"$LINENO"; then :
12729 gdb_cv_printf_has_long_double
=yes
12731 gdb_cv_printf_has_long_double
=no
12733 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12734 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12739 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12740 if test $gdb_cv_printf_has_long_double = yes; then
12742 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12746 # Check if the compiler and runtime support scanning long doubles.
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12749 $as_echo_n "checking for long double support in scanf... " >&6; }
12750 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12751 $as_echo_n "(cached) " >&6
12753 if test "$cross_compiling" = yes; then :
12754 gdb_cv_scanf_has_long_double
=no
12756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12762 char *buf = "3.141592653";
12764 sscanf (buf, "%Lg", &f);
12765 return !(f > 3.14159 && f < 3.14160);
12770 if ac_fn_c_try_run
"$LINENO"; then :
12771 gdb_cv_scanf_has_long_double
=yes
12773 gdb_cv_scanf_has_long_double
=no
12775 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12776 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12781 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12782 if test $gdb_cv_scanf_has_long_double = yes; then
12784 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12791 $as_echo_n "checking for -bbigtoc option... " >&6; }
12792 if test "${gdb_cv_bigtoc+set}" = set; then :
12793 $as_echo_n "(cached) " >&6
12796 SAVE_LDFLAGS
=$LDFLAGS
12799 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
12800 *) gdb_cv_bigtoc
=-bbigtoc ;;
12803 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
12804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12815 if ac_fn_c_try_link
"$LINENO"; then :
12820 rm -f core conftest.err conftest.
$ac_objext \
12821 conftest
$ac_exeext conftest.
$ac_ext
12822 LDFLAGS
="${SAVE_LDFLAGS}"
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12826 $as_echo "$gdb_cv_bigtoc" >&6; }
12827 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12833 if test ${build} = ${host} -a ${host} = ${target} ; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
12837 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
12838 if test -f /usr
/include
/dce
/cma_config.h
; then
12839 if test "$GCC" = "yes" ; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12841 $as_echo "yes" >&6; }
12843 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
12845 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
12846 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
12849 $as_echo "no (suppressed because you are not using GCC)" >&6; }
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12857 # See if thread_db library is around for Solaris thread debugging.
12858 # Note that we must explicitly test for version 1 of the library
12859 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12862 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12863 if test -f /usr
/lib
/libthread_db.so
.1 ; then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12865 $as_echo "yes" >&6; }
12867 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12869 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
12870 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12872 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12874 $as_echo_n "(cached) " >&6
12876 ac_check_lib_save_LIBS
=$LIBS
12878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12881 /* Override any GCC internal prototype to avoid an error.
12882 Use char because int might match the return type of a GCC
12883 builtin and then its argument prototype would still apply. */
12896 if ac_fn_c_try_link
"$LINENO"; then :
12897 ac_cv_lib_dl_dlopen
=yes
12899 ac_cv_lib_dl_dlopen
=no
12901 rm -f core conftest.err conftest.
$ac_objext \
12902 conftest
$ac_exeext conftest.
$ac_ext
12903 LIBS
=$ac_check_lib_save_LIBS
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12906 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12907 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
12908 cat >>confdefs.h
<<_ACEOF
12909 #define HAVE_LIBDL 1
12916 if test "$GCC" = "yes" ; then
12917 # The GNU linker requires the -export-dynamic option to make
12918 # all symbols visible in the dynamic symbol table.
12919 hold_ldflags
=$LDFLAGS
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
12921 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
12922 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
12923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12934 if ac_fn_c_try_link
"$LINENO"; then :
12939 rm -f core conftest.err conftest.
$ac_objext \
12940 conftest
$ac_exeext conftest.
$ac_ext
12941 LDFLAGS
=$hold_ldflags
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12943 $as_echo "$found" >&6; }
12944 if test $found = yes; then
12945 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
12948 # Sun randomly tweaked the prototypes in <proc_service.h>
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12951 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12952 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12953 $as_echo_n "(cached) " >&6
12956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12959 #include <proc_service.h>
12960 ps_err_e ps_pdwrite
12961 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12971 if ac_fn_c_try_compile
"$LINENO"; then :
12972 gdb_cv_proc_service_is_old
=no
12974 gdb_cv_proc_service_is_old
=yes
12976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12981 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12982 if test $gdb_cv_proc_service_is_old = yes; then
12984 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12994 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12995 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
12998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13000 #include <sys/pthdebug.h>
13004 #ifndef PTHDB_VERSION_3
13011 if ac_fn_c_try_compile
"$LINENO"; then :
13012 gdb_cv_have_aix_thread_debug
=yes
13014 gdb_cv_have_aix_thread_debug
=no
13016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13020 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13021 if test $gdb_cv_have_aix_thread_debug = yes; then
13022 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
13023 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
13024 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
13031 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13033 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13034 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13035 $as_echo_n "(cached) " >&6
13037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13039 #include <thread_db.h>
13043 int i = TD_NOTALLOC;
13048 if ac_fn_c_try_compile
"$LINENO"; then :
13049 gdb_cv_thread_db_h_has_td_notalloc
=yes
13051 gdb_cv_thread_db_h_has_td_notalloc
=no
13054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13058 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13060 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13061 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13062 $as_echo_n "(cached) " >&6
13064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13065 /* end confdefs.h. */
13066 #include <thread_db.h>
13070 int i = TD_VERSION;
13075 if ac_fn_c_try_compile
"$LINENO"; then :
13076 gdb_cv_thread_db_h_has_td_version
=yes
13078 gdb_cv_thread_db_h_has_td_version
=no
13081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
13085 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
13087 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
13088 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093 #include <thread_db.h>
13102 if ac_fn_c_try_compile
"$LINENO"; then :
13103 gdb_cv_thread_db_h_has_td_notls
=yes
13105 gdb_cv_thread_db_h_has_td_notls
=no
13108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
13112 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
13114 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
13116 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
13119 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
13121 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
13124 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
13126 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
13130 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
13132 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
13133 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
13134 $as_echo_n "(cached) " >&6
13136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13138 #include <sys/syscall.h>
13142 int i = __NR_tkill;
13147 if ac_fn_c_try_compile
"$LINENO"; then :
13148 gdb_cv_sys_syscall_h_has_tkill
=yes
13150 gdb_cv_sys_syscall_h_has_tkill
=no
13153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
13157 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
13159 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
13161 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
13165 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13167 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
13173 cat >>confdefs.h
<<_ACEOF
13174 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13178 if test "$cross_compiling" = yes; then :
13179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13180 /* end confdefs.h. */
13181 #include <sys/personality.h>
13186 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13187 # define ADDR_NO_RANDOMIZE 0x0040000
13189 /* Test the flag could be set and stays set. */
13190 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13191 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13197 if ac_fn_c_try_link
"$LINENO"; then :
13198 have_personality
=true
13200 have_personality
=false
13202 rm -f core conftest.err conftest.
$ac_objext \
13203 conftest
$ac_exeext conftest.
$ac_ext
13205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13207 #include <sys/personality.h>
13212 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13213 # define ADDR_NO_RANDOMIZE 0x0040000
13215 /* Test the flag could be set and stays set. */
13216 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13217 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13223 if ac_fn_c_try_run
"$LINENO"; then :
13224 have_personality
=true
13226 have_personality
=false
13228 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13229 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13232 if $have_personality
13235 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13240 target_sysroot_reloc
=0
13242 # Check whether --with-sysroot was given.
13243 if test "${with_sysroot+set}" = set; then :
13244 withval
=$with_sysroot;
13245 case ${with_sysroot} in
13246 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
13247 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
13250 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
13252 if test "x$prefix" = xNONE
; then
13253 test_prefix
=/usr
/local
13255 test_prefix
=$prefix
13257 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13258 test_exec_prefix
=$test_prefix
13260 test_exec_prefix
=$exec_prefix
13262 case ${TARGET_SYSTEM_ROOT} in
13263 "${test_prefix}"|
"${test_prefix}/"*|\
13264 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
13265 '${prefix}'|
'${prefix}/'*|\
13266 '${exec_prefix}'|
'${exec_prefix}/'*)
13267 target_sysroot_reloc
=1
13273 TARGET_SYSTEM_ROOT
=
13274 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
13278 TARGET_SYSTEM_ROOT_DEFINE
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
13284 # Check whether --with-system-gdbinit was given.
13285 if test "${with_system_gdbinit+set}" = set; then :
13286 withval
=$with_system_gdbinit;
13287 SYSTEM_GDBINIT
=$withval
13293 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
13294 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13295 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
13296 ac_define_dir
=`eval echo $ac_define_dir`
13298 cat >>confdefs.h
<<_ACEOF
13299 #define SYSTEM_GDBINIT "$ac_define_dir"
13304 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13305 if test "x$prefix" = xNONE
; then
13306 test_prefix
=/usr
/local
13308 test_prefix
=$prefix
13311 test_prefix
=$exec_prefix
13314 case ${ac_define_dir} in
13315 "${test_prefix}"|
"${test_prefix}/"*|\
13316 '${exec_prefix}'|
'${exec_prefix}/'*)
13321 cat >>confdefs.h
<<_ACEOF
13322 #define SYSTEM_GDBINIT_RELOCATABLE $value
13327 # Check whether --enable-werror was given.
13328 if test "${enable_werror+set}" = set; then :
13329 enableval
=$enable_werror; case "${enableval}" in
13330 yes | y
) ERROR_ON_WARNING
="yes" ;;
13331 no | n
) ERROR_ON_WARNING
="no" ;;
13332 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13337 # Enable -Werror by default when using gcc
13338 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13339 ERROR_ON_WARNING
=yes
13343 if test "${ERROR_ON_WARNING}" = yes ; then
13344 WERROR_CFLAGS
="-Werror"
13347 # The entries after -Wno-pointer-sign are disabled warnings which may
13348 # be enabled in the future, which can not currently be used to build
13350 # NOTE: If you change this list, remember to update
13351 # gdb/doc/gdbint.texinfo.
13352 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13353 -Wformat-nonliteral -Wno-pointer-sign \
13354 -Wno-unused -Wunused-value -Wno-switch -Wno-char-subscripts"
13356 # Enable -Wno-format by default when using gcc on mingw since many
13357 # GCC versions complain about %I64.
13359 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
13362 # Check whether --enable-build-warnings was given.
13363 if test "${enable_build_warnings+set}" = set; then :
13364 enableval
=$enable_build_warnings; case "${enableval}" in
13366 no
) build_warnings
="-w";;
13367 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13368 build_warnings
="${build_warnings} ${t}";;
13369 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13370 build_warnings
="${t} ${build_warnings}";;
13371 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13373 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13374 echo "Setting compiler warning flags = $build_warnings" 6>&1
13377 # Check whether --enable-gdb-build-warnings was given.
13378 if test "${enable_gdb_build_warnings+set}" = set; then :
13379 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
13381 no
) build_warnings
="-w";;
13382 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13383 build_warnings
="${build_warnings} ${t}";;
13384 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13385 build_warnings
="${t} ${build_warnings}";;
13386 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13388 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13389 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13393 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13396 $as_echo_n "checking compiler warning flags... " >&6; }
13397 # Separate out the -Werror flag as some files just cannot be
13398 # compiled with it enabled.
13399 for w
in ${build_warnings}; do
13401 -Werr*) WERROR_CFLAGS
=-Werror ;;
13402 *) # Check that GCC accepts it
13403 saved_CFLAGS
="$CFLAGS"
13404 CFLAGS
="$CFLAGS $w"
13405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13416 if ac_fn_c_try_compile
"$LINENO"; then :
13417 WARN_CFLAGS
="${WARN_CFLAGS} $w"
13419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13420 CFLAGS
="$saved_CFLAGS"
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13424 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13429 # In the Cygwin environment, we need some additional flags.
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
13431 $as_echo_n "checking
for cygwin...
" >&6; }
13432 if test "${gdb_cv_os_cygwin+set}" = set; then :
13433 $as_echo_n "(cached
) " >&6
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13438 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13442 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13443 $EGREP "lose
" >/dev/null 2>&1; then :
13444 gdb_cv_os_cygwin=yes
13446 gdb_cv_os_cygwin=no
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
13452 $as_echo "$gdb_cv_os_cygwin" >&6; }
13455 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
13457 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13458 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13459 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
13463 # libreadline needs libuser32.a in a cygwin environment
13465 if test x$gdb_cv_os_cygwin = xyes; then
13466 WIN32LIBS="-luser32"
13467 case "${target}" in
13468 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13473 # The ser-tcp.c module requires sockets.
13477 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13479 WIN32LIBS
="$WIN32LIBS -lws2_32"
13484 # Add ELF support to GDB, but only if BFD includes ELF support.
13486 OLD_LDFLAGS
=$LDFLAGS
13488 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
13489 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
13490 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13491 LIBS
="-lbfd -liberty $intl $LIBS"
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13493 $as_echo_n "checking for ELF support in BFD... " >&6; }
13494 if test "${gdb_cv_var_elf+set}" = set; then :
13495 $as_echo_n "(cached) " >&6
13497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13499 #include <stdlib.h>
13501 #include "elf-bfd.h"
13506 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
13511 if ac_fn_c_try_link
"$LINENO"; then :
13516 rm -f core conftest.err conftest.
$ac_objext \
13517 conftest
$ac_exeext conftest.
$ac_ext
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13520 $as_echo "$gdb_cv_var_elf" >&6; }
13521 if test $gdb_cv_var_elf = yes; then
13522 CONFIG_OBS
="$CONFIG_OBS elfread.o"
13524 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13528 LDFLAGS
=$OLD_LDFLAGS
13531 # Add any host-specific objects to GDB.
13532 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
13534 LIBGUI
="../libgui/src/libgui.a"
13535 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
13544 *-*-cygwin* |
*-*-mingw* )
13553 if test "${enable_gdbtk}" = "yes"; then
13555 # Gdbtk must have an absolute path to srcdir in order to run
13556 # properly when not installed.
13559 GDBTK_SRC_DIR
=`pwd`
13564 # Ok, lets find the tcl configuration
13565 # First, look for one uninstalled.
13566 # the alternative search directory is invoked by --with-tcl
13569 if test x
"${no_tcl}" = x
; then
13570 # we reset no_tcl in case something fails here
13573 # Check whether --with-tcl was given.
13574 if test "${with_tcl+set}" = set; then :
13575 withval
=$with_tcl; with_tclconfig
=${withval}
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13579 $as_echo_n "checking for Tcl configuration... " >&6; }
13580 if test "${ac_cv_c_tclconfig+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
13585 # First check to see if --with-tcl was specified.
13587 *-*-cygwin*) platDir
="win" ;;
13588 *) platDir
="unix" ;;
13590 if test x
"${with_tclconfig}" != x
; then
13591 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13592 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
13594 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13598 # then check for a private Tcl installation
13599 if test x
"${ac_cv_c_tclconfig}" = x
; then
13602 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13603 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13604 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13606 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13607 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13608 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13610 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13611 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13612 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
13613 if test -f "$i/$platDir/tclConfig.sh" ; then
13614 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
13620 # on Darwin, check in Framework installation locations
13621 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
13622 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
13623 `ls -d /Library/Frameworks 2>/dev/null` \
13624 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13625 `ls -d /System/Library/Frameworks 2>/dev/null` \
13627 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13628 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
13634 # check in a few common install locations
13635 if test x
"${ac_cv_c_tclconfig}" = x
; then
13636 for i
in `ls -d ${libdir} 2>/dev/null` \
13637 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13638 `ls -d ${prefix}/lib 2>/dev/null` \
13639 `ls -d /usr/local/lib 2>/dev/null` \
13640 `ls -d /usr/contrib/lib 2>/dev/null` \
13641 `ls -d /usr/lib 2>/dev/null` \
13643 if test -f "$i/tclConfig.sh" ; then
13644 ac_cv_c_tclconfig
=`(cd $i; pwd)`
13650 # check in a few other private locations
13651 if test x
"${ac_cv_c_tclconfig}" = x
; then
13654 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13655 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13656 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
13657 if test -f "$i/$platDir/tclConfig.sh" ; then
13658 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
13667 if test x
"${ac_cv_c_tclconfig}" = x
; then
13668 TCL_BIN_DIR
="# no Tcl configs found"
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13670 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13673 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
13675 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13680 # If $no_tk is nonempty, then we can't do Tk, and there is no
13681 # point to doing Tcl.
13684 # Ok, lets find the tk configuration
13685 # First, look for one uninstalled.
13686 # the alternative search directory is invoked by --with-tk
13689 if test x
"${no_tk}" = x
; then
13690 # we reset no_tk in case something fails here
13693 # Check whether --with-tk was given.
13694 if test "${with_tk+set}" = set; then :
13695 withval
=$with_tk; with_tkconfig
=${withval}
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
13699 $as_echo_n "checking for Tk configuration... " >&6; }
13700 if test "${ac_cv_c_tkconfig+set}" = set; then :
13701 $as_echo_n "(cached) " >&6
13705 # First check to see if --with-tkconfig was specified.
13706 if test x
"${with_tkconfig}" != x
; then
13707 if test -f "${with_tkconfig}/tkConfig.sh" ; then
13708 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
13710 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
13714 # then check for a private Tk library
13716 *-*-cygwin*) platDir
="win" ;;
13717 *) platDir
="unix" ;;
13719 if test x
"${ac_cv_c_tkconfig}" = x
; then
13722 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13723 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
13724 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
13726 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13727 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
13728 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
13730 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13731 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
13732 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
13733 if test -f "$i/$platDir/tkConfig.sh" ; then
13734 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
13740 # on Darwin, check in Framework installation locations
13741 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
13742 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
13743 `ls -d /Library/Frameworks 2>/dev/null` \
13744 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13745 `ls -d /System/Library/Frameworks 2>/dev/null` \
13747 if test -f "$i/Tk.framework/tkConfig.sh" ; then
13748 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
13754 # check in a few common install locations
13755 if test x
"${ac_cv_c_tkconfig}" = x
; then
13756 for i
in `ls -d ${libdir} 2>/dev/null` \
13757 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13758 `ls -d ${prefix}/lib 2>/dev/null` \
13759 `ls -d /usr/local/lib 2>/dev/null` \
13760 `ls -d /usr/contrib/lib 2>/dev/null` \
13761 `ls -d /usr/lib 2>/dev/null` \
13763 if test -f "$i/tkConfig.sh" ; then
13764 ac_cv_c_tkconfig
=`(cd $i; pwd)`
13769 # check in a few other private locations
13770 if test x
"${ac_cv_c_tkconfig}" = x
; then
13773 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13774 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
13775 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
13776 if test -f "$i/$platDir/tkConfig.sh" ; then
13777 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
13786 if test x
"${ac_cv_c_tkconfig}" = x
; then
13787 TK_BIN_DIR
="# no Tk configs found"
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
13789 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
13792 TK_BIN_DIR
=${ac_cv_c_tkconfig}
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
13794 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13799 if test -z "${no_tcl}" -a -z "${no_tk}"; then
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
13802 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
13804 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13806 $as_echo "loading" >&6; }
13807 .
${TCL_BIN_DIR}/tclConfig.sh
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
13810 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13813 # eval is required to do the TCL_DBGX substitution
13814 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13815 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13817 # If the TCL_BIN_DIR is the build directory (not the install directory),
13818 # then set the common variable name to the value of the build variables.
13819 # For example, the variable TCL_LIB_SPEC will be set to the value
13820 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13821 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13822 # installed and uninstalled version of Tcl.
13823 if test -f "${TCL_BIN_DIR}/Makefile" ; then
13824 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
13825 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
13826 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
13827 elif test "`uname -s`" = "Darwin"; then
13828 # If Tcl was built as a framework, attempt to use the libraries
13829 # from the framework at the given location so that linking works
13830 # against Tcl.framework installed in an arbitary location.
13831 case ${TCL_DEFS} in
13833 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
13834 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
13835 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
13836 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
13837 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
13842 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
13843 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
13844 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
13850 # eval is required to do the TCL_DBGX substitution
13851 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13852 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13853 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13854 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13870 # Check for in-tree tcl
13877 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
13881 # Find Tcl private headers
13882 if test x
"${intree}" = xno
; then
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
13885 $as_echo_n "checking for Tcl private headers... " >&6; }
13887 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
13888 if test -f ${dir}/tclInt.h
; then
13892 if test x
"${private_dir}" = x
; then
13893 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
13895 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13897 $as_echo "${private_dir}" >&6; }
13900 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
13901 TCL_LIBRARY
="${TCL_LIB_SPEC}"
13904 # If building tcl in the same src tree, private headers
13905 # are not needed, but we need to be sure to use the right
13907 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
13908 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
13909 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
13917 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
13919 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13921 $as_echo "loading" >&6; }
13922 .
${TK_BIN_DIR}/tkConfig.sh
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
13925 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13928 # eval is required to do the TK_DBGX substitution
13929 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
13930 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
13932 # If the TK_BIN_DIR is the build directory (not the install directory),
13933 # then set the common variable name to the value of the build variables.
13934 # For example, the variable TK_LIB_SPEC will be set to the value
13935 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
13936 # instead of TK_BUILD_LIB_SPEC since it will work with both an
13937 # installed and uninstalled version of Tcl.
13938 if test -f "${TK_BIN_DIR}/Makefile" ; then
13939 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
13940 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
13941 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
13942 elif test "`uname -s`" = "Darwin"; then
13943 # If Tk was built as a framework, attempt to use the libraries
13944 # from the framework at the given location so that linking works
13945 # against Tk.framework installed in an arbitary location.
13948 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
13949 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
13950 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
13951 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
13952 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
13957 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
13958 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
13959 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
13965 # eval is required to do the TK_DBGX substitution
13966 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
13967 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
13968 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
13969 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
13984 # Check for in-tree Tk
13986 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
13990 # Find Tk private headers
13991 if test x
"${intree}" = xno
; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
13994 $as_echo_n "checking for Tk private headers... " >&6; }
13996 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
13997 if test -f ${dir}/tkInt.h
; then
14001 if test x
"${private_dir}" = x
; then
14002 as_fn_error
"could not find Tk private headers" "$LINENO" 5
14004 TK_PRIVATE_INCLUDE
="-I${private_dir}"
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14006 $as_echo "${private_dir}" >&6; }
14009 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14010 TK_LIBRARY
=${TK_LIB_SPEC}
14013 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
14014 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
14015 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
14022 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14024 # Include some libraries that Tcl and Tk want.
14025 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14026 # Yes, the ordering seems wrong here. But it isn't.
14027 # TK_LIBS is the list of libraries that need to be linked
14028 # after Tcl/Tk. Note that this isn't put into LIBS. If it
14029 # were in LIBS then any link tests after this point would
14030 # try to include things like `$(LIBGUI)', which wouldn't work.
14031 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
14033 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14034 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14035 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14036 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
14037 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
14038 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
14039 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
14041 if test x
$gdb_cv_os_cygwin = xyes
; then
14042 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14043 WIN32LDAPP
="-Wl,--subsystem,console"
14044 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
14047 subdirs
="$subdirs gdbtk"
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14060 $as_echo_n "checking for X... " >&6; }
14063 # Check whether --with-x was given.
14064 if test "${with_x+set}" = set; then :
14068 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14069 if test "x$with_x" = xno
; then
14070 # The user explicitly disabled X.
14073 case $x_includes,$x_libraries in #(
14074 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
14075 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
14076 $as_echo_n "(cached) " >&6
14078 # One or both of the vars are not set, and there is no cached value.
14079 ac_x_includes
=no ac_x_libraries
=no
14080 rm -f -r conftest.dir
14081 if mkdir conftest.dir
; then
14083 cat >Imakefile
<<'_ACEOF'
14085 @echo incroot='${INCROOT}'
14087 @echo usrlibdir='${USRLIBDIR}'
14089 @echo libdir='${LIBDIR}'
14091 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14093 for ac_var
in incroot usrlibdir libdir
; do
14094 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14096 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14097 for ac_extension
in a so sl dylib la dll
; do
14098 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14099 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14100 ac_im_usrlibdir
=$ac_im_libdir; break
14103 # Screen out bogus values from the imake configuration. They are
14104 # bogus both because they are the default anyway, and because
14105 # using them would break gcc on systems where it needs fixed includes.
14106 case $ac_im_incroot in
14107 /usr
/include
) ac_x_includes
= ;;
14108 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14110 case $ac_im_usrlibdir in
14111 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14112 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14116 rm -f -r conftest.dir
14119 # Standard set of common directories for X headers.
14120 # Check X11 before X11Rn because it is often a symlink to the current release.
14134 /usr/local/X11/include
14135 /usr/local/X11R7/include
14136 /usr/local/X11R6/include
14137 /usr/local/X11R5/include
14138 /usr/local/X11R4/include
14140 /usr/local/include/X11
14141 /usr/local/include/X11R7
14142 /usr/local/include/X11R6
14143 /usr/local/include/X11R5
14144 /usr/local/include/X11R4
14148 /usr/XFree86/include/X11
14152 /usr/unsupported/include
14153 /usr/athena/include
14154 /usr/local/x11r5/include
14155 /usr/lpp/Xamples/include
14157 /usr/openwin/include
14158 /usr/openwin/share/include'
14160 if test "$ac_x_includes" = no
; then
14161 # Guess where to find include files, by looking for Xlib.h.
14162 # First, try using that file with no special directory specified.
14163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14165 #include <X11/Xlib.h>
14167 if ac_fn_c_try_cpp
"$LINENO"; then :
14168 # We can compile using X headers with no special include directory.
14171 for ac_dir
in $ac_x_header_dirs; do
14172 if test -r "$ac_dir/X11/Xlib.h"; then
14173 ac_x_includes
=$ac_dir
14178 rm -f conftest.err conftest.
$ac_ext
14179 fi # $ac_x_includes = no
14181 if test "$ac_x_libraries" = no
; then
14182 # Check for the libraries.
14183 # See if we find them without any special options.
14184 # Don't add to $LIBS permanently.
14187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14189 #include <X11/Xlib.h>
14198 if ac_fn_c_try_link
"$LINENO"; then :
14200 # We can link X programs with no special library path.
14204 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14206 # Don't even attempt the hair of trying to link an X program!
14207 for ac_extension
in a so sl dylib la dll
; do
14208 if test -r "$ac_dir/libX11.$ac_extension"; then
14209 ac_x_libraries
=$ac_dir
14215 rm -f core conftest.err conftest.
$ac_objext \
14216 conftest
$ac_exeext conftest.
$ac_ext
14217 fi # $ac_x_libraries = no
14219 case $ac_x_includes,$ac_x_libraries in #(
14220 no
,* |
*,no |
*\'*)
14221 # Didn't find X, or a directory has "'" in its name.
14222 ac_cv_have_x
="have_x=no";; #(
14224 # Record where we found X for the cache.
14225 ac_cv_have_x
="have_x=yes\
14226 ac_x_includes='$ac_x_includes'\
14227 ac_x_libraries='$ac_x_libraries'"
14233 eval "$ac_cv_have_x"
14236 if test "$have_x" != yes; then
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14238 $as_echo "$have_x" >&6; }
14241 # If each of the values was on the command line, it overrides each guess.
14242 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14243 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14244 # Update the cache value to reflect the command line values.
14245 ac_cv_have_x
="have_x=yes\
14246 ac_x_includes='$x_includes'\
14247 ac_x_libraries='$x_libraries'"
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14249 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14253 # Unlike the sim directory, whether a simulator is linked is controlled by
14254 # presence of a gdb_sim definition in the target configure.tgt entry.
14255 # This code just checks for a few cases where we'd like to ignore those
14256 # definitions, even when they're present in the '.mt' file. These cases
14257 # are when --disable-sim is specified, or if the simulator directory is
14258 # not part of the source tree.
14260 # Check whether --enable-sim was given.
14261 if test "${enable_sim+set}" = set; then :
14262 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
14263 echo "enableval = ${enableval}";
14264 case "${enableval}" in
14265 yes) ignore_sim
=false
;;
14266 no
) ignore_sim
=true
;;
14267 *) ignore_sim
=false
;;
14274 if test ! -d "${srcdir}/../sim"; then
14280 if test "${ignore_sim}" = "false"; then
14281 if test x
"${gdb_sim}" != x
; then
14283 SIM_OBS
="remote-sim.o"
14285 $as_echo "#define WITH_SIM 1" >>confdefs.h
14303 # List of host floatformats.
14305 cat >>confdefs.h
<<_ACEOF
14306 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14310 cat >>confdefs.h
<<_ACEOF
14311 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14315 cat >>confdefs.h
<<_ACEOF
14316 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14320 # target_subdir is used by the testsuite to find the target libraries.
14322 if test "${host}" != "${target}"; then
14323 target_subdir
="${target_alias}/"
14328 if test "${gdb_native}" = "yes"; then
14329 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14330 if test ! -f ${host_makefile_frag}; then
14331 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14333 frags
="$frags $host_makefile_frag"
14335 host_makefile_frag
=/dev
/null
14341 if test "${gdb_native}" = "yes"; then
14342 # We pick this up from the host configuration file (.mh) because we
14343 # do not have a native configuration Makefile fragment.
14344 nativefile
=`sed -n '
14345 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
14346 ' ${host_makefile_frag}`
14350 if test x
"${gdb_osabi}" != x
; then
14352 cat >>confdefs.h
<<_ACEOF
14353 #define GDB_OSABI_DEFAULT $gdb_osabi
14358 # Enable multi-ice-gdb-server.
14359 # Check whether --enable-multi-ice was given.
14360 if test "${enable_multi_ice+set}" = set; then :
14361 enableval
=$enable_multi_ice; case $enableval in
14364 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14368 if test "x$enable_multi_ice" = xyes
; then
14369 subdirs
="$subdirs multi-ice"
14373 # We only build gdbserver automatically in a native configuration.
14374 if test "$gdb_native" = "yes"; then
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14376 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14377 if test "x$build_gdbserver" = xyes
; then
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14379 $as_echo "yes" >&6; }
14380 subdirs
="$subdirs gdbserver"
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14384 $as_echo "no" >&6; }
14388 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
14389 # to an empty version.
14395 if test "${nativefile}" != ""; then
14396 case "${nativefile}" in
14397 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
14398 * ) GDB_NM_FILE
="${nativefile}"
14400 files
="${files} ${GDB_NM_FILE}"
14401 links
="${links} nm.h"
14403 cat >>confdefs.h
<<_ACEOF
14404 #define GDB_NM_FILE "${GDB_NM_FILE}"
14410 ac_sources
="$files"
14412 while test -n "$ac_sources"; do
14413 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
14414 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
14415 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
14417 ac_config_links
="$ac_config_links $ac_config_links_1"
14423 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
14426 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
14428 ac_config_commands
="$ac_config_commands default"
14430 cat >confcache
<<\_ACEOF
14431 # This file is a shell script that caches the results of configure
14432 # tests run on this system so they can be shared between configure
14433 # scripts and configure runs, see configure's option --config-cache.
14434 # It is not useful on other systems. If it contains results you don't
14435 # want to keep, you may remove or edit it.
14437 # config.status only pays attention to the cache file if you give it
14438 # the --recheck option to rerun configure.
14440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14442 # following values.
14446 # The following way of writing the cache mishandles newlines in values,
14447 # but we know of no workaround that is simple, portable, and efficient.
14448 # So, we kill variables containing newlines.
14449 # Ultrix sh set writes to stderr and can't be redirected directly,
14450 # and sets the high bit in the cache file unless we assign to the vars.
14452 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14453 eval ac_val
=\$
$ac_var
14457 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14461 _ | IFS | as_nl
) ;; #(
14462 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14463 *) { eval $ac_var=; unset $ac_var;} ;;
14469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14470 *${as_nl}ac_space
=\
*)
14471 # `set' does not quote correctly, so add quotes: double-quote
14472 # substitution turns \\\\ into \\, and sed turns \\ into \.
14475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14478 # `set' quotes correctly as required by POSIX, so do not add quotes.
14479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14492 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14493 if test -w "$cache_file"; then
14494 test "x$cache_file" != "x/dev/null" &&
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14496 $as_echo "$as_me: updating cache $cache_file" >&6;}
14497 cat confcache
>$cache_file
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14500 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14505 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14506 # Let make expand exec_prefix.
14507 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14509 DEFS
=-DHAVE_CONFIG_H
14513 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14514 # 1. Remove the extension, and $U if already installed.
14515 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14516 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14517 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14518 # will be set to the directory where LIBOBJS objects are built.
14519 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14520 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14522 LIBOBJS
=$ac_libobjs
14524 LTLIBOBJS
=$ac_ltlibobjs
14527 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14528 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
14529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14531 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
14532 as_fn_error
"conditional \"GMAKE\" was never defined.
14533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14535 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14536 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
14537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14542 if test -n "$gl_LIBOBJS"; then
14543 # Remove the extension.
14544 sed_drop_objext
='s/\.o$//;s/\.obj$//'
14545 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14546 gl_libobjs
="$gl_libobjs $i.$ac_objext"
14547 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
14550 gl_LIBOBJS
=$gl_libobjs
14552 gl_LTLIBOBJS
=$gl_ltlibobjs
14558 if test -n "$gltests_LIBOBJS"; then
14559 # Remove the extension.
14560 sed_drop_objext
='s/\.o$//;s/\.obj$//'
14561 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14562 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
14563 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
14566 gltests_LIBOBJS
=$gltests_libobjs
14568 gltests_LTLIBOBJS
=$gltests_ltlibobjs
14571 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14572 as_fn_error
"conditional \"AMDEP\" was never defined.
14573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14575 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14576 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
14577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14579 if test -n "$EXEEXT"; then
14581 am__EXEEXT_FALSE
='#'
14583 am__EXEEXT_TRUE
='#'
14589 : ${CONFIG_STATUS=./config.status}
14591 ac_clean_files_save
=$ac_clean_files
14592 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14594 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14596 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14598 # Generated by $as_me.
14599 # Run this file to recreate the current configuration.
14600 # Compiler output produced by configure, useful for debugging
14601 # configure, is in config.log if it exists.
14604 ac_cs_recheck=false
14607 SHELL=\${CONFIG_SHELL-$SHELL}
14610 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14611 ## -------------------- ##
14612 ## M4sh Initialization. ##
14613 ## -------------------- ##
14615 # Be more Bourne compatible
14616 DUALCASE
=1; export DUALCASE
# for MKS sh
14617 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14620 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14621 # is contrary to our usage. Disable this feature.
14622 alias -g '${1+"$@"}'='"$@"'
14623 setopt NO_GLOB_SUBST
14625 case `(set -o) 2>/dev/null` in #(
14637 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14638 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14639 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14640 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14641 # Prefer a ksh shell builtin over an external printf program on Solaris,
14642 # but without wasting forks for bash or zsh.
14643 if test -z "$BASH_VERSION$ZSH_VERSION" \
14644 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14645 as_echo='print
-r --'
14646 as_echo_n='print
-rn --'
14647 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14648 as_echo='printf %s
\n'
14649 as_echo_n='printf %s
'
14651 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14652 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14653 as_echo_n='/usr
/ucb
/echo -n'
14655 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14656 as_echo_n_body='eval
14660 expr "X$arg" : "X\\(.*\\)$as_nl";
14661 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14663 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14665 export as_echo_n_body
14666 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14668 export as_echo_body
14669 as_echo='sh
-c $as_echo_body as_echo
'
14672 # The user is always right.
14673 if test "${PATH_SEPARATOR+set}" != set; then
14675 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14676 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14683 # We need space, tab and new line, in precisely that order. Quoting is
14684 # there to prevent editors from complaining about space-tab.
14685 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14686 # splitting by setting IFS to empty value.)
14689 # Find who we are. Look in the path if we contain no directory separator.
14691 *[\\/]* ) as_myself=$0 ;;
14692 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14693 for as_dir in $PATH
14696 test -z "$as_dir" && as_dir=.
14697 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14703 # We did not find ourselves, most probably we were run as `sh COMMAND'
14704 # in which case we are not to be found in the path.
14705 if test "x$as_myself" = x
; then
14708 if test ! -f "$as_myself"; then
14709 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14713 # Unset variables that we do not need and which cause bugs (e.g. in
14714 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14715 # suppresses any "Segmentation fault" message there. '((' could
14716 # trigger a bug in pdksh 5.2.14.
14717 for as_var
in BASH_ENV ENV MAIL MAILPATH
14718 do eval test x\
${$as_var+set} = xset \
14719 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14732 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14735 # as_fn_error ERROR [LINENO LOG_FD]
14736 # ---------------------------------
14737 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14738 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14739 # script with status $?, using 1 if that was 0.
14742 as_status
=$?
; test $as_status -eq 0 && as_status
=1
14744 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14745 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14747 $as_echo "$as_me: error: $1" >&2
14748 as_fn_exit
$as_status
14752 # as_fn_set_status STATUS
14753 # -----------------------
14754 # Set $? to STATUS, without forking.
14755 as_fn_set_status
()
14758 } # as_fn_set_status
14760 # as_fn_exit STATUS
14761 # -----------------
14762 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14766 as_fn_set_status
$1
14772 # Portably unset VAR.
14775 { eval $1=; unset $1;}
14777 as_unset
=as_fn_unset
14778 # as_fn_append VAR VALUE
14779 # ----------------------
14780 # Append the text in VALUE to the end of the definition contained in VAR. Take
14781 # advantage of any shell optimizations that allow amortized linear growth over
14782 # repeated appends, instead of the typical quadratic growth present in naive
14784 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14785 eval 'as_fn_append ()
14796 # as_fn_arith ARG...
14797 # ------------------
14798 # Perform arithmetic evaluation on the ARGs, and store the result in the
14799 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14800 # must be portable across $(()) and expr.
14801 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14802 eval 'as_fn_arith ()
14809 as_val
=`expr "$@" || test $? -eq 1`
14814 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14815 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14821 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14822 as_basename
=basename
14827 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14833 as_me
=`$as_basename -- "$0" ||
14834 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14835 X"$0" : 'X\(//\)$' \| \
14836 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14838 sed '/^.*\/\([^/][^/]*\)\/*$/{
14852 # Avoid depending upon Character Ranges.
14853 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14854 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14855 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14856 as_cr_digits
='0123456789'
14857 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14859 ECHO_C
= ECHO_N
= ECHO_T
=
14860 case `echo -n x` in #(((((
14862 case `echo 'xy\c'` in
14863 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14865 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14872 rm -f conf$$ conf$$.exe conf$$.
file
14873 if test -d conf$$.dir
; then
14874 rm -f conf$$.dir
/conf$$.
file
14877 mkdir conf$$.dir
2>/dev
/null
14879 if (echo >conf$$.
file) 2>/dev
/null
; then
14880 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14882 # ... but there are two gotchas:
14883 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14884 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14885 # In both cases, we have to default to `cp -p'.
14886 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14888 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14896 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14897 rmdir conf$$.dir
2>/dev
/null
14902 # Create "$as_dir" as a directory, including parents if necessary.
14907 -*) as_dir
=.
/$as_dir;;
14909 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14913 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14914 *) as_qdir
=$as_dir;;
14916 as_dirs
="'$as_qdir' $as_dirs"
14917 as_dir
=`$as_dirname -- "$as_dir" ||
14918 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14919 X"$as_dir" : 'X\(//\)[^/]' \| \
14920 X"$as_dir" : 'X\(//\)$' \| \
14921 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14922 $as_echo X"$as_dir" |
14923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14927 /^X\(\/\/\)[^/].*/{
14940 test -d "$as_dir" && break
14942 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14943 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
14947 if mkdir
-p .
2>/dev
/null
; then
14948 as_mkdir_p
='mkdir -p "$as_dir"'
14950 test -d .
/-p && rmdir .
/-p
14954 if test -x / >/dev
/null
2>&1; then
14955 as_test_x
='test -x'
14957 if ls -dL / >/dev
/null
2>&1; then
14964 if test -d "$1"; then
14970 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14971 ???[sx]*):;;*)false;;esac;fi
14975 as_executable_p
=$as_test_x
14977 # Sed expression to map a string onto a valid CPP name.
14978 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14980 # Sed expression to map a string onto a valid variable name.
14981 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14985 ## ----------------------------------- ##
14986 ## Main body of $CONFIG_STATUS script. ##
14987 ## ----------------------------------- ##
14989 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14992 # Save the log message, to keep $0 and so on meaningful, and to
14993 # report actual input values of CONFIG_FILES etc. instead of their
14994 # values after options handling.
14996 This file was extended by $as_me, which was
14997 generated by GNU Autoconf 2.64. Invocation command line was
14999 CONFIG_FILES = $CONFIG_FILES
15000 CONFIG_HEADERS = $CONFIG_HEADERS
15001 CONFIG_LINKS = $CONFIG_LINKS
15002 CONFIG_COMMANDS = $CONFIG_COMMANDS
15005 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15010 case $ac_config_files in *"
15011 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15014 case $ac_config_headers in *"
15015 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15020 # Files that config.status was made for.
15021 config_files="$ac_config_files"
15022 config_headers="$ac_config_headers"
15023 config_links="$ac_config_links"
15024 config_commands="$ac_config_commands"
15028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15030 \`$as_me' instantiates files and other configuration actions
15031 from templates according to the current configuration. Unless the files
15032 and actions are specified as TAGs, all are instantiated by default.
15034 Usage: $0 [OPTION]... [TAG]...
15036 -h, --help print this help, then exit
15037 -V, --version print version number and configuration settings, then exit
15038 -q, --quiet, --silent
15039 do not print progress messages
15040 -d, --debug don't remove temporary files
15041 --recheck update $as_me by reconfiguring in the same conditions
15042 --file=FILE[:TEMPLATE]
15043 instantiate the configuration file FILE
15044 --header=FILE[:TEMPLATE]
15045 instantiate the configuration header FILE
15047 Configuration files:
15050 Configuration headers:
15053 Configuration links:
15056 Configuration commands:
15059 Report bugs to the package provider."
15062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15065 configured by $0, generated by GNU Autoconf 2.64,
15066 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15068 Copyright (C) 2009 Free Software Foundation, Inc.
15069 This config.status script is free software; the Free Software Foundation
15070 gives unlimited permission to copy, distribute and modify it."
15077 test -n "\$AWK" || AWK=awk
15080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15081 # The default lists apply if the user does not specify any file.
15087 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15088 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15099 # Handling of the options.
15100 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15102 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15103 $as_echo "$ac_cs_version"; exit ;;
15104 --debug |
--debu |
--deb |
--de |
--d |
-d )
15106 --file |
--fil |
--fi |
--f )
15109 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15111 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15112 ac_need_defaults
=false
;;
15113 --header |
--heade |
--head |
--hea )
15116 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15118 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15119 ac_need_defaults
=false
;;
15121 # Conflict between --help and --header
15122 as_fn_error
"ambiguous option: \`$1'
15123 Try \`$0 --help' for more information.";;
15124 --help |
--hel |
-h )
15125 $as_echo "$ac_cs_usage"; exit ;;
15126 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15127 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15130 # This is an error.
15131 -*) as_fn_error
"unrecognized option: \`$1'
15132 Try \`$0 --help' for more information." ;;
15134 *) as_fn_append ac_config_targets
" $1"
15135 ac_need_defaults
=false
;;
15141 ac_configure_extra_args
=
15143 if $ac_cs_silent; then
15145 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15150 if \$ac_cs_recheck; then
15151 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15154 CONFIG_SHELL='$SHELL'
15155 export CONFIG_SHELL
15160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15165 ## Running $as_me. ##
15171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15175 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15176 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15182 # Handling of arguments.
15183 for ac_config_target
in $ac_config_targets
15185 case $ac_config_target in
15186 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
15187 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
15188 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
15189 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
15190 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15191 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15192 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
15193 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15195 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15200 # If the user did not use the arguments to specify the items to instantiate,
15201 # then the envvar interface is used. Set only those that are not.
15202 # We use the long form for the default assignment because of an extremely
15203 # bizarre bug on SunOS 4.1.3.
15204 if $ac_need_defaults; then
15205 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15206 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15207 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
15208 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15211 # Have a temporary directory for convenience. Make it in the build tree
15212 # simply because there is no reason against having it here, and in addition,
15213 # creating and moving files from /tmp can sometimes cause problems.
15214 # Hook for its removal unless debugging.
15215 # Note that there is a small window in which the directory will not be cleaned:
15216 # after its creation but before its name has been assigned to `$tmp'.
15220 trap 'exit_status=$?
15221 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15223 trap 'as_fn_exit 1' 1 2 13 15
15225 # Create a (secure) tmp directory for tmp files.
15228 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15229 test -n "$tmp" && test -d "$tmp"
15232 tmp
=.
/conf$$
-$RANDOM
15233 (umask 077 && mkdir
"$tmp")
15234 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
15236 # Set up the scripts for CONFIG_FILES section.
15237 # No need to generate them if there are no CONFIG_FILES.
15238 # This happens for instance with `./config.status config.h'.
15239 if test -n "$CONFIG_FILES"; then
15241 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15242 ac_cs_awk_getline
=:
15243 ac_cs_awk_pipe_init
=
15244 ac_cs_awk_read_file
='
15245 while ((getline aline < (F[key])) > 0)
15248 ac_cs_awk_pipe_fini
=
15250 ac_cs_awk_getline
=false
15251 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15252 ac_cs_awk_read_file
='
15254 print "cat " F[key] " &&"
15255 '$ac_cs_awk_pipe_init
15256 # The final `:' finishes the AND list.
15257 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15259 ac_cr
=`echo X | tr X '\015'`
15260 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15261 # But we know of no other shell where ac_cr would be empty at this
15262 # point, so we can use a bashism as a fallback.
15263 if test "x$ac_cr" = x
; then
15264 eval ac_cr
=\$
\'\\r
\'
15266 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15267 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15270 ac_cs_awk_cr
=$ac_cr
15273 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15276 # Create commands to substitute file output variables.
15278 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15279 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15280 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15283 } >conf$
$files.sh
&&
15284 . .
/conf$
$files.sh ||
15285 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
15286 rm -f conf$
$files.sh
15289 echo "cat >conf$$subs.awk <<_ACEOF" &&
15290 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15292 } >conf$$subs.sh ||
15293 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15294 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15296 for ac_last_try in false false false false false :; do
15297 . ./conf$$subs.sh ||
15298 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15300 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15301 if test $ac_delim_n = $ac_delim_num; then
15303 elif $ac_last_try; then
15304 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15306 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15309 rm -f conf$$subs.sh
15311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15312 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15316 s/^/S["/; s
/!.
*/"]=/
15326 s/\(.\{148\}\).*/\1/
15328 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15333 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15340 s/\(.\{148\}\).*/\1/
15342 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15346 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15351 ' <conf$$subs.awk | sed '
15356 ' >>$CONFIG_STATUS || ac_write_fail=1
15357 rm -f conf$$subs.awk
15358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15360 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15361 for (key in S) S_is_set[key] = 1
15363 \$ac_cs_awk_pipe_init
15367 nfields = split(line, field, "@
")
15369 len = length(field[1])
15370 for (i = 2; i < nfields; i++) {
15372 keylen = length(key)
15373 if (S_is_set[key]) {
15375 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15376 len += length(value) + length(field[++i])
15381 if (nfields == 3 && !substed) {
15383 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15384 \$ac_cs_awk_read_file
15390 \$ac_cs_awk_pipe_fini
15393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15394 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15395 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15398 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15399 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15402 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15404 # trailing colons and then remove the whole line if VPATH becomes empty
15405 # (actually we leave an empty line to preserve line numbers).
15406 if test "x
$srcdir" = x.; then
15407 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15408 s/:*\$(srcdir):*/:/
15409 s/:*\${srcdir}:*/:/
15411 s/^\([^=]*=[ ]*\):*/\1/
15417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15418 fi # test -n "$CONFIG_FILES"
15420 # Set up the scripts for CONFIG_HEADERS section.
15421 # No need to generate them if there are no CONFIG_HEADERS.
15422 # This happens for instance with `./config.status Makefile'.
15423 if test -n "$CONFIG_HEADERS"; then
15424 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15428 # Transform confdefs.h into an awk script `defines.awk', embedded as
15429 # here-document in config.status, that substitutes the proper values into
15430 # config.h.in to produce config.h.
15432 # Create a delimiter string that does not exist in confdefs.h, to ease
15433 # handling of long lines.
15435 for ac_last_try in false false :; do
15436 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15437 if test -z "$ac_t"; then
15439 elif $ac_last_try; then
15440 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15442 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15446 # For the awk script, D is an array of macro values keyed by name,
15447 # likewise P contains macro parameters if any. Preserve backslash
15448 # newline sequences.
15450 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15452 s/.\{148\}/&'"$ac_delim"'/g
15455 s/^[ ]*#[ ]*define[ ][ ]*/ /
15462 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15464 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15468 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15469 D["\
1"]=" \
3\\\\\\n
"\\/p
15471 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15476 s/.\{148\}/&'"$ac_delim"'/g
15481 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15484 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15486 ' <confdefs.h | sed '
15487 s/'"$ac_delim"'/"\\\
15488 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15491 for (key in D) D_is_set[key] = 1
15494 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15496 split(line, arg, " ")
15497 if (arg[1] == "#") {
15501 defundef
= substr
(arg
[1], 2)
15504 split(mac1
, mac2
, "(") #)
15506 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15507 if (D_is_set
[macro
]) {
15508 # Preserve the white space surrounding the "#".
15509 print prefix
"define", macro P
[macro
] D
[macro
]
15512 # Replace #undef with comments. This is necessary, for example,
15513 # in the case of _POSIX_SOURCE, which is predefined and required
15514 # on some systems where configure will not decide to define it.
15515 if (defundef
== "undef") {
15516 print
"/*", prefix defundef
, macro
, "*/"
15524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15525 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
15526 fi # test -n "$CONFIG_HEADERS"
15529 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15534 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15536 case $ac_mode$ac_tag in
15538 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15539 :[FH
]-) ac_tag
=-:-;;
15540 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15557 -) ac_f
="$tmp/stdin";;
15558 *) # Look for the file first in the build tree, then in the source tree
15559 # (if the path is not absolute). The absolute path cannot be DOS-style,
15560 # because $ac_f cannot contain `:'.
15564 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15566 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
15568 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15569 as_fn_append ac_file_inputs
" '$ac_f'"
15572 # Let's still pretend it is `configure' which instantiates (i.e., don't
15573 # use $as_me), people would be surprised to read:
15574 # /* config.h. Generated by config.status. */
15575 configure_input
='Generated from '`
15576 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15578 if test x
"$ac_file" != x-
; then
15579 configure_input
="$ac_file. $configure_input"
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15581 $as_echo "$as_me: creating $ac_file" >&6;}
15583 # Neutralize special characters interpreted by sed in replacement strings.
15584 case $configure_input in #(
15585 *\
&* |
*\|
* |
*\\* )
15586 ac_sed_conf_input
=`$as_echo "$configure_input" |
15587 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15588 *) ac_sed_conf_input
=$configure_input;;
15592 *:-:* |
*:-) cat >"$tmp/stdin" \
15593 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
15598 ac_dir
=`$as_dirname -- "$ac_file" ||
15599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15600 X"$ac_file" : 'X\(//\)[^/]' \| \
15601 X"$ac_file" : 'X\(//\)$' \| \
15602 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15603 $as_echo X"$ac_file" |
15604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15608 /^X\(\/\/\)[^/].*/{
15621 as_dir
="$ac_dir"; as_fn_mkdir_p
15625 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15627 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15628 # A ".." for each directory in $ac_dir_suffix.
15629 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15630 case $ac_top_builddir_sub in
15631 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15632 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15635 ac_abs_top_builddir
=$ac_pwd
15636 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15637 # for backward compatibility:
15638 ac_top_builddir
=$ac_top_build_prefix
15641 .
) # We are building in place.
15643 ac_top_srcdir
=$ac_top_builddir_sub
15644 ac_abs_top_srcdir
=$ac_pwd ;;
15645 [\\/]* | ?
:[\\/]* ) # Absolute name.
15646 ac_srcdir
=$srcdir$ac_dir_suffix;
15647 ac_top_srcdir
=$srcdir
15648 ac_abs_top_srcdir
=$srcdir ;;
15649 *) # Relative name.
15650 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15651 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15652 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15654 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15664 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15665 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15667 ac_MKDIR_P
=$MKDIR_P
15669 [\\/$
]* | ?
:[\\/]* ) ;;
15670 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
15674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15675 # If the template does not know about datarootdir, expand it.
15676 # FIXME: This hack should be removed a few years after 2.60.
15677 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15688 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15689 *datarootdir
*) ac_datarootdir_seen
=yes;;
15690 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15692 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15695 ac_datarootdir_hack='
15696 s&@datadir@&$datadir&g
15697 s&@docdir@&$docdir&g
15698 s&@infodir@&$infodir&g
15699 s&@localedir@&$localedir&g
15700 s&@mandir@&$mandir&g
15701 s&\\\${datarootdir}&$datarootdir&g' ;;
15705 # Neutralize VPATH when `$srcdir' = `.'.
15706 # Shell code in configure.ac might set extrasub.
15707 # FIXME: do we really want to maintain this feature?
15708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15709 ac_sed_extra="$ac_vpsub
15712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15714 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15715 s|@configure_input@|
$ac_sed_conf_input|
;t t
15716 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15717 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15718 s
&@srcdir@
&$ac_srcdir&;t t
15719 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15720 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15721 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15722 s
&@builddir@
&$ac_builddir&;t t
15723 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15724 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15725 s
&@INSTALL@
&$ac_INSTALL&;t t
15726 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
15727 $ac_datarootdir_hack
15729 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15730 if $ac_cs_awk_getline; then
15731 $AWK -f "$tmp/subs.
awk"
15733 $AWK -f "$tmp/subs.
awk" | $SHELL
15735 || as_fn_error "could not create
$ac_file" "$LINENO" 5
15737 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15738 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15739 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15741 which seems to be undefined. Please make sure it is defined." >&5
15742 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15743 which seems to be undefined. Please make sure it is defined." >&2;}
15747 -) cat "$tmp/out" && rm -f "$tmp/out";;
15748 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15750 || as_fn_error "could not create $ac_file" "$LINENO" 5
15756 if test x"$ac_file" != x-; then
15758 $as_echo "/* $configure_input */" \
15759 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15760 } >"$tmp/config.h" \
15761 || as_fn_error "could not create $ac_file" "$LINENO" 5
15762 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15764 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15767 mv "$tmp/config.h" "$ac_file" \
15768 || as_fn_error "could not create $ac_file" "$LINENO" 5
15771 $as_echo "/* $configure_input */" \
15772 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15773 || as_fn_error "could not create -" "$LINENO" 5
15775 # Compute "$ac_file"'s index
in $config_headers.
15778 for _am_header
in $config_headers :; do
15779 case $_am_header in
15780 $_am_arg |
$_am_arg:* )
15783 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
15786 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15787 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15788 X"$_am_arg" : 'X\(//\)[^/]' \| \
15789 X"$_am_arg" : 'X\(//\)$' \| \
15790 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15791 $as_echo X"$_am_arg" |
15792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15796 /^X\(\/\/\)[^/].*/{
15808 s/.*/./; q'`/stamp-h
$_am_stamp_count
15815 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15818 # Prefer the file from the source tree if names are identical.
15819 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
15820 ac_source
=$srcdir/$ac_source
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15824 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15826 if test ! -r "$ac_source"; then
15827 as_fn_error
"$ac_source: file not found" "$LINENO" 5
15831 # Try a relative symlink, then a hard link, then a copy.
15833 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
15834 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
15836 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
15837 ln "$ac_source" "$ac_file" 2>/dev
/null ||
15838 cp -p "$ac_source" "$ac_file" ||
15839 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15842 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15843 $as_echo "$as_me: executing $ac_file commands" >&6;}
15848 case $ac_file$ac_mode in
15849 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
15850 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
15851 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15852 # are listed without --file. Let's play safe and only enable the eval
15853 # if we detect the quoting.
15854 case $CONFIG_FILES in
15855 *\'*) eval set x
"$CONFIG_FILES" ;;
15856 *) set x
$CONFIG_FILES ;;
15861 # Strip MF so we end up with the name of the file.
15862 mf
=`echo "$mf" | sed -e 's/:.*$//'`
15863 # Check whether this is an Automake generated Makefile or not.
15864 # We used to match only the files named `Makefile.in', but
15865 # some people rename them; so instead we look at the file content.
15866 # Grep'ing the first line is not enough: some people post-process
15867 # each Makefile.in and add a new line on top of each file to say so.
15868 # Grep'ing the whole file is not good either: AIX grep has a line
15869 # limit of 2048, but all sed's we know have understand at least 4000.
15870 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
15871 dirpart
=`$as_dirname -- "$mf" ||
15872 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15873 X"$mf" : 'X\(//\)[^/]' \| \
15874 X"$mf" : 'X\(//\)$' \| \
15875 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15881 /^X\(\/\/\)[^/].*/{
15897 # Extract the definition of DEPDIR, am__include, and am__quote
15898 # from the Makefile without running `make'.
15899 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
15900 test -z "$DEPDIR" && continue
15901 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
15902 test -z "am__include" && continue
15903 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
15904 # When using ansi2knr, U may be empty or an underscore; expand it
15905 U
=`sed -n 's/^U = //p' < "$mf"`
15906 # Find all dependency output files, they are included files with
15907 # $(DEPDIR) in their names. We invoke sed twice because it is the
15908 # simplest approach to changing $(DEPDIR) to its actual value in the
15910 for file in `sed -n "
15911 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15912 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15913 # Make sure the directory exists.
15914 test -f "$dirpart/$file" && continue
15915 fdir
=`$as_dirname -- "$file" ||
15916 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15917 X"$file" : 'X\(//\)[^/]' \| \
15918 X"$file" : 'X\(//\)$' \| \
15919 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15920 $as_echo X"$file" |
15921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15925 /^X\(\/\/\)[^/].*/{
15938 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
15939 # echo "creating $dirpart/$file"
15940 echo '# dummy' > "$dirpart/$file"
15946 case x
$CONFIG_HEADERS in
15947 xconfig.h
:config.
in)
15958 ac_clean_files
=$ac_clean_files_save
15960 test $ac_write_fail = 0 ||
15961 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15964 # configure is writing to config.log, and then calls config.status.
15965 # config.status does its own redirection, appending to config.log.
15966 # Unfortunately, on DOS this fails, as config.log is still kept open
15967 # by configure, so config.status won't be able to write to it; its
15968 # output is simply discarded. So we exec the FD to /dev/null,
15969 # effectively closing config.log, so it can be properly (re)opened and
15970 # appended to by config.status. When coming back to configure, we
15971 # need to make the FD available again.
15972 if test "$no_create" != yes; then
15974 ac_config_status_args
=
15975 test "$silent" = yes &&
15976 ac_config_status_args
="$ac_config_status_args --quiet"
15978 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15980 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15981 # would make configure fail if this is the last instruction.
15982 $ac_cs_success || as_fn_exit $?
15986 # CONFIG_SUBDIRS section.
15988 if test "$no_recursion" != yes; then
15990 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15991 # so they do not pile up.
15992 ac_sub_configure_args
=
15994 eval "set x $ac_configure_args"
15998 if test -n "$ac_prev"; then
16003 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
16004 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
16005 ac_prev
=cache_file
;;
16006 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
16007 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
16010 --config-cache |
-C)
16012 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
16014 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
16016 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
16018 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
16020 --disable-option-checking)
16024 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16026 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
16030 # Always prepend --prefix to ensure using the same prefix
16031 # in subdir configurations.
16032 ac_arg
="--prefix=$prefix"
16034 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16036 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
16039 if test "$silent" = yes; then
16040 ac_sub_configure_args
="--silent $ac_sub_configure_args"
16043 # Always prepend --disable-option-checking to silence warnings, since
16044 # different subdirs can have different --enable and --with options.
16045 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
16048 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
16050 # Do not complain, so a configure script can configure whichever
16051 # parts of a large source tree are present.
16052 test -d "$srcdir/$ac_dir" ||
continue
16054 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16055 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16056 $as_echo "$ac_msg" >&6
16057 as_dir
="$ac_dir"; as_fn_mkdir_p
16061 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16063 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16064 # A ".." for each directory in $ac_dir_suffix.
16065 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16066 case $ac_top_builddir_sub in
16067 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16068 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16071 ac_abs_top_builddir
=$ac_pwd
16072 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16073 # for backward compatibility:
16074 ac_top_builddir
=$ac_top_build_prefix
16077 .
) # We are building in place.
16079 ac_top_srcdir
=$ac_top_builddir_sub
16080 ac_abs_top_srcdir
=$ac_pwd ;;
16081 [\\/]* | ?
:[\\/]* ) # Absolute name.
16082 ac_srcdir
=$srcdir$ac_dir_suffix;
16083 ac_top_srcdir
=$srcdir
16084 ac_abs_top_srcdir
=$srcdir ;;
16085 *) # Relative name.
16086 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16087 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16088 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16090 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16095 # Check for guested configure; otherwise get Cygnus style configure.
16096 if test -f "$ac_srcdir/configure.gnu"; then
16097 ac_sub_configure
=$ac_srcdir/configure.gnu
16098 elif test -f "$ac_srcdir/configure"; then
16099 ac_sub_configure
=$ac_srcdir/configure
16100 elif test -f "$ac_srcdir/configure.in"; then
16101 # This should be Cygnus configure.
16102 ac_sub_configure
=$ac_aux_dir/configure
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16105 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16109 # The recursion is here.
16110 if test -n "$ac_sub_configure"; then
16111 # Make the cache file name correct relative to the subdirectory.
16112 case $cache_file in
16113 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
16114 *) # Relative name.
16115 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
16118 { $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
16119 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16120 # The eval makes quoting arguments work.
16121 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16122 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16123 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16129 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16131 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}