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
684 MAINTAINER_MODE_FALSE
713 program_transform_name
726 enable_option_checking
727 enable_maintainer_mode
734 enable_build_warnings
735 enable_gdb_build_warnings
739 enable_inprocess_agent
741 ac_precious_vars
='build_alias
755 # Initialize some variables set by options.
757 ac_init_version
=false
758 ac_unrecognized_opts
=
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
769 program_transform_name
=s
,x
,x
,
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir
='${exec_prefix}/bin'
784 sbindir
='${exec_prefix}/sbin'
785 libexecdir
='${exec_prefix}/libexec'
786 datarootdir
='${prefix}/share'
787 datadir
='${datarootdir}'
788 sysconfdir
='${prefix}/etc'
789 sharedstatedir
='${prefix}/com'
790 localstatedir
='${prefix}/var'
791 includedir
='${prefix}/include'
792 oldincludedir
='/usr/include'
793 docdir
='${datarootdir}/doc/${PACKAGE}'
794 infodir
='${datarootdir}/info'
799 libdir
='${exec_prefix}/lib'
800 localedir
='${datarootdir}/locale'
801 mandir
='${datarootdir}/man'
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\
$ac_option
815 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 # Accept the important Cygnus configure options, so we can diagnose typos.
822 case $ac_dashdash$ac_option in
826 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
828 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
831 -build |
--build |
--buil |
--bui |
--bu)
832 ac_prev
=build_alias
;;
833 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
834 build_alias
=$ac_optarg ;;
836 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
837 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
838 ac_prev
=cache_file
;;
839 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
840 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
841 cache_file
=$ac_optarg ;;
844 cache_file
=config.cache
;;
846 -datadir |
--datadir |
--datadi |
--datad)
848 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
849 datadir
=$ac_optarg ;;
851 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
852 |
--dataroo |
--dataro |
--datar)
853 ac_prev
=datarootdir
;;
854 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
855 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
856 datarootdir
=$ac_optarg ;;
858 -disable-* |
--disable-*)
859 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
862 as_fn_error $?
"invalid feature name: $ac_useropt"
863 ac_useropt_orig
=$ac_useropt
864 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
869 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870 ac_unrecognized_sep
=', ';;
872 eval enable_
$ac_useropt=no
;;
874 -docdir |
--docdir |
--docdi |
--doc |
--do)
876 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
879 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
881 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
884 -enable-* |
--enable-*)
885 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
888 as_fn_error $?
"invalid feature name: $ac_useropt"
889 ac_useropt_orig
=$ac_useropt
890 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896 ac_unrecognized_sep
=', ';;
898 eval enable_
$ac_useropt=\
$ac_optarg ;;
900 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
901 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
902 |
--exec |
--exe |
--ex)
903 ac_prev
=exec_prefix
;;
904 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
905 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
906 |
--exec=* |
--exe=* |
--ex=*)
907 exec_prefix
=$ac_optarg ;;
909 -gas |
--gas |
--ga |
--g)
910 # Obsolete; use --with-gas.
913 -help |
--help |
--hel |
--he |
-h)
915 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
916 ac_init_help
=recursive
;;
917 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
918 ac_init_help
=short
;;
920 -host |
--host |
--hos |
--ho)
921 ac_prev
=host_alias
;;
922 -host=* |
--host=* |
--hos=* |
--ho=*)
923 host_alias
=$ac_optarg ;;
925 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
927 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
929 htmldir
=$ac_optarg ;;
931 -includedir |
--includedir |
--includedi |
--included |
--include \
932 |
--includ |
--inclu |
--incl |
--inc)
933 ac_prev
=includedir
;;
934 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
935 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
936 includedir
=$ac_optarg ;;
938 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
940 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
941 infodir
=$ac_optarg ;;
943 -libdir |
--libdir |
--libdi |
--libd)
945 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
948 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
949 |
--libexe |
--libex |
--libe)
950 ac_prev
=libexecdir
;;
951 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
952 |
--libexe=* |
--libex=* |
--libe=*)
953 libexecdir
=$ac_optarg ;;
955 -localedir |
--localedir |
--localedi |
--localed |
--locale)
957 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
958 localedir
=$ac_optarg ;;
960 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
961 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
962 ac_prev
=localstatedir
;;
963 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
964 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
965 localstatedir
=$ac_optarg ;;
967 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
969 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
973 # Obsolete; use --without-fp.
976 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
977 |
--no-cr |
--no-c |
-n)
980 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
981 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
984 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
985 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
986 |
--oldin |
--oldi |
--old |
--ol |
--o)
987 ac_prev
=oldincludedir
;;
988 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
989 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
990 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
991 oldincludedir
=$ac_optarg ;;
993 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
995 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
998 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
999 |
--program-pre |
--program-pr |
--program-p)
1000 ac_prev
=program_prefix
;;
1001 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1002 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1003 program_prefix
=$ac_optarg ;;
1005 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1006 |
--program-suf |
--program-su |
--program-s)
1007 ac_prev
=program_suffix
;;
1008 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1009 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1010 program_suffix
=$ac_optarg ;;
1012 -program-transform-name |
--program-transform-name \
1013 |
--program-transform-nam |
--program-transform-na \
1014 |
--program-transform-n |
--program-transform- \
1015 |
--program-transform |
--program-transfor \
1016 |
--program-transfo |
--program-transf \
1017 |
--program-trans |
--program-tran \
1018 |
--progr-tra |
--program-tr |
--program-t)
1019 ac_prev
=program_transform_name
;;
1020 -program-transform-name=* |
--program-transform-name=* \
1021 |
--program-transform-nam=* |
--program-transform-na=* \
1022 |
--program-transform-n=* |
--program-transform-=* \
1023 |
--program-transform=* |
--program-transfor=* \
1024 |
--program-transfo=* |
--program-transf=* \
1025 |
--program-trans=* |
--program-tran=* \
1026 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1027 program_transform_name
=$ac_optarg ;;
1029 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1031 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1032 pdfdir
=$ac_optarg ;;
1034 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1036 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1039 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1040 |
-silent |
--silent |
--silen |
--sile |
--sil)
1043 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1045 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1047 sbindir
=$ac_optarg ;;
1049 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1050 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1051 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1053 ac_prev
=sharedstatedir
;;
1054 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1055 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1056 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1058 sharedstatedir
=$ac_optarg ;;
1060 -site |
--site |
--sit)
1062 -site=* |
--site=* |
--sit=*)
1065 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1067 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1068 srcdir
=$ac_optarg ;;
1070 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1071 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1072 ac_prev
=sysconfdir
;;
1073 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1074 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1075 sysconfdir
=$ac_optarg ;;
1077 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1078 ac_prev
=target_alias
;;
1079 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1080 target_alias
=$ac_optarg ;;
1082 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1085 -version |
--version |
--versio |
--versi |
--vers |
-V)
1086 ac_init_version
=: ;;
1089 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1092 as_fn_error $?
"invalid package name: $ac_useropt"
1093 ac_useropt_orig
=$ac_useropt
1094 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1099 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep
=', ';;
1102 eval with_
$ac_useropt=\
$ac_optarg ;;
1104 -without-* |
--without-*)
1105 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1108 as_fn_error $?
"invalid package name: $ac_useropt"
1109 ac_useropt_orig
=$ac_useropt
1110 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116 ac_unrecognized_sep
=', ';;
1118 eval with_
$ac_useropt=no
;;
1121 # Obsolete; use --with-x.
1124 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1125 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1126 ac_prev
=x_includes
;;
1127 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1128 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1129 x_includes
=$ac_optarg ;;
1131 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1132 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1133 ac_prev
=x_libraries
;;
1134 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1135 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1136 x_libraries
=$ac_optarg ;;
1138 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information"
1143 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 case $ac_envvar in #(
1146 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1147 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1149 eval $ac_envvar=\
$ac_optarg
1150 export $ac_envvar ;;
1153 # FIXME: should be removed in autoconf 3.0.
1154 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1156 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163 if test -n "$ac_prev"; then
1164 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1165 as_fn_error $?
"missing argument to $ac_option"
1168 if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1171 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176 # Check all directory arguments for consistency.
1177 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
1182 eval ac_val
=\$
$ac_var
1183 # Remove trailing slashes.
1186 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\
$ac_val;;
1189 # Be sure to have absolute directory names.
1191 [\\/$
]* | ?
:[\\/]* ) continue;;
1192 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1194 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1197 # There might be people who depend on the old broken behavior: `$host'
1198 # used to hold the argument of --host etc.
1199 # FIXME: To remove some day.
1202 target
=$target_alias
1204 # FIXME: To remove some day.
1205 if test "x$host_alias" != x
; then
1206 if test "x$build_alias" = x
; then
1207 cross_compiling
=maybe
1208 elif test "x$build_alias" != "x$host_alias"; then
1214 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1216 test "$silent" = yes && exec 6>/dev
/null
1219 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di
=`ls -di .` &&
1221 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1222 as_fn_error $?
"working directory cannot be determined"
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 as_fn_error $?
"pwd does not report name of working directory"
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted
=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir
=`$as_dirname -- "$as_myself" ||
1232 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236 $as_echo X"$as_myself" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted
=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1263 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1265 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1277 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 for ac_var
in $ac_precious_vars; do
1280 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1282 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1287 # Report the --help message.
1289 if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1293 \`configure' configures this package to adapt to many kinds of systems.
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE. See below for descriptions of some of the useful variables.
1300 Defaults for the options are specified in brackets.
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking ...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313 Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1324 For better control, use the options below.
1326 Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
1351 --program-prefix=PREFIX prepend PREFIX to installed program names
1352 --program-suffix=SUFFIX append SUFFIX to installed program names
1353 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1356 --build=BUILD configure
for building on BUILD
[guessed
]
1357 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1358 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1362 if test -n "$ac_init_help"; then
1367 --disable-option-checking ignore unrecognized
--enable/--with options
1368 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1369 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1370 --enable-maintainer-mode
1371 enable make rules and dependencies not useful
(and
1372 sometimes confusing
) to the casual installer
1373 --disable-largefile omit support
for large files
1374 --enable-unit-tests Enable the inclusion of unit tests when compiling
1376 --enable-werror treat compile warnings as errors
1377 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1378 --enable-gdb-build-warnings
1379 enable GDB specific build-time compiler warnings
if
1381 --enable-inprocess-agent
1385 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1386 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1387 --with-ust=PATH Specify prefix directory
for the installed UST package
1388 Equivalent to
--with-ust-include=PATH
/include
1389 plus
--with-ust-lib=PATH
/lib
1390 --with-ust-include=PATH Specify directory
for installed UST include files
1391 --with-ust-lib=PATH Specify the directory
for the installed UST library
1392 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1393 --with-bugurl=URL Direct users to URL to report a bug
1394 --with-libthread-db=PATH
1395 use given libthread_db directly
1397 Some influential environment variables
:
1398 CC C compiler
command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1401 nonstandard directory
<lib dir
>
1402 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1403 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1404 you have headers
in a nonstandard directory
<include dir
>
1405 CXX C
++ compiler
command
1406 CXXFLAGS C
++ compiler flags
1409 Use these variables to override the choices made by
`configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1412 Report bugs to the package provider.
1417 if test "$ac_init_help" = "recursive"; then
1418 # If there are subdirs, report their specific --help.
1419 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420 test -d "$ac_dir" ||
1421 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1442 .) # We are building in place.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1466 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1476 generated by GNU Autoconf 2.69
1478 Copyright (C) 2012 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1485 ## ------------------------ ##
1486 ## Autoconf initialization. ##
1487 ## ------------------------ ##
1489 # ac_fn_c_try_compile LINENO
1490 # --------------------------
1491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492 ac_fn_c_try_compile ()
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495 rm -f conftest.$ac_objext
1496 if { { ac_try="$ac_compile"
1498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1499 *) ac_try_echo
=$ac_try;;
1501 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_compile") 2>conftest.err
1505 if test -s conftest.err
; then
1506 grep -v '^ *+' conftest.err
>conftest.er1
1507 cat conftest.er1
>&5
1508 mv -f conftest.er1 conftest.err
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; } && {
1512 test -z "$ac_c_werror_flag" ||
1513 test ! -s conftest.err
1514 } && test -s conftest.
$ac_objext; then :
1517 $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.
$ac_ext >&5
1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523 as_fn_set_status
$ac_retval
1525 } # ac_fn_c_try_compile
1527 # ac_fn_cxx_try_compile LINENO
1528 # ----------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_cxx_try_compile
()
1532 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1533 rm -f conftest.
$ac_objext
1534 if { { ac_try
="$ac_compile"
1536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_cxx_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
1563 } # ac_fn_cxx_try_compile
1565 # ac_fn_c_try_cpp LINENO
1566 # ----------------------
1567 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 if { { ac_try="$ac_cpp conftest.$ac_ext"
1573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1574 *) ac_try_echo
=$ac_try;;
1576 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1580 if test -s conftest.err
; then
1581 grep -v '^ *+' conftest.err
>conftest.er1
1582 cat conftest.er1
>&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } > conftest.i
&& {
1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.
$ac_ext >&5
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status
$ac_retval
1602 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1603 # -------------------------------------------------------
1604 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1605 # the include files in INCLUDES and setting the cache variable VAR
1607 ac_fn_c_check_header_mongrel
()
1609 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1610 if eval \
${$3+:} false
; then :
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612 $as_echo_n "checking for $2... " >&6; }
1613 if eval \
${$3+:} false
; then :
1614 $as_echo_n "(cached) " >&6
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 $as_echo "$ac_res" >&6; }
1620 # Is the header compilable?
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1622 $as_echo_n "checking $2 usability... " >&6; }
1623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1628 if ac_fn_c_try_compile
"$LINENO"; then :
1629 ac_header_compiler
=yes
1631 ac_header_compiler
=no
1633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1635 $as_echo "$ac_header_compiler" >&6; }
1637 # Is the header present?
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1639 $as_echo_n "checking $2 presence... " >&6; }
1640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1644 if ac_fn_c_try_cpp
"$LINENO"; then :
1645 ac_header_preproc
=yes
1647 ac_header_preproc
=no
1649 rm -f conftest.err conftest.i conftest.
$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1651 $as_echo "$ac_header_preproc" >&6; }
1653 # So? What about this header?
1654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1657 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1663 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1665 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1667 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1669 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \
${$3+:} false
; then :
1677 $as_echo_n "(cached) " >&6
1679 eval "$3=\$ac_header_compiler"
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 } # ac_fn_c_check_header_mongrel
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1695 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1696 if { { ac_try
="$ac_link"
1698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1709 *) ac_try_echo
=$ac_try;;
1711 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.
$ac_ext >&5
1723 ac_retval
=$ac_status
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status
$ac_retval
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile
()
1737 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \
${$3+:} false
; then :
1741 $as_echo_n "(cached) " >&6
1743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1748 if ac_fn_c_try_compile
"$LINENO"; then :
1753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 } # ac_fn_c_check_header_compile
1762 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1763 # -------------------------------------------
1764 # Tests whether TYPE exists after having included INCLUDES, setting cache
1765 # variable VAR accordingly.
1766 ac_fn_c_check_type
()
1768 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \
${$3+:} false
; then :
1772 $as_echo_n "(cached) " >&6
1775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1787 if ac_fn_c_try_compile
"$LINENO"; then :
1788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1800 if ac_fn_c_try_compile
"$LINENO"; then :
1805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 } # ac_fn_c_check_type
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1821 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1822 rm -f conftest.
$ac_objext conftest
$ac_exeext
1823 if { { ac_try
="$ac_link"
1825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 test -x conftest$ac_exeext
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1860 } # ac_fn_c_try_link
1862 # ac_fn_c_check_func LINENO FUNC VAR
1863 # ----------------------------------
1864 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1865 ac_fn_c_check_func ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1877 #define $2 innocuous_$2
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $2 (); below.
1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1882 <limits.h> exists even on freestanding compilers. */
1885 # include <limits.h>
1887 # include <assert.h>
1892 /* Override any GCC internal prototype to avoid an error.
1893 Use char because int might match the return type of a GCC
1894 builtin and then its argument prototype would still apply. */
1899 /* The GNU C library defines this for functions which it implements
1900 to always fail with ENOSYS. Some functions are actually named
1901 something starting with __ and the normal name is an alias. */
1902 #if defined __stub_$2 || defined __stub___$2
1914 if ac_fn_c_try_link "$LINENO"; then :
1919 rm -f core conftest.err conftest.$ac_objext \
1920 conftest$ac_exeext conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_func
1929 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1930 # ---------------------------------------------
1931 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1933 ac_fn_c_check_decl ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1937 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1939 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1949 #ifndef $as_decl_name
1951 (void) $as_decl_use;
1953 (void) $as_decl_name;
1961 if ac_fn_c_try_compile "$LINENO"; then :
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 } # ac_fn_c_check_decl
1975 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1976 # --------------------------------------------
1977 # Tries to find the compile-time value of EXPR in a program that includes
1978 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1980 ac_fn_c_compute_int ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if test "$cross_compiling" = yes; then
1984 # Depending upon the size, compute the lo and hi bounds.
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1991 static int test_array [1 - 2 * !(($2) >= 0)];
1993 return test_array [0];
1999 if ac_fn_c_try_compile "$LINENO"; then :
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2008 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2010 return test_array [0];
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 ac_hi=$ac_mid; break
2019 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2020 if test $ac_lo -le $ac_mid; then
2024 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2035 static int test_array [1 - 2 * !(($2) < 0)];
2037 return test_array [0];
2043 if ac_fn_c_try_compile "$LINENO"; then :
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2052 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2054 return test_array [0];
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_lo=$ac_mid; break
2063 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2064 if test $ac_mid -le $ac_hi; then
2068 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 # Binary search between lo and hi bounds.
2079 while test "x$ac_lo" != "x$ac_hi"; do
2080 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089 return test_array [0];
2095 if ac_fn_c_try_compile "$LINENO"; then :
2098 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2110 static long int longval () { return $2; }
2111 static unsigned long int ulongval () { return $2; }
2118 FILE *f = fopen ("conftest.val", "w");
2123 long int i = longval ();
2126 fprintf (f, "%ld", i);
2130 unsigned long int i = ulongval ();
2133 fprintf (f, "%lu", i);
2135 /* Do not output a trailing newline, as this causes \r\n confusion
2136 on some platforms. */
2137 return ferror (f) || fclose (f) != 0;
2143 if ac_fn_c_try_run "$LINENO"; then :
2144 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2149 conftest.$ac_objext conftest.beam conftest.$ac_ext
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154 as_fn_set_status $ac_retval
2156 } # ac_fn_c_compute_int
2158 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2159 # ----------------------------------------------------
2160 # Tries to find if the field MEMBER exists in type AGGR, after including
2161 # INCLUDES, setting cache variable VAR accordingly.
2162 ac_fn_c_check_member ()
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2166 $as_echo_n "checking for $2.$3... " >&6; }
2167 if eval \${$4+:} false; then :
2168 $as_echo_n "(cached) " >&6
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2183 if ac_fn_c_try_compile "$LINENO"; then :
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2193 if (sizeof ac_aggr.$3)
2199 if ac_fn_c_try_compile "$LINENO"; then :
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210 $as_echo "$ac_res" >&6; }
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213 } # ac_fn_c_check_member
2214 cat >config.log <<_ACEOF
2215 This file contains any messages produced by compilers while
2216 running configure, to aid debugging if configure makes a mistake.
2218 It was created by $as_me, which was
2219 generated by GNU Autoconf 2.69. Invocation command line was
2231 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2232 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2233 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2234 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2235 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2237 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2238 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2240 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2241 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2242 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2243 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2244 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2245 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2246 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 test -z "$as_dir" && as_dir=.
2255 $as_echo "PATH: $as_dir"
2271 # Keep a trace of the command line.
2272 # Strip out --no-create and --no-recursion so they do not pile up.
2273 # Strip out --silent because we don't want to record it for future runs.
2274 # Also quote any args containing shell meta-characters.
2275 # Make two passes to allow for proper duplicate-argument suppression.
2279 ac_must_keep_next=false
2285 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2287 | -silent | --silent | --silen | --sile | --sil)
2290 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2293 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2295 as_fn_append ac_configure_args1 " '$ac_arg'"
2296 if test $ac_must_keep_next = true; then
2297 ac_must_keep_next=false # Got value, back to normal.
2300 *=* | --config-cache | -C | -disable-* | --disable-* \
2301 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2302 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2303 | -with-* | --with-* | -without-* | --without-* | --x)
2304 case "$ac_configure_args0 " in
2305 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2308 -* ) ac_must_keep_next=true ;;
2311 as_fn_append ac_configure_args " '$ac_arg'"
2316 { ac_configure_args0=; unset ac_configure_args0;}
2317 { ac_configure_args1=; unset ac_configure_args1;}
2319 # When interrupted or exit'd, cleanup temporary files, and complete
2320 # config.log. We remove comments because anyway the quotes in there
2321 # would cause problems or look ugly.
2322 # WARNING: Use '\'' to represent an apostrophe within the trap.
2323 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2324 trap 'exit_status=$?
2325 # Save into config.log some information that might help in debugging.
2329 $as_echo "## ---------------- ##
2330 ## Cache variables. ##
2331 ## ---------------- ##"
2333 # The following way of writing the cache mishandles newlines in values,
2335 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2336 eval ac_val=\$$ac_var
2340 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2341 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2344 _ | IFS | as_nl) ;; #(
2345 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2346 *) { eval $ac_var=; unset $ac_var;} ;;
2351 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2352 *${as_nl}ac_space=\ *)
2354 "s/'\''/'\''\\\\'\'''\''/g;
2355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2358 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2365 $as_echo "## ----------------- ##
2366 ## Output variables. ##
2367 ## ----------------- ##"
2369 for ac_var in $ac_subst_vars
2371 eval ac_val=\$$ac_var
2373 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2375 $as_echo "$ac_var='\''$ac_val'\''"
2379 if test -n "$ac_subst_files"; then
2380 $as_echo "## ------------------- ##
2381 ## File substitutions. ##
2382 ## ------------------- ##"
2384 for ac_var in $ac_subst_files
2386 eval ac_val=\$$ac_var
2388 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2390 $as_echo "$ac_var='\''$ac_val'\''"
2395 if test -s confdefs.h; then
2396 $as_echo "## ----------- ##
2403 test "$ac_signal" != 0 &&
2404 $as_echo "$as_me: caught signal $ac_signal"
2405 $as_echo "$as_me: exit $exit_status"
2407 rm -f core *.core core.conftest.* &&
2408 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2411 for ac_signal in 1 2 13 15; do
2412 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2416 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2417 rm -f -r conftest* confdefs.h
2419 $as_echo "/* confdefs.h */" > confdefs.h
2421 # Predefined preprocessor variables.
2423 cat >>confdefs.h <<_ACEOF
2424 #define PACKAGE_NAME "$PACKAGE_NAME"
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2435 cat >>confdefs.h <<_ACEOF
2436 #define PACKAGE_STRING "$PACKAGE_STRING"
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_URL "$PACKAGE_URL"
2448 # Let the site file select an alternate cache file if it wants to.
2449 # Prefer an explicitly selected file to automatically selected ones.
2452 if test -n "$CONFIG_SITE"; then
2453 # We do not want a PATH search for config.site.
2454 case $CONFIG_SITE in #((
2455 -*) ac_site_file1=./$CONFIG_SITE;;
2456 */*) ac_site_file1=$CONFIG_SITE;;
2457 *) ac_site_file1=./$CONFIG_SITE;;
2459 elif test "x$prefix" != xNONE; then
2460 ac_site_file1=$prefix/share/config.site
2461 ac_site_file2=$prefix/etc/config.site
2463 ac_site_file1=$ac_default_prefix/share/config.site
2464 ac_site_file2=$ac_default_prefix/etc/config.site
2466 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2468 test "x$ac_site_file" = xNONE && continue
2469 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2471 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2472 sed 's/^/| /' "$ac_site_file" >&5
2474 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2476 as_fn_error $? "failed to load site
script $ac_site_file
2477 See \
`config.log' for more details" "$LINENO" 5; }
2481 if test -r "$cache_file"; then
2482 # Some versions of bash will fail to source /dev/null (special files
2483 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2484 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2486 $as_echo "$as_me: loading cache $cache_file" >&6;}
2488 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2489 *) . "./$cache_file";;
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2494 $as_echo "$as_me: creating cache $cache_file" >&6;}
2498 # Check that the precious variables saved in the cache have kept the same
2500 ac_cache_corrupted=false
2501 for ac_var in $ac_precious_vars; do
2502 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2503 eval ac_new_set=\$ac_env_${ac_var}_set
2504 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2505 eval ac_new_val=\$ac_env_${ac_var}_value
2506 case $ac_old_set,$ac_new_set in
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2509 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2510 ac_cache_corrupted=: ;;
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2513 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2514 ac_cache_corrupted=: ;;
2517 if test "x$ac_old_val" != "x$ac_new_val"; then
2518 # differences in whitespace do not lead to failure.
2519 ac_old_val_w=`echo x
$ac_old_val`
2520 ac_new_val_w=`echo x
$ac_new_val`
2521 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2523 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2524 ac_cache_corrupted=:
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2527 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2528 eval $ac_var=\$ac_old_val
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2531 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2533 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2536 # Pass precious variables to config.status.
2537 if test "$ac_new_set" = set; then
2539 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2540 *) ac_arg=$ac_var=$ac_new_val ;;
2542 case " $ac_configure_args " in
2543 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2544 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2548 if $ac_cache_corrupted; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2552 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2553 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2555 ## -------------------- ##
2556 ## Main body of script. ##
2557 ## -------------------- ##
2560 ac_cpp='$CPP $CPPFLAGS'
2561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 ac_config_headers="$ac_config_headers config.h:config.in"
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2574 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2575 # Check whether --enable-maintainer-mode was given.
2576 if test "${enable_maintainer_mode+set}" = set; then :
2577 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2579 USE_MAINTAINER_MODE=no
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2583 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2584 if test $USE_MAINTAINER_MODE = yes; then
2585 MAINTAINER_MODE_TRUE=
2586 MAINTAINER_MODE_FALSE='#'
2588 MAINTAINER_MODE_TRUE='#'
2589 MAINTAINER_MODE_FALSE=
2592 MAINT=$MAINTAINER_MODE_TRUE
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601 if test -n "$ac_tool_prefix"; then
2602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2603 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if ${ac_cv_prog_CC+:} false; then :
2607 $as_echo_n "(cached) " >&6
2609 if test -n "$CC"; then
2610 ac_cv_prog_CC="$CC" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 if test -n "$CC"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2632 $as_echo "$CC" >&6; }
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2640 if test -z "$ac_cv_prog_CC"; then
2642 # Extract the first word of "gcc", so it can be a program name with args.
2643 set dummy gcc; ac_word=$2
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2647 $as_echo_n "(cached) " >&6
2649 if test -n "$ac_ct_CC"; then
2650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659 ac_cv_prog_ac_ct_CC="gcc"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2670 if test -n "$ac_ct_CC"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2672 $as_echo "$ac_ct_CC" >&6; }
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675 $as_echo "no" >&6; }
2678 if test "x$ac_ct_CC" = x; then
2681 case $cross_compiling:$ac_tool_warned in
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685 ac_tool_warned=yes ;;
2693 if test -z "$CC"; then
2694 if test -n "$ac_tool_prefix"; then
2695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2696 set dummy ${ac_tool_prefix}cc; ac_word=$2
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if ${ac_cv_prog_CC+:} false; then :
2700 $as_echo_n "(cached) " >&6
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712 ac_cv_prog_CC="${ac_tool_prefix}cc"
2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 if test -n "$CC"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2725 $as_echo "$CC" >&6; }
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2734 if test -z "$CC"; then
2735 # Extract the first word of "cc", so it can be a program name with args.
2736 set dummy cc; ac_word=$2
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if ${ac_cv_prog_CC+:} false; then :
2740 $as_echo_n "(cached) " >&6
2742 if test -n "$CC"; then
2743 ac_cv_prog_CC="$CC" # Let the user override the test.
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2754 ac_prog_rejected=yes
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 if test $ac_prog_rejected = yes; then
2766 # We found a bogon in the path, so make sure we never use it.
2767 set dummy $ac_cv_prog_CC
2769 if test $# != 0; then
2770 # We chose a different compiler from the bogus one.
2771 # However, it has the same basename, so the bogon will be chosen
2772 # first if we set CC to just the basename; use the full file name.
2774 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2780 if test -n "$CC"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2782 $as_echo "$CC" >&6; }
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2790 if test -z "$CC"; then
2791 if test -n "$ac_tool_prefix"; then
2792 for ac_prog in cl.exe
2794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_CC+:} false; then :
2799 $as_echo_n "(cached) " >&6
2801 if test -n "$CC"; then
2802 ac_cv_prog_CC="$CC" # Let the user override the test.
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824 $as_echo "$CC" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2831 test -n "$CC" && break
2834 if test -z "$CC"; then
2836 for ac_prog in cl.exe
2838 # Extract the first word of "$ac_prog", so it can be a program name with args.
2839 set dummy $ac_prog; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2843 $as_echo_n "(cached) " >&6
2845 if test -n "$ac_ct_CC"; then
2846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_ac_ct_CC="$ac_prog"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2866 if test -n "$ac_ct_CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2868 $as_echo "$ac_ct_CC" >&6; }
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2875 test -n "$ac_ct_CC" && break
2878 if test "x$ac_ct_CC" = x; then
2881 case $cross_compiling:$ac_tool_warned in
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885 ac_tool_warned=yes ;;
2894 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2897 See \
`config.log' for more details" "$LINENO" 5; }
2899 # Provide some information about the compiler.
2900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2903 for ac_option in --version -v -V -qversion; do
2904 { { ac_try="$ac_compiler $ac_option >&5"
2906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2907 *) ac_try_echo
=$ac_try;;
2909 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910 $as_echo "$ac_try_echo"; } >&5
2911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2913 if test -s conftest.err
; then
2915 ... rest of stderr output deleted ...
2916 10q' conftest.err
>conftest.er1
2917 cat conftest.er1
>&5
2919 rm -f conftest.er1 conftest.err
2920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2921 test $ac_status = 0; }
2924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2925 /* end confdefs.h. */
2935 ac_clean_files_save
=$ac_clean_files
2936 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2937 # Try to create an executable without -o first, disregard a.out.
2938 # It will help us diagnose broken compilers, and finding out an intuition
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2941 $as_echo_n "checking whether the C compiler works... " >&6; }
2942 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2944 # The possible output files:
2945 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2948 for ac_file
in $ac_files
2951 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2952 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2957 if { { ac_try
="$ac_link_default"
2959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2963 $as_echo "$ac_try_echo"; } >&5
2964 (eval "$ac_link_default") 2>&5
2966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2967 test $ac_status = 0; }; then :
2968 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2969 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2970 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2971 # so that the user can short-circuit this test for compilers unknown to
2973 for ac_file in $ac_files ''
2975 test -f "$ac_file" || continue
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2980 # We found the default executable, but exeext='' is most
2984 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2986 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2988 # We set ac_cv_exeext here because the later test for it is not
2989 # safe: cross compilers may not add the suffix if given an `-o'
2990 # argument, so we may need to know it at that point already.
2991 # Even if this section looks crufty: it has the advantage of
2998 test "$ac_cv_exeext" = no && ac_cv_exeext=
3003 if test -z "$ac_file"; then :
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 $as_echo "$as_me: failed program was:" >&5
3007 sed 's
/^
/|
/' conftest.$ac_ext >&5
3009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3010 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3011 as_fn_error 77 "C compiler cannot create executables
3012 See \`config.log
' for more details" "$LINENO" 5; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3015 $as_echo "yes" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3018 $as_echo_n "checking for C compiler default output file name... " >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3020 $as_echo "$ac_file" >&6; }
3021 ac_exeext=$ac_cv_exeext
3023 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3024 ac_clean_files=$ac_clean_files_save
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3026 $as_echo_n "checking for suffix of executables... " >&6; }
3027 if { { ac_try="$ac_link"
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_link") 2>&5
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }; then :
3038 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3039 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3040 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3042 for ac_file
in conftest.exe conftest conftest.
*; do
3043 test -f "$ac_file" ||
continue
3045 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3046 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3055 See \`config.log' for more details" "$LINENO" 5; }
3057 rm -f conftest conftest
$ac_cv_exeext
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3059 $as_echo "$ac_cv_exeext" >&6; }
3061 rm -f conftest.
$ac_ext
3062 EXEEXT
=$ac_cv_exeext
3064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3070 FILE *f = fopen ("conftest.out", "w");
3071 return ferror (f) || fclose (f) != 0;
3077 ac_clean_files
="$ac_clean_files conftest.out"
3078 # Check that the compiler produces executables we can run. If not, either
3079 # the compiler is broken, or we cross compile.
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3081 $as_echo_n "checking whether we are cross compiling... " >&6; }
3082 if test "$cross_compiling" != yes; then
3083 { { ac_try
="$ac_link"
3085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_link") 2>&5
3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093 test $ac_status = 0; }
3094 if { ac_try='./conftest$ac_cv_exeext'
3095 { { case "(($ac_try" in
3096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3097 *) ac_try_echo
=$ac_try;;
3099 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100 $as_echo "$ac_try_echo"; } >&5
3101 (eval "$ac_try") 2>&5
3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 test $ac_status = 0; }; }; then
3107 if test "$cross_compiling" = maybe
; then
3110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3112 as_fn_error $?
"cannot run C compiled programs.
3113 If you meant to cross compile, use \`--host'.
3114 See \`config.log' for more details" "$LINENO" 5; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3119 $as_echo "$cross_compiling" >&6; }
3121 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3122 ac_clean_files
=$ac_clean_files_save
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3124 $as_echo_n "checking for suffix of object files... " >&6; }
3125 if ${ac_cv_objext+:} false
; then :
3126 $as_echo_n "(cached) " >&6
3128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3139 rm -f conftest.o conftest.obj
3140 if { { ac_try
="$ac_compile"
3142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146 $as_echo "$ac_try_echo"; } >&5
3147 (eval "$ac_compile") 2>&5
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }; then :
3151 for ac_file in conftest.o conftest.obj conftest.*; do
3152 test -f "$ac_file" || continue;
3154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3155 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3160 $as_echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3166 See \
`config.log' for more details" "$LINENO" 5; }
3168 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3171 $as_echo "$ac_cv_objext" >&6; }
3172 OBJEXT=$ac_cv_objext
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3175 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3176 if ${ac_cv_c_compiler_gnu+:} false; then :
3177 $as_echo_n "(cached) " >&6
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3193 if ac_fn_c_try_compile "$LINENO"; then :
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3203 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3204 if test $ac_compiler_gnu = yes; then
3209 ac_test_CFLAGS=${CFLAGS+set}
3210 ac_save_CFLAGS=$CFLAGS
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3212 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3213 if ${ac_cv_prog_cc_g+:} false; then :
3214 $as_echo_n "(cached) " >&6
3216 ac_save_c_werror_flag=$ac_c_werror_flag
3217 ac_c_werror_flag=yes
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3231 if ac_fn_c_try_compile "$LINENO"; then :
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3246 if ac_fn_c_try_compile "$LINENO"; then :
3249 ac_c_werror_flag=$ac_save_c_werror_flag
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3262 if ac_fn_c_try_compile "$LINENO"; then :
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 ac_c_werror_flag=$ac_save_c_werror_flag
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3273 $as_echo "$ac_cv_prog_cc_g" >&6; }
3274 if test "$ac_test_CFLAGS" = set; then
3275 CFLAGS=$ac_save_CFLAGS
3276 elif test $ac_cv_prog_cc_g = yes; then
3277 if test "$GCC" = yes; then
3283 if test "$GCC" = yes; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3290 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3291 if ${ac_cv_prog_cc_c89+:} false; then :
3292 $as_echo_n "(cached) " >&6
3294 ac_cv_prog_cc_c89=no
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3302 struct buf { int x; };
3303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3304 static char *e (p, i)
3310 static char *f (char * (*g) (char **, int), char **p, ...)
3315 s = g (p, va_arg (v,int));
3320 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3321 function prototypes and stuff, but not '\xHH' hex character constants.
3322 These don't provoke an error unfortunately, instead are silently treated
3323 as 'x'. The following induces an error, until -std is added to get
3324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3325 array size at least. It's necessary to write '\x00'==0 to get something
3326 that's true only with -std. */
3327 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3329 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3330 inside strings and character constants. */
3332 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3334 int test (int i, double x);
3335 struct s1 {int (*f) (int a);};
3336 struct s2 {int (*f) (double a);};
3337 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3343 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3348 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3349 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3351 CC="$ac_save_CC $ac_arg"
3352 if ac_fn_c_try_compile "$LINENO"; then :
3353 ac_cv_prog_cc_c89=$ac_arg
3355 rm -f core conftest.err conftest.$ac_objext
3356 test "x$ac_cv_prog_cc_c89" != "xno" && break
3358 rm -f conftest.$ac_ext
3363 case "x$ac_cv_prog_cc_c89" in
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3366 $as_echo "none needed" >&6; } ;;
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3369 $as_echo "unsupported" >&6; } ;;
3371 CC="$CC $ac_cv_prog_cc_c89"
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3373 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3375 if test "x$ac_cv_prog_cc_c89" != xno; then :
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386 ac_cpp='$CXXCPP $CPPFLAGS'
3387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3390 if test -z "$CXX"; then
3391 if test -n "$CCC"; then
3394 if test -n "$ac_tool_prefix"; then
3395 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_CXX+:} false; then :
3402 $as_echo_n "(cached) " >&6
3404 if test -n "$CXX"; then
3405 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 if test -n "$CXX"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3427 $as_echo "$CXX" >&6; }
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3434 test -n "$CXX" && break
3437 if test -z "$CXX"; then
3439 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3441 # Extract the first word of "$ac_prog", so it can be a program name with args.
3442 set dummy $ac_prog; ac_word=$2
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 $as_echo_n "checking for $ac_word... " >&6; }
3445 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3446 $as_echo_n "(cached) " >&6
3448 if test -n "$ac_ct_CXX"; then
3449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458 ac_cv_prog_ac_ct_CXX="$ac_prog"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3469 if test -n "$ac_ct_CXX"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3471 $as_echo "$ac_ct_CXX" >&6; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3478 test -n "$ac_ct_CXX" && break
3481 if test "x$ac_ct_CXX" = x; then
3484 case $cross_compiling:$ac_tool_warned in
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3488 ac_tool_warned=yes ;;
3496 # Provide some information about the compiler.
3497 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3500 for ac_option in --version -v -V -qversion; do
3501 { { ac_try="$ac_compiler $ac_option >&5"
3503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3504 *) ac_try_echo
=$ac_try;;
3506 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3510 if test -s conftest.err
; then
3512 ... rest of stderr output deleted ...
3513 10q' conftest.err
>conftest.er1
3514 cat conftest.er1
>&5
3516 rm -f conftest.er1 conftest.err
3517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518 test $ac_status = 0; }
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3522 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3523 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3524 $as_echo_n "(cached) " >&6
3526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3540 if ac_fn_cxx_try_compile
"$LINENO"; then :
3545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3546 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3550 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3551 if test $ac_compiler_gnu = yes; then
3556 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3557 ac_save_CXXFLAGS
=$CXXFLAGS
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3559 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3560 if ${ac_cv_prog_cxx_g+:} false
; then :
3561 $as_echo_n "(cached) " >&6
3563 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3564 ac_cxx_werror_flag
=yes
3567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3578 if ac_fn_cxx_try_compile
"$LINENO"; then :
3579 ac_cv_prog_cxx_g
=yes
3582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3593 if ac_fn_cxx_try_compile
"$LINENO"; then :
3596 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3609 if ac_fn_cxx_try_compile
"$LINENO"; then :
3610 ac_cv_prog_cxx_g
=yes
3612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3617 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3620 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3621 if test "$ac_test_CXXFLAGS" = set; then
3622 CXXFLAGS
=$ac_save_CXXFLAGS
3623 elif test $ac_cv_prog_cxx_g = yes; then
3624 if test "$GXX" = yes; then
3630 if test "$GXX" = yes; then
3637 ac_cpp
='$CPP $CPPFLAGS'
3638 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3644 ac_cpp
='$CPP $CPPFLAGS'
3645 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3649 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3650 # On Suns, sometimes $CPP names a directory.
3651 if test -n "$CPP" && test -d "$CPP"; then
3654 if test -z "$CPP"; then
3655 if ${ac_cv_prog_CPP+:} false
; then :
3656 $as_echo_n "(cached) " >&6
3658 # Double quotes because CPP needs to be expanded
3659 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3662 for ac_c_preproc_warn_flag
in '' yes
3664 # Use a header file that comes with gcc, so configuring glibc
3665 # with a fresh cross-compiler works.
3666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3667 # <limits.h> exists even on freestanding compilers.
3668 # On the NeXT, cc -E runs the code through the compiler's parser,
3669 # not just through cpp. "Syntax error" is here to catch this case.
3670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3673 # include <limits.h>
3675 # include <assert.h>
3679 if ac_fn_c_try_cpp
"$LINENO"; then :
3682 # Broken: fails on valid input.
3685 rm -f conftest.err conftest.i conftest.
$ac_ext
3687 # OK, works on sane cases. Now check whether nonexistent headers
3688 # can be detected and how.
3689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3691 #include <ac_nonexistent.h>
3693 if ac_fn_c_try_cpp
"$LINENO"; then :
3694 # Broken: success on invalid input.
3697 # Passes both tests.
3701 rm -f conftest.err conftest.i conftest.
$ac_ext
3704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3705 rm -f conftest.i conftest.err conftest.
$ac_ext
3706 if $ac_preproc_ok; then :
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3719 $as_echo "$CPP" >&6; }
3721 for ac_c_preproc_warn_flag
in '' yes
3723 # Use a header file that comes with gcc, so configuring glibc
3724 # with a fresh cross-compiler works.
3725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3726 # <limits.h> exists even on freestanding compilers.
3727 # On the NeXT, cc -E runs the code through the compiler's parser,
3728 # not just through cpp. "Syntax error" is here to catch this case.
3729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3732 # include <limits.h>
3734 # include <assert.h>
3738 if ac_fn_c_try_cpp
"$LINENO"; then :
3741 # Broken: fails on valid input.
3744 rm -f conftest.err conftest.i conftest.
$ac_ext
3746 # OK, works on sane cases. Now check whether nonexistent headers
3747 # can be detected and how.
3748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750 #include <ac_nonexistent.h>
3752 if ac_fn_c_try_cpp
"$LINENO"; then :
3753 # Broken: success on invalid input.
3756 # Passes both tests.
3760 rm -f conftest.err conftest.i conftest.
$ac_ext
3763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3764 rm -f conftest.i conftest.err conftest.
$ac_ext
3765 if $ac_preproc_ok; then :
3768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3770 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3771 See \`config.log' for more details" "$LINENO" 5; }
3775 ac_cpp
='$CPP $CPPFLAGS'
3776 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3782 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3783 if ${ac_cv_path_GREP+:} false
; then :
3784 $as_echo_n "(cached) " >&6
3786 if test -z "$GREP"; then
3787 ac_path_GREP_found
=false
3788 # Loop through the user's path and test for each of PROGNAME-LIST
3789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3790 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3793 test -z "$as_dir" && as_dir
=.
3794 for ac_prog
in grep ggrep
; do
3795 for ac_exec_ext
in '' $ac_executable_extensions; do
3796 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3797 as_fn_executable_p
"$ac_path_GREP" ||
continue
3798 # Check for GNU ac_path_GREP and select it if it is found.
3799 # Check for GNU $ac_path_GREP
3800 case `"$ac_path_GREP" --version 2>&1` in
3802 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3805 $as_echo_n 0123456789 >"conftest.in"
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
3811 $as_echo 'GREP' >> "conftest.nl"
3812 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3813 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3814 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3815 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_GREP
="$ac_path_GREP"
3818 ac_path_GREP_max
=$ac_count
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3823 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3826 $ac_path_GREP_found && break 3
3831 if test -z "$ac_cv_path_GREP"; then
3832 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3835 ac_cv_path_GREP
=$GREP
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3840 $as_echo "$ac_cv_path_GREP" >&6; }
3841 GREP
="$ac_cv_path_GREP"
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3845 $as_echo_n "checking for egrep... " >&6; }
3846 if ${ac_cv_path_EGREP+:} false
; then :
3847 $as_echo_n "(cached) " >&6
3849 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3850 then ac_cv_path_EGREP
="$GREP -E"
3852 if test -z "$EGREP"; then
3853 ac_path_EGREP_found
=false
3854 # Loop through the user's path and test for each of PROGNAME-LIST
3855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3856 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3859 test -z "$as_dir" && as_dir
=.
3860 for ac_prog
in egrep; do
3861 for ac_exec_ext
in '' $ac_executable_extensions; do
3862 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3863 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3864 # Check for GNU ac_path_EGREP and select it if it is found.
3865 # Check for GNU $ac_path_EGREP
3866 case `"$ac_path_EGREP" --version 2>&1` in
3868 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3871 $as_echo_n 0123456789 >"conftest.in"
3874 cat "conftest.in" "conftest.in" >"conftest.tmp"
3875 mv "conftest.tmp" "conftest.in"
3876 cp "conftest.in" "conftest.nl"
3877 $as_echo 'EGREP' >> "conftest.nl"
3878 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3879 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3880 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3881 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3882 # Best one so far, save it but keep looking for a better one
3883 ac_cv_path_EGREP
="$ac_path_EGREP"
3884 ac_path_EGREP_max
=$ac_count
3886 # 10*(2^10) chars as input seems more than enough
3887 test $ac_count -gt 10 && break
3889 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3892 $ac_path_EGREP_found && break 3
3897 if test -z "$ac_cv_path_EGREP"; then
3898 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3901 ac_cv_path_EGREP
=$EGREP
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3907 $as_echo "$ac_cv_path_EGREP" >&6; }
3908 EGREP
="$ac_cv_path_EGREP"
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3912 $as_echo_n "checking for ANSI C header files... " >&6; }
3913 if ${ac_cv_header_stdc+:} false
; then :
3914 $as_echo_n "(cached) " >&6
3916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3931 if ac_fn_c_try_compile
"$LINENO"; then :
3932 ac_cv_header_stdc
=yes
3934 ac_cv_header_stdc
=no
3936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3938 if test $ac_cv_header_stdc = yes; then
3939 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3946 $EGREP "memchr" >/dev
/null
2>&1; then :
3949 ac_cv_header_stdc
=no
3955 if test $ac_cv_header_stdc = yes; then
3956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3963 $EGREP "free" >/dev
/null
2>&1; then :
3966 ac_cv_header_stdc
=no
3972 if test $ac_cv_header_stdc = yes; then
3973 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3974 if test "$cross_compiling" = yes; then :
3977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3981 #if ((' ' & 0x0FF) == 0x020)
3982 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3983 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3985 # define ISLOWER(c) \
3986 (('a' <= (c) && (c) <= 'i') \
3987 || ('j' <= (c) && (c) <= 'r') \
3988 || ('s' <= (c) && (c) <= 'z'))
3989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3997 for (i = 0; i < 256; i++)
3998 if (XOR (islower (i), ISLOWER (i))
3999 || toupper (i) != TOUPPER (i))
4004 if ac_fn_c_try_run
"$LINENO"; then :
4007 ac_cv_header_stdc
=no
4009 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4010 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4016 $as_echo "$ac_cv_header_stdc" >&6; }
4017 if test $ac_cv_header_stdc = yes; then
4019 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4023 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4024 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4025 inttypes.h stdint.h unistd.h
4027 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4028 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4030 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4031 cat >>confdefs.h
<<_ACEOF
4032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4041 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4042 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4049 if test "$MINIX" = yes; then
4051 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4054 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4057 $as_echo "#define _MINIX 1" >>confdefs.h
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4063 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4064 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4065 $as_echo_n "(cached) " >&6
4067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4070 # define __EXTENSIONS__ 1
4071 $ac_includes_default
4080 if ac_fn_c_try_compile
"$LINENO"; then :
4081 ac_cv_safe_to_define___extensions__
=yes
4083 ac_cv_safe_to_define___extensions__
=no
4085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4088 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4089 test $ac_cv_safe_to_define___extensions__ = yes &&
4090 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4092 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4094 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4096 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4098 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4102 # Check whether --enable-largefile was given.
4103 if test "${enable_largefile+set}" = set; then :
4104 enableval
=$enable_largefile;
4107 if test "$enable_largefile" != no
; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4110 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4111 if ${ac_cv_sys_largefile_CC+:} false
; then :
4112 $as_echo_n "(cached) " >&6
4114 ac_cv_sys_largefile_CC
=no
4115 if test "$GCC" != yes; then
4118 # IRIX 6.2 and later do not support large files by default,
4119 # so use the C compiler's -n32 option if that helps.
4120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 #include <sys/types.h>
4123 /* Check that off_t can represent 2**63 - 1 correctly.
4124 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4125 since some C++ compilers masquerading as C compilers
4126 incorrectly reject 9223372036854775807. */
4127 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4128 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4129 && LARGE_OFF_T % 2147483647 == 1)
4139 if ac_fn_c_try_compile
"$LINENO"; then :
4142 rm -f core conftest.err conftest.
$ac_objext
4144 if ac_fn_c_try_compile
"$LINENO"; then :
4145 ac_cv_sys_largefile_CC
=' -n32'; break
4147 rm -f core conftest.err conftest.
$ac_objext
4151 rm -f conftest.
$ac_ext
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4155 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4156 if test "$ac_cv_sys_largefile_CC" != no
; then
4157 CC
=$CC$ac_cv_sys_largefile_CC
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4161 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4162 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4163 $as_echo_n "(cached) " >&6
4166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168 #include <sys/types.h>
4169 /* Check that off_t can represent 2**63 - 1 correctly.
4170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4171 since some C++ compilers masquerading as C compilers
4172 incorrectly reject 9223372036854775807. */
4173 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4175 && LARGE_OFF_T % 2147483647 == 1)
4185 if ac_fn_c_try_compile
"$LINENO"; then :
4186 ac_cv_sys_file_offset_bits
=no
; break
4188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #define _FILE_OFFSET_BITS 64
4192 #include <sys/types.h>
4193 /* Check that off_t can represent 2**63 - 1 correctly.
4194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4195 since some C++ compilers masquerading as C compilers
4196 incorrectly reject 9223372036854775807. */
4197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4199 && LARGE_OFF_T % 2147483647 == 1)
4209 if ac_fn_c_try_compile
"$LINENO"; then :
4210 ac_cv_sys_file_offset_bits
=64; break
4212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4213 ac_cv_sys_file_offset_bits
=unknown
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4218 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4219 case $ac_cv_sys_file_offset_bits in #(
4222 cat >>confdefs.h
<<_ACEOF
4223 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4228 if test $ac_cv_sys_file_offset_bits = unknown
; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4230 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4231 if ${ac_cv_sys_large_files+:} false
; then :
4232 $as_echo_n "(cached) " >&6
4235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237 #include <sys/types.h>
4238 /* Check that off_t can represent 2**63 - 1 correctly.
4239 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4240 since some C++ compilers masquerading as C compilers
4241 incorrectly reject 9223372036854775807. */
4242 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4243 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4244 && LARGE_OFF_T % 2147483647 == 1)
4254 if ac_fn_c_try_compile
"$LINENO"; then :
4255 ac_cv_sys_large_files
=no
; break
4257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 #define _LARGE_FILES 1
4261 #include <sys/types.h>
4262 /* Check that off_t can represent 2**63 - 1 correctly.
4263 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4264 since some C++ compilers masquerading as C compilers
4265 incorrectly reject 9223372036854775807. */
4266 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4268 && LARGE_OFF_T % 2147483647 == 1)
4278 if ac_fn_c_try_compile
"$LINENO"; then :
4279 ac_cv_sys_large_files
=1; break
4281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4282 ac_cv_sys_large_files
=unknown
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4287 $as_echo "$ac_cv_sys_large_files" >&6; }
4288 case $ac_cv_sys_large_files in #(
4291 cat >>confdefs.h
<<_ACEOF
4292 #define _LARGE_FILES $ac_cv_sys_large_files
4304 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4305 if test -f "$ac_dir/install-sh"; then
4307 ac_install_sh
="$ac_aux_dir/install-sh -c"
4309 elif test -f "$ac_dir/install.sh"; then
4311 ac_install_sh
="$ac_aux_dir/install.sh -c"
4313 elif test -f "$ac_dir/shtool"; then
4315 ac_install_sh
="$ac_aux_dir/shtool install -c"
4319 if test -z "$ac_aux_dir"; then
4320 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4323 # These three variables are undocumented and unsupported,
4324 # and are intended to be withdrawn in a future Autoconf release.
4325 # They can cause serious problems if a builder's source tree is in a directory
4326 # whose full name contains unusual characters.
4327 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4328 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4329 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4332 # Make sure we can run config.sub.
4333 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4334 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4337 $as_echo_n "checking build system type... " >&6; }
4338 if ${ac_cv_build+:} false
; then :
4339 $as_echo_n "(cached) " >&6
4341 ac_build_alias
=$build_alias
4342 test "x$ac_build_alias" = x
&&
4343 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4344 test "x$ac_build_alias" = x
&&
4345 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4346 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4347 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4351 $as_echo "$ac_cv_build" >&6; }
4352 case $ac_cv_build in
4354 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4357 ac_save_IFS
=$IFS; IFS
='-'
4363 # Remember, the first character of IFS is used to create $*,
4364 # except with old shells:
4367 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4371 $as_echo_n "checking host system type... " >&6; }
4372 if ${ac_cv_host+:} false
; then :
4373 $as_echo_n "(cached) " >&6
4375 if test "x$host_alias" = x
; then
4376 ac_cv_host
=$ac_cv_build
4378 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4379 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4384 $as_echo "$ac_cv_host" >&6; }
4387 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4390 ac_save_IFS
=$IFS; IFS
='-'
4396 # Remember, the first character of IFS is used to create $*,
4397 # except with old shells:
4400 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4404 $as_echo_n "checking target system type... " >&6; }
4405 if ${ac_cv_target+:} false
; then :
4406 $as_echo_n "(cached) " >&6
4408 if test "x$target_alias" = x
; then
4409 ac_cv_target
=$ac_cv_host
4411 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4412 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4417 $as_echo "$ac_cv_target" >&6; }
4418 case $ac_cv_target in
4420 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4422 target
=$ac_cv_target
4423 ac_save_IFS
=$IFS; IFS
='-'
4429 # Remember, the first character of IFS is used to create $*,
4430 # except with old shells:
4433 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4436 # The aliases save the names the user supplied, while $host etc.
4437 # will get canonicalized.
4438 test -n "$target_alias" &&
4439 test "$program_prefix$program_suffix$program_transform_name" = \
4441 program_prefix
=${target_alias}-
4444 # Find a good install program. We prefer a C program (faster),
4445 # so one script is as good as another. But avoid the broken or
4446 # incompatible versions:
4447 # SysV /etc/install, /usr/sbin/install
4448 # SunOS /usr/etc/install
4449 # IRIX /sbin/install
4451 # AmigaOS /C/install, which installs bootblocks on floppy discs
4452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4455 # OS/2's system install, which has a completely different semantic
4456 # ./install, which can be erroneously created by make from ./install.sh.
4457 # Reject install programs that cannot install multiple files.
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4460 if test -z "$INSTALL"; then
4461 if ${ac_cv_path_install+:} false
; then :
4462 $as_echo_n "(cached) " >&6
4464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4468 test -z "$as_dir" && as_dir
=.
4469 # Account for people who put trailing slashes in PATH elements.
4470 case $as_dir/ in #((
4471 .
/ | .
// |
/[cC
]/* | \
4472 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4473 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4476 # OSF1 and SCO ODT 3.0 have their own names for install.
4477 # Don't use installbsd from OSF since it installs stuff as root
4479 for ac_prog
in ginstall scoinst
install; do
4480 for ac_exec_ext
in '' $ac_executable_extensions; do
4481 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4482 if test $ac_prog = install &&
4483 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4484 # AIX install. It has an incompatible calling convention.
4486 elif test $ac_prog = install &&
4487 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4488 # program-specific install script used by HP pwplus--don't use.
4491 rm -rf conftest.one conftest.two conftest.dir
4492 echo one
> conftest.one
4493 echo two
> conftest.two
4495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4496 test -s conftest.one
&& test -s conftest.two
&&
4497 test -s conftest.dir
/conftest.one
&&
4498 test -s conftest.dir
/conftest.two
4500 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4513 rm -rf conftest.one conftest.two conftest.dir
4516 if test "${ac_cv_path_install+set}" = set; then
4517 INSTALL
=$ac_cv_path_install
4519 # As a last resort, use the slow shell script. Don't cache a
4520 # value for INSTALL within a source directory, because that will
4521 # break other packages using the cache if that directory is
4522 # removed, or if the value is a relative name.
4523 INSTALL
=$ac_install_sh
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4527 $as_echo "$INSTALL" >&6; }
4529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4530 # It thinks the first close brace ends the variable substitution.
4531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4535 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4537 if test -n "$ac_tool_prefix"; then
4538 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4539 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if ${ac_cv_prog_AR+:} false
; then :
4543 $as_echo_n "(cached) " >&6
4545 if test -n "$AR"; then
4546 ac_cv_prog_AR
="$AR" # Let the user override the test.
4548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir
=.
4553 for ac_exec_ext
in '' $ac_executable_extensions; do
4554 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 if test -n "$AR"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4568 $as_echo "$AR" >&6; }
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4576 if test -z "$ac_cv_prog_AR"; then
4578 # Extract the first word of "ar", so it can be a program name with args.
4579 set dummy
ar; ac_word
=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4583 $as_echo_n "(cached) " >&6
4585 if test -n "$ac_ct_AR"; then
4586 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir
=.
4593 for ac_exec_ext
in '' $ac_executable_extensions; do
4594 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4595 ac_cv_prog_ac_ct_AR
="ar"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4606 if test -n "$ac_ct_AR"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4608 $as_echo "$ac_ct_AR" >&6; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4614 if test "x$ac_ct_AR" = x
; then
4617 case $cross_compiling:$ac_tool_warned in
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621 ac_tool_warned
=yes ;;
4629 if test -n "$ac_tool_prefix"; then
4630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4631 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if ${ac_cv_prog_RANLIB+:} false
; then :
4635 $as_echo_n "(cached) " >&6
4637 if test -n "$RANLIB"; then
4638 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir
=.
4645 for ac_exec_ext
in '' $ac_executable_extensions; do
4646 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4647 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 RANLIB
=$ac_cv_prog_RANLIB
4658 if test -n "$RANLIB"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4660 $as_echo "$RANLIB" >&6; }
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4668 if test -z "$ac_cv_prog_RANLIB"; then
4669 ac_ct_RANLIB
=$RANLIB
4670 # Extract the first word of "ranlib", so it can be a program name with args.
4671 set dummy ranlib
; ac_word
=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4675 $as_echo_n "(cached) " >&6
4677 if test -n "$ac_ct_RANLIB"; then
4678 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir
=.
4685 for ac_exec_ext
in '' $ac_executable_extensions; do
4686 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4687 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4698 if test -n "$ac_ct_RANLIB"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4700 $as_echo "$ac_ct_RANLIB" >&6; }
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4706 if test "x$ac_ct_RANLIB" = x
; then
4709 case $cross_compiling:$ac_tool_warned in
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4713 ac_tool_warned
=yes ;;
4715 RANLIB
=$ac_ct_RANLIB
4718 RANLIB
="$ac_cv_prog_RANLIB"
4722 test "$program_prefix" != NONE
&&
4723 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4724 # Use a double $ so make ignores it.
4725 test "$program_suffix" != NONE
&&
4726 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4727 # Double any \ or $.
4728 # By default was `s,x,x', remove it if useless.
4729 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4730 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4733 # We require a C++11 compiler. Check if one is available, and if
4734 # necessary, set CXX_DIALECT to some -std=xxx switch.
4736 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
4738 ac_cpp
='$CXXCPP $CPPFLAGS'
4739 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4745 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4746 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
4747 $as_echo_n "(cached) " >&6
4749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4753 // If the compiler admits that it is not ready for C++11, why torture it?
4754 // Hopefully, this will speed up the test.
4758 #error "This is not a C++ compiler"
4760 #elif __cplusplus < 201103L
4762 #error "This is not a C++11 compiler"
4769 namespace test_static_assert
4772 template <typename T>
4775 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4780 namespace test_final_override
4788 struct Derived : public Base
4790 virtual void f() override {}
4795 namespace test_double_right_angle_brackets
4798 template < typename T >
4801 typedef check<void> single_type;
4802 typedef check<check<void>> double_type;
4803 typedef check<check<check<void>>> triple_type;
4804 typedef check<check<check<check<void>>>> quadruple_type;
4808 namespace test_decltype
4821 namespace test_type_deduction
4824 template < typename T1, typename T2 >
4827 static const bool value = false;
4830 template < typename T >
4831 struct is_same<T, T>
4833 static const bool value = true;
4836 template < typename T1, typename T2 >
4838 add(T1 a1, T2 a2) -> decltype(a1 + a2)
4844 test(const int c, volatile int v)
4846 static_assert(is_same<int, decltype(0)>::value == true, "");
4847 static_assert(is_same<int, decltype(c)>::value == false, "");
4848 static_assert(is_same<int, decltype(v)>::value == false, "");
4851 auto sumi = ac + av + 'x';
4852 auto sumf = ac + av + 1.0;
4853 static_assert(is_same<int, decltype(ac)>::value == true, "");
4854 static_assert(is_same<int, decltype(av)>::value == true, "");
4855 static_assert(is_same<int, decltype(sumi)>::value == true, "");
4856 static_assert(is_same<int, decltype(sumf)>::value == false, "");
4857 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
4858 return (sumf > 0.0) ? sumi : add(c, v);
4863 namespace test_noexcept
4866 int f() { return 0; }
4867 int g() noexcept { return 0; }
4869 static_assert(noexcept(f()) == false, "");
4870 static_assert(noexcept(g()) == true, "");
4874 namespace test_constexpr
4877 template < typename CharT >
4878 unsigned long constexpr
4879 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
4881 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
4884 template < typename CharT >
4885 unsigned long constexpr
4886 strlen_c(const CharT *const s) noexcept
4888 return strlen_c_r(s, 0UL);
4891 static_assert(strlen_c("") == 0UL, "");
4892 static_assert(strlen_c("1") == 1UL, "");
4893 static_assert(strlen_c("example") == 7UL, "");
4894 static_assert(strlen_c("another\0example") == 7UL, "");
4898 namespace test_rvalue_references
4904 static constexpr int value = N;
4907 answer<1> f(int&) { return answer<1>(); }
4908 answer<2> f(const int&) { return answer<2>(); }
4909 answer<3> f(int&&) { return answer<3>(); }
4916 static_assert(decltype(f(i))::value == 1, "");
4917 static_assert(decltype(f(c))::value == 2, "");
4918 static_assert(decltype(f(0))::value == 3, "");
4923 namespace test_uniform_initialization
4928 static const int zero {};
4929 static const int one {1};
4932 static_assert(test::zero == 0, "");
4933 static_assert(test::one == 1, "");
4937 namespace test_lambdas
4943 auto lambda1 = [](){};
4944 auto lambda2 = lambda1;
4952 auto a = [](int i, int j){ return i + j; }(1, 2);
4953 auto b = []() -> int { return '0'; }();
4954 auto c = [=](){ return a + b; }();
4955 auto d = [&](){ return c; }();
4956 auto e = [a, &b](int x) mutable {
4957 const auto identity = [](int y){ return y; };
4958 for (auto i = 0; i < a; ++i)
4960 return x + identity(a + b);
4962 return a + b + c + d + e;
4968 const auto nullary = [](){ return 0; };
4969 const auto unary = [](int x){ return x; };
4970 using nullary_t = decltype(nullary);
4971 using unary_t = decltype(unary);
4972 const auto higher1st = [](nullary_t f){ return f(); };
4973 const auto higher2nd = [unary](nullary_t f1){
4974 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
4976 return higher1st(nullary) + higher2nd(nullary)(unary);
4981 namespace test_variadic_templates
4987 template <int N0, int... N1toN>
4988 struct sum<N0, N1toN...>
4990 static constexpr auto value = N0 + sum<N1toN...>::value;
4996 static constexpr auto value = 0;
4999 static_assert(sum<>::value == 0, "");
5000 static_assert(sum<1>::value == 1, "");
5001 static_assert(sum<23>::value == 23, "");
5002 static_assert(sum<1, 2>::value == 3, "");
5003 static_assert(sum<5, 5, 11>::value == 21, "");
5004 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5008 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5009 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5011 namespace test_template_alias_sfinae
5016 template<typename T>
5017 using member = typename T::member_type;
5019 template<typename T>
5022 template<typename T>
5023 void func(member<T>*) {}
5027 void test() { func<foo>(0); }
5031 } // namespace cxx11
5033 #endif // __cplusplus >= 201103L
5038 if ac_fn_cxx_try_compile
"$LINENO"; then :
5039 ax_cv_cxx_compile_cxx11
=yes
5041 ax_cv_cxx_compile_cxx11
=no
5043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5046 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5047 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5051 if test x
$ac_success = xno
; then
5052 for alternative
in ${ax_cxx_compile_alternatives}; do
5053 switch
="-std=gnu++${alternative}"
5054 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5056 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5057 if eval \
${$cachevar+:} false
; then :
5058 $as_echo_n "(cached) " >&6
5062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5066 // If the compiler admits that it is not ready for C++11, why torture it?
5067 // Hopefully, this will speed up the test.
5071 #error "This is not a C++ compiler"
5073 #elif __cplusplus < 201103L
5075 #error "This is not a C++11 compiler"
5082 namespace test_static_assert
5085 template <typename T>
5088 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5093 namespace test_final_override
5101 struct Derived : public Base
5103 virtual void f() override {}
5108 namespace test_double_right_angle_brackets
5111 template < typename T >
5114 typedef check<void> single_type;
5115 typedef check<check<void>> double_type;
5116 typedef check<check<check<void>>> triple_type;
5117 typedef check<check<check<check<void>>>> quadruple_type;
5121 namespace test_decltype
5134 namespace test_type_deduction
5137 template < typename T1, typename T2 >
5140 static const bool value = false;
5143 template < typename T >
5144 struct is_same<T, T>
5146 static const bool value = true;
5149 template < typename T1, typename T2 >
5151 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5157 test(const int c, volatile int v)
5159 static_assert(is_same<int, decltype(0)>::value == true, "");
5160 static_assert(is_same<int, decltype(c)>::value == false, "");
5161 static_assert(is_same<int, decltype(v)>::value == false, "");
5164 auto sumi = ac + av + 'x';
5165 auto sumf = ac + av + 1.0;
5166 static_assert(is_same<int, decltype(ac)>::value == true, "");
5167 static_assert(is_same<int, decltype(av)>::value == true, "");
5168 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5169 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5170 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5171 return (sumf > 0.0) ? sumi : add(c, v);
5176 namespace test_noexcept
5179 int f() { return 0; }
5180 int g() noexcept { return 0; }
5182 static_assert(noexcept(f()) == false, "");
5183 static_assert(noexcept(g()) == true, "");
5187 namespace test_constexpr
5190 template < typename CharT >
5191 unsigned long constexpr
5192 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5194 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5197 template < typename CharT >
5198 unsigned long constexpr
5199 strlen_c(const CharT *const s) noexcept
5201 return strlen_c_r(s, 0UL);
5204 static_assert(strlen_c("") == 0UL, "");
5205 static_assert(strlen_c("1") == 1UL, "");
5206 static_assert(strlen_c("example") == 7UL, "");
5207 static_assert(strlen_c("another\0example") == 7UL, "");
5211 namespace test_rvalue_references
5217 static constexpr int value = N;
5220 answer<1> f(int&) { return answer<1>(); }
5221 answer<2> f(const int&) { return answer<2>(); }
5222 answer<3> f(int&&) { return answer<3>(); }
5229 static_assert(decltype(f(i))::value == 1, "");
5230 static_assert(decltype(f(c))::value == 2, "");
5231 static_assert(decltype(f(0))::value == 3, "");
5236 namespace test_uniform_initialization
5241 static const int zero {};
5242 static const int one {1};
5245 static_assert(test::zero == 0, "");
5246 static_assert(test::one == 1, "");
5250 namespace test_lambdas
5256 auto lambda1 = [](){};
5257 auto lambda2 = lambda1;
5265 auto a = [](int i, int j){ return i + j; }(1, 2);
5266 auto b = []() -> int { return '0'; }();
5267 auto c = [=](){ return a + b; }();
5268 auto d = [&](){ return c; }();
5269 auto e = [a, &b](int x) mutable {
5270 const auto identity = [](int y){ return y; };
5271 for (auto i = 0; i < a; ++i)
5273 return x + identity(a + b);
5275 return a + b + c + d + e;
5281 const auto nullary = [](){ return 0; };
5282 const auto unary = [](int x){ return x; };
5283 using nullary_t = decltype(nullary);
5284 using unary_t = decltype(unary);
5285 const auto higher1st = [](nullary_t f){ return f(); };
5286 const auto higher2nd = [unary](nullary_t f1){
5287 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5289 return higher1st(nullary) + higher2nd(nullary)(unary);
5294 namespace test_variadic_templates
5300 template <int N0, int... N1toN>
5301 struct sum<N0, N1toN...>
5303 static constexpr auto value = N0 + sum<N1toN...>::value;
5309 static constexpr auto value = 0;
5312 static_assert(sum<>::value == 0, "");
5313 static_assert(sum<1>::value == 1, "");
5314 static_assert(sum<23>::value == 23, "");
5315 static_assert(sum<1, 2>::value == 3, "");
5316 static_assert(sum<5, 5, 11>::value == 21, "");
5317 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5321 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5322 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5324 namespace test_template_alias_sfinae
5329 template<typename T>
5330 using member = typename T::member_type;
5332 template<typename T>
5335 template<typename T>
5336 void func(member<T>*) {}
5340 void test() { func<foo>(0); }
5344 } // namespace cxx11
5346 #endif // __cplusplus >= 201103L
5351 if ac_fn_cxx_try_compile
"$LINENO"; then :
5356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5359 eval ac_res
=\$
$cachevar
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5361 $as_echo "$ac_res" >&6; }
5362 if eval test x\$
$cachevar = xyes
; then
5363 CXX_DIALECT
="$switch"
5370 if test x
$ac_success = xno
; then
5371 for alternative
in ${ax_cxx_compile_alternatives}; do
5372 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5373 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5375 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5376 if eval \${$cachevar+:} false; then :
5377 $as_echo_n "(cached
) " >&6
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5385 // If the compiler admits that it is not ready for C++11, why torture it?
5386 // Hopefully, this will speed up the test.
5390 #error "This is not a C
++ compiler
"
5392 #elif __cplusplus < 201103L
5394 #error "This is not a C
++11 compiler
"
5401 namespace test_static_assert
5404 template <typename T>
5407 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5412 namespace test_final_override
5420 struct Derived : public Base
5422 virtual void f() override {}
5427 namespace test_double_right_angle_brackets
5430 template < typename T >
5433 typedef check<void> single_type;
5434 typedef check<check<void>> double_type;
5435 typedef check<check<check<void>>> triple_type;
5436 typedef check<check<check<check<void>>>> quadruple_type;
5440 namespace test_decltype
5453 namespace test_type_deduction
5456 template < typename T1, typename T2 >
5459 static const bool value = false;
5462 template < typename T >
5463 struct is_same<T, T>
5465 static const bool value = true;
5468 template < typename T1, typename T2 >
5470 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5476 test(const int c, volatile int v)
5478 static_assert(is_same<int, decltype(0)>::value == true, "");
5479 static_assert(is_same<int, decltype(c)>::value == false, "");
5480 static_assert(is_same<int, decltype(v)>::value == false, "");
5483 auto sumi = ac + av + 'x';
5484 auto sumf = ac + av + 1.0;
5485 static_assert(is_same<int, decltype(ac)>::value == true, "");
5486 static_assert(is_same<int, decltype(av)>::value == true, "");
5487 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5488 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5489 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5490 return (sumf > 0.0) ? sumi : add(c, v);
5495 namespace test_noexcept
5498 int f() { return 0; }
5499 int g() noexcept { return 0; }
5501 static_assert(noexcept(f()) == false, "");
5502 static_assert(noexcept(g()) == true, "");
5506 namespace test_constexpr
5509 template < typename CharT >
5510 unsigned long constexpr
5511 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5513 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5516 template < typename CharT >
5517 unsigned long constexpr
5518 strlen_c(const CharT *const s) noexcept
5520 return strlen_c_r(s, 0UL);
5523 static_assert(strlen_c("") == 0UL, "");
5524 static_assert(strlen_c("1") == 1UL, "");
5525 static_assert(strlen_c("example
") == 7UL, "");
5526 static_assert(strlen_c("another\
0example
") == 7UL, "");
5530 namespace test_rvalue_references
5536 static constexpr int value = N;
5539 answer<1> f(int&) { return answer<1>(); }
5540 answer<2> f(const int&) { return answer<2>(); }
5541 answer<3> f(int&&) { return answer<3>(); }
5548 static_assert(decltype(f(i))::value == 1, "");
5549 static_assert(decltype(f(c))::value == 2, "");
5550 static_assert(decltype(f(0))::value == 3, "");
5555 namespace test_uniform_initialization
5560 static const int zero {};
5561 static const int one {1};
5564 static_assert(test::zero == 0, "");
5565 static_assert(test::one == 1, "");
5569 namespace test_lambdas
5575 auto lambda1 = [](){};
5576 auto lambda2 = lambda1;
5584 auto a = [](int i, int j){ return i + j; }(1, 2);
5585 auto b = []() -> int { return '0'; }();
5586 auto c = [=](){ return a + b; }();
5587 auto d = [&](){ return c; }();
5588 auto e = [a, &b](int x) mutable {
5589 const auto identity = [](int y){ return y; };
5590 for (auto i = 0; i < a; ++i)
5592 return x + identity(a + b);
5594 return a + b + c + d + e;
5600 const auto nullary = [](){ return 0; };
5601 const auto unary = [](int x){ return x; };
5602 using nullary_t = decltype(nullary);
5603 using unary_t = decltype(unary);
5604 const auto higher1st = [](nullary_t f){ return f(); };
5605 const auto higher2nd = [unary](nullary_t f1){
5606 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5608 return higher1st(nullary) + higher2nd(nullary)(unary);
5613 namespace test_variadic_templates
5619 template <int N0, int... N1toN>
5620 struct sum<N0, N1toN...>
5622 static constexpr auto value = N0 + sum<N1toN...>::value;
5628 static constexpr auto value = 0;
5631 static_assert(sum<>::value == 0, "");
5632 static_assert(sum<1>::value == 1, "");
5633 static_assert(sum<23>::value == 23, "");
5634 static_assert(sum<1, 2>::value == 3, "");
5635 static_assert(sum<5, 5, 11>::value == 21, "");
5636 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5640 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5641 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5643 namespace test_template_alias_sfinae
5648 template<typename T>
5649 using member = typename T::member_type;
5651 template<typename T>
5654 template<typename T>
5655 void func(member<T>*) {}
5659 void test() { func<foo>(0); }
5663 } // namespace cxx11
5665 #endif // __cplusplus >= 201103L
5670 if ac_fn_cxx_try_compile "$LINENO"; then :
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 eval ac_res=\$$cachevar
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5680 $as_echo "$ac_res" >&6; }
5681 if eval test x\$$cachevar = xyes; then
5682 CXX_DIALECT="$switch"
5687 if test x$ac_success = xyes; then
5693 ac_cpp='$CPP $CPPFLAGS'
5694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5698 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5699 if test x$ac_success = xno; then
5700 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
5703 if test x$ac_success = xno; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
5706 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
5710 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5718 $as_echo_n "checking for ANSI C header files... " >&6; }
5719 if ${ac_cv_header_stdc+:} false
; then :
5720 $as_echo_n "(cached) " >&6
5722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5737 if ac_fn_c_try_compile
"$LINENO"; then :
5738 ac_cv_header_stdc
=yes
5740 ac_cv_header_stdc
=no
5742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5744 if test $ac_cv_header_stdc = yes; then
5745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5752 $EGREP "memchr" >/dev
/null
2>&1; then :
5755 ac_cv_header_stdc
=no
5761 if test $ac_cv_header_stdc = yes; then
5762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5769 $EGREP "free" >/dev
/null
2>&1; then :
5772 ac_cv_header_stdc
=no
5778 if test $ac_cv_header_stdc = yes; then
5779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5780 if test "$cross_compiling" = yes; then :
5783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5787 #if ((' ' & 0x0FF) == 0x020)
5788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5791 # define ISLOWER(c) \
5792 (('a' <= (c) && (c) <= 'i') \
5793 || ('j' <= (c) && (c) <= 'r') \
5794 || ('s' <= (c) && (c) <= 'z'))
5795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5803 for (i = 0; i < 256; i++)
5804 if (XOR (islower (i), ISLOWER (i))
5805 || toupper (i) != TOUPPER (i))
5810 if ac_fn_c_try_run
"$LINENO"; then :
5813 ac_cv_header_stdc
=no
5815 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5816 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5822 $as_echo "$ac_cv_header_stdc" >&6; }
5823 if test $ac_cv_header_stdc = yes; then
5825 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5830 # Set the 'development' global.
5831 .
$srcdir/..
/..
/bfd
/development.sh
5834 # Check whether we will enable the inclusion of unit tests when
5837 # The default value of this option changes depending whether we're on
5838 # development mode (in which case it's "true") or not (in which case
5840 # Check whether --enable-unit-tests was given.
5841 if test "${enable_unit_tests+set}" = set; then :
5842 enableval
=$enable_unit_tests; case "${enableval}" in
5843 yes) enable_unittests
=true
;;
5844 no
) enable_unittests
=false
;;
5845 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
5848 enable_unittests
=$development
5852 if $enable_unittests; then
5854 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
5857 srv_selftest_objs
="gdbsupport/selftest.o"
5862 case ${build_alias} in
5863 "") build_noncanonical
=${build} ;;
5864 *) build_noncanonical
=${build_alias} ;;
5867 case ${host_alias} in
5868 "") host_noncanonical
=${build_noncanonical} ;;
5869 *) host_noncanonical
=${host_alias} ;;
5872 case ${target_alias} in
5873 "") target_noncanonical
=${host_noncanonical} ;;
5874 *) target_noncanonical
=${target_alias} ;;
5882 # Dependency checking.
5883 rm -rf .tst
2>/dev
/null
5884 mkdir .tst
2>/dev
/null
5885 if test -d .tst
; then
5890 rmdir .tst
2>/dev
/null
5892 DEPDIR
="${am__leading_dot}deps"
5894 ac_config_commands
="$ac_config_commands depdir"
5898 # Create sub-directories for objects and dependencies.
5899 CONFIG_SRC_SUBDIR
="arch gdbsupport"
5902 ac_config_commands
="$ac_config_commands gdbdepdir"
5905 depcc
="$CC" am_compiler_list
=
5907 am_depcomp
=$ac_aux_dir/depcomp
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5909 $as_echo_n "checking dependency style of $depcc... " >&6; }
5910 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
5911 $as_echo_n "(cached) " >&6
5913 if test -f "$am_depcomp"; then
5914 # We make a subdir and do the tests there. Otherwise we can end up
5915 # making bogus files that we don't know about and never remove. For
5916 # instance it was reported that on HP-UX the gcc test will end up
5917 # making a dummy file named `D' -- because `-MD' means `put the output
5920 # Copy depcomp to subdir because otherwise we won't find it if we're
5921 # using a relative directory.
5922 cp "$am_depcomp" conftest.dir
5924 # We will build objects and dependencies in a subdirectory because
5925 # it helps to detect inapplicable dependency modes. For instance
5926 # both Tru64's cc and ICC support -MD to output dependencies as a
5927 # side effect of compilation, but ICC will put the dependencies in
5928 # the current directory while Tru64 will put them in the object
5932 am_cv_CC_dependencies_compiler_type
=none
5933 if test "$am_compiler_list" = ""; then
5934 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5936 for depmode
in $am_compiler_list; do
5937 if test $depmode = none
; then break; fi
5939 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5940 # Setup a source with many dependencies, because some compilers
5941 # like to wrap large dependency lists on column 80 (with \), and
5942 # we should not choose a depcomp mode which is confused by this.
5944 # We need to recreate these files for each test, as the compiler may
5945 # overwrite some of them when testing with obscure command lines.
5946 # This happens at least with the AIX C compiler.
5948 for i
in 1 2 3 4 5 6; do
5949 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5950 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5951 # Solaris 8's {/usr,}/bin/sh.
5952 touch sub
/conftst
$i.h
5954 echo "include sub/conftest.Po" > confmf
5956 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5957 # mode. It turns out that the SunPro C++ compiler does not properly
5958 # handle `-M -o', and we need to detect this.
5959 depcmd
="depmode=$depmode \
5960 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5961 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5962 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5963 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5964 if env
$depcmd > conftest.err
2>&1 &&
5965 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5966 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5967 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5968 # icc doesn't choke on unknown options, it will just issue warnings
5969 # or remarks (even with -Werror). So we grep stderr for any message
5970 # that says an option was ignored or not supported.
5971 # When given -MP, icc 7.0 and 7.1 complain thusly:
5972 # icc: Command line warning: ignoring option '-M'; no argument required
5973 # The diagnosis changed in icc 8.0:
5974 # icc: Command line remark: option '-MP' not supported
5975 if (grep 'ignoring option' conftest.err ||
5976 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5977 am_cv_CC_dependencies_compiler_type
=$depmode
5978 $as_echo "$as_me:$LINENO: success" >&5
5982 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5983 sed -e 's/^/| /' < conftest.err
>&5
5989 am_cv_CC_dependencies_compiler_type
=none
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5994 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5995 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
5996 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
5997 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6002 gnulib_extra_configure_args
=
6003 # If large-file support is disabled, make sure gnulib does the same.
6004 if test "$enable_largefile" = no
; then
6005 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6008 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
6009 # to find the the source subdir to be configured directly under
6010 # gdbserver/. We need to build gnulib under some other directory not
6011 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
6012 # build it in the same directory, when building in the source dir.
6014 in_src
="../../gnulib"
6015 in_build
="build-gnulib-gdbserver"
6016 in_extra_args
="$gnulib_extra_configure_args"
6018 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6019 # so they do not pile up.
6020 ac_sub_configure_args
=
6022 eval "set x $ac_configure_args"
6026 if test -n "$ac_prev"; then
6031 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6032 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6033 ac_prev
=cache_file
;;
6034 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6035 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6038 --config-cache |
-C)
6040 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6042 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6044 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6046 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6048 --disable-option-checking)
6052 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6054 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6058 # Always prepend --prefix to ensure using the same prefix
6059 # in subdir configurations.
6060 ac_arg
="--prefix=$prefix"
6062 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6064 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6067 if test "$silent" = yes; then
6068 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6071 # Always prepend --disable-option-checking to silence warnings, since
6072 # different subdirs can have different --enable and --with options.
6073 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6078 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6079 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6080 $as_echo "$ac_msg" >&6
6081 as_dir
="$ac_dir"; as_fn_mkdir_p
6085 ac_srcdir
=$srcdir/$in_src ;;
6087 ac_srcdir
=..
/$srcdir/$in_src ;;
6092 ac_sub_configure
=$ac_srcdir/configure
6094 # Make the cache file name correct relative to the subdirectory.
6096 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6098 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6101 if test -n "$in_extra_args"; then
6102 # Add the extra args at the end.
6103 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6106 { $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
6107 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6108 # The eval makes quoting arguments work.
6109 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6110 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6111 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6117 in_src
="../../libiberty"
6118 in_build
="build-libiberty-gdbserver"
6121 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6122 # so they do not pile up.
6123 ac_sub_configure_args
=
6125 eval "set x $ac_configure_args"
6129 if test -n "$ac_prev"; then
6134 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6135 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6136 ac_prev
=cache_file
;;
6137 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6138 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6141 --config-cache |
-C)
6143 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6145 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6147 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6149 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6151 --disable-option-checking)
6155 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6157 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6161 # Always prepend --prefix to ensure using the same prefix
6162 # in subdir configurations.
6163 ac_arg
="--prefix=$prefix"
6165 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6167 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6170 if test "$silent" = yes; then
6171 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6174 # Always prepend --disable-option-checking to silence warnings, since
6175 # different subdirs can have different --enable and --with options.
6176 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6181 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6183 $as_echo "$ac_msg" >&6
6184 as_dir
="$ac_dir"; as_fn_mkdir_p
6188 ac_srcdir
=$srcdir/$in_src ;;
6190 ac_srcdir
=..
/$srcdir/$in_src ;;
6195 ac_sub_configure
=$ac_srcdir/configure
6197 # Make the cache file name correct relative to the subdirectory.
6199 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6201 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6204 if test -n "$in_extra_args"; then
6205 # Add the extra args at the end.
6206 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6209 { $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
6210 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6211 # The eval makes quoting arguments work.
6212 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6213 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6214 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6219 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
6221 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6222 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6223 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6224 cat >>confdefs.h
<<_ACEOF
6225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6232 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6233 if test "x$ac_cv_type_pid_t" = xyes
; then :
6237 cat >>confdefs.h
<<_ACEOF
6243 for ac_header
in vfork.h
6245 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6246 if test "x$ac_cv_header_vfork_h" = xyes
; then :
6247 cat >>confdefs.h
<<_ACEOF
6248 #define HAVE_VFORK_H 1
6255 for ac_func
in fork vfork
6257 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6258 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6259 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6260 cat >>confdefs.h
<<_ACEOF
6261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6267 if test "x$ac_cv_func_fork" = xyes
; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6269 $as_echo_n "checking for working fork... " >&6; }
6270 if ${ac_cv_func_fork_works+:} false
; then :
6271 $as_echo_n "(cached) " >&6
6273 if test "$cross_compiling" = yes; then :
6274 ac_cv_func_fork_works
=cross
6276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6278 $ac_includes_default
6283 /* By Ruediger Kuhlmann. */
6290 if ac_fn_c_try_run
"$LINENO"; then :
6291 ac_cv_func_fork_works
=yes
6293 ac_cv_func_fork_works
=no
6295 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6296 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6301 $as_echo "$ac_cv_func_fork_works" >&6; }
6304 ac_cv_func_fork_works
=$ac_cv_func_fork
6306 if test "x$ac_cv_func_fork_works" = xcross
; then
6308 *-*-amigaos* |
*-*-msdosdjgpp*)
6309 # Override, as these systems have only a dummy fork() stub
6310 ac_cv_func_fork_works
=no
6313 ac_cv_func_fork_works
=yes
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6317 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6319 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6320 if test "x$ac_cv_func_vfork" = xyes
; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6322 $as_echo_n "checking for working vfork... " >&6; }
6323 if ${ac_cv_func_vfork_works+:} false
; then :
6324 $as_echo_n "(cached) " >&6
6326 if test "$cross_compiling" = yes; then :
6327 ac_cv_func_vfork_works
=cross
6329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 /* Thanks to Paul Eggert for this test. */
6332 $ac_includes_default
6333 #include <sys/wait.h>
6337 /* On some sparc systems, changes by the child to local and incoming
6338 argument registers are propagated back to the parent. The compiler
6339 is told about this with #include <vfork.h>, but some compilers
6340 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6341 static variable whose address is put into a register that is
6342 clobbered by the vfork. */
6345 sparc_address_test (int arg)
6347 sparc_address_test (arg) int arg;
6368 pid_t parent = getpid ();
6371 sparc_address_test (0);
6376 /* Here is another test for sparc vfork register problems. This
6377 test uses lots of local variables, at least as many local
6378 variables as main has allocated so far including compiler
6379 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6380 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6381 reuse the register of parent for one of the local variables,
6382 since it will think that parent can't possibly be used any more
6383 in this routine. Assigning to the local variable will thus
6384 munge parent in the parent process. */
6386 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6387 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6388 /* Convince the compiler that p..p7 are live; otherwise, it might
6389 use the same hardware register for all 8 local variables. */
6390 if (p != p1 || p != p2 || p != p3 || p != p4
6391 || p != p5 || p != p6 || p != p7)
6394 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6395 from child file descriptors. If the child closes a descriptor
6396 before it execs or exits, this munges the parent's descriptor
6397 as well. Test for this by closing stdout in the child. */
6398 _exit(close(fileno(stdout)) != 0);
6403 while (wait(&status) != child)
6406 /* Was there some problem with vforking? */
6409 /* Did the child fail? (This shouldn't happen.) */
6412 /* Did the vfork/compiler bug occur? */
6413 || parent != getpid()
6415 /* Did the file descriptor bug occur? */
6416 || fstat(fileno(stdout), &st) != 0
6421 if ac_fn_c_try_run
"$LINENO"; then :
6422 ac_cv_func_vfork_works
=yes
6424 ac_cv_func_vfork_works
=no
6426 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6427 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6432 $as_echo "$ac_cv_func_vfork_works" >&6; }
6435 if test "x$ac_cv_func_fork_works" = xcross
; then
6436 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6438 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6441 if test "x$ac_cv_func_vfork_works" = xyes
; then
6443 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6447 $as_echo "#define vfork fork" >>confdefs.h
6450 if test "x$ac_cv_func_fork_works" = xyes
; then
6452 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6456 for ac_func
in getauxval pread pwrite pread64 setns
6458 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6459 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6460 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6461 cat >>confdefs.h
<<_ACEOF
6462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6469 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6470 if test "x$ac_cv_type_size_t" = xyes
; then :
6474 cat >>confdefs.h
<<_ACEOF
6475 #define size_t unsigned int
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6481 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6482 if ${ac_cv_path_SED+:} false
; then :
6483 $as_echo_n "(cached) " >&6
6485 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6486 for ac_i
in 1 2 3 4 5 6 7; do
6487 ac_script
="$ac_script$as_nl$ac_script"
6489 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
6490 { ac_script
=; unset ac_script
;}
6491 if test -z "$SED"; then
6492 ac_path_SED_found
=false
6493 # Loop through the user's path and test for each of PROGNAME-LIST
6494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6498 test -z "$as_dir" && as_dir
=.
6499 for ac_prog
in sed gsed
; do
6500 for ac_exec_ext
in '' $ac_executable_extensions; do
6501 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6502 as_fn_executable_p
"$ac_path_SED" ||
continue
6503 # Check for GNU ac_path_SED and select it if it is found.
6504 # Check for GNU $ac_path_SED
6505 case `"$ac_path_SED" --version 2>&1` in
6507 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6510 $as_echo_n 0123456789 >"conftest.in"
6513 cat "conftest.in" "conftest.in" >"conftest.tmp"
6514 mv "conftest.tmp" "conftest.in"
6515 cp "conftest.in" "conftest.nl"
6516 $as_echo '' >> "conftest.nl"
6517 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6518 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6519 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6520 if test $ac_count -gt ${ac_path_SED_max-0}; then
6521 # Best one so far, save it but keep looking for a better one
6522 ac_cv_path_SED
="$ac_path_SED"
6523 ac_path_SED_max
=$ac_count
6525 # 10*(2^10) chars as input seems more than enough
6526 test $ac_count -gt 10 && break
6528 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6531 $ac_path_SED_found && break 3
6536 if test -z "$ac_cv_path_SED"; then
6537 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6545 $as_echo "$ac_cv_path_SED" >&6; }
6546 SED
="$ac_cv_path_SED"
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6551 $as_echo_n "checking for ANSI C header files... " >&6; }
6552 if ${ac_cv_header_stdc+:} false
; then :
6553 $as_echo_n "(cached) " >&6
6555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h. */
6570 if ac_fn_c_try_compile
"$LINENO"; then :
6571 ac_cv_header_stdc
=yes
6573 ac_cv_header_stdc
=no
6575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6577 if test $ac_cv_header_stdc = yes; then
6578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6585 $EGREP "memchr" >/dev
/null
2>&1; then :
6588 ac_cv_header_stdc
=no
6594 if test $ac_cv_header_stdc = yes; then
6595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6602 $EGREP "free" >/dev
/null
2>&1; then :
6605 ac_cv_header_stdc
=no
6611 if test $ac_cv_header_stdc = yes; then
6612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6613 if test "$cross_compiling" = yes; then :
6616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6620 #if ((' ' & 0x0FF) == 0x020)
6621 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6622 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6624 # define ISLOWER(c) \
6625 (('a' <= (c) && (c) <= 'i') \
6626 || ('j' <= (c) && (c) <= 'r') \
6627 || ('s' <= (c) && (c) <= 'z'))
6628 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6631 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6636 for (i = 0; i < 256; i++)
6637 if (XOR (islower (i), ISLOWER (i))
6638 || toupper (i) != TOUPPER (i))
6643 if ac_fn_c_try_run
"$LINENO"; then :
6646 ac_cv_header_stdc
=no
6648 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6649 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6655 $as_echo "$ac_cv_header_stdc" >&6; }
6656 if test $ac_cv_header_stdc = yes; then
6658 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6662 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6663 # for constant arguments. Useless!
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6665 $as_echo_n "checking for working alloca.h... " >&6; }
6666 if ${ac_cv_working_alloca_h+:} false
; then :
6667 $as_echo_n "(cached) " >&6
6669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6675 char *p = (char *) alloca (2 * sizeof (int));
6681 if ac_fn_c_try_link
"$LINENO"; then :
6682 ac_cv_working_alloca_h
=yes
6684 ac_cv_working_alloca_h
=no
6686 rm -f core conftest.err conftest.
$ac_objext \
6687 conftest
$ac_exeext conftest.
$ac_ext
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6690 $as_echo "$ac_cv_working_alloca_h" >&6; }
6691 if test $ac_cv_working_alloca_h = yes; then
6693 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6698 $as_echo_n "checking for alloca... " >&6; }
6699 if ${ac_cv_func_alloca_works+:} false
; then :
6700 $as_echo_n "(cached) " >&6
6702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6705 # define alloca __builtin_alloca
6708 # include <malloc.h>
6709 # define alloca _alloca
6711 # ifdef HAVE_ALLOCA_H
6712 # include <alloca.h>
6717 # ifndef alloca /* predefined by HP cc +Olibcalls */
6718 void *alloca (size_t);
6728 char *p = (char *) alloca (1);
6734 if ac_fn_c_try_link
"$LINENO"; then :
6735 ac_cv_func_alloca_works
=yes
6737 ac_cv_func_alloca_works
=no
6739 rm -f core conftest.err conftest.
$ac_objext \
6740 conftest
$ac_exeext conftest.
$ac_ext
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6743 $as_echo "$ac_cv_func_alloca_works" >&6; }
6745 if test $ac_cv_func_alloca_works = yes; then
6747 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6750 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6751 # that cause trouble. Some versions do not even contain alloca or
6752 # contain a buggy version. If you still want to use their alloca,
6753 # use ar to extract alloca.o from them instead of compiling alloca.c.
6755 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6757 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6761 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6762 if ${ac_cv_os_cray+:} false
; then :
6763 $as_echo_n "(cached) " >&6
6765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 #if defined CRAY && ! defined CRAY2
6774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6775 $EGREP "webecray" >/dev
/null
2>&1; then :
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6784 $as_echo "$ac_cv_os_cray" >&6; }
6785 if test $ac_cv_os_cray = yes; then
6786 for ac_func
in _getb67 GETB67 getb67
; do
6787 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6788 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6789 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6791 cat >>confdefs.h
<<_ACEOF
6792 #define CRAY_STACKSEG_END $ac_func
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6802 $as_echo_n "checking stack direction for C alloca... " >&6; }
6803 if ${ac_cv_c_stack_direction+:} false
; then :
6804 $as_echo_n "(cached) " >&6
6806 if test "$cross_compiling" = yes; then :
6807 ac_cv_c_stack_direction
=0
6809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6811 $ac_includes_default
6813 find_stack_direction (int *addr, int depth)
6818 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6819 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6824 main (int argc, char **argv)
6826 return find_stack_direction (0, argc + !argv + 20) < 0;
6829 if ac_fn_c_try_run
"$LINENO"; then :
6830 ac_cv_c_stack_direction
=1
6832 ac_cv_c_stack_direction
=-1
6834 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6835 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6840 $as_echo "$ac_cv_c_stack_direction" >&6; }
6841 cat >>confdefs.h
<<_ACEOF
6842 #define STACK_DIRECTION $ac_cv_c_stack_direction
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6851 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6852 if ${am_cv_langinfo_codeset+:} false
; then :
6853 $as_echo_n "(cached) " >&6
6855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 #include <langinfo.h>
6861 char* cs = nl_langinfo(CODESET);
6866 if ac_fn_c_try_link
"$LINENO"; then :
6867 am_cv_langinfo_codeset
=yes
6869 am_cv_langinfo_codeset
=no
6871 rm -f core conftest.err conftest.
$ac_objext \
6872 conftest
$ac_exeext conftest.
$ac_ext
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6876 $as_echo "$am_cv_langinfo_codeset" >&6; }
6877 if test $am_cv_langinfo_codeset = yes; then
6879 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6884 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h dlfcn.h
6886 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6887 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6888 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6889 cat >>confdefs.h
<<_ACEOF
6890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6898 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
6901 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6902 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6903 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6904 cat >>confdefs.h
<<_ACEOF
6905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6912 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
6913 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
6919 cat >>confdefs.h
<<_ACEOF
6920 #define HAVE_DECL_STRERROR $ac_have_decl
6922 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
6923 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
6929 cat >>confdefs.h
<<_ACEOF
6930 #define HAVE_DECL_STRSTR $ac_have_decl
6934 # Check for std::thread. This does not work on some platforms, like
6937 ac_cpp
='$CXXCPP $CPPFLAGS'
6938 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6939 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6940 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6947 ac_cpp
='$CPP $CPPFLAGS'
6948 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6954 # We used to check for pthread.h first, but this fails if pthread.h
6955 # requires special compiler flags (e.g. on Tru64 or Sequent).
6956 # It gets checked for in the link test anyway.
6958 # First of all, check if the user has set any of the PTHREAD_LIBS,
6959 # etcetera environment variables, and if threads linking works using
6961 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
6962 ax_pthread_save_CC
="$CC"
6963 ax_pthread_save_CFLAGS
="$CFLAGS"
6964 ax_pthread_save_LIBS
="$LIBS"
6965 if test "x$PTHREAD_CC" != "x"; then :
6968 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
6969 LIBS
="$PTHREAD_LIBS $LIBS"
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
6971 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
6972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6975 /* Override any GCC internal prototype to avoid an error.
6976 Use char because int might match the return type of a GCC
6977 builtin and then its argument prototype would still apply. */
6981 char pthread_join ();
6985 return pthread_join ();
6990 if ac_fn_c_try_link
"$LINENO"; then :
6993 rm -f core conftest.err conftest.
$ac_objext \
6994 conftest
$ac_exeext conftest.
$ac_ext
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6996 $as_echo "$ax_pthread_ok" >&6; }
6997 if test "x$ax_pthread_ok" = "xno"; then
7001 CC
="$ax_pthread_save_CC"
7002 CFLAGS
="$ax_pthread_save_CFLAGS"
7003 LIBS
="$ax_pthread_save_LIBS"
7006 # We must check for the threads library under a number of different
7007 # names; the ordering is very important because some systems
7008 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7009 # libraries is broken (non-POSIX).
7011 # Create a list of thread flags to try. Items starting with a "-" are
7012 # C compiler flags, and other items are library names, except for "none"
7013 # which indicates that we try without any flags at all, and "pthread-config"
7014 # which is a program returning the flags for the Pth emulation library.
7016 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7018 # The ordering *is* (sometimes) important. Some notes on the
7019 # individual items follow:
7021 # pthreads: AIX (must check this before -lpthread)
7022 # none: in case threads are in libc; should be tried before -Kthread and
7023 # other compiler flags to prevent continual compiler warnings
7024 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7025 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7026 # (Note: HP C rejects this with "bad form for `-t' option")
7027 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7028 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7029 # doesn't hurt to check since this sometimes defines pthreads and
7030 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7031 # is present but should not be used directly; and before -mthreads,
7032 # because the compiler interprets this as "-mt" + "-hreads")
7033 # -mthreads: Mingw32/gcc, Lynx/gcc
7034 # pthread: Linux, etcetera
7035 # --thread-safe: KAI C++
7036 # pthread-config: use pthread-config program (for GNU Pth library)
7042 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7043 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7045 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
7050 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7051 # multi-threading and also sets -lpthread."
7053 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
7058 # IBM z/OS requires a feature-test macro to be defined in order to
7059 # enable POSIX threads at all, so give the user a hint if this is
7060 # not set. (We don't define these ourselves, as they can affect
7061 # other portions of the system API in unpredictable ways.)
7063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7066 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7067 AX_PTHREAD_ZOS_MISSING
7071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7072 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7074 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7082 # On Solaris (at least, for some versions), libc contains stubbed
7083 # (non-functional) versions of the pthreads routines, so link-based
7084 # tests will erroneously succeed. (N.B.: The stubs are missing
7085 # pthread_cleanup_push, or rather a function called by this macro,
7086 # so we could check for that, but who knows whether they'll stub
7087 # that too in a future libc.) So we'll check first for the
7088 # standard Solaris way of linking pthreads (-mt -lpthread).
7090 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
7094 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7096 if test "x$GCC" = "xyes"; then :
7097 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
7100 # The presence of a feature test macro requesting re-entrant function
7101 # definitions is, on some systems, a strong hint that pthreads support is
7105 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
7106 ax_pthread_check_macro
="_REENTRANT"
7110 ax_pthread_check_macro
="_THREAD_SAFE"
7114 ax_pthread_check_macro
="--"
7117 if test "x$ax_pthread_check_macro" = "x--"; then :
7118 ax_pthread_check_cond
=0
7120 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
7123 # Are we compiling with Clang?
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7126 $as_echo_n "checking whether $CC is Clang... " >&6; }
7127 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
7128 $as_echo_n "(cached) " >&6
7130 ax_cv_PTHREAD_CLANG
=no
7131 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7132 if test "x$GCC" = "xyes"; then
7133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7136 # if defined(__clang__) && defined(__llvm__)
7137 AX_PTHREAD_CC_IS_CLANG
7141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7142 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
7143 ax_cv_PTHREAD_CLANG
=yes
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7151 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
7152 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
7154 ax_pthread_clang_warning
=no
7156 # Clang needs special handling, because older versions handle the -pthread
7157 # option in a rather... idiosyncratic way
7159 if test "x$ax_pthread_clang" = "xyes"; then
7161 # Clang takes -pthread; it has never supported any other flag
7163 # (Note 1: This will need to be revisited if a system that Clang
7164 # supports has POSIX threads in a separate library. This tends not
7165 # to be the way of modern systems, but it's conceivable.)
7167 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7168 # to get POSIX threads support; the API is always present and
7169 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7170 # -pthread does define _REENTRANT, and while the Darwin headers
7171 # ignore this macro, third-party headers might not.)
7173 PTHREAD_CFLAGS
="-pthread"
7178 # However, older versions of Clang make a point of warning the user
7179 # that, in an invocation where only linking and no compilation is
7180 # taking place, the -pthread option has no effect ("argument unused
7181 # during compilation"). They expect -pthread to be passed in only
7182 # when source code is being compiled.
7184 # Problem is, this is at odds with the way Automake and most other
7185 # C build frameworks function, which is that the same flags used in
7186 # compilation (CFLAGS) are also used in linking. Many systems
7187 # supported by AX_PTHREAD require exactly this for POSIX threads
7188 # support, and in fact it is often not straightforward to specify a
7189 # flag that is used only in the compilation phase and not in
7190 # linking. Such a scenario is extremely rare in practice.
7192 # Even though use of the -pthread flag in linking would only print
7193 # a warning, this can be a nuisance for well-run software projects
7194 # that build with -Werror. So if the active version of Clang has
7195 # this misfeature, we search for an option to squash it.
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7198 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7199 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
7200 $as_echo_n "(cached) " >&6
7202 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
7203 # Create an alternate version of $ac_link that compiles and
7204 # links in two steps (.c -> .o, .o -> exe) instead of one
7205 # (.c -> exe), because the warning occurs only in the second
7207 ax_pthread_save_ac_link
="$ac_link"
7208 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7209 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
7210 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7211 ax_pthread_save_CFLAGS
="$CFLAGS"
7212 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
7213 if test "x$ax_pthread_try" = "xunknown"; then :
7216 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7217 ac_link
="$ax_pthread_save_ac_link"
7218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7220 int main(void){return 0;}
7222 if ac_fn_c_try_link
"$LINENO"; then :
7223 ac_link
="$ax_pthread_2step_ac_link"
7224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7226 int main(void){return 0;}
7228 if ac_fn_c_try_link
"$LINENO"; then :
7231 rm -f core conftest.err conftest.
$ac_objext \
7232 conftest
$ac_exeext conftest.
$ac_ext
7235 rm -f core conftest.err conftest.
$ac_objext \
7236 conftest
$ac_exeext conftest.
$ac_ext
7238 ac_link
="$ax_pthread_save_ac_link"
7239 CFLAGS
="$ax_pthread_save_CFLAGS"
7240 if test "x$ax_pthread_try" = "x"; then :
7243 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7247 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7249 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7251 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7254 fi # $ax_pthread_clang = yes
7256 if test "x$ax_pthread_ok" = "xno"; then
7257 for ax_pthread_try_flag
in $ax_pthread_flags; do
7259 case $ax_pthread_try_flag in
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7262 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
7267 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
7268 PTHREAD_CFLAGS
="-mt"
7269 PTHREAD_LIBS
="-lpthread"
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7274 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7275 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
7279 # Extract the first word of "pthread-config", so it can be a program name with args.
7280 set dummy pthread-config
; ac_word
=$2
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7282 $as_echo_n "checking for $ac_word... " >&6; }
7283 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
7284 $as_echo_n "(cached) " >&6
7286 if test -n "$ax_pthread_config"; then
7287 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
7289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7293 test -z "$as_dir" && as_dir
=.
7294 for ac_exec_ext
in '' $ac_executable_extensions; do
7295 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7296 ac_cv_prog_ax_pthread_config
="yes"
7297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
7307 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
7308 if test -n "$ax_pthread_config"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7310 $as_echo "$ax_pthread_config" >&6; }
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7317 if test "x$ax_pthread_config" = "xno"; then :
7320 PTHREAD_CFLAGS
="`pthread-config --cflags`"
7321 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7326 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7327 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
7331 ax_pthread_save_CFLAGS
="$CFLAGS"
7332 ax_pthread_save_LIBS
="$LIBS"
7333 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7334 LIBS
="$PTHREAD_LIBS $LIBS"
7336 # Check for various functions. We must include pthread.h,
7337 # since some functions may be macros. (On the Sequent, we
7338 # need a special flag -Kthread to make this header compile.)
7339 # We check for pthread_join because it is in -lpthread on IRIX
7340 # while pthread_create is in libc. We check for pthread_attr_init
7341 # due to DEC craziness with -lpthreads. We check for
7342 # pthread_cleanup_push because it is one of the few pthread
7343 # functions on Solaris that doesn't have a non-functional libc stub.
7344 # We try pthread_create on general principles.
7346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7348 #include <pthread.h>
7349 # if $ax_pthread_check_cond
7350 # error "$ax_pthread_check_macro must be defined"
7352 static void routine(void *a) { a = 0; }
7353 static void *start_routine(void *a) { return a; }
7357 pthread_t th; pthread_attr_t attr;
7358 pthread_create(&th, 0, start_routine, 0);
7359 pthread_join(th, 0);
7360 pthread_attr_init(&attr);
7361 pthread_cleanup_push(routine, 0);
7362 pthread_cleanup_pop(0) /* ; */
7367 if ac_fn_c_try_link
"$LINENO"; then :
7370 rm -f core conftest.err conftest.
$ac_objext \
7371 conftest
$ac_exeext conftest.
$ac_ext
7373 CFLAGS
="$ax_pthread_save_CFLAGS"
7374 LIBS
="$ax_pthread_save_LIBS"
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7377 $as_echo "$ax_pthread_ok" >&6; }
7378 if test "x$ax_pthread_ok" = "xyes"; then :
7387 # Various other checks:
7388 if test "x$ax_pthread_ok" = "xyes"; then
7389 ax_pthread_save_CFLAGS
="$CFLAGS"
7390 ax_pthread_save_LIBS
="$LIBS"
7391 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7392 LIBS
="$PTHREAD_LIBS $LIBS"
7394 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7396 $as_echo_n "checking for joinable pthread attribute... " >&6; }
7397 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
7398 $as_echo_n "(cached) " >&6
7400 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
7401 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 #include <pthread.h>
7408 int attr = $ax_pthread_attr; return attr /* ; */
7413 if ac_fn_c_try_link
"$LINENO"; then :
7414 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
7416 rm -f core conftest.err conftest.
$ac_objext \
7417 conftest
$ac_exeext conftest.
$ac_ext
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7422 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7423 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7424 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7425 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
7427 cat >>confdefs.h
<<_ACEOF
7428 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
7431 ax_pthread_joinable_attr_defined
=yes
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7436 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
7437 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
7438 $as_echo_n "(cached) " >&6
7440 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
7443 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7449 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7450 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7451 test "x$ax_pthread_special_flags_added" != "xyes"; then :
7452 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7453 ax_pthread_special_flags_added
=yes
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7457 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7458 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
7459 $as_echo_n "(cached) " >&6
7461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 #include <pthread.h>
7467 int i = PTHREAD_PRIO_INHERIT;
7472 if ac_fn_c_try_link
"$LINENO"; then :
7473 ax_cv_PTHREAD_PRIO_INHERIT
=yes
7475 ax_cv_PTHREAD_PRIO_INHERIT
=no
7477 rm -f core conftest.err conftest.
$ac_objext \
7478 conftest
$ac_exeext conftest.
$ac_ext
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7482 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7483 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7484 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
7486 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7488 ax_pthread_prio_inherit_defined
=yes
7492 CFLAGS
="$ax_pthread_save_CFLAGS"
7493 LIBS
="$ax_pthread_save_LIBS"
7495 # More AIX lossage: compile with *_r variant
7496 if test "x$GCC" != "xyes"; then
7500 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
7501 #handle absolute path differently from PATH based program lookup
7504 if as_fn_executable_p
${CC}_r
; then :
7505 PTHREAD_CC
="${CC}_r"
7508 for ac_prog
in ${CC}_r
7510 # Extract the first word of "$ac_prog", so it can be a program name with args.
7511 set dummy
$ac_prog; ac_word
=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
7515 $as_echo_n "(cached) " >&6
7517 if test -n "$PTHREAD_CC"; then
7518 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
7520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir
=.
7525 for ac_exec_ext
in '' $ac_executable_extensions; do
7526 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7527 ac_cv_prog_PTHREAD_CC
="$ac_prog"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
7538 if test -n "$PTHREAD_CC"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7540 $as_echo "$PTHREAD_CC" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7547 test -n "$PTHREAD_CC" && break
7549 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
7560 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
7566 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7567 if test "x$ax_pthread_ok" = "xyes"; then
7575 ac_cpp
='$CXXCPP $CPPFLAGS'
7576 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7577 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7578 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7581 if test "$threads" = "yes"; then
7583 LIBS
="$PTHREAD_LIBS $LIBS"
7584 save_CXXFLAGS
="$CXXFLAGS"
7585 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
7587 $as_echo_n "checking for std::thread... " >&6; }
7588 if ${gdb_cv_cxx_std_thread+:} false
; then :
7589 $as_echo_n "(cached) " >&6
7591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7598 std::thread t(callback);
7603 if ac_fn_cxx_try_compile
"$LINENO"; then :
7604 gdb_cv_cxx_std_thread
=yes
7606 gdb_cv_cxx_std_thread
=no
7608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
7611 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
7613 CXXFLAGS
="$save_CXXFLAGS"
7615 if test $gdb_cv_cxx_std_thread = yes; then
7617 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
7621 ac_cpp
='$CPP $CPPFLAGS'
7622 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
7628 $as_echo_n "checking for sigsetjmp... " >&6; }
7629 if ${gdb_cv_func_sigsetjmp+:} false
; then :
7630 $as_echo_n "(cached) " >&6
7632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7640 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
7645 if ac_fn_c_try_compile
"$LINENO"; then :
7646 gdb_cv_func_sigsetjmp
=yes
7648 gdb_cv_func_sigsetjmp
=no
7650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
7653 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
7654 if test $gdb_cv_func_sigsetjmp = yes; then
7656 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
7661 # Check the return and argument types of ptrace.
7664 for ac_header
in sys
/ptrace.h ptrace.h
7666 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7667 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7668 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7669 cat >>confdefs.h
<<_ACEOF
7670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7678 gdb_ptrace_headers
='
7679 #include <sys/types.h>
7680 #if HAVE_SYS_PTRACE_H
7681 # include <sys/ptrace.h>
7684 # include <unistd.h>
7687 # There is no point in checking if we don't have a prototype.
7688 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
7690 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
7696 cat >>confdefs.h
<<_ACEOF
7697 #define HAVE_DECL_PTRACE $ac_have_decl
7699 if test $ac_have_decl = 1; then :
7703 : ${gdb_cv_func_ptrace_ret='int'}
7704 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7708 # Check return type. Varargs (used on GNU/Linux) conflict with the
7709 # empty argument list, so check for that explicitly.
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
7711 $as_echo_n "checking return type of ptrace... " >&6; }
7712 if ${gdb_cv_func_ptrace_ret+:} false
; then :
7713 $as_echo_n "(cached) " >&6
7715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7721 extern long ptrace (enum __ptrace_request, ...);
7726 if ac_fn_c_try_compile
"$LINENO"; then :
7727 gdb_cv_func_ptrace_ret
='long'
7729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7735 extern int ptrace ();
7740 if ac_fn_c_try_compile
"$LINENO"; then :
7741 gdb_cv_func_ptrace_ret
='int'
7743 gdb_cv_func_ptrace_ret
='long'
7745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
7750 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
7752 cat >>confdefs.h
<<_ACEOF
7753 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
7756 # Check argument types.
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
7758 $as_echo_n "checking types of arguments for ptrace... " >&6; }
7759 if ${gdb_cv_func_ptrace_args+:} false
; then :
7760 $as_echo_n "(cached) " >&6
7763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7769 extern long ptrace (enum __ptrace_request, ...);
7774 if ac_fn_c_try_compile
"$LINENO"; then :
7775 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
7778 for gdb_arg1
in 'int' 'long'; do
7779 for gdb_arg2
in 'pid_t' 'int' 'long'; do
7780 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
7781 for gdb_arg4
in 'int' 'long' 'void *'; do
7782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7789 extern $gdb_cv_func_ptrace_ret
7790 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
7796 if ac_fn_c_try_compile
"$LINENO"; then :
7797 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
7800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7801 for gdb_arg5
in 'int *' 'int' 'long'; do
7802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7809 extern $gdb_cv_func_ptrace_ret
7810 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
7816 if ac_fn_c_try_compile
"$LINENO"; then :
7818 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
7821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7827 # Provide a safe default value.
7828 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
7834 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
7835 ac_save_IFS
=$IFS; IFS
=','
7836 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
7840 cat >>confdefs.h
<<_ACEOF
7841 #define PTRACE_TYPE_ARG1 $1
7845 cat >>confdefs.h
<<_ACEOF
7846 #define PTRACE_TYPE_ARG3 $3
7850 cat >>confdefs.h
<<_ACEOF
7851 #define PTRACE_TYPE_ARG4 $4
7854 if test -n "$5"; then
7856 cat >>confdefs.h
<<_ACEOF
7857 #define PTRACE_TYPE_ARG5 $5
7868 # Check whether --with-ust was given.
7869 if test "${with_ust+set}" = set; then :
7874 # Check whether --with-ust_include was given.
7875 if test "${with_ust_include+set}" = set; then :
7876 withval
=$with_ust_include;
7880 # Check whether --with-ust_lib was given.
7881 if test "${with_ust_lib+set}" = set; then :
7882 withval
=$with_ust_lib;
7896 ustlibs
="-L$with_ust/lib -lust"
7897 ustinc
="-I$with_ust/include "
7900 if test "x$with_ust_include" != x
; then
7901 ustinc
="-I$with_ust_include "
7903 if test "x$with_ust_lib" != x
; then
7904 ustlibs
="-L$with_ust_lib -lust"
7907 if test "x$with_ust" != "xno"; then
7908 saved_CFLAGS
="$CFLAGS"
7909 CFLAGS
="$CFLAGS $ustinc"
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
7911 $as_echo_n "checking for ust... " >&6; }
7912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7915 #define CONFIG_UST_GDB_INTEGRATION
7916 #include <ust/ust.h>
7926 if ac_fn_c_try_compile
"$LINENO"; then :
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7928 $as_echo "yes" >&6; };
7929 $as_echo "#define HAVE_UST 1" >>confdefs.h
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
7935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7936 CFLAGS
="$saved_CFLAGS"
7939 # Flags needed for UST
7944 # Check whether --enable-werror was given.
7945 if test "${enable_werror+set}" = set; then :
7946 enableval
=$enable_werror; case "${enableval}" in
7947 yes | y
) ERROR_ON_WARNING
="yes" ;;
7948 no | n
) ERROR_ON_WARNING
="no" ;;
7949 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
7954 # Enable -Werror by default when using gcc. Turn it off for releases.
7955 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
7956 ERROR_ON_WARNING
=yes
7960 if test "${ERROR_ON_WARNING}" = yes ; then
7961 WERROR_CFLAGS
="-Werror"
7964 # The options we'll try to enable.
7965 build_warnings
="-Wall -Wpointer-arith \
7966 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
7967 -Wno-switch -Wno-char-subscripts \
7968 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
7969 -Wno-sign-compare -Wno-error=maybe-uninitialized \
7970 -Wno-mismatched-tags \
7971 -Wno-error=deprecated-register \
7972 -Wsuggest-override \
7973 -Wimplicit-fallthrough=3 \
7977 -Wdeprecated-copy-dtor \
7982 # Enable -Wno-format by default when using gcc on mingw since many
7983 # GCC versions complain about %I64.
7984 build_warnings
="$build_warnings -Wno-format" ;;
7986 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
7987 # doesn't understand.
7988 build_warnings
="$build_warnings -Wno-unknown-pragmas"
7989 # Solaris 11 <unistd.h> marks vfork deprecated.
7990 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
7992 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
7993 # but there's a special case for this below.
7994 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
7997 # Check whether --enable-build-warnings was given.
7998 if test "${enable_build_warnings+set}" = set; then :
7999 enableval
=$enable_build_warnings; case "${enableval}" in
8001 no
) build_warnings
="-w";;
8002 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8003 build_warnings
="${build_warnings} ${t}";;
8004 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8005 build_warnings
="${t} ${build_warnings}";;
8006 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8008 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8009 echo "Setting compiler warning flags = $build_warnings" 6>&1
8012 # Check whether --enable-gdb-build-warnings was given.
8013 if test "${enable_gdb_build_warnings+set}" = set; then :
8014 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
8016 no
) build_warnings
="-w";;
8017 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8018 build_warnings
="${build_warnings} ${t}";;
8019 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8020 build_warnings
="${t} ${build_warnings}";;
8021 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8023 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8024 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
8028 # The set of warnings supported by a C++ compiler is not the same as
8029 # of the C compiler.
8031 ac_cpp
='$CXXCPP $CPPFLAGS'
8032 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8038 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
8041 $as_echo_n "checking compiler warning flags... " >&6; }
8042 # Separate out the -Werror flag as some files just cannot be
8043 # compiled with it enabled.
8044 for w
in ${build_warnings}; do
8045 # GCC does not complain about -Wno-unknown-warning. Invert
8046 # and test -Wunknown-warning instead.
8049 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
8050 -Wformat-nonliteral)
8051 # gcc requires -Wformat before -Wformat-nonliteral
8052 # will work, so stick them together.
8061 -Werr*) WERROR_CFLAGS
=-Werror ;;
8063 # Check whether GCC accepts it.
8064 saved_CFLAGS
="$CFLAGS"
8065 CFLAGS
="$CFLAGS -Werror $wtest"
8066 saved_CXXFLAGS
="$CXXFLAGS"
8067 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
8068 if test "x$w" = "x-Wunused-variable"; then
8069 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
8070 # fixed in GCC 4.9. This test is derived from the gdb
8071 # source code that triggered this bug in GCC.
8072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8074 struct scoped_restore_base {};
8075 struct scoped_restore_tmpl : public scoped_restore_base {
8076 ~scoped_restore_tmpl() {}
8081 const scoped_restore_base &b = scoped_restore_tmpl();
8086 if ac_fn_cxx_try_compile
"$LINENO"; then :
8087 WARN_CFLAGS
="${WARN_CFLAGS} $w"
8089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8102 if ac_fn_cxx_try_compile
"$LINENO"; then :
8103 WARN_CFLAGS
="${WARN_CFLAGS} $w"
8105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8107 CFLAGS
="$saved_CFLAGS"
8108 CXXFLAGS
="$saved_CXXFLAGS"
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
8112 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
8118 ac_cpp='$CPP $CPPFLAGS'
8119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8127 for ac_func in dladdr
8129 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
8130 if test "x
$ac_cv_func_dladdr" = xyes; then :
8131 cat >>confdefs.h <<_ACEOF
8132 #define HAVE_DLADDR 1
8141 # Check for presence and size of long long.
8142 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
8143 if test "x
$ac_cv_type_long_long" = xyes; then :
8145 cat >>confdefs.h <<_ACEOF
8146 #define HAVE_LONG_LONG 1
8149 # The cast to long int works around a bug in the HP C Compiler
8150 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8151 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8152 # This bug is HP SR number 8606223364.
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
8154 $as_echo_n "checking size of long long...
" >&6; }
8155 if ${ac_cv_sizeof_long_long+:} false; then :
8156 $as_echo_n "(cached
) " >&6
8158 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
8161 if test "$ac_cv_type_long_long" = yes; then
8162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
8163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8164 as_fn_error 77 "cannot compute sizeof (long long)
8165 See \`config.log' for more details
" "$LINENO" 5; }
8167 ac_cv_sizeof_long_long=0
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
8173 $as_echo "$ac_cv_sizeof_long_long" >&6; }
8177 cat >>confdefs.h <<_ACEOF
8178 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8185 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
8186 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
8187 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
8193 cat >>confdefs.h <<_ACEOF
8194 #define HAVE_DECL_BASENAME $ac_have_decl
8196 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
8197 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
8203 cat >>confdefs.h <<_ACEOF
8204 #define HAVE_DECL_FFS $ac_have_decl
8206 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
8207 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
8213 cat >>confdefs.h <<_ACEOF
8214 #define HAVE_DECL_ASPRINTF $ac_have_decl
8216 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
8217 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
8223 cat >>confdefs.h <<_ACEOF
8224 #define HAVE_DECL_VASPRINTF $ac_have_decl
8226 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
8227 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
8233 cat >>confdefs.h <<_ACEOF
8234 #define HAVE_DECL_SNPRINTF $ac_have_decl
8236 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
8237 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
8243 cat >>confdefs.h <<_ACEOF
8244 #define HAVE_DECL_VSNPRINTF $ac_have_decl
8247 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
8248 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
8254 cat >>confdefs.h <<_ACEOF
8255 #define HAVE_DECL_STRTOL $ac_have_decl
8257 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
8258 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
8264 cat >>confdefs.h <<_ACEOF
8265 #define HAVE_DECL_STRTOUL $ac_have_decl
8267 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
8268 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
8274 cat >>confdefs.h <<_ACEOF
8275 #define HAVE_DECL_STRTOLL $ac_have_decl
8277 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
8278 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
8284 cat >>confdefs.h <<_ACEOF
8285 #define HAVE_DECL_STRTOULL $ac_have_decl
8288 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
8289 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
8295 cat >>confdefs.h <<_ACEOF
8296 #define HAVE_DECL_STRVERSCMP $ac_have_decl
8301 ac_fn_c_check_decl "$LINENO" "strerror
" "ac_cv_have_decl_strerror
" "$ac_includes_default"
8302 if test "x
$ac_cv_have_decl_strerror" = xyes; then :
8308 cat >>confdefs.h <<_ACEOF
8309 #define HAVE_DECL_STRERROR $ac_have_decl
8311 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
8312 if test "x
$ac_cv_have_decl_perror" = xyes; then :
8318 cat >>confdefs.h <<_ACEOF
8319 #define HAVE_DECL_PERROR $ac_have_decl
8321 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
8322 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
8328 cat >>confdefs.h <<_ACEOF
8329 #define HAVE_DECL_VASPRINTF $ac_have_decl
8331 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
8332 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
8338 cat >>confdefs.h <<_ACEOF
8339 #define HAVE_DECL_VSNPRINTF $ac_have_decl
8343 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
8344 if test "x
$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8346 cat >>confdefs.h <<_ACEOF
8347 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8352 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
8353 if test "x
$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8355 cat >>confdefs.h <<_ACEOF
8356 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8363 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
8364 # Older amd64 Linux's don't have the fs_base and gs_base members of
8365 # `struct user_regs_struct'.
8366 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>
8367 #include <sys/user.h>
8369 if test "x
$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
8371 cat >>confdefs.h <<_ACEOF
8372 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
8377 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>
8378 #include <sys/user.h>
8380 if test "x
$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
8382 cat >>confdefs.h <<_ACEOF
8383 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
8391 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
8392 #include <sys/socket.h>
8395 if test "x
$ac_cv_type_socklen_t" = xyes; then :
8397 cat >>confdefs.h <<_ACEOF
8398 #define HAVE_SOCKLEN_T 1
8407 # Starting with NDK version 9, <elf.h> actually includes definitions
8408 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
8409 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
8410 # leading to conflicts with the defintions from <linux/elf.h>.
8411 # This makes it impossible for us to include both <elf.h> and
8412 # <linux/elf.h>, which means that, in practice, we do not have
8413 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
8414 # Therefore, do not try to auto-detect availability, as it would
8415 # get it wrong on this platform.
8418 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
8421 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
8423 cat >>confdefs.h <<_ACEOF
8424 #define HAVE_ELF32_AUXV_T 1
8429 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
8432 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
8434 cat >>confdefs.h <<_ACEOF
8435 #define HAVE_ELF64_AUXV_T 1
8445 # Check whether --with-pkgversion was given.
8446 if test "${with_pkgversion+set}" = set; then :
8447 withval=$with_pkgversion; case "$withval" in
8448 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
8450 *) PKGVERSION="($withval) " ;;
8461 # Check whether --with-bugurl was given.
8462 if test "${with_bugurl+set}" = set; then :
8463 withval=$with_bugurl; case "$withval" in
8464 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
8467 *) BUGURL="$withval"
8471 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
8481 REPORT_BUGS_TO="<$BUGURL>"
8482 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8489 cat >>confdefs.h <<_ACEOF
8490 #define PKGVERSION "$PKGVERSION"
8494 cat >>confdefs.h <<_ACEOF
8495 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8499 # Check for various supplementary target information (beyond the
8500 # triplet) which might affect the choices in configure.srv.
8502 i[34567]86-*-linux*)
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
8504 $as_echo_n "checking
if building
for x86-64...
" >&6; }
8505 if ${gdb_cv_i386_is_x86_64+:} false; then :
8506 $as_echo_n "(cached
) " >&6
8508 save_CPPFLAGS="$CPPFLAGS"
8509 CPPFLAGS="$CPPFLAGS $CFLAGS"
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8518 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8519 $EGREP "got it
" >/dev/null 2>&1; then :
8520 gdb_cv_i386_is_x86_64=yes
8522 gdb_cv_i386_is_x86_64=no
8526 CPPFLAGS="$save_CPPFLAGS"
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
8529 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
8534 $as_echo_n "checking
if building
for x32...
" >&6; }
8535 if ${gdb_cv_x86_is_x32+:} false; then :
8536 $as_echo_n "(cached
) " >&6
8538 save_CPPFLAGS="$CPPFLAGS"
8539 CPPFLAGS="$CPPFLAGS $CFLAGS"
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8543 #if __x86_64__ && __ILP32__
8548 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8549 $EGREP "got it
" >/dev/null 2>&1; then :
8550 gdb_cv_x86_is_x32=yes
8552 gdb_cv_x86_is_x32=no
8556 CPPFLAGS="$save_CPPFLAGS"
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
8559 $as_echo "$gdb_cv_x86_is_x32" >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
8564 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
8565 if ${gdb_cv_m68k_is_coldfire+:} false; then :
8566 $as_echo_n "(cached
) " >&6
8568 save_CPPFLAGS="$CPPFLAGS"
8569 CPPFLAGS="$CPPFLAGS $CFLAGS"
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8573 #ifdef __mcoldfire__
8578 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8579 $EGREP "got it
" >/dev/null 2>&1; then :
8580 gdb_cv_m68k_is_coldfire=yes
8582 gdb_cv_m68k_is_coldfire=no
8586 CPPFLAGS="$save_CPPFLAGS"
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
8589 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
8593 . ${srcdir}/configure.srv
8595 if test "${srv_mingwce}" = "yes"; then
8597 elif test "${srv_mingw}" = "yes"; then
8598 LIBS="$LIBS -lws2_32"
8599 elif test "${srv_qnx}" = "yes"; then
8600 LIBS="$LIBS -lsocket"
8601 elif test "${srv_lynxos}" = "yes"; then
8602 LIBS="$LIBS -lnetinet"
8605 if test "${srv_mingw}" = "yes"; then
8607 $as_echo "#define USE_WIN32API 1" >>confdefs.h
8611 if test "${srv_linux_usrregs}" = "yes"; then
8613 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
8617 if test "${srv_linux_regsets}" = "yes"; then
8619 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
8623 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
8624 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
8625 $as_echo_n "(cached) " >&6
8627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8628 /* end confdefs.h. */
8629 #include <sys/ptrace.h>
8638 if ac_fn_c_try_compile
"$LINENO"; then :
8639 gdbsrv_cv_have_ptrace_getregs
=yes
8641 gdbsrv_cv_have_ptrace_getregs
=no
8643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
8647 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
8648 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
8650 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
8655 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
8656 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
8657 $as_echo_n "(cached) " >&6
8659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661 #include <sys/ptrace.h>
8670 if ac_fn_c_try_compile
"$LINENO"; then :
8671 gdbsrv_cv_have_ptrace_getfpxregs
=yes
8673 gdbsrv_cv_have_ptrace_getfpxregs
=no
8675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
8679 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
8680 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
8682 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
8687 if test "${srv_linux_btrace}" = "yes"; then
8689 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
8693 if test "$ac_cv_header_sys_procfs_h" = yes; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
8695 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
8696 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
8697 $as_echo_n "(cached) " >&6
8699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8703 /* Needed for new procfs interface on sparc-solaris. */
8704 #define _STRUCTURED_PROC 1
8705 #include <sys/procfs.h>
8714 if ac_fn_c_try_compile
"$LINENO"; then :
8715 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
8717 bfd_cv_have_sys_procfs_type_lwpid_t
=no
8720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8723 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8725 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
8729 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
8732 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
8733 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
8734 $as_echo_n "(cached) " >&6
8736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8737 /* end confdefs.h. */
8740 /* Needed for new procfs interface on sparc-solaris. */
8741 #define _STRUCTURED_PROC 1
8742 #include <sys/procfs.h>
8751 if ac_fn_c_try_compile
"$LINENO"; then :
8752 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8754 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8760 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8762 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
8766 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
8769 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
8770 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
8771 $as_echo_n "(cached) " >&6
8773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8777 /* Needed for new procfs interface on sparc-solaris. */
8778 #define _STRUCTURED_PROC 1
8779 #include <sys/procfs.h>
8788 if ac_fn_c_try_compile
"$LINENO"; then :
8789 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
8791 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8797 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8799 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
8803 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
8806 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
8807 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
8808 $as_echo_n "(cached) " >&6
8810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8814 /* Needed for new procfs interface on sparc-solaris. */
8815 #define _STRUCTURED_PROC 1
8816 #include <sys/procfs.h>
8825 if ac_fn_c_try_compile
"$LINENO"; then :
8826 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8828 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8834 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8836 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
8840 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
8843 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
8844 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
8845 $as_echo_n "(cached) " >&6
8847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8851 /* Needed for new procfs interface on sparc-solaris. */
8852 #define _STRUCTURED_PROC 1
8853 #include <sys/procfs.h>
8862 if ac_fn_c_try_compile
"$LINENO"; then :
8863 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
8865 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
8868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8871 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
8873 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8877 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
8881 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
8883 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
8884 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
8885 $as_echo_n "(cached) " >&6
8887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8890 #include <thread_db.h>
8899 if ac_fn_c_try_compile
"$LINENO"; then :
8900 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
8902 gdbserver_cv_have_thread_db_type_lwpid_t
=no
8905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8908 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
8910 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
8914 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
8918 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
8920 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
8921 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
8922 $as_echo_n "(cached) " >&6
8924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8927 #include <thread_db.h>
8936 if ac_fn_c_try_compile
"$LINENO"; then :
8937 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
8939 gdbserver_cv_have_thread_db_type_psaddr_t
=no
8942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8945 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
8947 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
8951 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8957 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8958 if ${ac_cv_lib_dl_dlopen+:} false
; then :
8959 $as_echo_n "(cached) " >&6
8961 ac_check_lib_save_LIBS
=$LIBS
8963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8966 /* Override any GCC internal prototype to avoid an error.
8967 Use char because int might match the return type of a GCC
8968 builtin and then its argument prototype would still apply. */
8981 if ac_fn_c_try_link
"$LINENO"; then :
8982 ac_cv_lib_dl_dlopen
=yes
8984 ac_cv_lib_dl_dlopen
=no
8986 rm -f core conftest.err conftest.
$ac_objext \
8987 conftest
$ac_exeext conftest.
$ac_ext
8988 LIBS
=$ac_check_lib_save_LIBS
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8991 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8992 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
8993 cat >>confdefs.h
<<_ACEOF
8994 #define HAVE_LIBDL 1
9003 srv_thread_depfiles
=
9006 if test "$srv_linux_thread_db" = "yes"; then
9007 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
9010 $as_echo_n "checking for the dynamic export flag... " >&6; }
9011 old_LDFLAGS
="$LDFLAGS"
9012 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
9014 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
9015 LDFLAGS
="$LDFLAGS $RDYNAMIC"
9016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9027 if ac_fn_c_try_link
"$LINENO"; then :
9028 found
="-Wl,--dynamic-list"
9029 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
9031 RDYNAMIC
="-rdynamic"
9032 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
9033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9044 if ac_fn_c_try_link
"$LINENO"; then :
9050 rm -f core conftest.err conftest.
$ac_objext \
9051 conftest
$ac_exeext conftest.
$ac_ext
9053 rm -f core conftest.err conftest.
$ac_objext \
9054 conftest
$ac_exeext conftest.
$ac_ext
9056 LDFLAGS
="$old_LDFLAGS"
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
9058 $as_echo "$found" >&6; }
9060 srv_libs
="-lthread_db"
9063 srv_thread_depfiles
="thread-db.o proc-service.o"
9065 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
9068 $as_echo_n "checking for TD_VERSION... " >&6; }
9069 if ${gdbsrv_cv_have_td_version+:} false
; then :
9070 $as_echo_n "(cached) " >&6
9072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9074 #include <thread_db.h>
9083 if ac_fn_c_try_compile
"$LINENO"; then :
9084 gdbsrv_cv_have_td_version
=yes
9086 gdbsrv_cv_have_td_version
=no
9088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
9091 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
9092 if test $gdbsrv_cv_have_td_version = yes; then
9094 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
9100 # Check whether --with-libthread-db was given.
9101 if test "${with_libthread_db+set}" = set; then :
9102 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
9103 srv_libs
="$srv_libthread_db_path"
9108 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
9110 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
9114 if test "$srv_xmlfiles" != ""; then
9115 srv_xmlbuiltin
="xml-builtin.o"
9117 $as_echo "#define USE_XML 1" >>confdefs.h
9120 tmp_xmlfiles
=$srv_xmlfiles
9122 for f
in $tmp_xmlfiles; do
9123 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
9127 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_selftest_objs"
9128 GDBSERVER_LIBS
="$srv_libs"
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
9131 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
9132 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
9133 $as_echo_n "(cached) " >&6
9136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9142 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9147 if ac_fn_c_try_link
"$LINENO"; then :
9148 gdbsrv_cv_have_sync_builtins
=yes
9150 gdbsrv_cv_have_sync_builtins
=no
9152 rm -f core conftest.err conftest.
$ac_objext \
9153 conftest
$ac_exeext conftest.
$ac_ext
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
9156 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
9157 if test $gdbsrv_cv_have_sync_builtins = yes; then
9159 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
9163 saved_cflags
="$CFLAGS"
9164 CFLAGS
="$CFLAGS -fvisibility=hidden"
9165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9176 if ac_fn_c_try_compile
"$LINENO"; then :
9177 gdbsrv_cv_have_visibility_hidden
=yes
9179 gdbsrv_cv_have_visibility_hidden
=no
9181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9182 CFLAGS
="$saved_cflags"
9184 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
9186 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
9192 cat >>confdefs.h
<<_ACEOF
9193 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
9197 if test "$cross_compiling" = yes; then :
9198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 #include <sys/personality.h>
9205 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
9206 # define ADDR_NO_RANDOMIZE 0x0040000
9208 /* Test the flag could be set and stays set. */
9209 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
9210 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
9216 if ac_fn_c_try_link
"$LINENO"; then :
9217 gdbsrv_cv_have_personality
=true
9219 gdbsrv_cv_have_personality
=false
9221 rm -f core conftest.err conftest.
$ac_objext \
9222 conftest
$ac_exeext conftest.
$ac_ext
9224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 #include <sys/personality.h>
9231 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
9232 # define ADDR_NO_RANDOMIZE 0x0040000
9234 /* Test the flag could be set and stays set. */
9235 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
9236 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
9242 if ac_fn_c_try_run
"$LINENO"; then :
9243 gdbsrv_cv_have_personality
=true
9245 gdbsrv_cv_have_personality
=false
9247 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9248 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9251 if $gdbsrv_cv_have_personality
9254 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
9262 # check whether to enable the inprocess agent
9263 if test "$ipa_obj" != "" \
9264 -a "$gdbsrv_cv_have_sync_builtins" = yes \
9265 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
9271 # Check whether --enable-inprocess-agent was given.
9272 if test "${enable_inprocess_agent+set}" = set; then :
9273 enableval
=$enable_inprocess_agent; case "$enableval" in
9274 yes) want_ipa
=true
;;
9275 no
) want_ipa
=false
;;
9276 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
9285 IPA_DEPFILES
="$ipa_obj"
9286 extra_libraries
="$extra_libraries libinproctrace.so"
9288 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
9299 GNULIB
=build-gnulib-gdbserver
/import
9302 if test x
"$STDINT_H" != x
; then
9303 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
9307 ac_config_files
="$ac_config_files Makefile"
9310 cat >confcache
<<\_ACEOF
9311 # This file is a shell script that caches the results of configure
9312 # tests run on this system so they can be shared between configure
9313 # scripts and configure runs, see configure's option --config-cache.
9314 # It is not useful on other systems. If it contains results you don't
9315 # want to keep, you may remove or edit it.
9317 # config.status only pays attention to the cache file if you give it
9318 # the --recheck option to rerun configure.
9320 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9321 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9326 # The following way of writing the cache mishandles newlines in values,
9327 # but we know of no workaround that is simple, portable, and efficient.
9328 # So, we kill variables containing newlines.
9329 # Ultrix sh set writes to stderr and can't be redirected directly,
9330 # and sets the high bit in the cache file unless we assign to the vars.
9332 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9333 eval ac_val
=\$
$ac_var
9337 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9338 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9341 _ | IFS | as_nl
) ;; #(
9342 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9343 *) { eval $ac_var=; unset $ac_var;} ;;
9349 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9350 *${as_nl}ac_space
=\
*)
9351 # `set' does not quote correctly, so add quotes: double-quote
9352 # substitution turns \\\\ into \\, and sed turns \\ into \.
9355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9358 # `set' quotes correctly as required by POSIX, so do not add quotes.
9359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9368 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9370 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9372 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9373 if test -w "$cache_file"; then
9374 if test "x$cache_file" != "x/dev/null"; then
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9376 $as_echo "$as_me: updating cache $cache_file" >&6;}
9377 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9378 cat confcache
>"$cache_file"
9380 case $cache_file in #(
9382 mv -f confcache
"$cache_file"$$
&&
9383 mv -f "$cache_file"$$
"$cache_file" ;; #(
9385 mv -f confcache
"$cache_file" ;;
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9391 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9396 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9397 # Let make expand exec_prefix.
9398 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9400 DEFS
=-DHAVE_CONFIG_H
9405 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9406 # 1. Remove the extension, and $U if already installed.
9407 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9408 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9409 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9410 # will be set to the directory where LIBOBJS objects are built.
9411 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9412 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9416 LTLIBOBJS
=$ac_ltlibobjs
9419 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9420 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
9421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9424 : "${CONFIG_STATUS=./config.status}"
9426 ac_clean_files_save
=$ac_clean_files
9427 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9429 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9431 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9433 # Generated by $as_me.
9434 # Run this file to recreate the current configuration.
9435 # Compiler output produced by configure, useful for debugging
9436 # configure, is in config.log if it exists.
9442 SHELL=\${CONFIG_SHELL-$SHELL}
9445 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
9446 ## -------------------- ##
9447 ## M4sh Initialization. ##
9448 ## -------------------- ##
9450 # Be more Bourne compatible
9451 DUALCASE
=1; export DUALCASE
# for MKS sh
9452 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9455 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9456 # is contrary to our usage. Disable this feature.
9457 alias -g '${1+"$@"}'='"$@"'
9458 setopt NO_GLOB_SUBST
9460 case `(set -o) 2>/dev/null` in #(
9472 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9473 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9474 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9475 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9476 # Prefer a ksh shell builtin over an external printf program on Solaris,
9477 # but without wasting forks for bash or zsh.
9478 if test -z "$BASH_VERSION$ZSH_VERSION" \
9479 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9480 as_echo='print
-r --'
9481 as_echo_n='print
-rn --'
9482 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9483 as_echo='printf %s
\n'
9484 as_echo_n='printf %s
'
9486 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9487 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9488 as_echo_n='/usr
/ucb
/echo -n'
9490 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9491 as_echo_n_body='eval
9495 expr "X$arg" : "X\\(.*\\)$as_nl";
9496 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9498 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
9500 export as_echo_n_body
9501 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9504 as_echo='sh
-c $as_echo_body as_echo
'
9507 # The user is always right.
9508 if test "${PATH_SEPARATOR+set}" != set; then
9510 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9511 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9518 # We need space, tab and new line, in precisely that order. Quoting is
9519 # there to prevent editors from complaining about space-tab.
9520 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9521 # splitting by setting IFS to empty value.)
9524 # Find who we are. Look in the path if we contain no directory separator.
9527 *[\\/]* ) as_myself=$0 ;;
9528 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9532 test -z "$as_dir" && as_dir=.
9533 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9539 # We did not find ourselves, most probably we were run as `sh COMMAND'
9540 # in which case we are not to be found in the path.
9541 if test "x$as_myself" = x
; then
9544 if test ! -f "$as_myself"; then
9545 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9549 # Unset variables that we do not need and which cause bugs (e.g. in
9550 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9551 # suppresses any "Segmentation fault" message there. '((' could
9552 # trigger a bug in pdksh 5.2.14.
9553 for as_var
in BASH_ENV ENV MAIL MAILPATH
9554 do eval test x\
${$as_var+set} = xset \
9555 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
9568 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9571 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9572 # ----------------------------------------
9573 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9574 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9575 # script with STATUS, using 1 if that was 0.
9578 as_status
=$1; test $as_status -eq 0 && as_status
=1
9580 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9581 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9583 $as_echo "$as_me: error: $2" >&2
9584 as_fn_exit
$as_status
9588 # as_fn_set_status STATUS
9589 # -----------------------
9590 # Set $? to STATUS, without forking.
9594 } # as_fn_set_status
9598 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9608 # Portably unset VAR.
9611 { eval $1=; unset $1;}
9613 as_unset
=as_fn_unset
9614 # as_fn_append VAR VALUE
9615 # ----------------------
9616 # Append the text in VALUE to the end of the definition contained in VAR. Take
9617 # advantage of any shell optimizations that allow amortized linear growth over
9618 # repeated appends, instead of the typical quadratic growth present in naive
9620 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9621 eval 'as_fn_append ()
9632 # as_fn_arith ARG...
9633 # ------------------
9634 # Perform arithmetic evaluation on the ARGs, and store the result in the
9635 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9636 # must be portable across $(()) and expr.
9637 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9638 eval 'as_fn_arith ()
9645 as_val
=`expr "$@" || test $? -eq 1`
9650 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9651 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9657 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9658 as_basename
=basename
9663 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9669 as_me
=`$as_basename -- "$0" ||
9670 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9671 X"$0" : 'X\(//\)$' \| \
9672 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9674 sed '/^.*\/\([^/][^/]*\)\/*$/{
9688 # Avoid depending upon Character Ranges.
9689 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9690 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9691 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9692 as_cr_digits
='0123456789'
9693 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9695 ECHO_C
= ECHO_N
= ECHO_T
=
9696 case `echo -n x` in #(((((
9698 case `echo 'xy\c'` in
9699 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9701 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9708 rm -f conf$$ conf$$.exe conf$$.
file
9709 if test -d conf$$.dir
; then
9710 rm -f conf$$.dir
/conf$$.
file
9713 mkdir conf$$.dir
2>/dev
/null
9715 if (echo >conf$$.
file) 2>/dev
/null
; then
9716 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9718 # ... but there are two gotchas:
9719 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9720 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9721 # In both cases, we have to default to `cp -pR'.
9722 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9724 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9732 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9733 rmdir conf$$.dir
2>/dev
/null
9738 # Create "$as_dir" as a directory, including parents if necessary.
9743 -*) as_dir
=.
/$as_dir;;
9745 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9749 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9750 *) as_qdir
=$as_dir;;
9752 as_dirs
="'$as_qdir' $as_dirs"
9753 as_dir
=`$as_dirname -- "$as_dir" ||
9754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9755 X"$as_dir" : 'X\(//\)[^/]' \| \
9756 X"$as_dir" : 'X\(//\)$' \| \
9757 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9758 $as_echo X"$as_dir" |
9759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9776 test -d "$as_dir" && break
9778 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9779 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9783 if mkdir
-p .
2>/dev
/null
; then
9784 as_mkdir_p
='mkdir -p "$as_dir"'
9786 test -d .
/-p && rmdir .
/-p
9791 # as_fn_executable_p FILE
9792 # -----------------------
9793 # Test if FILE is an executable regular file.
9794 as_fn_executable_p
()
9796 test -f "$1" && test -x "$1"
9797 } # as_fn_executable_p
9799 as_executable_p
=as_fn_executable_p
9801 # Sed expression to map a string onto a valid CPP name.
9802 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9804 # Sed expression to map a string onto a valid variable name.
9805 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9809 ## ----------------------------------- ##
9810 ## Main body of $CONFIG_STATUS script. ##
9811 ## ----------------------------------- ##
9813 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9816 # Save the log message, to keep $0 and so on meaningful, and to
9817 # report actual input values of CONFIG_FILES etc. instead of their
9818 # values after options handling.
9820 This file was extended by $as_me, which was
9821 generated by GNU Autoconf 2.69. Invocation command line was
9823 CONFIG_FILES = $CONFIG_FILES
9824 CONFIG_HEADERS = $CONFIG_HEADERS
9825 CONFIG_LINKS = $CONFIG_LINKS
9826 CONFIG_COMMANDS = $CONFIG_COMMANDS
9829 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9834 case $ac_config_files in *"
9835 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9838 case $ac_config_headers in *"
9839 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9844 # Files that config.status was made for.
9845 config_files="$ac_config_files"
9846 config_headers="$ac_config_headers"
9847 config_commands="$ac_config_commands"
9851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9853 \`$as_me' instantiates files and other configuration actions
9854 from templates according to the current configuration. Unless the files
9855 and actions are specified as TAGs, all are instantiated by default.
9857 Usage: $0 [OPTION]... [TAG]...
9859 -h, --help print this help, then exit
9860 -V, --version print version number and configuration settings, then exit
9861 --config print configuration, then exit
9862 -q, --quiet, --silent
9863 do not print progress messages
9864 -d, --debug don't remove temporary files
9865 --recheck update $as_me by reconfiguring in the same conditions
9866 --file=FILE[:TEMPLATE]
9867 instantiate the configuration file FILE
9868 --header=FILE[:TEMPLATE]
9869 instantiate the configuration header FILE
9871 Configuration files:
9874 Configuration headers:
9877 Configuration commands:
9880 Report bugs to the package provider."
9883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9884 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9887 configured by $0, generated by GNU Autoconf 2.69,
9888 with options \\"\$ac_cs_config\\"
9890 Copyright (C) 2012 Free Software Foundation, Inc.
9891 This config.status script is free software; the Free Software Foundation
9892 gives unlimited permission to copy, distribute and modify it."
9897 test -n "\$AWK" || AWK=awk
9900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9901 # The default lists apply if the user does not specify any file.
9907 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9908 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9912 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9924 # Handling of the options.
9925 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9927 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9928 $as_echo "$ac_cs_version"; exit ;;
9929 --config |
--confi |
--conf |
--con |
--co |
--c )
9930 $as_echo "$ac_cs_config"; exit ;;
9931 --debug |
--debu |
--deb |
--de |
--d |
-d )
9933 --file |
--fil |
--fi |
--f )
9936 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9937 '') as_fn_error $?
"missing file argument" ;;
9939 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9940 ac_need_defaults
=false
;;
9941 --header |
--heade |
--head |
--hea )
9944 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9946 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9947 ac_need_defaults
=false
;;
9949 # Conflict between --help and --header
9950 as_fn_error $?
"ambiguous option: \`$1'
9951 Try \`$0 --help' for more information.";;
9952 --help |
--hel |
-h )
9953 $as_echo "$ac_cs_usage"; exit ;;
9954 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9955 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9959 -*) as_fn_error $?
"unrecognized option: \`$1'
9960 Try \`$0 --help' for more information." ;;
9962 *) as_fn_append ac_config_targets
" $1"
9963 ac_need_defaults
=false
;;
9969 ac_configure_extra_args
=
9971 if $ac_cs_silent; then
9973 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9978 if \$ac_cs_recheck; then
9979 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9981 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9982 CONFIG_SHELL='$SHELL'
9988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9992 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9993 ## Running $as_me. ##
9999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10003 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
10004 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
10008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10010 # Handling of arguments.
10011 for ac_config_target
in $ac_config_targets
10013 case $ac_config_target in
10014 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
10015 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
10016 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
10017 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10019 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10024 # If the user did not use the arguments to specify the items to instantiate,
10025 # then the envvar interface is used. Set only those that are not.
10026 # We use the long form for the default assignment because of an extremely
10027 # bizarre bug on SunOS 4.1.3.
10028 if $ac_need_defaults; then
10029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10031 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
10034 # Have a temporary directory for convenience. Make it in the build tree
10035 # simply because there is no reason against having it here, and in addition,
10036 # creating and moving files from /tmp can sometimes cause problems.
10037 # Hook for its removal unless debugging.
10038 # Note that there is a small window in which the directory will not be cleaned:
10039 # after its creation but before its name has been assigned to `$tmp'.
10043 trap 'exit_status=$?
10044 : "${ac_tmp:=$tmp}"
10045 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10047 trap 'as_fn_exit 1' 1 2 13 15
10049 # Create a (secure) tmp directory for tmp files.
10052 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10056 tmp
=.
/conf$$
-$RANDOM
10057 (umask 077 && mkdir
"$tmp")
10058 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10061 # Set up the scripts for CONFIG_FILES section.
10062 # No need to generate them if there are no CONFIG_FILES.
10063 # This happens for instance with `./config.status config.h'.
10064 if test -n "$CONFIG_FILES"; then
10067 ac_cr
=`echo X | tr X '\015'`
10068 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10069 # But we know of no other shell where ac_cr would be empty at this
10070 # point, so we can use a bashism as a fallback.
10071 if test "x$ac_cr" = x
; then
10072 eval ac_cr
=\$
\'\\r
\'
10074 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10075 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10078 ac_cs_awk_cr
=$ac_cr
10081 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10086 echo "cat >conf$$subs.awk <<_ACEOF" &&
10087 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10089 } >conf$$subs.sh ||
10090 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10091 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10093 for ac_last_try in false false false false false :; do
10094 . ./conf$$subs.sh ||
10095 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10097 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10098 if test $ac_delim_n = $ac_delim_num; then
10100 elif $ac_last_try; then
10101 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10103 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10106 rm -f conf$$subs.sh
10108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10109 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10113 s/^/S["/; s
/!.
*/"]=/
10123 s/\(.\{148\}\)..*/\1/
10125 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10130 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10137 s/\(.\{148\}\)..*/\1/
10139 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10143 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10148 ' <conf$$subs.awk | sed '
10153 ' >>$CONFIG_STATUS || ac_write_fail=1
10154 rm -f conf$$subs.awk
10155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10157 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10158 for (key in S) S_is_set[key] = 1
10164 nfields = split(line, field, "@
")
10166 len = length(field[1])
10167 for (i = 2; i < nfields; i++) {
10169 keylen = length(key)
10170 if (S_is_set[key]) {
10172 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10173 len += length(value) + length(field[++i])
10184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10185 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10186 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10189 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10190 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10193 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10194 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10195 # trailing colons and then remove the whole line if VPATH becomes empty
10196 # (actually we leave an empty line to preserve line numbers).
10197 if test "x
$srcdir" = x.; then
10198 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10217 fi # test -n "$CONFIG_FILES"
10219 # Set up the scripts for CONFIG_HEADERS section.
10220 # No need to generate them if there are no CONFIG_HEADERS.
10221 # This happens for instance with `./config.status Makefile'.
10222 if test -n "$CONFIG_HEADERS"; then
10223 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10227 # Transform confdefs.h into an awk script `defines.awk', embedded as
10228 # here-document in config.status, that substitutes the proper values into
10229 # config.h.in to produce config.h.
10231 # Create a delimiter string that does not exist in confdefs.h, to ease
10232 # handling of long lines.
10234 for ac_last_try in false false :; do
10235 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10236 if test -z "$ac_tt"; then
10238 elif $ac_last_try; then
10239 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10241 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10245 # For the awk script, D is an array of macro values keyed by name,
10246 # likewise P contains macro parameters if any. Preserve backslash
10247 # newline sequences.
10249 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10251 s/.\{148\}/&'"$ac_delim"'/g
10254 s/^[ ]*#[ ]*define[ ][ ]*/ /
10261 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10263 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10268 D["\
1"]=" \
3\\\\\\n
"\\/p
10270 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10275 s/.\{148\}/&'"$ac_delim"'/g
10280 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10283 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10285 ' <confdefs.h | sed '
10286 s/'"$ac_delim"'/"\\\
10287 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10290 for (key in D) D_is_set[key] = 1
10293 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10295 split(line, arg, " ")
10296 if (arg[1] == "#") {
10300 defundef
= substr
(arg
[1], 2)
10303 split(mac1
, mac2
, "(") #)
10305 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10306 if (D_is_set
[macro
]) {
10307 # Preserve the white space surrounding the "#".
10308 print prefix
"define", macro P
[macro
] D
[macro
]
10311 # Replace #undef with comments. This is necessary, for example,
10312 # in the case of _POSIX_SOURCE, which is predefined and required
10313 # on some systems where configure will not decide to define it.
10314 if (defundef
== "undef") {
10315 print
"/*", prefix defundef
, macro
, "*/"
10323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10324 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10325 fi # test -n "$CONFIG_HEADERS"
10328 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10333 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10335 case $ac_mode$ac_tag in
10337 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10338 :[FH
]-) ac_tag
=-:-;;
10339 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10356 -) ac_f
="$ac_tmp/stdin";;
10357 *) # Look for the file first in the build tree, then in the source tree
10358 # (if the path is not absolute). The absolute path cannot be DOS-style,
10359 # because $ac_f cannot contain `:'.
10363 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10365 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10367 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10368 as_fn_append ac_file_inputs
" '$ac_f'"
10371 # Let's still pretend it is `configure' which instantiates (i.e., don't
10372 # use $as_me), people would be surprised to read:
10373 # /* config.h. Generated by config.status. */
10374 configure_input
='Generated from '`
10375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10377 if test x
"$ac_file" != x-
; then
10378 configure_input
="$ac_file. $configure_input"
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10380 $as_echo "$as_me: creating $ac_file" >&6;}
10382 # Neutralize special characters interpreted by sed in replacement strings.
10383 case $configure_input in #(
10384 *\
&* |
*\|
* |
*\\* )
10385 ac_sed_conf_input
=`$as_echo "$configure_input" |
10386 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10387 *) ac_sed_conf_input
=$configure_input;;
10391 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10392 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10397 ac_dir
=`$as_dirname -- "$ac_file" ||
10398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10399 X"$ac_file" : 'X\(//\)[^/]' \| \
10400 X"$ac_file" : 'X\(//\)$' \| \
10401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10402 $as_echo X"$ac_file" |
10403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10407 /^X\(\/\/\)[^/].*/{
10420 as_dir
="$ac_dir"; as_fn_mkdir_p
10424 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10426 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10427 # A ".." for each directory in $ac_dir_suffix.
10428 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10429 case $ac_top_builddir_sub in
10430 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10431 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10434 ac_abs_top_builddir
=$ac_pwd
10435 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10436 # for backward compatibility:
10437 ac_top_builddir
=$ac_top_build_prefix
10440 .
) # We are building in place.
10442 ac_top_srcdir
=$ac_top_builddir_sub
10443 ac_abs_top_srcdir
=$ac_pwd ;;
10444 [\\/]* | ?
:[\\/]* ) # Absolute name.
10445 ac_srcdir
=$srcdir$ac_dir_suffix;
10446 ac_top_srcdir
=$srcdir
10447 ac_abs_top_srcdir
=$srcdir ;;
10448 *) # Relative name.
10449 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10450 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10451 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10453 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10463 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10464 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10469 # If the template does not know about datarootdir, expand it.
10470 # FIXME: This hack should be removed a few years after 2.60.
10471 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10482 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10483 *datarootdir
*) ac_datarootdir_seen
=yes;;
10484 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10486 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10489 ac_datarootdir_hack='
10490 s&@datadir@&$datadir&g
10491 s&@docdir@&$docdir&g
10492 s&@infodir@&$infodir&g
10493 s&@localedir@&$localedir&g
10494 s&@mandir@&$mandir&g
10495 s&\\\${datarootdir}&$datarootdir&g' ;;
10499 # Neutralize VPATH when `$srcdir' = `.'.
10500 # Shell code in configure.ac might set extrasub.
10501 # FIXME: do we really want to maintain this feature?
10502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10503 ac_sed_extra="$ac_vpsub
10506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10508 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10509 s|@configure_input@|
$ac_sed_conf_input|
;t t
10510 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10511 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10512 s
&@srcdir@
&$ac_srcdir&;t t
10513 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10514 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10515 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10516 s
&@builddir@
&$ac_builddir&;t t
10517 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10518 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10519 s
&@INSTALL@
&$ac_INSTALL&;t t
10520 $ac_datarootdir_hack
10522 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10523 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10525 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10526 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10527 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10528 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10530 which seems to be undefined. Please make sure it is defined" >&5
10531 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10532 which seems to be undefined. Please make sure it is defined" >&2;}
10534 rm -f "$ac_tmp/stdin"
10536 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10537 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10545 if test x"$ac_file" != x-; then
10547 $as_echo "/* $configure_input */" \
10548 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10549 } >"$ac_tmp/config.h" \
10550 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10551 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10553 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10556 mv "$ac_tmp/config.h" "$ac_file" \
10557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10560 $as_echo "/* $configure_input */" \
10561 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10562 || as_fn_error $? "could not create -" "$LINENO" 5
10566 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10567 $as_echo "$as_me: executing $ac_file commands" >&6;}
10572 case $ac_file$ac_mode in
10573 "config.h":H) echo > stamp-h ;;
10574 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
10576 for subdir in ${CONFIG_SRC_SUBDIR}
10578 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
10587 ac_clean_files=$ac_clean_files_save
10589 test $ac_write_fail = 0 ||
10590 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10593 # configure is writing to config.log, and then calls config.status.
10594 # config.status does its own redirection, appending to config.log.
10595 # Unfortunately, on DOS this fails, as config.log is still kept open
10596 # by configure, so config.status won't be able to
write to it
; its
10597 # output is simply discarded. So we exec the FD to /dev/null,
10598 # effectively closing config.log, so it can be properly (re)opened and
10599 # appended to by config.status. When coming back to configure, we
10600 # need to make the FD available again.
10601 if test "$no_create" != yes; then
10603 ac_config_status_args
=
10604 test "$silent" = yes &&
10605 ac_config_status_args
="$ac_config_status_args --quiet"
10607 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10609 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10610 # would make configure fail if this is the last instruction.
10611 $ac_cs_success || as_fn_exit
1
10613 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10615 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}