2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="server.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='LTLIBOBJS
679 MAINTAINER_MODE_FALSE
708 program_transform_name
721 enable_option_checking
722 enable_maintainer_mode
729 enable_build_warnings
730 enable_gdb_build_warnings
734 enable_inprocess_agent
736 ac_precious_vars
='build_alias
750 # Initialize some variables set by options.
752 ac_init_version
=false
753 ac_unrecognized_opts
=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
764 program_transform_name
=s
,x
,x
,
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir
='${exec_prefix}/bin'
779 sbindir
='${exec_prefix}/sbin'
780 libexecdir
='${exec_prefix}/libexec'
781 datarootdir
='${prefix}/share'
782 datadir
='${datarootdir}'
783 sysconfdir
='${prefix}/etc'
784 sharedstatedir
='${prefix}/com'
785 localstatedir
='${prefix}/var'
786 includedir
='${prefix}/include'
787 oldincludedir
='/usr/include'
788 docdir
='${datarootdir}/doc/${PACKAGE}'
789 infodir
='${datarootdir}/info'
794 libdir
='${exec_prefix}/lib'
795 localedir
='${datarootdir}/locale'
796 mandir
='${datarootdir}/man'
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\
$ac_option
810 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815 # Accept the important Cygnus configure options, so we can diagnose typos.
817 case $ac_dashdash$ac_option in
821 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
823 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
826 -build |
--build |
--buil |
--bui |
--bu)
827 ac_prev
=build_alias
;;
828 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
829 build_alias
=$ac_optarg ;;
831 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
832 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
833 ac_prev
=cache_file
;;
834 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
835 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
836 cache_file
=$ac_optarg ;;
839 cache_file
=config.cache
;;
841 -datadir |
--datadir |
--datadi |
--datad)
843 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
844 datadir
=$ac_optarg ;;
846 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
847 |
--dataroo |
--dataro |
--datar)
848 ac_prev
=datarootdir
;;
849 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
850 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
851 datarootdir
=$ac_optarg ;;
853 -disable-* |
--disable-*)
854 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
857 as_fn_error $?
"invalid feature name: $ac_useropt"
858 ac_useropt_orig
=$ac_useropt
859 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
864 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep
=', ';;
867 eval enable_
$ac_useropt=no
;;
869 -docdir |
--docdir |
--docdi |
--doc |
--do)
871 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
874 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
876 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
879 -enable-* |
--enable-*)
880 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
883 as_fn_error $?
"invalid feature name: $ac_useropt"
884 ac_useropt_orig
=$ac_useropt
885 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
890 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891 ac_unrecognized_sep
=', ';;
893 eval enable_
$ac_useropt=\
$ac_optarg ;;
895 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
896 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
897 |
--exec |
--exe |
--ex)
898 ac_prev
=exec_prefix
;;
899 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
900 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
901 |
--exec=* |
--exe=* |
--ex=*)
902 exec_prefix
=$ac_optarg ;;
904 -gas |
--gas |
--ga |
--g)
905 # Obsolete; use --with-gas.
908 -help |
--help |
--hel |
--he |
-h)
910 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
911 ac_init_help
=recursive
;;
912 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
913 ac_init_help
=short
;;
915 -host |
--host |
--hos |
--ho)
916 ac_prev
=host_alias
;;
917 -host=* |
--host=* |
--hos=* |
--ho=*)
918 host_alias
=$ac_optarg ;;
920 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
922 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
924 htmldir
=$ac_optarg ;;
926 -includedir |
--includedir |
--includedi |
--included |
--include \
927 |
--includ |
--inclu |
--incl |
--inc)
928 ac_prev
=includedir
;;
929 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
930 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
931 includedir
=$ac_optarg ;;
933 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
935 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
936 infodir
=$ac_optarg ;;
938 -libdir |
--libdir |
--libdi |
--libd)
940 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
943 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
944 |
--libexe |
--libex |
--libe)
945 ac_prev
=libexecdir
;;
946 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
947 |
--libexe=* |
--libex=* |
--libe=*)
948 libexecdir
=$ac_optarg ;;
950 -localedir |
--localedir |
--localedi |
--localed |
--locale)
952 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
953 localedir
=$ac_optarg ;;
955 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
956 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
957 ac_prev
=localstatedir
;;
958 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
959 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
960 localstatedir
=$ac_optarg ;;
962 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
964 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
968 # Obsolete; use --without-fp.
971 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
972 |
--no-cr |
--no-c |
-n)
975 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
976 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
979 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
980 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
981 |
--oldin |
--oldi |
--old |
--ol |
--o)
982 ac_prev
=oldincludedir
;;
983 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
984 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
985 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
986 oldincludedir
=$ac_optarg ;;
988 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
990 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
993 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
994 |
--program-pre |
--program-pr |
--program-p)
995 ac_prev
=program_prefix
;;
996 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
997 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
998 program_prefix
=$ac_optarg ;;
1000 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1001 |
--program-suf |
--program-su |
--program-s)
1002 ac_prev
=program_suffix
;;
1003 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1004 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1005 program_suffix
=$ac_optarg ;;
1007 -program-transform-name |
--program-transform-name \
1008 |
--program-transform-nam |
--program-transform-na \
1009 |
--program-transform-n |
--program-transform- \
1010 |
--program-transform |
--program-transfor \
1011 |
--program-transfo |
--program-transf \
1012 |
--program-trans |
--program-tran \
1013 |
--progr-tra |
--program-tr |
--program-t)
1014 ac_prev
=program_transform_name
;;
1015 -program-transform-name=* |
--program-transform-name=* \
1016 |
--program-transform-nam=* |
--program-transform-na=* \
1017 |
--program-transform-n=* |
--program-transform-=* \
1018 |
--program-transform=* |
--program-transfor=* \
1019 |
--program-transfo=* |
--program-transf=* \
1020 |
--program-trans=* |
--program-tran=* \
1021 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1022 program_transform_name
=$ac_optarg ;;
1024 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1026 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1027 pdfdir
=$ac_optarg ;;
1029 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1031 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1034 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1035 |
-silent |
--silent |
--silen |
--sile |
--sil)
1038 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1040 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1042 sbindir
=$ac_optarg ;;
1044 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1045 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1046 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1048 ac_prev
=sharedstatedir
;;
1049 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1050 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1051 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1053 sharedstatedir
=$ac_optarg ;;
1055 -site |
--site |
--sit)
1057 -site=* |
--site=* |
--sit=*)
1060 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1062 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1063 srcdir
=$ac_optarg ;;
1065 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1066 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1067 ac_prev
=sysconfdir
;;
1068 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1069 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1070 sysconfdir
=$ac_optarg ;;
1072 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1073 ac_prev
=target_alias
;;
1074 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1075 target_alias
=$ac_optarg ;;
1077 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1080 -version |
--version |
--versio |
--versi |
--vers |
-V)
1081 ac_init_version
=: ;;
1084 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1087 as_fn_error $?
"invalid package name: $ac_useropt"
1088 ac_useropt_orig
=$ac_useropt
1089 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1094 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep
=', ';;
1097 eval with_
$ac_useropt=\
$ac_optarg ;;
1099 -without-* |
--without-*)
1100 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1103 as_fn_error $?
"invalid package name: $ac_useropt"
1104 ac_useropt_orig
=$ac_useropt
1105 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1110 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep
=', ';;
1113 eval with_
$ac_useropt=no
;;
1116 # Obsolete; use --with-x.
1119 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1120 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1121 ac_prev
=x_includes
;;
1122 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1123 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1124 x_includes
=$ac_optarg ;;
1126 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1127 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1128 ac_prev
=x_libraries
;;
1129 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1130 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1131 x_libraries
=$ac_optarg ;;
1133 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1134 Try \`$0 --help' for more information"
1138 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 case $ac_envvar in #(
1141 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1142 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1144 eval $ac_envvar=\
$ac_optarg
1145 export $ac_envvar ;;
1148 # FIXME: should be removed in autoconf 3.0.
1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1158 if test -n "$ac_prev"; then
1159 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1160 as_fn_error $?
"missing argument to $ac_option"
1163 if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1166 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1171 # Check all directory arguments for consistency.
1172 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1177 eval ac_val
=\$
$ac_var
1178 # Remove trailing slashes.
1181 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\
$ac_val;;
1184 # Be sure to have absolute directory names.
1186 [\\/$
]* | ?
:[\\/]* ) continue;;
1187 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1189 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1197 target
=$target_alias
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x
; then
1201 if test "x$build_alias" = x
; then
1202 cross_compiling
=maybe
1203 elif test "x$build_alias" != "x$host_alias"; then
1209 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1211 test "$silent" = yes && exec 6>/dev
/null
1214 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di
=`ls -di .` &&
1216 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1217 as_fn_error $?
"working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 as_fn_error $?
"pwd does not report name of working directory"
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted
=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir
=`$as_dirname -- "$as_myself" ||
1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$as_myself" : 'X\(//\)[^/]' \| \
1229 X"$as_myself" : 'X\(//\)$' \| \
1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1231 $as_echo X"$as_myself" |
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1254 ac_srcdir_defaulted
=no
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1258 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1260 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1272 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 for ac_var
in $ac_precious_vars; do
1275 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1277 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1282 # Report the --help message.
1284 if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1288 \`configure' configures this package to adapt to many kinds of systems.
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1295 Defaults for the options are specified in brackets.
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print \`checking ...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for \`--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1319 For better control, use the options below.
1321 Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1346 --program-prefix=PREFIX prepend PREFIX to installed program names
1347 --program-suffix=SUFFIX append SUFFIX to installed program names
1348 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1351 --build=BUILD configure
for building on BUILD
[guessed
]
1352 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1353 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1357 if test -n "$ac_init_help"; then
1362 --disable-option-checking ignore unrecognized
--enable/--with options
1363 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1364 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1365 --enable-maintainer-mode
1366 enable make rules and dependencies not useful
(and
1367 sometimes confusing
) to the casual installer
1368 --disable-largefile omit support
for large files
1369 --enable-unit-tests Enable the inclusion of unit tests when compiling
1371 --enable-werror treat compile warnings as errors
1372 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1373 --enable-gdb-build-warnings
1374 enable GDB specific build-time compiler warnings
if
1376 --enable-inprocess-agent
1380 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1381 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1382 --with-ust=PATH Specify prefix directory
for the installed UST package
1383 Equivalent to
--with-ust-include=PATH
/include
1384 plus
--with-ust-lib=PATH
/lib
1385 --with-ust-include=PATH Specify directory
for installed UST include files
1386 --with-ust-lib=PATH Specify the directory
for the installed UST library
1387 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1388 --with-bugurl=URL Direct users to URL to report a bug
1389 --with-libthread-db=PATH
1390 use given libthread_db directly
1392 Some influential environment variables
:
1393 CC C compiler
command
1394 CFLAGS C compiler flags
1395 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1396 nonstandard directory
<lib dir
>
1397 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1398 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1399 you have headers
in a nonstandard directory
<include dir
>
1400 CXX C
++ compiler
command
1401 CXXFLAGS C
++ compiler flags
1404 Use these variables to override the choices made by
`configure' or to help
1405 it to find libraries and programs with nonstandard names/locations.
1407 Report bugs to the package provider.
1412 if test "$ac_init_help" = "recursive"; then
1413 # If there are subdirs, report their specific --help.
1414 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1415 test -d "$ac_dir" ||
1416 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1424 # A ".." for each directory in $ac_dir_suffix.
1425 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1426 case $ac_top_builddir_sub in
1427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1431 ac_abs_top_builddir=$ac_pwd
1432 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433 # for backward compatibility:
1434 ac_top_builddir=$ac_top_build_prefix
1437 .) # We are building in place.
1439 ac_top_srcdir=$ac_top_builddir_sub
1440 ac_abs_top_srcdir=$ac_pwd ;;
1441 [\\/]* | ?:[\\/]* ) # Absolute name.
1442 ac_srcdir=$srcdir$ac_dir_suffix;
1443 ac_top_srcdir=$srcdir
1444 ac_abs_top_srcdir=$srcdir ;;
1446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447 ac_top_srcdir=$ac_top_build_prefix$srcdir
1448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452 cd "$ac_dir" || { ac_status=$?; continue; }
1453 # Check for guested configure.
1454 if test -f "$ac_srcdir/configure.gnu"; then
1456 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457 elif test -f "$ac_srcdir/configure"; then
1459 $SHELL "$ac_srcdir/configure" --help=recursive
1461 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463 cd "$ac_pwd" || { ac_status=$?; break; }
1467 test -n "$ac_init_help" && exit $ac_status
1468 if $ac_init_version; then
1471 generated by GNU Autoconf 2.69
1473 Copyright (C) 2012 Free Software Foundation, Inc.
1474 This configure script is free software; the Free Software Foundation
1475 gives unlimited permission to copy, distribute and modify it.
1480 ## ------------------------ ##
1481 ## Autoconf initialization. ##
1482 ## ------------------------ ##
1484 # ac_fn_c_try_compile LINENO
1485 # --------------------------
1486 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1487 ac_fn_c_try_compile ()
1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490 rm -f conftest.$ac_objext
1491 if { { ac_try="$ac_compile"
1493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1494 *) ac_try_echo
=$ac_try;;
1496 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_compile") 2>conftest.err
1500 if test -s conftest.err
; then
1501 grep -v '^ *+' conftest.err
>conftest.er1
1502 cat conftest.er1
>&5
1503 mv -f conftest.er1 conftest.err
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } && {
1507 test -z "$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1509 } && test -s conftest.
$ac_objext; then :
1512 $as_echo "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.
$ac_ext >&5
1517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518 as_fn_set_status
$ac_retval
1520 } # ac_fn_c_try_compile
1522 # ac_fn_cxx_try_compile LINENO
1523 # ----------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_cxx_try_compile
()
1527 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1528 rm -f conftest.
$ac_objext
1529 if { { ac_try
="$ac_compile"
1531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_cxx_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556 as_fn_set_status $ac_retval
1558 } # ac_fn_cxx_try_compile
1560 # ac_fn_c_try_cpp LINENO
1561 # ----------------------
1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_cpp conftest.$ac_ext"
1568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1569 *) ac_try_echo
=$ac_try;;
1571 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1575 if test -s conftest.err
; then
1576 grep -v '^ *+' conftest.err
>conftest.er1
1577 cat conftest.er1
>&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } > conftest.i
&& {
1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.
$ac_ext >&5
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status
$ac_retval
1597 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1600 # the include files in INCLUDES and setting the cache variable VAR
1602 ac_fn_c_check_header_mongrel
()
1604 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1605 if eval \
${$3+:} false
; then :
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if eval \
${$3+:} false
; then :
1609 $as_echo_n "(cached) " >&6
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1615 # Is the header compilable?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1617 $as_echo_n "checking $2 usability... " >&6; }
1618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1623 if ac_fn_c_try_compile
"$LINENO"; then :
1624 ac_header_compiler
=yes
1626 ac_header_compiler
=no
1628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1630 $as_echo "$ac_header_compiler" >&6; }
1632 # Is the header present?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1634 $as_echo_n "checking $2 presence... " >&6; }
1635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1639 if ac_fn_c_try_cpp
"$LINENO"; then :
1640 ac_header_preproc
=yes
1642 ac_header_preproc
=no
1644 rm -f conftest.err conftest.i conftest.
$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1646 $as_echo "$ac_header_preproc" >&6; }
1648 # So? What about this header?
1649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1652 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1658 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1660 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1662 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1664 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670 $as_echo_n "checking for $2... " >&6; }
1671 if eval \
${$3+:} false
; then :
1672 $as_echo_n "(cached) " >&6
1674 eval "$3=\$ac_header_compiler"
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 } # ac_fn_c_check_header_mongrel
1684 # ac_fn_c_try_run LINENO
1685 # ----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687 # that executables *can* be run.
1690 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1691 if { { ac_try
="$ac_link"
1693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>&5
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702 { { case "(($ac_try" in
1703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1704 *) ac_try_echo
=$ac_try;;
1706 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_try") 2>&5
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; }; }; then :
1714 $as_echo "$as_me: program exited with status $ac_status" >&5
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.
$ac_ext >&5
1718 ac_retval
=$ac_status
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status
$ac_retval
1726 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727 # -------------------------------------------------------
1728 # Tests whether HEADER exists and can be compiled using the include files in
1729 # INCLUDES, setting the cache variable VAR accordingly.
1730 ac_fn_c_check_header_compile
()
1732 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \
${$3+:} false
; then :
1736 $as_echo_n "(cached) " >&6
1738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1743 if ac_fn_c_try_compile
"$LINENO"; then :
1748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 } # ac_fn_c_check_header_compile
1757 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1758 # -------------------------------------------
1759 # Tests whether TYPE exists after having included INCLUDES, setting cache
1760 # variable VAR accordingly.
1761 ac_fn_c_check_type
()
1763 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \
${$3+:} false
; then :
1767 $as_echo_n "(cached) " >&6
1770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1782 if ac_fn_c_try_compile
"$LINENO"; then :
1783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1795 if ac_fn_c_try_compile
"$LINENO"; then :
1800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 } # ac_fn_c_check_type
1811 # ac_fn_c_try_link LINENO
1812 # -----------------------
1813 # Try to link conftest.$ac_ext, and return whether this succeeded.
1816 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1817 rm -f conftest.
$ac_objext conftest
$ac_exeext
1818 if { { ac_try
="$ac_link"
1820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>conftest.err
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest$ac_exeext && {
1837 test "$cross_compiling" = yes ||
1838 test -x conftest$ac_exeext
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1847 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1848 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1849 # interfere with the next link command; also delete a directory that is
1850 # left behind by Apple's compiler. We do this before executing the actions.
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1855 } # ac_fn_c_try_link
1857 # ac_fn_c_check_func LINENO FUNC VAR
1858 # ----------------------------------
1859 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1860 ac_fn_c_check_func ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if eval \${$3+:} false; then :
1866 $as_echo_n "(cached) " >&6
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1872 #define $2 innocuous_$2
1874 /* System header to define __stub macros and hopefully few prototypes,
1875 which can conflict with char $2 (); below.
1876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1877 <limits.h> exists even on freestanding compilers. */
1880 # include <limits.h>
1882 # include <assert.h>
1887 /* Override any GCC internal prototype to avoid an error.
1888 Use char because int might match the return type of a GCC
1889 builtin and then its argument prototype would still apply. */
1894 /* The GNU C library defines this for functions which it implements
1895 to always fail with ENOSYS. Some functions are actually named
1896 something starting with __ and the normal name is an alias. */
1897 #if defined __stub_$2 || defined __stub___$2
1909 if ac_fn_c_try_link "$LINENO"; then :
1914 rm -f core conftest.err conftest.$ac_objext \
1915 conftest$ac_exeext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 } # ac_fn_c_check_func
1924 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1925 # ---------------------------------------------
1926 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1928 ac_fn_c_check_decl ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1932 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1934 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1935 if eval \${$3+:} false; then :
1936 $as_echo_n "(cached) " >&6
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1944 #ifndef $as_decl_name
1946 (void) $as_decl_use;
1948 (void) $as_decl_name;
1956 if ac_fn_c_try_compile "$LINENO"; then :
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 } # ac_fn_c_check_decl
1970 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1971 # --------------------------------------------
1972 # Tries to find the compile-time value of EXPR in a program that includes
1973 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1975 ac_fn_c_compute_int ()
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if test "$cross_compiling" = yes; then
1979 # Depending upon the size, compute the lo and hi bounds.
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1986 static int test_array [1 - 2 * !(($2) >= 0)];
1988 return test_array [0];
1994 if ac_fn_c_try_compile "$LINENO"; then :
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2003 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2005 return test_array [0];
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012 ac_hi=$ac_mid; break
2014 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2015 if test $ac_lo -le $ac_mid; then
2019 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2030 static int test_array [1 - 2 * !(($2) < 0)];
2032 return test_array [0];
2038 if ac_fn_c_try_compile "$LINENO"; then :
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2047 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2049 return test_array [0];
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 ac_lo=$ac_mid; break
2058 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2059 if test $ac_mid -le $ac_hi; then
2063 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 # Binary search between lo and hi bounds.
2074 while test "x$ac_lo" != "x$ac_hi"; do
2075 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2082 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084 return test_array [0];
2090 if ac_fn_c_try_compile "$LINENO"; then :
2093 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2105 static long int longval () { return $2; }
2106 static unsigned long int ulongval () { return $2; }
2113 FILE *f = fopen ("conftest.val", "w");
2118 long int i = longval ();
2121 fprintf (f, "%ld", i);
2125 unsigned long int i = ulongval ();
2128 fprintf (f, "%lu", i);
2130 /* Do not output a trailing newline, as this causes \r\n confusion
2131 on some platforms. */
2132 return ferror (f) || fclose (f) != 0;
2138 if ac_fn_c_try_run "$LINENO"; then :
2139 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2144 conftest.$ac_objext conftest.beam conftest.$ac_ext
2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 as_fn_set_status $ac_retval
2151 } # ac_fn_c_compute_int
2153 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2154 # ----------------------------------------------------
2155 # Tries to find if the field MEMBER exists in type AGGR, after including
2156 # INCLUDES, setting cache variable VAR accordingly.
2157 ac_fn_c_check_member ()
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2161 $as_echo_n "checking for $2.$3... " >&6; }
2162 if eval \${$4+:} false; then :
2163 $as_echo_n "(cached) " >&6
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2178 if ac_fn_c_try_compile "$LINENO"; then :
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2188 if (sizeof ac_aggr.$3)
2194 if ac_fn_c_try_compile "$LINENO"; then :
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205 $as_echo "$ac_res" >&6; }
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208 } # ac_fn_c_check_member
2209 cat >config.log <<_ACEOF
2210 This file contains any messages produced by compilers while
2211 running configure, to aid debugging if configure makes a mistake.
2213 It was created by $as_me, which was
2214 generated by GNU Autoconf 2.69. Invocation command line was
2226 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2227 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2228 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2229 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2230 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2232 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2233 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2235 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2236 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2237 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2238 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2239 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2240 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2241 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 $as_echo "PATH: $as_dir"
2266 # Keep a trace of the command line.
2267 # Strip out --no-create and --no-recursion so they do not pile up.
2268 # Strip out --silent because we don't want to record it for future runs.
2269 # Also quote any args containing shell meta-characters.
2270 # Make two passes to allow for proper duplicate-argument suppression.
2274 ac_must_keep_next=false
2280 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2282 | -silent | --silent | --silen | --sile | --sil)
2285 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2288 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2290 as_fn_append ac_configure_args1 " '$ac_arg'"
2291 if test $ac_must_keep_next = true; then
2292 ac_must_keep_next=false # Got value, back to normal.
2295 *=* | --config-cache | -C | -disable-* | --disable-* \
2296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2298 | -with-* | --with-* | -without-* | --without-* | --x)
2299 case "$ac_configure_args0 " in
2300 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2303 -* ) ac_must_keep_next=true ;;
2306 as_fn_append ac_configure_args " '$ac_arg'"
2311 { ac_configure_args0=; unset ac_configure_args0;}
2312 { ac_configure_args1=; unset ac_configure_args1;}
2314 # When interrupted or exit'd, cleanup temporary files, and complete
2315 # config.log. We remove comments because anyway the quotes in there
2316 # would cause problems or look ugly.
2317 # WARNING: Use '\'' to represent an apostrophe within the trap.
2318 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2319 trap 'exit_status=$?
2320 # Save into config.log some information that might help in debugging.
2324 $as_echo "## ---------------- ##
2325 ## Cache variables. ##
2326 ## ---------------- ##"
2328 # The following way of writing the cache mishandles newlines in values,
2330 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2331 eval ac_val=\$$ac_var
2335 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2336 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2339 _ | IFS | as_nl) ;; #(
2340 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2341 *) { eval $ac_var=; unset $ac_var;} ;;
2346 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2347 *${as_nl}ac_space=\ *)
2349 "s/'\''/'\''\\\\'\'''\''/g;
2350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2353 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2360 $as_echo "## ----------------- ##
2361 ## Output variables. ##
2362 ## ----------------- ##"
2364 for ac_var in $ac_subst_vars
2366 eval ac_val=\$$ac_var
2368 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370 $as_echo "$ac_var='\''$ac_val'\''"
2374 if test -n "$ac_subst_files"; then
2375 $as_echo "## ------------------- ##
2376 ## File substitutions. ##
2377 ## ------------------- ##"
2379 for ac_var in $ac_subst_files
2381 eval ac_val=\$$ac_var
2383 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2385 $as_echo "$ac_var='\''$ac_val'\''"
2390 if test -s confdefs.h; then
2391 $as_echo "## ----------- ##
2398 test "$ac_signal" != 0 &&
2399 $as_echo "$as_me: caught signal $ac_signal"
2400 $as_echo "$as_me: exit $exit_status"
2402 rm -f core *.core core.conftest.* &&
2403 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2406 for ac_signal in 1 2 13 15; do
2407 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2411 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2412 rm -f -r conftest* confdefs.h
2414 $as_echo "/* confdefs.h */" > confdefs.h
2416 # Predefined preprocessor variables.
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_NAME "$PACKAGE_NAME"
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_STRING "$PACKAGE_STRING"
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_URL "$PACKAGE_URL"
2443 # Let the site file select an alternate cache file if it wants to.
2444 # Prefer an explicitly selected file to automatically selected ones.
2447 if test -n "$CONFIG_SITE"; then
2448 # We do not want a PATH search for config.site.
2449 case $CONFIG_SITE in #((
2450 -*) ac_site_file1=./$CONFIG_SITE;;
2451 */*) ac_site_file1=$CONFIG_SITE;;
2452 *) ac_site_file1=./$CONFIG_SITE;;
2454 elif test "x$prefix" != xNONE; then
2455 ac_site_file1=$prefix/share/config.site
2456 ac_site_file2=$prefix/etc/config.site
2458 ac_site_file1=$ac_default_prefix/share/config.site
2459 ac_site_file2=$ac_default_prefix/etc/config.site
2461 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2463 test "x$ac_site_file" = xNONE && continue
2464 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2466 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2467 sed 's/^/| /' "$ac_site_file" >&5
2469 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2471 as_fn_error $? "failed to load site
script $ac_site_file
2472 See \
`config.log' for more details" "$LINENO" 5; }
2476 if test -r "$cache_file"; then
2477 # Some versions of bash will fail to source /dev/null (special files
2478 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2479 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2481 $as_echo "$as_me: loading cache $cache_file" >&6;}
2483 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2484 *) . "./$cache_file";;
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2489 $as_echo "$as_me: creating cache $cache_file" >&6;}
2493 # Check that the precious variables saved in the cache have kept the same
2495 ac_cache_corrupted=false
2496 for ac_var in $ac_precious_vars; do
2497 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2498 eval ac_new_set=\$ac_env_${ac_var}_set
2499 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2500 eval ac_new_val=\$ac_env_${ac_var}_value
2501 case $ac_old_set,$ac_new_set in
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2504 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2505 ac_cache_corrupted=: ;;
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2508 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2509 ac_cache_corrupted=: ;;
2512 if test "x$ac_old_val" != "x$ac_new_val"; then
2513 # differences in whitespace do not lead to failure.
2514 ac_old_val_w=`echo x
$ac_old_val`
2515 ac_new_val_w=`echo x
$ac_new_val`
2516 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2518 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2519 ac_cache_corrupted=:
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2522 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2523 eval $ac_var=\$ac_old_val
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2526 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2528 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2531 # Pass precious variables to config.status.
2532 if test "$ac_new_set" = set; then
2534 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2535 *) ac_arg=$ac_var=$ac_new_val ;;
2537 case " $ac_configure_args " in
2538 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2539 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2543 if $ac_cache_corrupted; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2547 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2548 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2550 ## -------------------- ##
2551 ## Main body of script. ##
2552 ## -------------------- ##
2555 ac_cpp='$CPP $CPPFLAGS'
2556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564 ac_config_headers="$ac_config_headers config.h:config.in"
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2569 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2570 # Check whether --enable-maintainer-mode was given.
2571 if test "${enable_maintainer_mode+set}" = set; then :
2572 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2574 USE_MAINTAINER_MODE=no
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2578 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2579 if test $USE_MAINTAINER_MODE = yes; then
2580 MAINTAINER_MODE_TRUE=
2581 MAINTAINER_MODE_FALSE='#'
2583 MAINTAINER_MODE_TRUE='#'
2584 MAINTAINER_MODE_FALSE=
2587 MAINT=$MAINTAINER_MODE_TRUE
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596 if test -n "$ac_tool_prefix"; then
2597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2598 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if ${ac_cv_prog_CC+:} false; then :
2602 $as_echo_n "(cached) " >&6
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 if test -n "$CC"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2627 $as_echo "$CC" >&6; }
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2635 if test -z "$ac_cv_prog_CC"; then
2637 # Extract the first word of "gcc", so it can be a program name with args.
2638 set dummy gcc; ac_word=$2
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2642 $as_echo_n "(cached) " >&6
2644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_ac_ct_CC="gcc"
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665 if test -n "$ac_ct_CC"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2667 $as_echo "$ac_ct_CC" >&6; }
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2673 if test "x$ac_ct_CC" = x; then
2676 case $cross_compiling:$ac_tool_warned in
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2680 ac_tool_warned=yes ;;
2688 if test -z "$CC"; then
2689 if test -n "$ac_tool_prefix"; then
2690 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}cc; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if ${ac_cv_prog_CC+:} false; then :
2695 $as_echo_n "(cached) " >&6
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707 ac_cv_prog_CC="${ac_tool_prefix}cc"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test -n "$CC"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2720 $as_echo "$CC" >&6; }
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2729 if test -z "$CC"; then
2730 # Extract the first word of "cc", so it can be a program name with args.
2731 set dummy cc; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_CC+:} false; then :
2735 $as_echo_n "(cached) " >&6
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2749 ac_prog_rejected=yes
2753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 if test $ac_prog_rejected = yes; then
2761 # We found a bogon in the path, so make sure we never use it.
2762 set dummy $ac_cv_prog_CC
2764 if test $# != 0; then
2765 # We chose a different compiler from the bogus one.
2766 # However, it has the same basename, so the bogon will be chosen
2767 # first if we set CC to just the basename; use the full file name.
2769 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2775 if test -n "$CC"; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2777 $as_echo "$CC" >&6; }
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2785 if test -z "$CC"; then
2786 if test -n "$ac_tool_prefix"; then
2787 for ac_prog in cl.exe
2789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if ${ac_cv_prog_CC+:} false; then :
2794 $as_echo_n "(cached) " >&6
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 if test -n "$CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2826 test -n "$CC" && break
2829 if test -z "$CC"; then
2831 for ac_prog in cl.exe
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2838 $as_echo_n "(cached) " >&6
2840 if test -n "$ac_ct_CC"; then
2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_ac_ct_CC="$ac_prog"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861 if test -n "$ac_ct_CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2863 $as_echo "$ac_ct_CC" >&6; }
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2870 test -n "$ac_ct_CC" && break
2873 if test "x$ac_ct_CC" = x; then
2876 case $cross_compiling:$ac_tool_warned in
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2880 ac_tool_warned=yes ;;
2889 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2892 See \
`config.log' for more details" "$LINENO" 5; }
2894 # Provide some information about the compiler.
2895 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2898 for ac_option in --version -v -V -qversion; do
2899 { { ac_try="$ac_compiler $ac_option >&5"
2901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2902 *) ac_try_echo
=$ac_try;;
2904 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2905 $as_echo "$ac_try_echo"; } >&5
2906 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2908 if test -s conftest.err
; then
2910 ... rest of stderr output deleted ...
2911 10q' conftest.err
>conftest.er1
2912 cat conftest.er1
>&5
2914 rm -f conftest.er1 conftest.err
2915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2916 test $ac_status = 0; }
2919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2920 /* end confdefs.h. */
2930 ac_clean_files_save
=$ac_clean_files
2931 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2932 # Try to create an executable without -o first, disregard a.out.
2933 # It will help us diagnose broken compilers, and finding out an intuition
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2936 $as_echo_n "checking whether the C compiler works... " >&6; }
2937 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2939 # The possible output files:
2940 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2943 for ac_file
in $ac_files
2946 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2947 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2952 if { { ac_try
="$ac_link_default"
2954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2958 $as_echo "$ac_try_echo"; } >&5
2959 (eval "$ac_link_default") 2>&5
2961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962 test $ac_status = 0; }; then :
2963 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2964 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2965 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2966 # so that the user can short-circuit this test for compilers unknown to
2968 for ac_file in $ac_files ''
2970 test -f "$ac_file" || continue
2972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2975 # We found the default executable, but exeext='' is most
2979 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2981 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983 # We set ac_cv_exeext here because the later test for it is not
2984 # safe: cross compilers may not add the suffix if given an `-o'
2985 # argument, so we may need to know it at that point already.
2986 # Even if this section looks crufty: it has the advantage of
2993 test "$ac_cv_exeext" = no && ac_cv_exeext=
2998 if test -z "$ac_file"; then :
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 $as_echo "$as_me: failed program was:" >&5
3002 sed 's
/^
/|
/' conftest.$ac_ext >&5
3004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3005 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3006 as_fn_error 77 "C compiler cannot create executables
3007 See \`config.log
' for more details" "$LINENO" 5; }
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3010 $as_echo "yes" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3013 $as_echo_n "checking for C compiler default output file name... " >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3015 $as_echo "$ac_file" >&6; }
3016 ac_exeext=$ac_cv_exeext
3018 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3019 ac_clean_files=$ac_clean_files_save
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3021 $as_echo_n "checking for suffix of executables... " >&6; }
3022 if { { ac_try="$ac_link"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028 $as_echo "$ac_try_echo"; } >&5
3029 (eval "$ac_link") 2>&5
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }; then :
3033 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3034 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3035 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3037 for ac_file
in conftest.exe conftest conftest.
*; do
3038 test -f "$ac_file" ||
continue
3040 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3041 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3050 See \`config.log' for more details" "$LINENO" 5; }
3052 rm -f conftest conftest
$ac_cv_exeext
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3054 $as_echo "$ac_cv_exeext" >&6; }
3056 rm -f conftest.
$ac_ext
3057 EXEEXT
=$ac_cv_exeext
3059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3060 /* end confdefs.h. */
3065 FILE *f = fopen ("conftest.out", "w");
3066 return ferror (f) || fclose (f) != 0;
3072 ac_clean_files
="$ac_clean_files conftest.out"
3073 # Check that the compiler produces executables we can run. If not, either
3074 # the compiler is broken, or we cross compile.
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3076 $as_echo_n "checking whether we are cross compiling... " >&6; }
3077 if test "$cross_compiling" != yes; then
3078 { { ac_try
="$ac_link"
3080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084 $as_echo "$ac_try_echo"; } >&5
3085 (eval "$ac_link") 2>&5
3087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088 test $ac_status = 0; }
3089 if { ac_try='./conftest$ac_cv_exeext'
3090 { { case "(($ac_try" in
3091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3092 *) ac_try_echo
=$ac_try;;
3094 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096 (eval "$ac_try") 2>&5
3098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3099 test $ac_status = 0; }; }; then
3102 if test "$cross_compiling" = maybe
; then
3105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107 as_fn_error $?
"cannot run C compiled programs.
3108 If you meant to cross compile, use \`--host'.
3109 See \`config.log' for more details" "$LINENO" 5; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3114 $as_echo "$cross_compiling" >&6; }
3116 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3117 ac_clean_files
=$ac_clean_files_save
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3119 $as_echo_n "checking for suffix of object files... " >&6; }
3120 if ${ac_cv_objext+:} false
; then :
3121 $as_echo_n "(cached) " >&6
3123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h. */
3134 rm -f conftest.o conftest.obj
3135 if { { ac_try
="$ac_compile"
3137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_compile") 2>&5
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; then :
3146 for ac_file in conftest.o conftest.obj conftest.*; do
3147 test -f "$ac_file" || continue;
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3150 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3155 $as_echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3161 See \
`config.log' for more details" "$LINENO" 5; }
3163 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3166 $as_echo "$ac_cv_objext" >&6; }
3167 OBJEXT=$ac_cv_objext
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3170 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3171 if ${ac_cv_c_compiler_gnu+:} false; then :
3172 $as_echo_n "(cached) " >&6
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3188 if ac_fn_c_try_compile "$LINENO"; then :
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3198 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3199 if test $ac_compiler_gnu = yes; then
3204 ac_test_CFLAGS=${CFLAGS+set}
3205 ac_save_CFLAGS=$CFLAGS
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3207 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3208 if ${ac_cv_prog_cc_g+:} false; then :
3209 $as_echo_n "(cached) " >&6
3211 ac_save_c_werror_flag=$ac_c_werror_flag
3212 ac_c_werror_flag=yes
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3226 if ac_fn_c_try_compile "$LINENO"; then :
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3241 if ac_fn_c_try_compile "$LINENO"; then :
3244 ac_c_werror_flag=$ac_save_c_werror_flag
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3257 if ac_fn_c_try_compile "$LINENO"; then :
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 ac_c_werror_flag=$ac_save_c_werror_flag
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3268 $as_echo "$ac_cv_prog_cc_g" >&6; }
3269 if test "$ac_test_CFLAGS" = set; then
3270 CFLAGS=$ac_save_CFLAGS
3271 elif test $ac_cv_prog_cc_g = yes; then
3272 if test "$GCC" = yes; then
3278 if test "$GCC" = yes; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3285 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3286 if ${ac_cv_prog_cc_c89+:} false; then :
3287 $as_echo_n "(cached) " >&6
3289 ac_cv_prog_cc_c89=no
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3296 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3297 struct buf { int x; };
3298 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3299 static char *e (p, i)
3305 static char *f (char * (*g) (char **, int), char **p, ...)
3310 s = g (p, va_arg (v,int));
3315 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3316 function prototypes and stuff, but not '\xHH' hex character constants.
3317 These don't provoke an error unfortunately, instead are silently treated
3318 as 'x'. The following induces an error, until -std is added to get
3319 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3320 array size at least. It's necessary to write '\x00'==0 to get something
3321 that's true only with -std. */
3322 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3324 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3325 inside strings and character constants. */
3327 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3329 int test (int i, double x);
3330 struct s1 {int (*f) (int a);};
3331 struct s2 {int (*f) (double a);};
3332 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3338 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3343 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3344 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3346 CC="$ac_save_CC $ac_arg"
3347 if ac_fn_c_try_compile "$LINENO"; then :
3348 ac_cv_prog_cc_c89=$ac_arg
3350 rm -f core conftest.err conftest.$ac_objext
3351 test "x$ac_cv_prog_cc_c89" != "xno" && break
3353 rm -f conftest.$ac_ext
3358 case "x$ac_cv_prog_cc_c89" in
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3361 $as_echo "none needed" >&6; } ;;
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3364 $as_echo "unsupported" >&6; } ;;
3366 CC="$CC $ac_cv_prog_cc_c89"
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3368 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3370 if test "x$ac_cv_prog_cc_c89" != xno; then :
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3381 ac_cpp='$CXXCPP $CPPFLAGS'
3382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3385 if test -z "$CXX"; then
3386 if test -n "$CCC"; then
3389 if test -n "$ac_tool_prefix"; then
3390 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_CXX+:} false; then :
3397 $as_echo_n "(cached) " >&6
3399 if test -n "$CXX"; then
3400 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 if test -n "$CXX"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3422 $as_echo "$CXX" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3429 test -n "$CXX" && break
3432 if test -z "$CXX"; then
3434 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3436 # Extract the first word of "$ac_prog", so it can be a program name with args.
3437 set dummy $ac_prog; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3441 $as_echo_n "(cached) " >&6
3443 if test -n "$ac_ct_CXX"; then
3444 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 ac_cv_prog_ac_ct_CXX="$ac_prog"
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3464 if test -n "$ac_ct_CXX"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3466 $as_echo "$ac_ct_CXX" >&6; }
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3473 test -n "$ac_ct_CXX" && break
3476 if test "x$ac_ct_CXX" = x; then
3479 case $cross_compiling:$ac_tool_warned in
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3483 ac_tool_warned=yes ;;
3491 # Provide some information about the compiler.
3492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3495 for ac_option in --version -v -V -qversion; do
3496 { { ac_try="$ac_compiler $ac_option >&5"
3498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3499 *) ac_try_echo
=$ac_try;;
3501 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3505 if test -s conftest.err
; then
3507 ... rest of stderr output deleted ...
3508 10q' conftest.err
>conftest.er1
3509 cat conftest.er1
>&5
3511 rm -f conftest.er1 conftest.err
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3517 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3518 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3519 $as_echo_n "(cached) " >&6
3521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3535 if ac_fn_cxx_try_compile
"$LINENO"; then :
3540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3541 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3545 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3546 if test $ac_compiler_gnu = yes; then
3551 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3552 ac_save_CXXFLAGS
=$CXXFLAGS
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3554 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3555 if ${ac_cv_prog_cxx_g+:} false
; then :
3556 $as_echo_n "(cached) " >&6
3558 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3559 ac_cxx_werror_flag
=yes
3562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3573 if ac_fn_cxx_try_compile
"$LINENO"; then :
3574 ac_cv_prog_cxx_g
=yes
3577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3588 if ac_fn_cxx_try_compile
"$LINENO"; then :
3591 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3604 if ac_fn_cxx_try_compile
"$LINENO"; then :
3605 ac_cv_prog_cxx_g
=yes
3607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3612 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3615 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3616 if test "$ac_test_CXXFLAGS" = set; then
3617 CXXFLAGS
=$ac_save_CXXFLAGS
3618 elif test $ac_cv_prog_cxx_g = yes; then
3619 if test "$GXX" = yes; then
3625 if test "$GXX" = yes; then
3632 ac_cpp
='$CPP $CPPFLAGS'
3633 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3639 ac_cpp
='$CPP $CPPFLAGS'
3640 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3644 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3645 # On Suns, sometimes $CPP names a directory.
3646 if test -n "$CPP" && test -d "$CPP"; then
3649 if test -z "$CPP"; then
3650 if ${ac_cv_prog_CPP+:} false
; then :
3651 $as_echo_n "(cached) " >&6
3653 # Double quotes because CPP needs to be expanded
3654 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3657 for ac_c_preproc_warn_flag
in '' yes
3659 # Use a header file that comes with gcc, so configuring glibc
3660 # with a fresh cross-compiler works.
3661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3662 # <limits.h> exists even on freestanding compilers.
3663 # On the NeXT, cc -E runs the code through the compiler's parser,
3664 # not just through cpp. "Syntax error" is here to catch this case.
3665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3668 # include <limits.h>
3670 # include <assert.h>
3674 if ac_fn_c_try_cpp
"$LINENO"; then :
3677 # Broken: fails on valid input.
3680 rm -f conftest.err conftest.i conftest.
$ac_ext
3682 # OK, works on sane cases. Now check whether nonexistent headers
3683 # can be detected and how.
3684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686 #include <ac_nonexistent.h>
3688 if ac_fn_c_try_cpp
"$LINENO"; then :
3689 # Broken: success on invalid input.
3692 # Passes both tests.
3696 rm -f conftest.err conftest.i conftest.
$ac_ext
3699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3700 rm -f conftest.i conftest.err conftest.
$ac_ext
3701 if $ac_preproc_ok; then :
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3714 $as_echo "$CPP" >&6; }
3716 for ac_c_preproc_warn_flag
in '' yes
3718 # Use a header file that comes with gcc, so configuring glibc
3719 # with a fresh cross-compiler works.
3720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3721 # <limits.h> exists even on freestanding compilers.
3722 # On the NeXT, cc -E runs the code through the compiler's parser,
3723 # not just through cpp. "Syntax error" is here to catch this case.
3724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3727 # include <limits.h>
3729 # include <assert.h>
3733 if ac_fn_c_try_cpp
"$LINENO"; then :
3736 # Broken: fails on valid input.
3739 rm -f conftest.err conftest.i conftest.
$ac_ext
3741 # OK, works on sane cases. Now check whether nonexistent headers
3742 # can be detected and how.
3743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3745 #include <ac_nonexistent.h>
3747 if ac_fn_c_try_cpp
"$LINENO"; then :
3748 # Broken: success on invalid input.
3751 # Passes both tests.
3755 rm -f conftest.err conftest.i conftest.
$ac_ext
3758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759 rm -f conftest.i conftest.err conftest.
$ac_ext
3760 if $ac_preproc_ok; then :
3763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3766 See \`config.log' for more details" "$LINENO" 5; }
3770 ac_cpp
='$CPP $CPPFLAGS'
3771 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3777 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3778 if ${ac_cv_path_GREP+:} false
; then :
3779 $as_echo_n "(cached) " >&6
3781 if test -z "$GREP"; then
3782 ac_path_GREP_found
=false
3783 # Loop through the user's path and test for each of PROGNAME-LIST
3784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3785 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3788 test -z "$as_dir" && as_dir
=.
3789 for ac_prog
in grep ggrep
; do
3790 for ac_exec_ext
in '' $ac_executable_extensions; do
3791 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3792 as_fn_executable_p
"$ac_path_GREP" ||
continue
3793 # Check for GNU ac_path_GREP and select it if it is found.
3794 # Check for GNU $ac_path_GREP
3795 case `"$ac_path_GREP" --version 2>&1` in
3797 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3800 $as_echo_n 0123456789 >"conftest.in"
3803 cat "conftest.in" "conftest.in" >"conftest.tmp"
3804 mv "conftest.tmp" "conftest.in"
3805 cp "conftest.in" "conftest.nl"
3806 $as_echo 'GREP' >> "conftest.nl"
3807 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3808 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3809 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3810 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3811 # Best one so far, save it but keep looking for a better one
3812 ac_cv_path_GREP
="$ac_path_GREP"
3813 ac_path_GREP_max
=$ac_count
3815 # 10*(2^10) chars as input seems more than enough
3816 test $ac_count -gt 10 && break
3818 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3821 $ac_path_GREP_found && break 3
3826 if test -z "$ac_cv_path_GREP"; then
3827 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3830 ac_cv_path_GREP
=$GREP
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3835 $as_echo "$ac_cv_path_GREP" >&6; }
3836 GREP
="$ac_cv_path_GREP"
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3840 $as_echo_n "checking for egrep... " >&6; }
3841 if ${ac_cv_path_EGREP+:} false
; then :
3842 $as_echo_n "(cached) " >&6
3844 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3845 then ac_cv_path_EGREP
="$GREP -E"
3847 if test -z "$EGREP"; then
3848 ac_path_EGREP_found
=false
3849 # Loop through the user's path and test for each of PROGNAME-LIST
3850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3851 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3854 test -z "$as_dir" && as_dir
=.
3855 for ac_prog
in egrep; do
3856 for ac_exec_ext
in '' $ac_executable_extensions; do
3857 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3858 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3859 # Check for GNU ac_path_EGREP and select it if it is found.
3860 # Check for GNU $ac_path_EGREP
3861 case `"$ac_path_EGREP" --version 2>&1` in
3863 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3866 $as_echo_n 0123456789 >"conftest.in"
3869 cat "conftest.in" "conftest.in" >"conftest.tmp"
3870 mv "conftest.tmp" "conftest.in"
3871 cp "conftest.in" "conftest.nl"
3872 $as_echo 'EGREP' >> "conftest.nl"
3873 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3874 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3875 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3876 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3877 # Best one so far, save it but keep looking for a better one
3878 ac_cv_path_EGREP
="$ac_path_EGREP"
3879 ac_path_EGREP_max
=$ac_count
3881 # 10*(2^10) chars as input seems more than enough
3882 test $ac_count -gt 10 && break
3884 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3887 $ac_path_EGREP_found && break 3
3892 if test -z "$ac_cv_path_EGREP"; then
3893 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3896 ac_cv_path_EGREP
=$EGREP
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3902 $as_echo "$ac_cv_path_EGREP" >&6; }
3903 EGREP
="$ac_cv_path_EGREP"
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3907 $as_echo_n "checking for ANSI C header files... " >&6; }
3908 if ${ac_cv_header_stdc+:} false
; then :
3909 $as_echo_n "(cached) " >&6
3911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3926 if ac_fn_c_try_compile
"$LINENO"; then :
3927 ac_cv_header_stdc
=yes
3929 ac_cv_header_stdc
=no
3931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3933 if test $ac_cv_header_stdc = yes; then
3934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941 $EGREP "memchr" >/dev
/null
2>&1; then :
3944 ac_cv_header_stdc
=no
3950 if test $ac_cv_header_stdc = yes; then
3951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3958 $EGREP "free" >/dev
/null
2>&1; then :
3961 ac_cv_header_stdc
=no
3967 if test $ac_cv_header_stdc = yes; then
3968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3969 if test "$cross_compiling" = yes; then :
3972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3976 #if ((' ' & 0x0FF) == 0x020)
3977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3980 # define ISLOWER(c) \
3981 (('a' <= (c) && (c) <= 'i') \
3982 || ('j' <= (c) && (c) <= 'r') \
3983 || ('s' <= (c) && (c) <= 'z'))
3984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3992 for (i = 0; i < 256; i++)
3993 if (XOR (islower (i), ISLOWER (i))
3994 || toupper (i) != TOUPPER (i))
3999 if ac_fn_c_try_run
"$LINENO"; then :
4002 ac_cv_header_stdc
=no
4004 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4005 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4011 $as_echo "$ac_cv_header_stdc" >&6; }
4012 if test $ac_cv_header_stdc = yes; then
4014 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4019 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4020 inttypes.h stdint.h unistd.h
4022 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4023 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4025 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4026 cat >>confdefs.h
<<_ACEOF
4027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4036 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4037 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4044 if test "$MINIX" = yes; then
4046 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4049 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4052 $as_echo "#define _MINIX 1" >>confdefs.h
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4058 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4059 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4060 $as_echo_n "(cached) " >&6
4062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4065 # define __EXTENSIONS__ 1
4066 $ac_includes_default
4075 if ac_fn_c_try_compile
"$LINENO"; then :
4076 ac_cv_safe_to_define___extensions__
=yes
4078 ac_cv_safe_to_define___extensions__
=no
4080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4083 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4084 test $ac_cv_safe_to_define___extensions__ = yes &&
4085 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4087 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4089 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4091 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4093 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4097 # Check whether --enable-largefile was given.
4098 if test "${enable_largefile+set}" = set; then :
4099 enableval
=$enable_largefile;
4102 if test "$enable_largefile" != no
; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4105 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4106 if ${ac_cv_sys_largefile_CC+:} false
; then :
4107 $as_echo_n "(cached) " >&6
4109 ac_cv_sys_largefile_CC
=no
4110 if test "$GCC" != yes; then
4113 # IRIX 6.2 and later do not support large files by default,
4114 # so use the C compiler's -n32 option if that helps.
4115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117 #include <sys/types.h>
4118 /* Check that off_t can represent 2**63 - 1 correctly.
4119 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4120 since some C++ compilers masquerading as C compilers
4121 incorrectly reject 9223372036854775807. */
4122 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4123 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4124 && LARGE_OFF_T % 2147483647 == 1)
4134 if ac_fn_c_try_compile
"$LINENO"; then :
4137 rm -f core conftest.err conftest.
$ac_objext
4139 if ac_fn_c_try_compile
"$LINENO"; then :
4140 ac_cv_sys_largefile_CC
=' -n32'; break
4142 rm -f core conftest.err conftest.
$ac_objext
4146 rm -f conftest.
$ac_ext
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4150 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4151 if test "$ac_cv_sys_largefile_CC" != no
; then
4152 CC
=$CC$ac_cv_sys_largefile_CC
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4156 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4157 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4158 $as_echo_n "(cached) " >&6
4161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163 #include <sys/types.h>
4164 /* Check that off_t can represent 2**63 - 1 correctly.
4165 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4166 since some C++ compilers masquerading as C compilers
4167 incorrectly reject 9223372036854775807. */
4168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4170 && LARGE_OFF_T % 2147483647 == 1)
4180 if ac_fn_c_try_compile
"$LINENO"; then :
4181 ac_cv_sys_file_offset_bits
=no
; break
4183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #define _FILE_OFFSET_BITS 64
4187 #include <sys/types.h>
4188 /* Check that off_t can represent 2**63 - 1 correctly.
4189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4190 since some C++ compilers masquerading as C compilers
4191 incorrectly reject 9223372036854775807. */
4192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4194 && LARGE_OFF_T % 2147483647 == 1)
4204 if ac_fn_c_try_compile
"$LINENO"; then :
4205 ac_cv_sys_file_offset_bits
=64; break
4207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4208 ac_cv_sys_file_offset_bits
=unknown
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4213 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4214 case $ac_cv_sys_file_offset_bits in #(
4217 cat >>confdefs.h
<<_ACEOF
4218 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4223 if test $ac_cv_sys_file_offset_bits = unknown
; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4225 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4226 if ${ac_cv_sys_large_files+:} false
; then :
4227 $as_echo_n "(cached) " >&6
4230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232 #include <sys/types.h>
4233 /* Check that off_t can represent 2**63 - 1 correctly.
4234 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4235 since some C++ compilers masquerading as C compilers
4236 incorrectly reject 9223372036854775807. */
4237 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4238 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4239 && LARGE_OFF_T % 2147483647 == 1)
4249 if ac_fn_c_try_compile
"$LINENO"; then :
4250 ac_cv_sys_large_files
=no
; break
4252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255 #define _LARGE_FILES 1
4256 #include <sys/types.h>
4257 /* Check that off_t can represent 2**63 - 1 correctly.
4258 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4259 since some C++ compilers masquerading as C compilers
4260 incorrectly reject 9223372036854775807. */
4261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4262 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4263 && LARGE_OFF_T % 2147483647 == 1)
4273 if ac_fn_c_try_compile
"$LINENO"; then :
4274 ac_cv_sys_large_files
=1; break
4276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4277 ac_cv_sys_large_files
=unknown
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4282 $as_echo "$ac_cv_sys_large_files" >&6; }
4283 case $ac_cv_sys_large_files in #(
4286 cat >>confdefs.h
<<_ACEOF
4287 #define _LARGE_FILES $ac_cv_sys_large_files
4299 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4300 if test -f "$ac_dir/install-sh"; then
4302 ac_install_sh
="$ac_aux_dir/install-sh -c"
4304 elif test -f "$ac_dir/install.sh"; then
4306 ac_install_sh
="$ac_aux_dir/install.sh -c"
4308 elif test -f "$ac_dir/shtool"; then
4310 ac_install_sh
="$ac_aux_dir/shtool install -c"
4314 if test -z "$ac_aux_dir"; then
4315 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4318 # These three variables are undocumented and unsupported,
4319 # and are intended to be withdrawn in a future Autoconf release.
4320 # They can cause serious problems if a builder's source tree is in a directory
4321 # whose full name contains unusual characters.
4322 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4323 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4324 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4327 # Make sure we can run config.sub.
4328 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4329 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4332 $as_echo_n "checking build system type... " >&6; }
4333 if ${ac_cv_build+:} false
; then :
4334 $as_echo_n "(cached) " >&6
4336 ac_build_alias
=$build_alias
4337 test "x$ac_build_alias" = x
&&
4338 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4339 test "x$ac_build_alias" = x
&&
4340 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4341 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4342 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4346 $as_echo "$ac_cv_build" >&6; }
4347 case $ac_cv_build in
4349 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4352 ac_save_IFS
=$IFS; IFS
='-'
4358 # Remember, the first character of IFS is used to create $*,
4359 # except with old shells:
4362 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4366 $as_echo_n "checking host system type... " >&6; }
4367 if ${ac_cv_host+:} false
; then :
4368 $as_echo_n "(cached) " >&6
4370 if test "x$host_alias" = x
; then
4371 ac_cv_host
=$ac_cv_build
4373 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4374 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4379 $as_echo "$ac_cv_host" >&6; }
4382 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4385 ac_save_IFS
=$IFS; IFS
='-'
4391 # Remember, the first character of IFS is used to create $*,
4392 # except with old shells:
4395 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4399 $as_echo_n "checking target system type... " >&6; }
4400 if ${ac_cv_target+:} false
; then :
4401 $as_echo_n "(cached) " >&6
4403 if test "x$target_alias" = x
; then
4404 ac_cv_target
=$ac_cv_host
4406 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4407 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4412 $as_echo "$ac_cv_target" >&6; }
4413 case $ac_cv_target in
4415 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4417 target
=$ac_cv_target
4418 ac_save_IFS
=$IFS; IFS
='-'
4424 # Remember, the first character of IFS is used to create $*,
4425 # except with old shells:
4428 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4431 # The aliases save the names the user supplied, while $host etc.
4432 # will get canonicalized.
4433 test -n "$target_alias" &&
4434 test "$program_prefix$program_suffix$program_transform_name" = \
4436 program_prefix
=${target_alias}-
4439 # Find a good install program. We prefer a C program (faster),
4440 # so one script is as good as another. But avoid the broken or
4441 # incompatible versions:
4442 # SysV /etc/install, /usr/sbin/install
4443 # SunOS /usr/etc/install
4444 # IRIX /sbin/install
4446 # AmigaOS /C/install, which installs bootblocks on floppy discs
4447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4450 # OS/2's system install, which has a completely different semantic
4451 # ./install, which can be erroneously created by make from ./install.sh.
4452 # Reject install programs that cannot install multiple files.
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4454 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4455 if test -z "$INSTALL"; then
4456 if ${ac_cv_path_install+:} false
; then :
4457 $as_echo_n "(cached) " >&6
4459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4463 test -z "$as_dir" && as_dir
=.
4464 # Account for people who put trailing slashes in PATH elements.
4465 case $as_dir/ in #((
4466 .
/ | .
// |
/[cC
]/* | \
4467 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4468 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4471 # OSF1 and SCO ODT 3.0 have their own names for install.
4472 # Don't use installbsd from OSF since it installs stuff as root
4474 for ac_prog
in ginstall scoinst
install; do
4475 for ac_exec_ext
in '' $ac_executable_extensions; do
4476 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4477 if test $ac_prog = install &&
4478 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4479 # AIX install. It has an incompatible calling convention.
4481 elif test $ac_prog = install &&
4482 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4483 # program-specific install script used by HP pwplus--don't use.
4486 rm -rf conftest.one conftest.two conftest.dir
4487 echo one
> conftest.one
4488 echo two
> conftest.two
4490 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4491 test -s conftest.one
&& test -s conftest.two
&&
4492 test -s conftest.dir
/conftest.one
&&
4493 test -s conftest.dir
/conftest.two
4495 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4508 rm -rf conftest.one conftest.two conftest.dir
4511 if test "${ac_cv_path_install+set}" = set; then
4512 INSTALL
=$ac_cv_path_install
4514 # As a last resort, use the slow shell script. Don't cache a
4515 # value for INSTALL within a source directory, because that will
4516 # break other packages using the cache if that directory is
4517 # removed, or if the value is a relative name.
4518 INSTALL
=$ac_install_sh
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4522 $as_echo "$INSTALL" >&6; }
4524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4525 # It thinks the first close brace ends the variable substitution.
4526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4530 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4532 if test -n "$ac_tool_prefix"; then
4533 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4534 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if ${ac_cv_prog_AR+:} false
; then :
4538 $as_echo_n "(cached) " >&6
4540 if test -n "$AR"; then
4541 ac_cv_prog_AR
="$AR" # Let the user override the test.
4543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir
=.
4548 for ac_exec_ext
in '' $ac_executable_extensions; do
4549 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4550 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 if test -n "$AR"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4563 $as_echo "$AR" >&6; }
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4571 if test -z "$ac_cv_prog_AR"; then
4573 # Extract the first word of "ar", so it can be a program name with args.
4574 set dummy
ar; ac_word
=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4578 $as_echo_n "(cached) " >&6
4580 if test -n "$ac_ct_AR"; then
4581 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4587 test -z "$as_dir" && as_dir
=.
4588 for ac_exec_ext
in '' $ac_executable_extensions; do
4589 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_prog_ac_ct_AR
="ar"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4601 if test -n "$ac_ct_AR"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4603 $as_echo "$ac_ct_AR" >&6; }
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4609 if test "x$ac_ct_AR" = x
; then
4612 case $cross_compiling:$ac_tool_warned in
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4616 ac_tool_warned
=yes ;;
4624 if test -n "$ac_tool_prefix"; then
4625 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4626 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if ${ac_cv_prog_RANLIB+:} false
; then :
4630 $as_echo_n "(cached) " >&6
4632 if test -n "$RANLIB"; then
4633 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir
=.
4640 for ac_exec_ext
in '' $ac_executable_extensions; do
4641 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 RANLIB
=$ac_cv_prog_RANLIB
4653 if test -n "$RANLIB"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4655 $as_echo "$RANLIB" >&6; }
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4663 if test -z "$ac_cv_prog_RANLIB"; then
4664 ac_ct_RANLIB
=$RANLIB
4665 # Extract the first word of "ranlib", so it can be a program name with args.
4666 set dummy ranlib
; ac_word
=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4670 $as_echo_n "(cached) " >&6
4672 if test -n "$ac_ct_RANLIB"; then
4673 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4679 test -z "$as_dir" && as_dir
=.
4680 for ac_exec_ext
in '' $ac_executable_extensions; do
4681 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4682 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4693 if test -n "$ac_ct_RANLIB"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4695 $as_echo "$ac_ct_RANLIB" >&6; }
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4701 if test "x$ac_ct_RANLIB" = x
; then
4704 case $cross_compiling:$ac_tool_warned in
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4708 ac_tool_warned
=yes ;;
4710 RANLIB
=$ac_ct_RANLIB
4713 RANLIB
="$ac_cv_prog_RANLIB"
4717 test "$program_prefix" != NONE
&&
4718 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4719 # Use a double $ so make ignores it.
4720 test "$program_suffix" != NONE
&&
4721 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4722 # Double any \ or $.
4723 # By default was `s,x,x', remove it if useless.
4724 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4725 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4728 # We require a C++11 compiler. Check if one is available, and if
4729 # necessary, set CXX_DIALECT to some -std=xxx switch.
4731 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
4733 ac_cpp
='$CXXCPP $CPPFLAGS'
4734 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4740 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4741 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
4742 $as_echo_n "(cached) " >&6
4744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4748 // If the compiler admits that it is not ready for C++11, why torture it?
4749 // Hopefully, this will speed up the test.
4753 #error "This is not a C++ compiler"
4755 #elif __cplusplus < 201103L
4757 #error "This is not a C++11 compiler"
4764 namespace test_static_assert
4767 template <typename T>
4770 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4775 namespace test_final_override
4783 struct Derived : public Base
4785 virtual void f() override {}
4790 namespace test_double_right_angle_brackets
4793 template < typename T >
4796 typedef check<void> single_type;
4797 typedef check<check<void>> double_type;
4798 typedef check<check<check<void>>> triple_type;
4799 typedef check<check<check<check<void>>>> quadruple_type;
4803 namespace test_decltype
4816 namespace test_type_deduction
4819 template < typename T1, typename T2 >
4822 static const bool value = false;
4825 template < typename T >
4826 struct is_same<T, T>
4828 static const bool value = true;
4831 template < typename T1, typename T2 >
4833 add(T1 a1, T2 a2) -> decltype(a1 + a2)
4839 test(const int c, volatile int v)
4841 static_assert(is_same<int, decltype(0)>::value == true, "");
4842 static_assert(is_same<int, decltype(c)>::value == false, "");
4843 static_assert(is_same<int, decltype(v)>::value == false, "");
4846 auto sumi = ac + av + 'x';
4847 auto sumf = ac + av + 1.0;
4848 static_assert(is_same<int, decltype(ac)>::value == true, "");
4849 static_assert(is_same<int, decltype(av)>::value == true, "");
4850 static_assert(is_same<int, decltype(sumi)>::value == true, "");
4851 static_assert(is_same<int, decltype(sumf)>::value == false, "");
4852 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
4853 return (sumf > 0.0) ? sumi : add(c, v);
4858 namespace test_noexcept
4861 int f() { return 0; }
4862 int g() noexcept { return 0; }
4864 static_assert(noexcept(f()) == false, "");
4865 static_assert(noexcept(g()) == true, "");
4869 namespace test_constexpr
4872 template < typename CharT >
4873 unsigned long constexpr
4874 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
4876 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
4879 template < typename CharT >
4880 unsigned long constexpr
4881 strlen_c(const CharT *const s) noexcept
4883 return strlen_c_r(s, 0UL);
4886 static_assert(strlen_c("") == 0UL, "");
4887 static_assert(strlen_c("1") == 1UL, "");
4888 static_assert(strlen_c("example") == 7UL, "");
4889 static_assert(strlen_c("another\0example") == 7UL, "");
4893 namespace test_rvalue_references
4899 static constexpr int value = N;
4902 answer<1> f(int&) { return answer<1>(); }
4903 answer<2> f(const int&) { return answer<2>(); }
4904 answer<3> f(int&&) { return answer<3>(); }
4911 static_assert(decltype(f(i))::value == 1, "");
4912 static_assert(decltype(f(c))::value == 2, "");
4913 static_assert(decltype(f(0))::value == 3, "");
4918 namespace test_uniform_initialization
4923 static const int zero {};
4924 static const int one {1};
4927 static_assert(test::zero == 0, "");
4928 static_assert(test::one == 1, "");
4932 namespace test_lambdas
4938 auto lambda1 = [](){};
4939 auto lambda2 = lambda1;
4947 auto a = [](int i, int j){ return i + j; }(1, 2);
4948 auto b = []() -> int { return '0'; }();
4949 auto c = [=](){ return a + b; }();
4950 auto d = [&](){ return c; }();
4951 auto e = [a, &b](int x) mutable {
4952 const auto identity = [](int y){ return y; };
4953 for (auto i = 0; i < a; ++i)
4955 return x + identity(a + b);
4957 return a + b + c + d + e;
4963 const auto nullary = [](){ return 0; };
4964 const auto unary = [](int x){ return x; };
4965 using nullary_t = decltype(nullary);
4966 using unary_t = decltype(unary);
4967 const auto higher1st = [](nullary_t f){ return f(); };
4968 const auto higher2nd = [unary](nullary_t f1){
4969 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
4971 return higher1st(nullary) + higher2nd(nullary)(unary);
4976 namespace test_variadic_templates
4982 template <int N0, int... N1toN>
4983 struct sum<N0, N1toN...>
4985 static constexpr auto value = N0 + sum<N1toN...>::value;
4991 static constexpr auto value = 0;
4994 static_assert(sum<>::value == 0, "");
4995 static_assert(sum<1>::value == 1, "");
4996 static_assert(sum<23>::value == 23, "");
4997 static_assert(sum<1, 2>::value == 3, "");
4998 static_assert(sum<5, 5, 11>::value == 21, "");
4999 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5003 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5004 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5006 namespace test_template_alias_sfinae
5011 template<typename T>
5012 using member = typename T::member_type;
5014 template<typename T>
5017 template<typename T>
5018 void func(member<T>*) {}
5022 void test() { func<foo>(0); }
5026 } // namespace cxx11
5028 #endif // __cplusplus >= 201103L
5033 if ac_fn_cxx_try_compile
"$LINENO"; then :
5034 ax_cv_cxx_compile_cxx11
=yes
5036 ax_cv_cxx_compile_cxx11
=no
5038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5041 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5042 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5046 if test x
$ac_success = xno
; then
5047 for alternative
in ${ax_cxx_compile_alternatives}; do
5048 switch
="-std=gnu++${alternative}"
5049 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5051 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5052 if eval \
${$cachevar+:} false
; then :
5053 $as_echo_n "(cached) " >&6
5057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5061 // If the compiler admits that it is not ready for C++11, why torture it?
5062 // Hopefully, this will speed up the test.
5066 #error "This is not a C++ compiler"
5068 #elif __cplusplus < 201103L
5070 #error "This is not a C++11 compiler"
5077 namespace test_static_assert
5080 template <typename T>
5083 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5088 namespace test_final_override
5096 struct Derived : public Base
5098 virtual void f() override {}
5103 namespace test_double_right_angle_brackets
5106 template < typename T >
5109 typedef check<void> single_type;
5110 typedef check<check<void>> double_type;
5111 typedef check<check<check<void>>> triple_type;
5112 typedef check<check<check<check<void>>>> quadruple_type;
5116 namespace test_decltype
5129 namespace test_type_deduction
5132 template < typename T1, typename T2 >
5135 static const bool value = false;
5138 template < typename T >
5139 struct is_same<T, T>
5141 static const bool value = true;
5144 template < typename T1, typename T2 >
5146 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5152 test(const int c, volatile int v)
5154 static_assert(is_same<int, decltype(0)>::value == true, "");
5155 static_assert(is_same<int, decltype(c)>::value == false, "");
5156 static_assert(is_same<int, decltype(v)>::value == false, "");
5159 auto sumi = ac + av + 'x';
5160 auto sumf = ac + av + 1.0;
5161 static_assert(is_same<int, decltype(ac)>::value == true, "");
5162 static_assert(is_same<int, decltype(av)>::value == true, "");
5163 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5164 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5165 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5166 return (sumf > 0.0) ? sumi : add(c, v);
5171 namespace test_noexcept
5174 int f() { return 0; }
5175 int g() noexcept { return 0; }
5177 static_assert(noexcept(f()) == false, "");
5178 static_assert(noexcept(g()) == true, "");
5182 namespace test_constexpr
5185 template < typename CharT >
5186 unsigned long constexpr
5187 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5189 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5192 template < typename CharT >
5193 unsigned long constexpr
5194 strlen_c(const CharT *const s) noexcept
5196 return strlen_c_r(s, 0UL);
5199 static_assert(strlen_c("") == 0UL, "");
5200 static_assert(strlen_c("1") == 1UL, "");
5201 static_assert(strlen_c("example") == 7UL, "");
5202 static_assert(strlen_c("another\0example") == 7UL, "");
5206 namespace test_rvalue_references
5212 static constexpr int value = N;
5215 answer<1> f(int&) { return answer<1>(); }
5216 answer<2> f(const int&) { return answer<2>(); }
5217 answer<3> f(int&&) { return answer<3>(); }
5224 static_assert(decltype(f(i))::value == 1, "");
5225 static_assert(decltype(f(c))::value == 2, "");
5226 static_assert(decltype(f(0))::value == 3, "");
5231 namespace test_uniform_initialization
5236 static const int zero {};
5237 static const int one {1};
5240 static_assert(test::zero == 0, "");
5241 static_assert(test::one == 1, "");
5245 namespace test_lambdas
5251 auto lambda1 = [](){};
5252 auto lambda2 = lambda1;
5260 auto a = [](int i, int j){ return i + j; }(1, 2);
5261 auto b = []() -> int { return '0'; }();
5262 auto c = [=](){ return a + b; }();
5263 auto d = [&](){ return c; }();
5264 auto e = [a, &b](int x) mutable {
5265 const auto identity = [](int y){ return y; };
5266 for (auto i = 0; i < a; ++i)
5268 return x + identity(a + b);
5270 return a + b + c + d + e;
5276 const auto nullary = [](){ return 0; };
5277 const auto unary = [](int x){ return x; };
5278 using nullary_t = decltype(nullary);
5279 using unary_t = decltype(unary);
5280 const auto higher1st = [](nullary_t f){ return f(); };
5281 const auto higher2nd = [unary](nullary_t f1){
5282 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5284 return higher1st(nullary) + higher2nd(nullary)(unary);
5289 namespace test_variadic_templates
5295 template <int N0, int... N1toN>
5296 struct sum<N0, N1toN...>
5298 static constexpr auto value = N0 + sum<N1toN...>::value;
5304 static constexpr auto value = 0;
5307 static_assert(sum<>::value == 0, "");
5308 static_assert(sum<1>::value == 1, "");
5309 static_assert(sum<23>::value == 23, "");
5310 static_assert(sum<1, 2>::value == 3, "");
5311 static_assert(sum<5, 5, 11>::value == 21, "");
5312 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5316 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5317 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5319 namespace test_template_alias_sfinae
5324 template<typename T>
5325 using member = typename T::member_type;
5327 template<typename T>
5330 template<typename T>
5331 void func(member<T>*) {}
5335 void test() { func<foo>(0); }
5339 } // namespace cxx11
5341 #endif // __cplusplus >= 201103L
5346 if ac_fn_cxx_try_compile
"$LINENO"; then :
5351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5354 eval ac_res
=\$
$cachevar
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5356 $as_echo "$ac_res" >&6; }
5357 if eval test x\$
$cachevar = xyes
; then
5358 CXX_DIALECT
="$switch"
5365 if test x
$ac_success = xno
; then
5366 for alternative
in ${ax_cxx_compile_alternatives}; do
5367 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5368 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5370 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5371 if eval \${$cachevar+:} false; then :
5372 $as_echo_n "(cached
) " >&6
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5380 // If the compiler admits that it is not ready for C++11, why torture it?
5381 // Hopefully, this will speed up the test.
5385 #error "This is not a C
++ compiler
"
5387 #elif __cplusplus < 201103L
5389 #error "This is not a C
++11 compiler
"
5396 namespace test_static_assert
5399 template <typename T>
5402 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5407 namespace test_final_override
5415 struct Derived : public Base
5417 virtual void f() override {}
5422 namespace test_double_right_angle_brackets
5425 template < typename T >
5428 typedef check<void> single_type;
5429 typedef check<check<void>> double_type;
5430 typedef check<check<check<void>>> triple_type;
5431 typedef check<check<check<check<void>>>> quadruple_type;
5435 namespace test_decltype
5448 namespace test_type_deduction
5451 template < typename T1, typename T2 >
5454 static const bool value = false;
5457 template < typename T >
5458 struct is_same<T, T>
5460 static const bool value = true;
5463 template < typename T1, typename T2 >
5465 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5471 test(const int c, volatile int v)
5473 static_assert(is_same<int, decltype(0)>::value == true, "");
5474 static_assert(is_same<int, decltype(c)>::value == false, "");
5475 static_assert(is_same<int, decltype(v)>::value == false, "");
5478 auto sumi = ac + av + 'x';
5479 auto sumf = ac + av + 1.0;
5480 static_assert(is_same<int, decltype(ac)>::value == true, "");
5481 static_assert(is_same<int, decltype(av)>::value == true, "");
5482 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5483 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5484 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5485 return (sumf > 0.0) ? sumi : add(c, v);
5490 namespace test_noexcept
5493 int f() { return 0; }
5494 int g() noexcept { return 0; }
5496 static_assert(noexcept(f()) == false, "");
5497 static_assert(noexcept(g()) == true, "");
5501 namespace test_constexpr
5504 template < typename CharT >
5505 unsigned long constexpr
5506 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5508 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5511 template < typename CharT >
5512 unsigned long constexpr
5513 strlen_c(const CharT *const s) noexcept
5515 return strlen_c_r(s, 0UL);
5518 static_assert(strlen_c("") == 0UL, "");
5519 static_assert(strlen_c("1") == 1UL, "");
5520 static_assert(strlen_c("example
") == 7UL, "");
5521 static_assert(strlen_c("another\
0example
") == 7UL, "");
5525 namespace test_rvalue_references
5531 static constexpr int value = N;
5534 answer<1> f(int&) { return answer<1>(); }
5535 answer<2> f(const int&) { return answer<2>(); }
5536 answer<3> f(int&&) { return answer<3>(); }
5543 static_assert(decltype(f(i))::value == 1, "");
5544 static_assert(decltype(f(c))::value == 2, "");
5545 static_assert(decltype(f(0))::value == 3, "");
5550 namespace test_uniform_initialization
5555 static const int zero {};
5556 static const int one {1};
5559 static_assert(test::zero == 0, "");
5560 static_assert(test::one == 1, "");
5564 namespace test_lambdas
5570 auto lambda1 = [](){};
5571 auto lambda2 = lambda1;
5579 auto a = [](int i, int j){ return i + j; }(1, 2);
5580 auto b = []() -> int { return '0'; }();
5581 auto c = [=](){ return a + b; }();
5582 auto d = [&](){ return c; }();
5583 auto e = [a, &b](int x) mutable {
5584 const auto identity = [](int y){ return y; };
5585 for (auto i = 0; i < a; ++i)
5587 return x + identity(a + b);
5589 return a + b + c + d + e;
5595 const auto nullary = [](){ return 0; };
5596 const auto unary = [](int x){ return x; };
5597 using nullary_t = decltype(nullary);
5598 using unary_t = decltype(unary);
5599 const auto higher1st = [](nullary_t f){ return f(); };
5600 const auto higher2nd = [unary](nullary_t f1){
5601 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5603 return higher1st(nullary) + higher2nd(nullary)(unary);
5608 namespace test_variadic_templates
5614 template <int N0, int... N1toN>
5615 struct sum<N0, N1toN...>
5617 static constexpr auto value = N0 + sum<N1toN...>::value;
5623 static constexpr auto value = 0;
5626 static_assert(sum<>::value == 0, "");
5627 static_assert(sum<1>::value == 1, "");
5628 static_assert(sum<23>::value == 23, "");
5629 static_assert(sum<1, 2>::value == 3, "");
5630 static_assert(sum<5, 5, 11>::value == 21, "");
5631 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5635 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5636 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5638 namespace test_template_alias_sfinae
5643 template<typename T>
5644 using member = typename T::member_type;
5646 template<typename T>
5649 template<typename T>
5650 void func(member<T>*) {}
5654 void test() { func<foo>(0); }
5658 } // namespace cxx11
5660 #endif // __cplusplus >= 201103L
5665 if ac_fn_cxx_try_compile "$LINENO"; then :
5670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 eval ac_res=\$$cachevar
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5675 $as_echo "$ac_res" >&6; }
5676 if eval test x\$$cachevar = xyes; then
5677 CXX_DIALECT="$switch"
5682 if test x$ac_success = xyes; then
5688 ac_cpp='$CPP $CPPFLAGS'
5689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5693 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5694 if test x$ac_success = xno; then
5695 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
5698 if test x$ac_success = xno; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
5701 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
5705 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5713 $as_echo_n "checking for ANSI C header files... " >&6; }
5714 if ${ac_cv_header_stdc+:} false
; then :
5715 $as_echo_n "(cached) " >&6
5717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5732 if ac_fn_c_try_compile
"$LINENO"; then :
5733 ac_cv_header_stdc
=yes
5735 ac_cv_header_stdc
=no
5737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5739 if test $ac_cv_header_stdc = yes; then
5740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5747 $EGREP "memchr" >/dev
/null
2>&1; then :
5750 ac_cv_header_stdc
=no
5756 if test $ac_cv_header_stdc = yes; then
5757 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5764 $EGREP "free" >/dev
/null
2>&1; then :
5767 ac_cv_header_stdc
=no
5773 if test $ac_cv_header_stdc = yes; then
5774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5775 if test "$cross_compiling" = yes; then :
5778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5782 #if ((' ' & 0x0FF) == 0x020)
5783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5786 # define ISLOWER(c) \
5787 (('a' <= (c) && (c) <= 'i') \
5788 || ('j' <= (c) && (c) <= 'r') \
5789 || ('s' <= (c) && (c) <= 'z'))
5790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5798 for (i = 0; i < 256; i++)
5799 if (XOR (islower (i), ISLOWER (i))
5800 || toupper (i) != TOUPPER (i))
5805 if ac_fn_c_try_run
"$LINENO"; then :
5808 ac_cv_header_stdc
=no
5810 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5811 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5817 $as_echo "$ac_cv_header_stdc" >&6; }
5818 if test $ac_cv_header_stdc = yes; then
5820 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5825 # Set the 'development' global.
5826 .
$srcdir/..
/..
/bfd
/development.sh
5829 # Check whether we will enable the inclusion of unit tests when
5832 # The default value of this option changes depending whether we're on
5833 # development mode (in which case it's "true") or not (in which case
5835 # Check whether --enable-unit-tests was given.
5836 if test "${enable_unit_tests+set}" = set; then :
5837 enableval
=$enable_unit_tests; case "${enableval}" in
5838 yes) enable_unittests
=true
;;
5839 no
) enable_unittests
=false
;;
5840 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
5843 enable_unittests
=$development
5847 if $enable_unittests; then
5849 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
5852 srv_selftest_objs
="gdbsupport/selftest.o"
5857 case ${build_alias} in
5858 "") build_noncanonical
=${build} ;;
5859 *) build_noncanonical
=${build_alias} ;;
5862 case ${host_alias} in
5863 "") host_noncanonical
=${build_noncanonical} ;;
5864 *) host_noncanonical
=${host_alias} ;;
5867 case ${target_alias} in
5868 "") target_noncanonical
=${host_noncanonical} ;;
5869 *) target_noncanonical
=${target_alias} ;;
5877 # Dependency checking.
5878 rm -rf .tst
2>/dev
/null
5879 mkdir .tst
2>/dev
/null
5880 if test -d .tst
; then
5885 rmdir .tst
2>/dev
/null
5887 DEPDIR
="${am__leading_dot}deps"
5889 ac_config_commands
="$ac_config_commands depdir"
5893 # Create sub-directories for objects and dependencies.
5894 CONFIG_SRC_SUBDIR
="arch gdbsupport"
5897 ac_config_commands
="$ac_config_commands gdbdepdir"
5900 depcc
="$CC" am_compiler_list
=
5902 am_depcomp
=$ac_aux_dir/depcomp
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5904 $as_echo_n "checking dependency style of $depcc... " >&6; }
5905 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
5906 $as_echo_n "(cached) " >&6
5908 if test -f "$am_depcomp"; then
5909 # We make a subdir and do the tests there. Otherwise we can end up
5910 # making bogus files that we don't know about and never remove. For
5911 # instance it was reported that on HP-UX the gcc test will end up
5912 # making a dummy file named `D' -- because `-MD' means `put the output
5915 # Copy depcomp to subdir because otherwise we won't find it if we're
5916 # using a relative directory.
5917 cp "$am_depcomp" conftest.dir
5919 # We will build objects and dependencies in a subdirectory because
5920 # it helps to detect inapplicable dependency modes. For instance
5921 # both Tru64's cc and ICC support -MD to output dependencies as a
5922 # side effect of compilation, but ICC will put the dependencies in
5923 # the current directory while Tru64 will put them in the object
5927 am_cv_CC_dependencies_compiler_type
=none
5928 if test "$am_compiler_list" = ""; then
5929 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5931 for depmode
in $am_compiler_list; do
5932 if test $depmode = none
; then break; fi
5934 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5935 # Setup a source with many dependencies, because some compilers
5936 # like to wrap large dependency lists on column 80 (with \), and
5937 # we should not choose a depcomp mode which is confused by this.
5939 # We need to recreate these files for each test, as the compiler may
5940 # overwrite some of them when testing with obscure command lines.
5941 # This happens at least with the AIX C compiler.
5943 for i
in 1 2 3 4 5 6; do
5944 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5945 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5946 # Solaris 8's {/usr,}/bin/sh.
5947 touch sub
/conftst
$i.h
5949 echo "include sub/conftest.Po" > confmf
5951 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5952 # mode. It turns out that the SunPro C++ compiler does not properly
5953 # handle `-M -o', and we need to detect this.
5954 depcmd
="depmode=$depmode \
5955 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5956 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5957 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5958 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5959 if env
$depcmd > conftest.err
2>&1 &&
5960 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5961 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5962 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5963 # icc doesn't choke on unknown options, it will just issue warnings
5964 # or remarks (even with -Werror). So we grep stderr for any message
5965 # that says an option was ignored or not supported.
5966 # When given -MP, icc 7.0 and 7.1 complain thusly:
5967 # icc: Command line warning: ignoring option '-M'; no argument required
5968 # The diagnosis changed in icc 8.0:
5969 # icc: Command line remark: option '-MP' not supported
5970 if (grep 'ignoring option' conftest.err ||
5971 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5972 am_cv_CC_dependencies_compiler_type
=$depmode
5973 $as_echo "$as_me:$LINENO: success" >&5
5977 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5978 sed -e 's/^/| /' < conftest.err
>&5
5984 am_cv_CC_dependencies_compiler_type
=none
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5989 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5990 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
5991 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
5992 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5997 gnulib_extra_configure_args
=
5998 # If large-file support is disabled, make sure gnulib does the same.
5999 if test "$enable_largefile" = no
; then
6000 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6003 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
6004 # to find the the source subdir to be configured directly under
6005 # gdbserver/. We need to build gnulib under some other directory not
6006 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
6007 # build it in the same directory, when building in the source dir.
6009 in_src
="../../gnulib"
6010 in_build
="build-gnulib-gdbserver"
6011 in_extra_args
="$gnulib_extra_configure_args"
6013 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6014 # so they do not pile up.
6015 ac_sub_configure_args
=
6017 eval "set x $ac_configure_args"
6021 if test -n "$ac_prev"; then
6026 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6027 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6028 ac_prev
=cache_file
;;
6029 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6030 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6033 --config-cache |
-C)
6035 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6037 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6039 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6041 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6043 --disable-option-checking)
6047 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6049 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6053 # Always prepend --prefix to ensure using the same prefix
6054 # in subdir configurations.
6055 ac_arg
="--prefix=$prefix"
6057 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6059 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6062 if test "$silent" = yes; then
6063 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6066 # Always prepend --disable-option-checking to silence warnings, since
6067 # different subdirs can have different --enable and --with options.
6068 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6073 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6074 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6075 $as_echo "$ac_msg" >&6
6076 as_dir
="$ac_dir"; as_fn_mkdir_p
6080 ac_srcdir
=$srcdir/$in_src ;;
6082 ac_srcdir
=..
/$srcdir/$in_src ;;
6087 ac_sub_configure
=$ac_srcdir/configure
6089 # Make the cache file name correct relative to the subdirectory.
6091 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6093 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6096 if test -n "$in_extra_args"; then
6097 # Add the extra args at the end.
6098 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6101 { $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
6102 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6103 # The eval makes quoting arguments work.
6104 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6105 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6106 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6112 in_src
="../../libiberty"
6113 in_build
="build-libiberty-gdbserver"
6116 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6117 # so they do not pile up.
6118 ac_sub_configure_args
=
6120 eval "set x $ac_configure_args"
6124 if test -n "$ac_prev"; then
6129 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6130 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6131 ac_prev
=cache_file
;;
6132 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6133 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6136 --config-cache |
-C)
6138 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6140 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6142 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6144 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6146 --disable-option-checking)
6150 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6152 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6156 # Always prepend --prefix to ensure using the same prefix
6157 # in subdir configurations.
6158 ac_arg
="--prefix=$prefix"
6160 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6162 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6165 if test "$silent" = yes; then
6166 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6169 # Always prepend --disable-option-checking to silence warnings, since
6170 # different subdirs can have different --enable and --with options.
6171 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6176 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6177 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6178 $as_echo "$ac_msg" >&6
6179 as_dir
="$ac_dir"; as_fn_mkdir_p
6183 ac_srcdir
=$srcdir/$in_src ;;
6185 ac_srcdir
=..
/$srcdir/$in_src ;;
6190 ac_sub_configure
=$ac_srcdir/configure
6192 # Make the cache file name correct relative to the subdirectory.
6194 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6196 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6199 if test -n "$in_extra_args"; then
6200 # Add the extra args at the end.
6201 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6204 { $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
6205 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6206 # The eval makes quoting arguments work.
6207 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6208 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6209 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6214 for ac_header
in 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
6216 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6217 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6218 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6219 cat >>confdefs.h
<<_ACEOF
6220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6227 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6228 if test "x$ac_cv_type_pid_t" = xyes
; then :
6232 cat >>confdefs.h
<<_ACEOF
6238 for ac_header
in vfork.h
6240 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6241 if test "x$ac_cv_header_vfork_h" = xyes
; then :
6242 cat >>confdefs.h
<<_ACEOF
6243 #define HAVE_VFORK_H 1
6250 for ac_func
in fork vfork
6252 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6253 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6254 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6255 cat >>confdefs.h
<<_ACEOF
6256 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6262 if test "x$ac_cv_func_fork" = xyes
; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6264 $as_echo_n "checking for working fork... " >&6; }
6265 if ${ac_cv_func_fork_works+:} false
; then :
6266 $as_echo_n "(cached) " >&6
6268 if test "$cross_compiling" = yes; then :
6269 ac_cv_func_fork_works
=cross
6271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273 $ac_includes_default
6278 /* By Ruediger Kuhlmann. */
6285 if ac_fn_c_try_run
"$LINENO"; then :
6286 ac_cv_func_fork_works
=yes
6288 ac_cv_func_fork_works
=no
6290 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6291 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6296 $as_echo "$ac_cv_func_fork_works" >&6; }
6299 ac_cv_func_fork_works
=$ac_cv_func_fork
6301 if test "x$ac_cv_func_fork_works" = xcross
; then
6303 *-*-amigaos* |
*-*-msdosdjgpp*)
6304 # Override, as these systems have only a dummy fork() stub
6305 ac_cv_func_fork_works
=no
6308 ac_cv_func_fork_works
=yes
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6312 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6314 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6315 if test "x$ac_cv_func_vfork" = xyes
; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6317 $as_echo_n "checking for working vfork... " >&6; }
6318 if ${ac_cv_func_vfork_works+:} false
; then :
6319 $as_echo_n "(cached) " >&6
6321 if test "$cross_compiling" = yes; then :
6322 ac_cv_func_vfork_works
=cross
6324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326 /* Thanks to Paul Eggert for this test. */
6327 $ac_includes_default
6328 #include <sys/wait.h>
6332 /* On some sparc systems, changes by the child to local and incoming
6333 argument registers are propagated back to the parent. The compiler
6334 is told about this with #include <vfork.h>, but some compilers
6335 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6336 static variable whose address is put into a register that is
6337 clobbered by the vfork. */
6340 sparc_address_test (int arg)
6342 sparc_address_test (arg) int arg;
6363 pid_t parent = getpid ();
6366 sparc_address_test (0);
6371 /* Here is another test for sparc vfork register problems. This
6372 test uses lots of local variables, at least as many local
6373 variables as main has allocated so far including compiler
6374 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6375 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6376 reuse the register of parent for one of the local variables,
6377 since it will think that parent can't possibly be used any more
6378 in this routine. Assigning to the local variable will thus
6379 munge parent in the parent process. */
6381 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6382 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6383 /* Convince the compiler that p..p7 are live; otherwise, it might
6384 use the same hardware register for all 8 local variables. */
6385 if (p != p1 || p != p2 || p != p3 || p != p4
6386 || p != p5 || p != p6 || p != p7)
6389 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6390 from child file descriptors. If the child closes a descriptor
6391 before it execs or exits, this munges the parent's descriptor
6392 as well. Test for this by closing stdout in the child. */
6393 _exit(close(fileno(stdout)) != 0);
6398 while (wait(&status) != child)
6401 /* Was there some problem with vforking? */
6404 /* Did the child fail? (This shouldn't happen.) */
6407 /* Did the vfork/compiler bug occur? */
6408 || parent != getpid()
6410 /* Did the file descriptor bug occur? */
6411 || fstat(fileno(stdout), &st) != 0
6416 if ac_fn_c_try_run
"$LINENO"; then :
6417 ac_cv_func_vfork_works
=yes
6419 ac_cv_func_vfork_works
=no
6421 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6422 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6427 $as_echo "$ac_cv_func_vfork_works" >&6; }
6430 if test "x$ac_cv_func_fork_works" = xcross
; then
6431 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6433 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6436 if test "x$ac_cv_func_vfork_works" = xyes
; then
6438 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6442 $as_echo "#define vfork fork" >>confdefs.h
6445 if test "x$ac_cv_func_fork_works" = xyes
; then
6447 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6451 for ac_func
in getauxval pread pwrite pread64 setns
6453 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6454 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6455 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6456 cat >>confdefs.h
<<_ACEOF
6457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6464 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6465 if test "x$ac_cv_type_size_t" = xyes
; then :
6469 cat >>confdefs.h
<<_ACEOF
6470 #define size_t unsigned int
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6477 $as_echo_n "checking for ANSI C header files... " >&6; }
6478 if ${ac_cv_header_stdc+:} false
; then :
6479 $as_echo_n "(cached) " >&6
6481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6496 if ac_fn_c_try_compile
"$LINENO"; then :
6497 ac_cv_header_stdc
=yes
6499 ac_cv_header_stdc
=no
6501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6503 if test $ac_cv_header_stdc = yes; then
6504 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6511 $EGREP "memchr" >/dev
/null
2>&1; then :
6514 ac_cv_header_stdc
=no
6520 if test $ac_cv_header_stdc = yes; then
6521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6528 $EGREP "free" >/dev
/null
2>&1; then :
6531 ac_cv_header_stdc
=no
6537 if test $ac_cv_header_stdc = yes; then
6538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6539 if test "$cross_compiling" = yes; then :
6542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6543 /* end confdefs.h. */
6546 #if ((' ' & 0x0FF) == 0x020)
6547 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6548 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6550 # define ISLOWER(c) \
6551 (('a' <= (c) && (c) <= 'i') \
6552 || ('j' <= (c) && (c) <= 'r') \
6553 || ('s' <= (c) && (c) <= 'z'))
6554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6562 for (i = 0; i < 256; i++)
6563 if (XOR (islower (i), ISLOWER (i))
6564 || toupper (i) != TOUPPER (i))
6569 if ac_fn_c_try_run
"$LINENO"; then :
6572 ac_cv_header_stdc
=no
6574 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6575 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6581 $as_echo "$ac_cv_header_stdc" >&6; }
6582 if test $ac_cv_header_stdc = yes; then
6584 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6588 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6589 # for constant arguments. Useless!
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6591 $as_echo_n "checking for working alloca.h... " >&6; }
6592 if ${ac_cv_working_alloca_h+:} false
; then :
6593 $as_echo_n "(cached) " >&6
6595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6601 char *p = (char *) alloca (2 * sizeof (int));
6607 if ac_fn_c_try_link
"$LINENO"; then :
6608 ac_cv_working_alloca_h
=yes
6610 ac_cv_working_alloca_h
=no
6612 rm -f core conftest.err conftest.
$ac_objext \
6613 conftest
$ac_exeext conftest.
$ac_ext
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6616 $as_echo "$ac_cv_working_alloca_h" >&6; }
6617 if test $ac_cv_working_alloca_h = yes; then
6619 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6624 $as_echo_n "checking for alloca... " >&6; }
6625 if ${ac_cv_func_alloca_works+:} false
; then :
6626 $as_echo_n "(cached) " >&6
6628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6631 # define alloca __builtin_alloca
6634 # include <malloc.h>
6635 # define alloca _alloca
6637 # ifdef HAVE_ALLOCA_H
6638 # include <alloca.h>
6643 # ifndef alloca /* predefined by HP cc +Olibcalls */
6644 void *alloca (size_t);
6654 char *p = (char *) alloca (1);
6660 if ac_fn_c_try_link
"$LINENO"; then :
6661 ac_cv_func_alloca_works
=yes
6663 ac_cv_func_alloca_works
=no
6665 rm -f core conftest.err conftest.
$ac_objext \
6666 conftest
$ac_exeext conftest.
$ac_ext
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6669 $as_echo "$ac_cv_func_alloca_works" >&6; }
6671 if test $ac_cv_func_alloca_works = yes; then
6673 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6676 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6677 # that cause trouble. Some versions do not even contain alloca or
6678 # contain a buggy version. If you still want to use their alloca,
6679 # use ar to extract alloca.o from them instead of compiling alloca.c.
6681 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6683 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6687 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6688 if ${ac_cv_os_cray+:} false
; then :
6689 $as_echo_n "(cached) " >&6
6691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h. */
6693 #if defined CRAY && ! defined CRAY2
6700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6701 $EGREP "webecray" >/dev
/null
2>&1; then :
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6710 $as_echo "$ac_cv_os_cray" >&6; }
6711 if test $ac_cv_os_cray = yes; then
6712 for ac_func
in _getb67 GETB67 getb67
; do
6713 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6714 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6715 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6717 cat >>confdefs.h
<<_ACEOF
6718 #define CRAY_STACKSEG_END $ac_func
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6728 $as_echo_n "checking stack direction for C alloca... " >&6; }
6729 if ${ac_cv_c_stack_direction+:} false
; then :
6730 $as_echo_n "(cached) " >&6
6732 if test "$cross_compiling" = yes; then :
6733 ac_cv_c_stack_direction
=0
6735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737 $ac_includes_default
6739 find_stack_direction (int *addr, int depth)
6744 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6745 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6750 main (int argc, char **argv)
6752 return find_stack_direction (0, argc + !argv + 20) < 0;
6755 if ac_fn_c_try_run
"$LINENO"; then :
6756 ac_cv_c_stack_direction
=1
6758 ac_cv_c_stack_direction
=-1
6760 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6761 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6766 $as_echo "$ac_cv_c_stack_direction" >&6; }
6767 cat >>confdefs.h
<<_ACEOF
6768 #define STACK_DIRECTION $ac_cv_c_stack_direction
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6777 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6778 if ${am_cv_langinfo_codeset+:} false
; then :
6779 $as_echo_n "(cached) " >&6
6781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6783 #include <langinfo.h>
6787 char* cs = nl_langinfo(CODESET);
6792 if ac_fn_c_try_link
"$LINENO"; then :
6793 am_cv_langinfo_codeset
=yes
6795 am_cv_langinfo_codeset
=no
6797 rm -f core conftest.err conftest.
$ac_objext \
6798 conftest
$ac_exeext conftest.
$ac_ext
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6802 $as_echo "$am_cv_langinfo_codeset" >&6; }
6803 if test $am_cv_langinfo_codeset = yes; then
6805 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6810 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h dlfcn.h
6812 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6813 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6814 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6815 cat >>confdefs.h
<<_ACEOF
6816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6824 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
6827 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6828 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6829 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6830 cat >>confdefs.h
<<_ACEOF
6831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6838 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
6839 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
6845 cat >>confdefs.h
<<_ACEOF
6846 #define HAVE_DECL_STRERROR $ac_have_decl
6848 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
6849 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
6855 cat >>confdefs.h
<<_ACEOF
6856 #define HAVE_DECL_STRSTR $ac_have_decl
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
6861 $as_echo_n "checking for sigsetjmp... " >&6; }
6862 if ${gdb_cv_func_sigsetjmp+:} false
; then :
6863 $as_echo_n "(cached) " >&6
6865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6873 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6878 if ac_fn_c_try_compile
"$LINENO"; then :
6879 gdb_cv_func_sigsetjmp
=yes
6881 gdb_cv_func_sigsetjmp
=no
6883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
6886 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
6887 if test $gdb_cv_func_sigsetjmp = yes; then
6889 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
6894 # Check the return and argument types of ptrace.
6897 for ac_header
in sys
/ptrace.h ptrace.h
6899 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6900 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6901 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6902 cat >>confdefs.h
<<_ACEOF
6903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6911 gdb_ptrace_headers
='
6912 #include <sys/types.h>
6913 #if HAVE_SYS_PTRACE_H
6914 # include <sys/ptrace.h>
6917 # include <unistd.h>
6920 # There is no point in checking if we don't have a prototype.
6921 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
6923 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
6929 cat >>confdefs.h
<<_ACEOF
6930 #define HAVE_DECL_PTRACE $ac_have_decl
6932 if test $ac_have_decl = 1; then :
6936 : ${gdb_cv_func_ptrace_ret='int'}
6937 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6941 # Check return type. Varargs (used on GNU/Linux) conflict with the
6942 # empty argument list, so check for that explicitly.
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
6944 $as_echo_n "checking return type of ptrace... " >&6; }
6945 if ${gdb_cv_func_ptrace_ret+:} false
; then :
6946 $as_echo_n "(cached) " >&6
6948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6954 extern long ptrace (enum __ptrace_request, ...);
6959 if ac_fn_c_try_compile
"$LINENO"; then :
6960 gdb_cv_func_ptrace_ret
='long'
6962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6968 extern int ptrace ();
6973 if ac_fn_c_try_compile
"$LINENO"; then :
6974 gdb_cv_func_ptrace_ret
='int'
6976 gdb_cv_func_ptrace_ret
='long'
6978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
6983 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
6985 cat >>confdefs.h
<<_ACEOF
6986 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
6989 # Check argument types.
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
6991 $as_echo_n "checking types of arguments for ptrace... " >&6; }
6992 if ${gdb_cv_func_ptrace_args+:} false
; then :
6993 $as_echo_n "(cached) " >&6
6996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
7002 extern long ptrace (enum __ptrace_request, ...);
7007 if ac_fn_c_try_compile
"$LINENO"; then :
7008 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
7011 for gdb_arg1
in 'int' 'long'; do
7012 for gdb_arg2
in 'pid_t' 'int' 'long'; do
7013 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
7014 for gdb_arg4
in 'int' 'long' 'void *'; do
7015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7022 extern $gdb_cv_func_ptrace_ret
7023 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
7029 if ac_fn_c_try_compile
"$LINENO"; then :
7030 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
7033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7034 for gdb_arg5
in 'int *' 'int' 'long'; do
7035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7042 extern $gdb_cv_func_ptrace_ret
7043 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
7049 if ac_fn_c_try_compile
"$LINENO"; then :
7051 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
7054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7060 # Provide a safe default value.
7061 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
7067 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
7068 ac_save_IFS
=$IFS; IFS
=','
7069 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
7073 cat >>confdefs.h
<<_ACEOF
7074 #define PTRACE_TYPE_ARG1 $1
7078 cat >>confdefs.h
<<_ACEOF
7079 #define PTRACE_TYPE_ARG3 $3
7083 cat >>confdefs.h
<<_ACEOF
7084 #define PTRACE_TYPE_ARG4 $4
7087 if test -n "$5"; then
7089 cat >>confdefs.h
<<_ACEOF
7090 #define PTRACE_TYPE_ARG5 $5
7101 # Check whether --with-ust was given.
7102 if test "${with_ust+set}" = set; then :
7107 # Check whether --with-ust_include was given.
7108 if test "${with_ust_include+set}" = set; then :
7109 withval
=$with_ust_include;
7113 # Check whether --with-ust_lib was given.
7114 if test "${with_ust_lib+set}" = set; then :
7115 withval
=$with_ust_lib;
7129 ustlibs
="-L$with_ust/lib -lust"
7130 ustinc
="-I$with_ust/include "
7133 if test "x$with_ust_include" != x
; then
7134 ustinc
="-I$with_ust_include "
7136 if test "x$with_ust_lib" != x
; then
7137 ustlibs
="-L$with_ust_lib -lust"
7140 if test "x$with_ust" != "xno"; then
7141 saved_CFLAGS
="$CFLAGS"
7142 CFLAGS
="$CFLAGS $ustinc"
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
7144 $as_echo_n "checking for ust... " >&6; }
7145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h. */
7148 #define CONFIG_UST_GDB_INTEGRATION
7149 #include <ust/ust.h>
7159 if ac_fn_c_try_compile
"$LINENO"; then :
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7161 $as_echo "yes" >&6; };
7162 $as_echo "#define HAVE_UST 1" >>confdefs.h
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
7168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7169 CFLAGS
="$saved_CFLAGS"
7172 # Flags needed for UST
7177 # Check whether --enable-werror was given.
7178 if test "${enable_werror+set}" = set; then :
7179 enableval
=$enable_werror; case "${enableval}" in
7180 yes | y
) ERROR_ON_WARNING
="yes" ;;
7181 no | n
) ERROR_ON_WARNING
="no" ;;
7182 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
7187 # Enable -Werror by default when using gcc. Turn it off for releases.
7188 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
7189 ERROR_ON_WARNING
=yes
7193 if test "${ERROR_ON_WARNING}" = yes ; then
7194 WERROR_CFLAGS
="-Werror"
7197 # The options we'll try to enable.
7198 build_warnings
="-Wall -Wpointer-arith \
7199 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
7200 -Wno-switch -Wno-char-subscripts \
7201 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
7202 -Wno-sign-compare -Wno-error=maybe-uninitialized \
7203 -Wno-mismatched-tags \
7204 -Wno-error=deprecated-register \
7205 -Wsuggest-override \
7206 -Wimplicit-fallthrough=3 \
7210 -Wdeprecated-copy-dtor \
7215 # Enable -Wno-format by default when using gcc on mingw since many
7216 # GCC versions complain about %I64.
7217 build_warnings
="$build_warnings -Wno-format" ;;
7219 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
7220 # doesn't understand.
7221 build_warnings
="$build_warnings -Wno-unknown-pragmas"
7222 # Solaris 11 <unistd.h> marks vfork deprecated.
7223 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
7225 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
7226 # but there's a special case for this below.
7227 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
7230 # Check whether --enable-build-warnings was given.
7231 if test "${enable_build_warnings+set}" = set; then :
7232 enableval
=$enable_build_warnings; case "${enableval}" in
7234 no
) build_warnings
="-w";;
7235 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7236 build_warnings
="${build_warnings} ${t}";;
7237 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7238 build_warnings
="${t} ${build_warnings}";;
7239 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7241 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7242 echo "Setting compiler warning flags = $build_warnings" 6>&1
7245 # Check whether --enable-gdb-build-warnings was given.
7246 if test "${enable_gdb_build_warnings+set}" = set; then :
7247 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
7249 no
) build_warnings
="-w";;
7250 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7251 build_warnings
="${build_warnings} ${t}";;
7252 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7253 build_warnings
="${t} ${build_warnings}";;
7254 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7256 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7257 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7261 # The set of warnings supported by a C++ compiler is not the same as
7262 # of the C compiler.
7264 ac_cpp
='$CXXCPP $CPPFLAGS'
7265 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7266 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7271 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
7274 $as_echo_n "checking compiler warning flags... " >&6; }
7275 # Separate out the -Werror flag as some files just cannot be
7276 # compiled with it enabled.
7277 for w
in ${build_warnings}; do
7278 # GCC does not complain about -Wno-unknown-warning. Invert
7279 # and test -Wunknown-warning instead.
7282 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
7283 -Wformat-nonliteral)
7284 # gcc requires -Wformat before -Wformat-nonliteral
7285 # will work, so stick them together.
7294 -Werr*) WERROR_CFLAGS
=-Werror ;;
7296 # Check whether GCC accepts it.
7297 saved_CFLAGS
="$CFLAGS"
7298 CFLAGS
="$CFLAGS -Werror $wtest"
7299 saved_CXXFLAGS
="$CXXFLAGS"
7300 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
7301 if test "x$w" = "x-Wunused-variable"; then
7302 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
7303 # fixed in GCC 4.9. This test is derived from the gdb
7304 # source code that triggered this bug in GCC.
7305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7307 struct scoped_restore_base {};
7308 struct scoped_restore_tmpl : public scoped_restore_base {
7309 ~scoped_restore_tmpl() {}
7314 const scoped_restore_base &b = scoped_restore_tmpl();
7319 if ac_fn_cxx_try_compile
"$LINENO"; then :
7320 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7335 if ac_fn_cxx_try_compile
"$LINENO"; then :
7336 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7340 CFLAGS
="$saved_CFLAGS"
7341 CXXFLAGS
="$saved_CXXFLAGS"
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
7345 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
7351 ac_cpp='$CPP $CPPFLAGS'
7352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7360 for ac_func in dladdr
7362 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
7363 if test "x
$ac_cv_func_dladdr" = xyes; then :
7364 cat >>confdefs.h <<_ACEOF
7365 #define HAVE_DLADDR 1
7374 # Check for presence and size of long long.
7375 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
7376 if test "x
$ac_cv_type_long_long" = xyes; then :
7378 cat >>confdefs.h <<_ACEOF
7379 #define HAVE_LONG_LONG 1
7382 # The cast to long int works around a bug in the HP C Compiler
7383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7385 # This bug is HP SR number 8606223364.
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
7387 $as_echo_n "checking size of long long...
" >&6; }
7388 if ${ac_cv_sizeof_long_long+:} false; then :
7389 $as_echo_n "(cached
) " >&6
7391 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
7394 if test "$ac_cv_type_long_long" = yes; then
7395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7397 as_fn_error 77 "cannot compute sizeof (long long)
7398 See \`config.log' for more details
" "$LINENO" 5; }
7400 ac_cv_sizeof_long_long=0
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
7406 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7410 cat >>confdefs.h <<_ACEOF
7411 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7418 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
7419 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
7420 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7426 cat >>confdefs.h <<_ACEOF
7427 #define HAVE_DECL_BASENAME $ac_have_decl
7429 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
7430 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
7436 cat >>confdefs.h <<_ACEOF
7437 #define HAVE_DECL_FFS $ac_have_decl
7439 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
7440 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
7446 cat >>confdefs.h <<_ACEOF
7447 #define HAVE_DECL_ASPRINTF $ac_have_decl
7449 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
7450 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
7456 cat >>confdefs.h <<_ACEOF
7457 #define HAVE_DECL_VASPRINTF $ac_have_decl
7459 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
7460 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
7466 cat >>confdefs.h <<_ACEOF
7467 #define HAVE_DECL_SNPRINTF $ac_have_decl
7469 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
7470 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
7476 cat >>confdefs.h <<_ACEOF
7477 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7480 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
7481 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
7487 cat >>confdefs.h <<_ACEOF
7488 #define HAVE_DECL_STRTOL $ac_have_decl
7490 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
7491 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
7497 cat >>confdefs.h <<_ACEOF
7498 #define HAVE_DECL_STRTOUL $ac_have_decl
7500 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
7501 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
7507 cat >>confdefs.h <<_ACEOF
7508 #define HAVE_DECL_STRTOLL $ac_have_decl
7510 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
7511 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
7517 cat >>confdefs.h <<_ACEOF
7518 #define HAVE_DECL_STRTOULL $ac_have_decl
7521 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
7522 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
7528 cat >>confdefs.h <<_ACEOF
7529 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7534 ac_fn_c_check_decl "$LINENO" "strerror
" "ac_cv_have_decl_strerror
" "$ac_includes_default"
7535 if test "x
$ac_cv_have_decl_strerror" = xyes; then :
7541 cat >>confdefs.h <<_ACEOF
7542 #define HAVE_DECL_STRERROR $ac_have_decl
7544 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
7545 if test "x
$ac_cv_have_decl_perror" = xyes; then :
7551 cat >>confdefs.h <<_ACEOF
7552 #define HAVE_DECL_PERROR $ac_have_decl
7554 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
7555 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
7561 cat >>confdefs.h <<_ACEOF
7562 #define HAVE_DECL_VASPRINTF $ac_have_decl
7564 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
7565 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
7571 cat >>confdefs.h <<_ACEOF
7572 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7576 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
7577 if test "x
$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7579 cat >>confdefs.h <<_ACEOF
7580 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7585 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
7586 if test "x
$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7588 cat >>confdefs.h <<_ACEOF
7589 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7596 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
7597 # Older amd64 Linux's don't have the fs_base and gs_base members of
7598 # `struct user_regs_struct'.
7599 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "fs_base
" "ac_cv_member_struct_user_regs_struct_fs_base
" "#include <sys/types.h>
7600 #include <sys/user.h>
7602 if test "x
$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
7604 cat >>confdefs.h <<_ACEOF
7605 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
7610 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "gs_base
" "ac_cv_member_struct_user_regs_struct_gs_base
" "#include <sys/types.h>
7611 #include <sys/user.h>
7613 if test "x
$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
7615 cat >>confdefs.h <<_ACEOF
7616 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
7624 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
7625 #include <sys/socket.h>
7628 if test "x
$ac_cv_type_socklen_t" = xyes; then :
7630 cat >>confdefs.h <<_ACEOF
7631 #define HAVE_SOCKLEN_T 1
7640 # Starting with NDK version 9, <elf.h> actually includes definitions
7641 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
7642 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
7643 # leading to conflicts with the defintions from <linux/elf.h>.
7644 # This makes it impossible for us to include both <elf.h> and
7645 # <linux/elf.h>, which means that, in practice, we do not have
7646 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
7647 # Therefore, do not try to auto-detect availability, as it would
7648 # get it wrong on this platform.
7651 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
7654 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
7656 cat >>confdefs.h <<_ACEOF
7657 #define HAVE_ELF32_AUXV_T 1
7662 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
7665 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
7667 cat >>confdefs.h <<_ACEOF
7668 #define HAVE_ELF64_AUXV_T 1
7678 # Check whether --with-pkgversion was given.
7679 if test "${with_pkgversion+set}" = set; then :
7680 withval=$with_pkgversion; case "$withval" in
7681 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
7683 *) PKGVERSION="($withval) " ;;
7694 # Check whether --with-bugurl was given.
7695 if test "${with_bugurl+set}" = set; then :
7696 withval=$with_bugurl; case "$withval" in
7697 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
7700 *) BUGURL="$withval"
7704 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
7714 REPORT_BUGS_TO="<$BUGURL>"
7715 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7722 cat >>confdefs.h <<_ACEOF
7723 #define PKGVERSION "$PKGVERSION"
7727 cat >>confdefs.h <<_ACEOF
7728 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7732 # Check for various supplementary target information (beyond the
7733 # triplet) which might affect the choices in configure.srv.
7735 i[34567]86-*-linux*)
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
7737 $as_echo_n "checking
if building
for x86-64...
" >&6; }
7738 if ${gdb_cv_i386_is_x86_64+:} false; then :
7739 $as_echo_n "(cached
) " >&6
7741 save_CPPFLAGS="$CPPFLAGS"
7742 CPPFLAGS="$CPPFLAGS $CFLAGS"
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7751 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7752 $EGREP "got it
" >/dev/null 2>&1; then :
7753 gdb_cv_i386_is_x86_64=yes
7755 gdb_cv_i386_is_x86_64=no
7759 CPPFLAGS="$save_CPPFLAGS"
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
7762 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
7767 $as_echo_n "checking
if building
for x32...
" >&6; }
7768 if ${gdb_cv_x86_is_x32+:} false; then :
7769 $as_echo_n "(cached
) " >&6
7771 save_CPPFLAGS="$CPPFLAGS"
7772 CPPFLAGS="$CPPFLAGS $CFLAGS"
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7776 #if __x86_64__ && __ILP32__
7781 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7782 $EGREP "got it
" >/dev/null 2>&1; then :
7783 gdb_cv_x86_is_x32=yes
7785 gdb_cv_x86_is_x32=no
7789 CPPFLAGS="$save_CPPFLAGS"
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
7792 $as_echo "$gdb_cv_x86_is_x32" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
7797 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
7798 if ${gdb_cv_m68k_is_coldfire+:} false; then :
7799 $as_echo_n "(cached
) " >&6
7801 save_CPPFLAGS="$CPPFLAGS"
7802 CPPFLAGS="$CPPFLAGS $CFLAGS"
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7806 #ifdef __mcoldfire__
7811 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7812 $EGREP "got it
" >/dev/null 2>&1; then :
7813 gdb_cv_m68k_is_coldfire=yes
7815 gdb_cv_m68k_is_coldfire=no
7819 CPPFLAGS="$save_CPPFLAGS"
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
7822 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
7826 . ${srcdir}/configure.srv
7828 # Add in the common host objects.
7829 . ${srcdir}/../gdbsupport/common.host
7830 srv_host_obs="$common_host_obs"
7832 if test "${srv_mingwce}" = "yes"; then
7834 elif test "${srv_mingw}" = "yes"; then
7835 LIBS="$LIBS -lws2_32"
7836 elif test "${srv_qnx}" = "yes"; then
7837 LIBS="$LIBS -lsocket"
7838 elif test "${srv_lynxos}" = "yes"; then
7839 LIBS="$LIBS -lnetinet"
7842 if test "${srv_mingw}" = "yes"; then
7844 $as_echo "#define USE_WIN32API 1" >>confdefs.h
7848 if test "${srv_linux_usrregs}" = "yes"; then
7850 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
7854 if test "${srv_linux_regsets}" = "yes"; then
7856 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
7860 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
7861 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
7862 $as_echo_n "(cached) " >&6
7864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 #include <sys/ptrace.h>
7875 if ac_fn_c_try_compile
"$LINENO"; then :
7876 gdbsrv_cv_have_ptrace_getregs
=yes
7878 gdbsrv_cv_have_ptrace_getregs
=no
7880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
7884 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
7885 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
7887 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
7892 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
7893 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
7894 $as_echo_n "(cached) " >&6
7896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 #include <sys/ptrace.h>
7907 if ac_fn_c_try_compile
"$LINENO"; then :
7908 gdbsrv_cv_have_ptrace_getfpxregs
=yes
7910 gdbsrv_cv_have_ptrace_getfpxregs
=no
7912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
7916 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
7917 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
7919 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
7924 if test "${srv_linux_btrace}" = "yes"; then
7926 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
7930 if test "$ac_cv_header_sys_procfs_h" = yes; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
7932 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
7933 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; 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_lwpid_t
=yes
7954 bfd_cv_have_sys_procfs_type_lwpid_t
=no
7957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7960 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
7962 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
7966 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
7969 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
7970 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; 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_psaddr_t
=yes
7991 bfd_cv_have_sys_procfs_type_psaddr_t
=no
7994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7997 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7999 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
8003 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
8006 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
8007 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; 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_prgregset_t
=yes
8028 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8034 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8036 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
8040 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
8043 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
8044 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
8045 $as_echo_n "(cached) " >&6
8047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8051 /* Needed for new procfs interface on sparc-solaris. */
8052 #define _STRUCTURED_PROC 1
8053 #include <sys/procfs.h>
8062 if ac_fn_c_try_compile
"$LINENO"; then :
8063 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8065 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8071 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8073 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
8077 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
8080 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
8081 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
8082 $as_echo_n "(cached) " >&6
8084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8088 /* Needed for new procfs interface on sparc-solaris. */
8089 #define _STRUCTURED_PROC 1
8090 #include <sys/procfs.h>
8099 if ac_fn_c_try_compile
"$LINENO"; then :
8100 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
8102 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
8105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8108 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
8110 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8114 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
8118 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
8120 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
8121 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
8122 $as_echo_n "(cached) " >&6
8124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8127 #include <thread_db.h>
8136 if ac_fn_c_try_compile
"$LINENO"; then :
8137 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
8139 gdbserver_cv_have_thread_db_type_lwpid_t
=no
8142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8145 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
8147 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
8151 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
8155 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
8157 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
8158 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
8159 $as_echo_n "(cached) " >&6
8161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8164 #include <thread_db.h>
8173 if ac_fn_c_try_compile
"$LINENO"; then :
8174 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
8176 gdbserver_cv_have_thread_db_type_psaddr_t
=no
8179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8182 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
8184 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
8188 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8194 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8195 if ${ac_cv_lib_dl_dlopen+:} false
; then :
8196 $as_echo_n "(cached) " >&6
8198 ac_check_lib_save_LIBS
=$LIBS
8200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8203 /* Override any GCC internal prototype to avoid an error.
8204 Use char because int might match the return type of a GCC
8205 builtin and then its argument prototype would still apply. */
8218 if ac_fn_c_try_link
"$LINENO"; then :
8219 ac_cv_lib_dl_dlopen
=yes
8221 ac_cv_lib_dl_dlopen
=no
8223 rm -f core conftest.err conftest.
$ac_objext \
8224 conftest
$ac_exeext conftest.
$ac_ext
8225 LIBS
=$ac_check_lib_save_LIBS
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8228 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8229 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
8230 cat >>confdefs.h
<<_ACEOF
8231 #define HAVE_LIBDL 1
8240 srv_thread_depfiles
=
8243 if test "$srv_linux_thread_db" = "yes"; then
8244 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
8247 $as_echo_n "checking for the dynamic export flag... " >&6; }
8248 old_LDFLAGS
="$LDFLAGS"
8249 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
8251 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
8252 LDFLAGS
="$LDFLAGS $RDYNAMIC"
8253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8264 if ac_fn_c_try_link
"$LINENO"; then :
8265 found
="-Wl,--dynamic-list"
8266 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
8268 RDYNAMIC
="-rdynamic"
8269 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
8270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8281 if ac_fn_c_try_link
"$LINENO"; then :
8287 rm -f core conftest.err conftest.
$ac_objext \
8288 conftest
$ac_exeext conftest.
$ac_ext
8290 rm -f core conftest.err conftest.
$ac_objext \
8291 conftest
$ac_exeext conftest.
$ac_ext
8293 LDFLAGS
="$old_LDFLAGS"
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8295 $as_echo "$found" >&6; }
8297 srv_libs
="-lthread_db"
8300 srv_thread_depfiles
="thread-db.o proc-service.o"
8302 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
8305 $as_echo_n "checking for TD_VERSION... " >&6; }
8306 if ${gdbsrv_cv_have_td_version+:} false
; then :
8307 $as_echo_n "(cached) " >&6
8309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8310 /* end confdefs.h. */
8311 #include <thread_db.h>
8320 if ac_fn_c_try_compile
"$LINENO"; then :
8321 gdbsrv_cv_have_td_version
=yes
8323 gdbsrv_cv_have_td_version
=no
8325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
8328 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
8329 if test $gdbsrv_cv_have_td_version = yes; then
8331 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
8337 # Check whether --with-libthread-db was given.
8338 if test "${with_libthread_db+set}" = set; then :
8339 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
8340 srv_libs
="$srv_libthread_db_path"
8345 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
8347 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
8351 if test "$srv_xmlfiles" != ""; then
8352 srv_xmlbuiltin
="xml-builtin.o"
8354 $as_echo "#define USE_XML 1" >>confdefs.h
8357 tmp_xmlfiles
=$srv_xmlfiles
8359 for f
in $tmp_xmlfiles; do
8360 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
8364 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs $srv_selftest_objs"
8365 GDBSERVER_LIBS
="$srv_libs"
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
8368 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
8369 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
8370 $as_echo_n "(cached) " >&6
8373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8379 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
8384 if ac_fn_c_try_link
"$LINENO"; then :
8385 gdbsrv_cv_have_sync_builtins
=yes
8387 gdbsrv_cv_have_sync_builtins
=no
8389 rm -f core conftest.err conftest.
$ac_objext \
8390 conftest
$ac_exeext conftest.
$ac_ext
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
8393 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
8394 if test $gdbsrv_cv_have_sync_builtins = yes; then
8396 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
8400 saved_cflags
="$CFLAGS"
8401 CFLAGS
="$CFLAGS -fvisibility=hidden"
8402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h. */
8413 if ac_fn_c_try_compile
"$LINENO"; then :
8414 gdbsrv_cv_have_visibility_hidden
=yes
8416 gdbsrv_cv_have_visibility_hidden
=no
8418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8419 CFLAGS
="$saved_cflags"
8421 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8423 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
8429 cat >>confdefs.h
<<_ACEOF
8430 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8434 if test "$cross_compiling" = yes; then :
8435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <sys/personality.h>
8442 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8443 # define ADDR_NO_RANDOMIZE 0x0040000
8445 /* Test the flag could be set and stays set. */
8446 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8447 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8453 if ac_fn_c_try_link
"$LINENO"; then :
8454 gdbsrv_cv_have_personality
=true
8456 gdbsrv_cv_have_personality
=false
8458 rm -f core conftest.err conftest.
$ac_objext \
8459 conftest
$ac_exeext conftest.
$ac_ext
8461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8463 #include <sys/personality.h>
8468 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8469 # define ADDR_NO_RANDOMIZE 0x0040000
8471 /* Test the flag could be set and stays set. */
8472 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8473 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8479 if ac_fn_c_try_run
"$LINENO"; then :
8480 gdbsrv_cv_have_personality
=true
8482 gdbsrv_cv_have_personality
=false
8484 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8485 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8488 if $gdbsrv_cv_have_personality
8491 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8499 # check whether to enable the inprocess agent
8500 if test "$ipa_obj" != "" \
8501 -a "$gdbsrv_cv_have_sync_builtins" = yes \
8502 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
8508 # Check whether --enable-inprocess-agent was given.
8509 if test "${enable_inprocess_agent+set}" = set; then :
8510 enableval
=$enable_inprocess_agent; case "$enableval" in
8511 yes) want_ipa
=true
;;
8512 no
) want_ipa
=false
;;
8513 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
8522 IPA_DEPFILES
="$ipa_obj"
8523 extra_libraries
="$extra_libraries libinproctrace.so"
8525 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
8536 GNULIB
=build-gnulib-gdbserver
/import
8539 if test x
"$STDINT_H" != x
; then
8540 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
8544 ac_config_files
="$ac_config_files Makefile"
8547 cat >confcache
<<\_ACEOF
8548 # This file is a shell script that caches the results of configure
8549 # tests run on this system so they can be shared between configure
8550 # scripts and configure runs, see configure's option --config-cache.
8551 # It is not useful on other systems. If it contains results you don't
8552 # want to keep, you may remove or edit it.
8554 # config.status only pays attention to the cache file if you give it
8555 # the --recheck option to rerun configure.
8557 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8558 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8563 # The following way of writing the cache mishandles newlines in values,
8564 # but we know of no workaround that is simple, portable, and efficient.
8565 # So, we kill variables containing newlines.
8566 # Ultrix sh set writes to stderr and can't be redirected directly,
8567 # and sets the high bit in the cache file unless we assign to the vars.
8569 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8570 eval ac_val
=\$
$ac_var
8574 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8575 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8578 _ | IFS | as_nl
) ;; #(
8579 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
8580 *) { eval $ac_var=; unset $ac_var;} ;;
8586 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8587 *${as_nl}ac_space
=\
*)
8588 # `set' does not quote correctly, so add quotes: double-quote
8589 # substitution turns \\\\ into \\, and sed turns \\ into \.
8592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8595 # `set' quotes correctly as required by POSIX, so do not add quotes.
8596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8605 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8609 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8610 if test -w "$cache_file"; then
8611 if test "x$cache_file" != "x/dev/null"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8613 $as_echo "$as_me: updating cache $cache_file" >&6;}
8614 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
8615 cat confcache
>"$cache_file"
8617 case $cache_file in #(
8619 mv -f confcache
"$cache_file"$$
&&
8620 mv -f "$cache_file"$$
"$cache_file" ;; #(
8622 mv -f confcache
"$cache_file" ;;
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8628 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8633 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8634 # Let make expand exec_prefix.
8635 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8637 DEFS
=-DHAVE_CONFIG_H
8642 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8643 # 1. Remove the extension, and $U if already installed.
8644 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8645 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
8646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8647 # will be set to the directory where LIBOBJS objects are built.
8648 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8649 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8653 LTLIBOBJS
=$ac_ltlibobjs
8656 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8657 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
8658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8661 : "${CONFIG_STATUS=./config.status}"
8663 ac_clean_files_save
=$ac_clean_files
8664 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8666 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8668 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8670 # Generated by $as_me.
8671 # Run this file to recreate the current configuration.
8672 # Compiler output produced by configure, useful for debugging
8673 # configure, is in config.log if it exists.
8679 SHELL=\${CONFIG_SHELL-$SHELL}
8682 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8683 ## -------------------- ##
8684 ## M4sh Initialization. ##
8685 ## -------------------- ##
8687 # Be more Bourne compatible
8688 DUALCASE
=1; export DUALCASE
# for MKS sh
8689 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
8692 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8693 # is contrary to our usage. Disable this feature.
8694 alias -g '${1+"$@"}'='"$@"'
8695 setopt NO_GLOB_SUBST
8697 case `(set -o) 2>/dev/null` in #(
8709 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8710 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8711 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8712 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8713 # Prefer a ksh shell builtin over an external printf program on Solaris,
8714 # but without wasting forks for bash or zsh.
8715 if test -z "$BASH_VERSION$ZSH_VERSION" \
8716 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8717 as_echo='print
-r --'
8718 as_echo_n='print
-rn --'
8719 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8720 as_echo='printf %s
\n'
8721 as_echo_n='printf %s
'
8723 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8724 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8725 as_echo_n='/usr
/ucb
/echo -n'
8727 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8728 as_echo_n_body='eval
8732 expr "X$arg" : "X\\(.*\\)$as_nl";
8733 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8735 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8737 export as_echo_n_body
8738 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8741 as_echo='sh
-c $as_echo_body as_echo
'
8744 # The user is always right.
8745 if test "${PATH_SEPARATOR+set}" != set; then
8747 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8748 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8755 # We need space, tab and new line, in precisely that order. Quoting is
8756 # there to prevent editors from complaining about space-tab.
8757 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8758 # splitting by setting IFS to empty value.)
8761 # Find who we are. Look in the path if we contain no directory separator.
8764 *[\\/]* ) as_myself=$0 ;;
8765 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 test -z "$as_dir" && as_dir=.
8770 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8776 # We did not find ourselves, most probably we were run as `sh COMMAND'
8777 # in which case we are not to be found in the path.
8778 if test "x$as_myself" = x
; then
8781 if test ! -f "$as_myself"; then
8782 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8786 # Unset variables that we do not need and which cause bugs (e.g. in
8787 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8788 # suppresses any "Segmentation fault" message there. '((' could
8789 # trigger a bug in pdksh 5.2.14.
8790 for as_var
in BASH_ENV ENV MAIL MAILPATH
8791 do eval test x\
${$as_var+set} = xset \
8792 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8805 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8808 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8809 # ----------------------------------------
8810 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8811 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8812 # script with STATUS, using 1 if that was 0.
8815 as_status
=$1; test $as_status -eq 0 && as_status
=1
8817 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8818 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8820 $as_echo "$as_me: error: $2" >&2
8821 as_fn_exit
$as_status
8825 # as_fn_set_status STATUS
8826 # -----------------------
8827 # Set $? to STATUS, without forking.
8831 } # as_fn_set_status
8835 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8845 # Portably unset VAR.
8848 { eval $1=; unset $1;}
8850 as_unset
=as_fn_unset
8851 # as_fn_append VAR VALUE
8852 # ----------------------
8853 # Append the text in VALUE to the end of the definition contained in VAR. Take
8854 # advantage of any shell optimizations that allow amortized linear growth over
8855 # repeated appends, instead of the typical quadratic growth present in naive
8857 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8858 eval 'as_fn_append ()
8869 # as_fn_arith ARG...
8870 # ------------------
8871 # Perform arithmetic evaluation on the ARGs, and store the result in the
8872 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8873 # must be portable across $(()) and expr.
8874 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8875 eval 'as_fn_arith ()
8882 as_val
=`expr "$@" || test $? -eq 1`
8887 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8888 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8894 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8895 as_basename
=basename
8900 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8906 as_me
=`$as_basename -- "$0" ||
8907 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8908 X"$0" : 'X\(//\)$' \| \
8909 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8911 sed '/^.*\/\([^/][^/]*\)\/*$/{
8925 # Avoid depending upon Character Ranges.
8926 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8927 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8928 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8929 as_cr_digits
='0123456789'
8930 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8932 ECHO_C
= ECHO_N
= ECHO_T
=
8933 case `echo -n x` in #(((((
8935 case `echo 'xy\c'` in
8936 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8938 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8945 rm -f conf$$ conf$$.exe conf$$.
file
8946 if test -d conf$$.dir
; then
8947 rm -f conf$$.dir
/conf$$.
file
8950 mkdir conf$$.dir
2>/dev
/null
8952 if (echo >conf$$.
file) 2>/dev
/null
; then
8953 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8955 # ... but there are two gotchas:
8956 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8957 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8958 # In both cases, we have to default to `cp -pR'.
8959 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8961 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8969 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8970 rmdir conf$$.dir
2>/dev
/null
8975 # Create "$as_dir" as a directory, including parents if necessary.
8980 -*) as_dir
=.
/$as_dir;;
8982 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8986 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8987 *) as_qdir
=$as_dir;;
8989 as_dirs
="'$as_qdir' $as_dirs"
8990 as_dir
=`$as_dirname -- "$as_dir" ||
8991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8992 X"$as_dir" : 'X\(//\)[^/]' \| \
8993 X"$as_dir" : 'X\(//\)$' \| \
8994 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8995 $as_echo X"$as_dir" |
8996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9013 test -d "$as_dir" && break
9015 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9016 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9020 if mkdir
-p .
2>/dev
/null
; then
9021 as_mkdir_p
='mkdir -p "$as_dir"'
9023 test -d .
/-p && rmdir .
/-p
9028 # as_fn_executable_p FILE
9029 # -----------------------
9030 # Test if FILE is an executable regular file.
9031 as_fn_executable_p
()
9033 test -f "$1" && test -x "$1"
9034 } # as_fn_executable_p
9036 as_executable_p
=as_fn_executable_p
9038 # Sed expression to map a string onto a valid CPP name.
9039 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9041 # Sed expression to map a string onto a valid variable name.
9042 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9046 ## ----------------------------------- ##
9047 ## Main body of $CONFIG_STATUS script. ##
9048 ## ----------------------------------- ##
9050 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9053 # Save the log message, to keep $0 and so on meaningful, and to
9054 # report actual input values of CONFIG_FILES etc. instead of their
9055 # values after options handling.
9057 This file was extended by $as_me, which was
9058 generated by GNU Autoconf 2.69. Invocation command line was
9060 CONFIG_FILES = $CONFIG_FILES
9061 CONFIG_HEADERS = $CONFIG_HEADERS
9062 CONFIG_LINKS = $CONFIG_LINKS
9063 CONFIG_COMMANDS = $CONFIG_COMMANDS
9066 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9071 case $ac_config_files in *"
9072 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9075 case $ac_config_headers in *"
9076 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9081 # Files that config.status was made for.
9082 config_files="$ac_config_files"
9083 config_headers="$ac_config_headers"
9084 config_commands="$ac_config_commands"
9088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9090 \`$as_me' instantiates files and other configuration actions
9091 from templates according to the current configuration. Unless the files
9092 and actions are specified as TAGs, all are instantiated by default.
9094 Usage: $0 [OPTION]... [TAG]...
9096 -h, --help print this help, then exit
9097 -V, --version print version number and configuration settings, then exit
9098 --config print configuration, then exit
9099 -q, --quiet, --silent
9100 do not print progress messages
9101 -d, --debug don't remove temporary files
9102 --recheck update $as_me by reconfiguring in the same conditions
9103 --file=FILE[:TEMPLATE]
9104 instantiate the configuration file FILE
9105 --header=FILE[:TEMPLATE]
9106 instantiate the configuration header FILE
9108 Configuration files:
9111 Configuration headers:
9114 Configuration commands:
9117 Report bugs to the package provider."
9120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9121 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9124 configured by $0, generated by GNU Autoconf 2.69,
9125 with options \\"\$ac_cs_config\\"
9127 Copyright (C) 2012 Free Software Foundation, Inc.
9128 This config.status script is free software; the Free Software Foundation
9129 gives unlimited permission to copy, distribute and modify it."
9134 test -n "\$AWK" || AWK=awk
9137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9138 # The default lists apply if the user does not specify any file.
9144 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9145 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9149 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9161 # Handling of the options.
9162 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9164 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9165 $as_echo "$ac_cs_version"; exit ;;
9166 --config |
--confi |
--conf |
--con |
--co |
--c )
9167 $as_echo "$ac_cs_config"; exit ;;
9168 --debug |
--debu |
--deb |
--de |
--d |
-d )
9170 --file |
--fil |
--fi |
--f )
9173 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9174 '') as_fn_error $?
"missing file argument" ;;
9176 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9177 ac_need_defaults
=false
;;
9178 --header |
--heade |
--head |
--hea )
9181 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9183 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9184 ac_need_defaults
=false
;;
9186 # Conflict between --help and --header
9187 as_fn_error $?
"ambiguous option: \`$1'
9188 Try \`$0 --help' for more information.";;
9189 --help |
--hel |
-h )
9190 $as_echo "$ac_cs_usage"; exit ;;
9191 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9192 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9196 -*) as_fn_error $?
"unrecognized option: \`$1'
9197 Try \`$0 --help' for more information." ;;
9199 *) as_fn_append ac_config_targets
" $1"
9200 ac_need_defaults
=false
;;
9206 ac_configure_extra_args
=
9208 if $ac_cs_silent; then
9210 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9215 if \$ac_cs_recheck; then
9216 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9218 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9219 CONFIG_SHELL='$SHELL'
9225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9229 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9230 ## Running $as_me. ##
9236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9240 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
9241 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
9245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9247 # Handling of arguments.
9248 for ac_config_target
in $ac_config_targets
9250 case $ac_config_target in
9251 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
9252 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
9253 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
9254 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9256 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9261 # If the user did not use the arguments to specify the items to instantiate,
9262 # then the envvar interface is used. Set only those that are not.
9263 # We use the long form for the default assignment because of an extremely
9264 # bizarre bug on SunOS 4.1.3.
9265 if $ac_need_defaults; then
9266 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9267 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9268 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9271 # Have a temporary directory for convenience. Make it in the build tree
9272 # simply because there is no reason against having it here, and in addition,
9273 # creating and moving files from /tmp can sometimes cause problems.
9274 # Hook for its removal unless debugging.
9275 # Note that there is a small window in which the directory will not be cleaned:
9276 # after its creation but before its name has been assigned to `$tmp'.
9280 trap 'exit_status=$?
9282 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9284 trap 'as_fn_exit 1' 1 2 13 15
9286 # Create a (secure) tmp directory for tmp files.
9289 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9293 tmp
=.
/conf$$
-$RANDOM
9294 (umask 077 && mkdir
"$tmp")
9295 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
9298 # Set up the scripts for CONFIG_FILES section.
9299 # No need to generate them if there are no CONFIG_FILES.
9300 # This happens for instance with `./config.status config.h'.
9301 if test -n "$CONFIG_FILES"; then
9304 ac_cr
=`echo X | tr X '\015'`
9305 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9306 # But we know of no other shell where ac_cr would be empty at this
9307 # point, so we can use a bashism as a fallback.
9308 if test "x$ac_cr" = x
; then
9309 eval ac_cr
=\$
\'\\r
\'
9311 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9312 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9318 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9323 echo "cat >conf$$subs.awk <<_ACEOF" &&
9324 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9327 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9328 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9330 for ac_last_try in false false false false false :; do
9331 . ./conf$$subs.sh ||
9332 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9334 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9335 if test $ac_delim_n = $ac_delim_num; then
9337 elif $ac_last_try; then
9338 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9340 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9346 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
9350 s/^/S["/; s
/!.
*/"]=/
9360 s/\(.\{148\}\)..*/\1/
9362 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9367 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9374 s/\(.\{148\}\)..*/\1/
9376 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9380 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9385 ' <conf$$subs.awk | sed '
9390 ' >>$CONFIG_STATUS || ac_write_fail=1
9391 rm -f conf$$subs.awk
9392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9394 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
9395 for (key in S) S_is_set[key] = 1
9401 nfields = split(line, field, "@
")
9403 len = length(field[1])
9404 for (i = 2; i < nfields; i++) {
9406 keylen = length(key)
9407 if (S_is_set[key]) {
9409 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9410 len += length(value) + length(field[++i])
9421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9422 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9423 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9426 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
9427 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
9430 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9431 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
9432 # trailing colons and then remove the whole line if VPATH becomes empty
9433 # (actually we leave an empty line to preserve line numbers).
9434 if test "x
$srcdir" = x.; then
9435 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9454 fi # test -n "$CONFIG_FILES"
9456 # Set up the scripts for CONFIG_HEADERS section.
9457 # No need to generate them if there are no CONFIG_HEADERS.
9458 # This happens for instance with `./config.status Makefile'.
9459 if test -n "$CONFIG_HEADERS"; then
9460 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
9464 # Transform confdefs.h into an awk script `defines.awk', embedded as
9465 # here-document in config.status, that substitutes the proper values into
9466 # config.h.in to produce config.h.
9468 # Create a delimiter string that does not exist in confdefs.h, to ease
9469 # handling of long lines.
9471 for ac_last_try in false false :; do
9472 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
9473 if test -z "$ac_tt"; then
9475 elif $ac_last_try; then
9476 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
9478 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9482 # For the awk script, D is an array of macro values keyed by name,
9483 # likewise P contains macro parameters if any. Preserve backslash
9484 # newline sequences.
9486 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9488 s/.\{148\}/&'"$ac_delim"'/g
9491 s/^[ ]*#[ ]*define[ ][ ]*/ /
9498 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
9500 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
9504 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
9505 D["\
1"]=" \
3\\\\\\n
"\\/p
9507 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
9512 s/.\{148\}/&'"$ac_delim"'/g
9517 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
9520 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
9522 ' <confdefs.h | sed '
9523 s/'"$ac_delim"'/"\\\
9524 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9527 for (key in D) D_is_set[key] = 1
9530 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9532 split(line, arg, " ")
9533 if (arg[1] == "#") {
9537 defundef
= substr
(arg
[1], 2)
9540 split(mac1
, mac2
, "(") #)
9542 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
9543 if (D_is_set
[macro
]) {
9544 # Preserve the white space surrounding the "#".
9545 print prefix
"define", macro P
[macro
] D
[macro
]
9548 # Replace #undef with comments. This is necessary, for example,
9549 # in the case of _POSIX_SOURCE, which is predefined and required
9550 # on some systems where configure will not decide to define it.
9551 if (defundef
== "undef") {
9552 print
"/*", prefix defundef
, macro
, "*/"
9560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9561 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
9562 fi # test -n "$CONFIG_HEADERS"
9565 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9570 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9572 case $ac_mode$ac_tag in
9574 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
9575 :[FH
]-) ac_tag
=-:-;;
9576 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9593 -) ac_f
="$ac_tmp/stdin";;
9594 *) # Look for the file first in the build tree, then in the source tree
9595 # (if the path is not absolute). The absolute path cannot be DOS-style,
9596 # because $ac_f cannot contain `:'.
9600 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9602 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9604 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9605 as_fn_append ac_file_inputs
" '$ac_f'"
9608 # Let's still pretend it is `configure' which instantiates (i.e., don't
9609 # use $as_me), people would be surprised to read:
9610 # /* config.h. Generated by config.status. */
9611 configure_input
='Generated from '`
9612 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9614 if test x
"$ac_file" != x-
; then
9615 configure_input
="$ac_file. $configure_input"
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9617 $as_echo "$as_me: creating $ac_file" >&6;}
9619 # Neutralize special characters interpreted by sed in replacement strings.
9620 case $configure_input in #(
9621 *\
&* |
*\|
* |
*\\* )
9622 ac_sed_conf_input
=`$as_echo "$configure_input" |
9623 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9624 *) ac_sed_conf_input
=$configure_input;;
9628 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
9629 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
9634 ac_dir
=`$as_dirname -- "$ac_file" ||
9635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9636 X"$ac_file" : 'X\(//\)[^/]' \| \
9637 X"$ac_file" : 'X\(//\)$' \| \
9638 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9639 $as_echo X"$ac_file" |
9640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9657 as_dir
="$ac_dir"; as_fn_mkdir_p
9661 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9663 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9664 # A ".." for each directory in $ac_dir_suffix.
9665 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9666 case $ac_top_builddir_sub in
9667 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9668 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9671 ac_abs_top_builddir
=$ac_pwd
9672 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9673 # for backward compatibility:
9674 ac_top_builddir
=$ac_top_build_prefix
9677 .
) # We are building in place.
9679 ac_top_srcdir
=$ac_top_builddir_sub
9680 ac_abs_top_srcdir
=$ac_pwd ;;
9681 [\\/]* | ?
:[\\/]* ) # Absolute name.
9682 ac_srcdir
=$srcdir$ac_dir_suffix;
9683 ac_top_srcdir
=$srcdir
9684 ac_abs_top_srcdir
=$srcdir ;;
9686 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9687 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9688 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9690 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9700 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9701 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9706 # If the template does not know about datarootdir, expand it.
9707 # FIXME: This hack should be removed a few years after 2.60.
9708 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9719 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9720 *datarootdir
*) ac_datarootdir_seen
=yes;;
9721 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9723 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9726 ac_datarootdir_hack='
9727 s&@datadir@&$datadir&g
9728 s&@docdir@&$docdir&g
9729 s&@infodir@&$infodir&g
9730 s&@localedir@&$localedir&g
9731 s&@mandir@&$mandir&g
9732 s&\\\${datarootdir}&$datarootdir&g' ;;
9736 # Neutralize VPATH when `$srcdir' = `.'.
9737 # Shell code in configure.ac might set extrasub.
9738 # FIXME: do we really want to maintain this feature?
9739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9740 ac_sed_extra="$ac_vpsub
9743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9745 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9746 s|@configure_input@|
$ac_sed_conf_input|
;t t
9747 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9748 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9749 s
&@srcdir@
&$ac_srcdir&;t t
9750 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9751 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9752 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9753 s
&@builddir@
&$ac_builddir&;t t
9754 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9755 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9756 s
&@INSTALL@
&$ac_INSTALL&;t t
9757 $ac_datarootdir_hack
9759 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
9760 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9762 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9763 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
9764 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9765 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9767 which seems to be undefined. Please make sure it is defined" >&5
9768 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9769 which seems to be undefined. Please make sure it is defined" >&2;}
9771 rm -f "$ac_tmp/stdin"
9773 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9774 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9776 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9782 if test x"$ac_file" != x-; then
9784 $as_echo "/* $configure_input */" \
9785 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9786 } >"$ac_tmp/config.h" \
9787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9788 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9790 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9793 mv "$ac_tmp/config.h" "$ac_file" \
9794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9797 $as_echo "/* $configure_input */" \
9798 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9799 || as_fn_error $? "could not create -" "$LINENO" 5
9803 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9804 $as_echo "$as_me: executing $ac_file commands" >&6;}
9809 case $ac_file$ac_mode in
9810 "config.h":H) echo > stamp-h ;;
9811 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9813 for subdir in ${CONFIG_SRC_SUBDIR}
9815 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
9824 ac_clean_files=$ac_clean_files_save
9826 test $ac_write_fail = 0 ||
9827 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9830 # configure is writing to config.log, and then calls config.status.
9831 # config.status does its own redirection, appending to config.log.
9832 # Unfortunately, on DOS this fails, as config.log is still kept open
9833 # by configure, so config.status won't be able to
write to it
; its
9834 # output is simply discarded. So we exec the FD to /dev/null,
9835 # effectively closing config.log, so it can be properly (re)opened and
9836 # appended to by config.status. When coming back to configure, we
9837 # need to make the FD available again.
9838 if test "$no_create" != yes; then
9840 ac_config_status_args
=
9841 test "$silent" = yes &&
9842 ac_config_status_args
="$ac_config_status_args --quiet"
9844 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9846 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9847 # would make configure fail if this is the last instruction.
9848 $ac_cs_success || as_fn_exit
1
9850 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9852 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}