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_func LINENO FUNC VAR
1776 # ----------------------------------
1777 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1778 ac_fn_c_check_func ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784 $as_echo_n "(cached) " >&6
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1788 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1790 #define $2 innocuous_$2
1792 /* System header to define __stub macros and hopefully few prototypes,
1793 which can conflict with char $2 (); below.
1794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1795 <limits.h> exists even on freestanding compilers. */
1798 # include <limits.h>
1800 # include <assert.h>
1805 /* Override any GCC internal prototype to avoid an error.
1806 Use char because int might match the return type of a GCC
1807 builtin and then its argument prototype would still apply. */
1812 /* The GNU C library defines this for functions which it implements
1813 to always fail with ENOSYS. Some functions are actually named
1814 something starting with __ and the normal name is an alias. */
1815 #if defined __stub_$2 || defined __stub___$2
1827 if ac_fn_c_try_link "$LINENO"; then :
1832 rm -f core conftest.err conftest.$ac_objext \
1833 conftest$ac_exeext conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 } # ac_fn_c_check_func
1842 # ac_fn_c_check_decl LINENO SYMBOL VAR
1843 # ------------------------------------
1844 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1845 ac_fn_c_check_decl ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1849 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1851 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1852 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1853 $as_echo_n "(cached) " >&6
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1861 #ifndef $as_decl_name
1863 (void) $as_decl_use;
1865 (void) $as_decl_name;
1873 if ac_fn_c_try_compile "$LINENO"; then :
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885 } # ac_fn_c_check_decl
1887 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
1888 # --------------------------------------
1889 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1890 ac_fn_cxx_check_decl ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1894 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1896 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1906 #ifndef $as_decl_name
1908 (void) $as_decl_use;
1910 (void) $as_decl_name;
1918 if ac_fn_cxx_try_compile "$LINENO"; then :
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930 } # ac_fn_cxx_check_decl
1932 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1933 # -------------------------------------------
1934 # Tests whether TYPE exists after having included INCLUDES, setting cache
1935 # variable VAR accordingly.
1936 ac_fn_c_check_type ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1942 $as_echo_n "(cached) " >&6
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1970 if ac_fn_c_try_compile "$LINENO"; then :
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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_c_check_type
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 for ac_func
in getauxval pread pwrite pread64 setns
5365 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5366 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5367 eval as_val
=\$
$as_ac_var
5368 if test "x$as_val" = x
""yes; then :
5369 cat >>confdefs.h
<<_ACEOF
5370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5379 $as_echo_n "checking for ANSI C header files... " >&6; }
5380 if test "${ac_cv_header_stdc+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5398 if ac_fn_c_try_compile
"$LINENO"; then :
5399 ac_cv_header_stdc
=yes
5401 ac_cv_header_stdc
=no
5403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5405 if test $ac_cv_header_stdc = yes; then
5406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5413 $EGREP "memchr" >/dev
/null
2>&1; then :
5416 ac_cv_header_stdc
=no
5422 if test $ac_cv_header_stdc = yes; then
5423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5430 $EGREP "free" >/dev
/null
2>&1; then :
5433 ac_cv_header_stdc
=no
5439 if test $ac_cv_header_stdc = yes; then
5440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5441 if test "$cross_compiling" = yes; then :
5444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5448 #if ((' ' & 0x0FF) == 0x020)
5449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5452 # define ISLOWER(c) \
5453 (('a' <= (c) && (c) <= 'i') \
5454 || ('j' <= (c) && (c) <= 'r') \
5455 || ('s' <= (c) && (c) <= 'z'))
5456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5464 for (i = 0; i < 256; i++)
5465 if (XOR (islower (i), ISLOWER (i))
5466 || toupper (i) != TOUPPER (i))
5471 if ac_fn_c_try_run
"$LINENO"; then :
5474 ac_cv_header_stdc
=no
5476 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5477 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5483 $as_echo "$ac_cv_header_stdc" >&6; }
5484 if test $ac_cv_header_stdc = yes; then
5486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5490 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5491 # for constant arguments. Useless!
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5493 $as_echo_n "checking for working alloca.h... " >&6; }
5494 if test "${ac_cv_working_alloca_h+set}" = set; then :
5495 $as_echo_n "(cached) " >&6
5497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5503 char *p = (char *) alloca (2 * sizeof (int));
5509 if ac_fn_c_try_link
"$LINENO"; then :
5510 ac_cv_working_alloca_h
=yes
5512 ac_cv_working_alloca_h
=no
5514 rm -f core conftest.err conftest.
$ac_objext \
5515 conftest
$ac_exeext conftest.
$ac_ext
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5518 $as_echo "$ac_cv_working_alloca_h" >&6; }
5519 if test $ac_cv_working_alloca_h = yes; then
5521 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5526 $as_echo_n "checking for alloca... " >&6; }
5527 if test "${ac_cv_func_alloca_works+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5533 # define alloca __builtin_alloca
5536 # include <malloc.h>
5537 # define alloca _alloca
5539 # ifdef HAVE_ALLOCA_H
5540 # include <alloca.h>
5545 # ifndef alloca /* predefined by HP cc +Olibcalls */
5556 char *p = (char *) alloca (1);
5562 if ac_fn_c_try_link
"$LINENO"; then :
5563 ac_cv_func_alloca_works
=yes
5565 ac_cv_func_alloca_works
=no
5567 rm -f core conftest.err conftest.
$ac_objext \
5568 conftest
$ac_exeext conftest.
$ac_ext
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5571 $as_echo "$ac_cv_func_alloca_works" >&6; }
5573 if test $ac_cv_func_alloca_works = yes; then
5575 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5578 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5579 # that cause trouble. Some versions do not even contain alloca or
5580 # contain a buggy version. If you still want to use their alloca,
5581 # use ar to extract alloca.o from them instead of compiling alloca.c.
5583 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5585 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5589 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5590 if test "${ac_cv_os_cray+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 #if defined CRAY && ! defined CRAY2
5602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5603 $EGREP "webecray" >/dev
/null
2>&1; then :
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5612 $as_echo "$ac_cv_os_cray" >&6; }
5613 if test $ac_cv_os_cray = yes; then
5614 for ac_func
in _getb67 GETB67 getb67
; do
5615 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5616 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5617 eval as_val
=\$
$as_ac_var
5618 if test "x$as_val" = x
""yes; then :
5620 cat >>confdefs.h
<<_ACEOF
5621 #define CRAY_STACKSEG_END $ac_func
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5631 $as_echo_n "checking stack direction for C alloca... " >&6; }
5632 if test "${ac_cv_c_stack_direction+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5635 if test "$cross_compiling" = yes; then :
5636 ac_cv_c_stack_direction
=0
5638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 $ac_includes_default
5642 find_stack_direction ()
5644 static char *addr = 0;
5649 return find_stack_direction ();
5652 return (&dummy > addr) ? 1 : -1;
5658 return find_stack_direction () < 0;
5661 if ac_fn_c_try_run
"$LINENO"; then :
5662 ac_cv_c_stack_direction
=1
5664 ac_cv_c_stack_direction
=-1
5666 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5667 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5672 $as_echo "$ac_cv_c_stack_direction" >&6; }
5673 cat >>confdefs.h
<<_ACEOF
5674 #define STACK_DIRECTION $ac_cv_c_stack_direction
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5683 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5684 if test "${am_cv_langinfo_codeset+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #include <langinfo.h>
5693 char* cs = nl_langinfo(CODESET);
5698 if ac_fn_c_try_link
"$LINENO"; then :
5699 am_cv_langinfo_codeset
=yes
5701 am_cv_langinfo_codeset
=no
5703 rm -f core conftest.err conftest.
$ac_objext \
5704 conftest
$ac_exeext conftest.
$ac_ext
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5708 $as_echo "$am_cv_langinfo_codeset" >&6; }
5709 if test $am_cv_langinfo_codeset = yes; then
5711 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5716 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
5718 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5719 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5720 eval as_val
=\$
$as_ac_Header
5721 if test "x$as_val" = x
""yes; then :
5722 cat >>confdefs.h
<<_ACEOF
5723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5731 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
5733 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5734 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5735 eval as_val
=\$
$as_ac_var
5736 if test "x$as_val" = x
""yes; then :
5737 cat >>confdefs.h
<<_ACEOF
5738 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5745 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5746 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
5752 cat >>confdefs.h
<<_ACEOF
5753 #define HAVE_DECL_STRERROR $ac_have_decl
5755 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5756 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
5762 cat >>confdefs.h
<<_ACEOF
5763 #define HAVE_DECL_STRSTR $ac_have_decl
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
5768 $as_echo_n "checking for sigsetjmp... " >&6; }
5769 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5780 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
5785 if ac_fn_c_try_compile
"$LINENO"; then :
5786 gdb_cv_func_sigsetjmp
=yes
5788 gdb_cv_func_sigsetjmp
=no
5790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
5793 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
5794 if test $gdb_cv_func_sigsetjmp = yes; then
5796 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
5801 # Check the return and argument types of ptrace.
5805 for ac_header
in sys
/ptrace.h ptrace.h
5807 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5808 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5809 eval as_val
=\$
$as_ac_Header
5810 if test "x$as_val" = x
""yes; then :
5811 cat >>confdefs.h
<<_ACEOF
5812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5820 # Needs to be tested in C++ mode, to detect whether we need to cast
5821 # the first argument to enum __ptrace_request.
5822 if test "$enable_build_with_cxx" = "yes"; then
5824 ac_cpp
='$CXXCPP $CPPFLAGS'
5825 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5831 gdb_ptrace_headers
='
5832 #include <sys/types.h>
5833 #if HAVE_SYS_PTRACE_H
5834 # include <sys/ptrace.h>
5837 # include <unistd.h>
5840 # There is no point in checking if we don't have a prototype.
5841 ac_fn_cxx_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
5843 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
5849 cat >>confdefs.h
<<_ACEOF
5850 #define HAVE_DECL_PTRACE $ac_have_decl
5852 if test $ac_have_decl = 1; then :
5856 : ${gdb_cv_func_ptrace_ret='int'}
5857 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
5861 # Check return type. Varargs (used on GNU/Linux) conflict with the
5862 # empty argument list, so check for that explicitly.
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
5864 $as_echo_n "checking return type of ptrace... " >&6; }
5865 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5874 extern long ptrace (enum __ptrace_request, ...);
5879 if ac_fn_cxx_try_compile
"$LINENO"; then :
5880 gdb_cv_func_ptrace_ret
='long'
5882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5888 extern int ptrace ();
5893 if ac_fn_cxx_try_compile
"$LINENO"; then :
5894 gdb_cv_func_ptrace_ret
='int'
5896 gdb_cv_func_ptrace_ret
='long'
5898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
5903 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
5905 cat >>confdefs.h
<<_ACEOF
5906 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
5909 # Check argument types.
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
5911 $as_echo_n "checking types of arguments for ptrace... " >&6; }
5912 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5922 extern long ptrace (enum __ptrace_request, ...);
5927 if ac_fn_cxx_try_compile
"$LINENO"; then :
5928 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
5931 for gdb_arg1
in 'int' 'long'; do
5932 for gdb_arg2
in 'pid_t' 'int' 'long'; do
5933 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
5934 for gdb_arg4
in 'int' 'long' 'void *'; do
5935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5942 extern $gdb_cv_func_ptrace_ret
5943 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
5949 if ac_fn_cxx_try_compile
"$LINENO"; then :
5950 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
5953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5954 for gdb_arg5
in 'int *' 'int' 'long'; do
5955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5962 extern $gdb_cv_func_ptrace_ret
5963 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
5969 if ac_fn_cxx_try_compile
"$LINENO"; then :
5971 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
5974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5980 # Provide a safe default value.
5981 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
5984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
5987 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
5988 ac_save_IFS
=$IFS; IFS
=','
5989 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
5993 cat >>confdefs.h
<<_ACEOF
5994 #define PTRACE_TYPE_ARG1 $1
5998 cat >>confdefs.h
<<_ACEOF
5999 #define PTRACE_TYPE_ARG3 $3
6003 cat >>confdefs.h
<<_ACEOF
6004 #define PTRACE_TYPE_ARG4 $4
6007 if test -n "$5"; then
6009 cat >>confdefs.h
<<_ACEOF
6010 #define PTRACE_TYPE_ARG5 $5
6015 if test "$enable_build_with_cxx" = "yes"; then
6017 ac_cpp
='$CPP $CPPFLAGS'
6018 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6030 # Check whether --with-ust was given.
6031 if test "${with_ust+set}" = set; then :
6036 # Check whether --with-ust_include was given.
6037 if test "${with_ust_include+set}" = set; then :
6038 withval
=$with_ust_include;
6042 # Check whether --with-ust_lib was given.
6043 if test "${with_ust_lib+set}" = set; then :
6044 withval
=$with_ust_lib;
6058 ustlibs
="-L$with_ust/lib -lust"
6059 ustinc
="-I$with_ust/include "
6062 if test "x$with_ust_include" != x
; then
6063 ustinc
="-I$with_ust_include "
6065 if test "x$with_ust_lib" != x
; then
6066 ustlibs
="-L$with_ust_lib -lust"
6069 if test "x$with_ust" != "xno"; then
6070 saved_CFLAGS
="$CFLAGS"
6071 CFLAGS
="$CFLAGS $ustinc"
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
6073 $as_echo_n "checking for ust... " >&6; }
6074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6077 #define CONFIG_UST_GDB_INTEGRATION
6078 #include <ust/ust.h>
6088 if ac_fn_c_try_compile
"$LINENO"; then :
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6090 $as_echo "yes" >&6; };
6091 $as_echo "#define HAVE_UST 1" >>confdefs.h
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
6097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6098 CFLAGS
="$saved_CFLAGS"
6101 # Flags needed for UST
6106 # Check whether --enable-werror was given.
6107 if test "${enable_werror+set}" = set; then :
6108 enableval
=$enable_werror; case "${enableval}" in
6109 yes | y
) ERROR_ON_WARNING
="yes" ;;
6110 no | n
) ERROR_ON_WARNING
="no" ;;
6111 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
6116 # Enable -Werror by default when using gcc. Turn it off for releases.
6117 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
6118 ERROR_ON_WARNING
=yes
6122 if test "${ERROR_ON_WARNING}" = yes ; then
6123 WERROR_CFLAGS
="-Werror"
6126 # These options work in either C or C++ modes.
6127 build_warnings
="-Wall -Wpointer-arith \
6128 -Wno-unused -Wunused-value -Wunused-function \
6129 -Wno-switch -Wno-char-subscripts \
6132 # Now add in C and C++ specific options, depending on mode.
6133 if test "$enable_build_with_cxx" = "yes"; then
6134 build_warnings
="$build_warnings -Wno-sign-compare -Wno-write-strings \
6137 build_warnings
="$build_warnings -Wpointer-sign -Wmissing-prototypes \
6138 -Wdeclaration-after-statement -Wmissing-parameter-type \
6139 -Wold-style-declaration -Wold-style-definition"
6142 # Enable -Wno-format by default when using gcc on mingw since many
6143 # GCC versions complain about %I64.
6145 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
6146 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
6149 # Check whether --enable-build-warnings was given.
6150 if test "${enable_build_warnings+set}" = set; then :
6151 enableval
=$enable_build_warnings; case "${enableval}" in
6153 no
) build_warnings
="-w";;
6154 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6155 build_warnings
="${build_warnings} ${t}";;
6156 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6157 build_warnings
="${t} ${build_warnings}";;
6158 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6160 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6161 echo "Setting compiler warning flags = $build_warnings" 6>&1
6164 # Check whether --enable-gdb-build-warnings was given.
6165 if test "${enable_gdb_build_warnings+set}" = set; then :
6166 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
6168 no
) build_warnings
="-w";;
6169 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6170 build_warnings
="${build_warnings} ${t}";;
6171 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6172 build_warnings
="${t} ${build_warnings}";;
6173 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6175 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6176 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6180 # The set of warnings supported by a C++ compiler is not the same as
6181 # of the C compiler.
6182 if test "$enable_build_with_cxx" = "yes"; then
6184 ac_cpp
='$CXXCPP $CPPFLAGS'
6185 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6186 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6187 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6192 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
6195 $as_echo_n "checking compiler warning flags... " >&6; }
6196 # Separate out the -Werror flag as some files just cannot be
6197 # compiled with it enabled.
6198 for w
in ${build_warnings}; do
6199 # GCC does not complain about -Wno-unknown-warning. Invert
6200 # and test -Wunknown-warning instead.
6203 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
6209 -Werr*) WERROR_CFLAGS
=-Werror ;;
6211 # Check whether GCC accepts it.
6212 saved_CFLAGS
="$CFLAGS"
6213 CFLAGS
="$CFLAGS $wtest"
6214 saved_CXXFLAGS
="$CXXFLAGS"
6215 CXXFLAGS
="$CXXFLAGS $wtest"
6216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6227 if ac_fn_cxx_try_compile
"$LINENO"; then :
6228 WARN_CFLAGS
="${WARN_CFLAGS} $w"
6230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6231 CFLAGS
="$saved_CFLAGS"
6232 CXXFLAGS
="$saved_CXXFLAGS"
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
6236 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
6241 if test "$enable_build_with_cxx" = "yes"; then
6243 ac_cpp='$CPP $CPPFLAGS'
6244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6250 case " $WARN_CFLAGS " in
6251 *" -Wmissing-prototypes "*)
6252 WARN_CFLAGS="$WARN_CFLAGS -Wno-missing-prototypes"
6258 for ac_func in dladdr
6260 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
6261 if test "x
$ac_cv_func_dladdr" = x""yes; then :
6262 cat >>confdefs.h <<_ACEOF
6263 #define HAVE_DLADDR 1
6272 # Check for presence and size of long long.
6273 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
6274 if test "x
$ac_cv_type_long_long" = x""yes; then :
6276 cat >>confdefs.h <<_ACEOF
6277 #define HAVE_LONG_LONG 1
6280 # The cast to long int works around a bug in the HP C Compiler
6281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6283 # This bug is HP SR number 8606223364.
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
6285 $as_echo_n "checking size of long long...
" >&6; }
6286 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6287 $as_echo_n "(cached
) " >&6
6289 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
6292 if test "$ac_cv_type_long_long" = yes; then
6293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
6294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6295 { as_fn_set_status 77
6296 as_fn_error "cannot compute sizeof (long long)
6297 See \`config.log' for more details.
" "$LINENO" 5; }; }
6299 ac_cv_sizeof_long_long=0
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
6305 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6309 cat >>confdefs.h <<_ACEOF
6310 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6317 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "ac_cv_have_decl_basename_char_p_
" "$ac_includes_default"
6318 if test "x
$ac_cv_have_decl_basename_char_p_" = x""yes; then :
6324 cat >>confdefs.h <<_ACEOF
6325 #define HAVE_DECL_BASENAME $ac_have_decl
6327 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
6328 if test "x
$ac_cv_have_decl_ffs" = x""yes; then :
6334 cat >>confdefs.h <<_ACEOF
6335 #define HAVE_DECL_FFS $ac_have_decl
6337 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
6338 if test "x
$ac_cv_have_decl_asprintf" = x""yes; then :
6344 cat >>confdefs.h <<_ACEOF
6345 #define HAVE_DECL_ASPRINTF $ac_have_decl
6347 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
6348 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
6354 cat >>confdefs.h <<_ACEOF
6355 #define HAVE_DECL_VASPRINTF $ac_have_decl
6357 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
6358 if test "x
$ac_cv_have_decl_snprintf" = x""yes; then :
6364 cat >>confdefs.h <<_ACEOF
6365 #define HAVE_DECL_SNPRINTF $ac_have_decl
6367 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
6368 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
6374 cat >>confdefs.h <<_ACEOF
6375 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6378 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
6379 if test "x
$ac_cv_have_decl_strtol" = x""yes; then :
6385 cat >>confdefs.h <<_ACEOF
6386 #define HAVE_DECL_STRTOL $ac_have_decl
6388 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
6389 if test "x
$ac_cv_have_decl_strtoul" = x""yes; then :
6395 cat >>confdefs.h <<_ACEOF
6396 #define HAVE_DECL_STRTOUL $ac_have_decl
6398 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
6399 if test "x
$ac_cv_have_decl_strtoll" = x""yes; then :
6405 cat >>confdefs.h <<_ACEOF
6406 #define HAVE_DECL_STRTOLL $ac_have_decl
6408 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
6409 if test "x
$ac_cv_have_decl_strtoull" = x""yes; then :
6415 cat >>confdefs.h <<_ACEOF
6416 #define HAVE_DECL_STRTOULL $ac_have_decl
6419 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
6420 if test "x
$ac_cv_have_decl_strverscmp" = x""yes; then :
6426 cat >>confdefs.h <<_ACEOF
6427 #define HAVE_DECL_STRVERSCMP $ac_have_decl
6432 ac_fn_c_check_decl "$LINENO" "strerror
" "ac_cv_have_decl_strerror
" "$ac_includes_default"
6433 if test "x
$ac_cv_have_decl_strerror" = x""yes; then :
6439 cat >>confdefs.h <<_ACEOF
6440 #define HAVE_DECL_STRERROR $ac_have_decl
6442 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
6443 if test "x
$ac_cv_have_decl_perror" = x""yes; then :
6449 cat >>confdefs.h <<_ACEOF
6450 #define HAVE_DECL_PERROR $ac_have_decl
6452 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
6453 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
6459 cat >>confdefs.h <<_ACEOF
6460 #define HAVE_DECL_VASPRINTF $ac_have_decl
6462 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
6463 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
6469 cat >>confdefs.h <<_ACEOF
6470 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6474 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
6475 if test "x
$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6477 cat >>confdefs.h <<_ACEOF
6478 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6483 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
6484 if test "x
$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6486 cat >>confdefs.h <<_ACEOF
6487 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6494 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
6495 #include <sys/socket.h>
6498 if test "x
$ac_cv_type_socklen_t" = x""yes; then :
6500 cat >>confdefs.h <<_ACEOF
6501 #define HAVE_SOCKLEN_T 1
6510 # Starting with NDK version 9, <elf.h> actually includes definitions
6511 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
6512 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
6513 # leading to conflicts with the defintions from <linux/elf.h>.
6514 # This makes it impossible for us to include both <elf.h> and
6515 # <linux/elf.h>, which means that, in practice, we do not have
6516 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
6517 # Therefore, do not try to auto-detect availability, as it would
6518 # get it wrong on this platform.
6521 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
6524 if test "x
$ac_cv_type_Elf32_auxv_t" = x""yes; then :
6526 cat >>confdefs.h <<_ACEOF
6527 #define HAVE_ELF32_AUXV_T 1
6532 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
6535 if test "x
$ac_cv_type_Elf64_auxv_t" = x""yes; then :
6537 cat >>confdefs.h <<_ACEOF
6538 #define HAVE_ELF64_AUXV_T 1
6548 # Check whether --with-pkgversion was given.
6549 if test "${with_pkgversion+set}" = set; then :
6550 withval=$with_pkgversion; case "$withval" in
6551 yes) as_fn_error "package version not specified
" "$LINENO" 5 ;;
6553 *) PKGVERSION="($withval) " ;;
6564 # Check whether --with-bugurl was given.
6565 if test "${with_bugurl+set}" = set; then :
6566 withval=$with_bugurl; case "$withval" in
6567 yes) as_fn_error "bug URL not specified
" "$LINENO" 5 ;;
6570 *) BUGURL="$withval"
6574 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
6584 REPORT_BUGS_TO="<$BUGURL>"
6585 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6592 cat >>confdefs.h <<_ACEOF
6593 #define PKGVERSION "$PKGVERSION"
6597 cat >>confdefs.h <<_ACEOF
6598 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6602 # Check for various supplementary target information (beyond the
6603 # triplet) which might affect the choices in configure.srv.
6605 i[34567]86-*-linux*)
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
6607 $as_echo_n "checking
if building
for x86-64...
" >&6; }
6608 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
6609 $as_echo_n "(cached
) " >&6
6611 save_CPPFLAGS="$CPPFLAGS"
6612 CPPFLAGS="$CPPFLAGS $CFLAGS"
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6621 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6622 $EGREP "got it
" >/dev/null 2>&1; then :
6623 gdb_cv_i386_is_x86_64=yes
6625 gdb_cv_i386_is_x86_64=no
6629 CPPFLAGS="$save_CPPFLAGS"
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
6632 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
6636 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
6637 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
6638 $as_echo_n "(cached
) " >&6
6640 save_CPPFLAGS="$CPPFLAGS"
6641 CPPFLAGS="$CPPFLAGS $CFLAGS"
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6645 #ifdef __mcoldfire__
6650 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6651 $EGREP "got it
" >/dev/null 2>&1; then :
6652 gdb_cv_m68k_is_coldfire=yes
6654 gdb_cv_m68k_is_coldfire=no
6658 CPPFLAGS="$save_CPPFLAGS"
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
6661 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
6665 . ${srcdir}/configure.srv
6667 # Add in the common host objects.
6668 . ${srcdir}/../common/common.host
6669 srv_host_obs="$common_host_obs"
6671 if test "${srv_mingwce}" = "yes"; then
6673 elif test "${srv_mingw}" = "yes"; then
6674 LIBS="$LIBS -lws2_32"
6675 elif test "${srv_qnx}" = "yes"; then
6676 LIBS="$LIBS -lsocket"
6677 elif test "${srv_lynxos}" = "yes"; then
6678 LIBS="$LIBS -lnetinet"
6681 if test "${srv_mingw}" = "yes"; then
6683 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6687 if test "${srv_linux_usrregs}" = "yes"; then
6689 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
6693 if test "${srv_linux_regsets}" = "yes"; then
6695 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
6699 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
6700 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
6701 $as_echo_n "(cached) " >&6
6703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705 #include <sys/ptrace.h>
6714 if ac_fn_c_try_compile
"$LINENO"; then :
6715 gdbsrv_cv_have_ptrace_getregs
=yes
6717 gdbsrv_cv_have_ptrace_getregs
=no
6719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
6723 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
6724 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
6726 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
6731 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
6732 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
6733 $as_echo_n "(cached) " >&6
6735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737 #include <sys/ptrace.h>
6746 if ac_fn_c_try_compile
"$LINENO"; then :
6747 gdbsrv_cv_have_ptrace_getfpxregs
=yes
6749 gdbsrv_cv_have_ptrace_getfpxregs
=no
6751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
6755 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
6756 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
6758 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
6763 if test "${srv_linux_btrace}" = "yes"; then
6765 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
6769 if test "$ac_cv_header_sys_procfs_h" = yes; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
6771 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
6772 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6779 /* Needed for new procfs interface on sparc-solaris. */
6780 #define _STRUCTURED_PROC 1
6781 #include <sys/procfs.h>
6790 if ac_fn_c_try_compile
"$LINENO"; then :
6791 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
6793 bfd_cv_have_sys_procfs_type_lwpid_t
=no
6796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6799 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
6801 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
6805 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
6808 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
6809 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
6810 $as_echo_n "(cached) " >&6
6812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6816 /* Needed for new procfs interface on sparc-solaris. */
6817 #define _STRUCTURED_PROC 1
6818 #include <sys/procfs.h>
6827 if ac_fn_c_try_compile
"$LINENO"; then :
6828 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
6830 bfd_cv_have_sys_procfs_type_psaddr_t
=no
6833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6836 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
6838 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
6842 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
6845 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
6846 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
6847 $as_echo_n "(cached) " >&6
6849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6853 /* Needed for new procfs interface on sparc-solaris. */
6854 #define _STRUCTURED_PROC 1
6855 #include <sys/procfs.h>
6864 if ac_fn_c_try_compile
"$LINENO"; then :
6865 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
6867 bfd_cv_have_sys_procfs_type_prgregset_t
=no
6870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6873 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
6875 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
6879 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
6882 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
6883 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6890 /* Needed for new procfs interface on sparc-solaris. */
6891 #define _STRUCTURED_PROC 1
6892 #include <sys/procfs.h>
6901 if ac_fn_c_try_compile
"$LINENO"; then :
6902 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
6904 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
6907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6910 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
6912 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
6916 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
6919 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
6920 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6927 /* Needed for new procfs interface on sparc-solaris. */
6928 #define _STRUCTURED_PROC 1
6929 #include <sys/procfs.h>
6938 if ac_fn_c_try_compile
"$LINENO"; then :
6939 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
6941 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
6944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6947 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
6949 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
6953 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
6957 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
6959 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
6960 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6966 #include <thread_db.h>
6975 if ac_fn_c_try_compile
"$LINENO"; then :
6976 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
6978 gdbserver_cv_have_thread_db_type_lwpid_t
=no
6981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6984 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
6986 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
6990 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
6994 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
6996 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
6997 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
6998 $as_echo_n "(cached) " >&6
7000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7003 #include <thread_db.h>
7012 if ac_fn_c_try_compile
"$LINENO"; then :
7013 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
7015 gdbserver_cv_have_thread_db_type_psaddr_t
=no
7018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7021 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
7023 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
7027 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7033 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7034 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7035 $as_echo_n "(cached) " >&6
7037 ac_check_lib_save_LIBS
=$LIBS
7039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7042 /* Override any GCC internal prototype to avoid an error.
7043 Use char because int might match the return type of a GCC
7044 builtin and then its argument prototype would still apply. */
7057 if ac_fn_c_try_link
"$LINENO"; then :
7058 ac_cv_lib_dl_dlopen
=yes
7060 ac_cv_lib_dl_dlopen
=no
7062 rm -f core conftest.err conftest.
$ac_objext \
7063 conftest
$ac_exeext conftest.
$ac_ext
7064 LIBS
=$ac_check_lib_save_LIBS
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7067 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7068 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
7069 cat >>confdefs.h
<<_ACEOF
7070 #define HAVE_LIBDL 1
7079 srv_thread_depfiles
=
7082 if test "$srv_linux_thread_db" = "yes"; then
7083 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
7086 $as_echo_n "checking for the dynamic export flag... " >&6; }
7087 old_LDFLAGS
="$LDFLAGS"
7088 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
7090 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
7091 LDFLAGS
="$LDFLAGS $RDYNAMIC"
7092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7103 if ac_fn_c_try_link
"$LINENO"; then :
7104 found
="-Wl,--dynamic-list"
7105 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
7107 RDYNAMIC
="-rdynamic"
7108 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
7109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7120 if ac_fn_c_try_link
"$LINENO"; then :
7126 rm -f core conftest.err conftest.
$ac_objext \
7127 conftest
$ac_exeext conftest.
$ac_ext
7129 rm -f core conftest.err conftest.
$ac_objext \
7130 conftest
$ac_exeext conftest.
$ac_ext
7132 LDFLAGS
="$old_LDFLAGS"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
7134 $as_echo "$found" >&6; }
7136 srv_libs
="-lthread_db"
7139 srv_thread_depfiles
="thread-db.o proc-service.o"
7141 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
7144 $as_echo_n "checking for TD_VERSION... " >&6; }
7145 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
7146 $as_echo_n "(cached) " >&6
7148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 #include <thread_db.h>
7159 if ac_fn_c_try_compile
"$LINENO"; then :
7160 gdbsrv_cv_have_td_version
=yes
7162 gdbsrv_cv_have_td_version
=no
7164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
7167 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
7168 if test $gdbsrv_cv_have_td_version = yes; then
7170 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
7176 # Check whether --with-libthread-db was given.
7177 if test "${with_libthread_db+set}" = set; then :
7178 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
7179 srv_libs
="$srv_libthread_db_path"
7184 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
7186 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
7190 if test "$srv_xmlfiles" != ""; then
7191 srv_xmlbuiltin
="xml-builtin.o"
7193 $as_echo "#define USE_XML 1" >>confdefs.h
7196 tmp_xmlfiles
=$srv_xmlfiles
7198 for f
in $tmp_xmlfiles; do
7199 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
7203 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs"
7204 GDBSERVER_LIBS
="$srv_libs"
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
7207 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
7208 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
7212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7218 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
7223 if ac_fn_c_try_link
"$LINENO"; then :
7224 gdbsrv_cv_have_sync_builtins
=yes
7226 gdbsrv_cv_have_sync_builtins
=no
7228 rm -f core conftest.err conftest.
$ac_objext \
7229 conftest
$ac_exeext conftest.
$ac_ext
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
7232 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
7233 if test $gdbsrv_cv_have_sync_builtins = yes; then
7235 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
7239 saved_cflags
="$CFLAGS"
7240 CFLAGS
="$CFLAGS -fvisibility=hidden"
7241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7252 if ac_fn_c_try_compile
"$LINENO"; then :
7253 gdbsrv_cv_have_visibility_hidden
=yes
7255 gdbsrv_cv_have_visibility_hidden
=no
7257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7258 CFLAGS
="$saved_cflags"
7260 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7262 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
7268 cat >>confdefs.h
<<_ACEOF
7269 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7273 if test "$cross_compiling" = yes; then :
7274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 #include <sys/personality.h>
7281 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7282 # define ADDR_NO_RANDOMIZE 0x0040000
7284 /* Test the flag could be set and stays set. */
7285 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7286 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7292 if ac_fn_c_try_link
"$LINENO"; then :
7293 gdbsrv_cv_have_personality
=true
7295 gdbsrv_cv_have_personality
=false
7297 rm -f core conftest.err conftest.
$ac_objext \
7298 conftest
$ac_exeext conftest.
$ac_ext
7300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7302 #include <sys/personality.h>
7307 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7308 # define ADDR_NO_RANDOMIZE 0x0040000
7310 /* Test the flag could be set and stays set. */
7311 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7312 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7318 if ac_fn_c_try_run
"$LINENO"; then :
7319 gdbsrv_cv_have_personality
=true
7321 gdbsrv_cv_have_personality
=false
7323 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7324 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7327 if $gdbsrv_cv_have_personality
7330 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
7338 # check whether to enable the inprocess agent
7339 if test "$ipa_obj" != "" \
7340 -a "$gdbsrv_cv_have_sync_builtins" = yes \
7341 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
7347 # Check whether --enable-inprocess-agent was given.
7348 if test "${enable_inprocess_agent+set}" = set; then :
7349 enableval
=$enable_inprocess_agent; case "$enableval" in
7350 yes) want_ipa
=true
;;
7351 no
) want_ipa
=false
;;
7352 *) as_fn_error
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
7361 IPA_DEPFILES
="$ipa_obj"
7362 extra_libraries
="$extra_libraries libinproctrace.so"
7364 as_fn_error
"inprocess agent not supported for this target" "$LINENO" 5
7375 GNULIB
=build-gnulib-gdbserver
/import
7378 if test x
"$STDINT_H" != x
; then
7379 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
7383 ac_config_files
="$ac_config_files Makefile"
7385 ac_config_commands
="$ac_config_commands default"
7387 cat >confcache
<<\_ACEOF
7388 # This file is a shell script that caches the results of configure
7389 # tests run on this system so they can be shared between configure
7390 # scripts and configure runs, see configure's option --config-cache.
7391 # It is not useful on other systems. If it contains results you don't
7392 # want to keep, you may remove or edit it.
7394 # config.status only pays attention to the cache file if you give it
7395 # the --recheck option to rerun configure.
7397 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7398 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7403 # The following way of writing the cache mishandles newlines in values,
7404 # but we know of no workaround that is simple, portable, and efficient.
7405 # So, we kill variables containing newlines.
7406 # Ultrix sh set writes to stderr and can't be redirected directly,
7407 # and sets the high bit in the cache file unless we assign to the vars.
7409 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7410 eval ac_val
=\$
$ac_var
7414 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7415 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7418 _ | IFS | as_nl
) ;; #(
7419 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7420 *) { eval $ac_var=; unset $ac_var;} ;;
7426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7427 *${as_nl}ac_space
=\
*)
7428 # `set' does not quote correctly, so add quotes: double-quote
7429 # substitution turns \\\\ into \\, and sed turns \\ into \.
7432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7435 # `set' quotes correctly as required by POSIX, so do not add quotes.
7436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7449 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7450 if test -w "$cache_file"; then
7451 test "x$cache_file" != "x/dev/null" &&
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7453 $as_echo "$as_me: updating cache $cache_file" >&6;}
7454 cat confcache
>$cache_file
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7457 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7462 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7463 # Let make expand exec_prefix.
7464 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7466 DEFS
=-DHAVE_CONFIG_H
7470 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7471 # 1. Remove the extension, and $U if already installed.
7472 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7473 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7475 # will be set to the directory where LIBOBJS objects are built.
7476 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7477 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7481 LTLIBOBJS
=$ac_ltlibobjs
7484 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7485 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
7486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7488 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
7489 as_fn_error
"conditional \"GMAKE\" was never defined.
7490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7493 : ${CONFIG_STATUS=./config.status}
7495 ac_clean_files_save
=$ac_clean_files
7496 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7498 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7500 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7502 # Generated by $as_me.
7503 # Run this file to recreate the current configuration.
7504 # Compiler output produced by configure, useful for debugging
7505 # configure, is in config.log if it exists.
7511 SHELL=\${CONFIG_SHELL-$SHELL}
7514 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7515 ## -------------------- ##
7516 ## M4sh Initialization. ##
7517 ## -------------------- ##
7519 # Be more Bourne compatible
7520 DUALCASE
=1; export DUALCASE
# for MKS sh
7521 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7524 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7525 # is contrary to our usage. Disable this feature.
7526 alias -g '${1+"$@"}'='"$@"'
7527 setopt NO_GLOB_SUBST
7529 case `(set -o) 2>/dev/null` in #(
7541 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7542 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7543 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7544 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7545 # Prefer a ksh shell builtin over an external printf program on Solaris,
7546 # but without wasting forks for bash or zsh.
7547 if test -z "$BASH_VERSION$ZSH_VERSION" \
7548 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7549 as_echo='print
-r --'
7550 as_echo_n='print
-rn --'
7551 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7552 as_echo='printf %s
\n'
7553 as_echo_n='printf %s
'
7555 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7556 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7557 as_echo_n='/usr
/ucb
/echo -n'
7559 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7560 as_echo_n_body='eval
7564 expr "X$arg" : "X\\(.*\\)$as_nl";
7565 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7567 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7569 export as_echo_n_body
7570 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7573 as_echo='sh
-c $as_echo_body as_echo
'
7576 # The user is always right.
7577 if test "${PATH_SEPARATOR+set}" != set; then
7579 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7580 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7587 # We need space, tab and new line, in precisely that order. Quoting is
7588 # there to prevent editors from complaining about space-tab.
7589 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7590 # splitting by setting IFS to empty value.)
7593 # Find who we are. Look in the path if we contain no directory separator.
7595 *[\\/]* ) as_myself=$0 ;;
7596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir=.
7601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7607 # We did not find ourselves, most probably we were run as `sh COMMAND'
7608 # in which case we are not to be found in the path.
7609 if test "x$as_myself" = x
; then
7612 if test ! -f "$as_myself"; then
7613 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7617 # Unset variables that we do not need and which cause bugs (e.g. in
7618 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7619 # suppresses any "Segmentation fault" message there. '((' could
7620 # trigger a bug in pdksh 5.2.14.
7621 for as_var
in BASH_ENV ENV MAIL MAILPATH
7622 do eval test x\
${$as_var+set} = xset \
7623 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7636 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7639 # as_fn_error ERROR [LINENO LOG_FD]
7640 # ---------------------------------
7641 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7642 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7643 # script with status $?, using 1 if that was 0.
7646 as_status
=$?
; test $as_status -eq 0 && as_status
=1
7648 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7649 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7651 $as_echo "$as_me: error: $1" >&2
7652 as_fn_exit
$as_status
7656 # as_fn_set_status STATUS
7657 # -----------------------
7658 # Set $? to STATUS, without forking.
7662 } # as_fn_set_status
7666 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7676 # Portably unset VAR.
7679 { eval $1=; unset $1;}
7681 as_unset
=as_fn_unset
7682 # as_fn_append VAR VALUE
7683 # ----------------------
7684 # Append the text in VALUE to the end of the definition contained in VAR. Take
7685 # advantage of any shell optimizations that allow amortized linear growth over
7686 # repeated appends, instead of the typical quadratic growth present in naive
7688 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7689 eval 'as_fn_append ()
7700 # as_fn_arith ARG...
7701 # ------------------
7702 # Perform arithmetic evaluation on the ARGs, and store the result in the
7703 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7704 # must be portable across $(()) and expr.
7705 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7706 eval 'as_fn_arith ()
7713 as_val
=`expr "$@" || test $? -eq 1`
7718 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7719 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7725 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7726 as_basename
=basename
7731 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7737 as_me
=`$as_basename -- "$0" ||
7738 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7739 X"$0" : 'X\(//\)$' \| \
7740 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7742 sed '/^.*\/\([^/][^/]*\)\/*$/{
7756 # Avoid depending upon Character Ranges.
7757 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7758 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7759 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7760 as_cr_digits
='0123456789'
7761 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7763 ECHO_C
= ECHO_N
= ECHO_T
=
7764 case `echo -n x` in #(((((
7766 case `echo 'xy\c'` in
7767 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7769 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7776 rm -f conf$$ conf$$.exe conf$$.
file
7777 if test -d conf$$.dir
; then
7778 rm -f conf$$.dir
/conf$$.
file
7781 mkdir conf$$.dir
2>/dev
/null
7783 if (echo >conf$$.
file) 2>/dev
/null
; then
7784 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7786 # ... but there are two gotchas:
7787 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7788 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7789 # In both cases, we have to default to `cp -p'.
7790 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7792 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7800 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7801 rmdir conf$$.dir
2>/dev
/null
7806 # Create "$as_dir" as a directory, including parents if necessary.
7811 -*) as_dir
=.
/$as_dir;;
7813 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7817 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7818 *) as_qdir
=$as_dir;;
7820 as_dirs
="'$as_qdir' $as_dirs"
7821 as_dir
=`$as_dirname -- "$as_dir" ||
7822 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7823 X"$as_dir" : 'X\(//\)[^/]' \| \
7824 X"$as_dir" : 'X\(//\)$' \| \
7825 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7826 $as_echo X"$as_dir" |
7827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7844 test -d "$as_dir" && break
7846 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7847 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
7851 if mkdir
-p .
2>/dev
/null
; then
7852 as_mkdir_p
='mkdir -p "$as_dir"'
7854 test -d .
/-p && rmdir .
/-p
7858 if test -x / >/dev
/null
2>&1; then
7861 if ls -dL / >/dev
/null
2>&1; then
7868 if test -d "$1"; then
7874 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7875 ???[sx]*):;;*)false;;esac;fi
7879 as_executable_p
=$as_test_x
7881 # Sed expression to map a string onto a valid CPP name.
7882 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7884 # Sed expression to map a string onto a valid variable name.
7885 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7889 ## ----------------------------------- ##
7890 ## Main body of $CONFIG_STATUS script. ##
7891 ## ----------------------------------- ##
7893 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7896 # Save the log message, to keep $0 and so on meaningful, and to
7897 # report actual input values of CONFIG_FILES etc. instead of their
7898 # values after options handling.
7900 This file was extended by $as_me, which was
7901 generated by GNU Autoconf 2.64. Invocation command line was
7903 CONFIG_FILES = $CONFIG_FILES
7904 CONFIG_HEADERS = $CONFIG_HEADERS
7905 CONFIG_LINKS = $CONFIG_LINKS
7906 CONFIG_COMMANDS = $CONFIG_COMMANDS
7909 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7914 case $ac_config_files in *"
7915 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7918 case $ac_config_headers in *"
7919 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7924 # Files that config.status was made for.
7925 config_files="$ac_config_files"
7926 config_headers="$ac_config_headers"
7927 config_commands="$ac_config_commands"
7931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7933 \`$as_me' instantiates files and other configuration actions
7934 from templates according to the current configuration. Unless the files
7935 and actions are specified as TAGs, all are instantiated by default.
7937 Usage: $0 [OPTION]... [TAG]...
7939 -h, --help print this help, then exit
7940 -V, --version print version number and configuration settings, then exit
7941 -q, --quiet, --silent
7942 do not print progress messages
7943 -d, --debug don't remove temporary files
7944 --recheck update $as_me by reconfiguring in the same conditions
7945 --file=FILE[:TEMPLATE]
7946 instantiate the configuration file FILE
7947 --header=FILE[:TEMPLATE]
7948 instantiate the configuration header FILE
7950 Configuration files:
7953 Configuration headers:
7956 Configuration commands:
7959 Report bugs to the package provider."
7962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7965 configured by $0, generated by GNU Autoconf 2.64,
7966 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7968 Copyright (C) 2009 Free Software Foundation, Inc.
7969 This config.status script is free software; the Free Software Foundation
7970 gives unlimited permission to copy, distribute and modify it."
7975 test -n "\$AWK" || AWK=awk
7978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7979 # The default lists apply if the user does not specify any file.
7985 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7986 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7997 # Handling of the options.
7998 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8000 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8001 $as_echo "$ac_cs_version"; exit ;;
8002 --debug |
--debu |
--deb |
--de |
--d |
-d )
8004 --file |
--fil |
--fi |
--f )
8007 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8009 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8010 ac_need_defaults
=false
;;
8011 --header |
--heade |
--head |
--hea )
8014 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8016 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8017 ac_need_defaults
=false
;;
8019 # Conflict between --help and --header
8020 as_fn_error
"ambiguous option: \`$1'
8021 Try \`$0 --help' for more information.";;
8022 --help |
--hel |
-h )
8023 $as_echo "$ac_cs_usage"; exit ;;
8024 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8025 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8029 -*) as_fn_error
"unrecognized option: \`$1'
8030 Try \`$0 --help' for more information." ;;
8032 *) as_fn_append ac_config_targets
" $1"
8033 ac_need_defaults
=false
;;
8039 ac_configure_extra_args
=
8041 if $ac_cs_silent; then
8043 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8048 if \$ac_cs_recheck; then
8049 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8051 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8052 CONFIG_SHELL='$SHELL'
8058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8062 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8063 ## Running $as_me. ##
8069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8073 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8079 # Handling of arguments.
8080 for ac_config_target
in $ac_config_targets
8082 case $ac_config_target in
8083 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8084 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
8085 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8086 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8088 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8093 # If the user did not use the arguments to specify the items to instantiate,
8094 # then the envvar interface is used. Set only those that are not.
8095 # We use the long form for the default assignment because of an extremely
8096 # bizarre bug on SunOS 4.1.3.
8097 if $ac_need_defaults; then
8098 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8099 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8100 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8103 # Have a temporary directory for convenience. Make it in the build tree
8104 # simply because there is no reason against having it here, and in addition,
8105 # creating and moving files from /tmp can sometimes cause problems.
8106 # Hook for its removal unless debugging.
8107 # Note that there is a small window in which the directory will not be cleaned:
8108 # after its creation but before its name has been assigned to `$tmp'.
8112 trap 'exit_status=$?
8113 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8115 trap 'as_fn_exit 1' 1 2 13 15
8117 # Create a (secure) tmp directory for tmp files.
8120 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8121 test -n "$tmp" && test -d "$tmp"
8124 tmp
=.
/conf$$
-$RANDOM
8125 (umask 077 && mkdir
"$tmp")
8126 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
8128 # Set up the scripts for CONFIG_FILES section.
8129 # No need to generate them if there are no CONFIG_FILES.
8130 # This happens for instance with `./config.status config.h'.
8131 if test -n "$CONFIG_FILES"; then
8134 ac_cr
=`echo X | tr X '\015'`
8135 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8136 # But we know of no other shell where ac_cr would be empty at this
8137 # point, so we can use a bashism as a fallback.
8138 if test "x$ac_cr" = x
; then
8139 eval ac_cr
=\$
\'\\r
\'
8141 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8142 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8148 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8153 echo "cat >conf$$subs.awk <<_ACEOF" &&
8154 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8157 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8158 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8160 for ac_last_try in false false false false false :; do
8161 . ./conf$$subs.sh ||
8162 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8164 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8165 if test $ac_delim_n = $ac_delim_num; then
8167 elif $ac_last_try; then
8168 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8170 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8176 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
8180 s/^/S["/; s
/!.
*/"]=/
8190 s/\(.\{148\}\).*/\1/
8192 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8197 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8204 s/\(.\{148\}\).*/\1/
8206 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8210 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8215 ' <conf$$subs.awk | sed '
8220 ' >>$CONFIG_STATUS || ac_write_fail=1
8221 rm -f conf$$subs.awk
8222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8224 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8225 for (key in S) S_is_set[key] = 1
8231 nfields = split(line, field, "@
")
8233 len = length(field[1])
8234 for (i = 2; i < nfields; i++) {
8236 keylen = length(key)
8237 if (S_is_set[key]) {
8239 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8240 len += length(value) + length(field[++i])
8251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8252 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8253 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8256 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8257 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
8260 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8261 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8262 # trailing colons and then remove the whole line if VPATH becomes empty
8263 # (actually we leave an empty line to preserve line numbers).
8264 if test "x
$srcdir" = x.; then
8265 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8269 s/^\([^=]*=[ ]*\):*/\1/
8275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8276 fi # test -n "$CONFIG_FILES"
8278 # Set up the scripts for CONFIG_HEADERS section.
8279 # No need to generate them if there are no CONFIG_HEADERS.
8280 # This happens for instance with `./config.status Makefile'.
8281 if test -n "$CONFIG_HEADERS"; then
8282 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8286 # Transform confdefs.h into an awk script `defines.awk', embedded as
8287 # here-document in config.status, that substitutes the proper values into
8288 # config.h.in to produce config.h.
8290 # Create a delimiter string that does not exist in confdefs.h, to ease
8291 # handling of long lines.
8293 for ac_last_try in false false :; do
8294 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8295 if test -z "$ac_t"; then
8297 elif $ac_last_try; then
8298 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
8300 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8304 # For the awk script, D is an array of macro values keyed by name,
8305 # likewise P contains macro parameters if any. Preserve backslash
8306 # newline sequences.
8308 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8310 s/.\{148\}/&'"$ac_delim"'/g
8313 s/^[ ]*#[ ]*define[ ][ ]*/ /
8320 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8322 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8326 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8327 D["\
1"]=" \
3\\\\\\n
"\\/p
8329 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8334 s/.\{148\}/&'"$ac_delim"'/g
8339 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8342 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8344 ' <confdefs.h | sed '
8345 s/'"$ac_delim"'/"\\\
8346 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8349 for (key in D) D_is_set[key] = 1
8352 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8354 split(line, arg, " ")
8355 if (arg[1] == "#") {
8359 defundef
= substr
(arg
[1], 2)
8362 split(mac1
, mac2
, "(") #)
8364 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8365 if (D_is_set
[macro
]) {
8366 # Preserve the white space surrounding the "#".
8367 print prefix
"define", macro P
[macro
] D
[macro
]
8370 # Replace #undef with comments. This is necessary, for example,
8371 # in the case of _POSIX_SOURCE, which is predefined and required
8372 # on some systems where configure will not decide to define it.
8373 if (defundef
== "undef") {
8374 print
"/*", prefix defundef
, macro
, "*/"
8382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8383 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8384 fi # test -n "$CONFIG_HEADERS"
8387 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8392 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8394 case $ac_mode$ac_tag in
8396 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8397 :[FH
]-) ac_tag
=-:-;;
8398 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8415 -) ac_f
="$tmp/stdin";;
8416 *) # Look for the file first in the build tree, then in the source tree
8417 # (if the path is not absolute). The absolute path cannot be DOS-style,
8418 # because $ac_f cannot contain `:'.
8422 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8424 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8426 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8427 as_fn_append ac_file_inputs
" '$ac_f'"
8430 # Let's still pretend it is `configure' which instantiates (i.e., don't
8431 # use $as_me), people would be surprised to read:
8432 # /* config.h. Generated by config.status. */
8433 configure_input
='Generated from '`
8434 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8436 if test x
"$ac_file" != x-
; then
8437 configure_input
="$ac_file. $configure_input"
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8439 $as_echo "$as_me: creating $ac_file" >&6;}
8441 # Neutralize special characters interpreted by sed in replacement strings.
8442 case $configure_input in #(
8443 *\
&* |
*\|
* |
*\\* )
8444 ac_sed_conf_input
=`$as_echo "$configure_input" |
8445 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8446 *) ac_sed_conf_input
=$configure_input;;
8450 *:-:* |
*:-) cat >"$tmp/stdin" \
8451 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8456 ac_dir
=`$as_dirname -- "$ac_file" ||
8457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8458 X"$ac_file" : 'X\(//\)[^/]' \| \
8459 X"$ac_file" : 'X\(//\)$' \| \
8460 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8461 $as_echo X"$ac_file" |
8462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8479 as_dir
="$ac_dir"; as_fn_mkdir_p
8483 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8485 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8486 # A ".." for each directory in $ac_dir_suffix.
8487 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8488 case $ac_top_builddir_sub in
8489 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8490 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8493 ac_abs_top_builddir
=$ac_pwd
8494 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8495 # for backward compatibility:
8496 ac_top_builddir
=$ac_top_build_prefix
8499 .
) # We are building in place.
8501 ac_top_srcdir
=$ac_top_builddir_sub
8502 ac_abs_top_srcdir
=$ac_pwd ;;
8503 [\\/]* | ?
:[\\/]* ) # Absolute name.
8504 ac_srcdir
=$srcdir$ac_dir_suffix;
8505 ac_top_srcdir
=$srcdir
8506 ac_abs_top_srcdir
=$srcdir ;;
8508 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8509 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8510 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8512 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8522 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8523 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8528 # If the template does not know about datarootdir, expand it.
8529 # FIXME: This hack should be removed a few years after 2.60.
8530 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8541 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8542 *datarootdir
*) ac_datarootdir_seen
=yes;;
8543 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8545 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8548 ac_datarootdir_hack='
8549 s&@datadir@&$datadir&g
8550 s&@docdir@&$docdir&g
8551 s&@infodir@&$infodir&g
8552 s&@localedir@&$localedir&g
8553 s&@mandir@&$mandir&g
8554 s&\\\${datarootdir}&$datarootdir&g' ;;
8558 # Neutralize VPATH when `$srcdir' = `.'.
8559 # Shell code in configure.ac might set extrasub.
8560 # FIXME: do we really want to maintain this feature?
8561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8562 ac_sed_extra="$ac_vpsub
8565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8567 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8568 s|@configure_input@|
$ac_sed_conf_input|
;t t
8569 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8570 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8571 s
&@srcdir@
&$ac_srcdir&;t t
8572 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8573 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8574 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8575 s
&@builddir@
&$ac_builddir&;t t
8576 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8577 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8578 s
&@INSTALL@
&$ac_INSTALL&;t t
8579 $ac_datarootdir_hack
8581 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8582 || as_fn_error "could not create
$ac_file" "$LINENO" 5
8584 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8585 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8586 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8588 which seems to be undefined. Please make sure it is defined." >&5
8589 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8590 which seems to be undefined. Please make sure it is defined." >&2;}
8594 -) cat "$tmp/out" && rm -f "$tmp/out";;
8595 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8597 || as_fn_error "could not create $ac_file" "$LINENO" 5
8603 if test x"$ac_file" != x-; then
8605 $as_echo "/* $configure_input */" \
8606 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8607 } >"$tmp/config.h" \
8608 || as_fn_error "could not create $ac_file" "$LINENO" 5
8609 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8611 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8614 mv "$tmp/config.h" "$ac_file" \
8615 || as_fn_error "could not create $ac_file" "$LINENO" 5
8618 $as_echo "/* $configure_input */" \
8619 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8620 || as_fn_error "could not create -" "$LINENO" 5
8624 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8625 $as_echo "$as_me: executing $ac_file commands" >&6;}
8630 case $ac_file$ac_mode in
8631 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8632 "default":C) case x$CONFIG_HEADERS in
8633 xconfig.h:config.in)
8644 ac_clean_files=$ac_clean_files_save
8646 test $ac_write_fail = 0 ||
8647 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8650 # configure is writing to config.log, and then calls config.status.
8651 # config.status does its own redirection, appending to config.log.
8652 # Unfortunately, on DOS this fails, as config.log is still kept open
8653 # by configure, so config.status won't be able to
write to it
; its
8654 # output is simply discarded. So we exec the FD to /dev/null,
8655 # effectively closing config.log, so it can be properly (re)opened and
8656 # appended to by config.status. When coming back to configure, we
8657 # need to make the FD available again.
8658 if test "$no_create" != yes; then
8660 ac_config_status_args
=
8661 test "$silent" = yes &&
8662 ac_config_status_args
="$ac_config_status_args --quiet"
8664 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8666 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8667 # would make configure fail if this is the last instruction.
8668 $ac_cs_success || as_fn_exit $?
8670 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8672 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}