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-libmcheck Try linking with
-lmcheck if available
1370 --enable-werror treat compile warnings as errors
1371 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1372 --enable-gdb-build-warnings
1373 enable GDB specific build-time compiler warnings
if
1375 --enable-inprocess-agent
1379 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1380 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1381 --with-ust=PATH Specify prefix directory
for the installed UST package
1382 Equivalent to
--with-ust-include=PATH
/include
1383 plus
--with-ust-lib=PATH
/lib
1384 --with-ust-include=PATH Specify directory
for installed UST include files
1385 --with-ust-lib=PATH Specify the directory
for the installed UST library
1386 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1387 --with-bugurl=URL Direct users to URL to report a bug
1388 --with-libthread-db=PATH
1389 use given libthread_db directly
1391 Some influential environment variables
:
1392 CC C compiler
command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1395 nonstandard directory
<lib dir
>
1396 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1397 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1398 you have headers
in a nonstandard directory
<include dir
>
1399 CXX C
++ compiler
command
1400 CXXFLAGS C
++ compiler flags
1403 Use these variables to override the choices made by
`configure' or to help
1404 it to find libraries and programs with nonstandard names/locations.
1406 Report bugs to the package provider.
1411 if test "$ac_init_help" = "recursive"; then
1412 # If there are subdirs, report their specific --help.
1413 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414 test -d "$ac_dir" ||
1415 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1423 # A ".." for each directory in $ac_dir_suffix.
1424 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1425 case $ac_top_builddir_sub in
1426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430 ac_abs_top_builddir=$ac_pwd
1431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir=$ac_top_build_prefix
1436 .) # We are building in place.
1438 ac_top_srcdir=$ac_top_builddir_sub
1439 ac_abs_top_srcdir=$ac_pwd ;;
1440 [\\/]* | ?:[\\/]* ) # Absolute name.
1441 ac_srcdir=$srcdir$ac_dir_suffix;
1442 ac_top_srcdir=$srcdir
1443 ac_abs_top_srcdir=$srcdir ;;
1445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446 ac_top_srcdir=$ac_top_build_prefix$srcdir
1447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451 cd "$ac_dir" || { ac_status=$?; continue; }
1452 # Check for guested configure.
1453 if test -f "$ac_srcdir/configure.gnu"; then
1455 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456 elif test -f "$ac_srcdir/configure"; then
1458 $SHELL "$ac_srcdir/configure" --help=recursive
1460 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1462 cd "$ac_pwd" || { ac_status=$?; break; }
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1470 generated by GNU Autoconf 2.69
1472 Copyright (C) 2012 Free Software Foundation, Inc.
1473 This configure script is free software; the Free Software Foundation
1474 gives unlimited permission to copy, distribute and modify it.
1479 ## ------------------------ ##
1480 ## Autoconf initialization. ##
1481 ## ------------------------ ##
1483 # ac_fn_c_try_compile LINENO
1484 # --------------------------
1485 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1486 ac_fn_c_try_compile ()
1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489 rm -f conftest.$ac_objext
1490 if { { ac_try="$ac_compile"
1492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1493 *) ac_try_echo
=$ac_try;;
1495 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_compile") 2>conftest.err
1499 if test -s conftest.err
; then
1500 grep -v '^ *+' conftest.err
>conftest.er1
1501 cat conftest.er1
>&5
1502 mv -f conftest.er1 conftest.err
1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; } && {
1506 test -z "$ac_c_werror_flag" ||
1507 test ! -s conftest.err
1508 } && test -s conftest.
$ac_objext; then :
1511 $as_echo "$as_me: failed program was:" >&5
1512 sed 's/^/| /' conftest.
$ac_ext >&5
1516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1517 as_fn_set_status
$ac_retval
1519 } # ac_fn_c_try_compile
1521 # ac_fn_cxx_try_compile LINENO
1522 # ----------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_cxx_try_compile
()
1526 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1527 rm -f conftest.
$ac_objext
1528 if { { ac_try
="$ac_compile"
1530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_cxx_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1557 } # ac_fn_cxx_try_compile
1559 # ac_fn_c_try_cpp LINENO
1560 # ----------------------
1561 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1568 *) ac_try_echo
=$ac_try;;
1570 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574 if test -s conftest.err
; then
1575 grep -v '^ *+' conftest.err
>conftest.er1
1576 cat conftest.er1
>&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } > conftest.i
&& {
1581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.
$ac_ext >&5
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status
$ac_retval
1596 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1599 # the include files in INCLUDES and setting the cache variable VAR
1601 ac_fn_c_check_header_mongrel
()
1603 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1604 if eval \
${$3+:} false
; then :
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 $as_echo_n "checking for $2... " >&6; }
1607 if eval \
${$3+:} false
; then :
1608 $as_echo_n "(cached) " >&6
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 $as_echo "$ac_res" >&6; }
1614 # Is the header compilable?
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1616 $as_echo_n "checking $2 usability... " >&6; }
1617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1622 if ac_fn_c_try_compile
"$LINENO"; then :
1623 ac_header_compiler
=yes
1625 ac_header_compiler
=no
1627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1629 $as_echo "$ac_header_compiler" >&6; }
1631 # Is the header present?
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1633 $as_echo_n "checking $2 presence... " >&6; }
1634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1638 if ac_fn_c_try_cpp
"$LINENO"; then :
1639 ac_header_preproc
=yes
1641 ac_header_preproc
=no
1643 rm -f conftest.err conftest.i conftest.
$ac_ext
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1645 $as_echo "$ac_header_preproc" >&6; }
1647 # So? What about this header?
1648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1651 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1657 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1659 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1661 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1663 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1665 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \
${$3+:} false
; then :
1671 $as_echo_n "(cached) " >&6
1673 eval "$3=\$ac_header_compiler"
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 } # ac_fn_c_check_header_mongrel
1683 # ac_fn_c_try_run LINENO
1684 # ----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686 # that executables *can* be run.
1689 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1690 if { { ac_try
="$ac_link"
1692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>&5
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701 { { case "(($ac_try" in
1702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1703 *) ac_try_echo
=$ac_try;;
1705 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_try") 2>&5
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; }; }; then :
1713 $as_echo "$as_me: program exited with status $ac_status" >&5
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.
$ac_ext >&5
1717 ac_retval
=$ac_status
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status
$ac_retval
1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists and can be compiled using the include files in
1728 # INCLUDES, setting the cache variable VAR accordingly.
1729 ac_fn_c_check_header_compile
()
1731 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \
${$3+:} false
; then :
1735 $as_echo_n "(cached) " >&6
1737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1742 if ac_fn_c_try_compile
"$LINENO"; then :
1747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 } # ac_fn_c_check_header_compile
1756 # ac_fn_c_try_link LINENO
1757 # -----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded.
1761 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1762 rm -f conftest.
$ac_objext conftest
$ac_exeext
1763 if { { ac_try
="$ac_link"
1765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 test -x conftest$ac_exeext
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1800 } # ac_fn_c_try_link
1802 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1803 # -------------------------------------------
1804 # Tests whether TYPE exists after having included INCLUDES, setting cache
1805 # variable VAR accordingly.
1806 ac_fn_c_check_type ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812 $as_echo_n "(cached) " >&6
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1840 if ac_fn_c_try_compile "$LINENO"; then :
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 } # ac_fn_c_check_type
1856 # ac_fn_c_check_func LINENO FUNC VAR
1857 # ----------------------------------
1858 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1859 ac_fn_c_check_func ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if eval \${$3+:} false; then :
1865 $as_echo_n "(cached) " >&6
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1871 #define $2 innocuous_$2
1873 /* System header to define __stub macros and hopefully few prototypes,
1874 which can conflict with char $2 (); below.
1875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1876 <limits.h> exists even on freestanding compilers. */
1879 # include <limits.h>
1881 # include <assert.h>
1886 /* Override any GCC internal prototype to avoid an error.
1887 Use char because int might match the return type of a GCC
1888 builtin and then its argument prototype would still apply. */
1893 /* The GNU C library defines this for functions which it implements
1894 to always fail with ENOSYS. Some functions are actually named
1895 something starting with __ and the normal name is an alias. */
1896 #if defined __stub_$2 || defined __stub___$2
1908 if ac_fn_c_try_link "$LINENO"; then :
1913 rm -f core conftest.err conftest.$ac_objext \
1914 conftest$ac_exeext conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 } # ac_fn_c_check_func
1923 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1924 # ---------------------------------------------
1925 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1927 ac_fn_c_check_decl ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1931 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1933 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1934 if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1943 #ifndef $as_decl_name
1945 (void) $as_decl_use;
1947 (void) $as_decl_name;
1955 if ac_fn_c_try_compile "$LINENO"; then :
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 $as_echo "$ac_res" >&6; }
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 } # ac_fn_c_check_decl
1969 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1970 # --------------------------------------------
1971 # Tries to find the compile-time value of EXPR in a program that includes
1972 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1974 ac_fn_c_compute_int ()
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 if test "$cross_compiling" = yes; then
1978 # Depending upon the size, compute the lo and hi bounds.
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1985 static int test_array [1 - 2 * !(($2) >= 0)];
1987 return test_array [0];
1993 if ac_fn_c_try_compile "$LINENO"; then :
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2002 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2004 return test_array [0];
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_hi=$ac_mid; break
2013 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2014 if test $ac_lo -le $ac_mid; then
2018 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2029 static int test_array [1 - 2 * !(($2) < 0)];
2031 return test_array [0];
2037 if ac_fn_c_try_compile "$LINENO"; then :
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2046 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2048 return test_array [0];
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_lo=$ac_mid; break
2057 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2058 if test $ac_mid -le $ac_hi; then
2062 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 # Binary search between lo and hi bounds.
2073 while test "x$ac_lo" != "x$ac_hi"; do
2074 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2083 return test_array [0];
2089 if ac_fn_c_try_compile "$LINENO"; then :
2092 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2104 static long int longval () { return $2; }
2105 static unsigned long int ulongval () { return $2; }
2112 FILE *f = fopen ("conftest.val", "w");
2117 long int i = longval ();
2120 fprintf (f, "%ld", i);
2124 unsigned long int i = ulongval ();
2127 fprintf (f, "%lu", i);
2129 /* Do not output a trailing newline, as this causes \r\n confusion
2130 on some platforms. */
2131 return ferror (f) || fclose (f) != 0;
2137 if ac_fn_c_try_run "$LINENO"; then :
2138 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2143 conftest.$ac_objext conftest.beam conftest.$ac_ext
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 as_fn_set_status $ac_retval
2150 } # ac_fn_c_compute_int
2152 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2153 # ----------------------------------------------------
2154 # Tries to find if the field MEMBER exists in type AGGR, after including
2155 # INCLUDES, setting cache variable VAR accordingly.
2156 ac_fn_c_check_member ()
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2160 $as_echo_n "checking for $2.$3... " >&6; }
2161 if eval \${$4+:} false; then :
2162 $as_echo_n "(cached) " >&6
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2177 if ac_fn_c_try_compile "$LINENO"; then :
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2187 if (sizeof ac_aggr.$3)
2193 if ac_fn_c_try_compile "$LINENO"; then :
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 } # ac_fn_c_check_member
2208 cat >config.log <<_ACEOF
2209 This file contains any messages produced by compilers while
2210 running configure, to aid debugging if configure makes a mistake.
2212 It was created by $as_me, which was
2213 generated by GNU Autoconf 2.69. Invocation command line was
2225 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2226 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2227 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2228 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2229 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2231 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2232 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2234 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2235 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2236 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2237 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2238 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2239 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2240 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 $as_echo "PATH: $as_dir"
2265 # Keep a trace of the command line.
2266 # Strip out --no-create and --no-recursion so they do not pile up.
2267 # Strip out --silent because we don't want to record it for future runs.
2268 # Also quote any args containing shell meta-characters.
2269 # Make two passes to allow for proper duplicate-argument suppression.
2273 ac_must_keep_next=false
2279 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2281 | -silent | --silent | --silen | --sile | --sil)
2284 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2287 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2289 as_fn_append ac_configure_args1 " '$ac_arg'"
2290 if test $ac_must_keep_next = true; then
2291 ac_must_keep_next=false # Got value, back to normal.
2294 *=* | --config-cache | -C | -disable-* | --disable-* \
2295 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2296 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2297 | -with-* | --with-* | -without-* | --without-* | --x)
2298 case "$ac_configure_args0 " in
2299 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2302 -* ) ac_must_keep_next=true ;;
2305 as_fn_append ac_configure_args " '$ac_arg'"
2310 { ac_configure_args0=; unset ac_configure_args0;}
2311 { ac_configure_args1=; unset ac_configure_args1;}
2313 # When interrupted or exit'd, cleanup temporary files, and complete
2314 # config.log. We remove comments because anyway the quotes in there
2315 # would cause problems or look ugly.
2316 # WARNING: Use '\'' to represent an apostrophe within the trap.
2317 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2318 trap 'exit_status=$?
2319 # Save into config.log some information that might help in debugging.
2323 $as_echo "## ---------------- ##
2324 ## Cache variables. ##
2325 ## ---------------- ##"
2327 # The following way of writing the cache mishandles newlines in values,
2329 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2330 eval ac_val=\$$ac_var
2334 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2335 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2338 _ | IFS | as_nl) ;; #(
2339 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2340 *) { eval $ac_var=; unset $ac_var;} ;;
2345 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2346 *${as_nl}ac_space=\ *)
2348 "s/'\''/'\''\\\\'\'''\''/g;
2349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2359 $as_echo "## ----------------- ##
2360 ## Output variables. ##
2361 ## ----------------- ##"
2363 for ac_var in $ac_subst_vars
2365 eval ac_val=\$$ac_var
2367 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2369 $as_echo "$ac_var='\''$ac_val'\''"
2373 if test -n "$ac_subst_files"; then
2374 $as_echo "## ------------------- ##
2375 ## File substitutions. ##
2376 ## ------------------- ##"
2378 for ac_var in $ac_subst_files
2380 eval ac_val=\$$ac_var
2382 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2384 $as_echo "$ac_var='\''$ac_val'\''"
2389 if test -s confdefs.h; then
2390 $as_echo "## ----------- ##
2397 test "$ac_signal" != 0 &&
2398 $as_echo "$as_me: caught signal $ac_signal"
2399 $as_echo "$as_me: exit $exit_status"
2401 rm -f core *.core core.conftest.* &&
2402 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2405 for ac_signal in 1 2 13 15; do
2406 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2411 rm -f -r conftest* confdefs.h
2413 $as_echo "/* confdefs.h */" > confdefs.h
2415 # Predefined preprocessor variables.
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_NAME "$PACKAGE_NAME"
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_STRING "$PACKAGE_STRING"
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_URL "$PACKAGE_URL"
2442 # Let the site file select an alternate cache file if it wants to.
2443 # Prefer an explicitly selected file to automatically selected ones.
2446 if test -n "$CONFIG_SITE"; then
2447 # We do not want a PATH search for config.site.
2448 case $CONFIG_SITE in #((
2449 -*) ac_site_file1=./$CONFIG_SITE;;
2450 */*) ac_site_file1=$CONFIG_SITE;;
2451 *) ac_site_file1=./$CONFIG_SITE;;
2453 elif test "x$prefix" != xNONE; then
2454 ac_site_file1=$prefix/share/config.site
2455 ac_site_file2=$prefix/etc/config.site
2457 ac_site_file1=$ac_default_prefix/share/config.site
2458 ac_site_file2=$ac_default_prefix/etc/config.site
2460 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2462 test "x$ac_site_file" = xNONE && continue
2463 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2465 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2466 sed 's/^/| /' "$ac_site_file" >&5
2468 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 as_fn_error $? "failed to load site
script $ac_site_file
2471 See \
`config.log' for more details" "$LINENO" 5; }
2475 if test -r "$cache_file"; then
2476 # Some versions of bash will fail to source /dev/null (special files
2477 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2478 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2480 $as_echo "$as_me: loading cache $cache_file" >&6;}
2482 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2483 *) . "./$cache_file";;
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2488 $as_echo "$as_me: creating cache $cache_file" >&6;}
2492 # Check that the precious variables saved in the cache have kept the same
2494 ac_cache_corrupted=false
2495 for ac_var in $ac_precious_vars; do
2496 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2497 eval ac_new_set=\$ac_env_${ac_var}_set
2498 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2499 eval ac_new_val=\$ac_env_${ac_var}_value
2500 case $ac_old_set,$ac_new_set in
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2503 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2504 ac_cache_corrupted=: ;;
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2507 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2508 ac_cache_corrupted=: ;;
2511 if test "x$ac_old_val" != "x$ac_new_val"; then
2512 # differences in whitespace do not lead to failure.
2513 ac_old_val_w=`echo x
$ac_old_val`
2514 ac_new_val_w=`echo x
$ac_new_val`
2515 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2517 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2518 ac_cache_corrupted=:
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2521 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2522 eval $ac_var=\$ac_old_val
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2525 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2527 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2530 # Pass precious variables to config.status.
2531 if test "$ac_new_set" = set; then
2533 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2534 *) ac_arg=$ac_var=$ac_new_val ;;
2536 case " $ac_configure_args " in
2537 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2538 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2542 if $ac_cache_corrupted; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2546 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2547 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2549 ## -------------------- ##
2550 ## Main body of script. ##
2551 ## -------------------- ##
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563 ac_config_headers="$ac_config_headers config.h:config.in"
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2568 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2569 # Check whether --enable-maintainer-mode was given.
2570 if test "${enable_maintainer_mode+set}" = set; then :
2571 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2573 USE_MAINTAINER_MODE=no
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2577 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2578 if test $USE_MAINTAINER_MODE = yes; then
2579 MAINTAINER_MODE_TRUE=
2580 MAINTAINER_MODE_FALSE='#'
2582 MAINTAINER_MODE_TRUE='#'
2583 MAINTAINER_MODE_FALSE=
2586 MAINT=$MAINTAINER_MODE_TRUE
2591 ac_cpp='$CPP $CPPFLAGS'
2592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595 if test -n "$ac_tool_prefix"; then
2596 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2597 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if ${ac_cv_prog_CC+:} false; then :
2601 $as_echo_n "(cached) " >&6
2603 if test -n "$CC"; then
2604 ac_cv_prog_CC="$CC" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 if test -n "$CC"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2626 $as_echo "$CC" >&6; }
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2634 if test -z "$ac_cv_prog_CC"; then
2636 # Extract the first word of "gcc", so it can be a program name with args.
2637 set dummy gcc; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2641 $as_echo_n "(cached) " >&6
2643 if test -n "$ac_ct_CC"; then
2644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_ac_ct_CC="gcc"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2664 if test -n "$ac_ct_CC"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2666 $as_echo "$ac_ct_CC" >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2672 if test "x$ac_ct_CC" = x; then
2675 case $cross_compiling:$ac_tool_warned in
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2679 ac_tool_warned=yes ;;
2687 if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2690 set dummy ${ac_tool_prefix}cc; ac_word=$2
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if ${ac_cv_prog_CC+:} false; then :
2694 $as_echo_n "(cached) " >&6
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2706 ac_cv_prog_CC="${ac_tool_prefix}cc"
2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 if test -n "$CC"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2719 $as_echo "$CC" >&6; }
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2728 if test -z "$CC"; then
2729 # Extract the first word of "cc", so it can be a program name with args.
2730 set dummy cc; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_prog_CC+:} false; then :
2734 $as_echo_n "(cached) " >&6
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2748 ac_prog_rejected=yes
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 if test $ac_prog_rejected = yes; then
2760 # We found a bogon in the path, so make sure we never use it.
2761 set dummy $ac_cv_prog_CC
2763 if test $# != 0; then
2764 # We chose a different compiler from the bogus one.
2765 # However, it has the same basename, so the bogon will be chosen
2766 # first if we set CC to just the basename; use the full file name.
2768 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2774 if test -n "$CC"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2776 $as_echo "$CC" >&6; }
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2784 if test -z "$CC"; then
2785 if test -n "$ac_tool_prefix"; then
2786 for ac_prog in cl.exe
2788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_CC+:} false; then :
2793 $as_echo_n "(cached) " >&6
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2825 test -n "$CC" && break
2828 if test -z "$CC"; then
2830 for ac_prog in cl.exe
2832 # Extract the first word of "$ac_prog", so it can be a program name with args.
2833 set dummy $ac_prog; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2837 $as_echo_n "(cached) " >&6
2839 if test -n "$ac_ct_CC"; then
2840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849 ac_cv_prog_ac_ct_CC="$ac_prog"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860 if test -n "$ac_ct_CC"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2862 $as_echo "$ac_ct_CC" >&6; }
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2869 test -n "$ac_ct_CC" && break
2872 if test "x$ac_ct_CC" = x; then
2875 case $cross_compiling:$ac_tool_warned in
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2879 ac_tool_warned=yes ;;
2888 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2890 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2891 See \
`config.log' for more details" "$LINENO" 5; }
2893 # Provide some information about the compiler.
2894 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2897 for ac_option in --version -v -V -qversion; do
2898 { { ac_try="$ac_compiler $ac_option >&5"
2900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2901 *) ac_try_echo
=$ac_try;;
2903 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2904 $as_echo "$ac_try_echo"; } >&5
2905 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2907 if test -s conftest.err
; then
2909 ... rest of stderr output deleted ...
2910 10q' conftest.err
>conftest.er1
2911 cat conftest.er1
>&5
2913 rm -f conftest.er1 conftest.err
2914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2915 test $ac_status = 0; }
2918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2919 /* end confdefs.h. */
2929 ac_clean_files_save
=$ac_clean_files
2930 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2931 # Try to create an executable without -o first, disregard a.out.
2932 # It will help us diagnose broken compilers, and finding out an intuition
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2935 $as_echo_n "checking whether the C compiler works... " >&6; }
2936 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2938 # The possible output files:
2939 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2942 for ac_file
in $ac_files
2945 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2946 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2951 if { { ac_try
="$ac_link_default"
2953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957 $as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_link_default") 2>&5
2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961 test $ac_status = 0; }; then :
2962 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2963 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2964 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2965 # so that the user can short-circuit this test for compilers unknown to
2967 for ac_file in $ac_files ''
2969 test -f "$ac_file" || continue
2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2974 # We found the default executable, but exeext='' is most
2978 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2980 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2982 # We set ac_cv_exeext here because the later test for it is not
2983 # safe: cross compilers may not add the suffix if given an `-o'
2984 # argument, so we may need to know it at that point already.
2985 # Even if this section looks crufty: it has the advantage of
2992 test "$ac_cv_exeext" = no && ac_cv_exeext=
2997 if test -z "$ac_file"; then :
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 $as_echo "$as_me: failed program was:" >&5
3001 sed 's
/^
/|
/' conftest.$ac_ext >&5
3003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3004 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3005 as_fn_error 77 "C compiler cannot create executables
3006 See \`config.log
' for more details" "$LINENO" 5; }
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3009 $as_echo "yes" >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3012 $as_echo_n "checking for C compiler default output file name... " >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3014 $as_echo "$ac_file" >&6; }
3015 ac_exeext=$ac_cv_exeext
3017 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3018 ac_clean_files=$ac_clean_files_save
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3020 $as_echo_n "checking for suffix of executables... " >&6; }
3021 if { { ac_try="$ac_link"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027 $as_echo "$ac_try_echo"; } >&5
3028 (eval "$ac_link") 2>&5
3030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3031 test $ac_status = 0; }; then :
3032 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3033 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3034 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3036 for ac_file
in conftest.exe conftest conftest.
*; do
3037 test -f "$ac_file" ||
continue
3039 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3040 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3049 See \`config.log' for more details" "$LINENO" 5; }
3051 rm -f conftest conftest
$ac_cv_exeext
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3053 $as_echo "$ac_cv_exeext" >&6; }
3055 rm -f conftest.
$ac_ext
3056 EXEEXT
=$ac_cv_exeext
3058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3064 FILE *f = fopen ("conftest.out", "w");
3065 return ferror (f) || fclose (f) != 0;
3071 ac_clean_files
="$ac_clean_files conftest.out"
3072 # Check that the compiler produces executables we can run. If not, either
3073 # the compiler is broken, or we cross compile.
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3075 $as_echo_n "checking whether we are cross compiling... " >&6; }
3076 if test "$cross_compiling" != yes; then
3077 { { ac_try
="$ac_link"
3079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 $as_echo "$ac_try_echo"; } >&5
3084 (eval "$ac_link") 2>&5
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }
3088 if { ac_try='./conftest$ac_cv_exeext'
3089 { { case "(($ac_try" in
3090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3091 *) ac_try_echo
=$ac_try;;
3093 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_try") 2>&5
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }; }; then
3101 if test "$cross_compiling" = maybe
; then
3104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error $?
"cannot run C compiled programs.
3107 If you meant to cross compile, use \`--host'.
3108 See \`config.log' for more details" "$LINENO" 5; }
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3113 $as_echo "$cross_compiling" >&6; }
3115 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3116 ac_clean_files
=$ac_clean_files_save
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3118 $as_echo_n "checking for suffix of object files... " >&6; }
3119 if ${ac_cv_objext+:} false
; then :
3120 $as_echo_n "(cached) " >&6
3122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3123 /* end confdefs.h. */
3133 rm -f conftest.o conftest.obj
3134 if { { ac_try
="$ac_compile"
3136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3140 $as_echo "$ac_try_echo"; } >&5
3141 (eval "$ac_compile") 2>&5
3143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3144 test $ac_status = 0; }; then :
3145 for ac_file in conftest.o conftest.obj conftest.*; do
3146 test -f "$ac_file" || continue;
3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3149 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3160 See \
`config.log' for more details" "$LINENO" 5; }
3162 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3165 $as_echo "$ac_cv_objext" >&6; }
3166 OBJEXT=$ac_cv_objext
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3169 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3170 if ${ac_cv_c_compiler_gnu+:} false; then :
3171 $as_echo_n "(cached) " >&6
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3187 if ac_fn_c_try_compile "$LINENO"; then :
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3197 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3198 if test $ac_compiler_gnu = yes; then
3203 ac_test_CFLAGS=${CFLAGS+set}
3204 ac_save_CFLAGS=$CFLAGS
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3206 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3207 if ${ac_cv_prog_cc_g+:} false; then :
3208 $as_echo_n "(cached) " >&6
3210 ac_save_c_werror_flag=$ac_c_werror_flag
3211 ac_c_werror_flag=yes
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3225 if ac_fn_c_try_compile "$LINENO"; then :
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3240 if ac_fn_c_try_compile "$LINENO"; then :
3243 ac_c_werror_flag=$ac_save_c_werror_flag
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3256 if ac_fn_c_try_compile "$LINENO"; then :
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 ac_c_werror_flag=$ac_save_c_werror_flag
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3267 $as_echo "$ac_cv_prog_cc_g" >&6; }
3268 if test "$ac_test_CFLAGS" = set; then
3269 CFLAGS=$ac_save_CFLAGS
3270 elif test $ac_cv_prog_cc_g = yes; then
3271 if test "$GCC" = yes; then
3277 if test "$GCC" = yes; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3284 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3285 if ${ac_cv_prog_cc_c89+:} false; then :
3286 $as_echo_n "(cached) " >&6
3288 ac_cv_prog_cc_c89=no
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3296 struct buf { int x; };
3297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298 static char *e (p, i)
3304 static char *f (char * (*g) (char **, int), char **p, ...)
3309 s = g (p, va_arg (v,int));
3314 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3315 function prototypes and stuff, but not '\xHH' hex character constants.
3316 These don't provoke an error unfortunately, instead are silently treated
3317 as 'x'. The following induces an error, until -std is added to get
3318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3319 array size at least. It's necessary to write '\x00'==0 to get something
3320 that's true only with -std. */
3321 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3323 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3324 inside strings and character constants. */
3326 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3328 int test (int i, double x);
3329 struct s1 {int (*f) (int a);};
3330 struct s2 {int (*f) (double a);};
3331 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3337 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3342 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3343 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3345 CC="$ac_save_CC $ac_arg"
3346 if ac_fn_c_try_compile "$LINENO"; then :
3347 ac_cv_prog_cc_c89=$ac_arg
3349 rm -f core conftest.err conftest.$ac_objext
3350 test "x$ac_cv_prog_cc_c89" != "xno" && break
3352 rm -f conftest.$ac_ext
3357 case "x$ac_cv_prog_cc_c89" in
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3360 $as_echo "none needed" >&6; } ;;
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3363 $as_echo "unsupported" >&6; } ;;
3365 CC="$CC $ac_cv_prog_cc_c89"
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3367 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3369 if test "x$ac_cv_prog_cc_c89" != xno; then :
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 ac_cpp='$CXXCPP $CPPFLAGS'
3381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3384 if test -z "$CXX"; then
3385 if test -n "$CCC"; then
3388 if test -n "$ac_tool_prefix"; then
3389 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CXX+:} false; then :
3396 $as_echo_n "(cached) " >&6
3398 if test -n "$CXX"; then
3399 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 if test -n "$CXX"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3421 $as_echo "$CXX" >&6; }
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3428 test -n "$CXX" && break
3431 if test -z "$CXX"; then
3433 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3435 # Extract the first word of "$ac_prog", so it can be a program name with args.
3436 set dummy $ac_prog; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3440 $as_echo_n "(cached) " >&6
3442 if test -n "$ac_ct_CXX"; then
3443 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 ac_cv_prog_ac_ct_CXX="$ac_prog"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3463 if test -n "$ac_ct_CXX"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3465 $as_echo "$ac_ct_CXX" >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3472 test -n "$ac_ct_CXX" && break
3475 if test "x$ac_ct_CXX" = x; then
3478 case $cross_compiling:$ac_tool_warned in
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3482 ac_tool_warned=yes ;;
3490 # Provide some information about the compiler.
3491 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3494 for ac_option in --version -v -V -qversion; do
3495 { { ac_try="$ac_compiler $ac_option >&5"
3497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3498 *) ac_try_echo
=$ac_try;;
3500 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3504 if test -s conftest.err
; then
3506 ... rest of stderr output deleted ...
3507 10q' conftest.err
>conftest.er1
3508 cat conftest.er1
>&5
3510 rm -f conftest.er1 conftest.err
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3516 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3517 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3518 $as_echo_n "(cached) " >&6
3520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3534 if ac_fn_cxx_try_compile
"$LINENO"; then :
3539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3540 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3544 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3545 if test $ac_compiler_gnu = yes; then
3550 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3551 ac_save_CXXFLAGS
=$CXXFLAGS
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3553 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3554 if ${ac_cv_prog_cxx_g+:} false
; then :
3555 $as_echo_n "(cached) " >&6
3557 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3558 ac_cxx_werror_flag
=yes
3561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3572 if ac_fn_cxx_try_compile
"$LINENO"; then :
3573 ac_cv_prog_cxx_g
=yes
3576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3587 if ac_fn_cxx_try_compile
"$LINENO"; then :
3590 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3603 if ac_fn_cxx_try_compile
"$LINENO"; then :
3604 ac_cv_prog_cxx_g
=yes
3606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3611 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3614 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3615 if test "$ac_test_CXXFLAGS" = set; then
3616 CXXFLAGS
=$ac_save_CXXFLAGS
3617 elif test $ac_cv_prog_cxx_g = yes; then
3618 if test "$GXX" = yes; then
3624 if test "$GXX" = yes; then
3631 ac_cpp
='$CPP $CPPFLAGS'
3632 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3638 ac_cpp
='$CPP $CPPFLAGS'
3639 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3643 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3644 # On Suns, sometimes $CPP names a directory.
3645 if test -n "$CPP" && test -d "$CPP"; then
3648 if test -z "$CPP"; then
3649 if ${ac_cv_prog_CPP+:} false
; then :
3650 $as_echo_n "(cached) " >&6
3652 # Double quotes because CPP needs to be expanded
3653 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3656 for ac_c_preproc_warn_flag
in '' yes
3658 # Use a header file that comes with gcc, so configuring glibc
3659 # with a fresh cross-compiler works.
3660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3661 # <limits.h> exists even on freestanding compilers.
3662 # On the NeXT, cc -E runs the code through the compiler's parser,
3663 # not just through cpp. "Syntax error" is here to catch this case.
3664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3667 # include <limits.h>
3669 # include <assert.h>
3673 if ac_fn_c_try_cpp
"$LINENO"; then :
3676 # Broken: fails on valid input.
3679 rm -f conftest.err conftest.i conftest.
$ac_ext
3681 # OK, works on sane cases. Now check whether nonexistent headers
3682 # can be detected and how.
3683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685 #include <ac_nonexistent.h>
3687 if ac_fn_c_try_cpp
"$LINENO"; then :
3688 # Broken: success on invalid input.
3691 # Passes both tests.
3695 rm -f conftest.err conftest.i conftest.
$ac_ext
3698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3699 rm -f conftest.i conftest.err conftest.
$ac_ext
3700 if $ac_preproc_ok; then :
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3713 $as_echo "$CPP" >&6; }
3715 for ac_c_preproc_warn_flag
in '' yes
3717 # Use a header file that comes with gcc, so configuring glibc
3718 # with a fresh cross-compiler works.
3719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3720 # <limits.h> exists even on freestanding compilers.
3721 # On the NeXT, cc -E runs the code through the compiler's parser,
3722 # not just through cpp. "Syntax error" is here to catch this case.
3723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3726 # include <limits.h>
3728 # include <assert.h>
3732 if ac_fn_c_try_cpp
"$LINENO"; then :
3735 # Broken: fails on valid input.
3738 rm -f conftest.err conftest.i conftest.
$ac_ext
3740 # OK, works on sane cases. Now check whether nonexistent headers
3741 # can be detected and how.
3742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744 #include <ac_nonexistent.h>
3746 if ac_fn_c_try_cpp
"$LINENO"; then :
3747 # Broken: success on invalid input.
3750 # Passes both tests.
3754 rm -f conftest.err conftest.i conftest.
$ac_ext
3757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3758 rm -f conftest.i conftest.err conftest.
$ac_ext
3759 if $ac_preproc_ok; then :
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3765 See \`config.log' for more details" "$LINENO" 5; }
3769 ac_cpp
='$CPP $CPPFLAGS'
3770 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3776 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3777 if ${ac_cv_path_GREP+:} false
; then :
3778 $as_echo_n "(cached) " >&6
3780 if test -z "$GREP"; then
3781 ac_path_GREP_found
=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3784 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3787 test -z "$as_dir" && as_dir
=.
3788 for ac_prog
in grep ggrep
; do
3789 for ac_exec_ext
in '' $ac_executable_extensions; do
3790 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3791 as_fn_executable_p
"$ac_path_GREP" ||
continue
3792 # Check for GNU ac_path_GREP and select it if it is found.
3793 # Check for GNU $ac_path_GREP
3794 case `"$ac_path_GREP" --version 2>&1` in
3796 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3799 $as_echo_n 0123456789 >"conftest.in"
3802 cat "conftest.in" "conftest.in" >"conftest.tmp"
3803 mv "conftest.tmp" "conftest.in"
3804 cp "conftest.in" "conftest.nl"
3805 $as_echo 'GREP' >> "conftest.nl"
3806 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3807 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3808 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3809 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3810 # Best one so far, save it but keep looking for a better one
3811 ac_cv_path_GREP
="$ac_path_GREP"
3812 ac_path_GREP_max
=$ac_count
3814 # 10*(2^10) chars as input seems more than enough
3815 test $ac_count -gt 10 && break
3817 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3820 $ac_path_GREP_found && break 3
3825 if test -z "$ac_cv_path_GREP"; then
3826 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3829 ac_cv_path_GREP
=$GREP
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3834 $as_echo "$ac_cv_path_GREP" >&6; }
3835 GREP
="$ac_cv_path_GREP"
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3839 $as_echo_n "checking for egrep... " >&6; }
3840 if ${ac_cv_path_EGREP+:} false
; then :
3841 $as_echo_n "(cached) " >&6
3843 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3844 then ac_cv_path_EGREP
="$GREP -E"
3846 if test -z "$EGREP"; then
3847 ac_path_EGREP_found
=false
3848 # Loop through the user's path and test for each of PROGNAME-LIST
3849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3850 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3853 test -z "$as_dir" && as_dir
=.
3854 for ac_prog
in egrep; do
3855 for ac_exec_ext
in '' $ac_executable_extensions; do
3856 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3857 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3858 # Check for GNU ac_path_EGREP and select it if it is found.
3859 # Check for GNU $ac_path_EGREP
3860 case `"$ac_path_EGREP" --version 2>&1` in
3862 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3865 $as_echo_n 0123456789 >"conftest.in"
3868 cat "conftest.in" "conftest.in" >"conftest.tmp"
3869 mv "conftest.tmp" "conftest.in"
3870 cp "conftest.in" "conftest.nl"
3871 $as_echo 'EGREP' >> "conftest.nl"
3872 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3873 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3874 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3875 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3876 # Best one so far, save it but keep looking for a better one
3877 ac_cv_path_EGREP
="$ac_path_EGREP"
3878 ac_path_EGREP_max
=$ac_count
3880 # 10*(2^10) chars as input seems more than enough
3881 test $ac_count -gt 10 && break
3883 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3886 $ac_path_EGREP_found && break 3
3891 if test -z "$ac_cv_path_EGREP"; then
3892 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3895 ac_cv_path_EGREP
=$EGREP
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3901 $as_echo "$ac_cv_path_EGREP" >&6; }
3902 EGREP
="$ac_cv_path_EGREP"
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3906 $as_echo_n "checking for ANSI C header files... " >&6; }
3907 if ${ac_cv_header_stdc+:} false
; then :
3908 $as_echo_n "(cached) " >&6
3910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3925 if ac_fn_c_try_compile
"$LINENO"; then :
3926 ac_cv_header_stdc
=yes
3928 ac_cv_header_stdc
=no
3930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3932 if test $ac_cv_header_stdc = yes; then
3933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940 $EGREP "memchr" >/dev
/null
2>&1; then :
3943 ac_cv_header_stdc
=no
3949 if test $ac_cv_header_stdc = yes; then
3950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 $EGREP "free" >/dev
/null
2>&1; then :
3960 ac_cv_header_stdc
=no
3966 if test $ac_cv_header_stdc = yes; then
3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3968 if test "$cross_compiling" = yes; then :
3971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3975 #if ((' ' & 0x0FF) == 0x020)
3976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3979 # define ISLOWER(c) \
3980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
3983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
3993 || toupper (i) != TOUPPER (i))
3998 if ac_fn_c_try_run
"$LINENO"; then :
4001 ac_cv_header_stdc
=no
4003 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4004 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4010 $as_echo "$ac_cv_header_stdc" >&6; }
4011 if test $ac_cv_header_stdc = yes; then
4013 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4017 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4018 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4019 inttypes.h stdint.h unistd.h
4021 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4022 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4024 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4025 cat >>confdefs.h
<<_ACEOF
4026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4035 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4036 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4043 if test "$MINIX" = yes; then
4045 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4048 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4051 $as_echo "#define _MINIX 1" >>confdefs.h
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4057 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4058 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4059 $as_echo_n "(cached) " >&6
4061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4064 # define __EXTENSIONS__ 1
4065 $ac_includes_default
4074 if ac_fn_c_try_compile
"$LINENO"; then :
4075 ac_cv_safe_to_define___extensions__
=yes
4077 ac_cv_safe_to_define___extensions__
=no
4079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4082 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4083 test $ac_cv_safe_to_define___extensions__ = yes &&
4084 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4086 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4088 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4090 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4092 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4096 # Check whether --enable-largefile was given.
4097 if test "${enable_largefile+set}" = set; then :
4098 enableval
=$enable_largefile;
4101 if test "$enable_largefile" != no
; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4104 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4105 if ${ac_cv_sys_largefile_CC+:} false
; then :
4106 $as_echo_n "(cached) " >&6
4108 ac_cv_sys_largefile_CC
=no
4109 if test "$GCC" != yes; then
4112 # IRIX 6.2 and later do not support large files by default,
4113 # so use the C compiler's -n32 option if that helps.
4114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116 #include <sys/types.h>
4117 /* Check that off_t can represent 2**63 - 1 correctly.
4118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4119 since some C++ compilers masquerading as C compilers
4120 incorrectly reject 9223372036854775807. */
4121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4123 && LARGE_OFF_T % 2147483647 == 1)
4133 if ac_fn_c_try_compile
"$LINENO"; then :
4136 rm -f core conftest.err conftest.
$ac_objext
4138 if ac_fn_c_try_compile
"$LINENO"; then :
4139 ac_cv_sys_largefile_CC
=' -n32'; break
4141 rm -f core conftest.err conftest.
$ac_objext
4145 rm -f conftest.
$ac_ext
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4149 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4150 if test "$ac_cv_sys_largefile_CC" != no
; then
4151 CC
=$CC$ac_cv_sys_largefile_CC
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4155 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4156 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4157 $as_echo_n "(cached) " >&6
4160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162 #include <sys/types.h>
4163 /* Check that off_t can represent 2**63 - 1 correctly.
4164 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4165 since some C++ compilers masquerading as C compilers
4166 incorrectly reject 9223372036854775807. */
4167 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4168 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4169 && LARGE_OFF_T % 2147483647 == 1)
4179 if ac_fn_c_try_compile
"$LINENO"; then :
4180 ac_cv_sys_file_offset_bits
=no
; break
4182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #define _FILE_OFFSET_BITS 64
4186 #include <sys/types.h>
4187 /* Check that off_t can represent 2**63 - 1 correctly.
4188 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4189 since some C++ compilers masquerading as C compilers
4190 incorrectly reject 9223372036854775807. */
4191 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4192 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4193 && LARGE_OFF_T % 2147483647 == 1)
4203 if ac_fn_c_try_compile
"$LINENO"; then :
4204 ac_cv_sys_file_offset_bits
=64; break
4206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4207 ac_cv_sys_file_offset_bits
=unknown
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4212 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4213 case $ac_cv_sys_file_offset_bits in #(
4216 cat >>confdefs.h
<<_ACEOF
4217 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4222 if test $ac_cv_sys_file_offset_bits = unknown
; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4224 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4225 if ${ac_cv_sys_large_files+:} false
; then :
4226 $as_echo_n "(cached) " >&6
4229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231 #include <sys/types.h>
4232 /* Check that off_t can represent 2**63 - 1 correctly.
4233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4234 since some C++ compilers masquerading as C compilers
4235 incorrectly reject 9223372036854775807. */
4236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4238 && LARGE_OFF_T % 2147483647 == 1)
4248 if ac_fn_c_try_compile
"$LINENO"; then :
4249 ac_cv_sys_large_files
=no
; break
4251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #define _LARGE_FILES 1
4255 #include <sys/types.h>
4256 /* Check that off_t can represent 2**63 - 1 correctly.
4257 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4258 since some C++ compilers masquerading as C compilers
4259 incorrectly reject 9223372036854775807. */
4260 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4261 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4262 && LARGE_OFF_T % 2147483647 == 1)
4272 if ac_fn_c_try_compile
"$LINENO"; then :
4273 ac_cv_sys_large_files
=1; break
4275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4276 ac_cv_sys_large_files
=unknown
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4281 $as_echo "$ac_cv_sys_large_files" >&6; }
4282 case $ac_cv_sys_large_files in #(
4285 cat >>confdefs.h
<<_ACEOF
4286 #define _LARGE_FILES $ac_cv_sys_large_files
4298 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4299 if test -f "$ac_dir/install-sh"; then
4301 ac_install_sh
="$ac_aux_dir/install-sh -c"
4303 elif test -f "$ac_dir/install.sh"; then
4305 ac_install_sh
="$ac_aux_dir/install.sh -c"
4307 elif test -f "$ac_dir/shtool"; then
4309 ac_install_sh
="$ac_aux_dir/shtool install -c"
4313 if test -z "$ac_aux_dir"; then
4314 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4317 # These three variables are undocumented and unsupported,
4318 # and are intended to be withdrawn in a future Autoconf release.
4319 # They can cause serious problems if a builder's source tree is in a directory
4320 # whose full name contains unusual characters.
4321 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4322 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4323 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4326 # Make sure we can run config.sub.
4327 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4328 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4331 $as_echo_n "checking build system type... " >&6; }
4332 if ${ac_cv_build+:} false
; then :
4333 $as_echo_n "(cached) " >&6
4335 ac_build_alias
=$build_alias
4336 test "x$ac_build_alias" = x
&&
4337 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4338 test "x$ac_build_alias" = x
&&
4339 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4340 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4341 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4345 $as_echo "$ac_cv_build" >&6; }
4346 case $ac_cv_build in
4348 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4351 ac_save_IFS
=$IFS; IFS
='-'
4357 # Remember, the first character of IFS is used to create $*,
4358 # except with old shells:
4361 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4365 $as_echo_n "checking host system type... " >&6; }
4366 if ${ac_cv_host+:} false
; then :
4367 $as_echo_n "(cached) " >&6
4369 if test "x$host_alias" = x
; then
4370 ac_cv_host
=$ac_cv_build
4372 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4373 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4378 $as_echo "$ac_cv_host" >&6; }
4381 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4384 ac_save_IFS
=$IFS; IFS
='-'
4390 # Remember, the first character of IFS is used to create $*,
4391 # except with old shells:
4394 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4398 $as_echo_n "checking target system type... " >&6; }
4399 if ${ac_cv_target+:} false
; then :
4400 $as_echo_n "(cached) " >&6
4402 if test "x$target_alias" = x
; then
4403 ac_cv_target
=$ac_cv_host
4405 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4406 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4411 $as_echo "$ac_cv_target" >&6; }
4412 case $ac_cv_target in
4414 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4416 target
=$ac_cv_target
4417 ac_save_IFS
=$IFS; IFS
='-'
4423 # Remember, the first character of IFS is used to create $*,
4424 # except with old shells:
4427 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4430 # The aliases save the names the user supplied, while $host etc.
4431 # will get canonicalized.
4432 test -n "$target_alias" &&
4433 test "$program_prefix$program_suffix$program_transform_name" = \
4435 program_prefix
=${target_alias}-
4438 # Find a good install program. We prefer a C program (faster),
4439 # so one script is as good as another. But avoid the broken or
4440 # incompatible versions:
4441 # SysV /etc/install, /usr/sbin/install
4442 # SunOS /usr/etc/install
4443 # IRIX /sbin/install
4445 # AmigaOS /C/install, which installs bootblocks on floppy discs
4446 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4447 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4448 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4449 # OS/2's system install, which has a completely different semantic
4450 # ./install, which can be erroneously created by make from ./install.sh.
4451 # Reject install programs that cannot install multiple files.
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4453 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4454 if test -z "$INSTALL"; then
4455 if ${ac_cv_path_install+:} false
; then :
4456 $as_echo_n "(cached) " >&6
4458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4462 test -z "$as_dir" && as_dir
=.
4463 # Account for people who put trailing slashes in PATH elements.
4464 case $as_dir/ in #((
4465 .
/ | .
// |
/[cC
]/* | \
4466 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4467 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4470 # OSF1 and SCO ODT 3.0 have their own names for install.
4471 # Don't use installbsd from OSF since it installs stuff as root
4473 for ac_prog
in ginstall scoinst
install; do
4474 for ac_exec_ext
in '' $ac_executable_extensions; do
4475 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4476 if test $ac_prog = install &&
4477 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4478 # AIX install. It has an incompatible calling convention.
4480 elif test $ac_prog = install &&
4481 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4482 # program-specific install script used by HP pwplus--don't use.
4485 rm -rf conftest.one conftest.two conftest.dir
4486 echo one
> conftest.one
4487 echo two
> conftest.two
4489 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4490 test -s conftest.one
&& test -s conftest.two
&&
4491 test -s conftest.dir
/conftest.one
&&
4492 test -s conftest.dir
/conftest.two
4494 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4507 rm -rf conftest.one conftest.two conftest.dir
4510 if test "${ac_cv_path_install+set}" = set; then
4511 INSTALL
=$ac_cv_path_install
4513 # As a last resort, use the slow shell script. Don't cache a
4514 # value for INSTALL within a source directory, because that will
4515 # break other packages using the cache if that directory is
4516 # removed, or if the value is a relative name.
4517 INSTALL
=$ac_install_sh
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4521 $as_echo "$INSTALL" >&6; }
4523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4524 # It thinks the first close brace ends the variable substitution.
4525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4527 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4529 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4531 if test -n "$ac_tool_prefix"; then
4532 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4533 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if ${ac_cv_prog_AR+:} false
; then :
4537 $as_echo_n "(cached) " >&6
4539 if test -n "$AR"; then
4540 ac_cv_prog_AR
="$AR" # Let the user override the test.
4542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4546 test -z "$as_dir" && as_dir
=.
4547 for ac_exec_ext
in '' $ac_executable_extensions; do
4548 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4549 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 if test -n "$AR"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4562 $as_echo "$AR" >&6; }
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4570 if test -z "$ac_cv_prog_AR"; then
4572 # Extract the first word of "ar", so it can be a program name with args.
4573 set dummy
ar; ac_word
=$2
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575 $as_echo_n "checking for $ac_word... " >&6; }
4576 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4577 $as_echo_n "(cached) " >&6
4579 if test -n "$ac_ct_AR"; then
4580 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4586 test -z "$as_dir" && as_dir
=.
4587 for ac_exec_ext
in '' $ac_executable_extensions; do
4588 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4589 ac_cv_prog_ac_ct_AR
="ar"
4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4600 if test -n "$ac_ct_AR"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4602 $as_echo "$ac_ct_AR" >&6; }
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4608 if test "x$ac_ct_AR" = x
; then
4611 case $cross_compiling:$ac_tool_warned in
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4615 ac_tool_warned
=yes ;;
4623 if test -n "$ac_tool_prefix"; then
4624 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4625 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if ${ac_cv_prog_RANLIB+:} false
; then :
4629 $as_echo_n "(cached) " >&6
4631 if test -n "$RANLIB"; then
4632 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4638 test -z "$as_dir" && as_dir
=.
4639 for ac_exec_ext
in '' $ac_executable_extensions; do
4640 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4641 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 RANLIB
=$ac_cv_prog_RANLIB
4652 if test -n "$RANLIB"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4654 $as_echo "$RANLIB" >&6; }
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4662 if test -z "$ac_cv_prog_RANLIB"; then
4663 ac_ct_RANLIB
=$RANLIB
4664 # Extract the first word of "ranlib", so it can be a program name with args.
4665 set dummy ranlib
; ac_word
=$2
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4669 $as_echo_n "(cached) " >&6
4671 if test -n "$ac_ct_RANLIB"; then
4672 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir
=.
4679 for ac_exec_ext
in '' $ac_executable_extensions; do
4680 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4692 if test -n "$ac_ct_RANLIB"; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4694 $as_echo "$ac_ct_RANLIB" >&6; }
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4700 if test "x$ac_ct_RANLIB" = x
; then
4703 case $cross_compiling:$ac_tool_warned in
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4707 ac_tool_warned
=yes ;;
4709 RANLIB
=$ac_ct_RANLIB
4712 RANLIB
="$ac_cv_prog_RANLIB"
4716 test "$program_prefix" != NONE
&&
4717 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4718 # Use a double $ so make ignores it.
4719 test "$program_suffix" != NONE
&&
4720 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4721 # Double any \ or $.
4722 # By default was `s,x,x', remove it if useless.
4723 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4724 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4727 # We require a C++11 compiler. Check if one is available, and if
4728 # necessary, set CXX_DIALECT to some -std=xxx switch.
4730 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
4732 ac_cpp
='$CXXCPP $CPPFLAGS'
4733 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4739 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4740 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
4741 $as_echo_n "(cached) " >&6
4743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4747 // If the compiler admits that it is not ready for C++11, why torture it?
4748 // Hopefully, this will speed up the test.
4752 #error "This is not a C++ compiler"
4754 #elif __cplusplus < 201103L
4756 #error "This is not a C++11 compiler"
4763 namespace test_static_assert
4766 template <typename T>
4769 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4774 namespace test_final_override
4782 struct Derived : public Base
4784 virtual void f() override {}
4789 namespace test_double_right_angle_brackets
4792 template < typename T >
4795 typedef check<void> single_type;
4796 typedef check<check<void>> double_type;
4797 typedef check<check<check<void>>> triple_type;
4798 typedef check<check<check<check<void>>>> quadruple_type;
4802 namespace test_decltype
4815 namespace test_type_deduction
4818 template < typename T1, typename T2 >
4821 static const bool value = false;
4824 template < typename T >
4825 struct is_same<T, T>
4827 static const bool value = true;
4830 template < typename T1, typename T2 >
4832 add(T1 a1, T2 a2) -> decltype(a1 + a2)
4838 test(const int c, volatile int v)
4840 static_assert(is_same<int, decltype(0)>::value == true, "");
4841 static_assert(is_same<int, decltype(c)>::value == false, "");
4842 static_assert(is_same<int, decltype(v)>::value == false, "");
4845 auto sumi = ac + av + 'x';
4846 auto sumf = ac + av + 1.0;
4847 static_assert(is_same<int, decltype(ac)>::value == true, "");
4848 static_assert(is_same<int, decltype(av)>::value == true, "");
4849 static_assert(is_same<int, decltype(sumi)>::value == true, "");
4850 static_assert(is_same<int, decltype(sumf)>::value == false, "");
4851 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
4852 return (sumf > 0.0) ? sumi : add(c, v);
4857 namespace test_noexcept
4860 int f() { return 0; }
4861 int g() noexcept { return 0; }
4863 static_assert(noexcept(f()) == false, "");
4864 static_assert(noexcept(g()) == true, "");
4868 namespace test_constexpr
4871 template < typename CharT >
4872 unsigned long constexpr
4873 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
4875 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
4878 template < typename CharT >
4879 unsigned long constexpr
4880 strlen_c(const CharT *const s) noexcept
4882 return strlen_c_r(s, 0UL);
4885 static_assert(strlen_c("") == 0UL, "");
4886 static_assert(strlen_c("1") == 1UL, "");
4887 static_assert(strlen_c("example") == 7UL, "");
4888 static_assert(strlen_c("another\0example") == 7UL, "");
4892 namespace test_rvalue_references
4898 static constexpr int value = N;
4901 answer<1> f(int&) { return answer<1>(); }
4902 answer<2> f(const int&) { return answer<2>(); }
4903 answer<3> f(int&&) { return answer<3>(); }
4910 static_assert(decltype(f(i))::value == 1, "");
4911 static_assert(decltype(f(c))::value == 2, "");
4912 static_assert(decltype(f(0))::value == 3, "");
4917 namespace test_uniform_initialization
4922 static const int zero {};
4923 static const int one {1};
4926 static_assert(test::zero == 0, "");
4927 static_assert(test::one == 1, "");
4931 namespace test_lambdas
4937 auto lambda1 = [](){};
4938 auto lambda2 = lambda1;
4946 auto a = [](int i, int j){ return i + j; }(1, 2);
4947 auto b = []() -> int { return '0'; }();
4948 auto c = [=](){ return a + b; }();
4949 auto d = [&](){ return c; }();
4950 auto e = [a, &b](int x) mutable {
4951 const auto identity = [](int y){ return y; };
4952 for (auto i = 0; i < a; ++i)
4954 return x + identity(a + b);
4956 return a + b + c + d + e;
4962 const auto nullary = [](){ return 0; };
4963 const auto unary = [](int x){ return x; };
4964 using nullary_t = decltype(nullary);
4965 using unary_t = decltype(unary);
4966 const auto higher1st = [](nullary_t f){ return f(); };
4967 const auto higher2nd = [unary](nullary_t f1){
4968 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
4970 return higher1st(nullary) + higher2nd(nullary)(unary);
4975 namespace test_variadic_templates
4981 template <int N0, int... N1toN>
4982 struct sum<N0, N1toN...>
4984 static constexpr auto value = N0 + sum<N1toN...>::value;
4990 static constexpr auto value = 0;
4993 static_assert(sum<>::value == 0, "");
4994 static_assert(sum<1>::value == 1, "");
4995 static_assert(sum<23>::value == 23, "");
4996 static_assert(sum<1, 2>::value == 3, "");
4997 static_assert(sum<5, 5, 11>::value == 21, "");
4998 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5002 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5003 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5005 namespace test_template_alias_sfinae
5010 template<typename T>
5011 using member = typename T::member_type;
5013 template<typename T>
5016 template<typename T>
5017 void func(member<T>*) {}
5021 void test() { func<foo>(0); }
5025 } // namespace cxx11
5027 #endif // __cplusplus >= 201103L
5032 if ac_fn_cxx_try_compile
"$LINENO"; then :
5033 ax_cv_cxx_compile_cxx11
=yes
5035 ax_cv_cxx_compile_cxx11
=no
5037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5040 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5041 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5045 if test x
$ac_success = xno
; then
5046 for alternative
in ${ax_cxx_compile_alternatives}; do
5047 switch
="-std=gnu++${alternative}"
5048 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5050 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5051 if eval \
${$cachevar+:} false
; then :
5052 $as_echo_n "(cached) " >&6
5056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5060 // If the compiler admits that it is not ready for C++11, why torture it?
5061 // Hopefully, this will speed up the test.
5065 #error "This is not a C++ compiler"
5067 #elif __cplusplus < 201103L
5069 #error "This is not a C++11 compiler"
5076 namespace test_static_assert
5079 template <typename T>
5082 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5087 namespace test_final_override
5095 struct Derived : public Base
5097 virtual void f() override {}
5102 namespace test_double_right_angle_brackets
5105 template < typename T >
5108 typedef check<void> single_type;
5109 typedef check<check<void>> double_type;
5110 typedef check<check<check<void>>> triple_type;
5111 typedef check<check<check<check<void>>>> quadruple_type;
5115 namespace test_decltype
5128 namespace test_type_deduction
5131 template < typename T1, typename T2 >
5134 static const bool value = false;
5137 template < typename T >
5138 struct is_same<T, T>
5140 static const bool value = true;
5143 template < typename T1, typename T2 >
5145 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5151 test(const int c, volatile int v)
5153 static_assert(is_same<int, decltype(0)>::value == true, "");
5154 static_assert(is_same<int, decltype(c)>::value == false, "");
5155 static_assert(is_same<int, decltype(v)>::value == false, "");
5158 auto sumi = ac + av + 'x';
5159 auto sumf = ac + av + 1.0;
5160 static_assert(is_same<int, decltype(ac)>::value == true, "");
5161 static_assert(is_same<int, decltype(av)>::value == true, "");
5162 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5163 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5164 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5165 return (sumf > 0.0) ? sumi : add(c, v);
5170 namespace test_noexcept
5173 int f() { return 0; }
5174 int g() noexcept { return 0; }
5176 static_assert(noexcept(f()) == false, "");
5177 static_assert(noexcept(g()) == true, "");
5181 namespace test_constexpr
5184 template < typename CharT >
5185 unsigned long constexpr
5186 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5188 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5191 template < typename CharT >
5192 unsigned long constexpr
5193 strlen_c(const CharT *const s) noexcept
5195 return strlen_c_r(s, 0UL);
5198 static_assert(strlen_c("") == 0UL, "");
5199 static_assert(strlen_c("1") == 1UL, "");
5200 static_assert(strlen_c("example") == 7UL, "");
5201 static_assert(strlen_c("another\0example") == 7UL, "");
5205 namespace test_rvalue_references
5211 static constexpr int value = N;
5214 answer<1> f(int&) { return answer<1>(); }
5215 answer<2> f(const int&) { return answer<2>(); }
5216 answer<3> f(int&&) { return answer<3>(); }
5223 static_assert(decltype(f(i))::value == 1, "");
5224 static_assert(decltype(f(c))::value == 2, "");
5225 static_assert(decltype(f(0))::value == 3, "");
5230 namespace test_uniform_initialization
5235 static const int zero {};
5236 static const int one {1};
5239 static_assert(test::zero == 0, "");
5240 static_assert(test::one == 1, "");
5244 namespace test_lambdas
5250 auto lambda1 = [](){};
5251 auto lambda2 = lambda1;
5259 auto a = [](int i, int j){ return i + j; }(1, 2);
5260 auto b = []() -> int { return '0'; }();
5261 auto c = [=](){ return a + b; }();
5262 auto d = [&](){ return c; }();
5263 auto e = [a, &b](int x) mutable {
5264 const auto identity = [](int y){ return y; };
5265 for (auto i = 0; i < a; ++i)
5267 return x + identity(a + b);
5269 return a + b + c + d + e;
5275 const auto nullary = [](){ return 0; };
5276 const auto unary = [](int x){ return x; };
5277 using nullary_t = decltype(nullary);
5278 using unary_t = decltype(unary);
5279 const auto higher1st = [](nullary_t f){ return f(); };
5280 const auto higher2nd = [unary](nullary_t f1){
5281 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5283 return higher1st(nullary) + higher2nd(nullary)(unary);
5288 namespace test_variadic_templates
5294 template <int N0, int... N1toN>
5295 struct sum<N0, N1toN...>
5297 static constexpr auto value = N0 + sum<N1toN...>::value;
5303 static constexpr auto value = 0;
5306 static_assert(sum<>::value == 0, "");
5307 static_assert(sum<1>::value == 1, "");
5308 static_assert(sum<23>::value == 23, "");
5309 static_assert(sum<1, 2>::value == 3, "");
5310 static_assert(sum<5, 5, 11>::value == 21, "");
5311 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5315 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5316 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5318 namespace test_template_alias_sfinae
5323 template<typename T>
5324 using member = typename T::member_type;
5326 template<typename T>
5329 template<typename T>
5330 void func(member<T>*) {}
5334 void test() { func<foo>(0); }
5338 } // namespace cxx11
5340 #endif // __cplusplus >= 201103L
5345 if ac_fn_cxx_try_compile
"$LINENO"; then :
5350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5353 eval ac_res
=\$
$cachevar
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5355 $as_echo "$ac_res" >&6; }
5356 if eval test x\$
$cachevar = xyes
; then
5357 CXX_DIALECT
="$switch"
5364 if test x
$ac_success = xno
; then
5365 for alternative
in ${ax_cxx_compile_alternatives}; do
5366 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5367 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5369 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5370 if eval \${$cachevar+:} false; then :
5371 $as_echo_n "(cached
) " >&6
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5379 // If the compiler admits that it is not ready for C++11, why torture it?
5380 // Hopefully, this will speed up the test.
5384 #error "This is not a C
++ compiler
"
5386 #elif __cplusplus < 201103L
5388 #error "This is not a C
++11 compiler
"
5395 namespace test_static_assert
5398 template <typename T>
5401 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5406 namespace test_final_override
5414 struct Derived : public Base
5416 virtual void f() override {}
5421 namespace test_double_right_angle_brackets
5424 template < typename T >
5427 typedef check<void> single_type;
5428 typedef check<check<void>> double_type;
5429 typedef check<check<check<void>>> triple_type;
5430 typedef check<check<check<check<void>>>> quadruple_type;
5434 namespace test_decltype
5447 namespace test_type_deduction
5450 template < typename T1, typename T2 >
5453 static const bool value = false;
5456 template < typename T >
5457 struct is_same<T, T>
5459 static const bool value = true;
5462 template < typename T1, typename T2 >
5464 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5470 test(const int c, volatile int v)
5472 static_assert(is_same<int, decltype(0)>::value == true, "");
5473 static_assert(is_same<int, decltype(c)>::value == false, "");
5474 static_assert(is_same<int, decltype(v)>::value == false, "");
5477 auto sumi = ac + av + 'x';
5478 auto sumf = ac + av + 1.0;
5479 static_assert(is_same<int, decltype(ac)>::value == true, "");
5480 static_assert(is_same<int, decltype(av)>::value == true, "");
5481 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5482 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5483 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5484 return (sumf > 0.0) ? sumi : add(c, v);
5489 namespace test_noexcept
5492 int f() { return 0; }
5493 int g() noexcept { return 0; }
5495 static_assert(noexcept(f()) == false, "");
5496 static_assert(noexcept(g()) == true, "");
5500 namespace test_constexpr
5503 template < typename CharT >
5504 unsigned long constexpr
5505 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5507 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5510 template < typename CharT >
5511 unsigned long constexpr
5512 strlen_c(const CharT *const s) noexcept
5514 return strlen_c_r(s, 0UL);
5517 static_assert(strlen_c("") == 0UL, "");
5518 static_assert(strlen_c("1") == 1UL, "");
5519 static_assert(strlen_c("example
") == 7UL, "");
5520 static_assert(strlen_c("another\
0example
") == 7UL, "");
5524 namespace test_rvalue_references
5530 static constexpr int value = N;
5533 answer<1> f(int&) { return answer<1>(); }
5534 answer<2> f(const int&) { return answer<2>(); }
5535 answer<3> f(int&&) { return answer<3>(); }
5542 static_assert(decltype(f(i))::value == 1, "");
5543 static_assert(decltype(f(c))::value == 2, "");
5544 static_assert(decltype(f(0))::value == 3, "");
5549 namespace test_uniform_initialization
5554 static const int zero {};
5555 static const int one {1};
5558 static_assert(test::zero == 0, "");
5559 static_assert(test::one == 1, "");
5563 namespace test_lambdas
5569 auto lambda1 = [](){};
5570 auto lambda2 = lambda1;
5578 auto a = [](int i, int j){ return i + j; }(1, 2);
5579 auto b = []() -> int { return '0'; }();
5580 auto c = [=](){ return a + b; }();
5581 auto d = [&](){ return c; }();
5582 auto e = [a, &b](int x) mutable {
5583 const auto identity = [](int y){ return y; };
5584 for (auto i = 0; i < a; ++i)
5586 return x + identity(a + b);
5588 return a + b + c + d + e;
5594 const auto nullary = [](){ return 0; };
5595 const auto unary = [](int x){ return x; };
5596 using nullary_t = decltype(nullary);
5597 using unary_t = decltype(unary);
5598 const auto higher1st = [](nullary_t f){ return f(); };
5599 const auto higher2nd = [unary](nullary_t f1){
5600 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5602 return higher1st(nullary) + higher2nd(nullary)(unary);
5607 namespace test_variadic_templates
5613 template <int N0, int... N1toN>
5614 struct sum<N0, N1toN...>
5616 static constexpr auto value = N0 + sum<N1toN...>::value;
5622 static constexpr auto value = 0;
5625 static_assert(sum<>::value == 0, "");
5626 static_assert(sum<1>::value == 1, "");
5627 static_assert(sum<23>::value == 23, "");
5628 static_assert(sum<1, 2>::value == 3, "");
5629 static_assert(sum<5, 5, 11>::value == 21, "");
5630 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5634 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5635 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5637 namespace test_template_alias_sfinae
5642 template<typename T>
5643 using member = typename T::member_type;
5645 template<typename T>
5648 template<typename T>
5649 void func(member<T>*) {}
5653 void test() { func<foo>(0); }
5657 } // namespace cxx11
5659 #endif // __cplusplus >= 201103L
5664 if ac_fn_cxx_try_compile "$LINENO"; then :
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672 eval ac_res=\$$cachevar
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5674 $as_echo "$ac_res" >&6; }
5675 if eval test x\$$cachevar = xyes; then
5676 CXX_DIALECT="$switch"
5681 if test x$ac_success = xyes; then
5687 ac_cpp='$CPP $CPPFLAGS'
5688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5692 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5693 if test x$ac_success = xno; then
5694 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
5697 if test x$ac_success = xno; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
5700 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
5704 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5712 $as_echo_n "checking for ANSI C header files... " >&6; }
5713 if ${ac_cv_header_stdc+:} false
; then :
5714 $as_echo_n "(cached) " >&6
5716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5731 if ac_fn_c_try_compile
"$LINENO"; then :
5732 ac_cv_header_stdc
=yes
5734 ac_cv_header_stdc
=no
5736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5738 if test $ac_cv_header_stdc = yes; then
5739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5746 $EGREP "memchr" >/dev
/null
2>&1; then :
5749 ac_cv_header_stdc
=no
5755 if test $ac_cv_header_stdc = yes; then
5756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5763 $EGREP "free" >/dev
/null
2>&1; then :
5766 ac_cv_header_stdc
=no
5772 if test $ac_cv_header_stdc = yes; then
5773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5774 if test "$cross_compiling" = yes; then :
5777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5781 #if ((' ' & 0x0FF) == 0x020)
5782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5785 # define ISLOWER(c) \
5786 (('a' <= (c) && (c) <= 'i') \
5787 || ('j' <= (c) && (c) <= 'r') \
5788 || ('s' <= (c) && (c) <= 'z'))
5789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5797 for (i = 0; i < 256; i++)
5798 if (XOR (islower (i), ISLOWER (i))
5799 || toupper (i) != TOUPPER (i))
5804 if ac_fn_c_try_run
"$LINENO"; then :
5807 ac_cv_header_stdc
=no
5809 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5810 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5816 $as_echo "$ac_cv_header_stdc" >&6; }
5817 if test $ac_cv_header_stdc = yes; then
5819 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5824 # Set the 'development' global.
5825 .
$srcdir/..
/..
/bfd
/development.sh
5827 # Enable -lmcheck by default (it provides cheap-enough memory
5828 # mangling), but turn it off for releases.
5829 if $development; then
5830 libmcheck_default
=yes
5832 libmcheck_default
=no
5835 # Check whether --enable-libmcheck was given.
5836 if test "${enable_libmcheck+set}" = set; then :
5837 enableval
=$enable_libmcheck; case "${enableval}" in
5838 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
5839 no | n
) ENABLE_LIBMCHECK
="no" ;;
5840 *) as_fn_error $?
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
5845 if test -z "${ENABLE_LIBMCHECK}"; then
5846 ENABLE_LIBMCHECK
=${libmcheck_default}
5849 if test "$ENABLE_LIBMCHECK" = "yes" ; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
5851 $as_echo_n "checking for main in -lmcheck... " >&6; }
5852 if ${ac_cv_lib_mcheck_main+:} false
; then :
5853 $as_echo_n "(cached) " >&6
5855 ac_check_lib_save_LIBS
=$LIBS
5856 LIBS
="-lmcheck $LIBS"
5857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5869 if ac_fn_c_try_link
"$LINENO"; then :
5870 ac_cv_lib_mcheck_main
=yes
5872 ac_cv_lib_mcheck_main
=no
5874 rm -f core conftest.err conftest.
$ac_objext \
5875 conftest
$ac_exeext conftest.
$ac_ext
5876 LIBS
=$ac_check_lib_save_LIBS
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
5879 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
5880 if test "x$ac_cv_lib_mcheck_main" = xyes
; then :
5881 cat >>confdefs.h
<<_ACEOF
5882 #define HAVE_LIBMCHECK 1
5885 LIBS
="-lmcheck $LIBS"
5892 if $development; then
5893 srv_selftest_objs
="common/selftest.o"
5895 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
5899 case ${build_alias} in
5900 "") build_noncanonical
=${build} ;;
5901 *) build_noncanonical
=${build_alias} ;;
5904 case ${host_alias} in
5905 "") host_noncanonical
=${build_noncanonical} ;;
5906 *) host_noncanonical
=${host_alias} ;;
5909 case ${target_alias} in
5910 "") target_noncanonical
=${host_noncanonical} ;;
5911 *) target_noncanonical
=${target_alias} ;;
5919 # Dependency checking.
5920 rm -rf .tst
2>/dev
/null
5921 mkdir .tst
2>/dev
/null
5922 if test -d .tst
; then
5927 rmdir .tst
2>/dev
/null
5929 DEPDIR
="${am__leading_dot}deps"
5931 ac_config_commands
="$ac_config_commands depdir"
5935 # Create sub-directories for objects and dependencies.
5936 CONFIG_SRC_SUBDIR
="arch common"
5939 ac_config_commands
="$ac_config_commands gdbdepdir"
5942 depcc
="$CC" am_compiler_list
=
5944 am_depcomp
=$ac_aux_dir/depcomp
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5946 $as_echo_n "checking dependency style of $depcc... " >&6; }
5947 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
5948 $as_echo_n "(cached) " >&6
5950 if test -f "$am_depcomp"; then
5951 # We make a subdir and do the tests there. Otherwise we can end up
5952 # making bogus files that we don't know about and never remove. For
5953 # instance it was reported that on HP-UX the gcc test will end up
5954 # making a dummy file named `D' -- because `-MD' means `put the output
5957 # Copy depcomp to subdir because otherwise we won't find it if we're
5958 # using a relative directory.
5959 cp "$am_depcomp" conftest.dir
5961 # We will build objects and dependencies in a subdirectory because
5962 # it helps to detect inapplicable dependency modes. For instance
5963 # both Tru64's cc and ICC support -MD to output dependencies as a
5964 # side effect of compilation, but ICC will put the dependencies in
5965 # the current directory while Tru64 will put them in the object
5969 am_cv_CC_dependencies_compiler_type
=none
5970 if test "$am_compiler_list" = ""; then
5971 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5973 for depmode
in $am_compiler_list; do
5974 if test $depmode = none
; then break; fi
5976 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5977 # Setup a source with many dependencies, because some compilers
5978 # like to wrap large dependency lists on column 80 (with \), and
5979 # we should not choose a depcomp mode which is confused by this.
5981 # We need to recreate these files for each test, as the compiler may
5982 # overwrite some of them when testing with obscure command lines.
5983 # This happens at least with the AIX C compiler.
5985 for i
in 1 2 3 4 5 6; do
5986 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5988 # Solaris 8's {/usr,}/bin/sh.
5989 touch sub
/conftst
$i.h
5991 echo "include sub/conftest.Po" > confmf
5993 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5994 # mode. It turns out that the SunPro C++ compiler does not properly
5995 # handle `-M -o', and we need to detect this.
5996 depcmd
="depmode=$depmode \
5997 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5998 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5999 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6000 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6001 if env
$depcmd > conftest.err
2>&1 &&
6002 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6003 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6004 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6005 # icc doesn't choke on unknown options, it will just issue warnings
6006 # or remarks (even with -Werror). So we grep stderr for any message
6007 # that says an option was ignored or not supported.
6008 # When given -MP, icc 7.0 and 7.1 complain thusly:
6009 # icc: Command line warning: ignoring option '-M'; no argument required
6010 # The diagnosis changed in icc 8.0:
6011 # icc: Command line remark: option '-MP' not supported
6012 if (grep 'ignoring option' conftest.err ||
6013 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6014 am_cv_CC_dependencies_compiler_type
=$depmode
6015 $as_echo "$as_me:$LINENO: success" >&5
6019 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6020 sed -e 's/^/| /' < conftest.err
>&5
6026 am_cv_CC_dependencies_compiler_type
=none
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6031 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6032 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6033 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6034 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6039 gnulib_extra_configure_args
=
6040 # If large-file support is disabled, make sure gnulib does the same.
6041 if test "$enable_largefile" = no
; then
6042 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6045 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
6046 # to find the the source subdir to be configured directly under
6047 # gdbserver/. We need to build gnulib under some other directory not
6048 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
6049 # build it in the same directory, when building in the source dir.
6052 in_build
="build-gnulib-gdbserver"
6053 in_extra_args
="$gnulib_extra_configure_args"
6055 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6056 # so they do not pile up.
6057 ac_sub_configure_args
=
6059 eval "set x $ac_configure_args"
6063 if test -n "$ac_prev"; then
6068 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6069 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6070 ac_prev
=cache_file
;;
6071 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6072 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6075 --config-cache |
-C)
6077 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6079 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6081 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6083 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6085 --disable-option-checking)
6089 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6091 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6095 # Always prepend --prefix to ensure using the same prefix
6096 # in subdir configurations.
6097 ac_arg
="--prefix=$prefix"
6099 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6101 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6104 if test "$silent" = yes; then
6105 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6108 # Always prepend --disable-option-checking to silence warnings, since
6109 # different subdirs can have different --enable and --with options.
6110 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6115 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6117 $as_echo "$ac_msg" >&6
6118 as_dir
="$ac_dir"; as_fn_mkdir_p
6122 ac_srcdir
=$srcdir/$in_src ;;
6124 ac_srcdir
=..
/$srcdir/$in_src ;;
6129 ac_sub_configure
=$ac_srcdir/configure
6131 # Make the cache file name correct relative to the subdirectory.
6133 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6135 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6138 if test -n "$in_extra_args"; then
6139 # Add the extra args at the end.
6140 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6143 { $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
6144 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6145 # The eval makes quoting arguments work.
6146 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6147 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6148 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6154 in_src
="../../libiberty"
6155 in_build
="build-libiberty-gdbserver"
6158 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6159 # so they do not pile up.
6160 ac_sub_configure_args
=
6162 eval "set x $ac_configure_args"
6166 if test -n "$ac_prev"; then
6171 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6172 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6173 ac_prev
=cache_file
;;
6174 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6175 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6178 --config-cache |
-C)
6180 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6182 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6184 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6186 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6188 --disable-option-checking)
6192 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6194 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6198 # Always prepend --prefix to ensure using the same prefix
6199 # in subdir configurations.
6200 ac_arg
="--prefix=$prefix"
6202 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6204 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6207 if test "$silent" = yes; then
6208 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6211 # Always prepend --disable-option-checking to silence warnings, since
6212 # different subdirs can have different --enable and --with options.
6213 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6218 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6220 $as_echo "$ac_msg" >&6
6221 as_dir
="$ac_dir"; as_fn_mkdir_p
6225 ac_srcdir
=$srcdir/$in_src ;;
6227 ac_srcdir
=..
/$srcdir/$in_src ;;
6232 ac_sub_configure
=$ac_srcdir/configure
6234 # Make the cache file name correct relative to the subdirectory.
6236 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6238 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6241 if test -n "$in_extra_args"; then
6242 # Add the extra args at the end.
6243 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6246 { $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
6247 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6248 # The eval makes quoting arguments work.
6249 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6250 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6251 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6256 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
6258 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6259 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6260 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6261 cat >>confdefs.h
<<_ACEOF
6262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6269 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6270 if test "x$ac_cv_type_pid_t" = xyes
; then :
6274 cat >>confdefs.h
<<_ACEOF
6280 for ac_header
in vfork.h
6282 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6283 if test "x$ac_cv_header_vfork_h" = xyes
; then :
6284 cat >>confdefs.h
<<_ACEOF
6285 #define HAVE_VFORK_H 1
6292 for ac_func
in fork vfork
6294 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6295 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6296 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6297 cat >>confdefs.h
<<_ACEOF
6298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6304 if test "x$ac_cv_func_fork" = xyes
; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6306 $as_echo_n "checking for working fork... " >&6; }
6307 if ${ac_cv_func_fork_works+:} false
; then :
6308 $as_echo_n "(cached) " >&6
6310 if test "$cross_compiling" = yes; then :
6311 ac_cv_func_fork_works
=cross
6313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 $ac_includes_default
6320 /* By Ruediger Kuhlmann. */
6327 if ac_fn_c_try_run
"$LINENO"; then :
6328 ac_cv_func_fork_works
=yes
6330 ac_cv_func_fork_works
=no
6332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6338 $as_echo "$ac_cv_func_fork_works" >&6; }
6341 ac_cv_func_fork_works
=$ac_cv_func_fork
6343 if test "x$ac_cv_func_fork_works" = xcross
; then
6345 *-*-amigaos* |
*-*-msdosdjgpp*)
6346 # Override, as these systems have only a dummy fork() stub
6347 ac_cv_func_fork_works
=no
6350 ac_cv_func_fork_works
=yes
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6354 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6356 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6357 if test "x$ac_cv_func_vfork" = xyes
; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6359 $as_echo_n "checking for working vfork... " >&6; }
6360 if ${ac_cv_func_vfork_works+:} false
; then :
6361 $as_echo_n "(cached) " >&6
6363 if test "$cross_compiling" = yes; then :
6364 ac_cv_func_vfork_works
=cross
6366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368 /* Thanks to Paul Eggert for this test. */
6369 $ac_includes_default
6370 #include <sys/wait.h>
6374 /* On some sparc systems, changes by the child to local and incoming
6375 argument registers are propagated back to the parent. The compiler
6376 is told about this with #include <vfork.h>, but some compilers
6377 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6378 static variable whose address is put into a register that is
6379 clobbered by the vfork. */
6382 sparc_address_test (int arg)
6384 sparc_address_test (arg) int arg;
6405 pid_t parent = getpid ();
6408 sparc_address_test (0);
6413 /* Here is another test for sparc vfork register problems. This
6414 test uses lots of local variables, at least as many local
6415 variables as main has allocated so far including compiler
6416 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6417 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6418 reuse the register of parent for one of the local variables,
6419 since it will think that parent can't possibly be used any more
6420 in this routine. Assigning to the local variable will thus
6421 munge parent in the parent process. */
6423 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6424 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6425 /* Convince the compiler that p..p7 are live; otherwise, it might
6426 use the same hardware register for all 8 local variables. */
6427 if (p != p1 || p != p2 || p != p3 || p != p4
6428 || p != p5 || p != p6 || p != p7)
6431 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6432 from child file descriptors. If the child closes a descriptor
6433 before it execs or exits, this munges the parent's descriptor
6434 as well. Test for this by closing stdout in the child. */
6435 _exit(close(fileno(stdout)) != 0);
6440 while (wait(&status) != child)
6443 /* Was there some problem with vforking? */
6446 /* Did the child fail? (This shouldn't happen.) */
6449 /* Did the vfork/compiler bug occur? */
6450 || parent != getpid()
6452 /* Did the file descriptor bug occur? */
6453 || fstat(fileno(stdout), &st) != 0
6458 if ac_fn_c_try_run
"$LINENO"; then :
6459 ac_cv_func_vfork_works
=yes
6461 ac_cv_func_vfork_works
=no
6463 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6464 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6469 $as_echo "$ac_cv_func_vfork_works" >&6; }
6472 if test "x$ac_cv_func_fork_works" = xcross
; then
6473 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6475 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6478 if test "x$ac_cv_func_vfork_works" = xyes
; then
6480 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6484 $as_echo "#define vfork fork" >>confdefs.h
6487 if test "x$ac_cv_func_fork_works" = xyes
; then
6489 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6493 for ac_func
in getauxval pread pwrite pread64 setns
6495 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6496 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6497 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6498 cat >>confdefs.h
<<_ACEOF
6499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6506 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6507 if test "x$ac_cv_type_size_t" = xyes
; then :
6511 cat >>confdefs.h
<<_ACEOF
6512 #define size_t unsigned int
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6519 $as_echo_n "checking for ANSI C header files... " >&6; }
6520 if ${ac_cv_header_stdc+:} false
; then :
6521 $as_echo_n "(cached) " >&6
6523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6538 if ac_fn_c_try_compile
"$LINENO"; then :
6539 ac_cv_header_stdc
=yes
6541 ac_cv_header_stdc
=no
6543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6545 if test $ac_cv_header_stdc = yes; then
6546 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6553 $EGREP "memchr" >/dev
/null
2>&1; then :
6556 ac_cv_header_stdc
=no
6562 if test $ac_cv_header_stdc = yes; then
6563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6570 $EGREP "free" >/dev
/null
2>&1; then :
6573 ac_cv_header_stdc
=no
6579 if test $ac_cv_header_stdc = yes; then
6580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6581 if test "$cross_compiling" = yes; then :
6584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6588 #if ((' ' & 0x0FF) == 0x020)
6589 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6590 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6592 # define ISLOWER(c) \
6593 (('a' <= (c) && (c) <= 'i') \
6594 || ('j' <= (c) && (c) <= 'r') \
6595 || ('s' <= (c) && (c) <= 'z'))
6596 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6599 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6604 for (i = 0; i < 256; i++)
6605 if (XOR (islower (i), ISLOWER (i))
6606 || toupper (i) != TOUPPER (i))
6611 if ac_fn_c_try_run
"$LINENO"; then :
6614 ac_cv_header_stdc
=no
6616 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6617 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6623 $as_echo "$ac_cv_header_stdc" >&6; }
6624 if test $ac_cv_header_stdc = yes; then
6626 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6630 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6631 # for constant arguments. Useless!
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6633 $as_echo_n "checking for working alloca.h... " >&6; }
6634 if ${ac_cv_working_alloca_h+:} false
; then :
6635 $as_echo_n "(cached) " >&6
6637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6643 char *p = (char *) alloca (2 * sizeof (int));
6649 if ac_fn_c_try_link
"$LINENO"; then :
6650 ac_cv_working_alloca_h
=yes
6652 ac_cv_working_alloca_h
=no
6654 rm -f core conftest.err conftest.
$ac_objext \
6655 conftest
$ac_exeext conftest.
$ac_ext
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6658 $as_echo "$ac_cv_working_alloca_h" >&6; }
6659 if test $ac_cv_working_alloca_h = yes; then
6661 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6666 $as_echo_n "checking for alloca... " >&6; }
6667 if ${ac_cv_func_alloca_works+:} false
; then :
6668 $as_echo_n "(cached) " >&6
6670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6673 # define alloca __builtin_alloca
6676 # include <malloc.h>
6677 # define alloca _alloca
6679 # ifdef HAVE_ALLOCA_H
6680 # include <alloca.h>
6685 # ifndef alloca /* predefined by HP cc +Olibcalls */
6686 void *alloca (size_t);
6696 char *p = (char *) alloca (1);
6702 if ac_fn_c_try_link
"$LINENO"; then :
6703 ac_cv_func_alloca_works
=yes
6705 ac_cv_func_alloca_works
=no
6707 rm -f core conftest.err conftest.
$ac_objext \
6708 conftest
$ac_exeext conftest.
$ac_ext
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6711 $as_echo "$ac_cv_func_alloca_works" >&6; }
6713 if test $ac_cv_func_alloca_works = yes; then
6715 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6718 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6719 # that cause trouble. Some versions do not even contain alloca or
6720 # contain a buggy version. If you still want to use their alloca,
6721 # use ar to extract alloca.o from them instead of compiling alloca.c.
6723 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6725 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6729 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6730 if ${ac_cv_os_cray+:} false
; then :
6731 $as_echo_n "(cached) " >&6
6733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 #if defined CRAY && ! defined CRAY2
6742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6743 $EGREP "webecray" >/dev
/null
2>&1; then :
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6752 $as_echo "$ac_cv_os_cray" >&6; }
6753 if test $ac_cv_os_cray = yes; then
6754 for ac_func
in _getb67 GETB67 getb67
; do
6755 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6756 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6757 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6759 cat >>confdefs.h
<<_ACEOF
6760 #define CRAY_STACKSEG_END $ac_func
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6770 $as_echo_n "checking stack direction for C alloca... " >&6; }
6771 if ${ac_cv_c_stack_direction+:} false
; then :
6772 $as_echo_n "(cached) " >&6
6774 if test "$cross_compiling" = yes; then :
6775 ac_cv_c_stack_direction
=0
6777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 $ac_includes_default
6781 find_stack_direction (int *addr, int depth)
6786 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6787 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6792 main (int argc, char **argv)
6794 return find_stack_direction (0, argc + !argv + 20) < 0;
6797 if ac_fn_c_try_run
"$LINENO"; then :
6798 ac_cv_c_stack_direction
=1
6800 ac_cv_c_stack_direction
=-1
6802 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6803 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6808 $as_echo "$ac_cv_c_stack_direction" >&6; }
6809 cat >>confdefs.h
<<_ACEOF
6810 #define STACK_DIRECTION $ac_cv_c_stack_direction
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6819 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6820 if ${am_cv_langinfo_codeset+:} false
; then :
6821 $as_echo_n "(cached) " >&6
6823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 #include <langinfo.h>
6829 char* cs = nl_langinfo(CODESET);
6834 if ac_fn_c_try_link
"$LINENO"; then :
6835 am_cv_langinfo_codeset
=yes
6837 am_cv_langinfo_codeset
=no
6839 rm -f core conftest.err conftest.
$ac_objext \
6840 conftest
$ac_exeext conftest.
$ac_ext
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6844 $as_echo "$am_cv_langinfo_codeset" >&6; }
6845 if test $am_cv_langinfo_codeset = yes; then
6847 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6852 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
6854 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6855 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6856 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6857 cat >>confdefs.h
<<_ACEOF
6858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6866 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
6868 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6869 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6870 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6871 cat >>confdefs.h
<<_ACEOF
6872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6879 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
6880 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
6886 cat >>confdefs.h
<<_ACEOF
6887 #define HAVE_DECL_STRERROR $ac_have_decl
6889 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
6890 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
6896 cat >>confdefs.h
<<_ACEOF
6897 #define HAVE_DECL_STRSTR $ac_have_decl
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
6902 $as_echo_n "checking for sigsetjmp... " >&6; }
6903 if ${gdb_cv_func_sigsetjmp+:} false
; then :
6904 $as_echo_n "(cached) " >&6
6906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6914 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6919 if ac_fn_c_try_compile
"$LINENO"; then :
6920 gdb_cv_func_sigsetjmp
=yes
6922 gdb_cv_func_sigsetjmp
=no
6924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
6927 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
6928 if test $gdb_cv_func_sigsetjmp = yes; then
6930 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
6935 # Check the return and argument types of ptrace.
6938 for ac_header
in sys
/ptrace.h ptrace.h
6940 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6941 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6942 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6943 cat >>confdefs.h
<<_ACEOF
6944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6952 gdb_ptrace_headers
='
6953 #include <sys/types.h>
6954 #if HAVE_SYS_PTRACE_H
6955 # include <sys/ptrace.h>
6958 # include <unistd.h>
6961 # There is no point in checking if we don't have a prototype.
6962 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
6964 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
6970 cat >>confdefs.h
<<_ACEOF
6971 #define HAVE_DECL_PTRACE $ac_have_decl
6973 if test $ac_have_decl = 1; then :
6977 : ${gdb_cv_func_ptrace_ret='int'}
6978 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6982 # Check return type. Varargs (used on GNU/Linux) conflict with the
6983 # empty argument list, so check for that explicitly.
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
6985 $as_echo_n "checking return type of ptrace... " >&6; }
6986 if ${gdb_cv_func_ptrace_ret+:} false
; then :
6987 $as_echo_n "(cached) " >&6
6989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6995 extern long ptrace (enum __ptrace_request, ...);
7000 if ac_fn_c_try_compile
"$LINENO"; then :
7001 gdb_cv_func_ptrace_ret
='long'
7003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7009 extern int ptrace ();
7014 if ac_fn_c_try_compile
"$LINENO"; then :
7015 gdb_cv_func_ptrace_ret
='int'
7017 gdb_cv_func_ptrace_ret
='long'
7019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
7024 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
7026 cat >>confdefs.h
<<_ACEOF
7027 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
7030 # Check argument types.
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
7032 $as_echo_n "checking types of arguments for ptrace... " >&6; }
7033 if ${gdb_cv_func_ptrace_args+:} false
; then :
7034 $as_echo_n "(cached) " >&6
7037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7043 extern long ptrace (enum __ptrace_request, ...);
7048 if ac_fn_c_try_compile
"$LINENO"; then :
7049 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
7052 for gdb_arg1
in 'int' 'long'; do
7053 for gdb_arg2
in 'pid_t' 'int' 'long'; do
7054 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
7055 for gdb_arg4
in 'int' 'long' 'void *'; do
7056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7063 extern $gdb_cv_func_ptrace_ret
7064 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
7070 if ac_fn_c_try_compile
"$LINENO"; then :
7071 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
7074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7075 for gdb_arg5
in 'int *' 'int' 'long'; do
7076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7083 extern $gdb_cv_func_ptrace_ret
7084 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
7090 if ac_fn_c_try_compile
"$LINENO"; then :
7092 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
7095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7101 # Provide a safe default value.
7102 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
7108 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
7109 ac_save_IFS
=$IFS; IFS
=','
7110 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
7114 cat >>confdefs.h
<<_ACEOF
7115 #define PTRACE_TYPE_ARG1 $1
7119 cat >>confdefs.h
<<_ACEOF
7120 #define PTRACE_TYPE_ARG3 $3
7124 cat >>confdefs.h
<<_ACEOF
7125 #define PTRACE_TYPE_ARG4 $4
7128 if test -n "$5"; then
7130 cat >>confdefs.h
<<_ACEOF
7131 #define PTRACE_TYPE_ARG5 $5
7142 # Check whether --with-ust was given.
7143 if test "${with_ust+set}" = set; then :
7148 # Check whether --with-ust_include was given.
7149 if test "${with_ust_include+set}" = set; then :
7150 withval
=$with_ust_include;
7154 # Check whether --with-ust_lib was given.
7155 if test "${with_ust_lib+set}" = set; then :
7156 withval
=$with_ust_lib;
7170 ustlibs
="-L$with_ust/lib -lust"
7171 ustinc
="-I$with_ust/include "
7174 if test "x$with_ust_include" != x
; then
7175 ustinc
="-I$with_ust_include "
7177 if test "x$with_ust_lib" != x
; then
7178 ustlibs
="-L$with_ust_lib -lust"
7181 if test "x$with_ust" != "xno"; then
7182 saved_CFLAGS
="$CFLAGS"
7183 CFLAGS
="$CFLAGS $ustinc"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
7185 $as_echo_n "checking for ust... " >&6; }
7186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7189 #define CONFIG_UST_GDB_INTEGRATION
7190 #include <ust/ust.h>
7200 if ac_fn_c_try_compile
"$LINENO"; then :
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7202 $as_echo "yes" >&6; };
7203 $as_echo "#define HAVE_UST 1" >>confdefs.h
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
7209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7210 CFLAGS
="$saved_CFLAGS"
7213 # Flags needed for UST
7218 # Check whether --enable-werror was given.
7219 if test "${enable_werror+set}" = set; then :
7220 enableval
=$enable_werror; case "${enableval}" in
7221 yes | y
) ERROR_ON_WARNING
="yes" ;;
7222 no | n
) ERROR_ON_WARNING
="no" ;;
7223 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
7228 # Enable -Werror by default when using gcc. Turn it off for releases.
7229 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
7230 ERROR_ON_WARNING
=yes
7234 if test "${ERROR_ON_WARNING}" = yes ; then
7235 WERROR_CFLAGS
="-Werror"
7238 # The options we'll try to enable.
7239 build_warnings
="-Wall -Wpointer-arith \
7240 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
7241 -Wno-switch -Wno-char-subscripts \
7242 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
7243 -Wno-sign-compare -Wno-error=maybe-uninitialized \
7244 -Wno-mismatched-tags \
7245 -Wno-error=deprecated-register \
7246 -Wsuggest-override \
7247 -Wimplicit-fallthrough=3 \
7253 # Enable -Wno-format by default when using gcc on mingw since many
7254 # GCC versions complain about %I64.
7255 build_warnings
="$build_warnings -Wno-format" ;;
7257 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
7258 # doesn't understand.
7259 build_warnings
="$build_warnings -Wno-unknown-pragmas"
7260 # Solaris 11 <unistd.h> marks vfork deprecated.
7261 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
7263 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
7264 # but there's a special case for this below.
7265 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
7268 # Check whether --enable-build-warnings was given.
7269 if test "${enable_build_warnings+set}" = set; then :
7270 enableval
=$enable_build_warnings; case "${enableval}" in
7272 no
) build_warnings
="-w";;
7273 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7274 build_warnings
="${build_warnings} ${t}";;
7275 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7276 build_warnings
="${t} ${build_warnings}";;
7277 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7279 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7280 echo "Setting compiler warning flags = $build_warnings" 6>&1
7283 # Check whether --enable-gdb-build-warnings was given.
7284 if test "${enable_gdb_build_warnings+set}" = set; then :
7285 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
7287 no
) build_warnings
="-w";;
7288 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7289 build_warnings
="${build_warnings} ${t}";;
7290 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7291 build_warnings
="${t} ${build_warnings}";;
7292 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7294 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7295 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7299 # The set of warnings supported by a C++ compiler is not the same as
7300 # of the C compiler.
7302 ac_cpp
='$CXXCPP $CPPFLAGS'
7303 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7304 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7305 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7309 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
7312 $as_echo_n "checking compiler warning flags... " >&6; }
7313 # Separate out the -Werror flag as some files just cannot be
7314 # compiled with it enabled.
7315 for w
in ${build_warnings}; do
7316 # GCC does not complain about -Wno-unknown-warning. Invert
7317 # and test -Wunknown-warning instead.
7320 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
7321 -Wformat-nonliteral)
7322 # gcc requires -Wformat before -Wformat-nonliteral
7323 # will work, so stick them together.
7332 -Werr*) WERROR_CFLAGS
=-Werror ;;
7334 # Check whether GCC accepts it.
7335 saved_CFLAGS
="$CFLAGS"
7336 CFLAGS
="$CFLAGS -Werror $wtest"
7337 saved_CXXFLAGS
="$CXXFLAGS"
7338 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
7339 if test "x$w" = "x-Wunused-variable"; then
7340 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
7341 # fixed in GCC 4.9. This test is derived from the gdb
7342 # source code that triggered this bug in GCC.
7343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345 struct scoped_restore_base {};
7346 struct scoped_restore_tmpl : public scoped_restore_base {
7347 ~scoped_restore_tmpl() {}
7352 const scoped_restore_base &b = scoped_restore_tmpl();
7357 if ac_fn_cxx_try_compile
"$LINENO"; then :
7358 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7373 if ac_fn_cxx_try_compile
"$LINENO"; then :
7374 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7378 CFLAGS
="$saved_CFLAGS"
7379 CXXFLAGS
="$saved_CXXFLAGS"
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
7383 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
7389 ac_cpp='$CPP $CPPFLAGS'
7390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7398 for ac_func in dladdr
7400 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
7401 if test "x
$ac_cv_func_dladdr" = xyes; then :
7402 cat >>confdefs.h <<_ACEOF
7403 #define HAVE_DLADDR 1
7412 # Check for presence and size of long long.
7413 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
7414 if test "x
$ac_cv_type_long_long" = xyes; then :
7416 cat >>confdefs.h <<_ACEOF
7417 #define HAVE_LONG_LONG 1
7420 # The cast to long int works around a bug in the HP C Compiler
7421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7423 # This bug is HP SR number 8606223364.
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
7425 $as_echo_n "checking size of long long...
" >&6; }
7426 if ${ac_cv_sizeof_long_long+:} false; then :
7427 $as_echo_n "(cached
) " >&6
7429 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
7432 if test "$ac_cv_type_long_long" = yes; then
7433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7435 as_fn_error 77 "cannot compute sizeof (long long)
7436 See \`config.log' for more details
" "$LINENO" 5; }
7438 ac_cv_sizeof_long_long=0
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
7444 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7448 cat >>confdefs.h <<_ACEOF
7449 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7456 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
7457 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
7458 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7464 cat >>confdefs.h <<_ACEOF
7465 #define HAVE_DECL_BASENAME $ac_have_decl
7467 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
7468 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
7474 cat >>confdefs.h <<_ACEOF
7475 #define HAVE_DECL_FFS $ac_have_decl
7477 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
7478 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
7484 cat >>confdefs.h <<_ACEOF
7485 #define HAVE_DECL_ASPRINTF $ac_have_decl
7487 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
7488 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
7494 cat >>confdefs.h <<_ACEOF
7495 #define HAVE_DECL_VASPRINTF $ac_have_decl
7497 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
7498 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
7504 cat >>confdefs.h <<_ACEOF
7505 #define HAVE_DECL_SNPRINTF $ac_have_decl
7507 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
7508 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
7514 cat >>confdefs.h <<_ACEOF
7515 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7518 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
7519 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
7525 cat >>confdefs.h <<_ACEOF
7526 #define HAVE_DECL_STRTOL $ac_have_decl
7528 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
7529 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
7535 cat >>confdefs.h <<_ACEOF
7536 #define HAVE_DECL_STRTOUL $ac_have_decl
7538 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
7539 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
7545 cat >>confdefs.h <<_ACEOF
7546 #define HAVE_DECL_STRTOLL $ac_have_decl
7548 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
7549 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
7555 cat >>confdefs.h <<_ACEOF
7556 #define HAVE_DECL_STRTOULL $ac_have_decl
7559 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
7560 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
7566 cat >>confdefs.h <<_ACEOF
7567 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7572 ac_fn_c_check_decl "$LINENO" "strerror
" "ac_cv_have_decl_strerror
" "$ac_includes_default"
7573 if test "x
$ac_cv_have_decl_strerror" = xyes; then :
7579 cat >>confdefs.h <<_ACEOF
7580 #define HAVE_DECL_STRERROR $ac_have_decl
7582 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
7583 if test "x
$ac_cv_have_decl_perror" = xyes; then :
7589 cat >>confdefs.h <<_ACEOF
7590 #define HAVE_DECL_PERROR $ac_have_decl
7592 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
7593 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
7599 cat >>confdefs.h <<_ACEOF
7600 #define HAVE_DECL_VASPRINTF $ac_have_decl
7602 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
7603 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
7609 cat >>confdefs.h <<_ACEOF
7610 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7614 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
7615 if test "x
$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7617 cat >>confdefs.h <<_ACEOF
7618 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7623 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
7624 if test "x
$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7626 cat >>confdefs.h <<_ACEOF
7627 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7634 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
7635 # Older amd64 Linux's don't have the fs_base and gs_base members of
7636 # `struct user_regs_struct'.
7637 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>
7638 #include <sys/user.h>
7640 if test "x
$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
7642 cat >>confdefs.h <<_ACEOF
7643 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
7648 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>
7649 #include <sys/user.h>
7651 if test "x
$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
7653 cat >>confdefs.h <<_ACEOF
7654 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
7662 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
7663 #include <sys/socket.h>
7666 if test "x
$ac_cv_type_socklen_t" = xyes; then :
7668 cat >>confdefs.h <<_ACEOF
7669 #define HAVE_SOCKLEN_T 1
7678 # Starting with NDK version 9, <elf.h> actually includes definitions
7679 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
7680 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
7681 # leading to conflicts with the defintions from <linux/elf.h>.
7682 # This makes it impossible for us to include both <elf.h> and
7683 # <linux/elf.h>, which means that, in practice, we do not have
7684 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
7685 # Therefore, do not try to auto-detect availability, as it would
7686 # get it wrong on this platform.
7689 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
7692 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
7694 cat >>confdefs.h <<_ACEOF
7695 #define HAVE_ELF32_AUXV_T 1
7700 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
7703 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
7705 cat >>confdefs.h <<_ACEOF
7706 #define HAVE_ELF64_AUXV_T 1
7716 # Check whether --with-pkgversion was given.
7717 if test "${with_pkgversion+set}" = set; then :
7718 withval=$with_pkgversion; case "$withval" in
7719 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
7721 *) PKGVERSION="($withval) " ;;
7732 # Check whether --with-bugurl was given.
7733 if test "${with_bugurl+set}" = set; then :
7734 withval=$with_bugurl; case "$withval" in
7735 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
7738 *) BUGURL="$withval"
7742 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
7752 REPORT_BUGS_TO="<$BUGURL>"
7753 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7760 cat >>confdefs.h <<_ACEOF
7761 #define PKGVERSION "$PKGVERSION"
7765 cat >>confdefs.h <<_ACEOF
7766 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7770 # Check for various supplementary target information (beyond the
7771 # triplet) which might affect the choices in configure.srv.
7773 i[34567]86-*-linux*)
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
7775 $as_echo_n "checking
if building
for x86-64...
" >&6; }
7776 if ${gdb_cv_i386_is_x86_64+:} false; then :
7777 $as_echo_n "(cached
) " >&6
7779 save_CPPFLAGS="$CPPFLAGS"
7780 CPPFLAGS="$CPPFLAGS $CFLAGS"
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7789 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7790 $EGREP "got it
" >/dev/null 2>&1; then :
7791 gdb_cv_i386_is_x86_64=yes
7793 gdb_cv_i386_is_x86_64=no
7797 CPPFLAGS="$save_CPPFLAGS"
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
7800 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
7805 $as_echo_n "checking
if building
for x32...
" >&6; }
7806 if ${gdb_cv_x86_is_x32+:} false; then :
7807 $as_echo_n "(cached
) " >&6
7809 save_CPPFLAGS="$CPPFLAGS"
7810 CPPFLAGS="$CPPFLAGS $CFLAGS"
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7814 #if __x86_64__ && __ILP32__
7819 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7820 $EGREP "got it
" >/dev/null 2>&1; then :
7821 gdb_cv_x86_is_x32=yes
7823 gdb_cv_x86_is_x32=no
7827 CPPFLAGS="$save_CPPFLAGS"
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
7830 $as_echo "$gdb_cv_x86_is_x32" >&6; }
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
7835 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
7836 if ${gdb_cv_m68k_is_coldfire+:} false; then :
7837 $as_echo_n "(cached
) " >&6
7839 save_CPPFLAGS="$CPPFLAGS"
7840 CPPFLAGS="$CPPFLAGS $CFLAGS"
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7844 #ifdef __mcoldfire__
7849 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7850 $EGREP "got it
" >/dev/null 2>&1; then :
7851 gdb_cv_m68k_is_coldfire=yes
7853 gdb_cv_m68k_is_coldfire=no
7857 CPPFLAGS="$save_CPPFLAGS"
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
7860 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
7864 . ${srcdir}/configure.srv
7866 # Add in the common host objects.
7867 . ${srcdir}/../common/common.host
7868 srv_host_obs="$common_host_obs"
7870 if test "${srv_mingwce}" = "yes"; then
7872 elif test "${srv_mingw}" = "yes"; then
7873 LIBS="$LIBS -lws2_32"
7874 elif test "${srv_qnx}" = "yes"; then
7875 LIBS="$LIBS -lsocket"
7876 elif test "${srv_lynxos}" = "yes"; then
7877 LIBS="$LIBS -lnetinet"
7880 if test "${srv_mingw}" = "yes"; then
7882 $as_echo "#define USE_WIN32API 1" >>confdefs.h
7886 if test "${srv_linux_usrregs}" = "yes"; then
7888 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
7892 if test "${srv_linux_regsets}" = "yes"; then
7894 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
7898 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
7899 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
7900 $as_echo_n "(cached) " >&6
7902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7904 #include <sys/ptrace.h>
7913 if ac_fn_c_try_compile
"$LINENO"; then :
7914 gdbsrv_cv_have_ptrace_getregs
=yes
7916 gdbsrv_cv_have_ptrace_getregs
=no
7918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
7922 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
7923 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
7925 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
7930 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
7931 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
7932 $as_echo_n "(cached) " >&6
7934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7936 #include <sys/ptrace.h>
7945 if ac_fn_c_try_compile
"$LINENO"; then :
7946 gdbsrv_cv_have_ptrace_getfpxregs
=yes
7948 gdbsrv_cv_have_ptrace_getfpxregs
=no
7950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
7954 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
7955 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
7957 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
7962 if test "${srv_linux_btrace}" = "yes"; then
7964 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
7968 if test "$ac_cv_header_sys_procfs_h" = yes; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
7970 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
7971 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
7972 $as_echo_n "(cached) " >&6
7974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7978 /* Needed for new procfs interface on sparc-solaris. */
7979 #define _STRUCTURED_PROC 1
7980 #include <sys/procfs.h>
7989 if ac_fn_c_try_compile
"$LINENO"; then :
7990 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
7992 bfd_cv_have_sys_procfs_type_lwpid_t
=no
7995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7998 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8000 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
8004 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
8007 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
8008 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
8009 $as_echo_n "(cached) " >&6
8011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8015 /* Needed for new procfs interface on sparc-solaris. */
8016 #define _STRUCTURED_PROC 1
8017 #include <sys/procfs.h>
8026 if ac_fn_c_try_compile
"$LINENO"; then :
8027 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8029 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8035 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8037 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
8041 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
8044 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
8045 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
8046 $as_echo_n "(cached) " >&6
8048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8052 /* Needed for new procfs interface on sparc-solaris. */
8053 #define _STRUCTURED_PROC 1
8054 #include <sys/procfs.h>
8063 if ac_fn_c_try_compile
"$LINENO"; then :
8064 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
8066 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8072 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8074 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
8078 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
8081 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
8082 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
8083 $as_echo_n "(cached) " >&6
8085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8089 /* Needed for new procfs interface on sparc-solaris. */
8090 #define _STRUCTURED_PROC 1
8091 #include <sys/procfs.h>
8100 if ac_fn_c_try_compile
"$LINENO"; then :
8101 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8103 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8109 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8111 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
8115 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
8118 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
8119 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
8120 $as_echo_n "(cached) " >&6
8122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8126 /* Needed for new procfs interface on sparc-solaris. */
8127 #define _STRUCTURED_PROC 1
8128 #include <sys/procfs.h>
8137 if ac_fn_c_try_compile
"$LINENO"; then :
8138 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
8140 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
8143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8146 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
8148 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8152 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
8156 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
8158 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
8159 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
8160 $as_echo_n "(cached) " >&6
8162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8165 #include <thread_db.h>
8174 if ac_fn_c_try_compile
"$LINENO"; then :
8175 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
8177 gdbserver_cv_have_thread_db_type_lwpid_t
=no
8180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8183 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
8185 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
8189 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
8193 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
8195 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
8196 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
8197 $as_echo_n "(cached) " >&6
8199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8202 #include <thread_db.h>
8211 if ac_fn_c_try_compile
"$LINENO"; then :
8212 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
8214 gdbserver_cv_have_thread_db_type_psaddr_t
=no
8217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8220 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
8222 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
8226 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8232 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8233 if ${ac_cv_lib_dl_dlopen+:} false
; then :
8234 $as_echo_n "(cached) " >&6
8236 ac_check_lib_save_LIBS
=$LIBS
8238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8241 /* Override any GCC internal prototype to avoid an error.
8242 Use char because int might match the return type of a GCC
8243 builtin and then its argument prototype would still apply. */
8256 if ac_fn_c_try_link
"$LINENO"; then :
8257 ac_cv_lib_dl_dlopen
=yes
8259 ac_cv_lib_dl_dlopen
=no
8261 rm -f core conftest.err conftest.
$ac_objext \
8262 conftest
$ac_exeext conftest.
$ac_ext
8263 LIBS
=$ac_check_lib_save_LIBS
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8266 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8267 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
8268 cat >>confdefs.h
<<_ACEOF
8269 #define HAVE_LIBDL 1
8278 srv_thread_depfiles
=
8281 if test "$srv_linux_thread_db" = "yes"; then
8282 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
8285 $as_echo_n "checking for the dynamic export flag... " >&6; }
8286 old_LDFLAGS
="$LDFLAGS"
8287 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
8289 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
8290 LDFLAGS
="$LDFLAGS $RDYNAMIC"
8291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8302 if ac_fn_c_try_link
"$LINENO"; then :
8303 found
="-Wl,--dynamic-list"
8304 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
8306 RDYNAMIC
="-rdynamic"
8307 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
8308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8319 if ac_fn_c_try_link
"$LINENO"; then :
8325 rm -f core conftest.err conftest.
$ac_objext \
8326 conftest
$ac_exeext conftest.
$ac_ext
8328 rm -f core conftest.err conftest.
$ac_objext \
8329 conftest
$ac_exeext conftest.
$ac_ext
8331 LDFLAGS
="$old_LDFLAGS"
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8333 $as_echo "$found" >&6; }
8335 srv_libs
="-lthread_db"
8338 srv_thread_depfiles
="thread-db.o proc-service.o"
8340 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
8343 $as_echo_n "checking for TD_VERSION... " >&6; }
8344 if ${gdbsrv_cv_have_td_version+:} false
; then :
8345 $as_echo_n "(cached) " >&6
8347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8349 #include <thread_db.h>
8358 if ac_fn_c_try_compile
"$LINENO"; then :
8359 gdbsrv_cv_have_td_version
=yes
8361 gdbsrv_cv_have_td_version
=no
8363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
8366 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
8367 if test $gdbsrv_cv_have_td_version = yes; then
8369 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
8375 # Check whether --with-libthread-db was given.
8376 if test "${with_libthread_db+set}" = set; then :
8377 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
8378 srv_libs
="$srv_libthread_db_path"
8383 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
8385 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
8389 if test "$srv_xmlfiles" != ""; then
8390 srv_xmlbuiltin
="xml-builtin.o"
8392 $as_echo "#define USE_XML 1" >>confdefs.h
8395 tmp_xmlfiles
=$srv_xmlfiles
8397 for f
in $tmp_xmlfiles; do
8398 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
8402 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs $srv_selftest_objs"
8403 GDBSERVER_LIBS
="$srv_libs"
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
8406 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
8407 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
8408 $as_echo_n "(cached) " >&6
8411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8417 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
8422 if ac_fn_c_try_link
"$LINENO"; then :
8423 gdbsrv_cv_have_sync_builtins
=yes
8425 gdbsrv_cv_have_sync_builtins
=no
8427 rm -f core conftest.err conftest.
$ac_objext \
8428 conftest
$ac_exeext conftest.
$ac_ext
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
8431 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
8432 if test $gdbsrv_cv_have_sync_builtins = yes; then
8434 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
8438 saved_cflags
="$CFLAGS"
8439 CFLAGS
="$CFLAGS -fvisibility=hidden"
8440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8451 if ac_fn_c_try_compile
"$LINENO"; then :
8452 gdbsrv_cv_have_visibility_hidden
=yes
8454 gdbsrv_cv_have_visibility_hidden
=no
8456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8457 CFLAGS
="$saved_cflags"
8459 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8461 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
8467 cat >>confdefs.h
<<_ACEOF
8468 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8472 if test "$cross_compiling" = yes; then :
8473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 #include <sys/personality.h>
8480 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8481 # define ADDR_NO_RANDOMIZE 0x0040000
8483 /* Test the flag could be set and stays set. */
8484 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8485 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8491 if ac_fn_c_try_link
"$LINENO"; then :
8492 gdbsrv_cv_have_personality
=true
8494 gdbsrv_cv_have_personality
=false
8496 rm -f core conftest.err conftest.
$ac_objext \
8497 conftest
$ac_exeext conftest.
$ac_ext
8499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 #include <sys/personality.h>
8506 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8507 # define ADDR_NO_RANDOMIZE 0x0040000
8509 /* Test the flag could be set and stays set. */
8510 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8511 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8517 if ac_fn_c_try_run
"$LINENO"; then :
8518 gdbsrv_cv_have_personality
=true
8520 gdbsrv_cv_have_personality
=false
8522 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8523 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8526 if $gdbsrv_cv_have_personality
8529 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8537 # check whether to enable the inprocess agent
8538 if test "$ipa_obj" != "" \
8539 -a "$gdbsrv_cv_have_sync_builtins" = yes \
8540 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
8546 # Check whether --enable-inprocess-agent was given.
8547 if test "${enable_inprocess_agent+set}" = set; then :
8548 enableval
=$enable_inprocess_agent; case "$enableval" in
8549 yes) want_ipa
=true
;;
8550 no
) want_ipa
=false
;;
8551 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
8560 IPA_DEPFILES
="$ipa_obj"
8561 extra_libraries
="$extra_libraries libinproctrace.so"
8563 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
8574 GNULIB
=build-gnulib-gdbserver
/import
8577 if test x
"$STDINT_H" != x
; then
8578 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
8582 ac_config_files
="$ac_config_files Makefile"
8585 cat >confcache
<<\_ACEOF
8586 # This file is a shell script that caches the results of configure
8587 # tests run on this system so they can be shared between configure
8588 # scripts and configure runs, see configure's option --config-cache.
8589 # It is not useful on other systems. If it contains results you don't
8590 # want to keep, you may remove or edit it.
8592 # config.status only pays attention to the cache file if you give it
8593 # the --recheck option to rerun configure.
8595 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8596 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8601 # The following way of writing the cache mishandles newlines in values,
8602 # but we know of no workaround that is simple, portable, and efficient.
8603 # So, we kill variables containing newlines.
8604 # Ultrix sh set writes to stderr and can't be redirected directly,
8605 # and sets the high bit in the cache file unless we assign to the vars.
8607 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8608 eval ac_val
=\$
$ac_var
8612 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8613 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8616 _ | IFS | as_nl
) ;; #(
8617 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
8618 *) { eval $ac_var=; unset $ac_var;} ;;
8624 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8625 *${as_nl}ac_space
=\
*)
8626 # `set' does not quote correctly, so add quotes: double-quote
8627 # substitution turns \\\\ into \\, and sed turns \\ into \.
8630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8633 # `set' quotes correctly as required by POSIX, so do not add quotes.
8634 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8643 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8645 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8647 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8648 if test -w "$cache_file"; then
8649 if test "x$cache_file" != "x/dev/null"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8651 $as_echo "$as_me: updating cache $cache_file" >&6;}
8652 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
8653 cat confcache
>"$cache_file"
8655 case $cache_file in #(
8657 mv -f confcache
"$cache_file"$$
&&
8658 mv -f "$cache_file"$$
"$cache_file" ;; #(
8660 mv -f confcache
"$cache_file" ;;
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8666 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8671 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8672 # Let make expand exec_prefix.
8673 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8675 DEFS
=-DHAVE_CONFIG_H
8680 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8681 # 1. Remove the extension, and $U if already installed.
8682 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8683 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
8684 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8685 # will be set to the directory where LIBOBJS objects are built.
8686 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8687 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8691 LTLIBOBJS
=$ac_ltlibobjs
8694 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8695 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
8696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8699 : "${CONFIG_STATUS=./config.status}"
8701 ac_clean_files_save
=$ac_clean_files
8702 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8704 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8706 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8708 # Generated by $as_me.
8709 # Run this file to recreate the current configuration.
8710 # Compiler output produced by configure, useful for debugging
8711 # configure, is in config.log if it exists.
8717 SHELL=\${CONFIG_SHELL-$SHELL}
8720 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8721 ## -------------------- ##
8722 ## M4sh Initialization. ##
8723 ## -------------------- ##
8725 # Be more Bourne compatible
8726 DUALCASE
=1; export DUALCASE
# for MKS sh
8727 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
8730 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8731 # is contrary to our usage. Disable this feature.
8732 alias -g '${1+"$@"}'='"$@"'
8733 setopt NO_GLOB_SUBST
8735 case `(set -o) 2>/dev/null` in #(
8747 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8748 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8749 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8751 # Prefer a ksh shell builtin over an external printf program on Solaris,
8752 # but without wasting forks for bash or zsh.
8753 if test -z "$BASH_VERSION$ZSH_VERSION" \
8754 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8755 as_echo='print
-r --'
8756 as_echo_n='print
-rn --'
8757 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8758 as_echo='printf %s
\n'
8759 as_echo_n='printf %s
'
8761 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8762 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8763 as_echo_n='/usr
/ucb
/echo -n'
8765 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8766 as_echo_n_body='eval
8770 expr "X$arg" : "X\\(.*\\)$as_nl";
8771 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8773 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8775 export as_echo_n_body
8776 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8779 as_echo='sh
-c $as_echo_body as_echo
'
8782 # The user is always right.
8783 if test "${PATH_SEPARATOR+set}" != set; then
8785 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8786 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8793 # We need space, tab and new line, in precisely that order. Quoting is
8794 # there to prevent editors from complaining about space-tab.
8795 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8796 # splitting by setting IFS to empty value.)
8799 # Find who we are. Look in the path if we contain no directory separator.
8802 *[\\/]* ) as_myself=$0 ;;
8803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807 test -z "$as_dir" && as_dir=.
8808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8814 # We did not find ourselves, most probably we were run as `sh COMMAND'
8815 # in which case we are not to be found in the path.
8816 if test "x$as_myself" = x
; then
8819 if test ! -f "$as_myself"; then
8820 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8824 # Unset variables that we do not need and which cause bugs (e.g. in
8825 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8826 # suppresses any "Segmentation fault" message there. '((' could
8827 # trigger a bug in pdksh 5.2.14.
8828 for as_var
in BASH_ENV ENV MAIL MAILPATH
8829 do eval test x\
${$as_var+set} = xset \
8830 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8843 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8846 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8847 # ----------------------------------------
8848 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8849 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8850 # script with STATUS, using 1 if that was 0.
8853 as_status
=$1; test $as_status -eq 0 && as_status
=1
8855 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8856 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8858 $as_echo "$as_me: error: $2" >&2
8859 as_fn_exit
$as_status
8863 # as_fn_set_status STATUS
8864 # -----------------------
8865 # Set $? to STATUS, without forking.
8869 } # as_fn_set_status
8873 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8883 # Portably unset VAR.
8886 { eval $1=; unset $1;}
8888 as_unset
=as_fn_unset
8889 # as_fn_append VAR VALUE
8890 # ----------------------
8891 # Append the text in VALUE to the end of the definition contained in VAR. Take
8892 # advantage of any shell optimizations that allow amortized linear growth over
8893 # repeated appends, instead of the typical quadratic growth present in naive
8895 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8896 eval 'as_fn_append ()
8907 # as_fn_arith ARG...
8908 # ------------------
8909 # Perform arithmetic evaluation on the ARGs, and store the result in the
8910 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8911 # must be portable across $(()) and expr.
8912 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8913 eval 'as_fn_arith ()
8920 as_val
=`expr "$@" || test $? -eq 1`
8925 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8926 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8932 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8933 as_basename
=basename
8938 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8944 as_me
=`$as_basename -- "$0" ||
8945 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8946 X"$0" : 'X\(//\)$' \| \
8947 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8949 sed '/^.*\/\([^/][^/]*\)\/*$/{
8963 # Avoid depending upon Character Ranges.
8964 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8965 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8966 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8967 as_cr_digits
='0123456789'
8968 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8970 ECHO_C
= ECHO_N
= ECHO_T
=
8971 case `echo -n x` in #(((((
8973 case `echo 'xy\c'` in
8974 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8976 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8983 rm -f conf$$ conf$$.exe conf$$.
file
8984 if test -d conf$$.dir
; then
8985 rm -f conf$$.dir
/conf$$.
file
8988 mkdir conf$$.dir
2>/dev
/null
8990 if (echo >conf$$.
file) 2>/dev
/null
; then
8991 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8993 # ... but there are two gotchas:
8994 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8995 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8996 # In both cases, we have to default to `cp -pR'.
8997 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8999 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9007 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9008 rmdir conf$$.dir
2>/dev
/null
9013 # Create "$as_dir" as a directory, including parents if necessary.
9018 -*) as_dir
=.
/$as_dir;;
9020 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9024 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9025 *) as_qdir
=$as_dir;;
9027 as_dirs
="'$as_qdir' $as_dirs"
9028 as_dir
=`$as_dirname -- "$as_dir" ||
9029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9030 X"$as_dir" : 'X\(//\)[^/]' \| \
9031 X"$as_dir" : 'X\(//\)$' \| \
9032 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9033 $as_echo X"$as_dir" |
9034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9051 test -d "$as_dir" && break
9053 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9054 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9058 if mkdir
-p .
2>/dev
/null
; then
9059 as_mkdir_p
='mkdir -p "$as_dir"'
9061 test -d .
/-p && rmdir .
/-p
9066 # as_fn_executable_p FILE
9067 # -----------------------
9068 # Test if FILE is an executable regular file.
9069 as_fn_executable_p
()
9071 test -f "$1" && test -x "$1"
9072 } # as_fn_executable_p
9074 as_executable_p
=as_fn_executable_p
9076 # Sed expression to map a string onto a valid CPP name.
9077 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9079 # Sed expression to map a string onto a valid variable name.
9080 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9084 ## ----------------------------------- ##
9085 ## Main body of $CONFIG_STATUS script. ##
9086 ## ----------------------------------- ##
9088 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9091 # Save the log message, to keep $0 and so on meaningful, and to
9092 # report actual input values of CONFIG_FILES etc. instead of their
9093 # values after options handling.
9095 This file was extended by $as_me, which was
9096 generated by GNU Autoconf 2.69. Invocation command line was
9098 CONFIG_FILES = $CONFIG_FILES
9099 CONFIG_HEADERS = $CONFIG_HEADERS
9100 CONFIG_LINKS = $CONFIG_LINKS
9101 CONFIG_COMMANDS = $CONFIG_COMMANDS
9104 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9109 case $ac_config_files in *"
9110 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9113 case $ac_config_headers in *"
9114 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9119 # Files that config.status was made for.
9120 config_files="$ac_config_files"
9121 config_headers="$ac_config_headers"
9122 config_commands="$ac_config_commands"
9126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9128 \`$as_me' instantiates files and other configuration actions
9129 from templates according to the current configuration. Unless the files
9130 and actions are specified as TAGs, all are instantiated by default.
9132 Usage: $0 [OPTION]... [TAG]...
9134 -h, --help print this help, then exit
9135 -V, --version print version number and configuration settings, then exit
9136 --config print configuration, then exit
9137 -q, --quiet, --silent
9138 do not print progress messages
9139 -d, --debug don't remove temporary files
9140 --recheck update $as_me by reconfiguring in the same conditions
9141 --file=FILE[:TEMPLATE]
9142 instantiate the configuration file FILE
9143 --header=FILE[:TEMPLATE]
9144 instantiate the configuration header FILE
9146 Configuration files:
9149 Configuration headers:
9152 Configuration commands:
9155 Report bugs to the package provider."
9158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9159 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9162 configured by $0, generated by GNU Autoconf 2.69,
9163 with options \\"\$ac_cs_config\\"
9165 Copyright (C) 2012 Free Software Foundation, Inc.
9166 This config.status script is free software; the Free Software Foundation
9167 gives unlimited permission to copy, distribute and modify it."
9172 test -n "\$AWK" || AWK=awk
9175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9176 # The default lists apply if the user does not specify any file.
9182 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9183 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9187 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9199 # Handling of the options.
9200 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9202 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9203 $as_echo "$ac_cs_version"; exit ;;
9204 --config |
--confi |
--conf |
--con |
--co |
--c )
9205 $as_echo "$ac_cs_config"; exit ;;
9206 --debug |
--debu |
--deb |
--de |
--d |
-d )
9208 --file |
--fil |
--fi |
--f )
9211 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9212 '') as_fn_error $?
"missing file argument" ;;
9214 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9215 ac_need_defaults
=false
;;
9216 --header |
--heade |
--head |
--hea )
9219 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9221 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9222 ac_need_defaults
=false
;;
9224 # Conflict between --help and --header
9225 as_fn_error $?
"ambiguous option: \`$1'
9226 Try \`$0 --help' for more information.";;
9227 --help |
--hel |
-h )
9228 $as_echo "$ac_cs_usage"; exit ;;
9229 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9230 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9234 -*) as_fn_error $?
"unrecognized option: \`$1'
9235 Try \`$0 --help' for more information." ;;
9237 *) as_fn_append ac_config_targets
" $1"
9238 ac_need_defaults
=false
;;
9244 ac_configure_extra_args
=
9246 if $ac_cs_silent; then
9248 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9253 if \$ac_cs_recheck; then
9254 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9256 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9257 CONFIG_SHELL='$SHELL'
9263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9267 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9268 ## Running $as_me. ##
9274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9278 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
9279 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
9283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9285 # Handling of arguments.
9286 for ac_config_target
in $ac_config_targets
9288 case $ac_config_target in
9289 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
9290 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
9291 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
9292 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9294 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9299 # If the user did not use the arguments to specify the items to instantiate,
9300 # then the envvar interface is used. Set only those that are not.
9301 # We use the long form for the default assignment because of an extremely
9302 # bizarre bug on SunOS 4.1.3.
9303 if $ac_need_defaults; then
9304 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9305 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9306 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9309 # Have a temporary directory for convenience. Make it in the build tree
9310 # simply because there is no reason against having it here, and in addition,
9311 # creating and moving files from /tmp can sometimes cause problems.
9312 # Hook for its removal unless debugging.
9313 # Note that there is a small window in which the directory will not be cleaned:
9314 # after its creation but before its name has been assigned to `$tmp'.
9318 trap 'exit_status=$?
9320 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9322 trap 'as_fn_exit 1' 1 2 13 15
9324 # Create a (secure) tmp directory for tmp files.
9327 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9331 tmp
=.
/conf$$
-$RANDOM
9332 (umask 077 && mkdir
"$tmp")
9333 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
9336 # Set up the scripts for CONFIG_FILES section.
9337 # No need to generate them if there are no CONFIG_FILES.
9338 # This happens for instance with `./config.status config.h'.
9339 if test -n "$CONFIG_FILES"; then
9342 ac_cr
=`echo X | tr X '\015'`
9343 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9344 # But we know of no other shell where ac_cr would be empty at this
9345 # point, so we can use a bashism as a fallback.
9346 if test "x$ac_cr" = x
; then
9347 eval ac_cr
=\$
\'\\r
\'
9349 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9350 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9356 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9361 echo "cat >conf$$subs.awk <<_ACEOF" &&
9362 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9365 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9366 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9368 for ac_last_try in false false false false false :; do
9369 . ./conf$$subs.sh ||
9370 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9372 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9373 if test $ac_delim_n = $ac_delim_num; then
9375 elif $ac_last_try; then
9376 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9378 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9384 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
9388 s/^/S["/; s
/!.
*/"]=/
9398 s/\(.\{148\}\)..*/\1/
9400 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9405 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9412 s/\(.\{148\}\)..*/\1/
9414 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9418 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9423 ' <conf$$subs.awk | sed '
9428 ' >>$CONFIG_STATUS || ac_write_fail=1
9429 rm -f conf$$subs.awk
9430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9432 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
9433 for (key in S) S_is_set[key] = 1
9439 nfields = split(line, field, "@
")
9441 len = length(field[1])
9442 for (i = 2; i < nfields; i++) {
9444 keylen = length(key)
9445 if (S_is_set[key]) {
9447 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9448 len += length(value) + length(field[++i])
9459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9460 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9461 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9464 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
9465 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
9468 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9469 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
9470 # trailing colons and then remove the whole line if VPATH becomes empty
9471 # (actually we leave an empty line to preserve line numbers).
9472 if test "x
$srcdir" = x.; then
9473 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9492 fi # test -n "$CONFIG_FILES"
9494 # Set up the scripts for CONFIG_HEADERS section.
9495 # No need to generate them if there are no CONFIG_HEADERS.
9496 # This happens for instance with `./config.status Makefile'.
9497 if test -n "$CONFIG_HEADERS"; then
9498 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
9502 # Transform confdefs.h into an awk script `defines.awk', embedded as
9503 # here-document in config.status, that substitutes the proper values into
9504 # config.h.in to produce config.h.
9506 # Create a delimiter string that does not exist in confdefs.h, to ease
9507 # handling of long lines.
9509 for ac_last_try in false false :; do
9510 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
9511 if test -z "$ac_tt"; then
9513 elif $ac_last_try; then
9514 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
9516 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9520 # For the awk script, D is an array of macro values keyed by name,
9521 # likewise P contains macro parameters if any. Preserve backslash
9522 # newline sequences.
9524 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9526 s/.\{148\}/&'"$ac_delim"'/g
9529 s/^[ ]*#[ ]*define[ ][ ]*/ /
9536 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
9538 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
9542 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
9543 D["\
1"]=" \
3\\\\\\n
"\\/p
9545 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
9550 s/.\{148\}/&'"$ac_delim"'/g
9555 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
9558 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
9560 ' <confdefs.h | sed '
9561 s/'"$ac_delim"'/"\\\
9562 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9565 for (key in D) D_is_set[key] = 1
9568 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9570 split(line, arg, " ")
9571 if (arg[1] == "#") {
9575 defundef
= substr
(arg
[1], 2)
9578 split(mac1
, mac2
, "(") #)
9580 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
9581 if (D_is_set
[macro
]) {
9582 # Preserve the white space surrounding the "#".
9583 print prefix
"define", macro P
[macro
] D
[macro
]
9586 # Replace #undef with comments. This is necessary, for example,
9587 # in the case of _POSIX_SOURCE, which is predefined and required
9588 # on some systems where configure will not decide to define it.
9589 if (defundef
== "undef") {
9590 print
"/*", prefix defundef
, macro
, "*/"
9598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9599 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
9600 fi # test -n "$CONFIG_HEADERS"
9603 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9608 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9610 case $ac_mode$ac_tag in
9612 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
9613 :[FH
]-) ac_tag
=-:-;;
9614 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9631 -) ac_f
="$ac_tmp/stdin";;
9632 *) # Look for the file first in the build tree, then in the source tree
9633 # (if the path is not absolute). The absolute path cannot be DOS-style,
9634 # because $ac_f cannot contain `:'.
9638 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9640 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9642 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9643 as_fn_append ac_file_inputs
" '$ac_f'"
9646 # Let's still pretend it is `configure' which instantiates (i.e., don't
9647 # use $as_me), people would be surprised to read:
9648 # /* config.h. Generated by config.status. */
9649 configure_input
='Generated from '`
9650 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9652 if test x
"$ac_file" != x-
; then
9653 configure_input
="$ac_file. $configure_input"
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9655 $as_echo "$as_me: creating $ac_file" >&6;}
9657 # Neutralize special characters interpreted by sed in replacement strings.
9658 case $configure_input in #(
9659 *\
&* |
*\|
* |
*\\* )
9660 ac_sed_conf_input
=`$as_echo "$configure_input" |
9661 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9662 *) ac_sed_conf_input
=$configure_input;;
9666 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
9667 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
9672 ac_dir
=`$as_dirname -- "$ac_file" ||
9673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9674 X"$ac_file" : 'X\(//\)[^/]' \| \
9675 X"$ac_file" : 'X\(//\)$' \| \
9676 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9677 $as_echo X"$ac_file" |
9678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9695 as_dir
="$ac_dir"; as_fn_mkdir_p
9699 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9701 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9702 # A ".." for each directory in $ac_dir_suffix.
9703 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9704 case $ac_top_builddir_sub in
9705 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9706 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9709 ac_abs_top_builddir
=$ac_pwd
9710 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9711 # for backward compatibility:
9712 ac_top_builddir
=$ac_top_build_prefix
9715 .
) # We are building in place.
9717 ac_top_srcdir
=$ac_top_builddir_sub
9718 ac_abs_top_srcdir
=$ac_pwd ;;
9719 [\\/]* | ?
:[\\/]* ) # Absolute name.
9720 ac_srcdir
=$srcdir$ac_dir_suffix;
9721 ac_top_srcdir
=$srcdir
9722 ac_abs_top_srcdir
=$srcdir ;;
9724 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9725 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9726 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9728 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9738 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9739 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9744 # If the template does not know about datarootdir, expand it.
9745 # FIXME: This hack should be removed a few years after 2.60.
9746 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9757 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9758 *datarootdir
*) ac_datarootdir_seen
=yes;;
9759 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9761 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9764 ac_datarootdir_hack='
9765 s&@datadir@&$datadir&g
9766 s&@docdir@&$docdir&g
9767 s&@infodir@&$infodir&g
9768 s&@localedir@&$localedir&g
9769 s&@mandir@&$mandir&g
9770 s&\\\${datarootdir}&$datarootdir&g' ;;
9774 # Neutralize VPATH when `$srcdir' = `.'.
9775 # Shell code in configure.ac might set extrasub.
9776 # FIXME: do we really want to maintain this feature?
9777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9778 ac_sed_extra="$ac_vpsub
9781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9783 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9784 s|@configure_input@|
$ac_sed_conf_input|
;t t
9785 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9786 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9787 s
&@srcdir@
&$ac_srcdir&;t t
9788 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9789 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9790 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9791 s
&@builddir@
&$ac_builddir&;t t
9792 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9793 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9794 s
&@INSTALL@
&$ac_INSTALL&;t t
9795 $ac_datarootdir_hack
9797 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
9798 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9800 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9801 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
9802 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9803 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9805 which seems to be undefined. Please make sure it is defined" >&5
9806 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9807 which seems to be undefined. Please make sure it is defined" >&2;}
9809 rm -f "$ac_tmp/stdin"
9811 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9812 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9814 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9820 if test x"$ac_file" != x-; then
9822 $as_echo "/* $configure_input */" \
9823 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9824 } >"$ac_tmp/config.h" \
9825 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9826 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9828 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9831 mv "$ac_tmp/config.h" "$ac_file" \
9832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9835 $as_echo "/* $configure_input */" \
9836 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9837 || as_fn_error $? "could not create -" "$LINENO" 5
9841 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9842 $as_echo "$as_me: executing $ac_file commands" >&6;}
9847 case $ac_file$ac_mode in
9848 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9850 for subdir in ${CONFIG_SRC_SUBDIR}
9852 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
9854 "Makefile":F) case x$CONFIG_HEADERS in
9855 xconfig.h:config.in)
9866 ac_clean_files=$ac_clean_files_save
9868 test $ac_write_fail = 0 ||
9869 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9872 # configure is writing to config.log, and then calls config.status.
9873 # config.status does its own redirection, appending to config.log.
9874 # Unfortunately, on DOS this fails, as config.log is still kept open
9875 # by configure, so config.status won't be able to
write to it
; its
9876 # output is simply discarded. So we exec the FD to /dev/null,
9877 # effectively closing config.log, so it can be properly (re)opened and
9878 # appended to by config.status. When coming back to configure, we
9879 # need to make the FD available again.
9880 if test "$no_create" != yes; then
9882 ac_config_status_args
=
9883 test "$silent" = yes &&
9884 ac_config_status_args
="$ac_config_status_args --quiet"
9886 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9888 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9889 # would make configure fail if this is the last instruction.
9890 $ac_cs_success || as_fn_exit
1
9892 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9894 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}