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
648 MAINTAINER_MODE_FALSE
677 program_transform_name
690 enable_option_checking
691 enable_maintainer_mode
698 enable_build_warnings
699 enable_gdb_build_warnings
703 enable_inprocess_agent
705 ac_precious_vars
='build_alias
719 # Initialize some variables set by options.
721 ac_init_version
=false
722 ac_unrecognized_opts
=
724 # The variables have the same names as the options, with
725 # dashes changed to underlines.
733 program_transform_name
=s
,x
,x
,
741 # Installation directory options.
742 # These are left unexpanded so users can "make install exec_prefix=/foo"
743 # and all the variables that are supposed to be based on exec_prefix
744 # by default will actually change.
745 # Use braces instead of parens because sh, perl, etc. also accept them.
746 # (The list follows the same order as the GNU Coding Standards.)
747 bindir
='${exec_prefix}/bin'
748 sbindir
='${exec_prefix}/sbin'
749 libexecdir
='${exec_prefix}/libexec'
750 datarootdir
='${prefix}/share'
751 datadir
='${datarootdir}'
752 sysconfdir
='${prefix}/etc'
753 sharedstatedir
='${prefix}/com'
754 localstatedir
='${prefix}/var'
755 includedir
='${prefix}/include'
756 oldincludedir
='/usr/include'
757 docdir
='${datarootdir}/doc/${PACKAGE}'
758 infodir
='${datarootdir}/info'
763 libdir
='${exec_prefix}/lib'
764 localedir
='${datarootdir}/locale'
765 mandir
='${datarootdir}/man'
771 # If the previous option needs an argument, assign it.
772 if test -n "$ac_prev"; then
773 eval $ac_prev=\
$ac_option
779 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783 # Accept the important Cygnus configure options, so we can diagnose typos.
785 case $ac_dashdash$ac_option in
789 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
791 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
794 -build |
--build |
--buil |
--bui |
--bu)
795 ac_prev
=build_alias
;;
796 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
797 build_alias
=$ac_optarg ;;
799 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
800 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
801 ac_prev
=cache_file
;;
802 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
803 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
804 cache_file
=$ac_optarg ;;
807 cache_file
=config.cache
;;
809 -datadir |
--datadir |
--datadi |
--datad)
811 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
812 datadir
=$ac_optarg ;;
814 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
815 |
--dataroo |
--dataro |
--datar)
816 ac_prev
=datarootdir
;;
817 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
818 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
819 datarootdir
=$ac_optarg ;;
821 -disable-* |
--disable-*)
822 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
825 as_fn_error
"invalid feature name: $ac_useropt"
826 ac_useropt_orig
=$ac_useropt
827 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
832 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
833 ac_unrecognized_sep
=', ';;
835 eval enable_
$ac_useropt=no
;;
837 -docdir |
--docdir |
--docdi |
--doc |
--do)
839 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
842 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
844 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
847 -enable-* |
--enable-*)
848 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
851 as_fn_error
"invalid feature name: $ac_useropt"
852 ac_useropt_orig
=$ac_useropt
853 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
858 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
859 ac_unrecognized_sep
=', ';;
861 eval enable_
$ac_useropt=\
$ac_optarg ;;
863 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
864 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
865 |
--exec |
--exe |
--ex)
866 ac_prev
=exec_prefix
;;
867 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
868 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
869 |
--exec=* |
--exe=* |
--ex=*)
870 exec_prefix
=$ac_optarg ;;
872 -gas |
--gas |
--ga |
--g)
873 # Obsolete; use --with-gas.
876 -help |
--help |
--hel |
--he |
-h)
878 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
879 ac_init_help
=recursive
;;
880 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
881 ac_init_help
=short
;;
883 -host |
--host |
--hos |
--ho)
884 ac_prev
=host_alias
;;
885 -host=* |
--host=* |
--hos=* |
--ho=*)
886 host_alias
=$ac_optarg ;;
888 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
890 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
892 htmldir
=$ac_optarg ;;
894 -includedir |
--includedir |
--includedi |
--included |
--include \
895 |
--includ |
--inclu |
--incl |
--inc)
896 ac_prev
=includedir
;;
897 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
898 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
899 includedir
=$ac_optarg ;;
901 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
903 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
904 infodir
=$ac_optarg ;;
906 -libdir |
--libdir |
--libdi |
--libd)
908 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
911 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
912 |
--libexe |
--libex |
--libe)
913 ac_prev
=libexecdir
;;
914 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
915 |
--libexe=* |
--libex=* |
--libe=*)
916 libexecdir
=$ac_optarg ;;
918 -localedir |
--localedir |
--localedi |
--localed |
--locale)
920 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
921 localedir
=$ac_optarg ;;
923 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
924 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
925 ac_prev
=localstatedir
;;
926 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
927 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
928 localstatedir
=$ac_optarg ;;
930 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
932 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
936 # Obsolete; use --without-fp.
939 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
940 |
--no-cr |
--no-c |
-n)
943 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
944 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
947 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
948 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
949 |
--oldin |
--oldi |
--old |
--ol |
--o)
950 ac_prev
=oldincludedir
;;
951 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
952 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
953 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
954 oldincludedir
=$ac_optarg ;;
956 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
958 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
961 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
962 |
--program-pre |
--program-pr |
--program-p)
963 ac_prev
=program_prefix
;;
964 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
965 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
966 program_prefix
=$ac_optarg ;;
968 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
969 |
--program-suf |
--program-su |
--program-s)
970 ac_prev
=program_suffix
;;
971 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
972 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
973 program_suffix
=$ac_optarg ;;
975 -program-transform-name |
--program-transform-name \
976 |
--program-transform-nam |
--program-transform-na \
977 |
--program-transform-n |
--program-transform- \
978 |
--program-transform |
--program-transfor \
979 |
--program-transfo |
--program-transf \
980 |
--program-trans |
--program-tran \
981 |
--progr-tra |
--program-tr |
--program-t)
982 ac_prev
=program_transform_name
;;
983 -program-transform-name=* |
--program-transform-name=* \
984 |
--program-transform-nam=* |
--program-transform-na=* \
985 |
--program-transform-n=* |
--program-transform-=* \
986 |
--program-transform=* |
--program-transfor=* \
987 |
--program-transfo=* |
--program-transf=* \
988 |
--program-trans=* |
--program-tran=* \
989 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
990 program_transform_name
=$ac_optarg ;;
992 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
994 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
997 -psdir |
--psdir |
--psdi |
--psd |
--ps)
999 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1002 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1003 |
-silent |
--silent |
--silen |
--sile |
--sil)
1006 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1008 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1010 sbindir
=$ac_optarg ;;
1012 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1013 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1014 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1016 ac_prev
=sharedstatedir
;;
1017 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1018 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1019 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1021 sharedstatedir
=$ac_optarg ;;
1023 -site |
--site |
--sit)
1025 -site=* |
--site=* |
--sit=*)
1028 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1030 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1031 srcdir
=$ac_optarg ;;
1033 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1034 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1035 ac_prev
=sysconfdir
;;
1036 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1037 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1038 sysconfdir
=$ac_optarg ;;
1040 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1041 ac_prev
=target_alias
;;
1042 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1043 target_alias
=$ac_optarg ;;
1045 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1048 -version |
--version |
--versio |
--versi |
--vers |
-V)
1049 ac_init_version
=: ;;
1052 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1055 as_fn_error
"invalid package name: $ac_useropt"
1056 ac_useropt_orig
=$ac_useropt
1057 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1062 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1063 ac_unrecognized_sep
=', ';;
1065 eval with_
$ac_useropt=\
$ac_optarg ;;
1067 -without-* |
--without-*)
1068 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1071 as_fn_error
"invalid package name: $ac_useropt"
1072 ac_useropt_orig
=$ac_useropt
1073 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1078 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1079 ac_unrecognized_sep
=', ';;
1081 eval with_
$ac_useropt=no
;;
1084 # Obsolete; use --with-x.
1087 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1088 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1089 ac_prev
=x_includes
;;
1090 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1091 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1092 x_includes
=$ac_optarg ;;
1094 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1095 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1096 ac_prev
=x_libraries
;;
1097 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1098 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1099 x_libraries
=$ac_optarg ;;
1101 -*) as_fn_error
"unrecognized option: \`$ac_option'
1102 Try \`$0 --help' for more information."
1106 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 case $ac_envvar in #(
1109 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1110 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1112 eval $ac_envvar=\
$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1119 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 if test -n "$ac_prev"; then
1127 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1128 as_fn_error
"missing argument to $ac_option"
1131 if test -n "$ac_unrecognized_opts"; then
1132 case $enable_option_checking in
1134 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1135 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1139 # Check all directory arguments for consistency.
1140 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1143 libdir localedir mandir
1145 eval ac_val
=\$
$ac_var
1146 # Remove trailing slashes.
1149 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1150 eval $ac_var=\
$ac_val;;
1152 # Be sure to have absolute directory names.
1154 [\\/$
]* | ?
:[\\/]* ) continue;;
1155 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1157 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1160 # There might be people who depend on the old broken behavior: `$host'
1161 # used to hold the argument of --host etc.
1162 # FIXME: To remove some day.
1165 target
=$target_alias
1167 # FIXME: To remove some day.
1168 if test "x$host_alias" != x
; then
1169 if test "x$build_alias" = x
; then
1170 cross_compiling
=maybe
1171 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1172 If a cross compiler is detected then cross compile mode will be used." >&2
1173 elif test "x$build_alias" != "x$host_alias"; then
1179 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1181 test "$silent" = yes && exec 6>/dev
/null
1184 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1185 ac_ls_di
=`ls -di .` &&
1186 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1187 as_fn_error
"working directory cannot be determined"
1188 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1189 as_fn_error
"pwd does not report name of working directory"
1192 # Find the source files, if location was not specified.
1193 if test -z "$srcdir"; then
1194 ac_srcdir_defaulted
=yes
1195 # Try the directory containing this script, then the parent directory.
1196 ac_confdir
=`$as_dirname -- "$as_myself" ||
1197 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1198 X"$as_myself" : 'X\(//\)[^/]' \| \
1199 X"$as_myself" : 'X\(//\)$' \| \
1200 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1201 $as_echo X"$as_myself" |
1202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1224 ac_srcdir_defaulted
=no
1226 if test ! -r "$srcdir/$ac_unique_file"; then
1227 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1228 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1230 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1232 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1234 # When building in place, set srcdir=.
1235 if test "$ac_abs_confdir" = "$ac_pwd"; then
1238 # Remove unnecessary trailing slashes from srcdir.
1239 # Double slashes in file names in object file debugging info
1240 # mess up M-x gdb in Emacs.
1242 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 for ac_var
in $ac_precious_vars; do
1245 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1246 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1247 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1248 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1252 # Report the --help message.
1254 if test "$ac_init_help" = "long"; then
1255 # Omit some internal or obsolete options to make the list less imposing.
1256 # This message is too long to be a string in the A/UX 3.1 sh.
1258 \`configure' configures this package to adapt to many kinds of systems.
1260 Usage: $0 [OPTION]... [VAR=VALUE]...
1262 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1263 VAR=VALUE. See below for descriptions of some of the useful variables.
1265 Defaults for the options are specified in brackets.
1268 -h, --help display this help and exit
1269 --help=short display options specific to this package
1270 --help=recursive display the short help of all the included packages
1271 -V, --version display version information and exit
1272 -q, --quiet, --silent do not print \`checking...' messages
1273 --cache-file=FILE cache test results in FILE [disabled]
1274 -C, --config-cache alias for \`--cache-file=config.cache'
1275 -n, --no-create do not create output files
1276 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1278 Installation directories:
1279 --prefix=PREFIX install architecture-independent files in PREFIX
1280 [$ac_default_prefix]
1281 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1284 By default, \`make install' will install all the files in
1285 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1286 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1287 for instance \`--prefix=\$HOME'.
1289 For better control, use the options below.
1291 Fine tuning of the installation directories:
1292 --bindir=DIR user executables [EPREFIX/bin]
1293 --sbindir=DIR system admin executables [EPREFIX/sbin]
1294 --libexecdir=DIR program executables [EPREFIX/libexec]
1295 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1296 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1297 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1298 --libdir=DIR object code libraries [EPREFIX/lib]
1299 --includedir=DIR C header files [PREFIX/include]
1300 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1301 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1302 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1303 --infodir=DIR info documentation [DATAROOTDIR/info]
1304 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1305 --mandir=DIR man documentation [DATAROOTDIR/man]
1306 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1307 --htmldir=DIR html documentation [DOCDIR]
1308 --dvidir=DIR dvi documentation [DOCDIR]
1309 --pdfdir=DIR pdf documentation [DOCDIR]
1310 --psdir=DIR ps documentation [DOCDIR]
1316 --program-prefix=PREFIX prepend PREFIX to installed program names
1317 --program-suffix=SUFFIX append SUFFIX to installed program names
1318 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1321 --build=BUILD configure
for building on BUILD
[guessed
]
1322 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1323 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1327 if test -n "$ac_init_help"; then
1332 --disable-option-checking ignore unrecognized
--enable/--with options
1333 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1334 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1335 --enable-maintainer-mode enable make rules and dependencies not useful
1336 (and sometimes confusing
) to the casual installer
1337 --disable-largefile omit support
for large files
1338 --enable-libmcheck Try linking with
-lmcheck if available
1339 --enable-werror treat compile warnings as errors
1340 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1341 --enable-gdb-build-warnings
1342 enable GDB specific build-time compiler warnings
if
1344 --enable-inprocess-agent
1348 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1349 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1350 --with-ust=PATH Specify prefix directory
for the installed UST package
1351 Equivalent to
--with-ust-include=PATH
/include
1352 plus
--with-ust-lib=PATH
/lib
1353 --with-ust-include=PATH Specify directory
for installed UST include files
1354 --with-ust-lib=PATH Specify the directory
for the installed UST library
1355 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1356 --with-bugurl=URL Direct users to URL to report a bug
1357 --with-libthread-db=PATH
1358 use given libthread_db directly
1360 Some influential environment variables
:
1361 CC C compiler
command
1362 CFLAGS C compiler flags
1363 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1364 nonstandard directory
<lib dir
>
1365 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1366 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1367 you have headers
in a nonstandard directory
<include dir
>
1368 CXX C
++ compiler
command
1369 CXXFLAGS C
++ compiler flags
1372 Use these variables to override the choices made by
`configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1375 Report bugs to the package provider.
1380 if test "$ac_init_help" = "recursive"; then
1381 # If there are subdirs, report their specific --help.
1382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1383 test -d "$ac_dir" ||
1384 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1392 # A ".." for each directory in $ac_dir_suffix.
1393 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1394 case $ac_top_builddir_sub in
1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 ac_abs_top_builddir=$ac_pwd
1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1401 # for backward compatibility:
1402 ac_top_builddir=$ac_top_build_prefix
1405 .) # We are building in place.
1407 ac_top_srcdir=$ac_top_builddir_sub
1408 ac_abs_top_srcdir=$ac_pwd ;;
1409 [\\/]* | ?:[\\/]* ) # Absolute name.
1410 ac_srcdir=$srcdir$ac_dir_suffix;
1411 ac_top_srcdir=$srcdir
1412 ac_abs_top_srcdir=$srcdir ;;
1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415 ac_top_srcdir=$ac_top_build_prefix$srcdir
1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420 cd "$ac_dir" || { ac_status=$?; continue; }
1421 # Check for guested configure.
1422 if test -f "$ac_srcdir/configure.gnu"; then
1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1425 elif test -f "$ac_srcdir/configure"; then
1427 $SHELL "$ac_srcdir/configure" --help=recursive
1429 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1431 cd "$ac_pwd" || { ac_status=$?; break; }
1435 test -n "$ac_init_help" && exit $ac_status
1436 if $ac_init_version; then
1439 generated by GNU Autoconf 2.64
1441 Copyright (C) 2009 Free Software Foundation, Inc.
1442 This configure script is free software; the Free Software Foundation
1443 gives unlimited permission to copy, distribute and modify it.
1448 ## ------------------------ ##
1449 ## Autoconf initialization. ##
1450 ## ------------------------ ##
1452 # ac_fn_c_try_compile LINENO
1453 # --------------------------
1454 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1455 ac_fn_c_try_compile ()
1457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1458 rm -f conftest.$ac_objext
1459 if { { ac_try="$ac_compile"
1461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1462 *) ac_try_echo
=$ac_try;;
1464 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1465 $as_echo "$ac_try_echo"; } >&5
1466 (eval "$ac_compile") 2>conftest.err
1468 if test -s conftest.err
; then
1469 grep -v '^ *+' conftest.err
>conftest.er1
1470 cat conftest.er1
>&5
1471 mv -f conftest.er1 conftest.err
1473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1474 test $ac_status = 0; } && {
1475 test -z "$ac_c_werror_flag" ||
1476 test ! -s conftest.err
1477 } && test -s conftest.
$ac_objext; then :
1480 $as_echo "$as_me: failed program was:" >&5
1481 sed 's/^/| /' conftest.
$ac_ext >&5
1485 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1488 } # ac_fn_c_try_compile
1490 # ac_fn_cxx_try_compile LINENO
1491 # ----------------------------
1492 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1493 ac_fn_cxx_try_compile
()
1495 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1496 rm -f conftest.
$ac_objext
1497 if { { ac_try
="$ac_compile"
1499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;;
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 $as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_compile") 2>conftest.err
1506 if test -s conftest.err; then
1507 grep -v '^ *+' conftest.err >conftest.er1
1508 cat conftest.er1 >&5
1509 mv -f conftest.er1 conftest.err
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } && {
1513 test -z "$ac_cxx_werror_flag" ||
1514 test ! -s conftest.err
1515 } && test -s conftest.$ac_objext; then :
1518 $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.$ac_ext >&5
1523 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1526 } # ac_fn_cxx_try_compile
1528 # ac_fn_c_try_cpp LINENO
1529 # ----------------------
1530 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 if { { ac_try="$ac_cpp conftest.$ac_ext"
1536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1537 *) ac_try_echo
=$ac_try;;
1539 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1543 if test -s conftest.err
; then
1544 grep -v '^ *+' conftest.err
>conftest.er1
1545 cat conftest.er1
>&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } >/dev
/null
&& {
1550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.
$ac_ext >&5
1560 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1565 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1566 # -------------------------------------------------------
1567 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1568 # the include files in INCLUDES and setting the cache variable VAR
1570 ac_fn_c_check_header_mongrel
()
1572 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1573 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1575 $as_echo_n "checking for $2... " >&6; }
1576 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1577 $as_echo_n "(cached) " >&6
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1581 $as_echo "$ac_res" >&6; }
1583 # Is the header compilable?
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1585 $as_echo_n "checking $2 usability... " >&6; }
1586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1587 /* end confdefs.h. */
1591 if ac_fn_c_try_compile
"$LINENO"; then :
1592 ac_header_compiler
=yes
1594 ac_header_compiler
=no
1596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1598 $as_echo "$ac_header_compiler" >&6; }
1600 # Is the header present?
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1602 $as_echo_n "checking $2 presence... " >&6; }
1603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1604 /* end confdefs.h. */
1607 if ac_fn_c_try_cpp
"$LINENO"; then :
1608 ac_header_preproc
=yes
1610 ac_header_preproc
=no
1612 rm -f conftest.err conftest.
$ac_ext
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1614 $as_echo "$ac_header_preproc" >&6; }
1616 # So? What about this header?
1617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1620 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1622 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1626 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1628 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1630 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1632 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1634 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638 $as_echo_n "checking for $2... " >&6; }
1639 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1640 $as_echo_n "(cached) " >&6
1642 eval "$3=\$ac_header_compiler"
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1650 } # ac_fn_c_check_header_mongrel
1652 # ac_fn_c_try_run LINENO
1653 # ----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655 # that executables *can* be run.
1658 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1659 if { { ac_try
="$ac_link"
1661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>&5
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1670 { { case "(($ac_try" in
1671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1672 *) ac_try_echo
=$ac_try;;
1674 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_try") 2>&5
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; }; }; then :
1682 $as_echo "$as_me: program exited with status $ac_status" >&5
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.
$ac_ext >&5
1686 ac_retval
=$ac_status
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1694 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695 # -------------------------------------------------------
1696 # Tests whether HEADER exists and can be compiled using the include files in
1697 # INCLUDES, setting the cache variable VAR accordingly.
1698 ac_fn_c_check_header_compile
()
1700 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704 $as_echo_n "(cached) " >&6
1706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1711 if ac_fn_c_try_compile
"$LINENO"; then :
1716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1723 } # ac_fn_c_check_header_compile
1725 # ac_fn_c_try_link LINENO
1726 # -----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded.
1730 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1731 rm -f conftest.
$ac_objext conftest
$ac_exeext
1732 if { { ac_try
="$ac_link"
1734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>conftest.err
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest$ac_exeext && {
1751 test "$cross_compiling" = yes ||
1752 $as_test_x conftest$ac_exeext
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1761 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763 # interfere with the next link command; also delete a directory that is
1764 # left behind by Apple's compiler. We do this before executing the actions.
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 } # ac_fn_c_try_link
1771 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1772 # -------------------------------------------
1773 # Tests whether TYPE exists after having included INCLUDES, setting cache
1774 # variable VAR accordingly.
1775 ac_fn_c_check_type ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781 $as_echo_n "(cached) " >&6
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1809 if ac_fn_c_try_compile "$LINENO"; then :
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823 } # ac_fn_c_check_type
1825 # ac_fn_c_check_func LINENO FUNC VAR
1826 # ----------------------------------
1827 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1828 ac_fn_c_check_func ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834 $as_echo_n "(cached) " >&6
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840 #define $2 innocuous_$2
1842 /* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char $2 (); below.
1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845 <limits.h> exists even on freestanding compilers. */
1848 # include <limits.h>
1850 # include <assert.h>
1855 /* Override any GCC internal prototype to avoid an error.
1856 Use char because int might match the return type of a GCC
1857 builtin and then its argument prototype would still apply. */
1862 /* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865 #if defined __stub_$2 || defined __stub___$2
1877 if ac_fn_c_try_link "$LINENO"; then :
1882 rm -f core conftest.err conftest.$ac_objext \
1883 conftest$ac_exeext conftest.$ac_ext
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 } # ac_fn_c_check_func
1892 # ac_fn_c_check_decl LINENO SYMBOL VAR
1893 # ------------------------------------
1894 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1895 ac_fn_c_check_decl ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1899 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1901 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 $as_echo_n "(cached) " >&6
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1911 #ifndef $as_decl_name
1913 (void) $as_decl_use;
1915 (void) $as_decl_name;
1923 if ac_fn_c_try_compile "$LINENO"; then :
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935 } # ac_fn_c_check_decl
1937 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1938 # --------------------------------------------
1939 # Tries to find the compile-time value of EXPR in a program that includes
1940 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1942 ac_fn_c_compute_int ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if test "$cross_compiling" = yes; then
1946 # Depending upon the size, compute the lo and hi bounds.
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1953 static int test_array [1 - 2 * !(($2) >= 0)];
1960 if ac_fn_c_try_compile "$LINENO"; then :
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1969 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 ac_hi=$ac_mid; break
1979 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1980 if test $ac_lo -le $ac_mid; then
1984 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1995 static int test_array [1 - 2 * !(($2) < 0)];
2002 if ac_fn_c_try_compile "$LINENO"; then :
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2011 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2018 if ac_fn_c_try_compile "$LINENO"; then :
2019 ac_lo=$ac_mid; break
2021 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2022 if test $ac_mid -le $ac_hi; then
2026 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 # Binary search between lo and hi bounds.
2037 while test "x$ac_lo" != "x$ac_hi"; do
2038 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2045 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2052 if ac_fn_c_try_compile "$LINENO"; then :
2055 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2067 static long int longval () { return $2; }
2068 static unsigned long int ulongval () { return $2; }
2075 FILE *f = fopen ("conftest.val", "w");
2080 long int i = longval ();
2083 fprintf (f, "%ld", i);
2087 unsigned long int i = ulongval ();
2090 fprintf (f, "%lu", i);
2092 /* Do not output a trailing newline, as this causes \r\n confusion
2093 on some platforms. */
2094 return ferror (f) || fclose (f) != 0;
2100 if ac_fn_c_try_run "$LINENO"; then :
2101 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2106 conftest.$ac_objext conftest.beam conftest.$ac_ext
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2113 } # ac_fn_c_compute_int
2115 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2116 # ----------------------------------------------------
2117 # Tries to find if the field MEMBER exists in type AGGR, after including
2118 # INCLUDES, setting cache variable VAR accordingly.
2119 ac_fn_c_check_member ()
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2123 $as_echo_n "checking for $2.$3... " >&6; }
2124 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2125 $as_echo_n "(cached) " >&6
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2140 if ac_fn_c_try_compile "$LINENO"; then :
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2150 if (sizeof ac_aggr.$3)
2156 if ac_fn_c_try_compile "$LINENO"; then :
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2170 } # ac_fn_c_check_member
2171 cat >config.log <<_ACEOF
2172 This file contains any messages produced by compilers while
2173 running configure, to aid debugging if configure makes a mistake.
2175 It was created by $as_me, which was
2176 generated by GNU Autoconf 2.64. Invocation command line was
2188 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2189 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2190 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2191 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2192 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2194 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2195 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2197 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2198 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2199 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2200 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2201 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2202 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2203 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 test -z "$as_dir" && as_dir=.
2212 $as_echo "PATH: $as_dir"
2228 # Keep a trace of the command line.
2229 # Strip out --no-create and --no-recursion so they do not pile up.
2230 # Strip out --silent because we don't want to record it for future runs.
2231 # Also quote any args containing shell meta-characters.
2232 # Make two passes to allow for proper duplicate-argument suppression.
2236 ac_must_keep_next=false
2242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2244 | -silent | --silent | --silen | --sile | --sil)
2247 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2250 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2252 as_fn_append ac_configure_args1 " '$ac_arg'"
2253 if test $ac_must_keep_next = true; then
2254 ac_must_keep_next=false # Got value, back to normal.
2257 *=* | --config-cache | -C | -disable-* | --disable-* \
2258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2260 | -with-* | --with-* | -without-* | --without-* | --x)
2261 case "$ac_configure_args0 " in
2262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2265 -* ) ac_must_keep_next=true ;;
2268 as_fn_append ac_configure_args " '$ac_arg'"
2273 { ac_configure_args0=; unset ac_configure_args0;}
2274 { ac_configure_args1=; unset ac_configure_args1;}
2276 # When interrupted or exit'd, cleanup temporary files, and complete
2277 # config.log. We remove comments because anyway the quotes in there
2278 # would cause problems or look ugly.
2279 # WARNING: Use '\'' to represent an apostrophe within the trap.
2280 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2281 trap 'exit_status=$?
2282 # Save into config.log some information that might help in debugging.
2287 ## ---------------- ##
2288 ## Cache variables. ##
2289 ## ---------------- ##
2292 # The following way of writing the cache mishandles newlines in values,
2294 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2295 eval ac_val=\$$ac_var
2299 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2300 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2303 _ | IFS | as_nl) ;; #(
2304 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2305 *) { eval $ac_var=; unset $ac_var;} ;;
2310 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2311 *${as_nl}ac_space=\ *)
2313 "s/'\''/'\''\\\\'\'''\''/g;
2314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2317 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2325 ## ----------------- ##
2326 ## Output variables. ##
2327 ## ----------------- ##
2330 for ac_var in $ac_subst_vars
2332 eval ac_val=\$$ac_var
2334 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2336 $as_echo "$ac_var='\''$ac_val'\''"
2340 if test -n "$ac_subst_files"; then
2342 ## ------------------- ##
2343 ## File substitutions. ##
2344 ## ------------------- ##
2347 for ac_var in $ac_subst_files
2349 eval ac_val=\$$ac_var
2351 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353 $as_echo "$ac_var='\''$ac_val'\''"
2358 if test -s confdefs.h; then
2368 test "$ac_signal" != 0 &&
2369 $as_echo "$as_me: caught signal $ac_signal"
2370 $as_echo "$as_me: exit $exit_status"
2372 rm -f core *.core core.conftest.* &&
2373 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2376 for ac_signal in 1 2 13 15; do
2377 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2382 rm -f -r conftest* confdefs.h
2384 $as_echo "/* confdefs.h */" > confdefs.h
2386 # Predefined preprocessor variables.
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_NAME "$PACKAGE_NAME"
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_STRING "$PACKAGE_STRING"
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_URL "$PACKAGE_URL"
2413 # Let the site file select an alternate cache file if it wants to.
2414 # Prefer an explicitly selected file to automatically selected ones.
2417 if test -n "$CONFIG_SITE"; then
2418 ac_site_file1=$CONFIG_SITE
2419 elif test "x$prefix" != xNONE; then
2420 ac_site_file1=$prefix/share/config.site
2421 ac_site_file2=$prefix/etc/config.site
2423 ac_site_file1=$ac_default_prefix/share/config.site
2424 ac_site_file2=$ac_default_prefix/etc/config.site
2426 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2428 test "x$ac_site_file" = xNONE && continue
2429 if test -r "$ac_site_file"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2431 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2432 sed 's/^/| /' "$ac_site_file" >&5
2437 if test -r "$cache_file"; then
2438 # Some versions of bash will fail to source /dev/null (special
2439 # files actually), so we avoid doing that.
2440 if test -f "$cache_file"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2442 $as_echo "$as_me: loading cache $cache_file" >&6;}
2444 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2445 *) . "./$cache_file";;
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2450 $as_echo "$as_me: creating cache $cache_file" >&6;}
2454 # Check that the precious variables saved in the cache have kept the same
2456 ac_cache_corrupted=false
2457 for ac_var in $ac_precious_vars; do
2458 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2459 eval ac_new_set=\$ac_env_${ac_var}_set
2460 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2461 eval ac_new_val=\$ac_env_${ac_var}_value
2462 case $ac_old_set,$ac_new_set in
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2465 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2466 ac_cache_corrupted=: ;;
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2469 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2470 ac_cache_corrupted=: ;;
2473 if test "x$ac_old_val" != "x$ac_new_val"; then
2474 # differences in whitespace do not lead to failure.
2475 ac_old_val_w=`echo x
$ac_old_val`
2476 ac_new_val_w=`echo x
$ac_new_val`
2477 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2479 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2480 ac_cache_corrupted=:
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2483 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2484 eval $ac_var=\$ac_old_val
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2487 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2489 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2492 # Pass precious variables to config.status.
2493 if test "$ac_new_set" = set; then
2495 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2496 *) ac_arg=$ac_var=$ac_new_val ;;
2498 case " $ac_configure_args " in
2499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2500 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2504 if $ac_cache_corrupted; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2508 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2509 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2511 ## -------------------- ##
2512 ## Main body of script. ##
2513 ## -------------------- ##
2516 ac_cpp='$CPP $CPPFLAGS'
2517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525 ac_config_headers="$ac_config_headers config.h:config.in"
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2530 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2531 # Check whether --enable-maintainer-mode was given.
2532 if test "${enable_maintainer_mode+set}" = set; then :
2533 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2535 USE_MAINTAINER_MODE=no
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2539 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2540 if test $USE_MAINTAINER_MODE = yes; then
2541 MAINTAINER_MODE_TRUE=
2542 MAINTAINER_MODE_FALSE='#'
2544 MAINTAINER_MODE_TRUE='#'
2545 MAINTAINER_MODE_FALSE=
2548 MAINT=$MAINTAINER_MODE_TRUE
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557 if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if test "${ac_cv_prog_CC+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 if test -n "$CC"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2588 $as_echo "$CC" >&6; }
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2596 if test -z "$ac_cv_prog_CC"; then
2598 # Extract the first word of "gcc", so it can be a program name with args.
2599 set dummy gcc; ac_word=$2
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2603 $as_echo_n "(cached) " >&6
2605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_ac_ct_CC="gcc"
2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626 if test -n "$ac_ct_CC"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2628 $as_echo "$ac_ct_CC" >&6; }
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2634 if test "x$ac_ct_CC" = x; then
2637 case $cross_compiling:$ac_tool_warned in
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2641 ac_tool_warned=yes ;;
2649 if test -z "$CC"; then
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}cc; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if test "${ac_cv_prog_CC+set}" = set; then :
2656 $as_echo_n "(cached) " >&6
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_CC="${ac_tool_prefix}cc"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 if test -n "$CC"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681 $as_echo "$CC" >&6; }
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2690 if test -z "$CC"; then
2691 # Extract the first word of "cc", so it can be a program name with args.
2692 set dummy cc; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if test "${ac_cv_prog_CC+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2710 ac_prog_rejected=yes
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 if test $ac_prog_rejected = yes; then
2722 # We found a bogon in the path, so make sure we never use it.
2723 set dummy $ac_cv_prog_CC
2725 if test $# != 0; then
2726 # We chose a different compiler from the bogus one.
2727 # However, it has the same basename, so the bogon will be chosen
2728 # first if we set CC to just the basename; use the full file name.
2730 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2736 if test -n "$CC"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738 $as_echo "$CC" >&6; }
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2746 if test -z "$CC"; then
2747 if test -n "$ac_tool_prefix"; then
2748 for ac_prog in cl.exe
2750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if test "${ac_cv_prog_CC+set}" = set; then :
2755 $as_echo_n "(cached) " >&6
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2787 test -n "$CC" && break
2790 if test -z "$CC"; then
2792 for ac_prog in cl.exe
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795 set dummy $ac_prog; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2799 $as_echo_n "(cached) " >&6
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811 ac_cv_prog_ac_ct_CC="$ac_prog"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822 if test -n "$ac_ct_CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2824 $as_echo "$ac_ct_CC" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2831 test -n "$ac_ct_CC" && break
2834 if test "x$ac_ct_CC" = x; then
2837 case $cross_compiling:$ac_tool_warned in
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841 ac_tool_warned=yes ;;
2850 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852 as_fn_error "no acceptable C compiler found
in \
$PATH
2853 See \
`config.log' for more details." "$LINENO" 5; }
2855 # Provide some information about the compiler.
2856 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2859 for ac_option in --version -v -V -qversion; do
2860 { { ac_try="$ac_compiler $ac_option >&5"
2862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2863 *) ac_try_echo
=$ac_try;;
2865 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2866 $as_echo "$ac_try_echo"; } >&5
2867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2869 if test -s conftest.err
; then
2871 ... rest of stderr output deleted ...
2872 10q' conftest.err
>conftest.er1
2873 cat conftest.er1
>&5
2874 rm -f conftest.er1 conftest.err
2876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2877 test $ac_status = 0; }
2880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h. */
2891 ac_clean_files_save
=$ac_clean_files
2892 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2893 # Try to create an executable without -o first, disregard a.out.
2894 # It will help us diagnose broken compilers, and finding out an intuition
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2897 $as_echo_n "checking for C compiler default output file name... " >&6; }
2898 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2900 # The possible output files:
2901 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2904 for ac_file
in $ac_files
2907 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2908 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2913 if { { ac_try
="$ac_link_default"
2915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919 $as_echo "$ac_try_echo"; } >&5
2920 (eval "$ac_link_default") 2>&5
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }; then :
2924 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2925 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2926 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2927 # so that the user can short-circuit this test for compilers unknown to
2929 for ac_file in $ac_files ''
2931 test -f "$ac_file" || continue
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2936 # We found the default executable, but exeext='' is most
2940 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2942 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944 # We set ac_cv_exeext here because the later test for it is not
2945 # safe: cross compilers may not add the suffix if given an `-o'
2946 # argument, so we may need to know it at that point already.
2947 # Even if this section looks crufty: it has the advantage of
2954 test "$ac_cv_exeext" = no && ac_cv_exeext=
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2960 $as_echo "$ac_file" >&6; }
2961 if test -z "$ac_file"; then :
2962 $as_echo "$as_me: failed program was:" >&5
2963 sed 's
/^
/|
/' conftest.$ac_ext >&5
2965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2967 { as_fn_set_status 77
2968 as_fn_error "C compiler cannot create executables
2969 See \`config.log
' for more details." "$LINENO" 5; }; }
2971 ac_exeext=$ac_cv_exeext
2973 # Check that the compiler produces executables we can run. If not, either
2974 # the compiler is broken, or we cross compile.
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2976 $as_echo_n "checking whether the C compiler works... " >&6; }
2977 # If not cross compiling, check that we can run a simple program.
2978 if test "$cross_compiling" != yes; then
2979 if { ac_try='.
/$ac_file'
2980 { { case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985 $as_echo "$ac_try_echo"; } >&5
2986 (eval "$ac_try") 2>&5
2988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 test $ac_status = 0; }; }; then
2992 if test "$cross_compiling" = maybe; then
2995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2997 as_fn_error "cannot run C compiled programs.
2998 If you meant to cross compile, use \`--host'.
2999 See \`config.log' for more details.
" "$LINENO" 5; }
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3004 $as_echo "yes" >&6; }
3006 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3007 ac_clean_files=$ac_clean_files_save
3008 # Check that the compiler produces executables we can run. If not, either
3009 # the compiler is broken, or we cross compile.
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3011 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3013 $as_echo "$cross_compiling" >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3016 $as_echo_n "checking
for suffix of executables...
" >&6; }
3017 if { { ac_try="$ac_link"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_link") 2>&5
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3027 test $ac_status = 0; }; then :
3028 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3029 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3030 # work properly (i.e., refer to `conftest.exe'), while it won't with
3032 for ac_file in conftest.exe conftest conftest.*; do
3033 test -f "$ac_file" || continue
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3036 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error "cannot compute suffix of executables: cannot compile and link
3045 See \`config.log' for more details.
" "$LINENO" 5; }
3047 rm -f conftest$ac_cv_exeext
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3049 $as_echo "$ac_cv_exeext" >&6; }
3051 rm -f conftest.$ac_ext
3052 EXEEXT=$ac_cv_exeext
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3055 $as_echo_n "checking
for suffix of object files...
" >&6; }
3056 if test "${ac_cv_objext+set}" = set; then :
3057 $as_echo_n "(cached
) " >&6
3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060 /* end confdefs.h. */
3070 rm -f conftest.o conftest.obj
3071 if { { ac_try="$ac_compile"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_compile") 2>&5
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3081 test $ac_status = 0; }; then :
3082 for ac_file in conftest.o conftest.obj conftest.*; do
3083 test -f "$ac_file" || continue;
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3086 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3091 $as_echo "$as_me: failed program was
:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096 as_fn_error "cannot compute suffix of object files: cannot compile
3097 See \`config.log' for more details.
" "$LINENO" 5; }
3099 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3102 $as_echo "$ac_cv_objext" >&6; }
3103 OBJEXT=$ac_cv_objext
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3106 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3107 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3108 $as_echo_n "(cached
) " >&6
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111 /* end confdefs.h. */
3124 if ac_fn_c_try_compile "$LINENO"; then :
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3134 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3135 if test $ac_compiler_gnu = yes; then
3140 ac_test_CFLAGS=${CFLAGS+set}
3141 ac_save_CFLAGS=$CFLAGS
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3143 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3144 if test "${ac_cv_prog_cc_g+set}" = set; then :
3145 $as_echo_n "(cached
) " >&6
3147 ac_save_c_werror_flag=$ac_c_werror_flag
3148 ac_c_werror_flag=yes
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152 /* end confdefs.h. */
3162 if ac_fn_c_try_compile "$LINENO"; then :
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h. */
3177 if ac_fn_c_try_compile "$LINENO"; then :
3180 ac_c_werror_flag=$ac_save_c_werror_flag
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183 /* end confdefs.h. */
3193 if ac_fn_c_try_compile "$LINENO"; then :
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_c_werror_flag=$ac_save_c_werror_flag
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3204 $as_echo "$ac_cv_prog_cc_g" >&6; }
3205 if test "$ac_test_CFLAGS" = set; then
3206 CFLAGS=$ac_save_CFLAGS
3207 elif test $ac_cv_prog_cc_g = yes; then
3208 if test "$GCC" = yes; then
3214 if test "$GCC" = yes; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3221 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3222 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3223 $as_echo_n "(cached
) " >&6
3225 ac_cv_prog_cc_c89=no
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h. */
3231 #include <sys/types.h>
3232 #include <sys/stat.h>
3233 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3234 struct buf { int x; };
3235 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3236 static char *e (p, i)
3242 static char *f (char * (*g) (char **, int), char **p, ...)
3247 s = g (p, va_arg (v,int));
3252 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3253 function prototypes and stuff, but not '\xHH' hex character constants.
3254 These don't provoke an error unfortunately, instead are silently treated
3255 as 'x'. The following induces an error, until -std is added to get
3256 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3257 array size at least. It's necessary to write '\x00'==0 to get something
3258 that's true only with -std. */
3259 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3261 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3262 inside strings and character constants. */
3264 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3266 int test (int i, double x);
3267 struct s1 {int (*f) (int a);};
3268 struct s2 {int (*f) (double a);};
3269 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3275 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3280 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3281 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3283 CC="$ac_save_CC $ac_arg"
3284 if ac_fn_c_try_compile "$LINENO"; then :
3285 ac_cv_prog_cc_c89=$ac_arg
3287 rm -f core conftest.err conftest.$ac_objext
3288 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3290 rm -f conftest.$ac_ext
3295 case "x
$ac_cv_prog_cc_c89" in
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3298 $as_echo "none needed
" >&6; } ;;
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3301 $as_echo "unsupported
" >&6; } ;;
3303 CC="$CC $ac_cv_prog_cc_c89"
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3305 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3307 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3312 ac_cpp='$CPP $CPPFLAGS'
3313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318 ac_cpp='$CXXCPP $CPPFLAGS'
3319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3322 if test -z "$CXX"; then
3323 if test -n "$CCC"; then
3326 if test -n "$ac_tool_prefix"; then
3327 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3332 $as_echo_n "checking
for $ac_word...
" >&6; }
3333 if test "${ac_cv_prog_CXX+set}" = set; then :
3334 $as_echo_n "(cached
) " >&6
3336 if test -n "$CXX"; then
3337 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3357 if test -n "$CXX"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
3359 $as_echo "$CXX" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3362 $as_echo "no
" >&6; }
3366 test -n "$CXX" && break
3369 if test -z "$CXX"; then
3371 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3373 # Extract the first word of "$ac_prog", so it can be a program name with args.
3374 set dummy $ac_prog; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3376 $as_echo_n "checking
for $ac_word...
" >&6; }
3377 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3378 $as_echo_n "(cached
) " >&6
3380 if test -n "$ac_ct_CXX"; then
3381 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3390 ac_cv_prog_ac_ct_CXX="$ac_prog"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3400 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3401 if test -n "$ac_ct_CXX"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
3403 $as_echo "$ac_ct_CXX" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3406 $as_echo "no
" >&6; }
3410 test -n "$ac_ct_CXX" && break
3413 if test "x
$ac_ct_CXX" = x; then
3416 case $cross_compiling:$ac_tool_warned in
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3419 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3420 ac_tool_warned=yes ;;
3428 # Provide some information about the compiler.
3429 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
3432 for ac_option in --version -v -V -qversion; do
3433 { { ac_try="$ac_compiler $ac_option >&5"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3442 if test -s conftest.err; then
3444 ... rest of stderr output deleted ...
3445 10q' conftest.err >conftest.er1
3446 cat conftest.er1 >&5
3447 rm -f conftest.er1 conftest.err
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3450 test $ac_status = 0; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
3454 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
3455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3456 $as_echo_n "(cached
) " >&6
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3472 if ac_fn_cxx_try_compile "$LINENO"; then :
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
3482 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3483 if test $ac_compiler_gnu = yes; then
3488 ac_test_CXXFLAGS=${CXXFLAGS+set}
3489 ac_save_CXXFLAGS=$CXXFLAGS
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
3491 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
3492 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3493 $as_echo_n "(cached
) " >&6
3495 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3496 ac_cxx_werror_flag=yes
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3510 if ac_fn_cxx_try_compile "$LINENO"; then :
3511 ac_cv_prog_cxx_g=yes
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3525 if ac_fn_cxx_try_compile "$LINENO"; then :
3528 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3541 if ac_fn_cxx_try_compile "$LINENO"; then :
3542 ac_cv_prog_cxx_g=yes
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3552 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3553 if test "$ac_test_CXXFLAGS" = set; then
3554 CXXFLAGS=$ac_save_CXXFLAGS
3555 elif test $ac_cv_prog_cxx_g = yes; then
3556 if test "$GXX" = yes; then
3562 if test "$GXX" = yes; then
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 ac_cpp='$CPP $CPPFLAGS'
3577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3581 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3582 # On Suns, sometimes $CPP names a directory.
3583 if test -n "$CPP" && test -d "$CPP"; then
3586 if test -z "$CPP"; then
3587 if test "${ac_cv_prog_CPP+set}" = set; then :
3588 $as_echo_n "(cached
) " >&6
3590 # Double quotes because CPP needs to be expanded
3591 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3594 for ac_c_preproc_warn_flag in '' yes
3596 # Use a header file that comes with gcc, so configuring glibc
3597 # with a fresh cross-compiler works.
3598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3599 # <limits.h> exists even on freestanding compilers.
3600 # On the NeXT, cc -E runs the code through the compiler's parser,
3601 # not just through cpp. "Syntax error
" is here to catch this case.
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3605 # include <limits.h>
3607 # include <assert.h>
3611 if ac_fn_c_try_cpp "$LINENO"; then :
3614 # Broken: fails on valid input.
3617 rm -f conftest.err conftest.$ac_ext
3619 # OK, works on sane cases. Now check whether nonexistent headers
3620 # can be detected and how.
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3623 #include <ac_nonexistent.h>
3625 if ac_fn_c_try_cpp "$LINENO"; then :
3626 # Broken: success on invalid input.
3629 # Passes both tests.
3633 rm -f conftest.err conftest.$ac_ext
3636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637 rm -f conftest.err conftest.$ac_ext
3638 if $ac_preproc_ok; then :
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3651 $as_echo "$CPP" >&6; }
3653 for ac_c_preproc_warn_flag in '' yes
3655 # Use a header file that comes with gcc, so configuring glibc
3656 # with a fresh cross-compiler works.
3657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658 # <limits.h> exists even on freestanding compilers.
3659 # On the NeXT, cc -E runs the code through the compiler's parser,
3660 # not just through cpp. "Syntax error
" is here to catch this case.
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3664 # include <limits.h>
3666 # include <assert.h>
3670 if ac_fn_c_try_cpp "$LINENO"; then :
3673 # Broken: fails on valid input.
3676 rm -f conftest.err conftest.$ac_ext
3678 # OK, works on sane cases. Now check whether nonexistent headers
3679 # can be detected and how.
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682 #include <ac_nonexistent.h>
3684 if ac_fn_c_try_cpp "$LINENO"; then :
3685 # Broken: success on invalid input.
3688 # Passes both tests.
3692 rm -f conftest.err conftest.$ac_ext
3695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3696 rm -f conftest.err conftest.$ac_ext
3697 if $ac_preproc_ok; then :
3700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3703 See \`config.log' for more details.
" "$LINENO" 5; }
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3714 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3715 if test "${ac_cv_path_GREP+set}" = set; then :
3716 $as_echo_n "(cached
) " >&6
3718 if test -z "$GREP"; then
3719 ac_path_GREP_found=false
3720 # Loop through the user's path and test for each of PROGNAME-LIST
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3725 test -z "$as_dir" && as_dir=.
3726 for ac_prog in grep ggrep; do
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3729 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3730 # Check for GNU ac_path_GREP and select it if it is found.
3731 # Check for GNU $ac_path_GREP
3732 case `"$ac_path_GREP" --version 2>&1` in
3734 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3737 $as_echo_n 0123456789 >"conftest.
in"
3740 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3741 mv "conftest.tmp
" "conftest.
in"
3742 cp "conftest.
in" "conftest.
nl"
3743 $as_echo 'GREP' >> "conftest.
nl"
3744 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3745 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3746 as_fn_arith $ac_count + 1 && ac_count=$as_val
3747 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3748 # Best one so far, save it but keep looking for a better one
3749 ac_cv_path_GREP="$ac_path_GREP"
3750 ac_path_GREP_max=$ac_count
3752 # 10*(2^10) chars as input seems more than enough
3753 test $ac_count -gt 10 && break
3755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3758 $ac_path_GREP_found && break 3
3763 if test -z "$ac_cv_path_GREP"; then
3764 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3767 ac_cv_path_GREP=$GREP
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3772 $as_echo "$ac_cv_path_GREP" >&6; }
3773 GREP="$ac_cv_path_GREP"
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3777 $as_echo_n "checking
for egrep...
" >&6; }
3778 if test "${ac_cv_path_EGREP+set}" = set; then :
3779 $as_echo_n "(cached
) " >&6
3781 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3782 then ac_cv_path_EGREP="$GREP -E"
3784 if test -z "$EGREP"; then
3785 ac_path_EGREP_found=false
3786 # Loop through the user's path and test for each of PROGNAME-LIST
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3791 test -z "$as_dir" && as_dir=.
3792 for ac_prog in egrep; do
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3795 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3796 # Check for GNU ac_path_EGREP and select it if it is found.
3797 # Check for GNU $ac_path_EGREP
3798 case `"$ac_path_EGREP" --version 2>&1` in
3800 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3803 $as_echo_n 0123456789 >"conftest.
in"
3806 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3807 mv "conftest.tmp
" "conftest.
in"
3808 cp "conftest.
in" "conftest.
nl"
3809 $as_echo 'EGREP' >> "conftest.
nl"
3810 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3811 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3812 as_fn_arith $ac_count + 1 && ac_count=$as_val
3813 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3814 # Best one so far, save it but keep looking for a better one
3815 ac_cv_path_EGREP="$ac_path_EGREP"
3816 ac_path_EGREP_max=$ac_count
3818 # 10*(2^10) chars as input seems more than enough
3819 test $ac_count -gt 10 && break
3821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824 $ac_path_EGREP_found && break 3
3829 if test -z "$ac_cv_path_EGREP"; then
3830 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3833 ac_cv_path_EGREP=$EGREP
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3839 $as_echo "$ac_cv_path_EGREP" >&6; }
3840 EGREP="$ac_cv_path_EGREP"
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3844 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3845 if test "${ac_cv_header_stdc+set}" = set; then :
3846 $as_echo_n "(cached
) " >&6
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3863 if ac_fn_c_try_compile "$LINENO"; then :
3864 ac_cv_header_stdc=yes
3866 ac_cv_header_stdc=no
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 if test $ac_cv_header_stdc = yes; then
3871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3877 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3878 $EGREP "memchr
" >/dev/null 2>&1; then :
3881 ac_cv_header_stdc=no
3887 if test $ac_cv_header_stdc = yes; then
3888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3894 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3895 $EGREP "free
" >/dev/null 2>&1; then :
3898 ac_cv_header_stdc=no
3904 if test $ac_cv_header_stdc = yes; then
3905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3906 if test "$cross_compiling" = yes; then :
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3913 #if ((' ' & 0x0FF) == 0x020)
3914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3917 # define ISLOWER(c) \
3918 (('a' <= (c) && (c) <= 'i') \
3919 || ('j' <= (c) && (c) <= 'r') \
3920 || ('s' <= (c) && (c) <= 'z'))
3921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3929 for (i = 0; i < 256; i++)
3930 if (XOR (islower (i), ISLOWER (i))
3931 || toupper (i) != TOUPPER (i))
3936 if ac_fn_c_try_run "$LINENO"; then :
3939 ac_cv_header_stdc=no
3941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3942 conftest.$ac_objext conftest.beam conftest.$ac_ext
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3948 $as_echo "$ac_cv_header_stdc" >&6; }
3949 if test $ac_cv_header_stdc = yes; then
3951 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3955 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3956 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3957 inttypes.h stdint.h unistd.h
3959 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3960 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3962 eval as_val
=\$
$as_ac_Header
3963 if test "x$as_val" = x
""yes; then :
3964 cat >>confdefs.h
<<_ACEOF
3965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3974 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3975 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3982 if test "$MINIX" = yes; then
3984 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3987 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3990 $as_echo "#define _MINIX 1" >>confdefs.h
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3996 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3997 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3998 $as_echo_n "(cached) " >&6
4000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4003 # define __EXTENSIONS__ 1
4004 $ac_includes_default
4013 if ac_fn_c_try_compile
"$LINENO"; then :
4014 ac_cv_safe_to_define___extensions__
=yes
4016 ac_cv_safe_to_define___extensions__
=no
4018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4021 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4022 test $ac_cv_safe_to_define___extensions__ = yes &&
4023 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4025 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4027 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4029 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4031 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4035 # Check whether --enable-largefile was given.
4036 if test "${enable_largefile+set}" = set; then :
4037 enableval
=$enable_largefile;
4040 if test "$enable_largefile" != no
; then
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4043 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4044 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4047 ac_cv_sys_largefile_CC
=no
4048 if test "$GCC" != yes; then
4051 # IRIX 6.2 and later do not support large files by default,
4052 # so use the C compiler's -n32 option if that helps.
4053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055 #include <sys/types.h>
4056 /* Check that off_t can represent 2**63 - 1 correctly.
4057 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4058 since some C++ compilers masquerading as C compilers
4059 incorrectly reject 9223372036854775807. */
4060 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4061 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4062 && LARGE_OFF_T % 2147483647 == 1)
4072 if ac_fn_c_try_compile
"$LINENO"; then :
4075 rm -f core conftest.err conftest.
$ac_objext
4077 if ac_fn_c_try_compile
"$LINENO"; then :
4078 ac_cv_sys_largefile_CC
=' -n32'; break
4080 rm -f core conftest.err conftest.
$ac_objext
4084 rm -f conftest.
$ac_ext
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4088 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4089 if test "$ac_cv_sys_largefile_CC" != no
; then
4090 CC
=$CC$ac_cv_sys_largefile_CC
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4094 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4095 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #include <sys/types.h>
4102 /* Check that off_t can represent 2**63 - 1 correctly.
4103 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4104 since some C++ compilers masquerading as C compilers
4105 incorrectly reject 9223372036854775807. */
4106 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4108 && LARGE_OFF_T % 2147483647 == 1)
4118 if ac_fn_c_try_compile
"$LINENO"; then :
4119 ac_cv_sys_file_offset_bits
=no
; break
4121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #define _FILE_OFFSET_BITS 64
4125 #include <sys/types.h>
4126 /* Check that off_t can represent 2**63 - 1 correctly.
4127 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4128 since some C++ compilers masquerading as C compilers
4129 incorrectly reject 9223372036854775807. */
4130 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4132 && LARGE_OFF_T % 2147483647 == 1)
4142 if ac_fn_c_try_compile
"$LINENO"; then :
4143 ac_cv_sys_file_offset_bits
=64; break
4145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4146 ac_cv_sys_file_offset_bits
=unknown
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4151 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4152 case $ac_cv_sys_file_offset_bits in #(
4155 cat >>confdefs.h
<<_ACEOF
4156 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4161 if test $ac_cv_sys_file_offset_bits = unknown
; then
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4163 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4164 if test "${ac_cv_sys_large_files+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170 #include <sys/types.h>
4171 /* Check that off_t can represent 2**63 - 1 correctly.
4172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4173 since some C++ compilers masquerading as C compilers
4174 incorrectly reject 9223372036854775807. */
4175 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4177 && LARGE_OFF_T % 2147483647 == 1)
4187 if ac_fn_c_try_compile
"$LINENO"; then :
4188 ac_cv_sys_large_files
=no
; break
4190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4193 #define _LARGE_FILES 1
4194 #include <sys/types.h>
4195 /* Check that off_t can represent 2**63 - 1 correctly.
4196 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4197 since some C++ compilers masquerading as C compilers
4198 incorrectly reject 9223372036854775807. */
4199 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4201 && LARGE_OFF_T % 2147483647 == 1)
4211 if ac_fn_c_try_compile
"$LINENO"; then :
4212 ac_cv_sys_large_files
=1; break
4214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4215 ac_cv_sys_large_files
=unknown
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4220 $as_echo "$ac_cv_sys_large_files" >&6; }
4221 case $ac_cv_sys_large_files in #(
4224 cat >>confdefs.h
<<_ACEOF
4225 #define _LARGE_FILES $ac_cv_sys_large_files
4235 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4236 for ac_t
in install-sh
install.sh shtool
; do
4237 if test -f "$ac_dir/$ac_t"; then
4239 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4244 if test -z "$ac_aux_dir"; then
4245 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4248 # These three variables are undocumented and unsupported,
4249 # and are intended to be withdrawn in a future Autoconf release.
4250 # They can cause serious problems if a builder's source tree is in a directory
4251 # whose full name contains unusual characters.
4252 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4253 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4254 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4257 # Make sure we can run config.sub.
4258 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4259 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4262 $as_echo_n "checking build system type... " >&6; }
4263 if test "${ac_cv_build+set}" = set; then :
4264 $as_echo_n "(cached) " >&6
4266 ac_build_alias
=$build_alias
4267 test "x$ac_build_alias" = x
&&
4268 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4269 test "x$ac_build_alias" = x
&&
4270 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4271 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4272 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4276 $as_echo "$ac_cv_build" >&6; }
4277 case $ac_cv_build in
4279 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4282 ac_save_IFS
=$IFS; IFS
='-'
4288 # Remember, the first character of IFS is used to create $*,
4289 # except with old shells:
4292 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4296 $as_echo_n "checking host system type... " >&6; }
4297 if test "${ac_cv_host+set}" = set; then :
4298 $as_echo_n "(cached) " >&6
4300 if test "x$host_alias" = x
; then
4301 ac_cv_host
=$ac_cv_build
4303 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4304 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4309 $as_echo "$ac_cv_host" >&6; }
4312 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4315 ac_save_IFS
=$IFS; IFS
='-'
4321 # Remember, the first character of IFS is used to create $*,
4322 # except with old shells:
4325 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4329 $as_echo_n "checking target system type... " >&6; }
4330 if test "${ac_cv_target+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4333 if test "x$target_alias" = x
; then
4334 ac_cv_target
=$ac_cv_host
4336 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4337 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4342 $as_echo "$ac_cv_target" >&6; }
4343 case $ac_cv_target in
4345 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4347 target
=$ac_cv_target
4348 ac_save_IFS
=$IFS; IFS
='-'
4354 # Remember, the first character of IFS is used to create $*,
4355 # except with old shells:
4358 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4361 # The aliases save the names the user supplied, while $host etc.
4362 # will get canonicalized.
4363 test -n "$target_alias" &&
4364 test "$program_prefix$program_suffix$program_transform_name" = \
4366 program_prefix
=${target_alias}-
4369 # Find a good install program. We prefer a C program (faster),
4370 # so one script is as good as another. But avoid the broken or
4371 # incompatible versions:
4372 # SysV /etc/install, /usr/sbin/install
4373 # SunOS /usr/etc/install
4374 # IRIX /sbin/install
4376 # AmigaOS /C/install, which installs bootblocks on floppy discs
4377 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4378 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4379 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4380 # OS/2's system install, which has a completely different semantic
4381 # ./install, which can be erroneously created by make from ./install.sh.
4382 # Reject install programs that cannot install multiple files.
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4384 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4385 if test -z "$INSTALL"; then
4386 if test "${ac_cv_path_install+set}" = set; then :
4387 $as_echo_n "(cached) " >&6
4389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir
=.
4394 # Account for people who put trailing slashes in PATH elements.
4395 case $as_dir/ in #((
4396 .
/ | .
// |
/[cC
]/* | \
4397 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4398 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4401 # OSF1 and SCO ODT 3.0 have their own names for install.
4402 # Don't use installbsd from OSF since it installs stuff as root
4404 for ac_prog
in ginstall scoinst
install; do
4405 for ac_exec_ext
in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4407 if test $ac_prog = install &&
4408 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4409 # AIX install. It has an incompatible calling convention.
4411 elif test $ac_prog = install &&
4412 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4413 # program-specific install script used by HP pwplus--don't use.
4416 rm -rf conftest.one conftest.two conftest.dir
4417 echo one
> conftest.one
4418 echo two
> conftest.two
4420 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4421 test -s conftest.one
&& test -s conftest.two
&&
4422 test -s conftest.dir
/conftest.one
&&
4423 test -s conftest.dir
/conftest.two
4425 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4438 rm -rf conftest.one conftest.two conftest.dir
4441 if test "${ac_cv_path_install+set}" = set; then
4442 INSTALL
=$ac_cv_path_install
4444 # As a last resort, use the slow shell script. Don't cache a
4445 # value for INSTALL within a source directory, because that will
4446 # break other packages using the cache if that directory is
4447 # removed, or if the value is a relative name.
4448 INSTALL
=$ac_install_sh
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4452 $as_echo "$INSTALL" >&6; }
4454 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4455 # It thinks the first close brace ends the variable substitution.
4456 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4458 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4460 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4462 if test -n "$ac_tool_prefix"; then
4463 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4464 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if test "${ac_cv_prog_AR+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
4470 if test -n "$AR"; then
4471 ac_cv_prog_AR
="$AR" # Let the user override the test.
4473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir
=.
4478 for ac_exec_ext
in '' $ac_executable_extensions; do
4479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4480 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 if test -n "$AR"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4493 $as_echo "$AR" >&6; }
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4501 if test -z "$ac_cv_prog_AR"; then
4503 # Extract the first word of "ar", so it can be a program name with args.
4504 set dummy
ar; ac_word
=$2
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 $as_echo_n "checking for $ac_word... " >&6; }
4507 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
4510 if test -n "$ac_ct_AR"; then
4511 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4517 test -z "$as_dir" && as_dir
=.
4518 for ac_exec_ext
in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 ac_cv_prog_ac_ct_AR
="ar"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4531 if test -n "$ac_ct_AR"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4533 $as_echo "$ac_ct_AR" >&6; }
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4539 if test "x$ac_ct_AR" = x
; then
4542 case $cross_compiling:$ac_tool_warned in
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4546 ac_tool_warned
=yes ;;
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4556 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4562 if test -n "$RANLIB"; then
4563 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir
=.
4570 for ac_exec_ext
in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 RANLIB
=$ac_cv_prog_RANLIB
4583 if test -n "$RANLIB"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4585 $as_echo "$RANLIB" >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4593 if test -z "$ac_cv_prog_RANLIB"; then
4594 ac_ct_RANLIB
=$RANLIB
4595 # Extract the first word of "ranlib", so it can be a program name with args.
4596 set dummy ranlib
; ac_word
=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4602 if test -n "$ac_ct_RANLIB"; then
4603 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir
=.
4610 for ac_exec_ext
in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4623 if test -n "$ac_ct_RANLIB"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4625 $as_echo "$ac_ct_RANLIB" >&6; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4631 if test "x$ac_ct_RANLIB" = x
; then
4634 case $cross_compiling:$ac_tool_warned in
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned
=yes ;;
4640 RANLIB
=$ac_ct_RANLIB
4643 RANLIB
="$ac_cv_prog_RANLIB"
4647 test "$program_prefix" != NONE
&&
4648 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4649 # Use a double $ so make ignores it.
4650 test "$program_suffix" != NONE
&&
4651 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4652 # Double any \ or $.
4653 # By default was `s,x,x', remove it if useless.
4654 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4655 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4658 # We require a C++11 compiler. Check if one is available, and if
4659 # necessary, set CXX_DIALECT to some -std=xxx switch.
4661 ax_cxx_compile_cxx11_required
=true
4663 ac_cpp
='$CXXCPP $CPPFLAGS'
4664 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4670 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4671 if test "${ax_cv_cxx_compile_cxx11+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4678 // If the compiler admits that it is not ready for C++11, why torture it?
4679 // Hopefully, this will speed up the test.
4683 #error "This is not a C++ compiler"
4685 #elif __cplusplus < 201103L
4687 #error "This is not a C++11 compiler"
4694 namespace test_static_assert
4697 template <typename T>
4700 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4705 namespace test_final_override
4713 struct Derived : public Base
4715 virtual void f() override {}
4720 namespace test_double_right_angle_brackets
4723 template < typename T >
4726 typedef check<void> single_type;
4727 typedef check<check<void>> double_type;
4728 typedef check<check<check<void>>> triple_type;
4729 typedef check<check<check<check<void>>>> quadruple_type;
4733 namespace test_decltype
4746 namespace test_type_deduction
4749 template < typename T1, typename T2 >
4752 static const bool value = false;
4755 template < typename T >
4756 struct is_same<T, T>
4758 static const bool value = true;
4761 template < typename T1, typename T2 >
4763 add(T1 a1, T2 a2) -> decltype(a1 + a2)
4769 test(const int c, volatile int v)
4771 static_assert(is_same<int, decltype(0)>::value == true, "");
4772 static_assert(is_same<int, decltype(c)>::value == false, "");
4773 static_assert(is_same<int, decltype(v)>::value == false, "");
4776 auto sumi = ac + av + 'x';
4777 auto sumf = ac + av + 1.0;
4778 static_assert(is_same<int, decltype(ac)>::value == true, "");
4779 static_assert(is_same<int, decltype(av)>::value == true, "");
4780 static_assert(is_same<int, decltype(sumi)>::value == true, "");
4781 static_assert(is_same<int, decltype(sumf)>::value == false, "");
4782 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
4783 return (sumf > 0.0) ? sumi : add(c, v);
4788 namespace test_noexcept
4791 int f() { return 0; }
4792 int g() noexcept { return 0; }
4794 static_assert(noexcept(f()) == false, "");
4795 static_assert(noexcept(g()) == true, "");
4799 namespace test_constexpr
4802 template < typename CharT >
4803 unsigned long constexpr
4804 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
4806 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
4809 template < typename CharT >
4810 unsigned long constexpr
4811 strlen_c(const CharT *const s) noexcept
4813 return strlen_c_r(s, 0UL);
4816 static_assert(strlen_c("") == 0UL, "");
4817 static_assert(strlen_c("1") == 1UL, "");
4818 static_assert(strlen_c("example") == 7UL, "");
4819 static_assert(strlen_c("another\0example") == 7UL, "");
4823 namespace test_rvalue_references
4829 static constexpr int value = N;
4832 answer<1> f(int&) { return answer<1>(); }
4833 answer<2> f(const int&) { return answer<2>(); }
4834 answer<3> f(int&&) { return answer<3>(); }
4841 static_assert(decltype(f(i))::value == 1, "");
4842 static_assert(decltype(f(c))::value == 2, "");
4843 static_assert(decltype(f(0))::value == 3, "");
4848 namespace test_uniform_initialization
4853 static const int zero {};
4854 static const int one {1};
4857 static_assert(test::zero == 0, "");
4858 static_assert(test::one == 1, "");
4862 namespace test_lambdas
4868 auto lambda1 = [](){};
4869 auto lambda2 = lambda1;
4877 auto a = [](int i, int j){ return i + j; }(1, 2);
4878 auto b = []() -> int { return '0'; }();
4879 auto c = [=](){ return a + b; }();
4880 auto d = [&](){ return c; }();
4881 auto e = [a, &b](int x) mutable {
4882 const auto identity = [](int y){ return y; };
4883 for (auto i = 0; i < a; ++i)
4885 return x + identity(a + b);
4887 return a + b + c + d + e;
4893 const auto nullary = [](){ return 0; };
4894 const auto unary = [](int x){ return x; };
4895 using nullary_t = decltype(nullary);
4896 using unary_t = decltype(unary);
4897 const auto higher1st = [](nullary_t f){ return f(); };
4898 const auto higher2nd = [unary](nullary_t f1){
4899 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
4901 return higher1st(nullary) + higher2nd(nullary)(unary);
4906 namespace test_variadic_templates
4912 template <int N0, int... N1toN>
4913 struct sum<N0, N1toN...>
4915 static constexpr auto value = N0 + sum<N1toN...>::value;
4921 static constexpr auto value = 0;
4924 static_assert(sum<>::value == 0, "");
4925 static_assert(sum<1>::value == 1, "");
4926 static_assert(sum<23>::value == 23, "");
4927 static_assert(sum<1, 2>::value == 3, "");
4928 static_assert(sum<5, 5, 11>::value == 21, "");
4929 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
4933 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
4934 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
4936 namespace test_template_alias_sfinae
4941 template<typename T>
4942 using member = typename T::member_type;
4944 template<typename T>
4947 template<typename T>
4948 void func(member<T>*) {}
4952 void test() { func<foo>(0); }
4956 } // namespace cxx11
4958 #endif // __cplusplus >= 201103L
4963 if ac_fn_cxx_try_compile
"$LINENO"; then :
4964 ax_cv_cxx_compile_cxx11
=yes
4966 ax_cv_cxx_compile_cxx11
=no
4968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
4971 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
4972 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
4976 if test x
$ac_success = xno
; then
4977 for switch
in -std=gnu
++11 -std=gnu
++0x
; do
4978 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
4980 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
4981 if { as_var
=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
4982 $as_echo_n "(cached) " >&6
4986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4990 // If the compiler admits that it is not ready for C++11, why torture it?
4991 // Hopefully, this will speed up the test.
4995 #error "This is not a C++ compiler"
4997 #elif __cplusplus < 201103L
4999 #error "This is not a C++11 compiler"
5006 namespace test_static_assert
5009 template <typename T>
5012 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5017 namespace test_final_override
5025 struct Derived : public Base
5027 virtual void f() override {}
5032 namespace test_double_right_angle_brackets
5035 template < typename T >
5038 typedef check<void> single_type;
5039 typedef check<check<void>> double_type;
5040 typedef check<check<check<void>>> triple_type;
5041 typedef check<check<check<check<void>>>> quadruple_type;
5045 namespace test_decltype
5058 namespace test_type_deduction
5061 template < typename T1, typename T2 >
5064 static const bool value = false;
5067 template < typename T >
5068 struct is_same<T, T>
5070 static const bool value = true;
5073 template < typename T1, typename T2 >
5075 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5081 test(const int c, volatile int v)
5083 static_assert(is_same<int, decltype(0)>::value == true, "");
5084 static_assert(is_same<int, decltype(c)>::value == false, "");
5085 static_assert(is_same<int, decltype(v)>::value == false, "");
5088 auto sumi = ac + av + 'x';
5089 auto sumf = ac + av + 1.0;
5090 static_assert(is_same<int, decltype(ac)>::value == true, "");
5091 static_assert(is_same<int, decltype(av)>::value == true, "");
5092 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5093 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5094 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5095 return (sumf > 0.0) ? sumi : add(c, v);
5100 namespace test_noexcept
5103 int f() { return 0; }
5104 int g() noexcept { return 0; }
5106 static_assert(noexcept(f()) == false, "");
5107 static_assert(noexcept(g()) == true, "");
5111 namespace test_constexpr
5114 template < typename CharT >
5115 unsigned long constexpr
5116 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5118 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5121 template < typename CharT >
5122 unsigned long constexpr
5123 strlen_c(const CharT *const s) noexcept
5125 return strlen_c_r(s, 0UL);
5128 static_assert(strlen_c("") == 0UL, "");
5129 static_assert(strlen_c("1") == 1UL, "");
5130 static_assert(strlen_c("example") == 7UL, "");
5131 static_assert(strlen_c("another\0example") == 7UL, "");
5135 namespace test_rvalue_references
5141 static constexpr int value = N;
5144 answer<1> f(int&) { return answer<1>(); }
5145 answer<2> f(const int&) { return answer<2>(); }
5146 answer<3> f(int&&) { return answer<3>(); }
5153 static_assert(decltype(f(i))::value == 1, "");
5154 static_assert(decltype(f(c))::value == 2, "");
5155 static_assert(decltype(f(0))::value == 3, "");
5160 namespace test_uniform_initialization
5165 static const int zero {};
5166 static const int one {1};
5169 static_assert(test::zero == 0, "");
5170 static_assert(test::one == 1, "");
5174 namespace test_lambdas
5180 auto lambda1 = [](){};
5181 auto lambda2 = lambda1;
5189 auto a = [](int i, int j){ return i + j; }(1, 2);
5190 auto b = []() -> int { return '0'; }();
5191 auto c = [=](){ return a + b; }();
5192 auto d = [&](){ return c; }();
5193 auto e = [a, &b](int x) mutable {
5194 const auto identity = [](int y){ return y; };
5195 for (auto i = 0; i < a; ++i)
5197 return x + identity(a + b);
5199 return a + b + c + d + e;
5205 const auto nullary = [](){ return 0; };
5206 const auto unary = [](int x){ return x; };
5207 using nullary_t = decltype(nullary);
5208 using unary_t = decltype(unary);
5209 const auto higher1st = [](nullary_t f){ return f(); };
5210 const auto higher2nd = [unary](nullary_t f1){
5211 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5213 return higher1st(nullary) + higher2nd(nullary)(unary);
5218 namespace test_variadic_templates
5224 template <int N0, int... N1toN>
5225 struct sum<N0, N1toN...>
5227 static constexpr auto value = N0 + sum<N1toN...>::value;
5233 static constexpr auto value = 0;
5236 static_assert(sum<>::value == 0, "");
5237 static_assert(sum<1>::value == 1, "");
5238 static_assert(sum<23>::value == 23, "");
5239 static_assert(sum<1, 2>::value == 3, "");
5240 static_assert(sum<5, 5, 11>::value == 21, "");
5241 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5245 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5246 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5248 namespace test_template_alias_sfinae
5253 template<typename T>
5254 using member = typename T::member_type;
5256 template<typename T>
5259 template<typename T>
5260 void func(member<T>*) {}
5264 void test() { func<foo>(0); }
5268 } // namespace cxx11
5270 #endif // __cplusplus >= 201103L
5275 if ac_fn_cxx_try_compile
"$LINENO"; then :
5280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5283 eval ac_res
=\$
$cachevar
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5285 $as_echo "$ac_res" >&6; }
5286 if eval test x\$
$cachevar = xyes
; then
5287 CXX_DIALECT
="$switch"
5294 if test x
$ac_success = xno
; then
5295 for switch
in -std=c
++11 -std=c
++0x
+std
=c
++11 "-h std=c++11"; do
5296 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5298 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5299 if { as_var
=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
5300 $as_echo_n "(cached) " >&6
5304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5308 // If the compiler admits that it is not ready for C++11, why torture it?
5309 // Hopefully, this will speed up the test.
5313 #error "This is not a C++ compiler"
5315 #elif __cplusplus < 201103L
5317 #error "This is not a C++11 compiler"
5324 namespace test_static_assert
5327 template <typename T>
5330 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5335 namespace test_final_override
5343 struct Derived : public Base
5345 virtual void f() override {}
5350 namespace test_double_right_angle_brackets
5353 template < typename T >
5356 typedef check<void> single_type;
5357 typedef check<check<void>> double_type;
5358 typedef check<check<check<void>>> triple_type;
5359 typedef check<check<check<check<void>>>> quadruple_type;
5363 namespace test_decltype
5376 namespace test_type_deduction
5379 template < typename T1, typename T2 >
5382 static const bool value = false;
5385 template < typename T >
5386 struct is_same<T, T>
5388 static const bool value = true;
5391 template < typename T1, typename T2 >
5393 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5399 test(const int c, volatile int v)
5401 static_assert(is_same<int, decltype(0)>::value == true, "");
5402 static_assert(is_same<int, decltype(c)>::value == false, "");
5403 static_assert(is_same<int, decltype(v)>::value == false, "");
5406 auto sumi = ac + av + 'x';
5407 auto sumf = ac + av + 1.0;
5408 static_assert(is_same<int, decltype(ac)>::value == true, "");
5409 static_assert(is_same<int, decltype(av)>::value == true, "");
5410 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5411 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5412 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5413 return (sumf > 0.0) ? sumi : add(c, v);
5418 namespace test_noexcept
5421 int f() { return 0; }
5422 int g() noexcept { return 0; }
5424 static_assert(noexcept(f()) == false, "");
5425 static_assert(noexcept(g()) == true, "");
5429 namespace test_constexpr
5432 template < typename CharT >
5433 unsigned long constexpr
5434 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5436 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5439 template < typename CharT >
5440 unsigned long constexpr
5441 strlen_c(const CharT *const s) noexcept
5443 return strlen_c_r(s, 0UL);
5446 static_assert(strlen_c("") == 0UL, "");
5447 static_assert(strlen_c("1") == 1UL, "");
5448 static_assert(strlen_c("example") == 7UL, "");
5449 static_assert(strlen_c("another\0example") == 7UL, "");
5453 namespace test_rvalue_references
5459 static constexpr int value = N;
5462 answer<1> f(int&) { return answer<1>(); }
5463 answer<2> f(const int&) { return answer<2>(); }
5464 answer<3> f(int&&) { return answer<3>(); }
5471 static_assert(decltype(f(i))::value == 1, "");
5472 static_assert(decltype(f(c))::value == 2, "");
5473 static_assert(decltype(f(0))::value == 3, "");
5478 namespace test_uniform_initialization
5483 static const int zero {};
5484 static const int one {1};
5487 static_assert(test::zero == 0, "");
5488 static_assert(test::one == 1, "");
5492 namespace test_lambdas
5498 auto lambda1 = [](){};
5499 auto lambda2 = lambda1;
5507 auto a = [](int i, int j){ return i + j; }(1, 2);
5508 auto b = []() -> int { return '0'; }();
5509 auto c = [=](){ return a + b; }();
5510 auto d = [&](){ return c; }();
5511 auto e = [a, &b](int x) mutable {
5512 const auto identity = [](int y){ return y; };
5513 for (auto i = 0; i < a; ++i)
5515 return x + identity(a + b);
5517 return a + b + c + d + e;
5523 const auto nullary = [](){ return 0; };
5524 const auto unary = [](int x){ return x; };
5525 using nullary_t = decltype(nullary);
5526 using unary_t = decltype(unary);
5527 const auto higher1st = [](nullary_t f){ return f(); };
5528 const auto higher2nd = [unary](nullary_t f1){
5529 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5531 return higher1st(nullary) + higher2nd(nullary)(unary);
5536 namespace test_variadic_templates
5542 template <int N0, int... N1toN>
5543 struct sum<N0, N1toN...>
5545 static constexpr auto value = N0 + sum<N1toN...>::value;
5551 static constexpr auto value = 0;
5554 static_assert(sum<>::value == 0, "");
5555 static_assert(sum<1>::value == 1, "");
5556 static_assert(sum<23>::value == 23, "");
5557 static_assert(sum<1, 2>::value == 3, "");
5558 static_assert(sum<5, 5, 11>::value == 21, "");
5559 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5563 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5564 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5566 namespace test_template_alias_sfinae
5571 template<typename T>
5572 using member = typename T::member_type;
5574 template<typename T>
5577 template<typename T>
5578 void func(member<T>*) {}
5582 void test() { func<foo>(0); }
5586 } // namespace cxx11
5588 #endif // __cplusplus >= 201103L
5593 if ac_fn_cxx_try_compile
"$LINENO"; then :
5598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5601 eval ac_res
=\$
$cachevar
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5603 $as_echo "$ac_res" >&6; }
5604 if eval test x\$
$cachevar = xyes
; then
5605 CXX_DIALECT
="$switch"
5612 ac_cpp
='$CPP $CPPFLAGS'
5613 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5617 if test x
$ax_cxx_compile_cxx11_required = xtrue
; then
5618 if test x
$ac_success = xno
; then
5619 as_fn_error
"*** A compiler with support for C++11 language features is required." "$LINENO" 5
5622 if test x
$ac_success = xno
; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5625 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5629 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5637 $as_echo_n "checking for ANSI C header files... " >&6; }
5638 if test "${ac_cv_header_stdc+set}" = set; then :
5639 $as_echo_n "(cached) " >&6
5641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5656 if ac_fn_c_try_compile
"$LINENO"; then :
5657 ac_cv_header_stdc
=yes
5659 ac_cv_header_stdc
=no
5661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5663 if test $ac_cv_header_stdc = yes; then
5664 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5671 $EGREP "memchr" >/dev
/null
2>&1; then :
5674 ac_cv_header_stdc
=no
5680 if test $ac_cv_header_stdc = yes; then
5681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5688 $EGREP "free" >/dev
/null
2>&1; then :
5691 ac_cv_header_stdc
=no
5697 if test $ac_cv_header_stdc = yes; then
5698 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5699 if test "$cross_compiling" = yes; then :
5702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5706 #if ((' ' & 0x0FF) == 0x020)
5707 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5708 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5710 # define ISLOWER(c) \
5711 (('a' <= (c) && (c) <= 'i') \
5712 || ('j' <= (c) && (c) <= 'r') \
5713 || ('s' <= (c) && (c) <= 'z'))
5714 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5722 for (i = 0; i < 256; i++)
5723 if (XOR (islower (i), ISLOWER (i))
5724 || toupper (i) != TOUPPER (i))
5729 if ac_fn_c_try_run
"$LINENO"; then :
5732 ac_cv_header_stdc
=no
5734 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5735 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5741 $as_echo "$ac_cv_header_stdc" >&6; }
5742 if test $ac_cv_header_stdc = yes; then
5744 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5749 # Set the 'development' global.
5750 .
$srcdir/..
/..
/bfd
/development.sh
5752 # Enable -lmcheck by default (it provides cheap-enough memory
5753 # mangling), but turn it off for releases.
5754 if $development; then
5755 libmcheck_default
=yes
5757 libmcheck_default
=no
5760 # Check whether --enable-libmcheck was given.
5761 if test "${enable_libmcheck+set}" = set; then :
5762 enableval
=$enable_libmcheck; case "${enableval}" in
5763 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
5764 no | n
) ENABLE_LIBMCHECK
="no" ;;
5765 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
5770 if test -z "${ENABLE_LIBMCHECK}"; then
5771 ENABLE_LIBMCHECK
=${libmcheck_default}
5774 if test "$ENABLE_LIBMCHECK" = "yes" ; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
5776 $as_echo_n "checking for main in -lmcheck... " >&6; }
5777 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5780 ac_check_lib_save_LIBS
=$LIBS
5781 LIBS
="-lmcheck $LIBS"
5782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5794 if ac_fn_c_try_link
"$LINENO"; then :
5795 ac_cv_lib_mcheck_main
=yes
5797 ac_cv_lib_mcheck_main
=no
5799 rm -f core conftest.err conftest.
$ac_objext \
5800 conftest
$ac_exeext conftest.
$ac_ext
5801 LIBS
=$ac_check_lib_save_LIBS
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
5804 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
5805 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
5806 cat >>confdefs.h
<<_ACEOF
5807 #define HAVE_LIBMCHECK 1
5810 LIBS
="-lmcheck $LIBS"
5817 if $development; then
5819 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
5823 case ${build_alias} in
5824 "") build_noncanonical
=${build} ;;
5825 *) build_noncanonical
=${build_alias} ;;
5828 case ${host_alias} in
5829 "") host_noncanonical
=${build_noncanonical} ;;
5830 *) host_noncanonical
=${host_alias} ;;
5833 case ${target_alias} in
5834 "") target_noncanonical
=${host_noncanonical} ;;
5835 *) target_noncanonical
=${target_alias} ;;
5843 # Dependency checking.
5844 rm -rf .tst
2>/dev
/null
5845 mkdir .tst
2>/dev
/null
5846 if test -d .tst
; then
5851 rmdir .tst
2>/dev
/null
5853 DEPDIR
="${am__leading_dot}deps"
5855 ac_config_commands
="$ac_config_commands depdir"
5859 # Create sub-directories for objects and dependencies.
5860 CONFIG_SRC_SUBDIR
="arch"
5863 ac_config_commands
="$ac_config_commands gdbdepdir"
5866 depcc
="$CC" am_compiler_list
=
5868 am_depcomp
=$ac_aux_dir/depcomp
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5870 $as_echo_n "checking dependency style of $depcc... " >&6; }
5871 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5874 if test -f "$am_depcomp"; then
5875 # We make a subdir and do the tests there. Otherwise we can end up
5876 # making bogus files that we don't know about and never remove. For
5877 # instance it was reported that on HP-UX the gcc test will end up
5878 # making a dummy file named `D' -- because `-MD' means `put the output
5881 # Copy depcomp to subdir because otherwise we won't find it if we're
5882 # using a relative directory.
5883 cp "$am_depcomp" conftest.dir
5885 # We will build objects and dependencies in a subdirectory because
5886 # it helps to detect inapplicable dependency modes. For instance
5887 # both Tru64's cc and ICC support -MD to output dependencies as a
5888 # side effect of compilation, but ICC will put the dependencies in
5889 # the current directory while Tru64 will put them in the object
5893 am_cv_CC_dependencies_compiler_type
=none
5894 if test "$am_compiler_list" = ""; then
5895 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5897 for depmode
in $am_compiler_list; do
5898 if test $depmode = none
; then break; fi
5900 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5901 # Setup a source with many dependencies, because some compilers
5902 # like to wrap large dependency lists on column 80 (with \), and
5903 # we should not choose a depcomp mode which is confused by this.
5905 # We need to recreate these files for each test, as the compiler may
5906 # overwrite some of them when testing with obscure command lines.
5907 # This happens at least with the AIX C compiler.
5909 for i
in 1 2 3 4 5 6; do
5910 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5911 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5912 # Solaris 8's {/usr,}/bin/sh.
5913 touch sub
/conftst
$i.h
5915 echo "include sub/conftest.Po" > confmf
5917 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5918 # mode. It turns out that the SunPro C++ compiler does not properly
5919 # handle `-M -o', and we need to detect this.
5920 depcmd
="depmode=$depmode \
5921 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5922 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5923 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5924 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5925 if env
$depcmd > conftest.err
2>&1 &&
5926 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5927 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5928 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5929 # icc doesn't choke on unknown options, it will just issue warnings
5930 # or remarks (even with -Werror). So we grep stderr for any message
5931 # that says an option was ignored or not supported.
5932 # When given -MP, icc 7.0 and 7.1 complain thusly:
5933 # icc: Command line warning: ignoring option '-M'; no argument required
5934 # The diagnosis changed in icc 8.0:
5935 # icc: Command line remark: option '-MP' not supported
5936 if (grep 'ignoring option' conftest.err ||
5937 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5938 am_cv_CC_dependencies_compiler_type
=$depmode
5939 $as_echo "$as_me:$LINENO: success" >&5
5943 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5944 sed -e 's/^/| /' < conftest.err
>&5
5950 am_cv_CC_dependencies_compiler_type
=none
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5955 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5956 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
5957 then as_fn_error
"no usable dependency style found" "$LINENO" 5
5958 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5963 gnulib_extra_configure_args
=
5964 # If large-file support is disabled, make sure gnulib does the same.
5965 if test "$enable_largefile" = no
; then
5966 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5969 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
5970 # to find the the source subdir to be configured directly under
5971 # gdbserver/. We need to build gnulib under some other directory not
5972 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
5973 # build it in the same directory, when building in the source dir.
5976 in_build
="build-gnulib-gdbserver"
5977 in_extra_args
="$gnulib_extra_configure_args"
5979 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5980 # so they do not pile up.
5981 ac_sub_configure_args
=
5983 eval "set x $ac_configure_args"
5987 if test -n "$ac_prev"; then
5992 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5993 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5994 ac_prev
=cache_file
;;
5995 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5996 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5999 --config-cache |
-C)
6001 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6003 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6005 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6007 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6009 --disable-option-checking)
6013 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6015 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6019 # Always prepend --prefix to ensure using the same prefix
6020 # in subdir configurations.
6021 ac_arg
="--prefix=$prefix"
6023 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6025 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6028 if test "$silent" = yes; then
6029 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6032 # Always prepend --disable-option-checking to silence warnings, since
6033 # different subdirs can have different --enable and --with options.
6034 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6039 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6041 $as_echo "$ac_msg" >&6
6042 as_dir
="$ac_dir"; as_fn_mkdir_p
6046 ac_srcdir
=$srcdir/$in_src ;;
6048 ac_srcdir
=..
/$srcdir/$in_src ;;
6053 ac_sub_configure
=$ac_srcdir/configure
6055 # Make the cache file name correct relative to the subdirectory.
6057 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6059 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6062 if test -n "$in_extra_args"; then
6063 # Add the extra args at the end.
6064 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6067 { $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
6068 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6069 # The eval makes quoting arguments work.
6070 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6071 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6072 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6078 in_src
="../../libiberty"
6079 in_build
="build-libiberty-gdbserver"
6082 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6083 # so they do not pile up.
6084 ac_sub_configure_args
=
6086 eval "set x $ac_configure_args"
6090 if test -n "$ac_prev"; then
6095 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6096 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6097 ac_prev
=cache_file
;;
6098 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6099 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6102 --config-cache |
-C)
6104 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6106 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6108 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6110 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6112 --disable-option-checking)
6116 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6118 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6122 # Always prepend --prefix to ensure using the same prefix
6123 # in subdir configurations.
6124 ac_arg
="--prefix=$prefix"
6126 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6128 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6131 if test "$silent" = yes; then
6132 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6135 # Always prepend --disable-option-checking to silence warnings, since
6136 # different subdirs can have different --enable and --with options.
6137 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6142 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6144 $as_echo "$ac_msg" >&6
6145 as_dir
="$ac_dir"; as_fn_mkdir_p
6149 ac_srcdir
=$srcdir/$in_src ;;
6151 ac_srcdir
=..
/$srcdir/$in_src ;;
6156 ac_sub_configure
=$ac_srcdir/configure
6158 # Make the cache file name correct relative to the subdirectory.
6160 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6162 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6165 if test -n "$in_extra_args"; then
6166 # Add the extra args at the end.
6167 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6170 { $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
6171 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6172 # The eval makes quoting arguments work.
6173 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6174 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6175 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6180 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
6182 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6183 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6184 eval as_val
=\$
$as_ac_Header
6185 if test "x$as_val" = x
""yes; then :
6186 cat >>confdefs.h
<<_ACEOF
6187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6194 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6195 if test "x$ac_cv_type_pid_t" = x
""yes; then :
6199 cat >>confdefs.h
<<_ACEOF
6205 for ac_header
in vfork.h
6207 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6208 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
6209 cat >>confdefs.h
<<_ACEOF
6210 #define HAVE_VFORK_H 1
6217 for ac_func
in fork vfork
6219 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6220 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6221 eval as_val
=\$
$as_ac_var
6222 if test "x$as_val" = x
""yes; then :
6223 cat >>confdefs.h
<<_ACEOF
6224 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6230 if test "x$ac_cv_func_fork" = xyes
; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6232 $as_echo_n "checking for working fork... " >&6; }
6233 if test "${ac_cv_func_fork_works+set}" = set; then :
6234 $as_echo_n "(cached) " >&6
6236 if test "$cross_compiling" = yes; then :
6237 ac_cv_func_fork_works
=cross
6239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6241 $ac_includes_default
6246 /* By Ruediger Kuhlmann. */
6253 if ac_fn_c_try_run
"$LINENO"; then :
6254 ac_cv_func_fork_works
=yes
6256 ac_cv_func_fork_works
=no
6258 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6259 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6264 $as_echo "$ac_cv_func_fork_works" >&6; }
6267 ac_cv_func_fork_works
=$ac_cv_func_fork
6269 if test "x$ac_cv_func_fork_works" = xcross
; then
6271 *-*-amigaos* |
*-*-msdosdjgpp*)
6272 # Override, as these systems have only a dummy fork() stub
6273 ac_cv_func_fork_works
=no
6276 ac_cv_func_fork_works
=yes
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6280 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6282 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6283 if test "x$ac_cv_func_vfork" = xyes
; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6285 $as_echo_n "checking for working vfork... " >&6; }
6286 if test "${ac_cv_func_vfork_works+set}" = set; then :
6287 $as_echo_n "(cached) " >&6
6289 if test "$cross_compiling" = yes; then :
6290 ac_cv_func_vfork_works
=cross
6292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294 /* Thanks to Paul Eggert for this test. */
6295 $ac_includes_default
6296 #include <sys/wait.h>
6300 /* On some sparc systems, changes by the child to local and incoming
6301 argument registers are propagated back to the parent. The compiler
6302 is told about this with #include <vfork.h>, but some compilers
6303 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6304 static variable whose address is put into a register that is
6305 clobbered by the vfork. */
6308 sparc_address_test (int arg)
6310 sparc_address_test (arg) int arg;
6331 pid_t parent = getpid ();
6334 sparc_address_test (0);
6339 /* Here is another test for sparc vfork register problems. This
6340 test uses lots of local variables, at least as many local
6341 variables as main has allocated so far including compiler
6342 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6343 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6344 reuse the register of parent for one of the local variables,
6345 since it will think that parent can't possibly be used any more
6346 in this routine. Assigning to the local variable will thus
6347 munge parent in the parent process. */
6349 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6350 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6351 /* Convince the compiler that p..p7 are live; otherwise, it might
6352 use the same hardware register for all 8 local variables. */
6353 if (p != p1 || p != p2 || p != p3 || p != p4
6354 || p != p5 || p != p6 || p != p7)
6357 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6358 from child file descriptors. If the child closes a descriptor
6359 before it execs or exits, this munges the parent's descriptor
6360 as well. Test for this by closing stdout in the child. */
6361 _exit(close(fileno(stdout)) != 0);
6366 while (wait(&status) != child)
6369 /* Was there some problem with vforking? */
6372 /* Did the child fail? (This shouldn't happen.) */
6375 /* Did the vfork/compiler bug occur? */
6376 || parent != getpid()
6378 /* Did the file descriptor bug occur? */
6379 || fstat(fileno(stdout), &st) != 0
6384 if ac_fn_c_try_run
"$LINENO"; then :
6385 ac_cv_func_vfork_works
=yes
6387 ac_cv_func_vfork_works
=no
6389 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6390 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6395 $as_echo "$ac_cv_func_vfork_works" >&6; }
6398 if test "x$ac_cv_func_fork_works" = xcross
; then
6399 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6401 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6404 if test "x$ac_cv_func_vfork_works" = xyes
; then
6406 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6410 $as_echo "#define vfork fork" >>confdefs.h
6413 if test "x$ac_cv_func_fork_works" = xyes
; then
6415 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6419 for ac_func
in getauxval pread pwrite pread64 setns
6421 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6422 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6423 eval as_val
=\$
$as_ac_var
6424 if test "x$as_val" = x
""yes; then :
6425 cat >>confdefs.h
<<_ACEOF
6426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6435 $as_echo_n "checking for ANSI C header files... " >&6; }
6436 if test "${ac_cv_header_stdc+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6454 if ac_fn_c_try_compile
"$LINENO"; then :
6455 ac_cv_header_stdc
=yes
6457 ac_cv_header_stdc
=no
6459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6461 if test $ac_cv_header_stdc = yes; then
6462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6469 $EGREP "memchr" >/dev
/null
2>&1; then :
6472 ac_cv_header_stdc
=no
6478 if test $ac_cv_header_stdc = yes; then
6479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6486 $EGREP "free" >/dev
/null
2>&1; then :
6489 ac_cv_header_stdc
=no
6495 if test $ac_cv_header_stdc = yes; then
6496 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6497 if test "$cross_compiling" = yes; then :
6500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6504 #if ((' ' & 0x0FF) == 0x020)
6505 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6506 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6508 # define ISLOWER(c) \
6509 (('a' <= (c) && (c) <= 'i') \
6510 || ('j' <= (c) && (c) <= 'r') \
6511 || ('s' <= (c) && (c) <= 'z'))
6512 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6515 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6520 for (i = 0; i < 256; i++)
6521 if (XOR (islower (i), ISLOWER (i))
6522 || toupper (i) != TOUPPER (i))
6527 if ac_fn_c_try_run
"$LINENO"; then :
6530 ac_cv_header_stdc
=no
6532 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6533 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6539 $as_echo "$ac_cv_header_stdc" >&6; }
6540 if test $ac_cv_header_stdc = yes; then
6542 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6546 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6547 # for constant arguments. Useless!
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6549 $as_echo_n "checking for working alloca.h... " >&6; }
6550 if test "${ac_cv_working_alloca_h+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6559 char *p = (char *) alloca (2 * sizeof (int));
6565 if ac_fn_c_try_link
"$LINENO"; then :
6566 ac_cv_working_alloca_h
=yes
6568 ac_cv_working_alloca_h
=no
6570 rm -f core conftest.err conftest.
$ac_objext \
6571 conftest
$ac_exeext conftest.
$ac_ext
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6574 $as_echo "$ac_cv_working_alloca_h" >&6; }
6575 if test $ac_cv_working_alloca_h = yes; then
6577 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6582 $as_echo_n "checking for alloca... " >&6; }
6583 if test "${ac_cv_func_alloca_works+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6589 # define alloca __builtin_alloca
6592 # include <malloc.h>
6593 # define alloca _alloca
6595 # ifdef HAVE_ALLOCA_H
6596 # include <alloca.h>
6601 # ifndef alloca /* predefined by HP cc +Olibcalls */
6612 char *p = (char *) alloca (1);
6618 if ac_fn_c_try_link
"$LINENO"; then :
6619 ac_cv_func_alloca_works
=yes
6621 ac_cv_func_alloca_works
=no
6623 rm -f core conftest.err conftest.
$ac_objext \
6624 conftest
$ac_exeext conftest.
$ac_ext
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6627 $as_echo "$ac_cv_func_alloca_works" >&6; }
6629 if test $ac_cv_func_alloca_works = yes; then
6631 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6634 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6635 # that cause trouble. Some versions do not even contain alloca or
6636 # contain a buggy version. If you still want to use their alloca,
6637 # use ar to extract alloca.o from them instead of compiling alloca.c.
6639 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6641 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6645 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6646 if test "${ac_cv_os_cray+set}" = set; then :
6647 $as_echo_n "(cached) " >&6
6649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6650 /* end confdefs.h. */
6651 #if defined CRAY && ! defined CRAY2
6658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6659 $EGREP "webecray" >/dev
/null
2>&1; then :
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6668 $as_echo "$ac_cv_os_cray" >&6; }
6669 if test $ac_cv_os_cray = yes; then
6670 for ac_func
in _getb67 GETB67 getb67
; do
6671 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6672 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6673 eval as_val
=\$
$as_ac_var
6674 if test "x$as_val" = x
""yes; then :
6676 cat >>confdefs.h
<<_ACEOF
6677 #define CRAY_STACKSEG_END $ac_func
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6687 $as_echo_n "checking stack direction for C alloca... " >&6; }
6688 if test "${ac_cv_c_stack_direction+set}" = set; then :
6689 $as_echo_n "(cached) " >&6
6691 if test "$cross_compiling" = yes; then :
6692 ac_cv_c_stack_direction
=0
6694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6696 $ac_includes_default
6698 find_stack_direction ()
6700 static char *addr = 0;
6705 return find_stack_direction ();
6708 return (&dummy > addr) ? 1 : -1;
6714 return find_stack_direction () < 0;
6717 if ac_fn_c_try_run
"$LINENO"; then :
6718 ac_cv_c_stack_direction
=1
6720 ac_cv_c_stack_direction
=-1
6722 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6723 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6728 $as_echo "$ac_cv_c_stack_direction" >&6; }
6729 cat >>confdefs.h
<<_ACEOF
6730 #define STACK_DIRECTION $ac_cv_c_stack_direction
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6739 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6740 if test "${am_cv_langinfo_codeset+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 #include <langinfo.h>
6749 char* cs = nl_langinfo(CODESET);
6754 if ac_fn_c_try_link
"$LINENO"; then :
6755 am_cv_langinfo_codeset
=yes
6757 am_cv_langinfo_codeset
=no
6759 rm -f core conftest.err conftest.
$ac_objext \
6760 conftest
$ac_exeext conftest.
$ac_ext
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6764 $as_echo "$am_cv_langinfo_codeset" >&6; }
6765 if test $am_cv_langinfo_codeset = yes; then
6767 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6772 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 termios.h termio.h sgtty.h
6774 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6775 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6776 eval as_val
=\$
$as_ac_Header
6777 if test "x$as_val" = x
""yes; then :
6778 cat >>confdefs.h
<<_ACEOF
6779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6787 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
6789 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6790 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6791 eval as_val
=\$
$as_ac_var
6792 if test "x$as_val" = x
""yes; then :
6793 cat >>confdefs.h
<<_ACEOF
6794 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6801 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
6802 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
6808 cat >>confdefs.h
<<_ACEOF
6809 #define HAVE_DECL_STRERROR $ac_have_decl
6811 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
6812 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
6818 cat >>confdefs.h
<<_ACEOF
6819 #define HAVE_DECL_STRSTR $ac_have_decl
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
6824 $as_echo_n "checking for sigsetjmp... " >&6; }
6825 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6836 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6841 if ac_fn_c_try_compile
"$LINENO"; then :
6842 gdb_cv_func_sigsetjmp
=yes
6844 gdb_cv_func_sigsetjmp
=no
6846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
6849 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
6850 if test $gdb_cv_func_sigsetjmp = yes; then
6852 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
6857 # Check the return and argument types of ptrace.
6860 for ac_header
in sys
/ptrace.h ptrace.h
6862 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6863 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6864 eval as_val
=\$
$as_ac_Header
6865 if test "x$as_val" = x
""yes; then :
6866 cat >>confdefs.h
<<_ACEOF
6867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6875 gdb_ptrace_headers
='
6876 #include <sys/types.h>
6877 #if HAVE_SYS_PTRACE_H
6878 # include <sys/ptrace.h>
6881 # include <unistd.h>
6884 # There is no point in checking if we don't have a prototype.
6885 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
6887 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
6893 cat >>confdefs.h
<<_ACEOF
6894 #define HAVE_DECL_PTRACE $ac_have_decl
6896 if test $ac_have_decl = 1; then :
6900 : ${gdb_cv_func_ptrace_ret='int'}
6901 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6905 # Check return type. Varargs (used on GNU/Linux) conflict with the
6906 # empty argument list, so check for that explicitly.
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
6908 $as_echo_n "checking return type of ptrace... " >&6; }
6909 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6918 extern long ptrace (enum __ptrace_request, ...);
6923 if ac_fn_c_try_compile
"$LINENO"; then :
6924 gdb_cv_func_ptrace_ret
='long'
6926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6932 extern int ptrace ();
6937 if ac_fn_c_try_compile
"$LINENO"; then :
6938 gdb_cv_func_ptrace_ret
='int'
6940 gdb_cv_func_ptrace_ret
='long'
6942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
6947 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
6949 cat >>confdefs.h
<<_ACEOF
6950 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
6953 # Check argument types.
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
6955 $as_echo_n "checking types of arguments for ptrace... " >&6; }
6956 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
6957 $as_echo_n "(cached) " >&6
6960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6966 extern long ptrace (enum __ptrace_request, ...);
6971 if ac_fn_c_try_compile
"$LINENO"; then :
6972 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
6975 for gdb_arg1
in 'int' 'long'; do
6976 for gdb_arg2
in 'pid_t' 'int' 'long'; do
6977 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
6978 for gdb_arg4
in 'int' 'long' 'void *'; do
6979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6986 extern $gdb_cv_func_ptrace_ret
6987 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
6993 if ac_fn_c_try_compile
"$LINENO"; then :
6994 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
6997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6998 for gdb_arg5
in 'int *' 'int' 'long'; do
6999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7006 extern $gdb_cv_func_ptrace_ret
7007 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
7013 if ac_fn_c_try_compile
"$LINENO"; then :
7015 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
7018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7024 # Provide a safe default value.
7025 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
7031 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
7032 ac_save_IFS
=$IFS; IFS
=','
7033 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
7037 cat >>confdefs.h
<<_ACEOF
7038 #define PTRACE_TYPE_ARG1 $1
7042 cat >>confdefs.h
<<_ACEOF
7043 #define PTRACE_TYPE_ARG3 $3
7047 cat >>confdefs.h
<<_ACEOF
7048 #define PTRACE_TYPE_ARG4 $4
7051 if test -n "$5"; then
7053 cat >>confdefs.h
<<_ACEOF
7054 #define PTRACE_TYPE_ARG5 $5
7065 # Check whether --with-ust was given.
7066 if test "${with_ust+set}" = set; then :
7071 # Check whether --with-ust_include was given.
7072 if test "${with_ust_include+set}" = set; then :
7073 withval
=$with_ust_include;
7077 # Check whether --with-ust_lib was given.
7078 if test "${with_ust_lib+set}" = set; then :
7079 withval
=$with_ust_lib;
7093 ustlibs
="-L$with_ust/lib -lust"
7094 ustinc
="-I$with_ust/include "
7097 if test "x$with_ust_include" != x
; then
7098 ustinc
="-I$with_ust_include "
7100 if test "x$with_ust_lib" != x
; then
7101 ustlibs
="-L$with_ust_lib -lust"
7104 if test "x$with_ust" != "xno"; then
7105 saved_CFLAGS
="$CFLAGS"
7106 CFLAGS
="$CFLAGS $ustinc"
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
7108 $as_echo_n "checking for ust... " >&6; }
7109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7112 #define CONFIG_UST_GDB_INTEGRATION
7113 #include <ust/ust.h>
7123 if ac_fn_c_try_compile
"$LINENO"; then :
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7125 $as_echo "yes" >&6; };
7126 $as_echo "#define HAVE_UST 1" >>confdefs.h
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
7132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7133 CFLAGS
="$saved_CFLAGS"
7136 # Flags needed for UST
7141 # Check whether --enable-werror was given.
7142 if test "${enable_werror+set}" = set; then :
7143 enableval
=$enable_werror; case "${enableval}" in
7144 yes | y
) ERROR_ON_WARNING
="yes" ;;
7145 no | n
) ERROR_ON_WARNING
="no" ;;
7146 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
7151 # Enable -Werror by default when using gcc. Turn it off for releases.
7152 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
7153 ERROR_ON_WARNING
=yes
7157 if test "${ERROR_ON_WARNING}" = yes ; then
7158 WERROR_CFLAGS
="-Werror"
7161 # The options we'll try to enable.
7162 build_warnings
="-Wall -Wpointer-arith \
7163 -Wno-unused -Wunused-value -Wunused-function \
7164 -Wno-switch -Wno-char-subscripts \
7165 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
7166 -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \
7167 -Wno-mismatched-tags"
7171 # Enable -Wno-format by default when using gcc on mingw since many
7172 # GCC versions complain about %I64.
7173 build_warnings
="$build_warnings -Wno-format" ;;
7175 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
7176 # doesn't understand.
7177 build_warnings
="$build_warnings -Wno-unknown-pragmas"
7178 # Solaris 11 <unistd.h> marks vfork deprecated.
7179 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
7180 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
7183 # Check whether --enable-build-warnings was given.
7184 if test "${enable_build_warnings+set}" = set; then :
7185 enableval
=$enable_build_warnings; case "${enableval}" in
7187 no
) build_warnings
="-w";;
7188 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7189 build_warnings
="${build_warnings} ${t}";;
7190 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7191 build_warnings
="${t} ${build_warnings}";;
7192 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7194 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7195 echo "Setting compiler warning flags = $build_warnings" 6>&1
7198 # Check whether --enable-gdb-build-warnings was given.
7199 if test "${enable_gdb_build_warnings+set}" = set; then :
7200 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
7202 no
) build_warnings
="-w";;
7203 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7204 build_warnings
="${build_warnings} ${t}";;
7205 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7206 build_warnings
="${t} ${build_warnings}";;
7207 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7209 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7210 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7214 # The set of warnings supported by a C++ compiler is not the same as
7215 # of the C compiler.
7217 ac_cpp
='$CXXCPP $CPPFLAGS'
7218 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7219 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7220 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7224 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
7227 $as_echo_n "checking compiler warning flags... " >&6; }
7228 # Separate out the -Werror flag as some files just cannot be
7229 # compiled with it enabled.
7230 for w
in ${build_warnings}; do
7231 # GCC does not complain about -Wno-unknown-warning. Invert
7232 # and test -Wunknown-warning instead.
7235 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
7241 -Werr*) WERROR_CFLAGS
=-Werror ;;
7243 # Check whether GCC accepts it.
7244 saved_CFLAGS
="$CFLAGS"
7245 CFLAGS
="$CFLAGS -Werror $wtest"
7246 saved_CXXFLAGS
="$CXXFLAGS"
7247 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
7248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7259 if ac_fn_cxx_try_compile
"$LINENO"; then :
7260 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7263 CFLAGS
="$saved_CFLAGS"
7264 CXXFLAGS
="$saved_CXXFLAGS"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
7268 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
7274 ac_cpp='$CPP $CPPFLAGS'
7275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7280 case " $WARN_CFLAGS " in
7281 *" -Wmissing-prototypes "*)
7282 WARN_CFLAGS="$WARN_CFLAGS -Wno-missing-prototypes"
7288 for ac_func in dladdr
7290 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
7291 if test "x
$ac_cv_func_dladdr" = x""yes; then :
7292 cat >>confdefs.h <<_ACEOF
7293 #define HAVE_DLADDR 1
7302 # Check for presence and size of long long.
7303 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
7304 if test "x
$ac_cv_type_long_long" = x""yes; then :
7306 cat >>confdefs.h <<_ACEOF
7307 #define HAVE_LONG_LONG 1
7310 # The cast to long int works around a bug in the HP C Compiler
7311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7313 # This bug is HP SR number 8606223364.
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
7315 $as_echo_n "checking size of long long...
" >&6; }
7316 if test "${ac_cv_sizeof_long_long+set}" = set; then :
7317 $as_echo_n "(cached
) " >&6
7319 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
7322 if test "$ac_cv_type_long_long" = yes; then
7323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7325 { as_fn_set_status 77
7326 as_fn_error "cannot compute sizeof (long long)
7327 See \`config.log' for more details.
" "$LINENO" 5; }; }
7329 ac_cv_sizeof_long_long=0
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
7335 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7339 cat >>confdefs.h <<_ACEOF
7340 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7347 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "ac_cv_have_decl_basename_char_p_
" "$ac_includes_default"
7348 if test "x
$ac_cv_have_decl_basename_char_p_" = x""yes; then :
7354 cat >>confdefs.h <<_ACEOF
7355 #define HAVE_DECL_BASENAME $ac_have_decl
7357 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
7358 if test "x
$ac_cv_have_decl_ffs" = x""yes; then :
7364 cat >>confdefs.h <<_ACEOF
7365 #define HAVE_DECL_FFS $ac_have_decl
7367 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
7368 if test "x
$ac_cv_have_decl_asprintf" = x""yes; then :
7374 cat >>confdefs.h <<_ACEOF
7375 #define HAVE_DECL_ASPRINTF $ac_have_decl
7377 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
7378 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
7384 cat >>confdefs.h <<_ACEOF
7385 #define HAVE_DECL_VASPRINTF $ac_have_decl
7387 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
7388 if test "x
$ac_cv_have_decl_snprintf" = x""yes; then :
7394 cat >>confdefs.h <<_ACEOF
7395 #define HAVE_DECL_SNPRINTF $ac_have_decl
7397 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
7398 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
7404 cat >>confdefs.h <<_ACEOF
7405 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7408 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
7409 if test "x
$ac_cv_have_decl_strtol" = x""yes; then :
7415 cat >>confdefs.h <<_ACEOF
7416 #define HAVE_DECL_STRTOL $ac_have_decl
7418 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
7419 if test "x
$ac_cv_have_decl_strtoul" = x""yes; then :
7425 cat >>confdefs.h <<_ACEOF
7426 #define HAVE_DECL_STRTOUL $ac_have_decl
7428 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
7429 if test "x
$ac_cv_have_decl_strtoll" = x""yes; then :
7435 cat >>confdefs.h <<_ACEOF
7436 #define HAVE_DECL_STRTOLL $ac_have_decl
7438 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
7439 if test "x
$ac_cv_have_decl_strtoull" = x""yes; then :
7445 cat >>confdefs.h <<_ACEOF
7446 #define HAVE_DECL_STRTOULL $ac_have_decl
7449 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
7450 if test "x
$ac_cv_have_decl_strverscmp" = x""yes; then :
7456 cat >>confdefs.h <<_ACEOF
7457 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7462 ac_fn_c_check_decl "$LINENO" "strerror
" "ac_cv_have_decl_strerror
" "$ac_includes_default"
7463 if test "x
$ac_cv_have_decl_strerror" = x""yes; then :
7469 cat >>confdefs.h <<_ACEOF
7470 #define HAVE_DECL_STRERROR $ac_have_decl
7472 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
7473 if test "x
$ac_cv_have_decl_perror" = x""yes; then :
7479 cat >>confdefs.h <<_ACEOF
7480 #define HAVE_DECL_PERROR $ac_have_decl
7482 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
7483 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
7489 cat >>confdefs.h <<_ACEOF
7490 #define HAVE_DECL_VASPRINTF $ac_have_decl
7492 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
7493 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
7499 cat >>confdefs.h <<_ACEOF
7500 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7504 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
7505 if test "x
$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
7507 cat >>confdefs.h <<_ACEOF
7508 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7513 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
7514 if test "x
$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
7516 cat >>confdefs.h <<_ACEOF
7517 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7524 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
7525 # Older amd64 Linux's don't have the fs_base and gs_base members of
7526 # `struct user_regs_struct'.
7527 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "fs_base
" "ac_cv_member_struct_user_regs_struct_fs_base
" "#include <sys/user.h>
7529 if test "x
$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
7531 cat >>confdefs.h <<_ACEOF
7532 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
7537 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "gs_base
" "ac_cv_member_struct_user_regs_struct_gs_base
" "#include <sys/user.h>
7539 if test "x
$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
7541 cat >>confdefs.h <<_ACEOF
7542 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
7550 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
7551 #include <sys/socket.h>
7554 if test "x
$ac_cv_type_socklen_t" = x""yes; then :
7556 cat >>confdefs.h <<_ACEOF
7557 #define HAVE_SOCKLEN_T 1
7566 # Starting with NDK version 9, <elf.h> actually includes definitions
7567 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
7568 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
7569 # leading to conflicts with the defintions from <linux/elf.h>.
7570 # This makes it impossible for us to include both <elf.h> and
7571 # <linux/elf.h>, which means that, in practice, we do not have
7572 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
7573 # Therefore, do not try to auto-detect availability, as it would
7574 # get it wrong on this platform.
7577 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
7580 if test "x
$ac_cv_type_Elf32_auxv_t" = x""yes; then :
7582 cat >>confdefs.h <<_ACEOF
7583 #define HAVE_ELF32_AUXV_T 1
7588 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
7591 if test "x
$ac_cv_type_Elf64_auxv_t" = x""yes; then :
7593 cat >>confdefs.h <<_ACEOF
7594 #define HAVE_ELF64_AUXV_T 1
7604 # Check whether --with-pkgversion was given.
7605 if test "${with_pkgversion+set}" = set; then :
7606 withval=$with_pkgversion; case "$withval" in
7607 yes) as_fn_error "package version not specified
" "$LINENO" 5 ;;
7609 *) PKGVERSION="($withval) " ;;
7620 # Check whether --with-bugurl was given.
7621 if test "${with_bugurl+set}" = set; then :
7622 withval=$with_bugurl; case "$withval" in
7623 yes) as_fn_error "bug URL not specified
" "$LINENO" 5 ;;
7626 *) BUGURL="$withval"
7630 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
7640 REPORT_BUGS_TO="<$BUGURL>"
7641 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7648 cat >>confdefs.h <<_ACEOF
7649 #define PKGVERSION "$PKGVERSION"
7653 cat >>confdefs.h <<_ACEOF
7654 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7658 # Check for various supplementary target information (beyond the
7659 # triplet) which might affect the choices in configure.srv.
7661 i[34567]86-*-linux*)
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
7663 $as_echo_n "checking
if building
for x86-64...
" >&6; }
7664 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
7665 $as_echo_n "(cached
) " >&6
7667 save_CPPFLAGS="$CPPFLAGS"
7668 CPPFLAGS="$CPPFLAGS $CFLAGS"
7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7677 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7678 $EGREP "got it
" >/dev/null 2>&1; then :
7679 gdb_cv_i386_is_x86_64=yes
7681 gdb_cv_i386_is_x86_64=no
7685 CPPFLAGS="$save_CPPFLAGS"
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
7688 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
7693 $as_echo_n "checking
if building
for x32...
" >&6; }
7694 if test "${gdb_cv_x86_is_x32+set}" = set; then :
7695 $as_echo_n "(cached
) " >&6
7697 save_CPPFLAGS="$CPPFLAGS"
7698 CPPFLAGS="$CPPFLAGS $CFLAGS"
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7702 #if __x86_64__ && __ILP32__
7707 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7708 $EGREP "got it
" >/dev/null 2>&1; then :
7709 gdb_cv_x86_is_x32=yes
7711 gdb_cv_x86_is_x32=no
7715 CPPFLAGS="$save_CPPFLAGS"
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
7718 $as_echo "$gdb_cv_x86_is_x32" >&6; }
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
7723 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
7724 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
7725 $as_echo_n "(cached
) " >&6
7727 save_CPPFLAGS="$CPPFLAGS"
7728 CPPFLAGS="$CPPFLAGS $CFLAGS"
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7732 #ifdef __mcoldfire__
7737 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7738 $EGREP "got it
" >/dev/null 2>&1; then :
7739 gdb_cv_m68k_is_coldfire=yes
7741 gdb_cv_m68k_is_coldfire=no
7745 CPPFLAGS="$save_CPPFLAGS"
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
7748 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
7752 . ${srcdir}/configure.srv
7754 # Add in the common host objects.
7755 . ${srcdir}/../common/common.host
7756 srv_host_obs="$common_host_obs"
7758 if test "${srv_mingwce}" = "yes"; then
7760 elif test "${srv_mingw}" = "yes"; then
7761 LIBS="$LIBS -lws2_32"
7762 elif test "${srv_qnx}" = "yes"; then
7763 LIBS="$LIBS -lsocket"
7764 elif test "${srv_lynxos}" = "yes"; then
7765 LIBS="$LIBS -lnetinet"
7768 if test "${srv_mingw}" = "yes"; then
7770 $as_echo "#define USE_WIN32API 1" >>confdefs.h
7774 if test "${srv_linux_usrregs}" = "yes"; then
7776 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
7780 if test "${srv_linux_regsets}" = "yes"; then
7782 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
7786 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
7787 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h. */
7792 #include <sys/ptrace.h>
7801 if ac_fn_c_try_compile
"$LINENO"; then :
7802 gdbsrv_cv_have_ptrace_getregs
=yes
7804 gdbsrv_cv_have_ptrace_getregs
=no
7806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
7810 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
7811 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
7813 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
7818 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
7819 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
7822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7824 #include <sys/ptrace.h>
7833 if ac_fn_c_try_compile
"$LINENO"; then :
7834 gdbsrv_cv_have_ptrace_getfpxregs
=yes
7836 gdbsrv_cv_have_ptrace_getfpxregs
=no
7838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
7842 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
7843 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
7845 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
7850 if test "${srv_linux_btrace}" = "yes"; then
7852 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
7856 if test "$ac_cv_header_sys_procfs_h" = yes; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
7858 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
7859 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
7860 $as_echo_n "(cached) " >&6
7862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7866 /* Needed for new procfs interface on sparc-solaris. */
7867 #define _STRUCTURED_PROC 1
7868 #include <sys/procfs.h>
7877 if ac_fn_c_try_compile
"$LINENO"; then :
7878 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
7880 bfd_cv_have_sys_procfs_type_lwpid_t
=no
7883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7886 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
7888 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
7892 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
7895 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
7896 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7903 /* Needed for new procfs interface on sparc-solaris. */
7904 #define _STRUCTURED_PROC 1
7905 #include <sys/procfs.h>
7914 if ac_fn_c_try_compile
"$LINENO"; then :
7915 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
7917 bfd_cv_have_sys_procfs_type_psaddr_t
=no
7920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7923 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7925 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
7929 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
7932 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
7933 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7940 /* Needed for new procfs interface on sparc-solaris. */
7941 #define _STRUCTURED_PROC 1
7942 #include <sys/procfs.h>
7951 if ac_fn_c_try_compile
"$LINENO"; then :
7952 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
7954 bfd_cv_have_sys_procfs_type_prgregset_t
=no
7957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7960 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
7962 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
7966 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
7969 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
7970 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7977 /* Needed for new procfs interface on sparc-solaris. */
7978 #define _STRUCTURED_PROC 1
7979 #include <sys/procfs.h>
7988 if ac_fn_c_try_compile
"$LINENO"; then :
7989 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
7991 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
7994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7997 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7999 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
8003 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
8006 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
8007 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
8008 $as_echo_n "(cached) " >&6
8010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8014 /* Needed for new procfs interface on sparc-solaris. */
8015 #define _STRUCTURED_PROC 1
8016 #include <sys/procfs.h>
8025 if ac_fn_c_try_compile
"$LINENO"; then :
8026 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
8028 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
8031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8034 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
8036 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8040 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
8044 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
8046 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
8047 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
8048 $as_echo_n "(cached) " >&6
8050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8053 #include <thread_db.h>
8062 if ac_fn_c_try_compile
"$LINENO"; then :
8063 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
8065 gdbserver_cv_have_thread_db_type_lwpid_t
=no
8068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8071 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
8073 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
8077 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
8081 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
8083 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
8084 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8090 #include <thread_db.h>
8099 if ac_fn_c_try_compile
"$LINENO"; then :
8100 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
8102 gdbserver_cv_have_thread_db_type_psaddr_t
=no
8105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8108 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
8110 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
8114 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8122 $as_echo_n "(cached) " >&6
8124 ac_check_lib_save_LIBS
=$LIBS
8126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8129 /* Override any GCC internal prototype to avoid an error.
8130 Use char because int might match the return type of a GCC
8131 builtin and then its argument prototype would still apply. */
8144 if ac_fn_c_try_link
"$LINENO"; then :
8145 ac_cv_lib_dl_dlopen
=yes
8147 ac_cv_lib_dl_dlopen
=no
8149 rm -f core conftest.err conftest.
$ac_objext \
8150 conftest
$ac_exeext conftest.
$ac_ext
8151 LIBS
=$ac_check_lib_save_LIBS
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8154 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8155 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
8156 cat >>confdefs.h
<<_ACEOF
8157 #define HAVE_LIBDL 1
8166 srv_thread_depfiles
=
8169 if test "$srv_linux_thread_db" = "yes"; then
8170 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
8173 $as_echo_n "checking for the dynamic export flag... " >&6; }
8174 old_LDFLAGS
="$LDFLAGS"
8175 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
8177 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
8178 LDFLAGS
="$LDFLAGS $RDYNAMIC"
8179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8190 if ac_fn_c_try_link
"$LINENO"; then :
8191 found
="-Wl,--dynamic-list"
8192 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
8194 RDYNAMIC
="-rdynamic"
8195 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
8196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8207 if ac_fn_c_try_link
"$LINENO"; then :
8213 rm -f core conftest.err conftest.
$ac_objext \
8214 conftest
$ac_exeext conftest.
$ac_ext
8216 rm -f core conftest.err conftest.
$ac_objext \
8217 conftest
$ac_exeext conftest.
$ac_ext
8219 LDFLAGS
="$old_LDFLAGS"
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8221 $as_echo "$found" >&6; }
8223 srv_libs
="-lthread_db"
8226 srv_thread_depfiles
="thread-db.o proc-service.o"
8228 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
8231 $as_echo_n "checking for TD_VERSION... " >&6; }
8232 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237 #include <thread_db.h>
8246 if ac_fn_c_try_compile
"$LINENO"; then :
8247 gdbsrv_cv_have_td_version
=yes
8249 gdbsrv_cv_have_td_version
=no
8251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
8254 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
8255 if test $gdbsrv_cv_have_td_version = yes; then
8257 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
8263 # Check whether --with-libthread-db was given.
8264 if test "${with_libthread_db+set}" = set; then :
8265 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
8266 srv_libs
="$srv_libthread_db_path"
8271 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
8273 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
8277 if test "$srv_xmlfiles" != ""; then
8278 srv_xmlbuiltin
="xml-builtin.o"
8280 $as_echo "#define USE_XML 1" >>confdefs.h
8283 tmp_xmlfiles
=$srv_xmlfiles
8285 for f
in $tmp_xmlfiles; do
8286 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
8290 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs"
8291 GDBSERVER_LIBS
="$srv_libs"
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
8294 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
8295 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8305 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
8310 if ac_fn_c_try_link
"$LINENO"; then :
8311 gdbsrv_cv_have_sync_builtins
=yes
8313 gdbsrv_cv_have_sync_builtins
=no
8315 rm -f core conftest.err conftest.
$ac_objext \
8316 conftest
$ac_exeext conftest.
$ac_ext
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
8319 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
8320 if test $gdbsrv_cv_have_sync_builtins = yes; then
8322 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
8326 saved_cflags
="$CFLAGS"
8327 CFLAGS
="$CFLAGS -fvisibility=hidden"
8328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8339 if ac_fn_c_try_compile
"$LINENO"; then :
8340 gdbsrv_cv_have_visibility_hidden
=yes
8342 gdbsrv_cv_have_visibility_hidden
=no
8344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8345 CFLAGS
="$saved_cflags"
8347 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8349 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
8355 cat >>confdefs.h
<<_ACEOF
8356 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8360 if test "$cross_compiling" = yes; then :
8361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 #include <sys/personality.h>
8368 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8369 # define ADDR_NO_RANDOMIZE 0x0040000
8371 /* Test the flag could be set and stays set. */
8372 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8373 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8379 if ac_fn_c_try_link
"$LINENO"; then :
8380 gdbsrv_cv_have_personality
=true
8382 gdbsrv_cv_have_personality
=false
8384 rm -f core conftest.err conftest.
$ac_objext \
8385 conftest
$ac_exeext conftest.
$ac_ext
8387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8389 #include <sys/personality.h>
8394 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8395 # define ADDR_NO_RANDOMIZE 0x0040000
8397 /* Test the flag could be set and stays set. */
8398 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8399 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8405 if ac_fn_c_try_run
"$LINENO"; then :
8406 gdbsrv_cv_have_personality
=true
8408 gdbsrv_cv_have_personality
=false
8410 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8411 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8414 if $gdbsrv_cv_have_personality
8417 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8425 # check whether to enable the inprocess agent
8426 if test "$ipa_obj" != "" \
8427 -a "$gdbsrv_cv_have_sync_builtins" = yes \
8428 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
8434 # Check whether --enable-inprocess-agent was given.
8435 if test "${enable_inprocess_agent+set}" = set; then :
8436 enableval
=$enable_inprocess_agent; case "$enableval" in
8437 yes) want_ipa
=true
;;
8438 no
) want_ipa
=false
;;
8439 *) as_fn_error
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
8448 IPA_DEPFILES
="$ipa_obj"
8449 extra_libraries
="$extra_libraries libinproctrace.so"
8451 as_fn_error
"inprocess agent not supported for this target" "$LINENO" 5
8462 GNULIB
=build-gnulib-gdbserver
/import
8465 if test x
"$STDINT_H" != x
; then
8466 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
8470 ac_config_files
="$ac_config_files Makefile"
8473 cat >confcache
<<\_ACEOF
8474 # This file is a shell script that caches the results of configure
8475 # tests run on this system so they can be shared between configure
8476 # scripts and configure runs, see configure's option --config-cache.
8477 # It is not useful on other systems. If it contains results you don't
8478 # want to keep, you may remove or edit it.
8480 # config.status only pays attention to the cache file if you give it
8481 # the --recheck option to rerun configure.
8483 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8489 # The following way of writing the cache mishandles newlines in values,
8490 # but we know of no workaround that is simple, portable, and efficient.
8491 # So, we kill variables containing newlines.
8492 # Ultrix sh set writes to stderr and can't be redirected directly,
8493 # and sets the high bit in the cache file unless we assign to the vars.
8495 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8496 eval ac_val
=\$
$ac_var
8500 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8501 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8504 _ | IFS | as_nl
) ;; #(
8505 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
8506 *) { eval $ac_var=; unset $ac_var;} ;;
8512 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8513 *${as_nl}ac_space
=\
*)
8514 # `set' does not quote correctly, so add quotes: double-quote
8515 # substitution turns \\\\ into \\, and sed turns \\ into \.
8518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8521 # `set' quotes correctly as required by POSIX, so do not add quotes.
8522 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8531 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8533 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8535 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8536 if test -w "$cache_file"; then
8537 test "x$cache_file" != "x/dev/null" &&
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8539 $as_echo "$as_me: updating cache $cache_file" >&6;}
8540 cat confcache
>$cache_file
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8543 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8548 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8549 # Let make expand exec_prefix.
8550 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8552 DEFS
=-DHAVE_CONFIG_H
8556 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8557 # 1. Remove the extension, and $U if already installed.
8558 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8559 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
8560 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8561 # will be set to the directory where LIBOBJS objects are built.
8562 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8563 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8567 LTLIBOBJS
=$ac_ltlibobjs
8570 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8571 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
8572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8575 : ${CONFIG_STATUS=./config.status}
8577 ac_clean_files_save
=$ac_clean_files
8578 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8580 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8582 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8584 # Generated by $as_me.
8585 # Run this file to recreate the current configuration.
8586 # Compiler output produced by configure, useful for debugging
8587 # configure, is in config.log if it exists.
8593 SHELL=\${CONFIG_SHELL-$SHELL}
8596 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8597 ## -------------------- ##
8598 ## M4sh Initialization. ##
8599 ## -------------------- ##
8601 # Be more Bourne compatible
8602 DUALCASE
=1; export DUALCASE
# for MKS sh
8603 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
8606 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8607 # is contrary to our usage. Disable this feature.
8608 alias -g '${1+"$@"}'='"$@"'
8609 setopt NO_GLOB_SUBST
8611 case `(set -o) 2>/dev/null` in #(
8623 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8624 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8625 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8626 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8627 # Prefer a ksh shell builtin over an external printf program on Solaris,
8628 # but without wasting forks for bash or zsh.
8629 if test -z "$BASH_VERSION$ZSH_VERSION" \
8630 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8631 as_echo='print
-r --'
8632 as_echo_n='print
-rn --'
8633 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8634 as_echo='printf %s
\n'
8635 as_echo_n='printf %s
'
8637 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8638 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8639 as_echo_n='/usr
/ucb
/echo -n'
8641 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8642 as_echo_n_body='eval
8646 expr "X$arg" : "X\\(.*\\)$as_nl";
8647 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8649 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8651 export as_echo_n_body
8652 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8655 as_echo='sh
-c $as_echo_body as_echo
'
8658 # The user is always right.
8659 if test "${PATH_SEPARATOR+set}" != set; then
8661 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8662 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8669 # We need space, tab and new line, in precisely that order. Quoting is
8670 # there to prevent editors from complaining about space-tab.
8671 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8672 # splitting by setting IFS to empty value.)
8675 # Find who we are. Look in the path if we contain no directory separator.
8677 *[\\/]* ) as_myself=$0 ;;
8678 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 test -z "$as_dir" && as_dir=.
8683 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8689 # We did not find ourselves, most probably we were run as `sh COMMAND'
8690 # in which case we are not to be found in the path.
8691 if test "x$as_myself" = x
; then
8694 if test ! -f "$as_myself"; then
8695 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8699 # Unset variables that we do not need and which cause bugs (e.g. in
8700 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8701 # suppresses any "Segmentation fault" message there. '((' could
8702 # trigger a bug in pdksh 5.2.14.
8703 for as_var
in BASH_ENV ENV MAIL MAILPATH
8704 do eval test x\
${$as_var+set} = xset \
8705 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8718 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8721 # as_fn_error ERROR [LINENO LOG_FD]
8722 # ---------------------------------
8723 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8724 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8725 # script with status $?, using 1 if that was 0.
8728 as_status
=$?
; test $as_status -eq 0 && as_status
=1
8730 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8731 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8733 $as_echo "$as_me: error: $1" >&2
8734 as_fn_exit
$as_status
8738 # as_fn_set_status STATUS
8739 # -----------------------
8740 # Set $? to STATUS, without forking.
8744 } # as_fn_set_status
8748 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8758 # Portably unset VAR.
8761 { eval $1=; unset $1;}
8763 as_unset
=as_fn_unset
8764 # as_fn_append VAR VALUE
8765 # ----------------------
8766 # Append the text in VALUE to the end of the definition contained in VAR. Take
8767 # advantage of any shell optimizations that allow amortized linear growth over
8768 # repeated appends, instead of the typical quadratic growth present in naive
8770 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8771 eval 'as_fn_append ()
8782 # as_fn_arith ARG...
8783 # ------------------
8784 # Perform arithmetic evaluation on the ARGs, and store the result in the
8785 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8786 # must be portable across $(()) and expr.
8787 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8788 eval 'as_fn_arith ()
8795 as_val
=`expr "$@" || test $? -eq 1`
8800 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8801 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8807 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8808 as_basename
=basename
8813 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8819 as_me
=`$as_basename -- "$0" ||
8820 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8821 X"$0" : 'X\(//\)$' \| \
8822 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8824 sed '/^.*\/\([^/][^/]*\)\/*$/{
8838 # Avoid depending upon Character Ranges.
8839 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8840 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8841 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8842 as_cr_digits
='0123456789'
8843 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8845 ECHO_C
= ECHO_N
= ECHO_T
=
8846 case `echo -n x` in #(((((
8848 case `echo 'xy\c'` in
8849 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8851 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8858 rm -f conf$$ conf$$.exe conf$$.
file
8859 if test -d conf$$.dir
; then
8860 rm -f conf$$.dir
/conf$$.
file
8863 mkdir conf$$.dir
2>/dev
/null
8865 if (echo >conf$$.
file) 2>/dev
/null
; then
8866 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8868 # ... but there are two gotchas:
8869 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8870 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8871 # In both cases, we have to default to `cp -p'.
8872 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8874 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8882 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8883 rmdir conf$$.dir
2>/dev
/null
8888 # Create "$as_dir" as a directory, including parents if necessary.
8893 -*) as_dir
=.
/$as_dir;;
8895 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8899 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8900 *) as_qdir
=$as_dir;;
8902 as_dirs
="'$as_qdir' $as_dirs"
8903 as_dir
=`$as_dirname -- "$as_dir" ||
8904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8905 X"$as_dir" : 'X\(//\)[^/]' \| \
8906 X"$as_dir" : 'X\(//\)$' \| \
8907 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8908 $as_echo X"$as_dir" |
8909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8926 test -d "$as_dir" && break
8928 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8929 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
8933 if mkdir
-p .
2>/dev
/null
; then
8934 as_mkdir_p
='mkdir -p "$as_dir"'
8936 test -d .
/-p && rmdir .
/-p
8940 if test -x / >/dev
/null
2>&1; then
8943 if ls -dL / >/dev
/null
2>&1; then
8950 if test -d "$1"; then
8956 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8957 ???[sx]*):;;*)false;;esac;fi
8961 as_executable_p
=$as_test_x
8963 # Sed expression to map a string onto a valid CPP name.
8964 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8966 # Sed expression to map a string onto a valid variable name.
8967 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8971 ## ----------------------------------- ##
8972 ## Main body of $CONFIG_STATUS script. ##
8973 ## ----------------------------------- ##
8975 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8978 # Save the log message, to keep $0 and so on meaningful, and to
8979 # report actual input values of CONFIG_FILES etc. instead of their
8980 # values after options handling.
8982 This file was extended by $as_me, which was
8983 generated by GNU Autoconf 2.64. Invocation command line was
8985 CONFIG_FILES = $CONFIG_FILES
8986 CONFIG_HEADERS = $CONFIG_HEADERS
8987 CONFIG_LINKS = $CONFIG_LINKS
8988 CONFIG_COMMANDS = $CONFIG_COMMANDS
8991 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8996 case $ac_config_files in *"
8997 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9000 case $ac_config_headers in *"
9001 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9006 # Files that config.status was made for.
9007 config_files="$ac_config_files"
9008 config_headers="$ac_config_headers"
9009 config_commands="$ac_config_commands"
9013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9015 \`$as_me' instantiates files and other configuration actions
9016 from templates according to the current configuration. Unless the files
9017 and actions are specified as TAGs, all are instantiated by default.
9019 Usage: $0 [OPTION]... [TAG]...
9021 -h, --help print this help, then exit
9022 -V, --version print version number and configuration settings, then exit
9023 -q, --quiet, --silent
9024 do not print progress messages
9025 -d, --debug don't remove temporary files
9026 --recheck update $as_me by reconfiguring in the same conditions
9027 --file=FILE[:TEMPLATE]
9028 instantiate the configuration file FILE
9029 --header=FILE[:TEMPLATE]
9030 instantiate the configuration header FILE
9032 Configuration files:
9035 Configuration headers:
9038 Configuration commands:
9041 Report bugs to the package provider."
9044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9047 configured by $0, generated by GNU Autoconf 2.64,
9048 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9050 Copyright (C) 2009 Free Software Foundation, Inc.
9051 This config.status script is free software; the Free Software Foundation
9052 gives unlimited permission to copy, distribute and modify it."
9057 test -n "\$AWK" || AWK=awk
9060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9061 # The default lists apply if the user does not specify any file.
9067 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9068 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9079 # Handling of the options.
9080 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9082 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9083 $as_echo "$ac_cs_version"; exit ;;
9084 --debug |
--debu |
--deb |
--de |
--d |
-d )
9086 --file |
--fil |
--fi |
--f )
9089 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9091 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9092 ac_need_defaults
=false
;;
9093 --header |
--heade |
--head |
--hea )
9096 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9098 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9099 ac_need_defaults
=false
;;
9101 # Conflict between --help and --header
9102 as_fn_error
"ambiguous option: \`$1'
9103 Try \`$0 --help' for more information.";;
9104 --help |
--hel |
-h )
9105 $as_echo "$ac_cs_usage"; exit ;;
9106 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9107 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9111 -*) as_fn_error
"unrecognized option: \`$1'
9112 Try \`$0 --help' for more information." ;;
9114 *) as_fn_append ac_config_targets
" $1"
9115 ac_need_defaults
=false
;;
9121 ac_configure_extra_args
=
9123 if $ac_cs_silent; then
9125 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9130 if \$ac_cs_recheck; then
9131 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9133 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9134 CONFIG_SHELL='$SHELL'
9140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9145 ## Running $as_me. ##
9151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9155 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
9156 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
9160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9162 # Handling of arguments.
9163 for ac_config_target
in $ac_config_targets
9165 case $ac_config_target in
9166 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
9167 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
9168 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
9169 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9171 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9176 # If the user did not use the arguments to specify the items to instantiate,
9177 # then the envvar interface is used. Set only those that are not.
9178 # We use the long form for the default assignment because of an extremely
9179 # bizarre bug on SunOS 4.1.3.
9180 if $ac_need_defaults; then
9181 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9182 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9183 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9186 # Have a temporary directory for convenience. Make it in the build tree
9187 # simply because there is no reason against having it here, and in addition,
9188 # creating and moving files from /tmp can sometimes cause problems.
9189 # Hook for its removal unless debugging.
9190 # Note that there is a small window in which the directory will not be cleaned:
9191 # after its creation but before its name has been assigned to `$tmp'.
9195 trap 'exit_status=$?
9196 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9198 trap 'as_fn_exit 1' 1 2 13 15
9200 # Create a (secure) tmp directory for tmp files.
9203 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9204 test -n "$tmp" && test -d "$tmp"
9207 tmp
=.
/conf$$
-$RANDOM
9208 (umask 077 && mkdir
"$tmp")
9209 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
9211 # Set up the scripts for CONFIG_FILES section.
9212 # No need to generate them if there are no CONFIG_FILES.
9213 # This happens for instance with `./config.status config.h'.
9214 if test -n "$CONFIG_FILES"; then
9217 ac_cr
=`echo X | tr X '\015'`
9218 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9219 # But we know of no other shell where ac_cr would be empty at this
9220 # point, so we can use a bashism as a fallback.
9221 if test "x$ac_cr" = x
; then
9222 eval ac_cr
=\$
\'\\r
\'
9224 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9225 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9231 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9236 echo "cat >conf$$subs.awk <<_ACEOF" &&
9237 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9240 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
9241 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9243 for ac_last_try in false false false false false :; do
9244 . ./conf$$subs.sh ||
9245 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
9247 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9248 if test $ac_delim_n = $ac_delim_num; then
9250 elif $ac_last_try; then
9251 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
9253 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9259 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
9263 s/^/S["/; s
/!.
*/"]=/
9273 s/\(.\{148\}\).*/\1/
9275 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9280 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9287 s/\(.\{148\}\).*/\1/
9289 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9293 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9298 ' <conf$$subs.awk | sed '
9303 ' >>$CONFIG_STATUS || ac_write_fail=1
9304 rm -f conf$$subs.awk
9305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9307 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
9308 for (key in S) S_is_set[key] = 1
9314 nfields = split(line, field, "@
")
9316 len = length(field[1])
9317 for (i = 2; i < nfields; i++) {
9319 keylen = length(key)
9320 if (S_is_set[key]) {
9322 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9323 len += length(value) + length(field[++i])
9334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9335 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9336 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9339 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
9340 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
9343 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9344 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
9345 # trailing colons and then remove the whole line if VPATH becomes empty
9346 # (actually we leave an empty line to preserve line numbers).
9347 if test "x
$srcdir" = x.; then
9348 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9352 s/^\([^=]*=[ ]*\):*/\1/
9358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9359 fi # test -n "$CONFIG_FILES"
9361 # Set up the scripts for CONFIG_HEADERS section.
9362 # No need to generate them if there are no CONFIG_HEADERS.
9363 # This happens for instance with `./config.status Makefile'.
9364 if test -n "$CONFIG_HEADERS"; then
9365 cat >"$tmp/defines.
awk" <<\_ACAWK ||
9369 # Transform confdefs.h into an awk script `defines.awk', embedded as
9370 # here-document in config.status, that substitutes the proper values into
9371 # config.h.in to produce config.h.
9373 # Create a delimiter string that does not exist in confdefs.h, to ease
9374 # handling of long lines.
9376 for ac_last_try in false false :; do
9377 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
9378 if test -z "$ac_t"; then
9380 elif $ac_last_try; then
9381 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
9383 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9387 # For the awk script, D is an array of macro values keyed by name,
9388 # likewise P contains macro parameters if any. Preserve backslash
9389 # newline sequences.
9391 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9393 s/.\{148\}/&'"$ac_delim"'/g
9396 s/^[ ]*#[ ]*define[ ][ ]*/ /
9403 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
9405 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
9409 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
9410 D["\
1"]=" \
3\\\\\\n
"\\/p
9412 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
9417 s/.\{148\}/&'"$ac_delim"'/g
9422 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
9425 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
9427 ' <confdefs.h | sed '
9428 s/'"$ac_delim"'/"\\\
9429 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9432 for (key in D) D_is_set[key] = 1
9435 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9437 split(line, arg, " ")
9438 if (arg[1] == "#") {
9442 defundef
= substr
(arg
[1], 2)
9445 split(mac1
, mac2
, "(") #)
9447 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
9448 if (D_is_set
[macro
]) {
9449 # Preserve the white space surrounding the "#".
9450 print prefix
"define", macro P
[macro
] D
[macro
]
9453 # Replace #undef with comments. This is necessary, for example,
9454 # in the case of _POSIX_SOURCE, which is predefined and required
9455 # on some systems where configure will not decide to define it.
9456 if (defundef
== "undef") {
9457 print
"/*", prefix defundef
, macro
, "*/"
9465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9466 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
9467 fi # test -n "$CONFIG_HEADERS"
9470 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9475 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9477 case $ac_mode$ac_tag in
9479 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
9480 :[FH
]-) ac_tag
=-:-;;
9481 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9498 -) ac_f
="$tmp/stdin";;
9499 *) # Look for the file first in the build tree, then in the source tree
9500 # (if the path is not absolute). The absolute path cannot be DOS-style,
9501 # because $ac_f cannot contain `:'.
9505 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9507 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
9509 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9510 as_fn_append ac_file_inputs
" '$ac_f'"
9513 # Let's still pretend it is `configure' which instantiates (i.e., don't
9514 # use $as_me), people would be surprised to read:
9515 # /* config.h. Generated by config.status. */
9516 configure_input
='Generated from '`
9517 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9519 if test x
"$ac_file" != x-
; then
9520 configure_input
="$ac_file. $configure_input"
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9522 $as_echo "$as_me: creating $ac_file" >&6;}
9524 # Neutralize special characters interpreted by sed in replacement strings.
9525 case $configure_input in #(
9526 *\
&* |
*\|
* |
*\\* )
9527 ac_sed_conf_input
=`$as_echo "$configure_input" |
9528 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9529 *) ac_sed_conf_input
=$configure_input;;
9533 *:-:* |
*:-) cat >"$tmp/stdin" \
9534 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
9539 ac_dir
=`$as_dirname -- "$ac_file" ||
9540 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9541 X"$ac_file" : 'X\(//\)[^/]' \| \
9542 X"$ac_file" : 'X\(//\)$' \| \
9543 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9544 $as_echo X"$ac_file" |
9545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9562 as_dir
="$ac_dir"; as_fn_mkdir_p
9566 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9568 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9569 # A ".." for each directory in $ac_dir_suffix.
9570 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9571 case $ac_top_builddir_sub in
9572 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9573 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9576 ac_abs_top_builddir
=$ac_pwd
9577 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9578 # for backward compatibility:
9579 ac_top_builddir
=$ac_top_build_prefix
9582 .
) # We are building in place.
9584 ac_top_srcdir
=$ac_top_builddir_sub
9585 ac_abs_top_srcdir
=$ac_pwd ;;
9586 [\\/]* | ?
:[\\/]* ) # Absolute name.
9587 ac_srcdir
=$srcdir$ac_dir_suffix;
9588 ac_top_srcdir
=$srcdir
9589 ac_abs_top_srcdir
=$srcdir ;;
9591 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9592 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9593 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9595 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9605 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9606 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9611 # If the template does not know about datarootdir, expand it.
9612 # FIXME: This hack should be removed a few years after 2.60.
9613 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9624 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9625 *datarootdir
*) ac_datarootdir_seen
=yes;;
9626 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9628 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9631 ac_datarootdir_hack='
9632 s&@datadir@&$datadir&g
9633 s&@docdir@&$docdir&g
9634 s&@infodir@&$infodir&g
9635 s&@localedir@&$localedir&g
9636 s&@mandir@&$mandir&g
9637 s&\\\${datarootdir}&$datarootdir&g' ;;
9641 # Neutralize VPATH when `$srcdir' = `.'.
9642 # Shell code in configure.ac might set extrasub.
9643 # FIXME: do we really want to maintain this feature?
9644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9645 ac_sed_extra="$ac_vpsub
9648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9650 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9651 s|@configure_input@|
$ac_sed_conf_input|
;t t
9652 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9653 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9654 s
&@srcdir@
&$ac_srcdir&;t t
9655 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9656 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9657 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9658 s
&@builddir@
&$ac_builddir&;t t
9659 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9660 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9661 s
&@INSTALL@
&$ac_INSTALL&;t t
9662 $ac_datarootdir_hack
9664 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
9665 || as_fn_error "could not create
$ac_file" "$LINENO" 5
9667 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9668 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
9669 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9671 which seems to be undefined. Please make sure it is defined." >&5
9672 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9673 which seems to be undefined. Please make sure it is defined." >&2;}
9677 -) cat "$tmp/out" && rm -f "$tmp/out";;
9678 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9680 || as_fn_error "could not create $ac_file" "$LINENO" 5
9686 if test x"$ac_file" != x-; then
9688 $as_echo "/* $configure_input */" \
9689 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9690 } >"$tmp/config.h" \
9691 || as_fn_error "could not create $ac_file" "$LINENO" 5
9692 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9694 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9697 mv "$tmp/config.h" "$ac_file" \
9698 || as_fn_error "could not create $ac_file" "$LINENO" 5
9701 $as_echo "/* $configure_input */" \
9702 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9703 || as_fn_error "could not create -" "$LINENO" 5
9707 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9708 $as_echo "$as_me: executing $ac_file commands" >&6;}
9713 case $ac_file$ac_mode in
9714 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9716 for subdir in ${CONFIG_SRC_SUBDIR}
9718 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
9720 "Makefile":F) case x$CONFIG_HEADERS in
9721 xconfig.h:config.in)
9732 ac_clean_files=$ac_clean_files_save
9734 test $ac_write_fail = 0 ||
9735 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9738 # configure is writing to config.log, and then calls config.status.
9739 # config.status does its own redirection, appending to config.log.
9740 # Unfortunately, on DOS this fails, as config.log is still kept open
9741 # by configure, so config.status won't be able to
write to it
; its
9742 # output is simply discarded. So we exec the FD to /dev/null,
9743 # effectively closing config.log, so it can be properly (re)opened and
9744 # appended to by config.status. When coming back to configure, we
9745 # need to make the FD available again.
9746 if test "$no_create" != yes; then
9748 ac_config_status_args
=
9749 test "$silent" = yes &&
9750 ac_config_status_args
="$ac_config_status_args --quiet"
9752 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9754 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9755 # would make configure fail if this is the last instruction.
9756 $ac_cs_success || as_fn_exit $?
9758 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9760 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}