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
="server.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars
='LTLIBOBJS
650 MAINTAINER_MODE_FALSE
679 program_transform_name
692 enable_option_checking
693 enable_maintainer_mode
695 enable_build_with_cxx
701 enable_build_warnings
702 enable_gdb_build_warnings
706 enable_inprocess_agent
708 ac_precious_vars
='build_alias
722 # Initialize some variables set by options.
724 ac_init_version
=false
725 ac_unrecognized_opts
=
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
736 program_transform_name
=s
,x
,x
,
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir
='${exec_prefix}/bin'
751 sbindir
='${exec_prefix}/sbin'
752 libexecdir
='${exec_prefix}/libexec'
753 datarootdir
='${prefix}/share'
754 datadir
='${datarootdir}'
755 sysconfdir
='${prefix}/etc'
756 sharedstatedir
='${prefix}/com'
757 localstatedir
='${prefix}/var'
758 includedir
='${prefix}/include'
759 oldincludedir
='/usr/include'
760 docdir
='${datarootdir}/doc/${PACKAGE}'
761 infodir
='${datarootdir}/info'
766 libdir
='${exec_prefix}/lib'
767 localedir
='${datarootdir}/locale'
768 mandir
='${datarootdir}/man'
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\
$ac_option
782 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 # Accept the important Cygnus configure options, so we can diagnose typos.
788 case $ac_dashdash$ac_option in
792 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
794 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
797 -build |
--build |
--buil |
--bui |
--bu)
798 ac_prev
=build_alias
;;
799 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
800 build_alias
=$ac_optarg ;;
802 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
803 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
804 ac_prev
=cache_file
;;
805 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
806 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
807 cache_file
=$ac_optarg ;;
810 cache_file
=config.cache
;;
812 -datadir |
--datadir |
--datadi |
--datad)
814 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
815 datadir
=$ac_optarg ;;
817 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
818 |
--dataroo |
--dataro |
--datar)
819 ac_prev
=datarootdir
;;
820 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
821 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
822 datarootdir
=$ac_optarg ;;
824 -disable-* |
--disable-*)
825 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
828 as_fn_error
"invalid feature name: $ac_useropt"
829 ac_useropt_orig
=$ac_useropt
830 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831 case $ac_user_opts in
835 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
836 ac_unrecognized_sep
=', ';;
838 eval enable_
$ac_useropt=no
;;
840 -docdir |
--docdir |
--docdi |
--doc |
--do)
842 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
845 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
847 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
850 -enable-* |
--enable-*)
851 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
854 as_fn_error
"invalid feature name: $ac_useropt"
855 ac_useropt_orig
=$ac_useropt
856 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
857 case $ac_user_opts in
861 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
862 ac_unrecognized_sep
=', ';;
864 eval enable_
$ac_useropt=\
$ac_optarg ;;
866 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
867 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
868 |
--exec |
--exe |
--ex)
869 ac_prev
=exec_prefix
;;
870 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
871 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
872 |
--exec=* |
--exe=* |
--ex=*)
873 exec_prefix
=$ac_optarg ;;
875 -gas |
--gas |
--ga |
--g)
876 # Obsolete; use --with-gas.
879 -help |
--help |
--hel |
--he |
-h)
881 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
882 ac_init_help
=recursive
;;
883 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
884 ac_init_help
=short
;;
886 -host |
--host |
--hos |
--ho)
887 ac_prev
=host_alias
;;
888 -host=* |
--host=* |
--hos=* |
--ho=*)
889 host_alias
=$ac_optarg ;;
891 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
893 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
895 htmldir
=$ac_optarg ;;
897 -includedir |
--includedir |
--includedi |
--included |
--include \
898 |
--includ |
--inclu |
--incl |
--inc)
899 ac_prev
=includedir
;;
900 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
901 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
902 includedir
=$ac_optarg ;;
904 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
906 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
907 infodir
=$ac_optarg ;;
909 -libdir |
--libdir |
--libdi |
--libd)
911 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
914 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
915 |
--libexe |
--libex |
--libe)
916 ac_prev
=libexecdir
;;
917 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
918 |
--libexe=* |
--libex=* |
--libe=*)
919 libexecdir
=$ac_optarg ;;
921 -localedir |
--localedir |
--localedi |
--localed |
--locale)
923 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
924 localedir
=$ac_optarg ;;
926 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
927 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
928 ac_prev
=localstatedir
;;
929 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
930 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
931 localstatedir
=$ac_optarg ;;
933 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
935 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
939 # Obsolete; use --without-fp.
942 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
943 |
--no-cr |
--no-c |
-n)
946 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
947 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
950 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
951 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
952 |
--oldin |
--oldi |
--old |
--ol |
--o)
953 ac_prev
=oldincludedir
;;
954 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
955 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
956 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
957 oldincludedir
=$ac_optarg ;;
959 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
961 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
964 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
965 |
--program-pre |
--program-pr |
--program-p)
966 ac_prev
=program_prefix
;;
967 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
968 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
969 program_prefix
=$ac_optarg ;;
971 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
972 |
--program-suf |
--program-su |
--program-s)
973 ac_prev
=program_suffix
;;
974 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
975 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
976 program_suffix
=$ac_optarg ;;
978 -program-transform-name |
--program-transform-name \
979 |
--program-transform-nam |
--program-transform-na \
980 |
--program-transform-n |
--program-transform- \
981 |
--program-transform |
--program-transfor \
982 |
--program-transfo |
--program-transf \
983 |
--program-trans |
--program-tran \
984 |
--progr-tra |
--program-tr |
--program-t)
985 ac_prev
=program_transform_name
;;
986 -program-transform-name=* |
--program-transform-name=* \
987 |
--program-transform-nam=* |
--program-transform-na=* \
988 |
--program-transform-n=* |
--program-transform-=* \
989 |
--program-transform=* |
--program-transfor=* \
990 |
--program-transfo=* |
--program-transf=* \
991 |
--program-trans=* |
--program-tran=* \
992 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
993 program_transform_name
=$ac_optarg ;;
995 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
997 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1000 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1002 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1005 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1006 |
-silent |
--silent |
--silen |
--sile |
--sil)
1009 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1011 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1013 sbindir
=$ac_optarg ;;
1015 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1016 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1017 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1019 ac_prev
=sharedstatedir
;;
1020 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1021 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1022 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1024 sharedstatedir
=$ac_optarg ;;
1026 -site |
--site |
--sit)
1028 -site=* |
--site=* |
--sit=*)
1031 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1033 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1034 srcdir
=$ac_optarg ;;
1036 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1037 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1038 ac_prev
=sysconfdir
;;
1039 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1040 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1041 sysconfdir
=$ac_optarg ;;
1043 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1044 ac_prev
=target_alias
;;
1045 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1046 target_alias
=$ac_optarg ;;
1048 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1051 -version |
--version |
--versio |
--versi |
--vers |
-V)
1052 ac_init_version
=: ;;
1055 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1058 as_fn_error
"invalid package name: $ac_useropt"
1059 ac_useropt_orig
=$ac_useropt
1060 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1065 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1066 ac_unrecognized_sep
=', ';;
1068 eval with_
$ac_useropt=\
$ac_optarg ;;
1070 -without-* |
--without-*)
1071 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1074 as_fn_error
"invalid package name: $ac_useropt"
1075 ac_useropt_orig
=$ac_useropt
1076 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1081 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1082 ac_unrecognized_sep
=', ';;
1084 eval with_
$ac_useropt=no
;;
1087 # Obsolete; use --with-x.
1090 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1091 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1092 ac_prev
=x_includes
;;
1093 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1094 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1095 x_includes
=$ac_optarg ;;
1097 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1098 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1099 ac_prev
=x_libraries
;;
1100 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1101 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1102 x_libraries
=$ac_optarg ;;
1104 -*) as_fn_error
"unrecognized option: \`$ac_option'
1105 Try \`$0 --help' for more information."
1109 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 case $ac_envvar in #(
1112 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1113 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1115 eval $ac_envvar=\
$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1122 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1129 if test -n "$ac_prev"; then
1130 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1131 as_fn_error
"missing argument to $ac_option"
1134 if test -n "$ac_unrecognized_opts"; then
1135 case $enable_option_checking in
1137 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1138 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1142 # Check all directory arguments for consistency.
1143 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val
=\$
$ac_var
1149 # Remove trailing slashes.
1152 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1153 eval $ac_var=\
$ac_val;;
1155 # Be sure to have absolute directory names.
1157 [\\/$
]* | ?
:[\\/]* ) continue;;
1158 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1160 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1163 # There might be people who depend on the old broken behavior: `$host'
1164 # used to hold the argument of --host etc.
1165 # FIXME: To remove some day.
1168 target
=$target_alias
1170 # FIXME: To remove some day.
1171 if test "x$host_alias" != x
; then
1172 if test "x$build_alias" = x
; then
1173 cross_compiling
=maybe
1174 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1175 If a cross compiler is detected then cross compile mode will be used." >&2
1176 elif test "x$build_alias" != "x$host_alias"; then
1182 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1184 test "$silent" = yes && exec 6>/dev
/null
1187 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1188 ac_ls_di
=`ls -di .` &&
1189 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1190 as_fn_error
"working directory cannot be determined"
1191 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192 as_fn_error
"pwd does not report name of working directory"
1195 # Find the source files, if location was not specified.
1196 if test -z "$srcdir"; then
1197 ac_srcdir_defaulted
=yes
1198 # Try the directory containing this script, then the parent directory.
1199 ac_confdir
=`$as_dirname -- "$as_myself" ||
1200 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201 X"$as_myself" : 'X\(//\)[^/]' \| \
1202 X"$as_myself" : 'X\(//\)$' \| \
1203 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1204 $as_echo X"$as_myself" |
1205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1227 ac_srcdir_defaulted
=no
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1231 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1233 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1235 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1237 # When building in place, set srcdir=.
1238 if test "$ac_abs_confdir" = "$ac_pwd"; then
1241 # Remove unnecessary trailing slashes from srcdir.
1242 # Double slashes in file names in object file debugging info
1243 # mess up M-x gdb in Emacs.
1245 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1247 for ac_var
in $ac_precious_vars; do
1248 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1249 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1250 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1251 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1255 # Report the --help message.
1257 if test "$ac_init_help" = "long"; then
1258 # Omit some internal or obsolete options to make the list less imposing.
1259 # This message is too long to be a string in the A/UX 3.1 sh.
1261 \`configure' configures this package to adapt to many kinds of systems.
1263 Usage: $0 [OPTION]... [VAR=VALUE]...
1265 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1266 VAR=VALUE. See below for descriptions of some of the useful variables.
1268 Defaults for the options are specified in brackets.
1271 -h, --help display this help and exit
1272 --help=short display options specific to this package
1273 --help=recursive display the short help of all the included packages
1274 -V, --version display version information and exit
1275 -q, --quiet, --silent do not print \`checking...' messages
1276 --cache-file=FILE cache test results in FILE [disabled]
1277 -C, --config-cache alias for \`--cache-file=config.cache'
1278 -n, --no-create do not create output files
1279 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1281 Installation directories:
1282 --prefix=PREFIX install architecture-independent files in PREFIX
1283 [$ac_default_prefix]
1284 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1287 By default, \`make install' will install all the files in
1288 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1289 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1290 for instance \`--prefix=\$HOME'.
1292 For better control, use the options below.
1294 Fine tuning of the installation directories:
1295 --bindir=DIR user executables [EPREFIX/bin]
1296 --sbindir=DIR system admin executables [EPREFIX/sbin]
1297 --libexecdir=DIR program executables [EPREFIX/libexec]
1298 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1299 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1300 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1301 --libdir=DIR object code libraries [EPREFIX/lib]
1302 --includedir=DIR C header files [PREFIX/include]
1303 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1304 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1305 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1306 --infodir=DIR info documentation [DATAROOTDIR/info]
1307 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1308 --mandir=DIR man documentation [DATAROOTDIR/man]
1309 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1310 --htmldir=DIR html documentation [DOCDIR]
1311 --dvidir=DIR dvi documentation [DOCDIR]
1312 --pdfdir=DIR pdf documentation [DOCDIR]
1313 --psdir=DIR ps documentation [DOCDIR]
1319 --program-prefix=PREFIX prepend PREFIX to installed program names
1320 --program-suffix=SUFFIX append SUFFIX to installed program names
1321 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1324 --build=BUILD configure
for building on BUILD
[guessed
]
1325 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1326 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1330 if test -n "$ac_init_help"; then
1335 --disable-option-checking ignore unrecognized
--enable/--with options
1336 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1337 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1338 --enable-maintainer-mode enable make rules and dependencies not useful
1339 (and sometimes confusing
) to the casual installer
1340 --disable-largefile omit support
for large files
1341 --enable-build-with-cxx build with C
++ compiler instead of C compiler
1342 --enable-libmcheck Try linking with
-lmcheck if available
1343 --enable-werror treat compile warnings as errors
1344 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1345 --enable-gdb-build-warnings
1346 enable GDB specific build-time compiler warnings
if
1348 --enable-inprocess-agent
1352 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1353 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1354 --with-ust=PATH Specify prefix directory
for the installed UST package
1355 Equivalent to
--with-ust-include=PATH
/include
1356 plus
--with-ust-lib=PATH
/lib
1357 --with-ust-include=PATH Specify directory
for installed UST include files
1358 --with-ust-lib=PATH Specify the directory
for the installed UST library
1359 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1360 --with-bugurl=URL Direct users to URL to report a bug
1361 --with-libthread-db=PATH
1362 use given libthread_db directly
1364 Some influential environment variables
:
1365 CC C compiler
command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1368 nonstandard directory
<lib dir
>
1369 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1370 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1371 you have headers
in a nonstandard directory
<include dir
>
1372 CXX C
++ compiler
command
1373 CXXFLAGS C
++ compiler flags
1376 Use these variables to override the choices made by
`configure' or to help
1377 it to find libraries and programs with nonstandard names/locations.
1379 Report bugs to the package provider.
1384 if test "$ac_init_help" = "recursive"; then
1385 # If there are subdirs, report their specific --help.
1386 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387 test -d "$ac_dir" ||
1388 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1393 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1396 # A ".." for each directory in $ac_dir_suffix.
1397 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1398 case $ac_top_builddir_sub in
1399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403 ac_abs_top_builddir=$ac_pwd
1404 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1405 # for backward compatibility:
1406 ac_top_builddir=$ac_top_build_prefix
1409 .) # We are building in place.
1411 ac_top_srcdir=$ac_top_builddir_sub
1412 ac_abs_top_srcdir=$ac_pwd ;;
1413 [\\/]* | ?:[\\/]* ) # Absolute name.
1414 ac_srcdir=$srcdir$ac_dir_suffix;
1415 ac_top_srcdir=$srcdir
1416 ac_abs_top_srcdir=$srcdir ;;
1418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1419 ac_top_srcdir=$ac_top_build_prefix$srcdir
1420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1424 cd "$ac_dir" || { ac_status=$?; continue; }
1425 # Check for guested configure.
1426 if test -f "$ac_srcdir/configure.gnu"; then
1428 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1429 elif test -f "$ac_srcdir/configure"; then
1431 $SHELL "$ac_srcdir/configure" --help=recursive
1433 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435 cd "$ac_pwd" || { ac_status=$?; break; }
1439 test -n "$ac_init_help" && exit $ac_status
1440 if $ac_init_version; then
1443 generated by GNU Autoconf 2.64
1445 Copyright (C) 2009 Free Software Foundation, Inc.
1446 This configure script is free software; the Free Software Foundation
1447 gives unlimited permission to copy, distribute and modify it.
1452 ## ------------------------ ##
1453 ## Autoconf initialization. ##
1454 ## ------------------------ ##
1456 # ac_fn_c_try_compile LINENO
1457 # --------------------------
1458 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1459 ac_fn_c_try_compile ()
1461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1462 rm -f conftest.$ac_objext
1463 if { { ac_try="$ac_compile"
1465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1466 *) ac_try_echo
=$ac_try;;
1468 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1469 $as_echo "$ac_try_echo"; } >&5
1470 (eval "$ac_compile") 2>conftest.err
1472 if test -s conftest.err
; then
1473 grep -v '^ *+' conftest.err
>conftest.er1
1474 cat conftest.er1
>&5
1475 mv -f conftest.er1 conftest.err
1477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1478 test $ac_status = 0; } && {
1479 test -z "$ac_c_werror_flag" ||
1480 test ! -s conftest.err
1481 } && test -s conftest.
$ac_objext; then :
1484 $as_echo "$as_me: failed program was:" >&5
1485 sed 's/^/| /' conftest.
$ac_ext >&5
1489 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1492 } # ac_fn_c_try_compile
1494 # ac_fn_cxx_try_compile LINENO
1495 # ----------------------------
1496 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1497 ac_fn_cxx_try_compile
()
1499 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1500 rm -f conftest.
$ac_objext
1501 if { { ac_try
="$ac_compile"
1503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1504 *) ac_try_echo=$ac_try;;
1506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507 $as_echo "$ac_try_echo"; } >&5
1508 (eval "$ac_compile") 2>conftest.err
1510 if test -s conftest.err; then
1511 grep -v '^ *+' conftest.err >conftest.er1
1512 cat conftest.er1 >&5
1513 mv -f conftest.er1 conftest.err
1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516 test $ac_status = 0; } && {
1517 test -z "$ac_cxx_werror_flag" ||
1518 test ! -s conftest.err
1519 } && test -s conftest.$ac_objext; then :
1522 $as_echo "$as_me: failed program was:" >&5
1523 sed 's/^/| /' conftest.$ac_ext >&5
1527 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1530 } # ac_fn_cxx_try_compile
1532 # ac_fn_c_try_cpp LINENO
1533 # ----------------------
1534 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 if { { ac_try="$ac_cpp conftest.$ac_ext"
1540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1541 *) ac_try_echo
=$ac_try;;
1543 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1547 if test -s conftest.err
; then
1548 grep -v '^ *+' conftest.err
>conftest.er1
1549 cat conftest.er1
>&5
1550 mv -f conftest.er1 conftest.err
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } >/dev
/null
&& {
1554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.
$ac_ext >&5
1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1569 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1570 # -------------------------------------------------------
1571 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1572 # the include files in INCLUDES and setting the cache variable VAR
1574 ac_fn_c_check_header_mongrel
()
1576 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1577 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1579 $as_echo_n "checking for $2... " >&6; }
1580 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1581 $as_echo_n "(cached) " >&6
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1585 $as_echo "$ac_res" >&6; }
1587 # Is the header compilable?
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1589 $as_echo_n "checking $2 usability... " >&6; }
1590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1591 /* end confdefs.h. */
1595 if ac_fn_c_try_compile
"$LINENO"; then :
1596 ac_header_compiler
=yes
1598 ac_header_compiler
=no
1600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1602 $as_echo "$ac_header_compiler" >&6; }
1604 # Is the header present?
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1606 $as_echo_n "checking $2 presence... " >&6; }
1607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1611 if ac_fn_c_try_cpp
"$LINENO"; then :
1612 ac_header_preproc
=yes
1614 ac_header_preproc
=no
1616 rm -f conftest.err conftest.
$ac_ext
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1618 $as_echo "$ac_header_preproc" >&6; }
1620 # So? What about this header?
1621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1624 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1626 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1630 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1632 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1634 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1636 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1638 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1644 $as_echo_n "(cached) " >&6
1646 eval "$3=\$ac_header_compiler"
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 $as_echo "$ac_res" >&6; }
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1654 } # ac_fn_c_check_header_mongrel
1656 # ac_fn_c_try_run LINENO
1657 # ----------------------
1658 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1659 # that executables *can* be run.
1662 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1663 if { { ac_try
="$ac_link"
1665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>&5
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1674 { { case "(($ac_try" in
1675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1676 *) ac_try_echo
=$ac_try;;
1678 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_try") 2>&5
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; }; }; then :
1686 $as_echo "$as_me: program exited with status $ac_status" >&5
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.
$ac_ext >&5
1690 ac_retval
=$ac_status
1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1698 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699 # -------------------------------------------------------
1700 # Tests whether HEADER exists and can be compiled using the include files in
1701 # INCLUDES, setting the cache variable VAR accordingly.
1702 ac_fn_c_check_header_compile
()
1704 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1708 $as_echo_n "(cached) " >&6
1710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1715 if ac_fn_c_try_compile
"$LINENO"; then :
1720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1727 } # ac_fn_c_check_header_compile
1729 # ac_fn_c_try_link LINENO
1730 # -----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded.
1734 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1735 rm -f conftest.
$ac_objext conftest
$ac_exeext
1736 if { { ac_try
="$ac_link"
1738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
1756 $as_test_x conftest$ac_exeext
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1765 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767 # interfere with the next link command; also delete a directory that is
1768 # left behind by Apple's compiler. We do this before executing the actions.
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773 } # ac_fn_c_try_link
1775 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1776 # -------------------------------------------
1777 # Tests whether TYPE exists after having included INCLUDES, setting cache
1778 # variable VAR accordingly.
1779 ac_fn_c_check_type ()
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1785 $as_echo_n "(cached) " >&6
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1813 if ac_fn_c_try_compile "$LINENO"; then :
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 } # ac_fn_c_check_type
1829 # ac_fn_c_check_func LINENO FUNC VAR
1830 # ----------------------------------
1831 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1832 ac_fn_c_check_func ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1838 $as_echo_n "(cached) " >&6
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1844 #define $2 innocuous_$2
1846 /* System header to define __stub macros and hopefully few prototypes,
1847 which can conflict with char $2 (); below.
1848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1849 <limits.h> exists even on freestanding compilers. */
1852 # include <limits.h>
1854 # include <assert.h>
1859 /* Override any GCC internal prototype to avoid an error.
1860 Use char because int might match the return type of a GCC
1861 builtin and then its argument prototype would still apply. */
1866 /* The GNU C library defines this for functions which it implements
1867 to always fail with ENOSYS. Some functions are actually named
1868 something starting with __ and the normal name is an alias. */
1869 #if defined __stub_$2 || defined __stub___$2
1881 if ac_fn_c_try_link "$LINENO"; then :
1886 rm -f core conftest.err conftest.$ac_objext \
1887 conftest$ac_exeext conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 } # ac_fn_c_check_func
1896 # ac_fn_c_check_decl LINENO SYMBOL VAR
1897 # ------------------------------------
1898 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1899 ac_fn_c_check_decl ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1903 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1905 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1906 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907 $as_echo_n "(cached) " >&6
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1915 #ifndef $as_decl_name
1917 (void) $as_decl_use;
1919 (void) $as_decl_name;
1927 if ac_fn_c_try_compile "$LINENO"; then :
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939 } # ac_fn_c_check_decl
1941 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
1942 # --------------------------------------
1943 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1944 ac_fn_cxx_check_decl ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1948 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1950 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1951 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1952 $as_echo_n "(cached) " >&6
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1960 #ifndef $as_decl_name
1962 (void) $as_decl_use;
1964 (void) $as_decl_name;
1972 if ac_fn_cxx_try_compile "$LINENO"; then :
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984 } # ac_fn_cxx_check_decl
1986 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1987 # --------------------------------------------
1988 # Tries to find the compile-time value of EXPR in a program that includes
1989 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1991 ac_fn_c_compute_int ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if test "$cross_compiling" = yes; then
1995 # Depending upon the size, compute the lo and hi bounds.
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2002 static int test_array [1 - 2 * !(($2) >= 0)];
2009 if ac_fn_c_try_compile "$LINENO"; then :
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2018 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 ac_hi=$ac_mid; break
2028 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2029 if test $ac_lo -le $ac_mid; then
2033 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2044 static int test_array [1 - 2 * !(($2) < 0)];
2051 if ac_fn_c_try_compile "$LINENO"; then :
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2060 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_lo=$ac_mid; break
2070 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2071 if test $ac_mid -le $ac_hi; then
2075 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 # Binary search between lo and hi bounds.
2086 while test "x$ac_lo" != "x$ac_hi"; do
2087 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2094 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2101 if ac_fn_c_try_compile "$LINENO"; then :
2104 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2116 static long int longval () { return $2; }
2117 static unsigned long int ulongval () { return $2; }
2124 FILE *f = fopen ("conftest.val", "w");
2129 long int i = longval ();
2132 fprintf (f, "%ld", i);
2136 unsigned long int i = ulongval ();
2139 fprintf (f, "%lu", i);
2141 /* Do not output a trailing newline, as this causes \r\n confusion
2142 on some platforms. */
2143 return ferror (f) || fclose (f) != 0;
2149 if ac_fn_c_try_run "$LINENO"; then :
2150 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2155 conftest.$ac_objext conftest.beam conftest.$ac_ext
2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2162 } # ac_fn_c_compute_int
2164 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2165 # ----------------------------------------------------
2166 # Tries to find if the field MEMBER exists in type AGGR, after including
2167 # INCLUDES, setting cache variable VAR accordingly.
2168 ac_fn_c_check_member ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2172 $as_echo_n "checking for $2.$3... " >&6; }
2173 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2174 $as_echo_n "(cached) " >&6
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2189 if ac_fn_c_try_compile "$LINENO"; then :
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2199 if (sizeof ac_aggr.$3)
2205 if ac_fn_c_try_compile "$LINENO"; then :
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216 $as_echo "$ac_res" >&6; }
2217 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2219 } # ac_fn_c_check_member
2220 cat >config.log <<_ACEOF
2221 This file contains any messages produced by compilers while
2222 running configure, to aid debugging if configure makes a mistake.
2224 It was created by $as_me, which was
2225 generated by GNU Autoconf 2.64. Invocation command line was
2237 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2238 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2239 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2240 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2241 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2243 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2244 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2246 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2247 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2248 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2249 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2250 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2251 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2252 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 $as_echo "PATH: $as_dir"
2277 # Keep a trace of the command line.
2278 # Strip out --no-create and --no-recursion so they do not pile up.
2279 # Strip out --silent because we don't want to record it for future runs.
2280 # Also quote any args containing shell meta-characters.
2281 # Make two passes to allow for proper duplicate-argument suppression.
2285 ac_must_keep_next=false
2291 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2293 | -silent | --silent | --silen | --sile | --sil)
2296 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2299 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2301 as_fn_append ac_configure_args1 " '$ac_arg'"
2302 if test $ac_must_keep_next = true; then
2303 ac_must_keep_next=false # Got value, back to normal.
2306 *=* | --config-cache | -C | -disable-* | --disable-* \
2307 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2308 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2309 | -with-* | --with-* | -without-* | --without-* | --x)
2310 case "$ac_configure_args0 " in
2311 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2314 -* ) ac_must_keep_next=true ;;
2317 as_fn_append ac_configure_args " '$ac_arg'"
2322 { ac_configure_args0=; unset ac_configure_args0;}
2323 { ac_configure_args1=; unset ac_configure_args1;}
2325 # When interrupted or exit'd, cleanup temporary files, and complete
2326 # config.log. We remove comments because anyway the quotes in there
2327 # would cause problems or look ugly.
2328 # WARNING: Use '\'' to represent an apostrophe within the trap.
2329 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2330 trap 'exit_status=$?
2331 # Save into config.log some information that might help in debugging.
2336 ## ---------------- ##
2337 ## Cache variables. ##
2338 ## ---------------- ##
2341 # The following way of writing the cache mishandles newlines in values,
2343 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2344 eval ac_val=\$$ac_var
2348 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2349 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2352 _ | IFS | as_nl) ;; #(
2353 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2354 *) { eval $ac_var=; unset $ac_var;} ;;
2359 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2360 *${as_nl}ac_space=\ *)
2362 "s/'\''/'\''\\\\'\'''\''/g;
2363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2366 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2374 ## ----------------- ##
2375 ## Output variables. ##
2376 ## ----------------- ##
2379 for ac_var in $ac_subst_vars
2381 eval ac_val=\$$ac_var
2383 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2385 $as_echo "$ac_var='\''$ac_val'\''"
2389 if test -n "$ac_subst_files"; then
2391 ## ------------------- ##
2392 ## File substitutions. ##
2393 ## ------------------- ##
2396 for ac_var in $ac_subst_files
2398 eval ac_val=\$$ac_var
2400 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2402 $as_echo "$ac_var='\''$ac_val'\''"
2407 if test -s confdefs.h; then
2417 test "$ac_signal" != 0 &&
2418 $as_echo "$as_me: caught signal $ac_signal"
2419 $as_echo "$as_me: exit $exit_status"
2421 rm -f core *.core core.conftest.* &&
2422 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2425 for ac_signal in 1 2 13 15; do
2426 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2430 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2431 rm -f -r conftest* confdefs.h
2433 $as_echo "/* confdefs.h */" > confdefs.h
2435 # Predefined preprocessor variables.
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_NAME "$PACKAGE_NAME"
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_STRING "$PACKAGE_STRING"
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_URL "$PACKAGE_URL"
2462 # Let the site file select an alternate cache file if it wants to.
2463 # Prefer an explicitly selected file to automatically selected ones.
2466 if test -n "$CONFIG_SITE"; then
2467 ac_site_file1=$CONFIG_SITE
2468 elif test "x$prefix" != xNONE; then
2469 ac_site_file1=$prefix/share/config.site
2470 ac_site_file2=$prefix/etc/config.site
2472 ac_site_file1=$ac_default_prefix/share/config.site
2473 ac_site_file2=$ac_default_prefix/etc/config.site
2475 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2477 test "x$ac_site_file" = xNONE && continue
2478 if test -r "$ac_site_file"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2480 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2481 sed 's/^/| /' "$ac_site_file" >&5
2486 if test -r "$cache_file"; then
2487 # Some versions of bash will fail to source /dev/null (special
2488 # files actually), so we avoid doing that.
2489 if test -f "$cache_file"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2491 $as_echo "$as_me: loading cache $cache_file" >&6;}
2493 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2494 *) . "./$cache_file";;
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2499 $as_echo "$as_me: creating cache $cache_file" >&6;}
2503 # Check that the precious variables saved in the cache have kept the same
2505 ac_cache_corrupted=false
2506 for ac_var in $ac_precious_vars; do
2507 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2508 eval ac_new_set=\$ac_env_${ac_var}_set
2509 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2510 eval ac_new_val=\$ac_env_${ac_var}_value
2511 case $ac_old_set,$ac_new_set in
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2514 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2515 ac_cache_corrupted=: ;;
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2518 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2519 ac_cache_corrupted=: ;;
2522 if test "x$ac_old_val" != "x$ac_new_val"; then
2523 # differences in whitespace do not lead to failure.
2524 ac_old_val_w=`echo x
$ac_old_val`
2525 ac_new_val_w=`echo x
$ac_new_val`
2526 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2528 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2529 ac_cache_corrupted=:
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2532 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2533 eval $ac_var=\$ac_old_val
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2536 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2538 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2541 # Pass precious variables to config.status.
2542 if test "$ac_new_set" = set; then
2544 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2545 *) ac_arg=$ac_var=$ac_new_val ;;
2547 case " $ac_configure_args " in
2548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2549 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2553 if $ac_cache_corrupted; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2557 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2558 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2560 ## -------------------- ##
2561 ## Main body of script. ##
2562 ## -------------------- ##
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574 ac_config_headers="$ac_config_headers config.h:config.in"
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2579 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2580 # Check whether --enable-maintainer-mode was given.
2581 if test "${enable_maintainer_mode+set}" = set; then :
2582 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2584 USE_MAINTAINER_MODE=no
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2588 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2589 if test $USE_MAINTAINER_MODE = yes; then
2590 MAINTAINER_MODE_TRUE=
2591 MAINTAINER_MODE_FALSE='#'
2593 MAINTAINER_MODE_TRUE='#'
2594 MAINTAINER_MODE_FALSE=
2597 MAINT=$MAINTAINER_MODE_TRUE
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 if test -n "$ac_tool_prefix"; then
2607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if test "${ac_cv_prog_CC+set}" = set; then :
2612 $as_echo_n "(cached) " >&6
2614 if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 if test -n "$CC"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2637 $as_echo "$CC" >&6; }
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2645 if test -z "$ac_cv_prog_CC"; then
2647 # Extract the first word of "gcc", so it can be a program name with args.
2648 set dummy gcc; ac_word=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_ac_ct_CC="gcc"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2675 if test -n "$ac_ct_CC"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2677 $as_echo "$ac_ct_CC" >&6; }
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2683 if test "x$ac_ct_CC" = x; then
2686 case $cross_compiling:$ac_tool_warned in
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2690 ac_tool_warned=yes ;;
2698 if test -z "$CC"; then
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}cc; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if test "${ac_cv_prog_CC+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_CC="${ac_tool_prefix}cc"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 if test -n "$CC"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2730 $as_echo "$CC" >&6; }
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2739 if test -z "$CC"; then
2740 # Extract the first word of "cc", so it can be a program name with args.
2741 set dummy cc; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_prog_CC+set}" = set; then :
2745 $as_echo_n "(cached) " >&6
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2759 ac_prog_rejected=yes
2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 if test $ac_prog_rejected = yes; then
2771 # We found a bogon in the path, so make sure we never use it.
2772 set dummy $ac_cv_prog_CC
2774 if test $# != 0; then
2775 # We chose a different compiler from the bogus one.
2776 # However, it has the same basename, so the bogon will be chosen
2777 # first if we set CC to just the basename; use the full file name.
2779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2785 if test -n "$CC"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2787 $as_echo "$CC" >&6; }
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2795 if test -z "$CC"; then
2796 if test -n "$ac_tool_prefix"; then
2797 for ac_prog in cl.exe
2799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if test "${ac_cv_prog_CC+set}" = set; then :
2804 $as_echo_n "(cached) " >&6
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 if test -n "$CC"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2829 $as_echo "$CC" >&6; }
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2836 test -n "$CC" && break
2839 if test -z "$CC"; then
2841 for ac_prog in cl.exe
2843 # Extract the first word of "$ac_prog", so it can be a program name with args.
2844 set dummy $ac_prog; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2848 $as_echo_n "(cached) " >&6
2850 if test -n "$ac_ct_CC"; then
2851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_ac_ct_CC="$ac_prog"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2871 if test -n "$ac_ct_CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2873 $as_echo "$ac_ct_CC" >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2880 test -n "$ac_ct_CC" && break
2883 if test "x$ac_ct_CC" = x; then
2886 case $cross_compiling:$ac_tool_warned in
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2890 ac_tool_warned=yes ;;
2899 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901 as_fn_error "no acceptable C compiler found
in \
$PATH
2902 See \
`config.log' for more details." "$LINENO" 5; }
2904 # Provide some information about the compiler.
2905 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2908 for ac_option in --version -v -V -qversion; do
2909 { { ac_try="$ac_compiler $ac_option >&5"
2911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2912 *) ac_try_echo
=$ac_try;;
2914 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2915 $as_echo "$ac_try_echo"; } >&5
2916 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2918 if test -s conftest.err
; then
2920 ... rest of stderr output deleted ...
2921 10q' conftest.err
>conftest.er1
2922 cat conftest.er1
>&5
2923 rm -f conftest.er1 conftest.err
2925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2926 test $ac_status = 0; }
2929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2930 /* end confdefs.h. */
2940 ac_clean_files_save
=$ac_clean_files
2941 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2942 # Try to create an executable without -o first, disregard a.out.
2943 # It will help us diagnose broken compilers, and finding out an intuition
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2946 $as_echo_n "checking for C compiler default output file name... " >&6; }
2947 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2949 # The possible output files:
2950 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2953 for ac_file
in $ac_files
2956 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2957 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2962 if { { ac_try
="$ac_link_default"
2964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968 $as_echo "$ac_try_echo"; } >&5
2969 (eval "$ac_link_default") 2>&5
2971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; }; then :
2973 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2974 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2975 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2976 # so that the user can short-circuit this test for compilers unknown to
2978 for ac_file in $ac_files ''
2980 test -f "$ac_file" || continue
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2985 # We found the default executable, but exeext='' is most
2989 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2991 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2993 # We set ac_cv_exeext here because the later test for it is not
2994 # safe: cross compilers may not add the suffix if given an `-o'
2995 # argument, so we may need to know it at that point already.
2996 # Even if this section looks crufty: it has the advantage of
3003 test "$ac_cv_exeext" = no && ac_cv_exeext=
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3009 $as_echo "$ac_file" >&6; }
3010 if test -z "$ac_file"; then :
3011 $as_echo "$as_me: failed program was:" >&5
3012 sed 's
/^
/|
/' conftest.$ac_ext >&5
3014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3016 { as_fn_set_status 77
3017 as_fn_error "C compiler cannot create executables
3018 See \`config.log
' for more details." "$LINENO" 5; }; }
3020 ac_exeext=$ac_cv_exeext
3022 # Check that the compiler produces executables we can run. If not, either
3023 # the compiler is broken, or we cross compile.
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3025 $as_echo_n "checking whether the C compiler works... " >&6; }
3026 # If not cross compiling, check that we can run a simple program.
3027 if test "$cross_compiling" != yes; then
3028 if { ac_try='.
/$ac_file'
3029 { { case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_try") 2>&5
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }; }; then
3041 if test "$cross_compiling" = maybe; then
3044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3046 as_fn_error "cannot run C compiled programs.
3047 If you meant to cross compile, use \`--host'.
3048 See \`config.log' for more details.
" "$LINENO" 5; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3053 $as_echo "yes" >&6; }
3055 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3056 ac_clean_files=$ac_clean_files_save
3057 # Check that the compiler produces executables we can run. If not, either
3058 # the compiler is broken, or we cross compile.
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3060 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3062 $as_echo "$cross_compiling" >&6; }
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3065 $as_echo_n "checking
for suffix of executables...
" >&6; }
3066 if { { ac_try="$ac_link"
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072 $as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_link") 2>&5
3075 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3076 test $ac_status = 0; }; then :
3077 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3078 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3079 # work properly (i.e., refer to `conftest.exe'), while it won't with
3081 for ac_file in conftest.exe conftest conftest.*; do
3082 test -f "$ac_file" || continue
3084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3085 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093 as_fn_error "cannot compute suffix of executables: cannot compile and link
3094 See \`config.log' for more details.
" "$LINENO" 5; }
3096 rm -f conftest$ac_cv_exeext
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3098 $as_echo "$ac_cv_exeext" >&6; }
3100 rm -f conftest.$ac_ext
3101 EXEEXT=$ac_cv_exeext
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3104 $as_echo_n "checking
for suffix of object files...
" >&6; }
3105 if test "${ac_cv_objext+set}" = set; then :
3106 $as_echo_n "(cached
) " >&6
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3119 rm -f conftest.o conftest.obj
3120 if { { ac_try="$ac_compile"
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_compile") 2>&5
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3130 test $ac_status = 0; }; then :
3131 for ac_file in conftest.o conftest.obj conftest.*; do
3132 test -f "$ac_file" || continue;
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3135 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3140 $as_echo "$as_me: failed program was
:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error "cannot compute suffix of object files: cannot compile
3146 See \`config.log' for more details.
" "$LINENO" 5; }
3148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3151 $as_echo "$ac_cv_objext" >&6; }
3152 OBJEXT=$ac_cv_objext
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3155 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3156 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3157 $as_echo_n "(cached
) " >&6
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3173 if ac_fn_c_try_compile "$LINENO"; then :
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3183 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3184 if test $ac_compiler_gnu = yes; then
3189 ac_test_CFLAGS=${CFLAGS+set}
3190 ac_save_CFLAGS=$CFLAGS
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3192 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3193 if test "${ac_cv_prog_cc_g+set}" = set; then :
3194 $as_echo_n "(cached
) " >&6
3196 ac_save_c_werror_flag=$ac_c_werror_flag
3197 ac_c_werror_flag=yes
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3211 if ac_fn_c_try_compile "$LINENO"; then :
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3226 if ac_fn_c_try_compile "$LINENO"; then :
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3242 if ac_fn_c_try_compile "$LINENO"; then :
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_c_werror_flag=$ac_save_c_werror_flag
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3253 $as_echo "$ac_cv_prog_cc_g" >&6; }
3254 if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256 elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3263 if test "$GCC" = yes; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3270 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3271 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3272 $as_echo_n "(cached
) " >&6
3274 ac_cv_prog_cc_c89=no
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3280 #include <sys/types.h>
3281 #include <sys/stat.h>
3282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283 struct buf { int x; };
3284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285 static char *e (p, i)
3291 static char *f (char * (*g) (char **, int), char **p, ...)
3296 s = g (p, va_arg (v,int));
3301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
3304 as 'x'. The following induces an error, until -std is added to get
3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
3307 that's true only with -std. */
3308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3315 int test (int i, double x);
3316 struct s1 {int (*f) (int a);};
3317 struct s2 {int (*f) (double a);};
3318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3324 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 CC="$ac_save_CC $ac_arg"
3333 if ac_fn_c_try_compile "$LINENO"; then :
3334 ac_cv_prog_cc_c89=$ac_arg
3336 rm -f core conftest.err conftest.$ac_objext
3337 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3339 rm -f conftest.$ac_ext
3344 case "x
$ac_cv_prog_cc_c89" in
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3347 $as_echo "none needed
" >&6; } ;;
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3350 $as_echo "unsupported
" >&6; } ;;
3352 CC="$CC $ac_cv_prog_cc_c89"
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3354 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3356 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367 ac_cpp='$CXXCPP $CPPFLAGS'
3368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3371 if test -z "$CXX"; then
3372 if test -n "$CCC"; then
3375 if test -n "$ac_tool_prefix"; then
3376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3381 $as_echo_n "checking
for $ac_word...
" >&6; }
3382 if test "${ac_cv_prog_CXX+set}" = set; then :
3383 $as_echo_n "(cached
) " >&6
3385 if test -n "$CXX"; then
3386 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3406 if test -n "$CXX"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
3408 $as_echo "$CXX" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3411 $as_echo "no
" >&6; }
3415 test -n "$CXX" && break
3418 if test -z "$CXX"; then
3420 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3422 # Extract the first word of "$ac_prog", so it can be a program name with args.
3423 set dummy $ac_prog; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3425 $as_echo_n "checking
for $ac_word...
" >&6; }
3426 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3427 $as_echo_n "(cached
) " >&6
3429 if test -n "$ac_ct_CXX"; then
3430 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_ac_ct_CXX="$ac_prog"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3449 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3450 if test -n "$ac_ct_CXX"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
3452 $as_echo "$ac_ct_CXX" >&6; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3455 $as_echo "no
" >&6; }
3459 test -n "$ac_ct_CXX" && break
3462 if test "x
$ac_ct_CXX" = x; then
3465 case $cross_compiling:$ac_tool_warned in
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3468 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3469 ac_tool_warned=yes ;;
3477 # Provide some information about the compiler.
3478 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
3481 for ac_option in --version -v -V -qversion; do
3482 { { ac_try="$ac_compiler $ac_option >&5"
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3491 if test -s conftest.err; then
3493 ... rest of stderr output deleted ...
3494 10q' conftest.err >conftest.er1
3495 cat conftest.er1 >&5
3496 rm -f conftest.er1 conftest.err
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3499 test $ac_status = 0; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
3503 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
3504 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3505 $as_echo_n "(cached
) " >&6
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3521 if ac_fn_cxx_try_compile "$LINENO"; then :
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
3531 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3532 if test $ac_compiler_gnu = yes; then
3537 ac_test_CXXFLAGS=${CXXFLAGS+set}
3538 ac_save_CXXFLAGS=$CXXFLAGS
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
3540 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
3541 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3542 $as_echo_n "(cached
) " >&6
3544 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3545 ac_cxx_werror_flag=yes
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3559 if ac_fn_cxx_try_compile "$LINENO"; then :
3560 ac_cv_prog_cxx_g=yes
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3574 if ac_fn_cxx_try_compile "$LINENO"; then :
3577 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3590 if ac_fn_cxx_try_compile "$LINENO"; then :
3591 ac_cv_prog_cxx_g=yes
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3601 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3602 if test "$ac_test_CXXFLAGS" = set; then
3603 CXXFLAGS=$ac_save_CXXFLAGS
3604 elif test $ac_cv_prog_cxx_g = yes; then
3605 if test "$GXX" = yes; then
3611 if test "$GXX" = yes; then
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3630 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3631 # On Suns, sometimes $CPP names a directory.
3632 if test -n "$CPP" && test -d "$CPP"; then
3635 if test -z "$CPP"; then
3636 if test "${ac_cv_prog_CPP+set}" = set; then :
3637 $as_echo_n "(cached
) " >&6
3639 # Double quotes because CPP needs to be expanded
3640 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3643 for ac_c_preproc_warn_flag in '' yes
3645 # Use a header file that comes with gcc, so configuring glibc
3646 # with a fresh cross-compiler works.
3647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3648 # <limits.h> exists even on freestanding compilers.
3649 # On the NeXT, cc -E runs the code through the compiler's parser,
3650 # not just through cpp. "Syntax error
" is here to catch this case.
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3654 # include <limits.h>
3656 # include <assert.h>
3660 if ac_fn_c_try_cpp "$LINENO"; then :
3663 # Broken: fails on valid input.
3666 rm -f conftest.err conftest.$ac_ext
3668 # OK, works on sane cases. Now check whether nonexistent headers
3669 # can be detected and how.
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3672 #include <ac_nonexistent.h>
3674 if ac_fn_c_try_cpp "$LINENO"; then :
3675 # Broken: success on invalid input.
3678 # Passes both tests.
3682 rm -f conftest.err conftest.$ac_ext
3685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3686 rm -f conftest.err conftest.$ac_ext
3687 if $ac_preproc_ok; then :
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3700 $as_echo "$CPP" >&6; }
3702 for ac_c_preproc_warn_flag in '' yes
3704 # Use a header file that comes with gcc, so configuring glibc
3705 # with a fresh cross-compiler works.
3706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3707 # <limits.h> exists even on freestanding compilers.
3708 # On the NeXT, cc -E runs the code through the compiler's parser,
3709 # not just through cpp. "Syntax error
" is here to catch this case.
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3713 # include <limits.h>
3715 # include <assert.h>
3719 if ac_fn_c_try_cpp "$LINENO"; then :
3722 # Broken: fails on valid input.
3725 rm -f conftest.err conftest.$ac_ext
3727 # OK, works on sane cases. Now check whether nonexistent headers
3728 # can be detected and how.
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731 #include <ac_nonexistent.h>
3733 if ac_fn_c_try_cpp "$LINENO"; then :
3734 # Broken: success on invalid input.
3737 # Passes both tests.
3741 rm -f conftest.err conftest.$ac_ext
3744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3745 rm -f conftest.err conftest.$ac_ext
3746 if $ac_preproc_ok; then :
3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3752 See \`config.log' for more details.
" "$LINENO" 5; }
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3763 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3764 if test "${ac_cv_path_GREP+set}" = set; then :
3765 $as_echo_n "(cached
) " >&6
3767 if test -z "$GREP"; then
3768 ac_path_GREP_found=false
3769 # Loop through the user's path and test for each of PROGNAME-LIST
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3774 test -z "$as_dir" && as_dir=.
3775 for ac_prog in grep ggrep; do
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3778 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3779 # Check for GNU ac_path_GREP and select it if it is found.
3780 # Check for GNU $ac_path_GREP
3781 case `"$ac_path_GREP" --version 2>&1` in
3783 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3786 $as_echo_n 0123456789 >"conftest.
in"
3789 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3790 mv "conftest.tmp
" "conftest.
in"
3791 cp "conftest.
in" "conftest.
nl"
3792 $as_echo 'GREP' >> "conftest.
nl"
3793 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3794 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3795 as_fn_arith $ac_count + 1 && ac_count=$as_val
3796 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3797 # Best one so far, save it but keep looking for a better one
3798 ac_cv_path_GREP="$ac_path_GREP"
3799 ac_path_GREP_max=$ac_count
3801 # 10*(2^10) chars as input seems more than enough
3802 test $ac_count -gt 10 && break
3804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3807 $ac_path_GREP_found && break 3
3812 if test -z "$ac_cv_path_GREP"; then
3813 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3816 ac_cv_path_GREP=$GREP
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3821 $as_echo "$ac_cv_path_GREP" >&6; }
3822 GREP="$ac_cv_path_GREP"
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3826 $as_echo_n "checking
for egrep...
" >&6; }
3827 if test "${ac_cv_path_EGREP+set}" = set; then :
3828 $as_echo_n "(cached
) " >&6
3830 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3831 then ac_cv_path_EGREP="$GREP -E"
3833 if test -z "$EGREP"; then
3834 ac_path_EGREP_found=false
3835 # Loop through the user's path and test for each of PROGNAME-LIST
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3840 test -z "$as_dir" && as_dir=.
3841 for ac_prog in egrep; do
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3844 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3845 # Check for GNU ac_path_EGREP and select it if it is found.
3846 # Check for GNU $ac_path_EGREP
3847 case `"$ac_path_EGREP" --version 2>&1` in
3849 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3852 $as_echo_n 0123456789 >"conftest.
in"
3855 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3856 mv "conftest.tmp
" "conftest.
in"
3857 cp "conftest.
in" "conftest.
nl"
3858 $as_echo 'EGREP' >> "conftest.
nl"
3859 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3860 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3861 as_fn_arith $ac_count + 1 && ac_count=$as_val
3862 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3863 # Best one so far, save it but keep looking for a better one
3864 ac_cv_path_EGREP="$ac_path_EGREP"
3865 ac_path_EGREP_max=$ac_count
3867 # 10*(2^10) chars as input seems more than enough
3868 test $ac_count -gt 10 && break
3870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3873 $ac_path_EGREP_found && break 3
3878 if test -z "$ac_cv_path_EGREP"; then
3879 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3882 ac_cv_path_EGREP=$EGREP
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3888 $as_echo "$ac_cv_path_EGREP" >&6; }
3889 EGREP="$ac_cv_path_EGREP"
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3893 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3894 if test "${ac_cv_header_stdc+set}" = set; then :
3895 $as_echo_n "(cached
) " >&6
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3912 if ac_fn_c_try_compile "$LINENO"; then :
3913 ac_cv_header_stdc=yes
3915 ac_cv_header_stdc=no
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 if test $ac_cv_header_stdc = yes; then
3920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3926 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3927 $EGREP "memchr
" >/dev/null 2>&1; then :
3930 ac_cv_header_stdc=no
3936 if test $ac_cv_header_stdc = yes; then
3937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3943 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3944 $EGREP "free
" >/dev/null 2>&1; then :
3947 ac_cv_header_stdc=no
3953 if test $ac_cv_header_stdc = yes; then
3954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3955 if test "$cross_compiling" = yes; then :
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3962 #if ((' ' & 0x0FF) == 0x020)
3963 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3964 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3966 # define ISLOWER(c) \
3967 (('a' <= (c) && (c) <= 'i') \
3968 || ('j' <= (c) && (c) <= 'r') \
3969 || ('s' <= (c) && (c) <= 'z'))
3970 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3973 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3978 for (i = 0; i < 256; i++)
3979 if (XOR (islower (i), ISLOWER (i))
3980 || toupper (i) != TOUPPER (i))
3985 if ac_fn_c_try_run "$LINENO"; then :
3988 ac_cv_header_stdc=no
3990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3991 conftest.$ac_objext conftest.beam conftest.$ac_ext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3997 $as_echo "$ac_cv_header_stdc" >&6; }
3998 if test $ac_cv_header_stdc = yes; then
4000 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4005 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4006 inttypes.h stdint.h unistd.h
4008 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4009 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4011 eval as_val
=\$
$as_ac_Header
4012 if test "x$as_val" = x
""yes; then :
4013 cat >>confdefs.h
<<_ACEOF
4014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4023 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4024 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4031 if test "$MINIX" = yes; then
4033 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4036 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4039 $as_echo "#define _MINIX 1" >>confdefs.h
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4045 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4046 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4052 # define __EXTENSIONS__ 1
4053 $ac_includes_default
4062 if ac_fn_c_try_compile
"$LINENO"; then :
4063 ac_cv_safe_to_define___extensions__
=yes
4065 ac_cv_safe_to_define___extensions__
=no
4067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4070 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4071 test $ac_cv_safe_to_define___extensions__ = yes &&
4072 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4074 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4076 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4078 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4080 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4084 # Check whether --enable-largefile was given.
4085 if test "${enable_largefile+set}" = set; then :
4086 enableval
=$enable_largefile;
4089 if test "$enable_largefile" != no
; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4092 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4093 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4096 ac_cv_sys_largefile_CC
=no
4097 if test "$GCC" != yes; then
4100 # IRIX 6.2 and later do not support large files by default,
4101 # so use the C compiler's -n32 option if that helps.
4102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104 #include <sys/types.h>
4105 /* Check that off_t can represent 2**63 - 1 correctly.
4106 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4107 since some C++ compilers masquerading as C compilers
4108 incorrectly reject 9223372036854775807. */
4109 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4110 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4111 && LARGE_OFF_T % 2147483647 == 1)
4121 if ac_fn_c_try_compile
"$LINENO"; then :
4124 rm -f core conftest.err conftest.
$ac_objext
4126 if ac_fn_c_try_compile
"$LINENO"; then :
4127 ac_cv_sys_largefile_CC
=' -n32'; break
4129 rm -f core conftest.err conftest.
$ac_objext
4133 rm -f conftest.
$ac_ext
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4137 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4138 if test "$ac_cv_sys_largefile_CC" != no
; then
4139 CC
=$CC$ac_cv_sys_largefile_CC
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4143 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4144 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
4148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150 #include <sys/types.h>
4151 /* Check that off_t can represent 2**63 - 1 correctly.
4152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4153 since some C++ compilers masquerading as C compilers
4154 incorrectly reject 9223372036854775807. */
4155 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4157 && LARGE_OFF_T % 2147483647 == 1)
4167 if ac_fn_c_try_compile
"$LINENO"; then :
4168 ac_cv_sys_file_offset_bits
=no
; break
4170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #define _FILE_OFFSET_BITS 64
4174 #include <sys/types.h>
4175 /* Check that off_t can represent 2**63 - 1 correctly.
4176 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4177 since some C++ compilers masquerading as C compilers
4178 incorrectly reject 9223372036854775807. */
4179 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4180 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4181 && LARGE_OFF_T % 2147483647 == 1)
4191 if ac_fn_c_try_compile
"$LINENO"; then :
4192 ac_cv_sys_file_offset_bits
=64; break
4194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4195 ac_cv_sys_file_offset_bits
=unknown
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4200 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4201 case $ac_cv_sys_file_offset_bits in #(
4204 cat >>confdefs.h
<<_ACEOF
4205 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4210 if test $ac_cv_sys_file_offset_bits = unknown
; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4212 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4213 if test "${ac_cv_sys_large_files+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
4217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <sys/types.h>
4220 /* Check that off_t can represent 2**63 - 1 correctly.
4221 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4222 since some C++ compilers masquerading as C compilers
4223 incorrectly reject 9223372036854775807. */
4224 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4226 && LARGE_OFF_T % 2147483647 == 1)
4236 if ac_fn_c_try_compile
"$LINENO"; then :
4237 ac_cv_sys_large_files
=no
; break
4239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242 #define _LARGE_FILES 1
4243 #include <sys/types.h>
4244 /* Check that off_t can represent 2**63 - 1 correctly.
4245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4246 since some C++ compilers masquerading as C compilers
4247 incorrectly reject 9223372036854775807. */
4248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4250 && LARGE_OFF_T % 2147483647 == 1)
4260 if ac_fn_c_try_compile
"$LINENO"; then :
4261 ac_cv_sys_large_files
=1; break
4263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4264 ac_cv_sys_large_files
=unknown
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4269 $as_echo "$ac_cv_sys_large_files" >&6; }
4270 case $ac_cv_sys_large_files in #(
4273 cat >>confdefs.h
<<_ACEOF
4274 #define _LARGE_FILES $ac_cv_sys_large_files
4284 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4285 for ac_t
in install-sh
install.sh shtool
; do
4286 if test -f "$ac_dir/$ac_t"; then
4288 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4293 if test -z "$ac_aux_dir"; then
4294 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4297 # These three variables are undocumented and unsupported,
4298 # and are intended to be withdrawn in a future Autoconf release.
4299 # They can cause serious problems if a builder's source tree is in a directory
4300 # whose full name contains unusual characters.
4301 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4302 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4303 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4306 # Make sure we can run config.sub.
4307 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4308 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4311 $as_echo_n "checking build system type... " >&6; }
4312 if test "${ac_cv_build+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
4315 ac_build_alias
=$build_alias
4316 test "x$ac_build_alias" = x
&&
4317 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4318 test "x$ac_build_alias" = x
&&
4319 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4320 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4321 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4325 $as_echo "$ac_cv_build" >&6; }
4326 case $ac_cv_build in
4328 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4331 ac_save_IFS
=$IFS; IFS
='-'
4337 # Remember, the first character of IFS is used to create $*,
4338 # except with old shells:
4341 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4345 $as_echo_n "checking host system type... " >&6; }
4346 if test "${ac_cv_host+set}" = set; then :
4347 $as_echo_n "(cached) " >&6
4349 if test "x$host_alias" = x
; then
4350 ac_cv_host
=$ac_cv_build
4352 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4353 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4358 $as_echo "$ac_cv_host" >&6; }
4361 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4364 ac_save_IFS
=$IFS; IFS
='-'
4370 # Remember, the first character of IFS is used to create $*,
4371 # except with old shells:
4374 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4378 $as_echo_n "checking target system type... " >&6; }
4379 if test "${ac_cv_target+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
4382 if test "x$target_alias" = x
; then
4383 ac_cv_target
=$ac_cv_host
4385 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4386 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4391 $as_echo "$ac_cv_target" >&6; }
4392 case $ac_cv_target in
4394 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4396 target
=$ac_cv_target
4397 ac_save_IFS
=$IFS; IFS
='-'
4403 # Remember, the first character of IFS is used to create $*,
4404 # except with old shells:
4407 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4410 # The aliases save the names the user supplied, while $host etc.
4411 # will get canonicalized.
4412 test -n "$target_alias" &&
4413 test "$program_prefix$program_suffix$program_transform_name" = \
4415 program_prefix
=${target_alias}-
4418 # Find a good install program. We prefer a C program (faster),
4419 # so one script is as good as another. But avoid the broken or
4420 # incompatible versions:
4421 # SysV /etc/install, /usr/sbin/install
4422 # SunOS /usr/etc/install
4423 # IRIX /sbin/install
4425 # AmigaOS /C/install, which installs bootblocks on floppy discs
4426 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4427 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4428 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4429 # OS/2's system install, which has a completely different semantic
4430 # ./install, which can be erroneously created by make from ./install.sh.
4431 # Reject install programs that cannot install multiple files.
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4433 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4434 if test -z "$INSTALL"; then
4435 if test "${ac_cv_path_install+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
4438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir
=.
4443 # Account for people who put trailing slashes in PATH elements.
4444 case $as_dir/ in #((
4445 .
/ | .
// |
/[cC
]/* | \
4446 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4447 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4450 # OSF1 and SCO ODT 3.0 have their own names for install.
4451 # Don't use installbsd from OSF since it installs stuff as root
4453 for ac_prog
in ginstall scoinst
install; do
4454 for ac_exec_ext
in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4456 if test $ac_prog = install &&
4457 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4458 # AIX install. It has an incompatible calling convention.
4460 elif test $ac_prog = install &&
4461 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4462 # program-specific install script used by HP pwplus--don't use.
4465 rm -rf conftest.one conftest.two conftest.dir
4466 echo one
> conftest.one
4467 echo two
> conftest.two
4469 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4470 test -s conftest.one
&& test -s conftest.two
&&
4471 test -s conftest.dir
/conftest.one
&&
4472 test -s conftest.dir
/conftest.two
4474 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4487 rm -rf conftest.one conftest.two conftest.dir
4490 if test "${ac_cv_path_install+set}" = set; then
4491 INSTALL
=$ac_cv_path_install
4493 # As a last resort, use the slow shell script. Don't cache a
4494 # value for INSTALL within a source directory, because that will
4495 # break other packages using the cache if that directory is
4496 # removed, or if the value is a relative name.
4497 INSTALL
=$ac_install_sh
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4501 $as_echo "$INSTALL" >&6; }
4503 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4504 # It thinks the first close brace ends the variable substitution.
4505 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4507 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4509 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4511 if test -n "$ac_tool_prefix"; then
4512 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4513 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515 $as_echo_n "checking for $ac_word... " >&6; }
4516 if test "${ac_cv_prog_AR+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4519 if test -n "$AR"; then
4520 ac_cv_prog_AR
="$AR" # Let the user override the test.
4522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir
=.
4527 for ac_exec_ext
in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 if test -n "$AR"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4542 $as_echo "$AR" >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4550 if test -z "$ac_cv_prog_AR"; then
4552 # Extract the first word of "ar", so it can be a program name with args.
4553 set dummy
ar; ac_word
=$2
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4559 if test -n "$ac_ct_AR"; then
4560 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir
=.
4567 for ac_exec_ext
in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_ac_ct_AR
="ar"
4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4580 if test -n "$ac_ct_AR"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4582 $as_echo "$ac_ct_AR" >&6; }
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4588 if test "x$ac_ct_AR" = x
; then
4591 case $cross_compiling:$ac_tool_warned in
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595 ac_tool_warned
=yes ;;
4603 if test -n "$ac_tool_prefix"; then
4604 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4605 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4611 if test -n "$RANLIB"; then
4612 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir
=.
4619 for ac_exec_ext
in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 RANLIB
=$ac_cv_prog_RANLIB
4632 if test -n "$RANLIB"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4634 $as_echo "$RANLIB" >&6; }
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4642 if test -z "$ac_cv_prog_RANLIB"; then
4643 ac_ct_RANLIB
=$RANLIB
4644 # Extract the first word of "ranlib", so it can be a program name with args.
4645 set dummy ranlib
; ac_word
=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4651 if test -n "$ac_ct_RANLIB"; then
4652 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir
=.
4659 for ac_exec_ext
in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4672 if test -n "$ac_ct_RANLIB"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4674 $as_echo "$ac_ct_RANLIB" >&6; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4680 if test "x$ac_ct_RANLIB" = x
; then
4683 case $cross_compiling:$ac_tool_warned in
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687 ac_tool_warned
=yes ;;
4689 RANLIB
=$ac_ct_RANLIB
4692 RANLIB
="$ac_cv_prog_RANLIB"
4696 test "$program_prefix" != NONE
&&
4697 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4698 # Use a double $ so make ignores it.
4699 test "$program_suffix" != NONE
&&
4700 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4701 # Double any \ or $.
4702 # By default was `s,x,x', remove it if useless.
4703 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4704 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4708 $as_echo_n "checking for ANSI C header files... " >&6; }
4709 if test "${ac_cv_header_stdc+set}" = set; then :
4710 $as_echo_n "(cached) " >&6
4712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4727 if ac_fn_c_try_compile
"$LINENO"; then :
4728 ac_cv_header_stdc
=yes
4730 ac_cv_header_stdc
=no
4732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4734 if test $ac_cv_header_stdc = yes; then
4735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4742 $EGREP "memchr" >/dev
/null
2>&1; then :
4745 ac_cv_header_stdc
=no
4751 if test $ac_cv_header_stdc = yes; then
4752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4759 $EGREP "free" >/dev
/null
2>&1; then :
4762 ac_cv_header_stdc
=no
4768 if test $ac_cv_header_stdc = yes; then
4769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4770 if test "$cross_compiling" = yes; then :
4773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4777 #if ((' ' & 0x0FF) == 0x020)
4778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4781 # define ISLOWER(c) \
4782 (('a' <= (c) && (c) <= 'i') \
4783 || ('j' <= (c) && (c) <= 'r') \
4784 || ('s' <= (c) && (c) <= 'z'))
4785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4793 for (i = 0; i < 256; i++)
4794 if (XOR (islower (i), ISLOWER (i))
4795 || toupper (i) != TOUPPER (i))
4800 if ac_fn_c_try_run
"$LINENO"; then :
4803 ac_cv_header_stdc
=no
4805 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4806 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4812 $as_echo "$ac_cv_header_stdc" >&6; }
4813 if test $ac_cv_header_stdc = yes; then
4815 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4820 # See if we are building with C++, and substitute COMPILER.
4822 # Check whether --enable-build-with-cxx was given.
4823 if test "${enable_build_with_cxx+set}" = set; then :
4824 enableval
=$enable_build_with_cxx; case $enableval in
4828 as_fn_error
"bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4831 enable_build_with_cxx
=no
4835 if test "$enable_build_with_cxx" = "yes"; then
4843 # Set the 'development' global.
4844 .
$srcdir/..
/..
/bfd
/development.sh
4846 # Enable -lmcheck by default (it provides cheap-enough memory
4847 # mangling), but turn it off for releases.
4848 if $development; then
4849 libmcheck_default
=yes
4851 libmcheck_default
=no
4854 # Check whether --enable-libmcheck was given.
4855 if test "${enable_libmcheck+set}" = set; then :
4856 enableval
=$enable_libmcheck; case "${enableval}" in
4857 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
4858 no | n
) ENABLE_LIBMCHECK
="no" ;;
4859 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
4864 if test -z "${ENABLE_LIBMCHECK}"; then
4865 ENABLE_LIBMCHECK
=${libmcheck_default}
4868 if test "$ENABLE_LIBMCHECK" = "yes" ; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
4870 $as_echo_n "checking for main in -lmcheck... " >&6; }
4871 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4874 ac_check_lib_save_LIBS
=$LIBS
4875 LIBS
="-lmcheck $LIBS"
4876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4888 if ac_fn_c_try_link
"$LINENO"; then :
4889 ac_cv_lib_mcheck_main
=yes
4891 ac_cv_lib_mcheck_main
=no
4893 rm -f core conftest.err conftest.
$ac_objext \
4894 conftest
$ac_exeext conftest.
$ac_ext
4895 LIBS
=$ac_check_lib_save_LIBS
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
4898 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
4899 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
4900 cat >>confdefs.h
<<_ACEOF
4901 #define HAVE_LIBMCHECK 1
4904 LIBS
="-lmcheck $LIBS"
4911 case ${build_alias} in
4912 "") build_noncanonical
=${build} ;;
4913 *) build_noncanonical
=${build_alias} ;;
4916 case ${host_alias} in
4917 "") host_noncanonical
=${build_noncanonical} ;;
4918 *) host_noncanonical
=${host_alias} ;;
4921 case ${target_alias} in
4922 "") target_noncanonical
=${host_noncanonical} ;;
4923 *) target_noncanonical
=${target_alias} ;;
4931 # Dependency checking.
4932 rm -rf .tst
2>/dev
/null
4933 mkdir .tst
2>/dev
/null
4934 if test -d .tst
; then
4939 rmdir .tst
2>/dev
/null
4941 DEPDIR
="${am__leading_dot}deps"
4943 ac_config_commands
="$ac_config_commands depdir"
4946 depcc
="$CC" am_compiler_list
=
4948 am_depcomp
=$ac_aux_dir/depcomp
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4950 $as_echo_n "checking dependency style of $depcc... " >&6; }
4951 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4954 if test -f "$am_depcomp"; then
4955 # We make a subdir and do the tests there. Otherwise we can end up
4956 # making bogus files that we don't know about and never remove. For
4957 # instance it was reported that on HP-UX the gcc test will end up
4958 # making a dummy file named `D' -- because `-MD' means `put the output
4961 # Copy depcomp to subdir because otherwise we won't find it if we're
4962 # using a relative directory.
4963 cp "$am_depcomp" conftest.dir
4965 # We will build objects and dependencies in a subdirectory because
4966 # it helps to detect inapplicable dependency modes. For instance
4967 # both Tru64's cc and ICC support -MD to output dependencies as a
4968 # side effect of compilation, but ICC will put the dependencies in
4969 # the current directory while Tru64 will put them in the object
4973 am_cv_CC_dependencies_compiler_type
=none
4974 if test "$am_compiler_list" = ""; then
4975 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4977 for depmode
in $am_compiler_list; do
4978 if test $depmode = none
; then break; fi
4980 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4981 # Setup a source with many dependencies, because some compilers
4982 # like to wrap large dependency lists on column 80 (with \), and
4983 # we should not choose a depcomp mode which is confused by this.
4985 # We need to recreate these files for each test, as the compiler may
4986 # overwrite some of them when testing with obscure command lines.
4987 # This happens at least with the AIX C compiler.
4989 for i
in 1 2 3 4 5 6; do
4990 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4991 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4992 # Solaris 8's {/usr,}/bin/sh.
4993 touch sub
/conftst
$i.h
4995 echo "include sub/conftest.Po" > confmf
4997 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4998 # mode. It turns out that the SunPro C++ compiler does not properly
4999 # handle `-M -o', and we need to detect this.
5000 depcmd
="depmode=$depmode \
5001 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5003 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5004 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5005 if env
$depcmd > conftest.err
2>&1 &&
5006 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5007 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5008 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5009 # icc doesn't choke on unknown options, it will just issue warnings
5010 # or remarks (even with -Werror). So we grep stderr for any message
5011 # that says an option was ignored or not supported.
5012 # When given -MP, icc 7.0 and 7.1 complain thusly:
5013 # icc: Command line warning: ignoring option '-M'; no argument required
5014 # The diagnosis changed in icc 8.0:
5015 # icc: Command line remark: option '-MP' not supported
5016 if (grep 'ignoring option' conftest.err ||
5017 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5018 am_cv_CC_dependencies_compiler_type
=$depmode
5019 $as_echo "$as_me:$LINENO: success" >&5
5023 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5024 sed -e 's/^/| /' < conftest.err
>&5
5030 am_cv_CC_dependencies_compiler_type
=none
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5035 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5036 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
5037 then as_fn_error
"no usable dependency style found" "$LINENO" 5
5038 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5043 # Check for the 'make' the user wants to use.
5046 # Extract the first word of "$ac_prog", so it can be a program name with args.
5047 set dummy
$ac_prog; ac_word
=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if test "${ac_cv_prog_MAKE+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5053 if test -n "$MAKE"; then
5054 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir
=.
5061 for ac_exec_ext
in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_MAKE
="$ac_prog"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 MAKE
=$ac_cv_prog_MAKE
5074 if test -n "$MAKE"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5076 $as_echo "$MAKE" >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5083 test -n "$MAKE" && break
5087 case "`$MAKE --version 2>&1 | sed 1q`" in
5092 if test "$MAKE_IS_GNU" = yes; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5101 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5103 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5104 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5105 $as_echo_n "(cached) " >&6
5107 cat >conftest.
make <<\_ACEOF
5110 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5112 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5113 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5115 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5117 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5121 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5123 $as_echo "yes" >&6; }
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128 SET_MAKE
="MAKE=${MAKE-make}"
5132 gnulib_extra_configure_args
=
5133 # If large-file support is disabled, make sure gnulib does the same.
5134 if test "$enable_largefile" = no
; then
5135 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5138 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
5139 # to find the the source subdir to be configured directly under
5140 # gdbserver/. We need to build gnulib under some other directory not
5141 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
5142 # build it in the same directory, when building in the source dir.
5145 in_build
="build-gnulib-gdbserver"
5146 in_extra_args
="$gnulib_extra_configure_args"
5148 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5149 # so they do not pile up.
5150 ac_sub_configure_args
=
5152 eval "set x $ac_configure_args"
5156 if test -n "$ac_prev"; then
5161 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5162 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5163 ac_prev
=cache_file
;;
5164 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5165 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5168 --config-cache |
-C)
5170 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5172 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5174 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5176 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5178 --disable-option-checking)
5182 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5184 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5188 # Always prepend --prefix to ensure using the same prefix
5189 # in subdir configurations.
5190 ac_arg
="--prefix=$prefix"
5192 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5194 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5197 if test "$silent" = yes; then
5198 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5201 # Always prepend --disable-option-checking to silence warnings, since
5202 # different subdirs can have different --enable and --with options.
5203 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5208 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5210 $as_echo "$ac_msg" >&6
5211 as_dir
="$ac_dir"; as_fn_mkdir_p
5215 ac_srcdir
=$srcdir/$in_src ;;
5217 ac_srcdir
=..
/$srcdir/$in_src ;;
5222 ac_sub_configure
=$ac_srcdir/configure
5224 # Make the cache file name correct relative to the subdirectory.
5226 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5228 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5231 if test -n "$in_extra_args"; then
5232 # Add the extra args at the end.
5233 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5236 { $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
5237 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5238 # The eval makes quoting arguments work.
5239 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5240 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5241 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5247 in_src
="../../libiberty"
5248 in_build
="build-libiberty-gdbserver"
5251 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5252 # so they do not pile up.
5253 ac_sub_configure_args
=
5255 eval "set x $ac_configure_args"
5259 if test -n "$ac_prev"; then
5264 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5265 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5266 ac_prev
=cache_file
;;
5267 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5268 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5271 --config-cache |
-C)
5273 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5275 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5277 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5279 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5281 --disable-option-checking)
5285 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5287 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5291 # Always prepend --prefix to ensure using the same prefix
5292 # in subdir configurations.
5293 ac_arg
="--prefix=$prefix"
5295 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5297 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5300 if test "$silent" = yes; then
5301 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5304 # Always prepend --disable-option-checking to silence warnings, since
5305 # different subdirs can have different --enable and --with options.
5306 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5311 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5313 $as_echo "$ac_msg" >&6
5314 as_dir
="$ac_dir"; as_fn_mkdir_p
5318 ac_srcdir
=$srcdir/$in_src ;;
5320 ac_srcdir
=..
/$srcdir/$in_src ;;
5325 ac_sub_configure
=$ac_srcdir/configure
5327 # Make the cache file name correct relative to the subdirectory.
5329 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5331 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5334 if test -n "$in_extra_args"; then
5335 # Add the extra args at the end.
5336 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5339 { $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
5340 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5341 # The eval makes quoting arguments work.
5342 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5343 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5344 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5349 for ac_header
in sgtty.h termio.h termios.h sys
/reg.h string.h proc_service.h sys
/procfs.h linux
/elf.h fcntl.h signal.h sys
/file.h sys
/ioctl.h netinet
/in.h sys
/socket.h netdb.h netinet
/tcp.h arpa
/inet.h
5351 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5352 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5353 eval as_val
=\$
$as_ac_Header
5354 if test "x$as_val" = x
""yes; then :
5355 cat >>confdefs.h
<<_ACEOF
5356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5363 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5364 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5368 cat >>confdefs.h
<<_ACEOF
5374 for ac_header
in vfork.h
5376 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5377 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
5378 cat >>confdefs.h
<<_ACEOF
5379 #define HAVE_VFORK_H 1
5386 for ac_func
in fork vfork
5388 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5389 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5390 eval as_val
=\$
$as_ac_var
5391 if test "x$as_val" = x
""yes; then :
5392 cat >>confdefs.h
<<_ACEOF
5393 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5399 if test "x$ac_cv_func_fork" = xyes
; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5401 $as_echo_n "checking for working fork... " >&6; }
5402 if test "${ac_cv_func_fork_works+set}" = set; then :
5403 $as_echo_n "(cached) " >&6
5405 if test "$cross_compiling" = yes; then :
5406 ac_cv_func_fork_works
=cross
5408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 $ac_includes_default
5415 /* By Ruediger Kuhlmann. */
5422 if ac_fn_c_try_run
"$LINENO"; then :
5423 ac_cv_func_fork_works
=yes
5425 ac_cv_func_fork_works
=no
5427 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5428 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5433 $as_echo "$ac_cv_func_fork_works" >&6; }
5436 ac_cv_func_fork_works
=$ac_cv_func_fork
5438 if test "x$ac_cv_func_fork_works" = xcross
; then
5440 *-*-amigaos* |
*-*-msdosdjgpp*)
5441 # Override, as these systems have only a dummy fork() stub
5442 ac_cv_func_fork_works
=no
5445 ac_cv_func_fork_works
=yes
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5449 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5451 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5452 if test "x$ac_cv_func_vfork" = xyes
; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5454 $as_echo_n "checking for working vfork... " >&6; }
5455 if test "${ac_cv_func_vfork_works+set}" = set; then :
5456 $as_echo_n "(cached) " >&6
5458 if test "$cross_compiling" = yes; then :
5459 ac_cv_func_vfork_works
=cross
5461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 /* Thanks to Paul Eggert for this test. */
5464 $ac_includes_default
5465 #include <sys/wait.h>
5469 /* On some sparc systems, changes by the child to local and incoming
5470 argument registers are propagated back to the parent. The compiler
5471 is told about this with #include <vfork.h>, but some compilers
5472 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5473 static variable whose address is put into a register that is
5474 clobbered by the vfork. */
5477 sparc_address_test (int arg)
5479 sparc_address_test (arg) int arg;
5500 pid_t parent = getpid ();
5503 sparc_address_test (0);
5508 /* Here is another test for sparc vfork register problems. This
5509 test uses lots of local variables, at least as many local
5510 variables as main has allocated so far including compiler
5511 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5512 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5513 reuse the register of parent for one of the local variables,
5514 since it will think that parent can't possibly be used any more
5515 in this routine. Assigning to the local variable will thus
5516 munge parent in the parent process. */
5518 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5519 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5520 /* Convince the compiler that p..p7 are live; otherwise, it might
5521 use the same hardware register for all 8 local variables. */
5522 if (p != p1 || p != p2 || p != p3 || p != p4
5523 || p != p5 || p != p6 || p != p7)
5526 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5527 from child file descriptors. If the child closes a descriptor
5528 before it execs or exits, this munges the parent's descriptor
5529 as well. Test for this by closing stdout in the child. */
5530 _exit(close(fileno(stdout)) != 0);
5535 while (wait(&status) != child)
5538 /* Was there some problem with vforking? */
5541 /* Did the child fail? (This shouldn't happen.) */
5544 /* Did the vfork/compiler bug occur? */
5545 || parent != getpid()
5547 /* Did the file descriptor bug occur? */
5548 || fstat(fileno(stdout), &st) != 0
5553 if ac_fn_c_try_run
"$LINENO"; then :
5554 ac_cv_func_vfork_works
=yes
5556 ac_cv_func_vfork_works
=no
5558 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5559 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5564 $as_echo "$ac_cv_func_vfork_works" >&6; }
5567 if test "x$ac_cv_func_fork_works" = xcross
; then
5568 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5570 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5573 if test "x$ac_cv_func_vfork_works" = xyes
; then
5575 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5579 $as_echo "#define vfork fork" >>confdefs.h
5582 if test "x$ac_cv_func_fork_works" = xyes
; then
5584 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5588 for ac_func
in getauxval pread pwrite pread64 setns
5590 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5591 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5592 eval as_val
=\$
$as_ac_var
5593 if test "x$as_val" = x
""yes; then :
5594 cat >>confdefs.h
<<_ACEOF
5595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5604 $as_echo_n "checking for ANSI C header files... " >&6; }
5605 if test "${ac_cv_header_stdc+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5623 if ac_fn_c_try_compile
"$LINENO"; then :
5624 ac_cv_header_stdc
=yes
5626 ac_cv_header_stdc
=no
5628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5630 if test $ac_cv_header_stdc = yes; then
5631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5638 $EGREP "memchr" >/dev
/null
2>&1; then :
5641 ac_cv_header_stdc
=no
5647 if test $ac_cv_header_stdc = yes; then
5648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5655 $EGREP "free" >/dev
/null
2>&1; then :
5658 ac_cv_header_stdc
=no
5664 if test $ac_cv_header_stdc = yes; then
5665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5666 if test "$cross_compiling" = yes; then :
5669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5673 #if ((' ' & 0x0FF) == 0x020)
5674 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5675 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5677 # define ISLOWER(c) \
5678 (('a' <= (c) && (c) <= 'i') \
5679 || ('j' <= (c) && (c) <= 'r') \
5680 || ('s' <= (c) && (c) <= 'z'))
5681 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5684 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5689 for (i = 0; i < 256; i++)
5690 if (XOR (islower (i), ISLOWER (i))
5691 || toupper (i) != TOUPPER (i))
5696 if ac_fn_c_try_run
"$LINENO"; then :
5699 ac_cv_header_stdc
=no
5701 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5702 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5708 $as_echo "$ac_cv_header_stdc" >&6; }
5709 if test $ac_cv_header_stdc = yes; then
5711 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5715 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5716 # for constant arguments. Useless!
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5718 $as_echo_n "checking for working alloca.h... " >&6; }
5719 if test "${ac_cv_working_alloca_h+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5728 char *p = (char *) alloca (2 * sizeof (int));
5734 if ac_fn_c_try_link
"$LINENO"; then :
5735 ac_cv_working_alloca_h
=yes
5737 ac_cv_working_alloca_h
=no
5739 rm -f core conftest.err conftest.
$ac_objext \
5740 conftest
$ac_exeext conftest.
$ac_ext
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5743 $as_echo "$ac_cv_working_alloca_h" >&6; }
5744 if test $ac_cv_working_alloca_h = yes; then
5746 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5751 $as_echo_n "checking for alloca... " >&6; }
5752 if test "${ac_cv_func_alloca_works+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5758 # define alloca __builtin_alloca
5761 # include <malloc.h>
5762 # define alloca _alloca
5764 # ifdef HAVE_ALLOCA_H
5765 # include <alloca.h>
5770 # ifndef alloca /* predefined by HP cc +Olibcalls */
5781 char *p = (char *) alloca (1);
5787 if ac_fn_c_try_link
"$LINENO"; then :
5788 ac_cv_func_alloca_works
=yes
5790 ac_cv_func_alloca_works
=no
5792 rm -f core conftest.err conftest.
$ac_objext \
5793 conftest
$ac_exeext conftest.
$ac_ext
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5796 $as_echo "$ac_cv_func_alloca_works" >&6; }
5798 if test $ac_cv_func_alloca_works = yes; then
5800 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5803 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5804 # that cause trouble. Some versions do not even contain alloca or
5805 # contain a buggy version. If you still want to use their alloca,
5806 # use ar to extract alloca.o from them instead of compiling alloca.c.
5808 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5810 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5814 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5815 if test "${ac_cv_os_cray+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 #if defined CRAY && ! defined CRAY2
5827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5828 $EGREP "webecray" >/dev
/null
2>&1; then :
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5837 $as_echo "$ac_cv_os_cray" >&6; }
5838 if test $ac_cv_os_cray = yes; then
5839 for ac_func
in _getb67 GETB67 getb67
; do
5840 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5841 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5842 eval as_val
=\$
$as_ac_var
5843 if test "x$as_val" = x
""yes; then :
5845 cat >>confdefs.h
<<_ACEOF
5846 #define CRAY_STACKSEG_END $ac_func
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5856 $as_echo_n "checking stack direction for C alloca... " >&6; }
5857 if test "${ac_cv_c_stack_direction+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5860 if test "$cross_compiling" = yes; then :
5861 ac_cv_c_stack_direction
=0
5863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 $ac_includes_default
5867 find_stack_direction ()
5869 static char *addr = 0;
5874 return find_stack_direction ();
5877 return (&dummy > addr) ? 1 : -1;
5883 return find_stack_direction () < 0;
5886 if ac_fn_c_try_run
"$LINENO"; then :
5887 ac_cv_c_stack_direction
=1
5889 ac_cv_c_stack_direction
=-1
5891 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5892 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5897 $as_echo "$ac_cv_c_stack_direction" >&6; }
5898 cat >>confdefs.h
<<_ACEOF
5899 #define STACK_DIRECTION $ac_cv_c_stack_direction
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5908 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5909 if test "${am_cv_langinfo_codeset+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 #include <langinfo.h>
5918 char* cs = nl_langinfo(CODESET);
5923 if ac_fn_c_try_link
"$LINENO"; then :
5924 am_cv_langinfo_codeset
=yes
5926 am_cv_langinfo_codeset
=no
5928 rm -f core conftest.err conftest.
$ac_objext \
5929 conftest
$ac_exeext conftest.
$ac_ext
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5933 $as_echo "$am_cv_langinfo_codeset" >&6; }
5934 if test $am_cv_langinfo_codeset = yes; then
5936 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5941 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/syscall.h sys
/un.h sys
/wait.h thread_db.h
wait.h
5943 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5944 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5945 eval as_val
=\$
$as_ac_Header
5946 if test "x$as_val" = x
""yes; then :
5947 cat >>confdefs.h
<<_ACEOF
5948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5956 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
5958 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5959 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5960 eval as_val
=\$
$as_ac_var
5961 if test "x$as_val" = x
""yes; then :
5962 cat >>confdefs.h
<<_ACEOF
5963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5970 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5971 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
5977 cat >>confdefs.h
<<_ACEOF
5978 #define HAVE_DECL_STRERROR $ac_have_decl
5980 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5981 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
5987 cat >>confdefs.h
<<_ACEOF
5988 #define HAVE_DECL_STRSTR $ac_have_decl
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
5993 $as_echo_n "checking for sigsetjmp... " >&6; }
5994 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6005 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6010 if ac_fn_c_try_compile
"$LINENO"; then :
6011 gdb_cv_func_sigsetjmp
=yes
6013 gdb_cv_func_sigsetjmp
=no
6015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
6018 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
6019 if test $gdb_cv_func_sigsetjmp = yes; then
6021 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
6026 # Check the return and argument types of ptrace.
6030 for ac_header
in sys
/ptrace.h ptrace.h
6032 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6033 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6034 eval as_val
=\$
$as_ac_Header
6035 if test "x$as_val" = x
""yes; then :
6036 cat >>confdefs.h
<<_ACEOF
6037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6045 # Needs to be tested in C++ mode, to detect whether we need to cast
6046 # the first argument to enum __ptrace_request.
6047 if test "$enable_build_with_cxx" = "yes"; then
6049 ac_cpp
='$CXXCPP $CPPFLAGS'
6050 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6051 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6052 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6056 gdb_ptrace_headers
='
6057 #include <sys/types.h>
6058 #if HAVE_SYS_PTRACE_H
6059 # include <sys/ptrace.h>
6062 # include <unistd.h>
6065 # There is no point in checking if we don't have a prototype.
6066 ac_fn_cxx_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
6068 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
6074 cat >>confdefs.h
<<_ACEOF
6075 #define HAVE_DECL_PTRACE $ac_have_decl
6077 if test $ac_have_decl = 1; then :
6081 : ${gdb_cv_func_ptrace_ret='int'}
6082 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6086 # Check return type. Varargs (used on GNU/Linux) conflict with the
6087 # empty argument list, so check for that explicitly.
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
6089 $as_echo_n "checking return type of ptrace... " >&6; }
6090 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6099 extern long ptrace (enum __ptrace_request, ...);
6104 if ac_fn_cxx_try_compile
"$LINENO"; then :
6105 gdb_cv_func_ptrace_ret
='long'
6107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6113 extern int ptrace ();
6118 if ac_fn_cxx_try_compile
"$LINENO"; then :
6119 gdb_cv_func_ptrace_ret
='int'
6121 gdb_cv_func_ptrace_ret
='long'
6123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
6128 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
6130 cat >>confdefs.h
<<_ACEOF
6131 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
6134 # Check argument types.
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
6136 $as_echo_n "checking types of arguments for ptrace... " >&6; }
6137 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
6138 $as_echo_n "(cached) " >&6
6141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6147 extern long ptrace (enum __ptrace_request, ...);
6152 if ac_fn_cxx_try_compile
"$LINENO"; then :
6153 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
6156 for gdb_arg1
in 'int' 'long'; do
6157 for gdb_arg2
in 'pid_t' 'int' 'long'; do
6158 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
6159 for gdb_arg4
in 'int' 'long' 'void *'; do
6160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6167 extern $gdb_cv_func_ptrace_ret
6168 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
6174 if ac_fn_cxx_try_compile
"$LINENO"; then :
6175 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
6178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6179 for gdb_arg5
in 'int *' 'int' 'long'; do
6180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6187 extern $gdb_cv_func_ptrace_ret
6188 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
6194 if ac_fn_cxx_try_compile
"$LINENO"; then :
6196 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
6199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6205 # Provide a safe default value.
6206 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
6212 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
6213 ac_save_IFS
=$IFS; IFS
=','
6214 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
6218 cat >>confdefs.h
<<_ACEOF
6219 #define PTRACE_TYPE_ARG1 $1
6223 cat >>confdefs.h
<<_ACEOF
6224 #define PTRACE_TYPE_ARG3 $3
6228 cat >>confdefs.h
<<_ACEOF
6229 #define PTRACE_TYPE_ARG4 $4
6232 if test -n "$5"; then
6234 cat >>confdefs.h
<<_ACEOF
6235 #define PTRACE_TYPE_ARG5 $5
6240 if test "$enable_build_with_cxx" = "yes"; then
6242 ac_cpp
='$CPP $CPPFLAGS'
6243 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6255 # Check whether --with-ust was given.
6256 if test "${with_ust+set}" = set; then :
6261 # Check whether --with-ust_include was given.
6262 if test "${with_ust_include+set}" = set; then :
6263 withval
=$with_ust_include;
6267 # Check whether --with-ust_lib was given.
6268 if test "${with_ust_lib+set}" = set; then :
6269 withval
=$with_ust_lib;
6283 ustlibs
="-L$with_ust/lib -lust"
6284 ustinc
="-I$with_ust/include "
6287 if test "x$with_ust_include" != x
; then
6288 ustinc
="-I$with_ust_include "
6290 if test "x$with_ust_lib" != x
; then
6291 ustlibs
="-L$with_ust_lib -lust"
6294 if test "x$with_ust" != "xno"; then
6295 saved_CFLAGS
="$CFLAGS"
6296 CFLAGS
="$CFLAGS $ustinc"
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
6298 $as_echo_n "checking for ust... " >&6; }
6299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6302 #define CONFIG_UST_GDB_INTEGRATION
6303 #include <ust/ust.h>
6313 if ac_fn_c_try_compile
"$LINENO"; then :
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6315 $as_echo "yes" >&6; };
6316 $as_echo "#define HAVE_UST 1" >>confdefs.h
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
6322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6323 CFLAGS
="$saved_CFLAGS"
6326 # Flags needed for UST
6331 # Check whether --enable-werror was given.
6332 if test "${enable_werror+set}" = set; then :
6333 enableval
=$enable_werror; case "${enableval}" in
6334 yes | y
) ERROR_ON_WARNING
="yes" ;;
6335 no | n
) ERROR_ON_WARNING
="no" ;;
6336 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
6341 # Enable -Werror by default when using gcc. Turn it off for releases.
6342 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
6343 ERROR_ON_WARNING
=yes
6347 if test "${ERROR_ON_WARNING}" = yes ; then
6348 WERROR_CFLAGS
="-Werror"
6351 # These options work in either C or C++ modes.
6352 build_warnings
="-Wall -Wpointer-arith \
6353 -Wno-unused -Wunused-value -Wunused-function \
6354 -Wno-switch -Wno-char-subscripts \
6357 # Now add in C and C++ specific options, depending on mode.
6358 if test "$enable_build_with_cxx" = "yes"; then
6359 build_warnings
="$build_warnings -Wno-sign-compare -Wno-write-strings \
6362 build_warnings
="$build_warnings -Wpointer-sign -Wmissing-prototypes \
6363 -Wdeclaration-after-statement -Wmissing-parameter-type \
6364 -Wold-style-declaration -Wold-style-definition"
6367 # Enable -Wno-format by default when using gcc on mingw since many
6368 # GCC versions complain about %I64.
6370 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
6371 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
6374 # Check whether --enable-build-warnings was given.
6375 if test "${enable_build_warnings+set}" = set; then :
6376 enableval
=$enable_build_warnings; case "${enableval}" in
6378 no
) build_warnings
="-w";;
6379 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6380 build_warnings
="${build_warnings} ${t}";;
6381 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6382 build_warnings
="${t} ${build_warnings}";;
6383 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6385 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6386 echo "Setting compiler warning flags = $build_warnings" 6>&1
6389 # Check whether --enable-gdb-build-warnings was given.
6390 if test "${enable_gdb_build_warnings+set}" = set; then :
6391 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
6393 no
) build_warnings
="-w";;
6394 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6395 build_warnings
="${build_warnings} ${t}";;
6396 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6397 build_warnings
="${t} ${build_warnings}";;
6398 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6400 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6401 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6405 # The set of warnings supported by a C++ compiler is not the same as
6406 # of the C compiler.
6407 if test "$enable_build_with_cxx" = "yes"; then
6409 ac_cpp
='$CXXCPP $CPPFLAGS'
6410 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6411 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6412 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6417 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
6420 $as_echo_n "checking compiler warning flags... " >&6; }
6421 # Separate out the -Werror flag as some files just cannot be
6422 # compiled with it enabled.
6423 for w
in ${build_warnings}; do
6424 # GCC does not complain about -Wno-unknown-warning. Invert
6425 # and test -Wunknown-warning instead.
6428 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
6434 -Werr*) WERROR_CFLAGS
=-Werror ;;
6436 # Check whether GCC accepts it.
6437 saved_CFLAGS
="$CFLAGS"
6438 CFLAGS
="$CFLAGS $wtest"
6439 saved_CXXFLAGS
="$CXXFLAGS"
6440 CXXFLAGS
="$CXXFLAGS $wtest"
6441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6452 if ac_fn_cxx_try_compile
"$LINENO"; then :
6453 WARN_CFLAGS
="${WARN_CFLAGS} $w"
6455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6456 CFLAGS
="$saved_CFLAGS"
6457 CXXFLAGS
="$saved_CXXFLAGS"
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
6461 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
6466 if test "$enable_build_with_cxx" = "yes"; then
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6475 case " $WARN_CFLAGS " in
6476 *" -Wmissing-prototypes "*)
6477 WARN_CFLAGS="$WARN_CFLAGS -Wno-missing-prototypes"
6483 for ac_func in dladdr
6485 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
6486 if test "x
$ac_cv_func_dladdr" = x""yes; then :
6487 cat >>confdefs.h <<_ACEOF
6488 #define HAVE_DLADDR 1
6497 # Check for presence and size of long long.
6498 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
6499 if test "x
$ac_cv_type_long_long" = x""yes; then :
6501 cat >>confdefs.h <<_ACEOF
6502 #define HAVE_LONG_LONG 1
6505 # The cast to long int works around a bug in the HP C Compiler
6506 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6507 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6508 # This bug is HP SR number 8606223364.
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
6510 $as_echo_n "checking size of long long...
" >&6; }
6511 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6512 $as_echo_n "(cached
) " >&6
6514 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
6517 if test "$ac_cv_type_long_long" = yes; then
6518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
6519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6520 { as_fn_set_status 77
6521 as_fn_error "cannot compute sizeof (long long)
6522 See \`config.log' for more details.
" "$LINENO" 5; }; }
6524 ac_cv_sizeof_long_long=0
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
6530 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6534 cat >>confdefs.h <<_ACEOF
6535 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6542 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "ac_cv_have_decl_basename_char_p_
" "$ac_includes_default"
6543 if test "x
$ac_cv_have_decl_basename_char_p_" = x""yes; then :
6549 cat >>confdefs.h <<_ACEOF
6550 #define HAVE_DECL_BASENAME $ac_have_decl
6552 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
6553 if test "x
$ac_cv_have_decl_ffs" = x""yes; then :
6559 cat >>confdefs.h <<_ACEOF
6560 #define HAVE_DECL_FFS $ac_have_decl
6562 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
6563 if test "x
$ac_cv_have_decl_asprintf" = x""yes; then :
6569 cat >>confdefs.h <<_ACEOF
6570 #define HAVE_DECL_ASPRINTF $ac_have_decl
6572 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
6573 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
6579 cat >>confdefs.h <<_ACEOF
6580 #define HAVE_DECL_VASPRINTF $ac_have_decl
6582 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
6583 if test "x
$ac_cv_have_decl_snprintf" = x""yes; then :
6589 cat >>confdefs.h <<_ACEOF
6590 #define HAVE_DECL_SNPRINTF $ac_have_decl
6592 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
6593 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
6599 cat >>confdefs.h <<_ACEOF
6600 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6603 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
6604 if test "x
$ac_cv_have_decl_strtol" = x""yes; then :
6610 cat >>confdefs.h <<_ACEOF
6611 #define HAVE_DECL_STRTOL $ac_have_decl
6613 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
6614 if test "x
$ac_cv_have_decl_strtoul" = x""yes; then :
6620 cat >>confdefs.h <<_ACEOF
6621 #define HAVE_DECL_STRTOUL $ac_have_decl
6623 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
6624 if test "x
$ac_cv_have_decl_strtoll" = x""yes; then :
6630 cat >>confdefs.h <<_ACEOF
6631 #define HAVE_DECL_STRTOLL $ac_have_decl
6633 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
6634 if test "x
$ac_cv_have_decl_strtoull" = x""yes; then :
6640 cat >>confdefs.h <<_ACEOF
6641 #define HAVE_DECL_STRTOULL $ac_have_decl
6644 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
6645 if test "x
$ac_cv_have_decl_strverscmp" = x""yes; then :
6651 cat >>confdefs.h <<_ACEOF
6652 #define HAVE_DECL_STRVERSCMP $ac_have_decl
6657 ac_fn_c_check_decl "$LINENO" "strerror
" "ac_cv_have_decl_strerror
" "$ac_includes_default"
6658 if test "x
$ac_cv_have_decl_strerror" = x""yes; then :
6664 cat >>confdefs.h <<_ACEOF
6665 #define HAVE_DECL_STRERROR $ac_have_decl
6667 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
6668 if test "x
$ac_cv_have_decl_perror" = x""yes; then :
6674 cat >>confdefs.h <<_ACEOF
6675 #define HAVE_DECL_PERROR $ac_have_decl
6677 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
6678 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
6684 cat >>confdefs.h <<_ACEOF
6685 #define HAVE_DECL_VASPRINTF $ac_have_decl
6687 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
6688 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
6694 cat >>confdefs.h <<_ACEOF
6695 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6699 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
6700 if test "x
$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6702 cat >>confdefs.h <<_ACEOF
6703 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6708 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
6709 if test "x
$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6711 cat >>confdefs.h <<_ACEOF
6712 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6719 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
6720 #include <sys/socket.h>
6723 if test "x
$ac_cv_type_socklen_t" = x""yes; then :
6725 cat >>confdefs.h <<_ACEOF
6726 #define HAVE_SOCKLEN_T 1
6735 # Starting with NDK version 9, <elf.h> actually includes definitions
6736 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
6737 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
6738 # leading to conflicts with the defintions from <linux/elf.h>.
6739 # This makes it impossible for us to include both <elf.h> and
6740 # <linux/elf.h>, which means that, in practice, we do not have
6741 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
6742 # Therefore, do not try to auto-detect availability, as it would
6743 # get it wrong on this platform.
6746 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
6749 if test "x
$ac_cv_type_Elf32_auxv_t" = x""yes; then :
6751 cat >>confdefs.h <<_ACEOF
6752 #define HAVE_ELF32_AUXV_T 1
6757 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
6760 if test "x
$ac_cv_type_Elf64_auxv_t" = x""yes; then :
6762 cat >>confdefs.h <<_ACEOF
6763 #define HAVE_ELF64_AUXV_T 1
6773 # Check whether --with-pkgversion was given.
6774 if test "${with_pkgversion+set}" = set; then :
6775 withval=$with_pkgversion; case "$withval" in
6776 yes) as_fn_error "package version not specified
" "$LINENO" 5 ;;
6778 *) PKGVERSION="($withval) " ;;
6789 # Check whether --with-bugurl was given.
6790 if test "${with_bugurl+set}" = set; then :
6791 withval=$with_bugurl; case "$withval" in
6792 yes) as_fn_error "bug URL not specified
" "$LINENO" 5 ;;
6795 *) BUGURL="$withval"
6799 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
6809 REPORT_BUGS_TO="<$BUGURL>"
6810 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6817 cat >>confdefs.h <<_ACEOF
6818 #define PKGVERSION "$PKGVERSION"
6822 cat >>confdefs.h <<_ACEOF
6823 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6827 # Check for various supplementary target information (beyond the
6828 # triplet) which might affect the choices in configure.srv.
6830 i[34567]86-*-linux*)
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
6832 $as_echo_n "checking
if building
for x86-64...
" >&6; }
6833 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
6834 $as_echo_n "(cached
) " >&6
6836 save_CPPFLAGS="$CPPFLAGS"
6837 CPPFLAGS="$CPPFLAGS $CFLAGS"
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6846 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6847 $EGREP "got it
" >/dev/null 2>&1; then :
6848 gdb_cv_i386_is_x86_64=yes
6850 gdb_cv_i386_is_x86_64=no
6854 CPPFLAGS="$save_CPPFLAGS"
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
6857 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
6861 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
6862 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
6863 $as_echo_n "(cached
) " >&6
6865 save_CPPFLAGS="$CPPFLAGS"
6866 CPPFLAGS="$CPPFLAGS $CFLAGS"
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6870 #ifdef __mcoldfire__
6875 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6876 $EGREP "got it
" >/dev/null 2>&1; then :
6877 gdb_cv_m68k_is_coldfire=yes
6879 gdb_cv_m68k_is_coldfire=no
6883 CPPFLAGS="$save_CPPFLAGS"
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
6886 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
6890 . ${srcdir}/configure.srv
6892 # Add in the common host objects.
6893 . ${srcdir}/../common/common.host
6894 srv_host_obs="$common_host_obs"
6896 if test "${srv_mingwce}" = "yes"; then
6898 elif test "${srv_mingw}" = "yes"; then
6899 LIBS="$LIBS -lws2_32"
6900 elif test "${srv_qnx}" = "yes"; then
6901 LIBS="$LIBS -lsocket"
6902 elif test "${srv_lynxos}" = "yes"; then
6903 LIBS="$LIBS -lnetinet"
6906 if test "${srv_mingw}" = "yes"; then
6908 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6912 if test "${srv_linux_usrregs}" = "yes"; then
6914 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
6918 if test "${srv_linux_regsets}" = "yes"; then
6920 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
6924 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
6925 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 #include <sys/ptrace.h>
6939 if ac_fn_c_try_compile
"$LINENO"; then :
6940 gdbsrv_cv_have_ptrace_getregs
=yes
6942 gdbsrv_cv_have_ptrace_getregs
=no
6944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
6948 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
6949 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
6951 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
6956 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
6957 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
6958 $as_echo_n "(cached) " >&6
6960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962 #include <sys/ptrace.h>
6971 if ac_fn_c_try_compile
"$LINENO"; then :
6972 gdbsrv_cv_have_ptrace_getfpxregs
=yes
6974 gdbsrv_cv_have_ptrace_getfpxregs
=no
6976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
6980 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
6981 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
6983 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
6988 if test "${srv_linux_btrace}" = "yes"; then
6990 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
6994 if test "$ac_cv_header_sys_procfs_h" = yes; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
6996 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
6997 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
6998 $as_echo_n "(cached) " >&6
7000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7004 /* Needed for new procfs interface on sparc-solaris. */
7005 #define _STRUCTURED_PROC 1
7006 #include <sys/procfs.h>
7015 if ac_fn_c_try_compile
"$LINENO"; then :
7016 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
7018 bfd_cv_have_sys_procfs_type_lwpid_t
=no
7021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7024 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
7026 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
7030 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
7033 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
7034 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
7035 $as_echo_n "(cached) " >&6
7037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7041 /* Needed for new procfs interface on sparc-solaris. */
7042 #define _STRUCTURED_PROC 1
7043 #include <sys/procfs.h>
7052 if ac_fn_c_try_compile
"$LINENO"; then :
7053 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
7055 bfd_cv_have_sys_procfs_type_psaddr_t
=no
7058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7061 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7063 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
7067 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
7070 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
7071 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
7072 $as_echo_n "(cached) " >&6
7074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7078 /* Needed for new procfs interface on sparc-solaris. */
7079 #define _STRUCTURED_PROC 1
7080 #include <sys/procfs.h>
7089 if ac_fn_c_try_compile
"$LINENO"; then :
7090 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
7092 bfd_cv_have_sys_procfs_type_prgregset_t
=no
7095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7098 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
7100 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
7104 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
7107 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
7108 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
7109 $as_echo_n "(cached) " >&6
7111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7115 /* Needed for new procfs interface on sparc-solaris. */
7116 #define _STRUCTURED_PROC 1
7117 #include <sys/procfs.h>
7126 if ac_fn_c_try_compile
"$LINENO"; then :
7127 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
7129 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
7132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7135 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7137 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
7141 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
7144 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
7145 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
7146 $as_echo_n "(cached) " >&6
7148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7152 /* Needed for new procfs interface on sparc-solaris. */
7153 #define _STRUCTURED_PROC 1
7154 #include <sys/procfs.h>
7163 if ac_fn_c_try_compile
"$LINENO"; then :
7164 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
7166 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
7169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7172 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
7174 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
7178 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
7182 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
7184 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
7185 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
7186 $as_echo_n "(cached) " >&6
7188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7191 #include <thread_db.h>
7200 if ac_fn_c_try_compile
"$LINENO"; then :
7201 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
7203 gdbserver_cv_have_thread_db_type_lwpid_t
=no
7206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7209 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
7211 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
7215 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
7219 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
7221 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
7222 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
7223 $as_echo_n "(cached) " >&6
7225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7228 #include <thread_db.h>
7237 if ac_fn_c_try_compile
"$LINENO"; then :
7238 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
7240 gdbserver_cv_have_thread_db_type_psaddr_t
=no
7243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7246 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
7248 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
7252 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7258 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7259 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7260 $as_echo_n "(cached) " >&6
7262 ac_check_lib_save_LIBS
=$LIBS
7264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7267 /* Override any GCC internal prototype to avoid an error.
7268 Use char because int might match the return type of a GCC
7269 builtin and then its argument prototype would still apply. */
7282 if ac_fn_c_try_link
"$LINENO"; then :
7283 ac_cv_lib_dl_dlopen
=yes
7285 ac_cv_lib_dl_dlopen
=no
7287 rm -f core conftest.err conftest.
$ac_objext \
7288 conftest
$ac_exeext conftest.
$ac_ext
7289 LIBS
=$ac_check_lib_save_LIBS
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7292 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7293 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
7294 cat >>confdefs.h
<<_ACEOF
7295 #define HAVE_LIBDL 1
7304 srv_thread_depfiles
=
7307 if test "$srv_linux_thread_db" = "yes"; then
7308 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
7311 $as_echo_n "checking for the dynamic export flag... " >&6; }
7312 old_LDFLAGS
="$LDFLAGS"
7313 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
7315 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
7316 LDFLAGS
="$LDFLAGS $RDYNAMIC"
7317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7328 if ac_fn_c_try_link
"$LINENO"; then :
7329 found
="-Wl,--dynamic-list"
7330 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
7332 RDYNAMIC
="-rdynamic"
7333 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
7334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7345 if ac_fn_c_try_link
"$LINENO"; then :
7351 rm -f core conftest.err conftest.
$ac_objext \
7352 conftest
$ac_exeext conftest.
$ac_ext
7354 rm -f core conftest.err conftest.
$ac_objext \
7355 conftest
$ac_exeext conftest.
$ac_ext
7357 LDFLAGS
="$old_LDFLAGS"
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
7359 $as_echo "$found" >&6; }
7361 srv_libs
="-lthread_db"
7364 srv_thread_depfiles
="thread-db.o proc-service.o"
7366 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
7369 $as_echo_n "checking for TD_VERSION... " >&6; }
7370 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
7371 $as_echo_n "(cached) " >&6
7373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7375 #include <thread_db.h>
7384 if ac_fn_c_try_compile
"$LINENO"; then :
7385 gdbsrv_cv_have_td_version
=yes
7387 gdbsrv_cv_have_td_version
=no
7389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
7392 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
7393 if test $gdbsrv_cv_have_td_version = yes; then
7395 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
7401 # Check whether --with-libthread-db was given.
7402 if test "${with_libthread_db+set}" = set; then :
7403 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
7404 srv_libs
="$srv_libthread_db_path"
7409 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
7411 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
7415 if test "$srv_xmlfiles" != ""; then
7416 srv_xmlbuiltin
="xml-builtin.o"
7418 $as_echo "#define USE_XML 1" >>confdefs.h
7421 tmp_xmlfiles
=$srv_xmlfiles
7423 for f
in $tmp_xmlfiles; do
7424 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
7428 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs"
7429 GDBSERVER_LIBS
="$srv_libs"
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
7432 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
7433 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
7434 $as_echo_n "(cached) " >&6
7437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7443 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
7448 if ac_fn_c_try_link
"$LINENO"; then :
7449 gdbsrv_cv_have_sync_builtins
=yes
7451 gdbsrv_cv_have_sync_builtins
=no
7453 rm -f core conftest.err conftest.
$ac_objext \
7454 conftest
$ac_exeext conftest.
$ac_ext
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
7457 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
7458 if test $gdbsrv_cv_have_sync_builtins = yes; then
7460 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
7464 saved_cflags
="$CFLAGS"
7465 CFLAGS
="$CFLAGS -fvisibility=hidden"
7466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7477 if ac_fn_c_try_compile
"$LINENO"; then :
7478 gdbsrv_cv_have_visibility_hidden
=yes
7480 gdbsrv_cv_have_visibility_hidden
=no
7482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7483 CFLAGS
="$saved_cflags"
7485 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7487 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
7493 cat >>confdefs.h
<<_ACEOF
7494 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7498 if test "$cross_compiling" = yes; then :
7499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7501 #include <sys/personality.h>
7506 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7507 # define ADDR_NO_RANDOMIZE 0x0040000
7509 /* Test the flag could be set and stays set. */
7510 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7511 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7517 if ac_fn_c_try_link
"$LINENO"; then :
7518 gdbsrv_cv_have_personality
=true
7520 gdbsrv_cv_have_personality
=false
7522 rm -f core conftest.err conftest.
$ac_objext \
7523 conftest
$ac_exeext conftest.
$ac_ext
7525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7527 #include <sys/personality.h>
7532 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7533 # define ADDR_NO_RANDOMIZE 0x0040000
7535 /* Test the flag could be set and stays set. */
7536 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7537 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7543 if ac_fn_c_try_run
"$LINENO"; then :
7544 gdbsrv_cv_have_personality
=true
7546 gdbsrv_cv_have_personality
=false
7548 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7549 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7552 if $gdbsrv_cv_have_personality
7555 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
7563 # check whether to enable the inprocess agent
7564 if test "$ipa_obj" != "" \
7565 -a "$gdbsrv_cv_have_sync_builtins" = yes \
7566 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
7572 # Check whether --enable-inprocess-agent was given.
7573 if test "${enable_inprocess_agent+set}" = set; then :
7574 enableval
=$enable_inprocess_agent; case "$enableval" in
7575 yes) want_ipa
=true
;;
7576 no
) want_ipa
=false
;;
7577 *) as_fn_error
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
7586 IPA_DEPFILES
="$ipa_obj"
7587 extra_libraries
="$extra_libraries libinproctrace.so"
7589 as_fn_error
"inprocess agent not supported for this target" "$LINENO" 5
7600 GNULIB
=build-gnulib-gdbserver
/import
7603 if test x
"$STDINT_H" != x
; then
7604 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
7608 ac_config_files
="$ac_config_files Makefile"
7610 ac_config_commands
="$ac_config_commands default"
7612 cat >confcache
<<\_ACEOF
7613 # This file is a shell script that caches the results of configure
7614 # tests run on this system so they can be shared between configure
7615 # scripts and configure runs, see configure's option --config-cache.
7616 # It is not useful on other systems. If it contains results you don't
7617 # want to keep, you may remove or edit it.
7619 # config.status only pays attention to the cache file if you give it
7620 # the --recheck option to rerun configure.
7622 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7623 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7628 # The following way of writing the cache mishandles newlines in values,
7629 # but we know of no workaround that is simple, portable, and efficient.
7630 # So, we kill variables containing newlines.
7631 # Ultrix sh set writes to stderr and can't be redirected directly,
7632 # and sets the high bit in the cache file unless we assign to the vars.
7634 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7635 eval ac_val
=\$
$ac_var
7639 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7640 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7643 _ | IFS | as_nl
) ;; #(
7644 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7645 *) { eval $ac_var=; unset $ac_var;} ;;
7651 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7652 *${as_nl}ac_space
=\
*)
7653 # `set' does not quote correctly, so add quotes: double-quote
7654 # substitution turns \\\\ into \\, and sed turns \\ into \.
7657 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7660 # `set' quotes correctly as required by POSIX, so do not add quotes.
7661 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7670 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7672 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7674 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7675 if test -w "$cache_file"; then
7676 test "x$cache_file" != "x/dev/null" &&
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7678 $as_echo "$as_me: updating cache $cache_file" >&6;}
7679 cat confcache
>$cache_file
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7682 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7687 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7688 # Let make expand exec_prefix.
7689 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7691 DEFS
=-DHAVE_CONFIG_H
7695 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7696 # 1. Remove the extension, and $U if already installed.
7697 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7698 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7699 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7700 # will be set to the directory where LIBOBJS objects are built.
7701 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7702 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7706 LTLIBOBJS
=$ac_ltlibobjs
7709 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7710 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
7711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7713 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
7714 as_fn_error
"conditional \"GMAKE\" was never defined.
7715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7718 : ${CONFIG_STATUS=./config.status}
7720 ac_clean_files_save
=$ac_clean_files
7721 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7723 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7725 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7727 # Generated by $as_me.
7728 # Run this file to recreate the current configuration.
7729 # Compiler output produced by configure, useful for debugging
7730 # configure, is in config.log if it exists.
7736 SHELL=\${CONFIG_SHELL-$SHELL}
7739 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7740 ## -------------------- ##
7741 ## M4sh Initialization. ##
7742 ## -------------------- ##
7744 # Be more Bourne compatible
7745 DUALCASE
=1; export DUALCASE
# for MKS sh
7746 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7749 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7750 # is contrary to our usage. Disable this feature.
7751 alias -g '${1+"$@"}'='"$@"'
7752 setopt NO_GLOB_SUBST
7754 case `(set -o) 2>/dev/null` in #(
7766 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7767 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7768 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7769 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7770 # Prefer a ksh shell builtin over an external printf program on Solaris,
7771 # but without wasting forks for bash or zsh.
7772 if test -z "$BASH_VERSION$ZSH_VERSION" \
7773 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7774 as_echo='print
-r --'
7775 as_echo_n='print
-rn --'
7776 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7777 as_echo='printf %s
\n'
7778 as_echo_n='printf %s
'
7780 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7781 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7782 as_echo_n='/usr
/ucb
/echo -n'
7784 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7785 as_echo_n_body='eval
7789 expr "X$arg" : "X\\(.*\\)$as_nl";
7790 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7792 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7794 export as_echo_n_body
7795 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7798 as_echo='sh
-c $as_echo_body as_echo
'
7801 # The user is always right.
7802 if test "${PATH_SEPARATOR+set}" != set; then
7804 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7805 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7812 # We need space, tab and new line, in precisely that order. Quoting is
7813 # there to prevent editors from complaining about space-tab.
7814 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7815 # splitting by setting IFS to empty value.)
7818 # Find who we are. Look in the path if we contain no directory separator.
7820 *[\\/]* ) as_myself=$0 ;;
7821 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 test -z "$as_dir" && as_dir=.
7826 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7832 # We did not find ourselves, most probably we were run as `sh COMMAND'
7833 # in which case we are not to be found in the path.
7834 if test "x$as_myself" = x
; then
7837 if test ! -f "$as_myself"; then
7838 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7842 # Unset variables that we do not need and which cause bugs (e.g. in
7843 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7844 # suppresses any "Segmentation fault" message there. '((' could
7845 # trigger a bug in pdksh 5.2.14.
7846 for as_var
in BASH_ENV ENV MAIL MAILPATH
7847 do eval test x\
${$as_var+set} = xset \
7848 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7861 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7864 # as_fn_error ERROR [LINENO LOG_FD]
7865 # ---------------------------------
7866 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7867 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7868 # script with status $?, using 1 if that was 0.
7871 as_status
=$?
; test $as_status -eq 0 && as_status
=1
7873 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7874 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7876 $as_echo "$as_me: error: $1" >&2
7877 as_fn_exit
$as_status
7881 # as_fn_set_status STATUS
7882 # -----------------------
7883 # Set $? to STATUS, without forking.
7887 } # as_fn_set_status
7891 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7901 # Portably unset VAR.
7904 { eval $1=; unset $1;}
7906 as_unset
=as_fn_unset
7907 # as_fn_append VAR VALUE
7908 # ----------------------
7909 # Append the text in VALUE to the end of the definition contained in VAR. Take
7910 # advantage of any shell optimizations that allow amortized linear growth over
7911 # repeated appends, instead of the typical quadratic growth present in naive
7913 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7914 eval 'as_fn_append ()
7925 # as_fn_arith ARG...
7926 # ------------------
7927 # Perform arithmetic evaluation on the ARGs, and store the result in the
7928 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7929 # must be portable across $(()) and expr.
7930 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7931 eval 'as_fn_arith ()
7938 as_val
=`expr "$@" || test $? -eq 1`
7943 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7944 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7950 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7951 as_basename
=basename
7956 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7962 as_me
=`$as_basename -- "$0" ||
7963 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7964 X"$0" : 'X\(//\)$' \| \
7965 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7967 sed '/^.*\/\([^/][^/]*\)\/*$/{
7981 # Avoid depending upon Character Ranges.
7982 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7983 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7984 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7985 as_cr_digits
='0123456789'
7986 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7988 ECHO_C
= ECHO_N
= ECHO_T
=
7989 case `echo -n x` in #(((((
7991 case `echo 'xy\c'` in
7992 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7994 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8001 rm -f conf$$ conf$$.exe conf$$.
file
8002 if test -d conf$$.dir
; then
8003 rm -f conf$$.dir
/conf$$.
file
8006 mkdir conf$$.dir
2>/dev
/null
8008 if (echo >conf$$.
file) 2>/dev
/null
; then
8009 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8011 # ... but there are two gotchas:
8012 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8013 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8014 # In both cases, we have to default to `cp -p'.
8015 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8017 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8025 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8026 rmdir conf$$.dir
2>/dev
/null
8031 # Create "$as_dir" as a directory, including parents if necessary.
8036 -*) as_dir
=.
/$as_dir;;
8038 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8042 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8043 *) as_qdir
=$as_dir;;
8045 as_dirs
="'$as_qdir' $as_dirs"
8046 as_dir
=`$as_dirname -- "$as_dir" ||
8047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8048 X"$as_dir" : 'X\(//\)[^/]' \| \
8049 X"$as_dir" : 'X\(//\)$' \| \
8050 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8051 $as_echo X"$as_dir" |
8052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8069 test -d "$as_dir" && break
8071 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8072 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
8076 if mkdir
-p .
2>/dev
/null
; then
8077 as_mkdir_p
='mkdir -p "$as_dir"'
8079 test -d .
/-p && rmdir .
/-p
8083 if test -x / >/dev
/null
2>&1; then
8086 if ls -dL / >/dev
/null
2>&1; then
8093 if test -d "$1"; then
8099 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8100 ???[sx]*):;;*)false;;esac;fi
8104 as_executable_p
=$as_test_x
8106 # Sed expression to map a string onto a valid CPP name.
8107 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8109 # Sed expression to map a string onto a valid variable name.
8110 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8114 ## ----------------------------------- ##
8115 ## Main body of $CONFIG_STATUS script. ##
8116 ## ----------------------------------- ##
8118 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8121 # Save the log message, to keep $0 and so on meaningful, and to
8122 # report actual input values of CONFIG_FILES etc. instead of their
8123 # values after options handling.
8125 This file was extended by $as_me, which was
8126 generated by GNU Autoconf 2.64. Invocation command line was
8128 CONFIG_FILES = $CONFIG_FILES
8129 CONFIG_HEADERS = $CONFIG_HEADERS
8130 CONFIG_LINKS = $CONFIG_LINKS
8131 CONFIG_COMMANDS = $CONFIG_COMMANDS
8134 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8139 case $ac_config_files in *"
8140 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8143 case $ac_config_headers in *"
8144 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8149 # Files that config.status was made for.
8150 config_files="$ac_config_files"
8151 config_headers="$ac_config_headers"
8152 config_commands="$ac_config_commands"
8156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8158 \`$as_me' instantiates files and other configuration actions
8159 from templates according to the current configuration. Unless the files
8160 and actions are specified as TAGs, all are instantiated by default.
8162 Usage: $0 [OPTION]... [TAG]...
8164 -h, --help print this help, then exit
8165 -V, --version print version number and configuration settings, then exit
8166 -q, --quiet, --silent
8167 do not print progress messages
8168 -d, --debug don't remove temporary files
8169 --recheck update $as_me by reconfiguring in the same conditions
8170 --file=FILE[:TEMPLATE]
8171 instantiate the configuration file FILE
8172 --header=FILE[:TEMPLATE]
8173 instantiate the configuration header FILE
8175 Configuration files:
8178 Configuration headers:
8181 Configuration commands:
8184 Report bugs to the package provider."
8187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8190 configured by $0, generated by GNU Autoconf 2.64,
8191 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8193 Copyright (C) 2009 Free Software Foundation, Inc.
8194 This config.status script is free software; the Free Software Foundation
8195 gives unlimited permission to copy, distribute and modify it."
8200 test -n "\$AWK" || AWK=awk
8203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8204 # The default lists apply if the user does not specify any file.
8210 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8211 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8222 # Handling of the options.
8223 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8225 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8226 $as_echo "$ac_cs_version"; exit ;;
8227 --debug |
--debu |
--deb |
--de |
--d |
-d )
8229 --file |
--fil |
--fi |
--f )
8232 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8234 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8235 ac_need_defaults
=false
;;
8236 --header |
--heade |
--head |
--hea )
8239 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8241 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8242 ac_need_defaults
=false
;;
8244 # Conflict between --help and --header
8245 as_fn_error
"ambiguous option: \`$1'
8246 Try \`$0 --help' for more information.";;
8247 --help |
--hel |
-h )
8248 $as_echo "$ac_cs_usage"; exit ;;
8249 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8250 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8254 -*) as_fn_error
"unrecognized option: \`$1'
8255 Try \`$0 --help' for more information." ;;
8257 *) as_fn_append ac_config_targets
" $1"
8258 ac_need_defaults
=false
;;
8264 ac_configure_extra_args
=
8266 if $ac_cs_silent; then
8268 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8273 if \$ac_cs_recheck; then
8274 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8276 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8277 CONFIG_SHELL='$SHELL'
8283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8287 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8288 ## Running $as_me. ##
8294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8298 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8304 # Handling of arguments.
8305 for ac_config_target
in $ac_config_targets
8307 case $ac_config_target in
8308 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8309 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
8310 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8311 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8313 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8318 # If the user did not use the arguments to specify the items to instantiate,
8319 # then the envvar interface is used. Set only those that are not.
8320 # We use the long form for the default assignment because of an extremely
8321 # bizarre bug on SunOS 4.1.3.
8322 if $ac_need_defaults; then
8323 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8324 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8325 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8328 # Have a temporary directory for convenience. Make it in the build tree
8329 # simply because there is no reason against having it here, and in addition,
8330 # creating and moving files from /tmp can sometimes cause problems.
8331 # Hook for its removal unless debugging.
8332 # Note that there is a small window in which the directory will not be cleaned:
8333 # after its creation but before its name has been assigned to `$tmp'.
8337 trap 'exit_status=$?
8338 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8340 trap 'as_fn_exit 1' 1 2 13 15
8342 # Create a (secure) tmp directory for tmp files.
8345 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8346 test -n "$tmp" && test -d "$tmp"
8349 tmp
=.
/conf$$
-$RANDOM
8350 (umask 077 && mkdir
"$tmp")
8351 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
8353 # Set up the scripts for CONFIG_FILES section.
8354 # No need to generate them if there are no CONFIG_FILES.
8355 # This happens for instance with `./config.status config.h'.
8356 if test -n "$CONFIG_FILES"; then
8359 ac_cr
=`echo X | tr X '\015'`
8360 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8361 # But we know of no other shell where ac_cr would be empty at this
8362 # point, so we can use a bashism as a fallback.
8363 if test "x$ac_cr" = x
; then
8364 eval ac_cr
=\$
\'\\r
\'
8366 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8367 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8373 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8378 echo "cat >conf$$subs.awk <<_ACEOF" &&
8379 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8382 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8383 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8385 for ac_last_try in false false false false false :; do
8386 . ./conf$$subs.sh ||
8387 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8389 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8390 if test $ac_delim_n = $ac_delim_num; then
8392 elif $ac_last_try; then
8393 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8395 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8401 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
8405 s/^/S["/; s
/!.
*/"]=/
8415 s/\(.\{148\}\).*/\1/
8417 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8422 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8429 s/\(.\{148\}\).*/\1/
8431 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8435 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8440 ' <conf$$subs.awk | sed '
8445 ' >>$CONFIG_STATUS || ac_write_fail=1
8446 rm -f conf$$subs.awk
8447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8449 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8450 for (key in S) S_is_set[key] = 1
8456 nfields = split(line, field, "@
")
8458 len = length(field[1])
8459 for (i = 2; i < nfields; i++) {
8461 keylen = length(key)
8462 if (S_is_set[key]) {
8464 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8465 len += length(value) + length(field[++i])
8476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8477 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8478 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8481 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8482 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
8485 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8486 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8487 # trailing colons and then remove the whole line if VPATH becomes empty
8488 # (actually we leave an empty line to preserve line numbers).
8489 if test "x
$srcdir" = x.; then
8490 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8494 s/^\([^=]*=[ ]*\):*/\1/
8500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8501 fi # test -n "$CONFIG_FILES"
8503 # Set up the scripts for CONFIG_HEADERS section.
8504 # No need to generate them if there are no CONFIG_HEADERS.
8505 # This happens for instance with `./config.status Makefile'.
8506 if test -n "$CONFIG_HEADERS"; then
8507 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8511 # Transform confdefs.h into an awk script `defines.awk', embedded as
8512 # here-document in config.status, that substitutes the proper values into
8513 # config.h.in to produce config.h.
8515 # Create a delimiter string that does not exist in confdefs.h, to ease
8516 # handling of long lines.
8518 for ac_last_try in false false :; do
8519 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8520 if test -z "$ac_t"; then
8522 elif $ac_last_try; then
8523 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
8525 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8529 # For the awk script, D is an array of macro values keyed by name,
8530 # likewise P contains macro parameters if any. Preserve backslash
8531 # newline sequences.
8533 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8535 s/.\{148\}/&'"$ac_delim"'/g
8538 s/^[ ]*#[ ]*define[ ][ ]*/ /
8545 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8547 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8551 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8552 D["\
1"]=" \
3\\\\\\n
"\\/p
8554 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8559 s/.\{148\}/&'"$ac_delim"'/g
8564 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8567 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8569 ' <confdefs.h | sed '
8570 s/'"$ac_delim"'/"\\\
8571 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8574 for (key in D) D_is_set[key] = 1
8577 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8579 split(line, arg, " ")
8580 if (arg[1] == "#") {
8584 defundef
= substr
(arg
[1], 2)
8587 split(mac1
, mac2
, "(") #)
8589 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8590 if (D_is_set
[macro
]) {
8591 # Preserve the white space surrounding the "#".
8592 print prefix
"define", macro P
[macro
] D
[macro
]
8595 # Replace #undef with comments. This is necessary, for example,
8596 # in the case of _POSIX_SOURCE, which is predefined and required
8597 # on some systems where configure will not decide to define it.
8598 if (defundef
== "undef") {
8599 print
"/*", prefix defundef
, macro
, "*/"
8607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8608 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8609 fi # test -n "$CONFIG_HEADERS"
8612 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8617 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8619 case $ac_mode$ac_tag in
8621 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8622 :[FH
]-) ac_tag
=-:-;;
8623 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8640 -) ac_f
="$tmp/stdin";;
8641 *) # Look for the file first in the build tree, then in the source tree
8642 # (if the path is not absolute). The absolute path cannot be DOS-style,
8643 # because $ac_f cannot contain `:'.
8647 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8649 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8651 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8652 as_fn_append ac_file_inputs
" '$ac_f'"
8655 # Let's still pretend it is `configure' which instantiates (i.e., don't
8656 # use $as_me), people would be surprised to read:
8657 # /* config.h. Generated by config.status. */
8658 configure_input
='Generated from '`
8659 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8661 if test x
"$ac_file" != x-
; then
8662 configure_input
="$ac_file. $configure_input"
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8664 $as_echo "$as_me: creating $ac_file" >&6;}
8666 # Neutralize special characters interpreted by sed in replacement strings.
8667 case $configure_input in #(
8668 *\
&* |
*\|
* |
*\\* )
8669 ac_sed_conf_input
=`$as_echo "$configure_input" |
8670 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8671 *) ac_sed_conf_input
=$configure_input;;
8675 *:-:* |
*:-) cat >"$tmp/stdin" \
8676 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8681 ac_dir
=`$as_dirname -- "$ac_file" ||
8682 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8683 X"$ac_file" : 'X\(//\)[^/]' \| \
8684 X"$ac_file" : 'X\(//\)$' \| \
8685 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8686 $as_echo X"$ac_file" |
8687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8704 as_dir
="$ac_dir"; as_fn_mkdir_p
8708 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8710 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8711 # A ".." for each directory in $ac_dir_suffix.
8712 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8713 case $ac_top_builddir_sub in
8714 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8715 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8718 ac_abs_top_builddir
=$ac_pwd
8719 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8720 # for backward compatibility:
8721 ac_top_builddir
=$ac_top_build_prefix
8724 .
) # We are building in place.
8726 ac_top_srcdir
=$ac_top_builddir_sub
8727 ac_abs_top_srcdir
=$ac_pwd ;;
8728 [\\/]* | ?
:[\\/]* ) # Absolute name.
8729 ac_srcdir
=$srcdir$ac_dir_suffix;
8730 ac_top_srcdir
=$srcdir
8731 ac_abs_top_srcdir
=$srcdir ;;
8733 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8734 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8735 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8737 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8747 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8748 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8753 # If the template does not know about datarootdir, expand it.
8754 # FIXME: This hack should be removed a few years after 2.60.
8755 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8766 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8767 *datarootdir
*) ac_datarootdir_seen
=yes;;
8768 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8770 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8773 ac_datarootdir_hack='
8774 s&@datadir@&$datadir&g
8775 s&@docdir@&$docdir&g
8776 s&@infodir@&$infodir&g
8777 s&@localedir@&$localedir&g
8778 s&@mandir@&$mandir&g
8779 s&\\\${datarootdir}&$datarootdir&g' ;;
8783 # Neutralize VPATH when `$srcdir' = `.'.
8784 # Shell code in configure.ac might set extrasub.
8785 # FIXME: do we really want to maintain this feature?
8786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8787 ac_sed_extra="$ac_vpsub
8790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8792 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8793 s|@configure_input@|
$ac_sed_conf_input|
;t t
8794 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8795 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8796 s
&@srcdir@
&$ac_srcdir&;t t
8797 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8798 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8799 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8800 s
&@builddir@
&$ac_builddir&;t t
8801 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8802 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8803 s
&@INSTALL@
&$ac_INSTALL&;t t
8804 $ac_datarootdir_hack
8806 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8807 || as_fn_error "could not create
$ac_file" "$LINENO" 5
8809 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8810 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8813 which seems to be undefined. Please make sure it is defined." >&5
8814 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8815 which seems to be undefined. Please make sure it is defined." >&2;}
8819 -) cat "$tmp/out" && rm -f "$tmp/out";;
8820 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8822 || as_fn_error "could not create $ac_file" "$LINENO" 5
8828 if test x"$ac_file" != x-; then
8830 $as_echo "/* $configure_input */" \
8831 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8832 } >"$tmp/config.h" \
8833 || as_fn_error "could not create $ac_file" "$LINENO" 5
8834 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8836 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8839 mv "$tmp/config.h" "$ac_file" \
8840 || as_fn_error "could not create $ac_file" "$LINENO" 5
8843 $as_echo "/* $configure_input */" \
8844 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8845 || as_fn_error "could not create -" "$LINENO" 5
8849 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8850 $as_echo "$as_me: executing $ac_file commands" >&6;}
8855 case $ac_file$ac_mode in
8856 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8857 "default":C) case x$CONFIG_HEADERS in
8858 xconfig.h:config.in)
8869 ac_clean_files=$ac_clean_files_save
8871 test $ac_write_fail = 0 ||
8872 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8875 # configure is writing to config.log, and then calls config.status.
8876 # config.status does its own redirection, appending to config.log.
8877 # Unfortunately, on DOS this fails, as config.log is still kept open
8878 # by configure, so config.status won't be able to
write to it
; its
8879 # output is simply discarded. So we exec the FD to /dev/null,
8880 # effectively closing config.log, so it can be properly (re)opened and
8881 # appended to by config.status. When coming back to configure, we
8882 # need to make the FD available again.
8883 if test "$no_create" != yes; then
8885 ac_config_status_args
=
8886 test "$silent" = yes &&
8887 ac_config_status_args
="$ac_config_status_args --quiet"
8889 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8891 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8892 # would make configure fail if this is the last instruction.
8893 $ac_cs_success || as_fn_exit $?
8895 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8897 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}